aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-09-24 07:40:32 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-09-24 07:40:32 +0000
commited0616c6b78a0966e24cdcecf48ebe8e581a0448 (patch)
tree08b6c9c86853d2274b0179e8e333e02ae53f767c /gdb/linespec.c
parentfad9eaf0deff64167032634213f1070193d929f7 (diff)
downloadgdb-ed0616c6b78a0966e24cdcecf48ebe8e581a0448.zip
gdb-ed0616c6b78a0966e24cdcecf48ebe8e581a0448.tar.gz
gdb-ed0616c6b78a0966e24cdcecf48ebe8e581a0448.tar.bz2
* breakpoint.c (remove_sal): New.
(expand_line_sal_maybe): New. (create_breakpoints): Call expand_line_sal_maybe. (clear_command): Add comment. (breakpoint_re_set_one): Call expand_line_sal_maybe. * linespec.c (decode_indirect): Set explicit_pc to 1. (decode_all_digits): Set explicit_line to 1. (append_expanded_sal): New. (expand_line_sal): New. * linespec.h (expand_line_sal): Declare. * symtab.c (init_sal): Initialize explicit_pc and explicit_line. * symtab.h (struct symtab_and_line): New fields explicit_pc and explicit_line.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 5c6f756..b2ffcde 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -963,6 +963,7 @@ decode_indirect (char **argptr)
values.sals[0] = find_pc_line (pc, 0);
values.sals[0].pc = pc;
values.sals[0].section = find_pc_overlay (pc);
+ values.sals[0].explicit_pc = 1;
return values;
}
@@ -1633,6 +1634,7 @@ decode_all_digits (char **argptr, struct symtab *default_symtab,
values.nelts = 1;
if (need_canonical)
build_canonical_line_spec (values.sals, NULL, canonical);
+ values.sals[0].explicit_line = 1;
return values;
}