Simplify dwarf2_find_containing_comp_unit
authorTom Tromey <tom@tromey.com>
Mon, 24 Dec 2018 16:55:10 +0000 (09:55 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 24 Dec 2018 16:58:53 +0000 (09:58 -0700)
commit45b8ae0c3348a6e6aa64ad5d114adabdc399c5ef
tree278bbbe4a9f4b3ea78e2586ce409db6aca19f2ff
parentb5a1e55720f294fd0d5e1ebc21ccc01083751acd
Simplify dwarf2_find_containing_comp_unit

In an earlier patch discussion we noticed that
dwarf2_find_containing_comp_unit takes the address of sect_off, but
doesn't actually need to.  This is a leftover from before
C++-ification.  This patch simplifies the function.

Tested using gdb.dwarf2 on x86-64 Fedora 28.

gdb/ChangeLog
2018-12-18  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (dwarf2_find_containing_comp_unit): Don't take
address of sect_off.
gdb/ChangeLog
gdb/dwarf2read.c
This page took 0.025761 seconds and 4 git commands to generate.