Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb Fix armeb; CORE_ADDR is uint64_t ...
details: https://anonhg.NetBSD.org/src/rev/c077f52b6eb1
branches: trunk
changeset: 978976:c077f52b6eb1
user: rin <rin%NetBSD.org@localhost>
date: Thu Dec 10 07:27:37 2020 +0000
description:
Fix armeb; CORE_ADDR is uint64_t but 2nd argument of raw_supply() is
expected to be the same size as PC. Therefore, PC was always read as
zero for big-endian.
diffstat:
external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9600cd98d89c -r c077f52b6eb1 external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c
--- a/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c Thu Dec 10 07:14:58 2020 +0000
+++ b/external/gpl3/gdb/dist/gdb/arm-nbsd-tdep.c Thu Dec 10 07:27:37 2020 +0000
@@ -72,7 +72,7 @@
if (regnum == -1 || regnum == ARM_PC_REGNUM)
{
- CORE_ADDR r_pc = gdbarch_addr_bits_remove (regcache->arch (), gregset->pc);
+ uint32_t r_pc = gdbarch_addr_bits_remove (regcache->arch (), gregset->pc);
regcache->raw_supply (ARM_PC_REGNUM, (char *) &r_pc);
}
Home |
Main Index |
Thread Index |
Old Index