From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2535 invoked by alias); 2 Oct 2003 02:26:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2527 invoked from network); 2 Oct 2003 02:26:50 -0000 Received: from unknown (HELO mail02.idc.renesas.com) (202.234.163.13) by sources.redhat.com with SMTP; 2 Oct 2003 02:26:50 -0000 Received: from mail02.idc.renesas.com (localhost [127.0.0.1]) by mail02.idc.renesas.com with ESMTP id h922Qlp0017292 for ; Thu, 2 Oct 2003 11:26:48 +0900 (JST) Received: from guardian02.idc.renesas.com ([172.20.8.133]) by mail02.idc.renesas.com with ESMTP id h922QkYV017289; Thu, 2 Oct 2003 11:26:46 +0900 (JST) Received: (from root@localhost) by guardian02.idc.renesas.com with id h922Qieu029984; Thu, 2 Oct 2003 11:26:44 +0900 (JST) Received: from unknown [172.20.8.73] by guardian02.idc.renesas.com with SMTP id MAA29983 ; Thu, 2 Oct 2003 11:26:44 +0900 Received: from mta05.idc.renesas.com (localhost [127.0.0.1]) by mta05.idc.renesas.com with ESMTP id h922Qjqt025315; Thu, 2 Oct 2003 11:26:45 +0900 (JST) Received: from rnsmtp01.hoku_r.renesas.com ([10.145.246.51]) by mta05.idc.renesas.com with ESMTP id h922Qjcn025310; Thu, 2 Oct 2003 11:26:45 +0900 (JST) Received: from mrkaisv.hoku.renesas.com ([10.145.105.245]) by rnsmtp01.hoku_r.renesas.com (8.9.3/3.7W) with ESMTP id LAA15868; Thu, 2 Oct 2003 11:26:44 +0900 (JST) Received: from KEI (unknown [10.145.105.81]) by mrkaisv.hoku.renesas.com (Postfix) with SMTP id 06232798501; Thu, 2 Oct 2003 11:26:44 +0900 (JST) Message-ID: <00bc01c3888d$39639660$5169910a@KEI> From: "Kei Sakamoto" To: "Andrew Cagney" Cc: References: <02e201c35a5e$883a8cb0$5169910a@KEI> <20030817210347.GF11300@nevyn.them.org> <3F6EA141.7020502@redhat.com> Subject: Re: [patch] New m32r remote target, m32rsdi Date: Thu, 02 Oct 2003 02:26:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-10/txt/msg00016.txt.bz2 Andrew, Sorry for a late reply. > > * remote-m32r-sdi.c : New file, interface to m32r on-chip > >> debug interface, SDI (Scalable Debug Interface). > >> * Makefile.in (remote-m32r-sdi.o): Add build rule. > >> * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o. : > Kei, Sorry for the delay, I think 6.0 is done for .... > From the external interface interface viewpoint, I've noticed a few things: > > - it has a custom serial [socket] interface > Is there a reason to not use serial.[hc]? All new targets should use a > common interface (in fact I think I just deleted the last target that > didn't :-) as by doing this the user gets more consistent behavior. There is no special reaseon. So I've modified my patch to use serial.[hc]. > - it isn't documented > Probably just a line or two after the doco for "target m32r" in > doc/gdb.texinfo. > > - it isn't async > Look at remote.c:remote_async_wait (although as far examples go it may > not help much) and notice how, for 'O' packets, it returns: > /* Return immediately to the event loop. The event loop will > still be waiting on the inferior afterwards. */ > status->kind = TARGET_WAITKIND_IGNORE; > If this target is going to last, it's going to need to eventually become > async (just not immediatly). Please don't be suprized if, at some stage > in the not to distant future, I start making noises about this. Refering async target in remote.c, I'm implementing the asyncronized version of m32r new remote target. But I noticed the async target didn't work correctly. > cat hello.c main() { printf("hello, world\n"); } > gcc -g hello.c > ~/gdb-20031001/build/gdb/gdbserver/gdbserver localhost:2345 a.out Process a.out created; pid = 8522 >From another terminal: > ~/gdb-20031001/build/gdb/gdb a.out GNU gdb 20031001 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) target async localhost:2345 Remote debugging using localhost:2345 0x40001e10 in ?? () (gdb) break main Breakpoint 1 at 0x8048358: file hello.c, line 4. (gdb) c Continuing. The program is running. Exit anyway? (y or n) n Not confirmed. (gdb) Is the async target under development? If so, is there any other remote target I can refer as a example of asynchronized remote targets? === Kei Sakamoto Renesas Technology Corp. sakamoto.kei@renesas.com