aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-01-13 09:48:18 -0700
committerTom Tromey <tromey@adacore.com>2022-01-20 07:22:23 -0700
commit6d263fe46e00afd8af3d609c1afd71d05eaf745e (patch)
treed671b8e628da5ec3db2c8641dcf18ae6c3843961 /include
parentdd8a5a84a746df2c9db53f5ac331d2c9b34422b2 (diff)
downloadgdb-6d263fe46e00afd8af3d609c1afd71d05eaf745e.zip
gdb-6d263fe46e00afd8af3d609c1afd71d05eaf745e.tar.gz
gdb-6d263fe46e00afd8af3d609c1afd71d05eaf745e.tar.bz2
Avoid bad breakpoints with --gc-sections
We found a case where --gc-sections can cause gdb to set an invalid breakpoint. In the included test case, gdb will set a breakpoint with two locations, one of which is 0x0. The code in lnp_state_machine::check_line_address is intended to filter out this sort of problem, but in this case, the entire CU is empty, causing unrelocated_lowpc==0x0 -- which circumvents the check. It seems to me that if a CU is empty like this, then it is ok to simply ignore the line table, as there won't be any locations anyway.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions