* [Qemu-devel] [PATCH] Remove the default "nowait" option from gdb stubs tcp connection
@ 2009-06-09 13:12 bahadir balban
2009-06-09 13:30 ` Paul Brook
2009-06-09 13:43 ` [Qemu-devel] " Jan Kiszka
0 siblings, 2 replies; 5+ messages in thread
From: bahadir balban @ 2009-06-09 13:12 UTC (permalink / raw)
To: qemu-devel
Remove the default "nowait" option from gdb stubs tcp connection
The tcp connection in gdb stubs has "nowait" option set by default,
which causes QEMU to continue without waiting for a gdb connection as opposed
to the documented: "-s Wait gdb connection to port 1234." behaviour.
Signed-off-by: Bahadir Balban <bbalban@b-labs.co.uk>
---
gdbstub.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index 9bd4375..7d9a2f5 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -2396,7 +2396,7 @@ int gdbserver_start(const char *device)
if (strstart(device, "tcp:", NULL)) {
/* enforce required TCP attributes */
snprintf(gdbstub_device_name, sizeof(gdbstub_device_name),
- "%s,nowait,nodelay,server", device);
+ "%s,nodelay,server", device);
device = gdbstub_device_name;
}
#ifndef _WIN32
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] Remove the default "nowait" option from gdb stubs tcp connection
2009-06-09 13:12 [Qemu-devel] [PATCH] Remove the default "nowait" option from gdb stubs tcp connection bahadir balban
@ 2009-06-09 13:30 ` Paul Brook
2009-06-09 13:43 ` [Qemu-devel] " Jan Kiszka
1 sibling, 0 replies; 5+ messages in thread
From: Paul Brook @ 2009-06-09 13:30 UTC (permalink / raw)
To: qemu-devel; +Cc: bahadir balban
On Tuesday 09 June 2009, bahadir balban wrote:
> Remove the default "nowait" option from gdb stubs tcp connection
>
> The tcp connection in gdb stubs has "nowait" option set by default,
> which causes QEMU to continue without waiting for a gdb connection as
> opposed to the documented: "-s Wait gdb connection to port 1234."
> behaviour.
No. The current behavior is correct. If you want qemu to stop guest execution
then use the -S option.
Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [PATCH] Remove the default "nowait" option from gdb stubs tcp connection
2009-06-09 13:12 [Qemu-devel] [PATCH] Remove the default "nowait" option from gdb stubs tcp connection bahadir balban
2009-06-09 13:30 ` Paul Brook
@ 2009-06-09 13:43 ` Jan Kiszka
2009-06-09 18:58 ` bahadir balban
1 sibling, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2009-06-09 13:43 UTC (permalink / raw)
To: bahadir balban; +Cc: qemu-devel
bahadir balban wrote:
> Remove the default "nowait" option from gdb stubs tcp connection
>
> The tcp connection in gdb stubs has "nowait" option set by default,
> which causes QEMU to continue without waiting for a gdb connection as opposed
> to the documented: "-s Wait gdb connection to port 1234." behaviour.
The patch is wrong as Paul stated, but your remark about the
documentation is valid. So please post a clarifying doc patch against
qemu.git.
Thanks,
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [PATCH] Remove the default "nowait" option from gdb stubs tcp connection
2009-06-09 13:43 ` [Qemu-devel] " Jan Kiszka
@ 2009-06-09 18:58 ` bahadir balban
2009-06-09 19:28 ` Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: bahadir balban @ 2009-06-09 18:58 UTC (permalink / raw)
To: Jan Kiszka; +Cc: qemu-devel
On Tue, Jun 9, 2009 at 4:43 PM, Jan Kiszka<jan.kiszka@siemens.com> wrote:
>
> The patch is wrong as Paul stated, but your remark about the
> documentation is valid. So please post a clarifying doc patch against
> qemu.git.
>
> Thanks,
> Jan
>
Hmm, OK. Is there any use case where -s is used without -S? GDB
connecting at an arbitrary time during execution did not make sense to
me. If I created a small patch with "nowait" as an option would you
consider it? Most tcp connection options seem to have it.
As per the docs, -S requires user to press 'c' to continue whereas
with a waiting -s I can use a .gdbinit script to automate debugging.
Thanks,
Bahadir
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: [PATCH] Remove the default "nowait" option from gdb stubs tcp connection
2009-06-09 18:58 ` bahadir balban
@ 2009-06-09 19:28 ` Jan Kiszka
0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2009-06-09 19:28 UTC (permalink / raw)
To: bahadir balban; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]
bahadir balban wrote:
> On Tue, Jun 9, 2009 at 4:43 PM, Jan Kiszka<jan.kiszka@siemens.com> wrote:
>> The patch is wrong as Paul stated, but your remark about the
>> documentation is valid. So please post a clarifying doc patch against
>> qemu.git.
>>
>> Thanks,
>> Jan
>>
>
> Hmm, OK. Is there any use case where -s is used without -S? GDB
> connecting at an arbitrary time during execution did not make sense to
> me. If I created a small patch with "nowait" as an option would you
> consider it? Most tcp connection options seem to have it.
No, -s makes a lot of sense (just like the corresponding gdbserver
monitor command): You can simply attach to the machine (in system
emulation) or application (in user mode) on demand, when you reached an
interesting point, when something went wrong, when the guest simply
locked up etc.
>
> As per the docs, -S requires user to press 'c' to continue whereas
> with a waiting -s I can use a .gdbinit script to automate debugging.
Nothing prevents you from adding 'c' to your .gdbinit script, right
after the 'tar re :1234'.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-06-09 19:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 13:12 [Qemu-devel] [PATCH] Remove the default "nowait" option from gdb stubs tcp connection bahadir balban
2009-06-09 13:30 ` Paul Brook
2009-06-09 13:43 ` [Qemu-devel] " Jan Kiszka
2009-06-09 18:58 ` bahadir balban
2009-06-09 19:28 ` Jan Kiszka
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).