breakpoints/2008: gdb fails to re-parse breakpoint condition

Tom Tromey
Fri Sep 23 13:08:00 GMT 2005

>Number:         2008
>Category:       breakpoints
>Synopsis:       gdb fails to re-parse breakpoint condition
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 09 21:08:01 UTC 2005
>Originator:     Tom Tromey <>
>Release:        GNU gdb
x86 Fedora Core 2
I set a breakpoint on a function in libgcj.
Then I make this breakpoint conditional:

cond 3 !strcmp (((char*) (*(class _Jv_VTable**) value), "java.lang.NullPointerException")

At the time I make the breakpoint and conditional,
the current frame is a C++ frame.

I "cont".  gdb goes along ok for a while and then
I get many messages like this:

Error in re-setting breakpoint 3:
syntax error: near `*) (*(_Jv_VTable**) value), "java.lang.NullPointerException")'

I can work around this problem by clearing the condition,
doing "set lang c++", and then adding the condition again.
Then gdb will not complain after a "cont".




More information about the Gdb-prs mailing list