This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] gdb_get_line_number on unknown tags


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]