From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1148 invoked by alias); 10 Mar 2006 23:12:02 -0000 Received: (qmail 1137 invoked by uid 22791); 10 Mar 2006 23:12:01 -0000 X-Spam-Check-By: sourceware.org Received: from coltrane.tcs.informatik.uni-muenchen.de (HELO coltrane.tcs.informatik.uni-muenchen.de) (129.187.228.100) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Mar 2006 23:11:59 +0000 Received: from tcs.informatik.uni-muenchen.de (aquila.tcs.ifi.lmu.de [141.84.9.37]) by coltrane.tcs.informatik.uni-muenchen.de (Netscape Messaging Server 4.15) with SMTP id IVXPRT00.G1F; Sat, 11 Mar 2006 00:11:53 +0100 Date: Fri, 10 Mar 2006 23:12:00 -0000 From: Hans-Wolfgang Loidl To: DJ Delorie Cc: gdb@sourceware.org, drow@false.org Subject: Re: gdb support for m32c? Message-ID: <20060311001153.4b5bff3d@anagni.tcs.ifi.lmu.de> In-Reply-To: <200603102255.k2AMtTpV006206@greed.delorie.com> References: <200603102130.k2ALUJ3M004786@greed.delorie.com> <20060310234511.7b55e761@anagni.tcs.ifi.lmu.de> <200603102255.k2AMtTpV006206@greed.delorie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00057.txt.bz2 Hi DJ, On Fri, 10 Mar 2006 17:55:29 -0500 DJ Delorie wrote: > > > In the meantime I managed to build the m32c simulator from the CVS > > HEAD, and with that version I can now run simple C programs, and > > also some programs compiled via C from out high-level language So, > > I'm a happy user (for now)! > > Like I said, the patches are minimal. Example: shift counts bigger > than 16 are not properly truncated, a few more simulated hardware > bits, etc. > > > I noticed, though, that the simulator can't handle argv input: it > > gives a null pointer reference. > > There's no argv support. Boards don't have command lines ;-) > > I have a pile of r8c, m16c, and m32c boards on my desk. I try to make > the simulator compatible with them, so I can run the same images on > both. > > If you're interested in adding argv support, it might be a good idea > to wait for the gdb integration, since gdb needs to know how to set > argv also. It's no biggy; would just be handy for testing stuff. I'll be in touch if I find more serious things. For now I mainly stick to the simulator, but in the end we'll work on an m32c based board, to evaluate. What do you use to flash the code onto the actual board? Cheers, -- HW