diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-03 20:54:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-03 20:54:43 +0000 |
commit | a9596cd98aa07c137ed362c7d92df64213b4fa04 (patch) | |
tree | 93d2aea2e0fa868da0f9b56626e5cfe8c2341869 /gdb/blockframe.c | |
parent | 74eda9eb7acc3c2bd375826f92e8ca233d5f767a (diff) | |
download | fsf-binutils-gdb-cagney_writestrings-20030508-branch.zip fsf-binutils-gdb-cagney_writestrings-20030508-branch.tar.gz fsf-binutils-gdb-cagney_writestrings-20030508-branch.tar.bz2 |
Snap const char * mess.cagney_writestrings-20030508-branch
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index fce25e4..54bf3e5 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -285,7 +285,7 @@ find_pc_function (CORE_ADDR pc) static CORE_ADDR cache_pc_function_low = 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 sec *cache_pc_function_section = NULL; /* Clear cache, e.g. when symbol table is discarded. */ @@ -311,8 +311,9 @@ clear_pc_function_cache (void) returns 0. */ int -find_pc_sect_partial_function (CORE_ADDR pc, asection *section, char **name, - CORE_ADDR *address, CORE_ADDR *endaddr) +find_pc_sect_partial_function (CORE_ADDR pc, asection *section, + const char **name, CORE_ADDR *address, + CORE_ADDR *endaddr) { struct partial_symtab *pst; struct symbol *f; @@ -477,7 +478,7 @@ find_pc_sect_partial_function (CORE_ADDR pc, asection *section, char **name, /* Backward compatibility, no section argument. */ 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) { asection *section; |