diff options
author | Daniel Jacobowitz <dan@debian.org> | 2001-10-12 23:51:30 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2001-10-12 23:51:30 +0000 |
commit | af29617a244c6dadc5311d55428d395874e036a0 (patch) | |
tree | 357931c231fd6f732d3474ced779949d6d34b5c5 /gdb/symmisc.c | |
parent | ff19c2267e6cbf869f296b341bf4b362509d8f40 (diff) | |
download | gdb-af29617a244c6dadc5311d55428d395874e036a0.tar.gz |
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
* symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
(make_symbol_completion_list): Likewise.
(make_symbol_overload_list): Likewise.
* buildsym.c (finish_block): Likewise.
* breakpoint.c (get_catch_sals): Likewise.
* mdebugread.c (mylookup_symbol): Likewise.
* objfiles.c (objfile_relocate): Likewise.
* printcmd.c (print_frame_args): Likewise.
* stack.c (print_block_frame_locals): Likewise.
(print_block_frame_labels): Likewise.
(print_frame_arg_vars): Likewise.
* symmisc.c (dump_symtab): Likewise.
* tracepoint.c (add_local_symbols): Likewise.
(scope_info): Likewise.
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.
2001-10-12 Daniel Jacobowitz <drow@mvista.com>
* generic/gdbtk-cmds.c (gdb_listfuncs): Use ALL_BLOCK_SYMBOLS.
* generic/gdbtk-stack.c (gdb_block_vars): Likewise.
(gdb_get_blocks): Likewise.
(gdb_get_vars_command): Likewise.
5~
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 8199648aded..f440f07ab31 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -410,6 +410,7 @@ dump_symtab (struct objfile *objfile, struct symtab *symtab, int len, blen; register struct linetable *l; struct blockvector *bv; + struct symbol *sym; register struct block *b; int depth; @@ -471,11 +472,12 @@ dump_symtab (struct objfile *objfile, struct symtab *symtab, if (BLOCK_GCC_COMPILED (b)) fprintf_filtered (outfile, ", compiled with gcc%d", BLOCK_GCC_COMPILED (b)); fprintf_filtered (outfile, "\n"); - /* Now print each symbol in this block */ - for (j = 0; j < blen; j++) + /* Now print each symbol in this block. */ + /* FIXMED: Sort? */ + ALL_BLOCK_SYMBOLS (b, j, sym) { struct print_symbol_args s; - s.symbol = BLOCK_SYM (b, j); + s.symbol = sym; s.depth = depth + 1; s.outfile = outfile; catch_errors (print_symbol, &s, "Error printing symbol:\n", |