mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
33f448b11e
* 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.
20 lines
281 B
C++
20 lines
281 B
C++
#include "lspec.h"
|
|
|
|
static int dupname (int x) { label: return x; }
|
|
|
|
int NameSpace::overload()
|
|
{
|
|
return 23;
|
|
}
|
|
|
|
int body_elsewhere()
|
|
{
|
|
int x = 5; /* body_elsewhere marker */
|
|
#include "body.h"
|
|
}
|
|
|
|
int main()
|
|
{
|
|
return dupname(0) + m(0) + n(0) + f1() + f2() + body_elsewhere();
|
|
}
|