* [Qemu-devel] Debugging u-boot after relocation on arm machie
@ 2015-10-07 18:32 mar.krzeminski
2015-10-08 11:22 ` Thomas Huth
0 siblings, 1 reply; 3+ messages in thread
From: mar.krzeminski @ 2015-10-07 18:32 UTC (permalink / raw)
To: qemu-devel@nongnu.org Developers; +Cc: Peter Maydell, Peter Crosthwaite
Hello,
I am working on u-boot under qemu. Debugging before u-boots relocate
itself works just fine.
After relocation and reloading elf in gdb, qemu does no stop on breakpoint.
Generally I follow this instruction:
http://www.denx.de/wiki/view/DULG/DebuggingUBoot
I am debuging under eclipse - I'll test with clean gdb to be sure. As I
see some topics in this list,
there is some work ongoing regarding self-modyfying code on arm and gdb
stub.
Does someone tries to debug such applications?
Regards,
Marcin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Debugging u-boot after relocation on arm machie
2015-10-07 18:32 [Qemu-devel] Debugging u-boot after relocation on arm machie mar.krzeminski
@ 2015-10-08 11:22 ` Thomas Huth
2015-10-08 12:24 ` Marcin Krzemiński
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2015-10-08 11:22 UTC (permalink / raw)
To: mar.krzeminski, qemu-devel@nongnu.org Developers
Cc: Peter Maydell, Peter Crosthwaite
On 07/10/15 20:32, mar.krzeminski wrote:
> Hello,
>
> I am working on u-boot under qemu. Debugging before u-boots relocate
> itself works just fine.
> After relocation and reloading elf in gdb, qemu does no stop on breakpoint.
Are you using software breakpoints or hardware breakpoints?
In case you're using software breakpoints, maybe they get clobbered by
the relocation / reloading?
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Debugging u-boot after relocation on arm machie
2015-10-08 11:22 ` Thomas Huth
@ 2015-10-08 12:24 ` Marcin Krzemiński
0 siblings, 0 replies; 3+ messages in thread
From: Marcin Krzemiński @ 2015-10-08 12:24 UTC (permalink / raw)
To: Thomas Huth
Cc: Peter Maydell, Peter Crosthwaite,
qemu-devel@nongnu.org Developers
[-- Attachment #1: Type: text/plain, Size: 659 bytes --]
2015-10-08 13:22 GMT+02:00 Thomas Huth <thuth@redhat.com>:
> On 07/10/15 20:32, mar.krzeminski wrote:
> > Hello,
> >
> > I am working on u-boot under qemu. Debugging before u-boots relocate
> > itself works just fine.
> > After relocation and reloading elf in gdb, qemu does no stop on
> breakpoint.
>
> Are you using software breakpoints or hardware breakpoints?
> In case you're using software breakpoints, maybe they get clobbered by
> the relocation / reloading?
>
> Thomas
>
> It seem that it was cause by eclipse - trace mode option.
If I set it to normal all works as it should - I can debug relocated code.
I am using sw breakpoints
Thanks,
Marcin
[-- Attachment #2: Type: text/html, Size: 1277 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-08 12:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 18:32 [Qemu-devel] Debugging u-boot after relocation on arm machie mar.krzeminski
2015-10-08 11:22 ` Thomas Huth
2015-10-08 12:24 ` Marcin Krzemiński
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).