Skip to content

Commit

Permalink
Unfortunately bebbo has not fixed all problem with N_SLINE stabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirwpz committed Nov 24, 2022
1 parent 79f1a0f commit 70e323a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/gdb-line-addr-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Index: demoscene-toolchain/submodules/binutils-gdb/gdb/dbxread.c
===================================================================
--- demoscene-toolchain.orig/submodules/binutils-gdb/gdb/dbxread.c
+++ demoscene-toolchain/submodules/binutils-gdb/gdb/dbxread.c
@@ -2581,7 +2581,7 @@ process_one_symbol (int type, int desc,

/* Relocate for dynamic loading and for ELF acc
function-relative symbols. */
- valu += function_start_offset;
+ /* valu += function_start_offset; */

/* GCC 2.95.3 emits the first N_SLINE stab somewhere in the
middle of the prologue instead of right at the start of the
1 change: 1 addition & 0 deletions patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ fs-uae/uaelib-log.diff
fs-uae/data-path-macos.diff
fs-uae/silence-logs.diff
fs-uae/debug-msg-fix.diff
gdb-line-addr-fix.patch

0 comments on commit 70e323a

Please sign in to comment.