diff options
author | dim <dim@FreeBSD.org> | 2010-11-01 19:35:33 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2010-11-01 19:35:33 +0000 |
commit | 3f5c947f4453c6016a2a6a9636367ee3f48fc6fc (patch) | |
tree | 461aafc934d462eb9b9221308f8e25238c0ada62 /contrib/binutils/gas/debug.c | |
parent | e6be3e7867eb43d220575baee2ce5662fb03e46c (diff) | |
parent | d0f678fa0ff3f08a4eca29daf4d1ac39797b6326 (diff) | |
download | FreeBSD-src-3f5c947f4453c6016a2a6a9636367ee3f48fc6fc.zip FreeBSD-src-3f5c947f4453c6016a2a6a9636367ee3f48fc6fc.tar.gz |
Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings
us up to version 2.17.50.20070703, at the last GPLv2 commit.
Amongst others, this added upstream support for some FreeBSD-specific
things that we previously had to manually hack in, such as the OSABI
label support, and so on.
There are also quite a number of new files, some for cpu's (e.g. SPU)
that we may or may not be interested in, but those can be cleaned up
later on, if needed.
Diffstat (limited to 'contrib/binutils/gas/debug.c')
-rw-r--r-- | contrib/binutils/gas/debug.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/contrib/binutils/gas/debug.c b/contrib/binutils/gas/debug.c index fe2ed8c..3218fff 100644 --- a/contrib/binutils/gas/debug.c +++ b/contrib/binutils/gas/debug.c @@ -1,5 +1,5 @@ /* This file is debug.c - Copyright 1987, 1988, 1989, 1990, 1991, 1992, 2000 + Copyright 1987, 1988, 1989, 1990, 1991, 1992, 2000, 2006 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -25,26 +25,28 @@ dmp_frags () { + asection *s; frchainS *chp; char *p; - for (chp = frchain_root; chp; chp = chp->frch_next) - { - switch (chp->frch_seg) - { - case SEG_DATA: - p = "Data"; - break; - case SEG_TEXT: - p = "Text"; - break; - default: - p = "???"; - break; - } - printf ("\nSEGMENT %s %d\n", p, chp->frch_subseg); - dmp_frag (chp->frch_root, "\t"); - } + for (s = stdoutput->sections; s; s = s->next) + for (chp = seg_info (s)->frchainP; chp; chp = chp->frch_next) + { + switch (s) + { + case SEG_DATA: + p = "Data"; + break; + case SEG_TEXT: + p = "Text"; + break; + default: + p = "???"; + break; + } + printf ("\nSEGMENT %s %d\n", p, chp->frch_subseg); + dmp_frag (chp->frch_root, "\t"); + } } dmp_frag (fp, indent) |