gdb 6.6 sparc-rtems weirdness

Joel Sherrill joel.sherrill at oarcorp.com
Thu Feb 22 16:59:41 UTC 2007


Joel Sherrill wrote:
> Hi,
>
> $ /opt/rtems-4.8/bin/sparc-rtems4.8-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-redhat-linux-gnu 
> --target=sparc-rtems4.8".
> (gdb) tar sim
> unknown option -E
> open of big failed
> Connected to the simulator.
>
>
> Notice the errors after the tar sim command.  These do not happen
> with the 4.7 gdb 6.5 and I don't remember them with the 4.8 gdb 6.5
> which was very likely the same code base anyway.
>
> Any ideas?
>   

Hey Joel... I have one. :)

(gdb) tar sim

Breakpoint 1, sim_open (kind=SIM_OPEN_DEBUG, callback=0x828a6c0, abfd=0x0,
    argv=0x9c90b58) at ../../../gdb-6.6/sim/erc32/interf.c:191
191         sim_callback = callback;
(gdb) p argv
$1 = (char **) 0x9c90b58
(gdb) p *argv
$2 = 0x9c90a58 "gdbsim"
(gdb) p argv[1]
$3 = 0x9c90a68 "-E"
(gdb) p argv[2]
$4 = 0x9c90a78 "big"
(gdb) p argv[3]
$5 = 0x0
(gdb)           

Every simulator "sim_open" call now gets passed a "-E endian" option which
the sis simulator did not get updated to add enough to parse this 
option.  It doesn't
have to do anything but ignore it but it should parse it.

Patch attached.

--joel
> --joel
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sis.diff
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20070222/c18f1679/attachment.bin>


More information about the users mailing list