From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ME73z-000507-A7 for qemu-devel@nongnu.org; Tue, 09 Jun 2009 15:32:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ME73u-0004zb-QY for qemu-devel@nongnu.org; Tue, 09 Jun 2009 15:32:50 -0400 Received: from [199.232.76.173] (port=41135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ME73u-0004zY-M1 for qemu-devel@nongnu.org; Tue, 09 Jun 2009 15:32:46 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:51872) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ME73u-0001wG-57 for qemu-devel@nongnu.org; Tue, 09 Jun 2009 15:32:46 -0400 Message-ID: <4A2EB7D6.4020202@web.de> Date: Tue, 09 Jun 2009 21:28:22 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <7c85e0b50906090612r77562e66n81322ab191ba7c6c@mail.gmail.com> <4A2E66EF.2080000@siemens.com> <7c85e0b50906091158k5d9443b5p756d9798f2a86f04@mail.gmail.com> In-Reply-To: <7c85e0b50906091158k5d9443b5p756d9798f2a86f04@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4273D42C17A1A9D4A0114E89" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [PATCH] Remove the default "nowait" option from gdb stubs tcp connection List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bahadir balban Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4273D42C17A1A9D4A0114E89 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable bahadir balban wrote: > On Tue, Jun 9, 2009 at 4:43 PM, Jan Kiszka wrot= e: >> 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 >> >=20 > 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. >=20 > 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 --------------enig4273D42C17A1A9D4A0114E89 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkout9cACgkQniDOoMHTA+kcBwCfZea2rVicTcAOjK+pad5lw6LD VO4An3SVVna556fDn+9TZmIz+ssnb2nt =Wvfi -----END PGP SIGNATURE----- --------------enig4273D42C17A1A9D4A0114E89--