Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136753856
D8250.id21389.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
573 B
Referenced Files
None
Subscribers
None
D8250.id21389.diff
View Options
Index: lib/libproc/proc_bkpt.c
===================================================================
--- lib/libproc/proc_bkpt.c
+++ lib/libproc/proc_bkpt.c
@@ -134,7 +134,12 @@
paddr = BREAKPOINT_INSTR;
piod.piod_op = PIOD_WRITE_I;
piod.piod_offs = (void *)caddr;
+#if BYTE_ORDER == BIG_ENDIAN
+ piod.piod_addr = (char *)(&paddr + 1) - BREAKPOINT_INSTR_SZ;
+#else
piod.piod_addr = &paddr;
+#endif
+
piod.piod_len = BREAKPOINT_INSTR_SZ;
if (ptrace(PT_IO, proc_getpid(phdl), (caddr_t)&piod, 0) < 0) {
DPRINTF("ERROR: couldn't write instruction at address 0x%"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 20, 7:11 AM (13 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25713534
Default Alt Text
D8250.id21389.diff (573 B)
Attached To
Mode
D8250: fix libproc for big-endian systems
Attached
Detach File
Event Timeline
Log In to Comment