Bug 6934 - binutils stabs does not read SUNPro C++ namespace stab
Summary: binutils stabs does not read SUNPro C++ namespace stab
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.18
: P2 normal
Target Milestone: ---
Assignee: unassigned
Depends on:
Reported: 2008-10-01 21:35 UTC by Andrew Paprocki
Modified: 2008-10-02 17:11 UTC (History)
1 user (show)

See Also:
Host: sparc-sun-solaris2.10
Target: sparc-sun-solaris2.10
Build: sparc-sun-solaris2.10
Last reconfirmed:

Add support for "=Yn0<name>;" stab (459 bytes, patch)
2008-10-01 21:37 UTC, Andrew Paprocki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Paprocki 2008-10-01 21:35:30 UTC
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.
Comment 1 Andrew Paprocki 2008-10-01 21:37:21 UTC
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.
Comment 2 Andrew Paprocki 2008-10-01 21:38:04 UTC
The patch allows objdump -G to read the following stab generated by SUNPro C++:

Comment 3 Nick Clifton 2008-10-02 17:11:12 UTC
Hi Andrew,

  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  <andrew@ishiboo.com>

	PR 6934
	* stabs.c (parse_stab_string): Parse and ignore =Y<name> strings
	generated by the SUNPro C++ compiler.