summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/minsym-fallback.cc
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-01 20:19:04 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-01 20:19:04 +0000
commit3d50dd94cb60adbb423659378bb9d758381959a2 (patch)
tree57833ba4f7654479cdeecd4f05ab34933acde8cc /gdb/testsuite/gdb.cp/minsym-fallback.cc
parentdcf9f4ab7f00dba719a501c8bca3ff446edd200d (diff)
downloadbinutils-gdb-3d50dd94cb60adbb423659378bb9d758381959a2.tar.gz
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.
Diffstat (limited to 'gdb/testsuite/gdb.cp/minsym-fallback.cc')
-rw-r--r--gdb/testsuite/gdb.cp/minsym-fallback.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/minsym-fallback.cc b/gdb/testsuite/gdb.cp/minsym-fallback.cc
index 1ecd2892300..1231f7d9834 100644
--- a/gdb/testsuite/gdb.cp/minsym-fallback.cc
+++ b/gdb/testsuite/gdb.cp/minsym-fallback.cc
@@ -21,3 +21,8 @@ void
C::f ()
{
}
+
+void
+C::operator () ()
+{
+}