From 70e323ac5f97c6cf5ce23bd0967537bc23dd164c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Bac=C5=82awski?= Date: Thu, 24 Nov 2022 16:12:40 +0100 Subject: [PATCH] Unfortunately bebbo has not fixed all problem with N_SLINE stabs. --- patches/gdb-line-addr-fix.patch | 13 +++++++++++++ patches/series | 1 + 2 files changed, 14 insertions(+) create mode 100644 patches/gdb-line-addr-fix.patch diff --git a/patches/gdb-line-addr-fix.patch b/patches/gdb-line-addr-fix.patch new file mode 100644 index 0000000..0bc4330 --- /dev/null +++ b/patches/gdb-line-addr-fix.patch @@ -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 diff --git a/patches/series b/patches/series index e00b318..3710b1d 100644 --- a/patches/series +++ b/patches/series @@ -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