From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6591 invoked by alias); 18 Mar 2010 15:55:05 -0000 Received: (qmail 6578 invoked by uid 22791); 18 Mar 2010 15:55:04 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 15:54:58 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id o2IFssSx019476 for ; Thu, 18 Mar 2010 16:54:55 +0100 Received: from wwb17 (wwb17.prod.google.com [10.241.241.81]) by wpaz1.hot.corp.google.com with ESMTP id o2IFsrMf004356 for ; Thu, 18 Mar 2010 08:54:53 -0700 Received: by wwb17 with SMTP id 17so1158280wwb.8 for ; Thu, 18 Mar 2010 08:54:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.89.80 with SMTP id b58mr557157wef.73.1268927693117; Thu, 18 Mar 2010 08:54:53 -0700 (PDT) In-Reply-To: <201003180335.17827.vapier@gentoo.org> References: <201003180335.17827.vapier@gentoo.org> Date: Thu, 18 Mar 2010 15:55:00 -0000 Message-ID: Subject: Re: passing extended sim options when using gdb sim target From: Doug Evans To: Mike Frysinger Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2010-03/txt/msg00137.txt.bz2 On Thu, Mar 18, 2010 at 12:35 AM, Mike Frysinger wrote: > a compiled simulator has a lot of fun options: > =A0 =A0 =A0 =A0--hw-device <...> > =A0 =A0 =A0 =A0--memory-region <...> > =A0 =A0 =A0 =A0--model <...> > =A0 =A0 =A0 =A0--environment <...> > =A0 =A0 =A0 =A0etc... > > when using the command line simulator (`run`), passing these options via = the > command line is obvious. =A0but i cant seem to figure out how to do the s= ame > thing when running gdb and using the sim target. > > the gdb manual indicates the form is: > =A0 =A0 =A0 =A0target > but nothing i stick in for seems to make a difference > > i also recall seeing references to adding hardware devices on the fly fro= m the > gdb command line, but i cant locate any info along these lines either ... > -mike > IIRC (gdb) target sim --foo bar --baz As for adding things on the fly, there is the "sim" command in gdb. How the sim interprets it is up to the sim (again, IIRC).