Daniel Jacobowitz schrieb:
On Mon, Jan 28, 2008 at 12:38:14AM +0100, David Ayers wrote:
Package: gdb
Version: 6.6.dfsg.90.20070912-1
Severity: normal

Trying to send ObjC messages on the prompt fails:

(gdb) p [@"l" class]
A syntax error in expression, near `[@"l" class]'.

Note that it would also fail with variables.

Does "set language objective-c" help?


Indeed it does, that's great!

(gdb) set language objective-c
Warning: the current language does not match this frame.
(gdb) p [@"" class]
$1 = (struct objc_class *) 0xb7cef1a0

Note I just tested this from a breakpoint within an ObjC file:

Breakpoint 1, -[Application autoActionsForBundleNamed:] (self=0xb713e010,
    _cmd=0x84d7500, bn=0xc073598) at Application.m:5520

So I suppose it's just minor bug in the automatic language detection. Let me know if I can give any further information...

Thanks a lot!
David



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to