[RFA] gdb_get_line_number on unknown tags
Keith Seitz
keiths@redhat.com
Thu Mar 8 22:20:00 GMT 2012
On 03/08/2012 02:08 PM, Tom Tromey wrote:
>>>>>> "Keith" == Keith Seitz<keiths@redhat.com> writes:
>
> Keith> This is occurring because the two tests which do it are using
> Keith> gdb_get_line_number on a tag which is not defined in the source
> Keith> file.
>
> I wonder whether this should be an error.
According to gdb.exp, gdb_get_line_number is supposed to return -1, but
I agree: I think gdb_get_line_number should throw an error. If you would
like, I can work up a patch for that. Just ping my on IRC.
> Keith> 2012-03-08 Keith Seitz<keiths@redhat.com>
>
> Keith> * gdb.ada/array_bounds.exp: Get breakpoint for line
> Keith> with "START", not "STOP".
> Keith> * gdb.python/py-infthread.exp: Do not continue to
> Keith> line marked "Break here.", which is undefined.
>
> Ok.
Committed. Thank you!
Keith
More information about the Gdb-patches
mailing list