From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: gdb removing breakpoints after first breakpoint is hit ?? Date: Fri, 06 Jun 2008 19:49:20 +0200 Message-ID: <484978A0.9020203@web.de> References: <1212773930.17418.17.camel@thinkpadL> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig317D11F0411C72CA612486D7" Cc: kvm To: jyoung5@us.ibm.com Return-path: Received: from fmmailgate02.web.de ([217.72.192.227]:43989 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbYFFRt3 (ORCPT ); Fri, 6 Jun 2008 13:49:29 -0400 In-Reply-To: <1212773930.17418.17.camel@thinkpadL> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig317D11F0411C72CA612486D7 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Jerone Young wrote: > Has anyone notice with x86 that after you hit your first breakpoint and= > come back into gdb from kvm, gdb starts to sends commands to the qemu > gdb stub to serially remove all the break points you have specified? > Ultimately ending up in a state where you will have no breakpoints when= > you go back into KVM.=20 >=20 > So you end up hitting your first breakpoint and then no others (since > gdb removed them). Could be my version of gdb .. but trying to quickly > see if anyone else has seen this. Not really, but maybe some error made gdb remove them. You have a trace of the remote session (set debug remote 1)? Which gdb version? Which kvm version? Note that Avi just merged latest qemu SVN into userland which also brings in a few new features for the gdbstub: detach and kill. The latter is clearly visible (kvm quits), the latter removes all breakpoints as well. But that will be visible in the session trace. Ah, and another pitfall is trying to debug SMP guests: Only VCPU 0 will report breakpoints to you (see related patch of mine). Jan --------------enig317D11F0411C72CA612486D7 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.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFISXinniDOoMHTA+kRAvxIAJ40hT/hH/UBIgk6bk9lnG805g2rJwCcDIJu qKkm4URT4NtPR+bPPTTQCk0= =UkEB -----END PGP SIGNATURE----- --------------enig317D11F0411C72CA612486D7--