aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-11-05 23:18:01 +0000
committerDaniel Jacobowitz <drow@false.org>2009-11-05 23:18:01 +0000
commitd85a05f07f9f01c6b7e0e84491ca7972a621b85b (patch)
tree9d66ab1148840046b441a36e086e9f1495e06206 /gdb/symfile.c
parent58d79fab3021b4a4478aaec7d257e38a9b313854 (diff)
downloadgdb-d85a05f07f9f01c6b7e0e84491ca7972a621b85b.zip
gdb-d85a05f07f9f01c6b7e0e84491ca7972a621b85b.tar.gz
gdb-d85a05f07f9f01c6b7e0e84491ca7972a621b85b.tar.bz2
* dwarf2read.c (struct dwarf2_cu): Remove ranges_offset and
has_ranges_offset. (struct partial_die_info): Remove language, has_stmt_list, dirname, and line_offset. (dwarf2_build_include_psymtabs): Take a die_info. Handle a missing line table. (dwarf2_get_pc_bounds): Take PST argument. Pass it to dwarf2_ranges_read. Update all callers. (init_cu_die_reader): Move earlier. (dwarf2_find_base_address): New function. (process_psymtab_comp_unit): Rewrite to use a full DIE for the compilation unit. Use dwarf2_get_pc_bounds and dwarf2_find_base_address. (load_comp_unit): Rewrite to use a full DIE for the compilation unit. (process_full_comp_unit): Use dwarf2_find_base_address. (read_partial_die): Remove support for attributes only used in the compilation unit DIE. * symfile.c (allocate_psymtab): Make FILENAME const. (start_psymtab_common): Likewise. * symfile.h (allocate_psymtab, start_psymtab_common): Update prototypes.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 5ce20a6..d2f2834 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2765,7 +2765,7 @@ allocate_symtab (char *filename, struct objfile *objfile)
}
struct partial_symtab *
-allocate_psymtab (char *filename, struct objfile *objfile)
+allocate_psymtab (const char *filename, struct objfile *objfile)
{
struct partial_symtab *psymtab;
@@ -3079,7 +3079,8 @@ again2:
struct partial_symtab *
start_psymtab_common (struct objfile *objfile,
- struct section_offsets *section_offsets, char *filename,
+ struct section_offsets *section_offsets,
+ const char *filename,
CORE_ADDR textlow, struct partial_symbol **global_syms,
struct partial_symbol **static_syms)
{