This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ptrace: bogus breakpoint trap


Little more info from target debugging.
First ARM platform - bogus operation:
...
<- "Num Type Disp Enb Address What\n"
"1 breakpoint keep y 0x000084a8 in main at debug-test.c:6\n"
<- "(gdb) "
-> "cont\n"
<- "target_xfer_memory (0x84a8, xxx, 4, read, xxx) = 4, bytes = f9 3f a0 e3\n"
<- "target_xfer_memory (0x84a8, xxx, 4, write, xxx) = 4, bytes = 01 00 9f ef\n"
"target_insert_breakpoint (0x84a8, xxx) = 0\n"
"target_xfer_memory (0x4000c258, xxx, 4, read, xxx) = 4, bytes =\n"
" 1e ff 2f e1\n"
<- "target_xfer_memory (0x4000c258, xxx, 4, write, xxx) = 4, bytes = 01 00 9f ef\n"
"target_insert_breakpoint (0x4000c258, xxx) = 0\n"
"target_terminal_inferior ()\n"
"target_resume (-1, continue, 0)\n"
<- "target_wait (-1, status) = 42000, status->kind = stopped, signal = SIGTRAP\n"
<- "target_xfer_memory (0x84a8, xxx, 4, write, xxx) = 4, bytes = f9 3f a0 e3\n"
"target_remove_breakpoint (0x84a8, xxx) = 0\n"
"target_xfer_memory (0x4000c258, xxx, 4, write, xxx) = 4, bytes =\n"
" 1e ff 2f e1\n"
"target_remove_breakpoint (0x4000c258, xxx) = 0\n"
"target_terminal_ours_for_output ()\n"
...


Second ARM platform - correct operation:
...
<- "Num Type Disp Enb Address What\n"
"1 breakpoint keep y 0x000084a8 in main at debug-test.c:6\n"
<- "(gdb) "
-> "cont\n"
<- "target_xfer_memory (0x84a8, xxx, 4, read, xxx) = 4"
<- ", bytes ="
<- "\n"
<- " f9 3f a0 e3\n"
<- "target_xfer_memory (0x84a8, xxx, 4, write, xxx) = 4, bytes = 01 00 9f ef\n"
"target_insert_breakpoint (0x84a8, xxx) = 0\n"
<- "target_xfer_memory (0x4000b8d8, xxx, 4, read, xxx) = 4, bytes =\n"
" 04 b0 4c e2\n"
<- "target_xfer_memory (0x4000b8d8, xxx, 4, write, xxx) = 4, bytes = 01 00 9f ef\n"
"target_insert_breakpoint (0x4000b8d8, xxx) = 0\n"
"target_terminal_inferior ()\n"
<- "target_resume (-1, continue, 0)\n"
<- "target_wait (-1, status) = 42000, status->kind = stopped, signal = SIGTRAP\n"
<- "target_xfer_memory (0x84a8, xxx, 4, read, xxx) = 4"
<- ", bytes = 01 00 9f ef\n"
<- "target_fetch_registers (cpsr) = 10000060 0x60000010 1610612752\n"
<- "target_xfer_memory (0x84a8, xxx, 4, read, xxx) = 4, bytes = 01 00 9f ef\n"
<- "target_xfer_memory (0x8498, xxx, 4, read, xxx) = 4, bytes = 0d c0 a0 e1\n"
<- "target_xfer_memory (0x849c, xxx, 4, read, xxx) = 4, bytes = 00 d8 2d e9\n"
<- "target_xfer_memory (0x84a0, xxx, 4, read, xxx) = 4, bytes = 04 b0 4c e2\n"
<- "target_xfer_memory (0x84a4, xxx, 4, read, xxx) = 4, bytes = 04 d0 4d e2\n"
<- "target_xfer_memory (0x84a8, xxx, 4, read, xxx) = 4"
...


reagrds,
h

--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

"Aì rén" | [Analects XII:22]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]