aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-03-21 13:40:03 -0600
committerTom Tromey <tromey@adacore.com>2023-04-10 08:38:54 -0600
commita0f6c61c9ab998cd77b0899a4bdea9576d6d775f (patch)
treefbb874b05fbf7e59f2274d0cc24de96569c0d846 /binutils/dwarf.c
parent5f777caeebfd789f3b4f5ed13e9c3f49e9db0923 (diff)
downloadgdb-a0f6c61c9ab998cd77b0899a4bdea9576d6d775f.zip
gdb-a0f6c61c9ab998cd77b0899a4bdea9576d6d775f.tar.gz
gdb-a0f6c61c9ab998cd77b0899a4bdea9576d6d775f.tar.bz2
Handle unwinding from SEGV on Windows
PR win32/30255 points out that a call to a NULL function pointer will leave gdb unable to "bt" on Windows. I tracked this down to the amd64 windows unwinder. If we treat this scenario as if it were a leaf function, unwinding works fine. I'm not completely sure this patch is the best way. I considered having it check for 'pc==0' -- but then I figured this could affect any inaccessible PC, not just the special 0 value. No test case because I can't run dejagnu tests on Windows. I tested this by hand using the test case in the bug. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30255
Diffstat (limited to 'binutils/dwarf.c')
0 files changed, 0 insertions, 0 deletions