From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2290 invoked by alias); 4 Feb 2003 23:32:18 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2283 invoked from network); 4 Feb 2003 23:32:17 -0000 Received: from unknown (HELO nick.uklinux.net) (194.247.49.65) by 172.16.49.205 with SMTP; 4 Feb 2003 23:32:17 -0000 Received: by nick.uklinux.net (Postfix, from userid 501) id 325E076037; Tue, 4 Feb 2003 23:29:10 +0000 (GMT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15936.19654.642542.951794@nick.uklinux.net> Date: Tue, 04 Feb 2003 23:32:00 -0000 To: gdb@sources.redhat.com Subject: Questions about GDB/MI X-SW-Source: 2003-02/txt/msg00090.txt.bz2 I'm trying to get my head round GDB/MI and have a few simple/dumb questions: Simple example in info pages: You say: > -> -stop > <- (gdb) > > and later: > > <- *stop,reason="stop",address="0x123",source="a.c:123" > <- (gdb) I get: -> -stop <- ^error,msg="Undefined MI command: stop" <- (gdb) You say: > -> print 1+2 > <- ~3\n > <- (gdb) I get: -> print 1+2 <- &"print 1+2\n" <- ~"$1 = 3" <- ~"\n" <- ^done <- (gdb) Running a simple program, I get a sequence like: -> -exec-next <- ^running <- (gdb) <- *stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x08048578",func="main",args=[],file="myprog.c",line="18"} <- (gdb) According to the GDB/MI Output Syntax shouldn't that be: -> -exec-next <- ^running <- *stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x08048578",func="main",args=[],file="myprog.c",line="18"} <- (gdb) i.e isn't that one (gdb) too many? My simple program prints out: a[0]=0 shouldn't that be: @"a[0]=0" Annotation uses ^Z^Z to flag things which I guess is not normal output. What would happen if the program being debugged printed out strings like *stopped or ^running? These only contain ASCII characters after all. And one question about the repository. I've checked out as Elena advised. I've got the interp branch but every time I use `cvs update' in src, even without the -d option it keeps on trying to give me other directories like binutils. I have to go into gdb and do `cvs update' there where I just get gdbtk but I'm worried that then I might be missing other files that I need.. Nick