gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 1 Jul 2011 20:19:04 +0000 (20:19 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 1 Jul 2011 20:19:04 +0000 (20:19 +0000)
commit3d50dd94cb60adbb423659378bb9d758381959a2
tree57833ba4f7654479cdeecd4f05ab34933acde8cc
parentdcf9f4ab7f00dba719a501c8bca3ff446edd200d
gdb/
Stop on first linespec terminator instead of eating what we can.
* linespec.c (is_linespec_boundary): New function.
(name_end): Remove function.
(keep_name_info): New parameter on_boundary, replace the body.
(decode_line_1): Provide the parameter to keep_name_info.
(decode_compound): Likewise.  Drop the trailing java return type
handling.  Twice.

gdb/testsuite/
Stop on first linespec terminator instead of eating what we can.
* gdb.cp/minsym-fallback-main.cc (main): Call also C::operator ().
* gdb.cp/minsym-fallback.cc (C::operator ()): Define.
* gdb.cp/minsym-fallback.exp (break 'C::f()'): Change to ...
(break C::f()): ... this one.
(break C::operator()()): New test.
* gdb.cp/minsym-fallback.h (C::operator ()): Declare.
* gdb.java/jmisc.exp (break jmisc.main(java.lang.String[])int): New
test.
gdb/ChangeLog
gdb/linespec.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/minsym-fallback-main.cc
gdb/testsuite/gdb.cp/minsym-fallback.cc
gdb/testsuite/gdb.cp/minsym-fallback.exp
gdb/testsuite/gdb.cp/minsym-fallback.h
gdb/testsuite/gdb.java/jmisc.exp