aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-10-18 20:14:45 +0000
committerTom Tromey <tromey@redhat.com>2012-10-18 20:14:45 +0000
commit0b0865da626e7e2cd07073d11399dad643e192df (patch)
tree71054757a8f1361f0ed93d4deb8a91f8d5fafa20 /gdb/breakpoint.c
parent94b0e70d0c2a1309e3527a85a4c31a7eda4243d8 (diff)
downloadgdb-0b0865da626e7e2cd07073d11399dad643e192df.zip
gdb-0b0865da626e7e2cd07073d11399dad643e192df.tar.gz
gdb-0b0865da626e7e2cd07073d11399dad643e192df.tar.bz2
* tracepoint.c (print_one_static_tracepoint_marker): Constify.
* symtab.c (iterate_over_some_symtabs): Constify. * source.h (symtab_to_fullname): Return 'const char *'. * source.c (symtab_to_fullname): Return 'const char *'. * python/py-symtab.c (stpy_fullname): Constify. * cli/cli-cmds.c (edit_command): Constify. * breakpoint.c (print_breakpoint_location) (update_static_tracepoint): Constify.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 4a5c8c1..76e3e89 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5689,7 +5689,7 @@ print_breakpoint_location (struct breakpoint *b,
if (ui_out_is_mi_like_p (uiout))
{
struct symtab_and_line sal = find_pc_line (loc->address, 0);
- char *fullname = symtab_to_fullname (sal.symtab);
+ const char *fullname = symtab_to_fullname (sal.symtab);
if (fullname)
ui_out_field_string (uiout, "fullname", fullname);
@@ -13822,7 +13822,7 @@ update_static_tracepoint (struct breakpoint *b, struct symtab_and_line sal)
if (ui_out_is_mi_like_p (uiout))
{
- char *fullname = symtab_to_fullname (sal2.symtab);
+ const char *fullname = symtab_to_fullname (sal2.symtab);
if (fullname)
ui_out_field_string (uiout, "fullname", fullname);