diff options
author | John Baldwin <jhb@FreeBSD.org> | 2006-10-16 20:07:23 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2006-10-16 20:07:23 +0000 |
commit | a5146161aec1d287f326c4fcb647561732d25dcf (patch) | |
tree | ea6c875036264ad8d6b423f24d58918436326068 /gnu | |
parent | 62f6176c27e276b3dcfc84fb0c6015d6e3edd544 (diff) | |
download | src-a5146161aec1d287f326c4fcb647561732d25dcf.tar.gz src-a5146161aec1d287f326c4fcb647561732d25dcf.zip |
Notes
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/kthr.c | 4 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_arm.c | 6 | ||||
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_powerpc.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/kthr.c b/gnu/usr.bin/gdb/kgdb/kthr.c index a93026455120..02f9a20994c4 100644 --- a/gnu/usr.bin/gdb/kgdb/kthr.c +++ b/gnu/usr.bin/gdb/kgdb/kthr.c @@ -102,7 +102,7 @@ kgdb_thr_init(void) stopped_cpus = 0; stoppcbs = lookup("_stoppcbs"); - + while (paddr != 0) { if (kvm_read(kvm, paddr, &p, sizeof(p)) != sizeof(p)) warnx("kvm_read: %s", kvm_geterr(kvm)); @@ -118,7 +118,7 @@ kgdb_thr_init(void) else if (td.td_state == TDS_RUNNING && ((1 << td.td_oncpu) & stopped_cpus) && stoppcbs != 0) kt->pcb = (uintptr_t) stoppcbs + sizeof(struct pcb) * td.td_oncpu; - else + else kt->pcb = (uintptr_t)td.td_pcb; kt->kstack = td.td_kstack; kt->tid = td.td_tid; diff --git a/gnu/usr.bin/gdb/kgdb/trgt_arm.c b/gnu/usr.bin/gdb/kgdb/trgt_arm.c index 1d0f47589e99..afdcbc627589 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_arm.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_arm.c @@ -54,7 +54,7 @@ kgdb_trgt_fetch_registers(int regno __unused) struct kthr *kt; struct pcb pcb; int i, reg; - + kt = kgdb_thr_lookup_tid(ptid_get_tid(inferior_ptid)); if (kt == NULL) return; @@ -63,7 +63,7 @@ kgdb_trgt_fetch_registers(int regno __unused) memset(&pcb, 0, sizeof(pcb)); } for (i = ARM_A1_REGNUM + 8; i <= ARM_SP_REGNUM; i++) { - supply_register(i, (char *)&pcb.un_32.pcb32_r8 + + supply_register(i, (char *)&pcb.un_32.pcb32_r8 + (i - (ARM_A1_REGNUM + 8 )) * 4); } if (pcb.un_32.pcb32_sp != 0) { @@ -174,7 +174,7 @@ kgdb_trgt_trapframe_prev_register(struct frame_info *next_frame, return; cache = kgdb_trgt_frame_cache(next_frame, this_cache); - + if (is_undef && (regnum == ARM_SP_REGNUM || regnum == ARM_PC_REGNUM)) { *addrp = cache->sp + offsetof(struct trapframe, tf_spsr); target_read_memory(*addrp, valuep, regsz); diff --git a/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c b/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c index 8ca07b4a6d67..5c0ffe7701d1 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_powerpc.c @@ -48,7 +48,7 @@ void kgdb_trgt_fetch_registers(int regno __unused) { struct kthr *kt; - struct pcb pcb; + struct pcb pcb; struct gdbarch_tdep *tdep; int i; @@ -69,7 +69,7 @@ kgdb_trgt_fetch_registers(int regno __unused) supply_register(tdep->ppc_gp0_regnum + i, (char *)&pcb.pcb_context[i]); } - + /* r1 is saved in the sp field */ supply_register(tdep->ppc_gp0_regnum + 1, (char *)&pcb.pcb_sp); |