aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1998-10-11 19:54:57 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1998-10-11 19:54:57 +0000
commitb0a5badb69321ac3db0901c5681f0894e6931fd5 (patch)
treed48bb442429b3251841969940636087396276703 /gdb/dwarf2read.c
parentc6d28b22dad86b306a86c95b5a5bb2b8c03f6aef (diff)
downloadgdb-b0a5badb69321ac3db0901c5681f0894e6931fd5.zip
gdb-b0a5badb69321ac3db0901c5681f0894e6931fd5.tar.gz
gdb-b0a5badb69321ac3db0901c5681f0894e6931fd5.tar.bz2
* dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
address range of a compilation unit without children. * mdebugread.c (parse_partial_symbols): Fix handling of stabs continuations, use xmalloc and xrealloc.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 2339b6b..dffc621a 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1002,15 +1002,17 @@ dwarf2_build_psymtabs_hard (objfile, section_offsets, mainline)
If so, read the rest of the partial symbols from this comp unit.
If not, there's no more debug_info for this comp unit. */
if (comp_unit_die.has_children)
- info_ptr = scan_partial_symbols (info_ptr, objfile, &lowpc, &highpc);
-
- /* If the compilation unit didn't have an explicit address range,
- then use the information extracted from its child dies. */
- if (!comp_unit_has_pc_info)
{
- comp_unit_die.lowpc = lowpc;
- comp_unit_die.highpc = highpc;
- }
+ info_ptr = scan_partial_symbols (info_ptr, objfile, &lowpc, &highpc);
+
+ /* If the compilation unit didn't have an explicit address range,
+ then use the information extracted from its child dies. */
+ if (!comp_unit_has_pc_info)
+ {
+ comp_unit_die.lowpc = lowpc;
+ comp_unit_die.highpc = highpc;
+ }
+ }
pst->textlow = comp_unit_die.lowpc + baseaddr;
pst->texthigh = comp_unit_die.highpc + baseaddr;