This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
hbreak reads memory
- From: Alexandru-Adrian Oltean <adrian dot oltean at nxp dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 27 Jul 2016 06:28:46 +0000
- Subject: hbreak reads memory
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=adrian dot oltean at nxp dot com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Hi everyone,
I noticed that setting a hardware break using hbreak will trigger a memory access at the address where the breakpoint is supposed to be installed. Can someone explain why is that memory access needed? I'm thinking that we might be in a situation where that memory area is not yet initialized/accessible (maybe MMU not configured yet) and the access corrupts the debugged target.
Thanks,
Adrian