forked from Imagelibrary/binutils-gdb
call_site_target::iterate_over_addresses may look up a minimal symbol. On platforms like PPC64 that use function descriptors, this may find an unexpected address. The fix is to use gdbarch_convert_from_func_ptr_addr to convert from a function descriptor to the address recorded at the call site. I've added a new test case that is based on the internal AdaCore test that provoked this bug. However, I'm unable to test it as-is on PPC64.
38 lines
1.1 KiB
Ada
38 lines
1.1 KiB
Ada
-- Copyright 2023 Free Software Foundation, Inc.
|
|
--
|
|
-- This program is free software; you can redistribute it and/or modify
|
|
-- it under the terms of the GNU General Public License as published by
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
|
-- (at your option) any later version.
|
|
--
|
|
-- This program is distributed in the hope that it will be useful,
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
-- GNU General Public License for more details.
|
|
--
|
|
-- You should have received a copy of the GNU General Public License
|
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
package Pck is
|
|
|
|
type Data_Large is record
|
|
I : Integer;
|
|
J : Integer;
|
|
K : Integer;
|
|
L : Integer;
|
|
M : Integer;
|
|
N : Integer;
|
|
O : Integer;
|
|
P : Integer;
|
|
Q : Integer;
|
|
R : Integer;
|
|
S : Integer;
|
|
T : Integer;
|
|
end record;
|
|
|
|
function Create_Large return Data_Large;
|
|
|
|
procedure Break_Me;
|
|
|
|
end Pck;
|