- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Problem viewing class types in gdb
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2007 02:45 AM
тАО05-14-2007 02:45 AM
Problem viewing class types in gdb
I am trying to debug a C++ code using gdb on HP_UX. When i try to view 'this' pointer, i get the following error:
*****************************************
Internal error: `this' is not an aggregate
*************************************
I am not able to see any data members of class.
Same piece of code is debugged correctly on Linux. Is there any issue with compilation ?
Following are the relevant details:
OS: HP_UX B.11.11 U 9000/800
Compiler: gcc 3.4.2
gdb: HP gdb 5.2 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
thanks
-Sunderjs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2007 10:47 AM
тАО05-14-2007 10:47 AM
Re: Problem viewing class types in gdb
What does "ptype this" show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2007 09:24 PM
тАО05-14-2007 09:24 PM
Re: Problem viewing class types in gdb
We were able to reproduce the issue you have mentioned.
This seems to be a problem with gdb and to some extent with g++ on HPUX.
Even 'ptype this' will give the same error.
We are looking into this issue and shall get back to you in sometime.
Having said that, we encourage you to use the HP aCC compiler and leverage complete debugging support.
Regards,
Mithun
HP-WDB team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2007 11:58 PM
тАО05-20-2007 11:58 PM
Re: Problem viewing class types in gdb
Any update from HP after recreating the problem locally ?
Meanwhile, i am trying to test the same piece of code using g++ 4.1.2 and gdb 5.3
(latest available from HP site).
thanks
-Sunder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 11:48 PM
тАО05-21-2007 11:48 PM
Re: Problem viewing class types in gdb
What are the major differences between compiling with g++ and aCC ? My g++ compiled code gives a lot of errors with aCC (even plain typedef enum is generating error). Is there any information manual that list such differences.
thanks
-Sunder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2007 11:46 AM
тАО05-22-2007 11:46 AM
Re: Problem viewing class types in gdb
aC++ is strict C++, no extensions.
>My g++ compiled code gives a lot of errors with aCC (even plain typedef enum is generating error). Is there any information manual that list such differences?
What does the code look like?
Check g++ for their list of extensions??