Re: [Fwd: gdb not finding types ( 10.5 Leopard )]
Re: [Fwd: gdb not finding types ( 10.5 Leopard )]
- Subject: Re: [Fwd: gdb not finding types ( 10.5 Leopard )]
- From: Rohitash Panda <email@hidden>
- Date: Thu, 26 Mar 2009 19:10:45 +0530
- Organization: Oracle Corporation
You mean recompile all the .c to .o with -gdwarf-2 and the re-link the
executable.
I even compiled the .c files with "-g3 -gdwarf-2 -gfull -O0" and
relinked the executable ,
but didn't help.Even dwarfdump doesn't report of the symbol .
Since I first generate .o's and then relink the executable , how am I
supposed to run dsymutil ?
Thanks.
Jonas Maebe wrote:
On 26 Mar 2009, at 11:26, Rohitash Panda wrote:
I am seeing issues with gdb not able to
map/recognize some variable types,
even after I have compiled the C file in debug mode .
I followed the tips mentioned in the below url
http://developer.apple.com/releasenotes/developertools/RN-GDB/index.html#//apple_ref/doc/uid/TP40001008-DontLinkElementID_7
I "|set read-type-psyms 1" in my .gdbinit file and recompiled the C
file with
-gfull -ggdb . But it still *doesn't* work . Is this some gdb bug ?
$ gdb -version
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49
UTC 2007)
|Is there any other way to make it work ?
Try compiling (everything) with dwarf instead, and make sure to run
dsymutil afterwards:
gcc -gdwarf-2 -o myapp ...
dsymutil myapp
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Rohitash
Panda | Database Platform Specific Development
Server
Technologies
|
Oracle
is committed to developing practices and products that help protect the
environment
|
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden