gdb, dwarf: add assert to dwarf2_get_pc_bounds
authorNils-Christian Kempke <nils-christian.kempke@intel.com>
Wed, 13 Jul 2022 09:23:36 +0000 (11:23 +0200)
committerIjaz, Abdul B <abdul.b.ijaz@intel.com>
Fri, 29 Dec 2023 10:28:35 +0000 (11:28 +0100)
commit06740cf11f601c6a5a0f3807f37aaac31d13a542
treed9ec5dbfcff697493a1a782dcc3dd42903e997dd
parent69570475c6142c656640106ff0f6ff13c20ae621
gdb, dwarf: add assert to dwarf2_get_pc_bounds

In dwarf2_get_pc_bounds we were writing unchecked to *lowpc.  This
commit adds a gdb_assert to first check that lowpc != nullptr.

Approved-by: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.c