* 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.
This commit is contained in:
Doug Evans 2012-02-02 20:19:17 +00:00
parent 4c9ed63c1f
commit 2c02bd7290
60 changed files with 127 additions and 89 deletions

View File

@ -1,3 +1,37 @@
2012-02-02 Doug Evans <dje@google.com>
* 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.
2012-02-02 Pedro Alves <palves@redhat.com> 2012-02-02 Pedro Alves <palves@redhat.com>
* remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if

View File

@ -92,7 +92,7 @@ alpha_linux_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc)
static int static int
alpha_linux_pc_in_sigtramp (struct gdbarch *gdbarch, alpha_linux_pc_in_sigtramp (struct gdbarch *gdbarch,
CORE_ADDR pc, char *func_name) CORE_ADDR pc, const char *func_name)
{ {
return alpha_linux_sigtramp_offset (gdbarch, pc) >= 0; return alpha_linux_sigtramp_offset (gdbarch, pc) >= 0;
} }

View File

@ -96,7 +96,7 @@ find_proc_desc (CORE_ADDR pc)
struct block *b = block_for_pc (pc); struct block *b = block_for_pc (pc);
struct mdebug_extra_func_info *proc_desc = NULL; struct mdebug_extra_func_info *proc_desc = NULL;
struct symbol *sym = NULL; struct symbol *sym = NULL;
char *sh_name = NULL; const char *sh_name = NULL;
if (b) if (b)
{ {

View File

@ -28,7 +28,7 @@
static int static int
alpha_osf1_pc_in_sigtramp (struct gdbarch *gdbarch, alpha_osf1_pc_in_sigtramp (struct gdbarch *gdbarch,
CORE_ADDR pc, char *func_name) CORE_ADDR pc, const char *func_name)
{ {
return (func_name != NULL && strcmp ("__sigtramp", func_name) == 0); return (func_name != NULL && strcmp ("__sigtramp", func_name) == 0);
} }

View File

@ -999,7 +999,7 @@ alpha_sigtramp_frame_sniffer (const struct frame_unwind *self,
{ {
struct gdbarch *gdbarch = get_frame_arch (this_frame); struct gdbarch *gdbarch = get_frame_arch (this_frame);
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
/* NOTE: cagney/2004-04-30: Do not copy/clone this code. Instead /* NOTE: cagney/2004-04-30: Do not copy/clone this code. Instead
look at tramp-frame.h and other simplier per-architecture look at tramp-frame.h and other simplier per-architecture

View File

@ -86,7 +86,8 @@ struct gdbarch_tdep
/* NOTE: cagney/2004-04-30: Do not copy/clone this code. Instead /* NOTE: cagney/2004-04-30: Do not copy/clone this code. Instead
look at tramp-frame.h and other simplier per-architecture look at tramp-frame.h and other simplier per-architecture
sigtramp unwinders. */ sigtramp unwinders. */
int (*pc_in_sigtramp) (struct gdbarch *gdbarch, CORE_ADDR pc, char *name); int (*pc_in_sigtramp) (struct gdbarch *gdbarch, CORE_ADDR pc,
const char *name);
/* If TYPE will be returned in memory, return true. */ /* If TYPE will be returned in memory, return true. */
int (*return_in_memory) (struct type *type); int (*return_in_memory) (struct type *type);

View File

@ -65,7 +65,7 @@ CORE_ADDR alphafbsd_sigtramp_end = 0x11ffffe0;
static int static int
alphafbsd_pc_in_sigtramp (struct gdbarch *gdbarch, alphafbsd_pc_in_sigtramp (struct gdbarch *gdbarch,
CORE_ADDR pc, char *func_name) CORE_ADDR pc, const char *func_name)
{ {
return (pc >= alphafbsd_sigtramp_start && pc < alphafbsd_sigtramp_end); return (pc >= alphafbsd_sigtramp_start && pc < alphafbsd_sigtramp_end);
} }

View File

@ -241,7 +241,7 @@ alphanbsd_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc)
static int static int
alphanbsd_pc_in_sigtramp (struct gdbarch *gdbarch, alphanbsd_pc_in_sigtramp (struct gdbarch *gdbarch,
CORE_ADDR pc, char *func_name) CORE_ADDR pc, const char *func_name)
{ {
return (nbsd_pc_in_sigtramp (pc, func_name) return (nbsd_pc_in_sigtramp (pc, func_name)
|| alphanbsd_sigtramp_offset (gdbarch, pc) >= 0); || alphanbsd_sigtramp_offset (gdbarch, pc) >= 0);

View File

@ -47,7 +47,7 @@ alphaobsd_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc)
static int static int
alphaobsd_pc_in_sigtramp (struct gdbarch *gdbarch, alphaobsd_pc_in_sigtramp (struct gdbarch *gdbarch,
CORE_ADDR pc, char *name) CORE_ADDR pc, const char *name)
{ {
CORE_ADDR start_pc = (pc & ~(alphaobsd_page_size - 1)); CORE_ADDR start_pc = (pc & ~(alphaobsd_page_size - 1));
unsigned insn; unsigned insn;

View File

@ -156,7 +156,7 @@ static int
amd64_linux_sigtramp_p (struct frame_info *this_frame) amd64_linux_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);

View File

@ -71,7 +71,7 @@ static int
amd64_sol2_sigtramp_p (struct frame_info *this_frame) amd64_sol2_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
return (name && (strcmp ("sigacthandler", name) == 0 return (name && (strcmp ("sigacthandler", name) == 0

View File

@ -39,7 +39,7 @@ static int
amd64nbsd_sigtramp_p (struct frame_info *this_frame) amd64nbsd_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
return nbsd_pc_in_sigtramp (pc, name); return nbsd_pc_in_sigtramp (pc, name);

View File

@ -101,7 +101,7 @@ amd64obsd_sigtramp_p (struct frame_info *this_frame)
}; };
size_t buflen = (sizeof sigreturn) + 1; size_t buflen = (sizeof sigreturn) + 1;
gdb_byte *buf; gdb_byte *buf;
char *name; const char *name;
/* If the function has a valid symbol name, it isn't a /* If the function has a valid symbol name, it isn't a
trampoline. */ trampoline. */
@ -360,7 +360,7 @@ amd64obsd_trapframe_cache (struct frame_info *this_frame, void **this_cache)
struct trad_frame_cache *cache; struct trad_frame_cache *cache;
CORE_ADDR func, sp, addr; CORE_ADDR func, sp, addr;
ULONGEST cs; ULONGEST cs;
char *name; const char *name;
int i; int i;
if (*this_cache) if (*this_cache)
@ -425,7 +425,7 @@ amd64obsd_trapframe_sniffer (const struct frame_unwind *self,
void **this_prologue_cache) void **this_prologue_cache)
{ {
ULONGEST cs; ULONGEST cs;
char *name; const char *name;
/* Check Current Privilege Level and bail out if we're not executing /* Check Current Privilege Level and bail out if we're not executing
in kernel space. */ in kernel space. */

View File

@ -120,7 +120,7 @@ generic_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc)
int int
generic_in_solib_return_trampoline (struct gdbarch *gdbarch, generic_in_solib_return_trampoline (struct gdbarch *gdbarch,
CORE_ADDR pc, char *name) CORE_ADDR pc, const char *name)
{ {
return 0; return 0;
} }

View File

@ -99,7 +99,7 @@ extern CORE_ADDR generic_skip_solib_resolver (struct gdbarch *gdbarch,
CORE_ADDR pc); CORE_ADDR pc);
extern int generic_in_solib_return_trampoline (struct gdbarch *gdbarch, extern int generic_in_solib_return_trampoline (struct gdbarch *gdbarch,
CORE_ADDR pc, char *name); CORE_ADDR pc, const char *name);
extern int generic_in_function_epilogue_p (struct gdbarch *gdbarch, extern int generic_in_function_epilogue_p (struct gdbarch *gdbarch,
CORE_ADDR pc); CORE_ADDR pc);

View File

@ -9101,7 +9101,7 @@ arm_get_longjmp_target (struct frame_info *frame, CORE_ADDR *pc)
CORE_ADDR CORE_ADDR
arm_skip_stub (struct frame_info *frame, CORE_ADDR pc) arm_skip_stub (struct frame_info *frame, CORE_ADDR pc)
{ {
char *name; const char *name;
int namelen; int namelen;
CORE_ADDR start_addr; CORE_ADDR start_addr;

View File

@ -159,7 +159,7 @@ find_pc_function (CORE_ADDR pc)
static CORE_ADDR cache_pc_function_low = 0; static CORE_ADDR cache_pc_function_low = 0;
static CORE_ADDR cache_pc_function_high = 0; static CORE_ADDR cache_pc_function_high = 0;
static char *cache_pc_function_name = 0; static const char *cache_pc_function_name = 0;
static struct obj_section *cache_pc_function_section = NULL; static struct obj_section *cache_pc_function_section = NULL;
static int cache_pc_function_is_gnu_ifunc = 0; static int cache_pc_function_is_gnu_ifunc = 0;
@ -190,7 +190,7 @@ clear_pc_function_cache (void)
/* Backward compatibility, no section argument. */ /* Backward compatibility, no section argument. */
int int
find_pc_partial_function_gnu_ifunc (CORE_ADDR pc, char **name, find_pc_partial_function_gnu_ifunc (CORE_ADDR pc, const char **name,
CORE_ADDR *address, CORE_ADDR *endaddr, CORE_ADDR *address, CORE_ADDR *endaddr,
int *is_gnu_ifunc_p) int *is_gnu_ifunc_p)
{ {
@ -346,7 +346,7 @@ find_pc_partial_function_gnu_ifunc (CORE_ADDR pc, char **name,
is omitted here for backward API compatibility. */ is omitted here for backward API compatibility. */
int int
find_pc_partial_function (CORE_ADDR pc, char **name, CORE_ADDR *address, find_pc_partial_function (CORE_ADDR pc, const char **name, CORE_ADDR *address,
CORE_ADDR *endaddr) CORE_ADDR *endaddr)
{ {
return find_pc_partial_function_gnu_ifunc (pc, name, address, endaddr, NULL); return find_pc_partial_function_gnu_ifunc (pc, name, address, endaddr, NULL);

View File

@ -5874,8 +5874,9 @@ set_breakpoint_location_function (struct bp_location *loc, int explicit_loc)
|| is_tracepoint (loc->owner)) || is_tracepoint (loc->owner))
{ {
int is_gnu_ifunc; int is_gnu_ifunc;
const char *function_name;
find_pc_partial_function_gnu_ifunc (loc->address, &loc->function_name, find_pc_partial_function_gnu_ifunc (loc->address, &function_name,
NULL, NULL, &is_gnu_ifunc); NULL, NULL, &is_gnu_ifunc);
if (is_gnu_ifunc && !explicit_loc) if (is_gnu_ifunc && !explicit_loc)
@ -5883,7 +5884,7 @@ set_breakpoint_location_function (struct bp_location *loc, int explicit_loc)
struct breakpoint *b = loc->owner; struct breakpoint *b = loc->owner;
gdb_assert (loc->pspace == current_program_space); gdb_assert (loc->pspace == current_program_space);
if (gnu_ifunc_resolve_name (loc->function_name, if (gnu_ifunc_resolve_name (function_name,
&loc->requested_address)) &loc->requested_address))
{ {
/* Recalculate ADDRESS based on new REQUESTED_ADDRESS. */ /* Recalculate ADDRESS based on new REQUESTED_ADDRESS. */
@ -5900,8 +5901,8 @@ set_breakpoint_location_function (struct bp_location *loc, int explicit_loc)
} }
} }
if (loc->function_name) if (function_name)
loc->function_name = xstrdup (loc->function_name); loc->function_name = xstrdup (function_name);
} }
} }

View File

@ -1097,7 +1097,7 @@ disassemble_current_function (int flags)
struct frame_info *frame; struct frame_info *frame;
struct gdbarch *gdbarch; struct gdbarch *gdbarch;
CORE_ADDR low, high, pc; CORE_ADDR low, high, pc;
char *name; const char *name;
frame = get_selected_frame (_("No frame selected.")); frame = get_selected_frame (_("No frame selected."));
gdbarch = get_frame_arch (frame); gdbarch = get_frame_arch (frame);
@ -1135,7 +1135,7 @@ disassemble_command (char *arg, int from_tty)
{ {
struct gdbarch *gdbarch = get_current_arch (); struct gdbarch *gdbarch = get_current_arch ();
CORE_ADDR low, high; CORE_ADDR low, high;
char *name; const char *name;
CORE_ADDR pc; CORE_ADDR pc;
int flags; int flags;

View File

@ -920,7 +920,7 @@ elf_gnu_ifunc_resolve_name (const char *name, CORE_ADDR *addr_p)
static CORE_ADDR static CORE_ADDR
elf_gnu_ifunc_resolve_addr (struct gdbarch *gdbarch, CORE_ADDR pc) elf_gnu_ifunc_resolve_addr (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
char *name_at_pc; const char *name_at_pc;
CORE_ADDR start_at_pc, address; CORE_ADDR start_at_pc, address;
struct type *func_func_type = builtin_type (gdbarch)->builtin_func_func; struct type *func_func_type = builtin_type (gdbarch)->builtin_func_func;
struct value *function, *address_val; struct value *function, *address_val;

View File

@ -42,7 +42,8 @@ enum {
}; };
static int static int
frv_linux_pc_in_sigtramp (struct gdbarch *gdbarch, CORE_ADDR pc, char *name) frv_linux_pc_in_sigtramp (struct gdbarch *gdbarch, CORE_ADDR pc,
const char *name)
{ {
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
char buf[frv_instr_size]; char buf[frv_instr_size];
@ -323,7 +324,7 @@ frv_linux_sigtramp_frame_sniffer (const struct frame_unwind *self,
{ {
struct gdbarch *gdbarch = get_frame_arch (this_frame); struct gdbarch *gdbarch = get_frame_arch (this_frame);
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (frv_linux_pc_in_sigtramp (gdbarch, pc, name)) if (frv_linux_pc_in_sigtramp (gdbarch, pc, name))

View File

@ -3008,7 +3008,7 @@ set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch,
} }
int int
gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, char *name) gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, const char *name)
{ {
gdb_assert (gdbarch != NULL); gdb_assert (gdbarch != NULL);
gdb_assert (gdbarch->in_solib_return_trampoline != NULL); gdb_assert (gdbarch->in_solib_return_trampoline != NULL);

View File

@ -631,8 +631,8 @@ extern void set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, gdbarch_sk
/* Some systems also have trampoline code for returning from shared libs. */ /* Some systems also have trampoline code for returning from shared libs. */
typedef int (gdbarch_in_solib_return_trampoline_ftype) (struct gdbarch *gdbarch, CORE_ADDR pc, char *name); typedef int (gdbarch_in_solib_return_trampoline_ftype) (struct gdbarch *gdbarch, CORE_ADDR pc, const char *name);
extern int gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, char *name); extern int gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, const char *name);
extern void set_gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, gdbarch_in_solib_return_trampoline_ftype *in_solib_return_trampoline); extern void set_gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, gdbarch_in_solib_return_trampoline_ftype *in_solib_return_trampoline);
/* A target might have problems with watchpoints as soon as the stack /* A target might have problems with watchpoints as soon as the stack

View File

@ -600,7 +600,7 @@ f:CORE_ADDR:skip_trampoline_code:struct frame_info *frame, CORE_ADDR pc:frame, p
# a step-resume breakpoint to get us past the dynamic linker. # a step-resume breakpoint to get us past the dynamic linker.
m:CORE_ADDR:skip_solib_resolver:CORE_ADDR pc:pc::generic_skip_solib_resolver::0 m:CORE_ADDR:skip_solib_resolver:CORE_ADDR pc:pc::generic_skip_solib_resolver::0
# Some systems also have trampoline code for returning from shared libs. # Some systems also have trampoline code for returning from shared libs.
m:int:in_solib_return_trampoline:CORE_ADDR pc, char *name:pc, name::generic_in_solib_return_trampoline::0 m:int:in_solib_return_trampoline:CORE_ADDR pc, const char *name:pc, name::generic_in_solib_return_trampoline::0
# A target might have problems with watchpoints as soon as the stack # A target might have problems with watchpoints as soon as the stack
# frame of the current function has been destroyed. This mostly happens # frame of the current function has been destroyed. This mostly happens

View File

@ -230,7 +230,7 @@ hppa64_hpux_in_solib_call_trampoline (struct gdbarch *gdbarch,
static int static int
hppa_hpux_in_solib_return_trampoline (struct gdbarch *gdbarch, hppa_hpux_in_solib_return_trampoline (struct gdbarch *gdbarch,
CORE_ADDR pc, char *name) CORE_ADDR pc, const char *name)
{ {
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
struct unwind_table_entry *u; struct unwind_table_entry *u;
@ -981,7 +981,7 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
ALL_OBJFILE_MSYMBOLS (obj, msym) ALL_OBJFILE_MSYMBOLS (obj, msym)
{ {
CORE_ADDR begin, end; CORE_ADDR begin, end;
char *name; const char *name;
gdb_byte buf[2 * HPPA_INSN_SIZE]; gdb_byte buf[2 * HPPA_INSN_SIZE];
int offset; int offset;

View File

@ -254,7 +254,7 @@ static int
i386_linux_sigtramp_p (struct frame_info *this_frame) i386_linux_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
@ -279,7 +279,7 @@ i386_linux_dwarf_signal_frame_p (struct gdbarch *gdbarch,
struct frame_info *this_frame) struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);

View File

@ -281,7 +281,7 @@ static int
i386nto_sigtramp_p (struct frame_info *this_frame) i386nto_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
return name && strcmp ("__signalstub", name) == 0; return name && strcmp ("__signalstub", name) == 0;

View File

@ -55,7 +55,7 @@ static int
i386_sol2_sigtramp_p (struct frame_info *this_frame) i386_sol2_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
return (name && (strcmp ("sigacthandler", name) == 0 return (name && (strcmp ("sigacthandler", name) == 0

View File

@ -2036,7 +2036,7 @@ static int
i386_in_stack_tramp_p (struct gdbarch *gdbarch, CORE_ADDR pc) i386_in_stack_tramp_p (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
gdb_byte insn; gdb_byte insn;
char *name; const char *name;
/* A stack trampoline is detected if no name is associated /* A stack trampoline is detected if no name is associated
to the current pc and if it points inside a trampoline to the current pc and if it points inside a trampoline
@ -3294,7 +3294,7 @@ int
i386_sigtramp_p (struct frame_info *this_frame) i386_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
return (name && strcmp ("_sigtramp", name) == 0); return (name && strcmp ("_sigtramp", name) == 0);
@ -3332,7 +3332,7 @@ static int
i386_svr4_sigtramp_p (struct frame_info *this_frame) i386_svr4_sigtramp_p (struct frame_info *this_frame)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
/* UnixWare uses _sigacthandler. The origin of the other symbols is /* UnixWare uses _sigacthandler. The origin of the other symbols is
currently unknown. */ currently unknown. */

View File

@ -81,7 +81,7 @@ i386obsd_sigtramp_p (struct frame_info *this_frame)
size_t buflen = sizeof sigreturn; size_t buflen = sizeof sigreturn;
const int *offset; const int *offset;
gdb_byte *buf; gdb_byte *buf;
char *name; const char *name;
/* If the function has a valid symbol name, it isn't a /* If the function has a valid symbol name, it isn't a
trampoline. */ trampoline. */
@ -348,7 +348,7 @@ i386obsd_trapframe_cache (struct frame_info *this_frame, void **this_cache)
struct trad_frame_cache *cache; struct trad_frame_cache *cache;
CORE_ADDR func, sp, addr; CORE_ADDR func, sp, addr;
ULONGEST cs; ULONGEST cs;
char *name; const char *name;
int i; int i;
if (*this_cache) if (*this_cache)
@ -413,7 +413,7 @@ i386obsd_trapframe_sniffer (const struct frame_unwind *self,
void **this_prologue_cache) void **this_prologue_cache)
{ {
ULONGEST cs; ULONGEST cs;
char *name; const char *name;
/* Check Current Privilege Level and bail out if we're not executing /* Check Current Privilege Level and bail out if we're not executing
in kernel space. */ in kernel space. */

View File

@ -1036,7 +1036,7 @@ step_once (int skip_subroutines, int single_inst, int count, int thread)
tp->control.step_range_start = tp->control.step_range_end = 1; tp->control.step_range_start = tp->control.step_range_end = 1;
else if (tp->control.step_range_end == 0) else if (tp->control.step_range_end == 0)
{ {
char *name; const char *name;
if (find_pc_partial_function (pc, &name, if (find_pc_partial_function (pc, &name,
&tp->control.step_range_start, &tp->control.step_range_start,

View File

@ -2367,7 +2367,7 @@ struct execution_control_state
int stop_func_filled_in; int stop_func_filled_in;
CORE_ADDR stop_func_start; CORE_ADDR stop_func_start;
CORE_ADDR stop_func_end; CORE_ADDR stop_func_end;
char *stop_func_name; const char *stop_func_name;
int new_thread_event; int new_thread_event;
int wait_some_more; int wait_some_more;
}; };

View File

@ -1834,7 +1834,7 @@ m32c_analyze_prologue (struct gdbarch *arch,
static CORE_ADDR static CORE_ADDR
m32c_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip) m32c_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip)
{ {
char *name; const char *name;
CORE_ADDR func_addr, func_end, sal_end; CORE_ADDR func_addr, func_end, sal_end;
struct m32c_prologue p; struct m32c_prologue p;
@ -2353,7 +2353,7 @@ m32c_skip_trampoline_code (struct frame_info *frame, CORE_ADDR stop_pc)
someone loaded a new executable, and I'm not quite sure of the someone loaded a new executable, and I'm not quite sure of the
best way to do that. find_pc_partial_function does do some best way to do that. find_pc_partial_function does do some
caching, so we'll see how this goes. */ caching, so we'll see how this goes. */
char *name; const char *name;
CORE_ADDR start, end; CORE_ADDR start, end;
if (find_pc_partial_function (stop_pc, &name, &start, &end)) if (find_pc_partial_function (stop_pc, &name, &start, &end))
@ -2586,7 +2586,7 @@ m32c_virtual_frame_pointer (struct gdbarch *gdbarch, CORE_ADDR pc,
int *frame_regnum, int *frame_regnum,
LONGEST *frame_offset) LONGEST *frame_offset)
{ {
char *name; const char *name;
CORE_ADDR func_addr, func_end, sal_end; CORE_ADDR func_addr, func_end, sal_end;
struct m32c_prologue p; struct m32c_prologue p;

View File

@ -173,7 +173,7 @@ m32r_linux_rt_sigtramp_start (CORE_ADDR pc, struct frame_info *this_frame)
} }
static int static int
m32r_linux_pc_in_sigtramp (CORE_ADDR pc, char *name, m32r_linux_pc_in_sigtramp (CORE_ADDR pc, const char *name,
struct frame_info *this_frame) struct frame_info *this_frame)
{ {
/* If we have NAME, we can optimize the search. The trampolines are /* If we have NAME, we can optimize the search. The trampolines are
@ -293,7 +293,7 @@ m32r_linux_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (m32r_linux_pc_in_sigtramp (pc, name, this_frame)) if (m32r_linux_pc_in_sigtramp (pc, name, this_frame))

View File

@ -1911,7 +1911,7 @@ mep_analyze_prologue (struct gdbarch *gdbarch,
static CORE_ADDR static CORE_ADDR
mep_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) mep_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
char *name; const char *name;
CORE_ADDR func_addr, func_end; CORE_ADDR func_addr, func_end;
struct mep_prologue p; struct mep_prologue p;

View File

@ -228,7 +228,7 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
CORE_ADDR current_pc, CORE_ADDR current_pc,
struct microblaze_frame_cache *cache) struct microblaze_frame_cache *cache)
{ {
char *name; const char *name;
CORE_ADDR func_addr, func_end, addr, stop, prologue_end_addr = 0; CORE_ADDR func_addr, func_end, addr, stop, prologue_end_addr = 0;
unsigned long insn; unsigned long insn;
int rn, rd, ra, rb, imm; int rn, rd, ra, rb, imm;

View File

@ -5313,7 +5313,7 @@ static CORE_ADDR
mips_skip_mips16_trampoline_code (struct frame_info *frame, CORE_ADDR pc) mips_skip_mips16_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
{ {
struct gdbarch *gdbarch = get_frame_arch (frame); struct gdbarch *gdbarch = get_frame_arch (frame);
char *name; const char *name;
CORE_ADDR start_addr; CORE_ADDR start_addr;
/* Find the starting address and name of the function containing the PC. */ /* Find the starting address and name of the function containing the PC. */

View File

@ -1061,7 +1061,7 @@ mn10300_analyze_prologue (struct gdbarch *gdbarch,
static CORE_ADDR static CORE_ADDR
mn10300_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) mn10300_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
char *name; const char *name;
CORE_ADDR func_addr, func_end; CORE_ADDR func_addr, func_end;
struct mn10300_prologue p; struct mn10300_prologue p;

View File

@ -218,7 +218,7 @@ static CORE_ADDR
moxie_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) moxie_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
CORE_ADDR func_addr = 0, func_end = 0; CORE_ADDR func_addr = 0, func_end = 0;
char *func_name; const char *func_name;
/* See if we can determine the end of the prologue via the symbol table. /* See if we can determine the end of the prologue via the symbol table.
If so, then return either PC, or the PC after the prologue, whichever If so, then return either PC, or the PC after the prologue, whichever

View File

@ -408,7 +408,7 @@ mt_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
CORE_ADDR func_addr = 0, func_end = 0; CORE_ADDR func_addr = 0, func_end = 0;
char *func_name; const char *func_name;
unsigned long instr; unsigned long instr;
if (find_pc_partial_function (pc, &func_name, &func_addr, &func_end)) if (find_pc_partial_function (pc, &func_name, &func_addr, &func_end))

View File

@ -40,7 +40,7 @@ nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
} }
int int
nbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name) nbsd_pc_in_sigtramp (CORE_ADDR pc, const char *func_name)
{ {
/* Check for libc-provided signal trampoline. All such trampolines /* Check for libc-provided signal trampoline. All such trampolines
have function names which begin with "__sigtramp". */ have function names which begin with "__sigtramp". */

View File

@ -23,6 +23,6 @@
struct link_map_offsets *nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void); struct link_map_offsets *nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void);
struct link_map_offsets *nbsd_lp64_solib_svr4_fetch_link_map_offsets (void); struct link_map_offsets *nbsd_lp64_solib_svr4_fetch_link_map_offsets (void);
int nbsd_pc_in_sigtramp (CORE_ADDR, char *); int nbsd_pc_in_sigtramp (CORE_ADDR, const char *);
#endif /* NBSD_TDEP_H */ #endif /* NBSD_TDEP_H */

View File

@ -130,7 +130,7 @@ ppcobsd_sigtramp_frame_sniffer (const struct frame_unwind *self,
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
CORE_ADDR start_pc = (pc & ~(ppcobsd_page_size - 1)); CORE_ADDR start_pc = (pc & ~(ppcobsd_page_size - 1));
const int *offset; const int *offset;
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (name) if (name)

View File

@ -1954,7 +1954,7 @@ mips_wait (struct target_ops *ops,
is not a normal breakpoint. */ is not a normal breakpoint. */
if (strcmp (target_shortname, "lsi") == 0) if (strcmp (target_shortname, "lsi") == 0)
{ {
char *func_name; const char *func_name;
CORE_ADDR func_start; CORE_ADDR func_start;
CORE_ADDR pc = regcache_read_pc (get_current_regcache ()); CORE_ADDR pc = regcache_read_pc (get_current_regcache ());

View File

@ -2189,7 +2189,7 @@ rs6000_frame_align (struct gdbarch *gdbarch, CORE_ADDR addr)
static int static int
rs6000_in_solib_return_trampoline (struct gdbarch *gdbarch, rs6000_in_solib_return_trampoline (struct gdbarch *gdbarch,
CORE_ADDR pc, char *name) CORE_ADDR pc, const char *name)
{ {
return name && !strncmp (name, "@FIX", 4); return name && !strncmp (name, "@FIX", 4);
} }

View File

@ -353,7 +353,7 @@ rx_analyze_prologue (CORE_ADDR start_pc,
static CORE_ADDR static CORE_ADDR
rx_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) rx_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
char *name; const char *name;
CORE_ADDR func_addr, func_end; CORE_ADDR func_addr, func_end;
struct rx_prologue p; struct rx_prologue p;

View File

@ -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 skip_info (char *arg, int from_tty);
static void add_skiplist_entry (struct skiplist_entry *e); 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, struct gdbarch *arch,
int pending); int pending);
@ -133,7 +133,7 @@ static void
skip_function_command (char *arg, int from_tty) skip_function_command (char *arg, int from_tty)
{ {
CORE_ADDR func_pc; CORE_ADDR func_pc;
char *name = NULL; const char *name = NULL;
/* Default to the current function if no argument is given. */ /* Default to the current function if no argument is given. */
if (arg == 0) if (arg == 0)
@ -397,7 +397,7 @@ skip_delete_command (char *arg, int from_tty)
function name and add it to the list. */ function name and add it to the list. */
static void 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) int pending)
{ {
struct skiplist_entry *e = XZALLOC (struct skiplist_entry); struct skiplist_entry *e = XZALLOC (struct skiplist_entry);
@ -524,7 +524,7 @@ skip_re_set (void)
CORE_ADDR pc = sal.pc; CORE_ADDR pc = sal.pc;
CORE_ADDR func_start = 0; CORE_ADDR func_start = 0;
struct gdbarch *arch = get_sal_arch (sal); 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)) if (find_pc_partial_function (pc, &func_name, &func_start, 0))
{ {

View File

@ -66,7 +66,7 @@ const struct sparc_gregset sparc32_sol2_gregset =
ignore this. */ ignore this. */
int int
sparc_sol2_pc_in_sigtramp (CORE_ADDR pc, char *name) sparc_sol2_pc_in_sigtramp (CORE_ADDR pc, const char *name)
{ {
return (name && (strcmp (name, "sigacthandler") == 0 return (name && (strcmp (name, "sigacthandler") == 0
|| strcmp (name, "ucbsigvechandler") == 0 || strcmp (name, "ucbsigvechandler") == 0
@ -152,7 +152,7 @@ sparc32_sol2_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc_sol2_pc_in_sigtramp (pc, name)) if (sparc_sol2_pc_in_sigtramp (pc, name))

View File

@ -215,7 +215,7 @@ extern void sparc32_collect_fpregset (const struct regcache *regcache,
/* Register offsets for Solaris 2. */ /* Register offsets for Solaris 2. */
extern const struct sparc_gregset sparc32_sol2_gregset; extern const struct sparc_gregset sparc32_sol2_gregset;
extern int sparc_sol2_pc_in_sigtramp (CORE_ADDR pc, char *name); extern int sparc_sol2_pc_in_sigtramp (CORE_ADDR pc, const char *name);
extern char *sparc_sol2_static_transform_name (char *name); extern char *sparc_sol2_static_transform_name (char *name);

View File

@ -130,7 +130,7 @@ sparc64_sol2_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc_sol2_pc_in_sigtramp (pc, name)) if (sparc_sol2_pc_in_sigtramp (pc, name))

View File

@ -84,7 +84,7 @@ sparc64fbsd_collect_fpregset (const struct regset *regset,
/* Signal trampolines. */ /* Signal trampolines. */
static int static int
sparc64fbsd_pc_in_sigtramp (CORE_ADDR pc, char *name) sparc64fbsd_pc_in_sigtramp (CORE_ADDR pc, const char *name)
{ {
return (name && strcmp (name, "__sigtramp") == 0); return (name && strcmp (name, "__sigtramp") == 0);
} }
@ -189,7 +189,7 @@ sparc64fbsd_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc64fbsd_pc_in_sigtramp (pc, name)) if (sparc64fbsd_pc_in_sigtramp (pc, name))

View File

@ -79,7 +79,7 @@ static const CORE_ADDR sparc64nbsd_sigtramp_start = 0xffffffffffffdee4ULL;
static const CORE_ADDR sparc64nbsd_sigtramp_end = 0xffffffffffffe000ULL; static const CORE_ADDR sparc64nbsd_sigtramp_end = 0xffffffffffffe000ULL;
static int static int
sparc64nbsd_pc_in_sigtramp (CORE_ADDR pc, char *name) sparc64nbsd_pc_in_sigtramp (CORE_ADDR pc, const char *name)
{ {
if (pc >= sparc64nbsd_sigtramp_start && pc < sparc64nbsd_sigtramp_end) if (pc >= sparc64nbsd_sigtramp_start && pc < sparc64nbsd_sigtramp_end)
return 1; return 1;
@ -214,7 +214,7 @@ sparc64nbsd_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc64nbsd_pc_in_sigtramp (pc, name)) if (sparc64nbsd_pc_in_sigtramp (pc, name))

View File

@ -93,7 +93,7 @@ static const int sparc64obsd_sigreturn_offset[] = {
}; };
static int static int
sparc64obsd_pc_in_sigtramp (CORE_ADDR pc, char *name) sparc64obsd_pc_in_sigtramp (CORE_ADDR pc, const char *name)
{ {
CORE_ADDR start_pc = (pc & ~(sparc64obsd_page_size - 1)); CORE_ADDR start_pc = (pc & ~(sparc64obsd_page_size - 1));
unsigned long insn; unsigned long insn;
@ -182,7 +182,7 @@ sparc64obsd_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc64obsd_pc_in_sigtramp (pc, name)) if (sparc64obsd_pc_in_sigtramp (pc, name))
@ -259,7 +259,7 @@ sparc64obsd_trapframe_sniffer (const struct frame_unwind *self,
{ {
CORE_ADDR pc; CORE_ADDR pc;
ULONGEST pstate; ULONGEST pstate;
char *name; const char *name;
/* Check whether we are in privileged mode, and bail out if we're not. */ /* Check whether we are in privileged mode, and bail out if we're not. */
pstate = get_frame_register_unsigned (this_frame, SPARC64_PSTATE_REGNUM); pstate = get_frame_register_unsigned (this_frame, SPARC64_PSTATE_REGNUM);

View File

@ -87,7 +87,7 @@ static const CORE_ADDR sparc32nbsd_sigtramp_start = 0xeffffef0;
static const CORE_ADDR sparc32nbsd_sigtramp_end = 0xeffffff0; static const CORE_ADDR sparc32nbsd_sigtramp_end = 0xeffffff0;
static int static int
sparc32nbsd_pc_in_sigtramp (CORE_ADDR pc, char *name) sparc32nbsd_pc_in_sigtramp (CORE_ADDR pc, const char *name)
{ {
if (pc >= sparc32nbsd_sigtramp_start && pc < sparc32nbsd_sigtramp_end) if (pc >= sparc32nbsd_sigtramp_start && pc < sparc32nbsd_sigtramp_end)
return 1; return 1;
@ -238,7 +238,7 @@ sparc32nbsd_sigcontext_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc32nbsd_pc_in_sigtramp (pc, name)) if (sparc32nbsd_pc_in_sigtramp (pc, name))

View File

@ -47,7 +47,7 @@
static const int sparc32obsd_page_size = 4096; static const int sparc32obsd_page_size = 4096;
static int static int
sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, char *name) sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, const char *name)
{ {
CORE_ADDR start_pc = (pc & ~(sparc32obsd_page_size - 1)); CORE_ADDR start_pc = (pc & ~(sparc32obsd_page_size - 1));
unsigned long insn; unsigned long insn;
@ -127,7 +127,7 @@ sparc32obsd_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache) void **this_cache)
{ {
CORE_ADDR pc = get_frame_pc (this_frame); CORE_ADDR pc = get_frame_pc (this_frame);
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc32obsd_pc_in_sigtramp (pc, name)) if (sparc32obsd_pc_in_sigtramp (pc, name))

View File

@ -952,14 +952,14 @@ extern struct symbol *find_pc_function (CORE_ADDR);
extern struct symbol *find_pc_sect_function (CORE_ADDR, struct obj_section *); extern struct symbol *find_pc_sect_function (CORE_ADDR, struct obj_section *);
extern int find_pc_partial_function_gnu_ifunc (CORE_ADDR pc, char **name, extern int find_pc_partial_function_gnu_ifunc (CORE_ADDR pc, const char **name,
CORE_ADDR *address, CORE_ADDR *address,
CORE_ADDR *endaddr, CORE_ADDR *endaddr,
int *is_gnu_ifunc_p); int *is_gnu_ifunc_p);
/* lookup function from address, return name, start addr and end addr. */ /* lookup function from address, return name, start addr and end addr. */
extern int find_pc_partial_function (CORE_ADDR, char **, CORE_ADDR *, extern int find_pc_partial_function (CORE_ADDR, const char **, CORE_ADDR *,
CORE_ADDR *); CORE_ADDR *);
extern void clear_pc_function_cache (void); extern void clear_pc_function_cache (void);

View File

@ -378,7 +378,8 @@ tui_show_frame_info (struct frame_info *fi)
} }
else else
{ {
if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL, if (find_pc_partial_function (get_frame_pc (fi),
(const char **) NULL,
&low, (CORE_ADDR) 0) == 0) &low, (CORE_ADDR) 0) == 0)
{ {
/* There is no symbol available for current PC. There is no /* There is no symbol available for current PC. There is no

View File

@ -65,7 +65,7 @@ vaxobsd_sigtramp_sniffer (const struct frame_unwind *self,
CORE_ADDR start_pc = (pc & ~(vaxobsd_page_size - 1)); CORE_ADDR start_pc = (pc & ~(vaxobsd_page_size - 1));
CORE_ADDR sigreturn_addr = start_pc + vaxobsd_sigreturn_offset; CORE_ADDR sigreturn_addr = start_pc + vaxobsd_sigreturn_offset;
gdb_byte *buf; gdb_byte *buf;
char *name; const char *name;
find_pc_partial_function (pc, &name, NULL, NULL); find_pc_partial_function (pc, &name, NULL, NULL);
if (name) if (name)

View File

@ -1118,7 +1118,7 @@ handle_exception (struct target_waitstatus *ourstatus)
cygwin later in the process and will be sent as a cygwin later in the process and will be sent as a
cygwin-specific-signal. So, ignore SEGVs if they show up cygwin-specific-signal. So, ignore SEGVs if they show up
within the text segment of the DLL itself. */ within the text segment of the DLL itself. */
char *fn; const char *fn;
CORE_ADDR addr = (CORE_ADDR) (uintptr_t) CORE_ADDR addr = (CORE_ADDR) (uintptr_t)
current_event.u.Exception.ExceptionRecord.ExceptionAddress; current_event.u.Exception.ExceptionRecord.ExceptionAddress;

View File

@ -413,7 +413,7 @@ static CORE_ADDR
xstormy16_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) xstormy16_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{ {
CORE_ADDR func_addr = 0, func_end = 0; CORE_ADDR func_addr = 0, func_end = 0;
char *func_name; const char *func_name;
if (find_pc_partial_function (pc, &func_name, &func_addr, &func_end)) if (find_pc_partial_function (pc, &func_name, &func_addr, &func_end))
{ {