aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-03 03:20:21 +0000
committerRichard Henderson <rth@redhat.com>1999-06-03 03:20:21 +0000
commit6576f0b52ad4b61a0bd55f50a2bbf83030e55d46 (patch)
treea408372143be5d3fd68a5ba6a91fa6304e65788f /gas
parentfac0d250c7f0efc521ef26519d8ab384a6f60e4d (diff)
downloadgdb-6576f0b52ad4b61a0bd55f50a2bbf83030e55d46.zip
gdb-6576f0b52ad4b61a0bd55f50a2bbf83030e55d46.tar.gz
gdb-6576f0b52ad4b61a0bd55f50a2bbf83030e55d46.tar.bz2
* dwarf2dbg.c (dwarf2_gen_line_info): Use section_symbol
instead of doing the work by hand.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/dwarf2dbg.c12
2 files changed, 9 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 53bf519..10ec663 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+1999-06-03 Richard Henderson <rth@cygnus.com>
+
+ * dwarf2dbg.c (dwarf2_gen_line_info): Use section_symbol
+ instead of doing the work by hand.
+
1999-06-03 David Mosberger <davidm@hpl.hp.com>
* dwarf2dbg.c (INITIAL_STATE): New macro encapsulating initial
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 75b6d5c..3c223e8 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -371,15 +371,11 @@ dwarf2_gen_line_info (bfd_vma addr, struct dwarf2_line_info *l)
if (!ls.line_seg)
{
- symbolS *secsym;
-
- ls.line_seg = subseg_get (".debug_line", DL_BODY);
+ ls.line_seg = subseg_new (".debug_line", 0);
bfd_set_section_flags (stdoutput, ls.line_seg, SEC_READONLY);
- secsym = symbol_find (".debug_line");
- if (secsym)
- secsym->bsym = ls.line_seg->symbol;
- else
- symbol_table_insert (section_symbol (ls.line_seg));
+
+ /* We're going to need this symbol. */
+ (void) section_symbol (ls.line_seg);
}
saved_seg = now_seg;