[Crash-utility] [PATCH] Use /usr/bin/nm -D

Dave Anderson anderson at redhat.com
Mon Aug 25 18:12:55 UTC 2008


----- "Bernhard Walle" <bwalle at suse.de> wrote:

> * Dave Anderson [2008-08-25 11:25]:
> >
> > It probably could be made even simpler than that if a
> quick-and-dirty
> > pre-examination of thisfile could be done to determine whether it's
> > stripped or not?
> 
> Well, not quick and dirty but with bfd (which we already have in
> place). What do you think about that one?
>

Yeah, I was looking at the bfd->flags, but they are the same, so
if using bfd_canonicalize_symtab() works, that seems OK.

But I think I'll make it quicker and dirtier by changing the
is_bfd_format(filename) function to take a second "stripped"
argument, and overload the function to return the right
thing depending upon whether it's set or not.  And I'll
probably forego the use of the nm_call and stripped_binary
variables, and just make the creation of the command string
a simple if-else statement...  ;-)

Thanks for finding and testing this.  I never noticed this
issue since I only use the debugful version.

Dave




More information about the Crash-utility mailing list