- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Using the debugger
Operating System - Linux
1752618
Members
4585
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО07-23-2007 11:42 PM
тАО07-23-2007 11:42 PM
Hi ,
I have the following questions. Please suggest the solution for them.
1) Can I use the WDB debugger with the aCC compiler in HP-UX 11i machine or should i use DDE only.
2) Can I use "-g" Flag to compile the source code so that i can open the executable
3) Can I open the Core dump (core File) in the debuggers ?
thanks in advance
Vikram
I have the following questions. Please suggest the solution for them.
1) Can I use the WDB debugger with the aCC compiler in HP-UX 11i machine or should i use DDE only.
2) Can I use "-g" Flag to compile the source code so that i can open the executable
3) Can I open the Core dump (core File) in the debuggers ?
thanks in advance
Vikram
Solved! Go to Solution.
- Tags:
- gdb
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 01:22 AM
тАО07-24-2007 01:22 AM
Solution
Hi:
_DUPLICATE_ _POST_ _OF_ :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147435
...JRF...
_DUPLICATE_ _POST_ _OF_ :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147435
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 01:37 AM
тАО07-24-2007 01:37 AM
Re: Using the debugger
1) I actually prefer to use gdb since wdb is simply a GUI front-end for gdb but wither can be used.
2) The -g flag is not strictly necessary for debugging but it does make life easier because this options includes debugger data in the object file(s). The most common debugger operation is a stack trace. Without -g, you will see the machine instructions that preceded the aborted but with -g you will see the source file and line number.
3) Yes,
gdb myexe core
If compiling with -g you can also add -d options to tell the debugger where the source files are located.
The bad news is that if you have to ask this kind of stuff, you probably aren't the person that needs to be doing this.
Rather than trying to debug a complex program, I would write a small very buggy program (e.g. use a large negative subscript in an array assignment) and compile your code with -g. Allow it to die and produce a core file and debug it first. You can also run an executable under the debugger. Man gdb for details.
2) The -g flag is not strictly necessary for debugging but it does make life easier because this options includes debugger data in the object file(s). The most common debugger operation is a stack trace. Without -g, you will see the machine instructions that preceded the aborted but with -g you will see the source file and line number.
3) Yes,
gdb myexe core
If compiling with -g you can also add -d options to tell the debugger where the source files are located.
The bad news is that if you have to ask this kind of stuff, you probably aren't the person that needs to be doing this.
Rather than trying to debug a complex program, I would write a small very buggy program (e.g. use a large negative subscript in an array assignment) and compile your code with -g. Allow it to die and produce a core file and debug it first. You can also run an executable under the debugger. Man gdb for details.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 04:02 PM
тАО07-24-2007 04:02 PM
Re: Using the debugger
Why would you want to use the obsolete and unsupported DDE?
If you want a GUI, there is wdb, if you want a command line, there is gdb.
>2) Can I use "-g" Flag to compile the source code so that i can open the executable
(On Unix, you don't (windows) "open" executables, you run or debug them.)
As Clay says, using -g will help tremendously in the debugger.
>Clay: Without -g, you will see the machine instructions that preceded the aborted
On IPF, you'll also see the source and line info, even if you don't use -g.
>If compiling with -g you can also add -d options
You can also use the "dir" command to do this.
>The bad news is that if you have to ask this kind of stuff,
There is all sorts of documentation on the wdb web site:
http://www.hp.com/go/wdb
>I would write a small very buggy program (e.g. use a large negative subscript in an array assignment) and compile your code with -g.
You can also debug this with IPF's +check=bounds.
If you want a GUI, there is wdb, if you want a command line, there is gdb.
>2) Can I use "-g" Flag to compile the source code so that i can open the executable
(On Unix, you don't (windows) "open" executables, you run or debug them.)
As Clay says, using -g will help tremendously in the debugger.
>Clay: Without -g, you will see the machine instructions that preceded the aborted
On IPF, you'll also see the source and line info, even if you don't use -g.
>If compiling with -g you can also add -d options
You can also use the "dir" command to do this.
>The bad news is that if you have to ask this kind of stuff,
There is all sorts of documentation on the wdb web site:
http://www.hp.com/go/wdb
>I would write a small very buggy program (e.g. use a large negative subscript in an array assignment) and compile your code with -g.
You can also debug this with IPF's +check=bounds.
- Tags:
- +check
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP