diff options
author | Doug Evans <dje@google.com> | 2013-05-06 19:15:17 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-05-06 19:15:17 +0000 |
commit | 3189cb129704a2e7b7a3d338ec5dc80747fb51ba (patch) | |
tree | 2446e968568114254b147c2e4843e8f0981bdb85 /gdb/objfiles.c | |
parent | a7bfba49b274e06c468abeff7ca92156c0d72293 (diff) | |
download | gdb-3189cb129704a2e7b7a3d338ec5dc80747fb51ba.zip gdb-3189cb129704a2e7b7a3d338ec5dc80747fb51ba.tar.gz gdb-3189cb129704a2e7b7a3d338ec5dc80747fb51ba.tar.bz2 |
* dbxread.c (process_one_symbol): Constify section_offsets parameter.
* stabsread.h (process_one_symbol): Update declaration.
* dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
* elfread.c (elf_symfile_relocate_probe): Ditto.
* psymtab.c (relocate_psymtabs): Ditto.
* objfiles.c (objfile_relocate1): Constify new_offsets parameter.
(objfile_relocate): Ditto.
* objfiles.h (objfile_relocate): Update declaration.
* symfile.c (relative_addr_info_to_section_offsets): Constify
addrs parameter.
(default_symfile_offsets): Ditto.
(syms_from_objfile_1): Constify offsets parameter.
(syms_from_objfile): Ditto.
(symbol_file_add_with_addrs_or_offsets): Ditto.
(symfile_map_offsets_to_segments): Constify data parameter.
* symfile.h (struct quick_symbol_functions): Constify new_offsets,
delta parameters of member relocate.
(struct sym_probe_fns): Constify new_offsets,
delta parameters of member sym_relocate_probe.
(struct sym_fns): Constify section_addr_info parameter of member
sym_offsets.
(relative_addr_info_to_section_offsets): Update declaration.
(default_symfile_offsets): Ditto.
(syms_from_objfile): Ditto.
(symfile_map_offsets_to_segments): Ditto.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 2e13421..3e49ea2 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -709,7 +709,7 @@ relocate_one_symbol (struct symbol *sym, struct objfile *objfile, static int objfile_relocate1 (struct objfile *objfile, - struct section_offsets *new_offsets) + const struct section_offsets *new_offsets) { struct obj_section *s; struct section_offsets *delta = @@ -856,7 +856,8 @@ objfile_relocate1 (struct objfile *objfile, files. */ void -objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets) +objfile_relocate (struct objfile *objfile, + const struct section_offsets *new_offsets) { struct objfile *debug_objfile; int changed = 0; |