Question about gdb
Question about gdb
- Subject: Question about gdb
- From: Gerben Wierda <email@hidden>
- Date: Thu, 26 Sep 2002 19:47:36 +0200
A few weeks ago when I had a lot of changes in my app, gdb started to
have problems with my binary. Especially, it does not recognize *most*
of the NSStrings in my app anymore. Suddenly, they are displayed as
being {...} and they cannot be inspected anymore and they seem to be of
another Class than NSString. Some NSStrings still ca be inspected and
are recognized as such, most are not. Those parts of the app work fine
and NSLog-based inspection works fine too. The app still works (well, I
do have problems with parts where I might not understand Cocoa/syste
behaviour and this is why I need gdb to work at this point).
Take for instance the following code:
NSString *unarchiver = [[NSBundle mainBundle]
pathForResource:@"gnutar" ofType:nil];
now when I inspect this in PB-gdb it tells me variable unarchiver has
value {...}. Inspecting it (uncollapsing it) tells me it is of a class
that has members _urlString and _baseURL, etc, and for instance the
NSString argument of the method also has this strange structure
according to gdb and the _urlString member contains what I would expect
as contents of the NSString. The _urlString member of unarcghiver above
contains something unrelated alltogether according to gdb, but works
fine if gdb is not involved.
Somehow either gdb is in error, or I have made a programming error
somewhere (I suspect this is the case) that has destroyed Class
information, or what? Has anyone seen this before and is there a clue
how to find the source of this?
I am sorry I cannot be more clear than this. Does this ring a bell with
someone?
G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.