X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fdebug.c;h=ce92bd229e8ffd8a7407125f8780f456edad3600;hb=3d207518c117df7a6c58f20bc2693171b7690650;hp=fe2ed8c6536ff7065b83a032ba50b4776e68560a;hpb=4b4da1607aeed19ac399963a3aa12b0417e477ae;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/debug.c b/gas/debug.c index fe2ed8c653..ce92bd229e 100644 --- a/gas/debug.c +++ b/gas/debug.c @@ -1,12 +1,11 @@ /* This file is debug.c - Copyright 1987, 1988, 1989, 1990, 1991, 1992, 2000 - Free Software Foundation, Inc. + Copyright (C) 1987-2016 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. GAS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. GAS is distributed in the hope that it will be useful, @@ -25,26 +24,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)