* [Qemu-devel] Solaris Linux x86 binary compatibility
@ 2006-01-19 6:27 Peter Firmstone
2006-04-17 13:12 ` [Qemu-devel] [PATCH] gdbstub.c fix for SIGINT Jason Wessel
0 siblings, 1 reply; 3+ messages in thread
From: Peter Firmstone @ 2006-01-19 6:27 UTC (permalink / raw)
To: qemu-devel
Hi,
You may have heard of Janus, the Solaris x86 compatibility layer to run
x86 linux binaries. It is now renamed brandz and is available at the
OpenSolaris web site:
http://www.opensolaris.org/os/community/brandz
Basically it has the ability to create a linux runtime environment using
linux system libraries in a Solaris container. It only works on Solaris
x86.
It might be possible to create a similar linux x86 runtime environment
on Solaris SPARC using QEMU's Linux user space emulator.
Any thoughts?
Regards,
Peter.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH] gdbstub.c fix for SIGINT
2006-01-19 6:27 [Qemu-devel] Solaris Linux x86 binary compatibility Peter Firmstone
@ 2006-04-17 13:12 ` Jason Wessel
2006-04-19 18:16 ` Mulyadi Santosa
0 siblings, 1 reply; 3+ messages in thread
From: Jason Wessel @ 2006-04-17 13:12 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
Attached is a patch to add the case for interrupting the gdbstub and
sending the correct signal to gdb.
The gdb serial protocol states that if you interrupt the stub with a
"control-c" in gdb that it should stop with S02 (SIGINT) to indicate
that it was interrupted. I also added the tlb flush so that
breakpoints can be written in correctly. I found that if I ran a
pentium qemu instance and broke in with gdb and planted a breakpoint at
do_fork() that it was not immediately hit due to the lack of the
flush. With the patch, it reliably stops all the time now when a
breakpoint is planted after interrupting the stub.
Thanks,
Jason.
[-- Attachment #2: gdbstub.c.patch --]
[-- Type: text/plain, Size: 923 bytes --]
Index: Changelog
===================================================================
RCS file: /sources/qemu/qemu/Changelog,v
retrieving revision 1.111
diff -u -r1.111 Changelog
--- Changelog 12 Apr 2006 21:09:31 -0000 1.111
+++ Changelog 17 Apr 2006 13:05:57 -0000
@@ -2,6 +2,7 @@
- USB tablet support (Brad Campbell, Anthony Liguori)
- win32 host serial support (Kazu)
+ - Fix SIGINT handler for gdbstub
version 0.8.0:
Index: gdbstub.c
===================================================================
RCS file: /sources/qemu/qemu/gdbstub.c,v
retrieving revision 1.34
diff -u -r1.34 gdbstub.c
--- gdbstub.c 5 Dec 2005 19:55:19 -0000 1.34
+++ gdbstub.c 17 Apr 2006 13:05:57 -0000
@@ -654,6 +654,9 @@
if (reason == EXCP_DEBUG) {
tb_flush(s->env);
ret = SIGTRAP;
+ } else if (reason == EXCP_INTERRUPT) {
+ tb_flush(s->env);
+ ret = SIGINT;
}
else
ret = 0;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] gdbstub.c fix for SIGINT
2006-04-17 13:12 ` [Qemu-devel] [PATCH] gdbstub.c fix for SIGINT Jason Wessel
@ 2006-04-19 18:16 ` Mulyadi Santosa
0 siblings, 0 replies; 3+ messages in thread
From: Mulyadi Santosa @ 2006-04-19 18:16 UTC (permalink / raw)
To: qemu-devel
Hi...
> Attached is a patch to add the case for interrupting the gdbstub and
> sending the correct signal to gdb.
Excellent. I haven't tested by myself, but could you test your patch
together with Andre Pech's patch that I put in
http://qemu.dad-answers.com/viewtopic.php?p=2809#2809?
BTW, Paul brook also put a patch related with breakpoint TLB
invalidation in
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu/exec.c.diff?tr1=1.74&tr2=1.75&r1=text&r2=text
(from Paul Brook's posting at qemu-devel on April 9th 2006 )
I think it would be great if these patch combo can finally squashed the
gdbstub bug related to missed breakpoints once and for all.
regards
Mulyadi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-19 18:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-19 6:27 [Qemu-devel] Solaris Linux x86 binary compatibility Peter Firmstone
2006-04-17 13:12 ` [Qemu-devel] [PATCH] gdbstub.c fix for SIGINT Jason Wessel
2006-04-19 18:16 ` Mulyadi Santosa
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).