This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/22645] gdb hangs on 32-bit ARM armv7l at SIGTRAP from "bkpt" instruction 0xe1200070
- From: "jreiser at BitWagon dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 27 Dec 2017 05:34:51 +0000
- Subject: [Bug gdb/22645] gdb hangs on 32-bit ARM armv7l at SIGTRAP from "bkpt" instruction 0xe1200070
- Auto-submitted: auto-generated
- References: <bug-22645-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22645
--- Comment #2 from John Reiser <jreiser at BitWagon dot com> ---
Contrasting with the similar "brk #0" (.word 0xd4200000) on 64-bit ARM aarch64:
gdb stops and reports SIGTRAP the first time (does not silently loop using
PTRACE_CONT) and strace shows
=====
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=9705, si_uid=1000,
si_status=SIGTRAP, si_utime=1, si_stime=0} ---
ptrace(PTRACE_GETREGSET, 9705, NT_PRSTATUS, [{iov_base=0xffffe5b28e88,
iov_len=272}]) = 0
ptrace(PTRACE_GETSIGINFO, 9705, NULL, {si_signo=SIGTRAP, si_code=TRAP_BRKPT,
si_pid=4194520, si_uid=0, si_value={int=-441282160, ptr=0xffffe5b29190}}) = 0
ptrace(PTRACE_PEEKTEXT, 9705, 0x4000d8, [0xd503201fd4200000]) = 0
ptrace(PTRACE_PEEKTEXT, 9705, 0x4000d8, [0xd503201fd4200000]) = 0
ptrace(PTRACE_PEEKTEXT, 9705, 0x4000d0, [0xd503201f155c8bda]) = 0
ptrace(PTRACE_PEEKTEXT, 9705, 0x4000d8, [0xd503201fd4200000]) = 0
=====
One notable difference is:
si_code=TRAP_BRKPT on 64-bit ARM
si_code=TRAP_HWBKPT on 32-bit ARM
--
You are receiving this mail because:
You are on the CC list for the bug.