From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16778 invoked by alias); 10 Mar 2006 22:55:50 -0000 Received: (qmail 16770 invoked by uid 22791); 10 Mar 2006 22:55:50 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Mar 2006 22:55:49 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k2AMtiuJ004566; Fri, 10 Mar 2006 17:55:44 -0500 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k2AMth127860; Fri, 10 Mar 2006 17:55:43 -0500 Received: from greed.delorie.com (dj.cipe.redhat.com [10.0.0.222]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k2AMtht19916; Fri, 10 Mar 2006 17:55:43 -0500 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1]) by greed.delorie.com (8.13.1/8.13.1) with ESMTP id k2AMtYme006209; Fri, 10 Mar 2006 17:55:34 -0500 Received: (from dj@localhost) by greed.delorie.com (8.13.1/8.13.1/Submit) id k2AMtTpV006206; Fri, 10 Mar 2006 17:55:29 -0500 Date: Fri, 10 Mar 2006 22:55:00 -0000 Message-Id: <200603102255.k2AMtTpV006206@greed.delorie.com> From: DJ Delorie To: hwloidl@informatik.uni-muenchen.de CC: gdb@sourceware.org, drow@false.org In-reply-to: <20060310234511.7b55e761@anagni.tcs.ifi.lmu.de> (message from Hans-Wolfgang Loidl on Fri, 10 Mar 2006 23:45:11 +0100) Subject: Re: gdb support for m32c? References: <200603102130.k2ALUJ3M004786@greed.delorie.com> <20060310234511.7b55e761@anagni.tcs.ifi.lmu.de> 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/msg00056.txt.bz2 > 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.