aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-02 01:41:40 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-02 01:41:40 +0000
commit996ccb3043d9237ea8e6e79d6a7c6121b15f9e61 (patch)
tree0dfcfdfd7f957068352137d70e996b8a100926c1 /gdb/symmisc.c
parente4d30c7e6abccf8402a5c48743a829cd6633ee98 (diff)
downloadgdb-996ccb3043d9237ea8e6e79d6a7c6121b15f9e61.zip
gdb-996ccb3043d9237ea8e6e79d6a7c6121b15f9e61.tar.gz
gdb-996ccb3043d9237ea8e6e79d6a7c6121b15f9e61.tar.bz2
* symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,
symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put inside #if) unused variables and labels. Fix unclosed comment. Deal with enumeration values unhandled in switch statements. Make sure non-void functions return values. Include appropriate headers. * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned value < 0.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index fec7120..f81fcdc 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -437,7 +437,8 @@ maintenance_print_symbols (args, from_tty)
/* Print symbol ARGS->SYMBOL on ARGS->OUTFILE. ARGS->DEPTH says how
far to indent. ARGS is really a struct print_symbol_args *, but is
- declared as char * to get it past catch_errors. */
+ declared as char * to get it past catch_errors. Returns 0 for error,
+ 1 for success. */
static int
print_symbol (args)
@@ -452,7 +453,7 @@ print_symbol (args)
{
fprintf (outfile, "label %s at 0x%x\n", SYMBOL_SOURCE_NAME (symbol),
SYMBOL_VALUE_ADDRESS (symbol));
- return;
+ return 1;
}
if (SYMBOL_NAMESPACE (symbol) == STRUCT_NAMESPACE)
{
@@ -573,6 +574,7 @@ print_symbol (args)
}
}
fprintf (outfile, "\n");
+ return 1;
}
void