1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Trim trailing whitespace.

This commit is contained in:
John Baldwin 2006-10-16 20:07:23 +00:00
parent 62f6176c27
commit a5146161ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163440
3 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);