Bug 11654 - breakpoint thread qualifier not accepted if location is address
Summary: breakpoint thread qualifier not accepted if location is address
Status: RESOLVED DUPLICATE of bug 8704
Alias: None
Product: gdb
Classification: Unclassified
Component: breakpoints (show other bugs)
Version: 7.0
: P2 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 08:37 UTC by Richard Stuckey
Modified: 2010-06-01 09:00 UTC (History)
1 user (show)

See Also:
Host: i486-linux-gnu
Target: i486-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Stuckey 2010-06-01 08:37:23 UTC
The syntax of the 'break' command is

   break [LOCATION] [thread THREADNUM] [if CONDITION]

where location may be "*" followed by an address, e.g.

   break *0x0001e170

However, if the thread qualifier is added, e.g.

   break *0x0001e170 thread 2

then the error message

   A syntax error in expression, near `thread 2'.

is received.

However, no error is reported if the condition is supplied instead, e.g.

    break *0x0001e170 if $sp < 0xFFFF0000
Comment 1 Andreas Schwab 2010-06-01 09:00:07 UTC

*** This bug has been marked as a duplicate of 8704 ***