stabs.c is missing support for many SUNPro C++ stabs. This patch will add
support for reading the "=Yn0<name>;" stab so that basic C++ objects can be used
with objdump. Upon adding this support, I was able to read full C++ objects
without adding any of the other missing stabs.
Created attachment 2972 [details]
Add support for "=Yn0<name>;" stab
This patch adds just one of the missing SUNPro Y stab types. I've noted the
other missing types to make it clear for any others which hit them.
The patch allows objdump -G to read the following stab generated by SUNPro C++:
I have applied your patch, along with the changelog entry below. (Note - it
is nice if you can submit your own changelog entry when you submit a patch...)
2008-10-02 Andrew Paprocki <email@example.com>
* stabs.c (parse_stab_string): Parse and ignore =Y<name> strings
generated by the SUNPro C++ compiler.