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 Some more mechanical c++ificiation.
details: https://anonhg.NetBSD.org/src/rev/f14952bf6636
branches: trunk
changeset: 999358:f14952bf6636
user: christos <christos%NetBSD.org@localhost>
date: Wed May 29 22:10:38 2019 +0000
description:
Some more mechanical c++ificiation.
diffstat:
external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c | 14 +++++++-------
external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c | 22 +++++++++++-----------
2 files changed, 18 insertions(+), 18 deletions(-)
diffs (72 lines):
diff -r 816c29938332 -r f14952bf6636 external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c Wed May 29 22:08:28 2019 +0000
+++ b/external/gpl3/gdb/dist/gdb/aarch64-nbsd-nat.c Wed May 29 22:10:38 2019 +0000
@@ -61,7 +61,7 @@
pid_t pid = ptid_get_pid (ptid);
int tid = ptid_get_lwp (ptid);
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
if (regnum == -1 || getregs_supplies (gdbarch, regnum))
{
struct reg regs;
@@ -96,7 +96,7 @@
pid_t pid = ptid_get_pid (ptid);
int tid = ptid_get_lwp (ptid);
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
if (regnum == -1 || getregs_supplies (gdbarch, regnum))
{
struct reg regs;
@@ -159,13 +159,13 @@
for (i = 0; i <= 30; i++)
{
- regcache_raw_supply (regcache, AARCH64_X0_REGNUM + i, &tf.tf_reg[i]);
+ regcache->raw_supply (AARCH64_X0_REGNUM + i, &tf.tf_reg[i]);
}
- regcache_raw_supply (regcache, AARCH64_SP_REGNUM, &tf.tf_sp);
- regcache_raw_supply (regcache, AARCH64_PC_REGNUM, &tf.tf_pc);
+ regcache->raw_supply (AARCH64_SP_REGNUM, &tf.tf_sp);
+ regcache->raw_supply (AARCH64_PC_REGNUM, &tf.tf_pc);
- regcache_raw_supply (regcache, AARCH64_FPCR_REGNUM, &pcb->pcb_fpregs.fpcr);
- regcache_raw_supply (regcache, AARCH64_FPSR_REGNUM, &pcb->pcb_fpregs.fpsr);
+ regcache->raw_supply (AARCH64_FPCR_REGNUM, &pcb->pcb_fpregs.fpcr);
+ regcache->raw_supply (AARCH64_FPSR_REGNUM, &pcb->pcb_fpregs.fpsr);
return 1;
}
diff -r 816c29938332 -r f14952bf6636 external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c Wed May 29 22:08:28 2019 +0000
+++ b/external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c Wed May 29 22:10:38 2019 +0000
@@ -93,17 +93,17 @@
read_memory (pcb->pcb_sp, (gdb_byte *) &sf, sizeof sf);
- regcache_raw_supply (regcache, ARM_PC_REGNUM, &sf.sf_pc);
- regcache_raw_supply (regcache, ARM_SP_REGNUM, &pcb->pcb_sp);
- regcache_raw_supply (regcache, 12, &pcb->pcb_r12);
- regcache_raw_supply (regcache, 11, &pcb->pcb_r11);
- regcache_raw_supply (regcache, 10, &pcb->pcb_r10);
- regcache_raw_supply (regcache, 9, &pcb->pcb_r9);
- regcache_raw_supply (regcache, 8, &pcb->pcb_r8);
- regcache_raw_supply (regcache, 7, &sf.sf_r7);
- regcache_raw_supply (regcache, 6, &sf.sf_r6);
- regcache_raw_supply (regcache, 5, &sf.sf_r5);
- regcache_raw_supply (regcache, 4, &sf.sf_r4);
+ regcache->raw_supply (ARM_PC_REGNUM, &sf.sf_pc);
+ regcache->raw_supply (ARM_SP_REGNUM, &pcb->pcb_sp);
+ regcache->raw_supply (12, &pcb->pcb_r12);
+ regcache->raw_supply (11, &pcb->pcb_r11);
+ regcache->raw_supply (10, &pcb->pcb_r10);
+ regcache->raw_supply (9, &pcb->pcb_r9);
+ regcache->raw_supply (8, &pcb->pcb_r8);
+ regcache->raw_supply (7, &sf.sf_r7);
+ regcache->raw_supply (6, &sf.sf_r6);
+ regcache->raw_supply (5, &sf.sf_r5);
+ regcache->raw_supply (4, &sf.sf_r4);
return 1;
}
Home |
Main Index |
Thread Index |
Old Index