Re: [PATCH] Use /usr/bin/nm -D

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Bernhard Walle" <bwalle@xxxxxxx> 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

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux