aboutsummaryrefslogtreecommitdiff
path: root/binutils/rddbg.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-06-12 11:57:40 +0000
committerNick Clifton <nickc@redhat.com>2008-06-12 11:57:40 +0000
commitb922d5904f4a0ac69d5abfc8e24826b17012f334 (patch)
tree2d7ebe1abaceacb2bfad821c219956db6808eb27 /binutils/rddbg.c
parent5590fba9534e101a6f41d7ad801442cf7af17f98 (diff)
downloadgdb-b922d5904f4a0ac69d5abfc8e24826b17012f334.zip
gdb-b922d5904f4a0ac69d5abfc8e24826b17012f334.tar.gz
gdb-b922d5904f4a0ac69d5abfc8e24826b17012f334.tar.bz2
PR binutils/6483
* objdump.c (dump_bfd): If the -g option found no STABS or IEEE debug information to display, try dumping DWARF information instead. * rddbg.c (read_debugging_info): Add a parameter to suppress the display of a warning message when no debug information is found. * budbg.h (read_debugging_info): Update prototype. * objcopy.c (copy_object): Continue to allow read_debugging_info to produce warning messages. * doc/binutils.texi (--debugging): Document new behaviour of the -g/--debugging option.
Diffstat (limited to 'binutils/rddbg.c')
-rw-r--r--binutils/rddbg.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/binutils/rddbg.c b/binutils/rddbg.c
index 6d26fee..e21ed6f 100644
--- a/binutils/rddbg.c
+++ b/binutils/rddbg.c
@@ -1,5 +1,5 @@
/* rddbg.c -- Read debugging information into a generic form.
- Copyright 1995, 1996, 1997, 2000, 2002, 2003, 2005, 2007
+ Copyright 1995, 1996, 1997, 2000, 2002, 2003, 2005, 2007, 2008
Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>.
@@ -45,7 +45,7 @@ static void free_saved_stabs (void);
pointer. */
void *
-read_debugging_info (bfd *abfd, asymbol **syms, long symcount)
+read_debugging_info (bfd *abfd, asymbol **syms, long symcount, bfd_boolean no_messages)
{
void *dhandle;
bfd_boolean found;
@@ -84,8 +84,9 @@ read_debugging_info (bfd *abfd, asymbol **syms, long symcount)
if (! found)
{
- non_fatal (_("%s: no recognized debugging information"),
- bfd_get_filename (abfd));
+ if (! no_messages)
+ non_fatal (_("%s: no recognized debugging information"),
+ bfd_get_filename (abfd));
return NULL;
}