Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb behaviour change under software watchpoints?
@ 2025-04-24 16:54 K via Gdb
  2025-04-25 13:09 ` Luis Machado via Gdb
  2025-04-25 14:15 ` K via Gdb
  0 siblings, 2 replies; 5+ messages in thread
From: K via Gdb @ 2025-04-24 16:54 UTC (permalink / raw)
  To: gdb

A bug in my software is revealed by a debug build which eventually calls
abort(). gdb sees and reports this and I can do a backtrace and find a
memory location I need to investigate.
then I make a run with a watchpoint on said memory location which has to be
software since it's a non-host binary running under qemu.
not only does the watchpoint not get triggered despite ensuring binary is
being loaded to the same address, but gdb only reports that the process has
exitted with an error code - no memory to examine, no backtrace.

the former is mysterious but the latter is annoying - is this behaviour
necessitated by setting watchpoints?
I have remote access to a machine of the target variety but I would ask
first whether I can expect the behaviour to return to normal when using a
hardware watchpoint. No point is going down a dead end...
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-30 14:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-24 16:54 gdb behaviour change under software watchpoints? K via Gdb
2025-04-25 13:09 ` Luis Machado via Gdb
2025-04-25 16:04   ` K via Gdb
2025-05-30 14:14     ` Luis Machado via Gdb
2025-04-25 14:15 ` K via Gdb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox