Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110624407
D22761.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
814 B
Referenced Files
None
Subscribers
None
D22761.diff
View Options
Index: devel/gdb/files/kgdb/ppcfbsd-kern.c
===================================================================
--- devel/gdb/files/kgdb/ppcfbsd-kern.c
+++ devel/gdb/files/kgdb/ppcfbsd-kern.c
@@ -59,11 +59,11 @@
memset(&pcb, 0, sizeof(pcb));
/*
- * r14-r31 are saved in the pcb
+ * r12-r31 are saved in the pcb
*/
- for (i = 14; i <= 31; i++) {
+ for (i = 12; i <= 31; i++) {
regcache->raw_supply(tdep->ppc_gp0_regnum + i,
- (char *)&pcb.pcb_context[i]);
+ (char *)&pcb.pcb_context[i - 12]);
}
/* r1 is saved in the sp field */
@@ -75,6 +75,7 @@
(char *)&pcb.pcb_toc);
regcache->raw_supply(tdep->ppc_lr_regnum, (char *)&pcb.pcb_lr);
+ regcache->raw_supply(PPC_PC_REGNUM, (char *)&pcb.pcb_lr);
regcache->raw_supply(tdep->ppc_cr_regnum, (char *)&pcb.pcb_cr);
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 1:56 AM (3 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16764297
Default Alt Text
D22761.diff (814 B)
Attached To
Mode
D22761: [PPC] Fix register context fetch from pcb
Attached
Detach File
Event Timeline
Log In to Comment