aboutsummaryrefslogtreecommitdiff
path: root/gdb/skip.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-02-02 20:19:17 +0000
committerDoug Evans <dje@google.com>2012-02-02 20:19:17 +0000
commit2c02bd729076b940958bccf68f1cc0b1ecf8403b (patch)
tree013e985526bbe3be19b7e5c7f5d19234a7ab37c4 /gdb/skip.c
parent4c9ed63c1f5f1c2921fb7b4761b92f838c7ded23 (diff)
downloadgdb-2c02bd729076b940958bccf68f1cc0b1ecf8403b.zip
gdb-2c02bd729076b940958bccf68f1cc0b1ecf8403b.tar.gz
gdb-2c02bd729076b940958bccf68f1cc0b1ecf8403b.tar.bz2
* blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
"name" parameter to const char ** from char **. All callers updated. (find_pc_partial_function): Ditto. (cache_pc_function_name): Change type to const char * from char *. * symtab.h ((find_pc_partial_function_gnu_ifunc): Update. (find_pc_partial_function): Update. * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change type of "name" parameter to const char * from char *. All uses updated. * arch-utils.c (generic_in_solib_return_trampoline): Change type of "name" parameter to const char * from char *. * arch-utils.h (generic_in_solib_return_trampoline): Update. * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change type of "name" parameter to const char * from char *. * gdbarch.sh (in_solib_return_trampoline): Ditto. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update. * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update. * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change type of "name" parameter to const char * from char *. * skip.c (skip_function_pc): Ditto. * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto. * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update. * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto. * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto. * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto. * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto. * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto. * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name". * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
Diffstat (limited to 'gdb/skip.c')
-rw-r--r--gdb/skip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/skip.c b/gdb/skip.c
index 637f4e0..d983a80 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -67,7 +67,7 @@ static void skip_file_command (char *arg, int from_tty);
static void skip_info (char *arg, int from_tty);
static void add_skiplist_entry (struct skiplist_entry *e);
-static void skip_function_pc (CORE_ADDR pc, char *name,
+static void skip_function_pc (CORE_ADDR pc, const char *name,
struct gdbarch *arch,
int pending);
@@ -133,7 +133,7 @@ static void
skip_function_command (char *arg, int from_tty)
{
CORE_ADDR func_pc;
- char *name = NULL;
+ const char *name = NULL;
/* Default to the current function if no argument is given. */
if (arg == 0)
@@ -397,7 +397,7 @@ skip_delete_command (char *arg, int from_tty)
function name and add it to the list. */
static void
-skip_function_pc (CORE_ADDR pc, char *name, struct gdbarch *arch,
+skip_function_pc (CORE_ADDR pc, const char *name, struct gdbarch *arch,
int pending)
{
struct skiplist_entry *e = XZALLOC (struct skiplist_entry);
@@ -524,7 +524,7 @@ skip_re_set (void)
CORE_ADDR pc = sal.pc;
CORE_ADDR func_start = 0;
struct gdbarch *arch = get_sal_arch (sal);
- char *func_name;
+ const char *func_name;
if (find_pc_partial_function (pc, &func_name, &func_start, 0))
{