aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.linespec/lspec.cc
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-03-04 19:30:28 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-03-04 19:30:28 +0000
commit33f448b11ed775f3d4dcf2c21100ba3b239b6b4a (patch)
tree44b4f4ff304b1518c07b5add2c1018b992864308 /gdb/testsuite/gdb.linespec/lspec.cc
parentfeb1472522ea3ff9c0456462f36ce2e29be29f28 (diff)
downloadgdb-33f448b11ed775f3d4dcf2c21100ba3b239b6b4a.zip
gdb-33f448b11ed775f3d4dcf2c21100ba3b239b6b4a.tar.gz
gdb-33f448b11ed775f3d4dcf2c21100ba3b239b6b4a.tar.bz2
gdb/
* linespec.c (struct linespec_canonical_name): New. (struct linespec_state): Change canonical_names type to it. (add_sal_to_sals): Change variable canonical_name to canonical. Change xrealloc element size. Initialize the different CANONICAL fields. (canonical_to_fullform): New. (filter_results): Use it. Add variables canonical, fullform and cleanup. (struct decode_line_2_item, decode_line_2_compare_items): New. (decode_line_2): Remove variables iter and item_names, add variables items and items_count. Modify the code for these new variables. gdb/testsuite/ * gdb.linespec/base/one/thefile.cc (twodup): New. (m): Call it. * gdb.linespec/base/two/thefile.cc (dupname): New. (n): Call it. * gdb.linespec/break-ask.exp: New file. * gdb.linespec/lspec.cc (body_elsewhere): New comment marker.
Diffstat (limited to 'gdb/testsuite/gdb.linespec/lspec.cc')
-rw-r--r--gdb/testsuite/gdb.linespec/lspec.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.linespec/lspec.cc b/gdb/testsuite/gdb.linespec/lspec.cc
index b1092e2..bb660fb 100644
--- a/gdb/testsuite/gdb.linespec/lspec.cc
+++ b/gdb/testsuite/gdb.linespec/lspec.cc
@@ -9,7 +9,7 @@ int NameSpace::overload()
int body_elsewhere()
{
- int x = 5;
+ int x = 5; /* body_elsewhere marker */
#include "body.h"
}