GDB Breakpoints in C++
GDB Breakpoints in C++
- Subject: GDB Breakpoints in C++
- From: "Rob Napier" <email@hidden>
- Date: Wed, 9 Jan 2008 20:02:06 -0500
I'm debugging some C++ code in GDB using XCode3. I've set the
breakpoint to run the command "p connection->getType()". When the
breakpoint fires, I get the error "Couldn't find method getType", but
if I then run the command by hand, it works fine.
I've dug into this and found that in the breakpoint-command, "ptype
connection" returns "struct Connection *", while if I run "ptype
connection" by hand I get "class Connection *". I strongly believe
this is the culprit.
This is a multi-threaded application, but I don't think that's related.
How can I make sure that "connection" is treated as an object rather
than a struct during the breakpoint command? I can't just run the
command by hand because what I'm debugging is timing based (the
connections would timeout if I tried to do it by hand).
Thanks,
-Rob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden