Bug 7952 – invalid dwarf2 offset when trying to debug with gdb

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2012-04-20T12:01:00Z
Last change time
2017-06-05T18:04:31Z
Keywords
bounty, symdeb
Assigned to
nobody
Creator
ernstmartinj

Comments

Comment #0 by ernstmartinj — 2012-04-20T12:01:31Z
I've tried to debug a simple hello world program with gdb 7.4 on os x. The program is built with -gc -debug -m64 (gdb) list invalid dwarf2 offset 1594098948 When running the same executable in lldb I can list the source code when setting a breakpoint, but no frame variables are showing (a separate issue). /Martin
Comment #1 by ibuclaw — 2014-02-14T02:33:06Z
For OSX, I think users should stop using GDB, as it is getting quite outdated and doesn't have any of the recent D support added to it.
Comment #2 by code — 2017-06-05T18:04:31Z
Closing since OSX no longer ships with gdb and the problem was likely solved in the meantime anyhow. Newer gdb versions should work, see e.g. https://www.patosai.com/posts/2015/03/24/installing-gdb-on-os-x-yosemite for how to install gdb instead of lldb. Not sure how good the lldb support is.