projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change sources over to using GPLv3
[deliverable/binutils-gdb.git]
/
gas
/
debug.c
diff --git
a/gas/debug.c
b/gas/debug.c
index e99f23f32a6d6eed583ee5be2c5cb6d69820073d..32fa927b995acf9e20871b386a0ddbae25c45e8e 100644
(file)
--- a/
gas/debug.c
+++ b/
gas/debug.c
@@
-1,11
+1,12
@@
/* This file is debug.c
/* This file is debug.c
- Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
+ Copyright 1987, 1988, 1989, 1990, 1991, 1992, 2000, 2006, 2007
+ 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
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,
any later version.
GAS is distributed in the hope that it will be useful,
@@
-15,7
+16,7
@@
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to
- the Free Software Foundation, 5
9 Temple Place - Suite 330, Boston, MA 02111-1307
, USA. */
+ the Free Software Foundation, 5
1 Franklin Street - Fifth Floor, Boston, MA 02110-1301
, USA. */
/* Routines for debug use only. */
/* Routines for debug use only. */
@@
-24,26
+25,28
@@
dmp_frags ()
{
dmp_frags ()
{
+ asection *s;
frchainS *chp;
char *p;
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)
}
dmp_frag (fp, indent)
@@
-62,8
+65,7
@@
dmp_frag (fp, indent)
printf ("%srs_fill(%d)\n", indent, fp->fr_offset);
printf ("%s", indent);
var_chars (fp, fp->fr_var + fp->fr_fix);
printf ("%srs_fill(%d)\n", indent, fp->fr_offset);
printf ("%s", indent);
var_chars (fp, fp->fr_var + fp->fr_fix);
- printf ("%s\t repeated %d times,",
- indent, fp->fr_offset);
+ printf ("%s\t repeated %d times,", indent, fp->fr_offset);
printf (" fixed length if # chars == 0)\n");
break;
case rs_org:
printf (" fixed length if # chars == 0)\n");
break;
case rs_org:
This page took
0.023694 seconds
and
4
git commands to generate.