From 7d41169b6d4dbc3950516d0cdf0d8ca462b52bbb Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 8 Apr 2022 16:04:22 +0100 Subject: [PATCH] Debug info for function in Windows PE binary on wrong instruction PR 29038 * coffgen.c (coff_find_nearest_line_with_names): Fix typo retrieving saved bias. --- bfd/ChangeLog | 6 ++++++ bfd/coffgen.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5b532580041..b8d77b66356 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2022-04-08 Nick Clifton + + PR 29038 + * coffgen.c (coff_find_nearest_line_with_names): Fix typo + retrieving saved bias. + 2022-04-07 Mark Harmstone * coff-i386.c (in_reloc_p): Add R_SECTION. diff --git a/bfd/coffgen.c b/bfd/coffgen.c index bec1a424831..57f380a6425 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -2382,7 +2382,7 @@ coff_find_nearest_line_with_names (bfd *abfd, } if (sec_data != NULL && sec_data->saved_bias) - bias = sec_data->saved_bias; + bias = sec_data->bias; else if (symbols) { bias = _bfd_dwarf2_find_symbol_bias (symbols, -- 2.30.2