diff options
author | Doug Evans <dje@google.com> | 1998-04-09 17:32:27 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-04-09 17:32:27 +0000 |
commit | a461558bba442488fcb90c85319a6fd966909523 (patch) | |
tree | 69457de8a8eb3ec0d74930a718047e214ed57924 | |
parent | ef23b3efd12e8a80d800de3c10e46bd4141c815e (diff) | |
download | gdb-a461558bba442488fcb90c85319a6fd966909523.zip gdb-a461558bba442488fcb90c85319a6fd966909523.tar.gz gdb-a461558bba442488fcb90c85319a6fd966909523.tar.bz2 |
* symbols.c (max_indent_level): New global.
(print_symbol_value_1): Use it.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/symbols.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index e70d1ed..0e8696f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 9 10:29:42 1998 Doug Evans <devans@canuck.cygnus.com> + + * symbols.c (max_indent_level): New global. + (print_symbol_value_1): Use it. + Wed Apr 8 16:16:11 1998 Doug Evans <devans@canuck.cygnus.com> * symbols.c (print_binary): New function. diff --git a/gas/symbols.c b/gas/symbols.c index f64d049..1713e6a 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -1554,6 +1554,10 @@ symbol_begin () int indent_level; +/* Maximum indent level. + Available for modification inside a gdb session. */ +int max_indent_level = 8; + #if 0 static void @@ -1602,7 +1606,8 @@ print_symbol_value_1 (file, sym) && s != expr_section) fprintf (file, " %lx", (long) S_GET_VALUE (sym)); } - else if (indent_level < 8 && S_GET_SEGMENT (sym) != undefined_section) + else if (indent_level < max_indent_level + && S_GET_SEGMENT (sym) != undefined_section) { indent_level++; fprintf (file, "\n%*s<", indent_level * 4, ""); |