From: jimb Date: Thu, 23 Jan 2003 23:17:28 +0000 (+0000) Subject: * symfile.c (syms_from_objfile): Don't print the "(no debugging X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3c51c83b0dd8b30e52a1900644175139f7832d80;p=pf3gnuchains%2Fpf3gnuchains3x.git * symfile.c (syms_from_objfile): Don't print the "(no debugging symbols found)" message here; we haven't checked for a separate debug info file yet, so we don't know yet. (symbol_file_add_with_addrs_or_offsets): Print it here, after we've looked everywhere. Also, there's no need to print a special message when we're loading the separate debug info file: the one symbol_file_add prints is fine. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8857ba5924..eb4d3412dc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2003-01-23 Jim Blandy + + * symfile.c (syms_from_objfile): Don't print the "(no debugging + symbols found)" message here; we haven't checked for a separate + debug info file yet, so we don't know yet. + (symbol_file_add_with_addrs_or_offsets): Print it here, after + we've looked everywhere. Also, there's no need to print a special + message when we're loading the separate debug info file: the one + symbol_file_add prints is fine. + 2003-01-23 Alexander Larsson Jim Blandy diff --git a/gdb/symfile.c b/gdb/symfile.c index 4908a310c8..68633010cf 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -808,13 +808,6 @@ syms_from_objfile (struct objfile *objfile, (*objfile->sf->sym_read) (objfile, mainline); - if (!have_partial_symbols () && !have_full_symbols ()) - { - wrap_here (""); - printf_filtered ("(no debugging symbols found)..."); - wrap_here (""); - } - /* Don't allow char * to have a typename (else would get caddr_t). Ditto void *. FIXME: Check whether this is now done by all the symbol readers themselves (many of them now do), and if so remove @@ -976,14 +969,6 @@ symbol_file_add_with_addrs_or_offsets (char *name, int from_tty, debugfile = find_separate_debug_file (objfile); if (debugfile) { - if (from_tty || info_verbose) - { - printf_filtered ("loading separate debug info from '%s'", - debugfile); - wrap_here (""); - gdb_flush (gdb_stdout); - } - if (addrs != NULL) { objfile->separate_debug_objfile @@ -1004,6 +989,13 @@ symbol_file_add_with_addrs_or_offsets (char *name, int from_tty, xfree (debugfile); } + if (!have_partial_symbols () && !have_full_symbols ()) + { + wrap_here (""); + printf_filtered ("(no debugging symbols found)..."); + wrap_here (""); + } + if (from_tty || info_verbose) { if (post_add_symbol_hook)