From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12673 invoked by alias); 9 Jul 2007 08:44:16 -0000 Received: (qmail 12655 invoked by uid 22791); 9 Jul 2007 08:44:13 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.234) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Jul 2007 08:43:45 +0000 Received: by wr-out-0506.google.com with SMTP id i21so369885wra for ; Mon, 09 Jul 2007 01:43:43 -0700 (PDT) Received: by 10.78.184.2 with SMTP id h2mr1425742huf.1183970622758; Mon, 09 Jul 2007 01:43:42 -0700 (PDT) Received: by 10.78.139.18 with HTTP; Mon, 9 Jul 2007 01:43:42 -0700 (PDT) Message-ID: Date: Mon, 09 Jul 2007 08:44:00 -0000 From: Rick.Lee To: Rick.Lee , gdb@sourceware.org Subject: Re: gdb over smbus In-Reply-To: <20070706115920.GA10648@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070706115920.GA10648@caradoc.them.org> 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: 2007-07/txt/msg00060.txt.bz2 thanks,Daniel, there are some incorrect information about this soc, through smbus interface, cpu core registers, such as status register, register files r0-rx could not be accessed, all other peripheral registers can be accessed,including breakpoint enable/disable. with these restrictions, is it still possible to do such a converter to support source level debuging? thank you. Rick 2007/7/6, Daniel Jacobowitz : > On Fri, Jul 06, 2007 at 04:21:46PM +0800, Rick.Lee wrote: > > hi,all, > > I have a soc with smbus interface, through this smbus interface, > > all kinds of resources on chip can be accessed, such as sram, > > registers, to set/enable/disable breakpoint, restart soc. > > I want to know if it's possible to port GDB on this soc to supoort > > souce code level debug? > > BTW, gcc compiler has been ported to support this kind of soc. > > I know little about gdb porting, any information are appreciated! > > Probably. You should write a convertor between your SMBus debug > interface and the GDB remote protocol, and then connect GDB to it over > TCP. > > -- > Daniel Jacobowitz > CodeSourcery >