[PATCH v3 0/1] Don't rewind PC for GHC generated frames
Bartosz Nitka
niteria@gmail.com
Sun Feb 4 00:07:00 GMT 2018
Hi Simon and everyone else,
Thank you Simon for taking a look at my patch.
The only thing that changed between v2 and v3 is the
commit log.
The main improvement is an example that shows the impact
of this change. The example is fairly small, on bigger ones the
effect is bigger. I've been using GDB for debugging Haskell
code and often you have to resort to manually unwinding the
stack, which can be time consuming and isn't friendly to beginners.
I've also corrected the claim that substracting 1 would
somehow land us at the beginning of the call instruction
and reworded a couple of sentences to make it read better.
As a side note, Haskell code can be pretty dense and a lot
of functionality can fit on one line. GHC already puts column
numbers in the debugging information, but from what I can tell
GDB doesn't expose that in any way.
Would that be a worthwhile addition to GDB?
Thanks,
Bartosz
Bartosz Nitka (1):
Don't rewind PC for GHC generated frames
gdb/ChangeLog | 7 +++++++
gdb/dwarf2read.c | 4 ++++
gdb/frame.c | 9 ++++++++-
gdb/symtab.h | 3 +++
4 files changed, 22 insertions(+), 1 deletion(-)
--
2.14.1
More information about the Gdb-patches
mailing list