From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22150 invoked by alias); 16 Mar 2003 14:29:56 -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 22134 invoked from network); 16 Mar 2003 14:29:56 -0000 Received: from unknown (HELO hotmail.com) (64.4.17.159) by sources.redhat.com with SMTP; 16 Mar 2003 14:29:56 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 16 Mar 2003 06:29:55 -0800 Received: from 211.103.39.134 by lw11fd.law11.hotmail.msn.com with HTTP; Sun, 16 Mar 2003 14:29:55 GMT X-Originating-IP: [211.103.39.134] From: "liu lijuan" To: ac131313@redhat.com Cc: gdb@sources.redhat.com Bcc: Subject: Re: about gdb's compiled-in simulator Date: Sun, 16 Mar 2003 14:29:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 16 Mar 2003 14:29:55.0819 (UTC) FILETIME=[83DEABB0:01C2EBC8] X-SW-Source: 2003-03/txt/msg00235.txt.bz2 >From: Andrew Cagney >To: liu lijuan >CC: gdb@sources.redhat.com >Subject: Re: about gdb's compiled-in simulator >Date: Thu, 13 Mar 2003 12:08:06 -0500 > > > > > After gdb get the commands from keyboard,does gdb put these commands into a cmd_buffer,and then gdb and compiled-in simulator access the cmd_buffer together? > > Or does gdb and compiled-in simultor have any rules about the request and reply of commands ? Thanks for your help! > >GDB calls: > >include/gdb/remote-sim.h:sim_do_command() > >with the command string in a buffer. There isn't any expected return >value (the command can't fail). > >Andrew what you mean is that gdb call sim_do_command() to deal with the commands in command line which send to simulator.But after disable this function in all files like this //sim_do_command(),then I recompile cross-gdb,and it can work normally and gdb and simulator can deal with commands as usual.So I still feel puzzled how simulator identify the commands from gdb command line. please can you tell me why? Thanks! liu _________________________________________________________________ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com