| Author |
Message |
programmer *nix forums beginner
Joined: 22 Jun 2006
Posts: 4
|
Posted: Sat Jul 15, 2006 9:28 pm Post subject:
No line numbers when debugging using gcc and gdb
|
|
|
I compiled a small test program on my hpux B.11 system with gcc 4.0.2 and
gdb 5.2 with
gcc -ggdb -o t t.c
When I go into gdb there is no line number information. This works fine on
my solaris 5.10 system.
Any ideas why I do not get line number information on my hpux system? |
|
| Back to top |
|
 |
Eric Gouriou *nix forums beginner
Joined: 08 Sep 2005
Posts: 8
|
Posted: Sat Jul 15, 2006 11:50 pm Post subject:
Re: No line numbers when debugging using gcc and gdb
|
|
|
programmer wrote:
| Quote: | I compiled a small test program on my hpux B.11 system with gcc 4.0.2 and
gdb 5.2 with
gcc -ggdb -o t t.c
When I go into gdb there is no line number information. This works fine on
my solaris 5.10 system.
Any ideas why I do not get line number information on my hpux system?
|
Try -g, instead of -ggdb. Let us know (and maybe the mailing list
hpux-devtools@cup.hp.com) if it helps.
The current gdb release from HP is 5.4 (<http://www.hp.com/go/gdb>).
Eric |
|
| Back to top |
|
 |
Eric Gouriou *nix forums beginner
Joined: 08 Sep 2005
Posts: 8
|
Posted: Sat Jul 15, 2006 11:51 pm Post subject:
Re: No line numbers when debugging using gcc and gdb
|
|
|
Eric Gouriou wrote:
I meant <mailto:hpux-devtools@cxx.cup.hp.com> but forgot the cxx
Eric |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|