diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-04 20:26:42 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-04 20:26:42 +0000 |
commit | 303b6f5dea757484ac8074bee1b4d5f7c897a997 (patch) | |
tree | 0ae6c7a147525bc1204424559e035ade47febafe /gdb/dwarf2read.c | |
parent | 2d0720d988230d947d5eee9245a7d2fc3f0eeb0a (diff) | |
download | gdb-303b6f5dea757484ac8074bee1b4d5f7c897a997.zip gdb-303b6f5dea757484ac8074bee1b4d5f7c897a997.tar.gz gdb-303b6f5dea757484ac8074bee1b4d5f7c897a997.tar.bz2 |
* buildsym.c (start_subfile): Handle producer.
(record_producer): New function.
* buildsym.h (struct subfile): Include producer.
(record_producer): New prototype.
* dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
(struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
armcc_cfa_offsets_reversed.
(execute_cfa_program): Handle armcc_cfa_offsets_sf.
(dwarf2_frame_find_quirks): New function.
(dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
(decode_frame_entry_1): Record the CIE version. Record the
augmentation. Skip armcc augmentations.
* dwarf2read.c (read_file_scope): Save the producer.
* symtab.h (struct symtab): Rename unused version member to
producer.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 3dcf436..9059189 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2803,16 +2803,9 @@ read_file_scope (struct die_info *die, struct dwarf2_cu *cu) attr = dwarf2_attr (die, DW_AT_producer, cu); if (attr) cu->producer = DW_STRING (attr); - + /* We assume that we're processing GCC output. */ processing_gcc_compilation = 2; -#if 0 - /* FIXME:Do something here. */ - if (dip->at_producer != NULL) - { - handle_producer (dip->at_producer); - } -#endif /* The compilation unit may be in a different language or objfile, zero out all remembered fundamental types. */ @@ -2820,6 +2813,7 @@ read_file_scope (struct die_info *die, struct dwarf2_cu *cu) start_symtab (name, comp_dir, lowpc); record_debugformat ("DWARF 2"); + record_producer (cu->producer); initialize_cu_func_list (cu); |