#2644 closed defect (fixed)
sis does not run on gdb 7.11 but does on gdb 7.9
Reported by: | Joel Sherrill | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 5.1 |
Component: | tool/rsb | Version: | 5 |
Severity: | normal | Keywords: | |
Cc: | Chris Johns | Blocked By: | |
Blocking: |
Description
I know we reported this on the gdb list but we should have a ticket.
Neither gdb nor run works for sis on gdb 4.11. Checked against RTEMS 4.11 tools (gdb 4.9) and it will run sis.
Not sure about other simulators.
Change History (9)
comment:1 Changed on 03/15/16 at 22:24:32 by Chris Johns
Summary: | sis does not run on gdb 4.11 but does on gdb 4.9 → sis does not run on gdb 7.11 but does on gdb 7.9 |
---|
comment:2 Changed on 03/16/16 at 04:51:02 by Chris Johns <chrisj@…>
comment:3 Changed on 03/16/16 at 04:55:11 by Chris Johns <chrisj@…>
comment:4 Changed on 03/16/16 at 14:48:04 by Joel Sherrill
sis command still does not work. Or I don't remember how to use it. :)
comment:6 Changed on 03/16/16 at 19:56:48 by Chris Johns
FYI I ran all the SIS and ERC32 tests in a single run. The results are:
Passed: 1062 Failed: 3 Timeouts: 3 Invalid: 0 -------------- Total: 1068 Failures: psxcancel.exe psxcancel.exe spcontext01.exe Timeouts: crypt01.exe spcontext01.exe crypt01.exe Average test time: 0:00:00.667911 Testing time : 0:11:53.329500
comment:7 Changed on 11/14/16 at 16:34:00 by Joel Sherrill
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 Changed on 05/11/17 at 07:31:02 by Sebastian Huber
Milestone: | 4.12 → 4.12.0 |
---|
comment:9 Changed on 11/09/17 at 06:27:14 by Sebastian Huber
Milestone: | 4.12.0 → 5.1 |
---|
Milestone renamed
Note: See
TracTickets for help on using
tickets.
There is 2 separate problems:
This patch https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=465fb143 changed the sim/erc32 from the sim/common/run.c to sis.o for the run command so in effect made the run command the same as the sis command.
Our rtems-4.11 release uses gdb-7.9 with 23 patches (https://git.rtems.org/rtems-tools/tree/tools/4.11/gdb/sparc/7.9?h=4.11) so upgrading to gdb-7.11 was considered a better move than moving the rtems-4.11 patches to rtems-4.12. Of the 23 patches gdb-7.11 has patches 0001-0013 merged along with 0016 and the remaining patches are not merged. The 0014 patch is a gdb-7.9 version of my patch to clean up the output paths. Without that patch the erc32 does not support MI mode and can block on input locking up when run in the test framework. The remaining patches are LEON2 and LEON3 support which I am not sure about and watchpoints.
Running on FreeBSD works with the sparc/sis BSP. Running on Linux gives:
I am not sure what broken this.
Back to the run command. The run command should be using sim/common/nrun.c and this moves the simulator to the common structure and that conflicts with the sim/erc32/inferf.c code. The erc32 sim_open is broken and needs to be fixed to return a real SIM_DESC and that needs to be filled in correct. An issue I am not sure about is now the inferior's memory access routines link up with the SIS view of memory. I suspect they would be separate pieces of memory.
Also the sim/erc32 makes lots of printf calls and these needs to via GDB's filtered print calls. The direct printf calls break MI support.