* [Qemu-devel] [gdbstub] qemu is killed by gdb
@ 2016-07-05 19:50 Alon Bar-Lev
2016-07-05 20:17 ` KONRAD Frederic
2016-07-10 20:52 ` Alon Bar-Lev
0 siblings, 2 replies; 4+ messages in thread
From: Alon Bar-Lev @ 2016-07-05 19:50 UTC (permalink / raw)
To: Qemu-devel
Hello,
I am aware that this was discussed many times, however, problem remains.
Use case loading u-boot.
1. Run qemu in debug mode:
$ qemu-system-mips -M malta -nographic -m 256 -s -S
2. Run gdb:
$ mips-unknown-linux-uclibceabi-gdb
(gdb) target remote :1234
(gdb) load u-boot
(gdb) target exec
In this case qemu master is killed by the gdb while it should remain
running, it used to work in older versions of qemu.
There was a patch that was reverted[1] with a solution that apparently
not working.
Is there any other sequence to load and run ELF into qemu by gdb?
Thanks,
Alon
[1] https://git.greensocs.com/fkonrad/mttcg/commit/ce0274f730eacbd24c706523ddbbabb6b95d0659
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [gdbstub] qemu is killed by gdb
2016-07-05 19:50 [Qemu-devel] [gdbstub] qemu is killed by gdb Alon Bar-Lev
@ 2016-07-05 20:17 ` KONRAD Frederic
2016-07-05 20:18 ` Alon Bar-Lev
2016-07-10 20:52 ` Alon Bar-Lev
1 sibling, 1 reply; 4+ messages in thread
From: KONRAD Frederic @ 2016-07-05 20:17 UTC (permalink / raw)
To: Alon Bar-Lev, Qemu-devel
Hi Alon,
Which repos/branch are you using?
If you are using mttcg (the repo you mention in [1]) this is a known bug.
Thanks,
Fred
Le 05/07/2016 à 21:50, Alon Bar-Lev a écrit :
> Hello,
>
> I am aware that this was discussed many times, however, problem remains.
>
> Use case loading u-boot.
>
> 1. Run qemu in debug mode:
> $ qemu-system-mips -M malta -nographic -m 256 -s -S
>
> 2. Run gdb:
> $ mips-unknown-linux-uclibceabi-gdb
> (gdb) target remote :1234
> (gdb) load u-boot
> (gdb) target exec
>
> In this case qemu master is killed by the gdb while it should remain
> running, it used to work in older versions of qemu.
>
> There was a patch that was reverted[1] with a solution that apparently
> not working.
>
> Is there any other sequence to load and run ELF into qemu by gdb?
>
> Thanks,
> Alon
>
> [1] https://git.greensocs.com/fkonrad/mttcg/commit/ce0274f730eacbd24c706523ddbbabb6b95d0659
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [gdbstub] qemu is killed by gdb
2016-07-05 20:17 ` KONRAD Frederic
@ 2016-07-05 20:18 ` Alon Bar-Lev
0 siblings, 0 replies; 4+ messages in thread
From: Alon Bar-Lev @ 2016-07-05 20:18 UTC (permalink / raw)
To: KONRAD Frederic; +Cc: Qemu-devel
On 5 July 2016 at 23:17, KONRAD Frederic <fred.konrad@greensocs.com> wrote:
> Hi Alon,
>
> Which repos/branch are you using?
> If you are using mttcg (the repo you mention in [1]) this is a known bug.
Hi,
I use qemu releases or qemu master.
I only referenced the [1] to show that this was already discussed,
fixed, reverted, workarounded, solved but not working :)
Thanks,
Alon
>
> Thanks,
> Fred
>
>
> Le 05/07/2016 à 21:50, Alon Bar-Lev a écrit :
>>
>> Hello,
>>
>> I am aware that this was discussed many times, however, problem remains.
>>
>> Use case loading u-boot.
>>
>> 1. Run qemu in debug mode:
>> $ qemu-system-mips -M malta -nographic -m 256 -s -S
>>
>> 2. Run gdb:
>> $ mips-unknown-linux-uclibceabi-gdb
>> (gdb) target remote :1234
>> (gdb) load u-boot
>> (gdb) target exec
>>
>> In this case qemu master is killed by the gdb while it should remain
>> running, it used to work in older versions of qemu.
>>
>> There was a patch that was reverted[1] with a solution that apparently
>> not working.
>>
>> Is there any other sequence to load and run ELF into qemu by gdb?
>>
>> Thanks,
>> Alon
>>
>> [1]
>> https://git.greensocs.com/fkonrad/mttcg/commit/ce0274f730eacbd24c706523ddbbabb6b95d0659
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [gdbstub] qemu is killed by gdb
2016-07-05 19:50 [Qemu-devel] [gdbstub] qemu is killed by gdb Alon Bar-Lev
2016-07-05 20:17 ` KONRAD Frederic
@ 2016-07-10 20:52 ` Alon Bar-Lev
1 sibling, 0 replies; 4+ messages in thread
From: Alon Bar-Lev @ 2016-07-10 20:52 UTC (permalink / raw)
To: Qemu-devel
Hi,
Is someone interested in making gdb work when debugging qemu using -s -S?
Currently qemu just quits, see below.
Thanks!
Alon
On 5 July 2016 at 22:50, Alon Bar-Lev <alon.barlev@gmail.com> wrote:
> Hello,
>
> I am aware that this was discussed many times, however, problem remains.
>
> Use case loading u-boot.
>
> 1. Run qemu in debug mode:
> $ qemu-system-mips -M malta -nographic -m 256 -s -S
>
> 2. Run gdb:
> $ mips-unknown-linux-uclibceabi-gdb
> (gdb) target remote :1234
> (gdb) load u-boot
> (gdb) target exec
>
> In this case qemu master is killed by the gdb while it should remain
> running, it used to work in older versions of qemu.
>
> There was a patch that was reverted[1] with a solution that apparently
> not working.
>
> Is there any other sequence to load and run ELF into qemu by gdb?
>
> Thanks,
> Alon
>
> [1] https://git.greensocs.com/fkonrad/mttcg/commit/ce0274f730eacbd24c706523ddbbabb6b95d0659
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-07-10 20:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-05 19:50 [Qemu-devel] [gdbstub] qemu is killed by gdb Alon Bar-Lev
2016-07-05 20:17 ` KONRAD Frederic
2016-07-05 20:18 ` Alon Bar-Lev
2016-07-10 20:52 ` Alon Bar-Lev
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).