Bug 13678 - sim: arm: internal error (register not updated) in remote-sim.c
Summary: sim: arm: internal error (register not updated) in remote-sim.c
Status: WAITING
Alias: None
Product: gdb
Classification: Unclassified
Component: sim (show other bugs)
Version: 7.4
: P2 normal
Target Milestone: ---
Assignee: Nick Clifton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 20:33 UTC by adam
Modified: 2022-11-02 11:56 UTC (History)
2 users (show)

See Also:
Host:
Target: arm-*
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adam 2012-02-09 20:33:04 UTC
I built gdb for arm-elf and tried it on a program I built with GCC.  I'm not sure I configured things right or if the target program was built correctly, but the gdb code looks suspicious enough that it's worth reporting anyway.

I used the commands:
gdb hello
(gdb) target sim
(gdb) load
(gdb) r
Starting program...
.../gdb/remote-sim.c:531: internal-error: Register 25 not updated

In sim/arm/wrapper.c, sim_store_register() appears to return -1 if the register is any general register, floating-point register, or PS.

In gdb/remote-sim.c, gdbsim_store_register() calls sim_store_register() and then displays the above-mentioned internal error if that function returns a negative value.  "What we've got here is a failure to communicate..."
Comment 1 Luis Machado 2022-11-02 11:34:18 UTC
Hi Nick, are you still planning to address this?
Comment 2 Nick Clifton 2022-11-02 11:55:05 UTC
(In reply to Luis Machado from comment #1)
> Hi Nick, are you still planning to address this?

Sorry - I had forgotten that I am still listed as a maintainer for the arm sim.

I will have a go, although it has been a long time.
Comment 3 Nick Clifton 2022-11-02 11:56:51 UTC
(In reply to adam from comment #0)
Hi Adam,

  Please could you upload the hello binary that triggers this problem.

  I tried to reproduce the failure using an executable that I had created
  myself, but it worked.

Cheers
  Nick