Index: gdb/solib-frv.c |
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c |
index f29822e5b1b43f1c688aebe9402808c53af39349..2f2c8b026af16c03aa930362ffa7b0a7dae769ba 100644 |
--- a/gdb/solib-frv.c |
+++ b/gdb/solib-frv.c |
@@ -961,7 +961,7 @@ frv_fdpic_find_global_pointer (CORE_ADDR addr) |
/* Forward declarations for frv_fdpic_find_canonical_descriptor(). */ |
static CORE_ADDR find_canonical_descriptor_in_load_object |
- (CORE_ADDR, CORE_ADDR, char *, bfd *, struct lm_info *); |
+ (CORE_ADDR, CORE_ADDR, const char *, bfd *, struct lm_info *); |
/* Given a function entry point, attempt to find the canonical descriptor |
associated with that entry point. Return 0 if no canonical descriptor |
@@ -970,13 +970,11 @@ static CORE_ADDR find_canonical_descriptor_in_load_object |
CORE_ADDR |
frv_fdpic_find_canonical_descriptor (CORE_ADDR entry_point) |
{ |
- char *name; |
+ const char *name; |
CORE_ADDR addr; |
CORE_ADDR got_value; |
struct int_elf32_fdpic_loadmap *ldm = 0; |
struct symbol *sym; |
- int status; |
- CORE_ADDR exec_loadmap_addr; |
/* Fetch the corresponding global pointer for the entry point. */ |
got_value = frv_fdpic_find_global_pointer (entry_point); |
@@ -1019,7 +1017,7 @@ frv_fdpic_find_canonical_descriptor (CORE_ADDR entry_point) |
static CORE_ADDR |
find_canonical_descriptor_in_load_object |
- (CORE_ADDR entry_point, CORE_ADDR got_value, char *name, bfd *abfd, |
+ (CORE_ADDR entry_point, CORE_ADDR got_value, const char *name, bfd *abfd, |
struct lm_info *lm) |
{ |
enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch); |