Index: gdb/m32c-tdep.c |
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c |
index 17bfd6aabb6cc9bbae8101e09e9d10240ba849bf..b680fa07dbad6e0a6d66cc9b7ce7baccc5a35927 100644 |
--- a/gdb/m32c-tdep.c |
+++ b/gdb/m32c-tdep.c |
@@ -1834,7 +1834,7 @@ m32c_analyze_prologue (struct gdbarch *arch, |
static CORE_ADDR |
m32c_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip) |
{ |
- char *name; |
+ const char *name; |
CORE_ADDR func_addr, func_end, sal_end; |
struct m32c_prologue p; |
@@ -2206,7 +2206,7 @@ m32c_return_by_passed_buf (struct type *type) |
static enum return_value_convention |
m32c_return_value (struct gdbarch *gdbarch, |
- struct type *func_type, |
+ struct value *function, |
struct type *valtype, |
struct regcache *regcache, |
gdb_byte *readbuf, |
@@ -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 |
best way to do that. find_pc_partial_function does do some |
caching, so we'll see how this goes. */ |
- char *name; |
+ const char *name; |
CORE_ADDR start, end; |
if (find_pc_partial_function (stop_pc, &name, &start, &end)) |
@@ -2452,7 +2452,7 @@ m32c_m16c_address_to_pointer (struct gdbarch *gdbarch, |
if (target_code == TYPE_CODE_FUNC || target_code == TYPE_CODE_METHOD) |
{ |
- char *func_name; |
+ const char *func_name; |
char *tramp_name; |
struct minimal_symbol *tramp_msym; |
@@ -2539,7 +2539,7 @@ m32c_m16c_pointer_to_address (struct gdbarch *gdbarch, |
if (ptr_msym) |
{ |
- char *ptr_msym_name = SYMBOL_LINKAGE_NAME (ptr_msym); |
+ const char *ptr_msym_name = SYMBOL_LINKAGE_NAME (ptr_msym); |
int len = strlen (ptr_msym_name); |
if (len > 4 |
@@ -2586,8 +2586,8 @@ m32c_virtual_frame_pointer (struct gdbarch *gdbarch, CORE_ADDR pc, |
int *frame_regnum, |
LONGEST *frame_offset) |
{ |
- char *name; |
- CORE_ADDR func_addr, func_end, sal_end; |
+ const char *name; |
+ CORE_ADDR func_addr, func_end; |
struct m32c_prologue p; |
struct regcache *regcache = get_current_regcache (); |