From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17221 invoked by alias); 22 Feb 2007 18:26:35 -0000 Received: (qmail 17208 invoked by uid 22791); 22 Feb 2007 18:26:33 -0000 X-Spam-Check-By: sourceware.org Received: from mail.oarcorp.com (HELO mail.oarcorp.com) (216.186.189.5) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 22 Feb 2007 18:26:27 +0000 Received: (qmail 29864 invoked by uid 507); 22 Feb 2007 18:26:25 -0000 Received: from 192.168.1.3 by mail.oarcorp.com (envelope-from , uid 501) with qmail-scanner-1.25st (spamassassin: 3.1.1. perlscan: 1.25st. Clear:RC:1(192.168.1.3):. Processed in 0.034421 secs); 22 Feb 2007 18:26:25 -0000 X-Qmail-Scanner-Mail-From: joel.sherrill@oarcorp.com via mail.oarcorp.com X-Qmail-Scanner: 1.25st (Clear:RC:1(192.168.1.3):. Processed in 0.034421 secs Process 29858) Received: from unknown (HELO ?192.168.1.3?) (192.168.1.3) by mail.oarcorp.com with SMTP; 22 Feb 2007 18:26:25 -0000 Message-ID: <45DDE051.4090103@oarcorp.com> Date: Thu, 22 Feb 2007 18:26:00 -0000 From: Joel Sherrill User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: gdb-patches@sourceware.org, Ralf Corsepius Subject: Re: gdb 6.6 sim/erc32 does not parse -E option References: <45DDCCAE.9060801@oarcorp.com> <20070222171239.GA13379@caradoc.them.org> <45DDD2C6.4080606@oarcorp.com> <20070222181601.GA16625@caradoc.them.org> In-Reply-To: <20070222181601.GA16625@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00278.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Feb 22, 2007 at 11:28:38AM -0600, Joel Sherrill wrote: > >> With this patch, gdb still passes a -E big to sim_open in the erc32 >> simulator code and there is nothing to parse it at that level. >> > > It shouldn't do that. If it does, please show me a complete GDB > session. > > I double checked that the patch is applied and had made clean before the last email. Here is the user's view: $ ./gdb/gdb GNU gdb 6.6 Copyright (C) 2006 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 "--host=i686-pc-linux-gnu --target=sparc-rtems4.8". (gdb) tar sim unknown option -E open of big failed Connected to the simulator. (gdb) Here is a gdb of sparc-rtems-gdb: .................................... There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=sparc-rtems4.8". (gdb) tar sim Breakpoint 1, sim_open (kind=SIM_OPEN_DEBUG, callback=0x828a6e0, abfd=0x0, argv=0x885eb58) at ../../../gdb-6.6/sim/erc32/interf.c:191 191 sim_callback = callback; (gdb) p argv[0] $1 = 0x885ea58 "gdbsim" (gdb) p argv[1] $2 = 0x885ea68 "-E" (gdb) p argv[2] $3 = 0x885ea78 "big" (gdb) p argv[3] $4 = 0x0 (gdb) I am not seeing much difference. When I break in remote-sim.c and step, this is what I see: Breakpoint 1, gdbsim_open (args=Variable "args" is not available. ) at ../../gdb-6.6/gdb/remote-sim.c:506 506 strcpy (arg_buf, "gdbsim"); /* 7 */ (gdb) n 509 switch (selected_byte_order ()) (gdb) 512 strcat (arg_buf, " -E big"); (gdb) 522 if (selected_architecture_name () != NULL) (gdb) 528 if (args) (gdb) n 533 argv = buildargv (arg_buf); (gdb) Hopefully this helps. --joel --joel