From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15233 invoked by alias); 28 Oct 2009 10:20:06 -0000 Received: (qmail 15210 invoked by uid 22791); 28 Oct 2009 10:20:03 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from dns.vtab.com (HELO oden.vtab.com) (62.20.90.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Oct 2009 10:19:54 +0000 Received: from oden.vtab.com (oden.vtab.com [127.0.0.1]) by oden.vtab.com (Postfix) with ESMTP id 9DF6826EEF9; Wed, 28 Oct 2009 11:19:48 +0100 (CET) Received: from polhem (unknown [62.20.90.206]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oden.vtab.com (Postfix) with ESMTP id 7557726EE01; Wed, 28 Oct 2009 11:19:48 +0100 (CET) From: "Jakob Engblom" To: "'Michael Snyder'" Cc: References: <007101ca573c$0dfd9fa0$29f8dee0$@com> <4AE751C8.2070902@vmware.com> In-Reply-To: <4AE751C8.2070902@vmware.com> Subject: RE: gdb-serial: inform gdb that target has changed Date: Wed, 28 Oct 2009 11:08:00 -0000 Message-ID: <008101ca57b8$2f3a2860$8dae7920$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00405.txt.bz2 > Hi Jakob, >=20 > I'd like to know more about the context, but my first suggestion > is probably going to be the same in any event -- have you tried > this command instead of disconnect? >=20 > (gdb) help flushregs > Force gdb to flush its register cache (maintainer command) >=20 >=20 > After this command, if you give "frame", or any other command > that causes gdb to need to know where the target is, gdb will > fetch the registers afresh. We need this to be invoked from the target, across gdb-serial connections.= =20 > Now as to your context, and my questions... >=20 > Is this something that is happening when gdb is "at the prompt"? >=20 > Of course, in normal (sync) mode, gdb assumes that nothing is > happening on the target while we sit at the gdb prompt. Yes.=20 Sice Simics has its own parallel command-line, we can be stepping the targe= t, changing memory and register contents, and do other things as gdb is sittin= g at prompt waiting for commands.=20=20 So a simple gdb-serial backwards command to notify gdb that the target has changed and that all state should be updated would be the simple perfect solution for us. Best regards, /jakob _______________________________________________________ Jakob Engblom, PhD, Technical Marketing Manager Virtutech=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Direct: +46= 8 690 07 47=A0=A0=A0 Drottningholmsv=E4gen 22=A0=A0=A0=A0=A0 Mobile: +46 709 242 646=A0=A0 11243 Stockholm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Web:=A0=A0=A0 www.virtu= tech.com=A0 Sweden ________________________________________________________ =A0=20