* symbols.c (max_indent_level): New global.

(print_symbol_value_1): Use it.
This commit is contained in:
Doug Evans 1998-04-09 17:32:27 +00:00
parent ef23b3efd1
commit a461558bba
2 changed files with 11 additions and 1 deletions

View file

@ -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.

View file

@ -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, "");