public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run
@ 2012-12-09  1:11 htm at lavabit dot com
  2012-12-09  1:22 ` [Bug sim/14935] " htm at lavabit dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: htm at lavabit dot com @ 2012-12-09  1:11 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14935

             Bug #: 14935
           Summary: printf/swiwrite with arm-none-eabi target simulator
                    only working on first run
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sim
        AssignedTo: unassigned@sourceware.org
        ReportedBy: htm@lavabit.com
    Classification: Unclassified


Hello,
the printf behaviour with 7.5 and arm-none-eabi simulator is strange.
It will only show output on the very first run of the programm. Running it
again will show no further output.
To make it worse there seem to be two bugs:
SWIWrite (from armos.c) is only called after the first "run" after "load".
"run" again after a finished inferior will not call SWIWrite again.
This is workaroundable by calling "load" again, but then at the second run the
file descriptor is wrong:
armos.c:
res = sim_callback->write (sim_callback, f, local, len);
this will call through
callback.c
os_write
where a call to
fdbad
will return -1 and set error to EBADF because 
p->fd_buddy[fd] < 0

Until a real fix (the simulator seems to be not reinitialized well)
sim_callback->write_stdout (sim_callback, local, len);
can be substituted for the write.
But this still only works on the first run.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug sim/14935] printf/swiwrite with arm-none-eabi target simulator only working on first run
  2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
@ 2012-12-09  1:22 ` htm at lavabit dot com
  2014-03-14  0:46 ` vapier at gentoo dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: htm at lavabit dot com @ 2012-12-09  1:22 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14935

Johannes Goslar <htm at lavabit dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |htm at lavabit dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug sim/14935] printf/swiwrite with arm-none-eabi target simulator only working on first run
  2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
  2012-12-09  1:22 ` [Bug sim/14935] " htm at lavabit dot com
@ 2014-03-14  0:46 ` vapier at gentoo dot org
  2015-03-29 22:02 ` vapier at gentoo dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vapier at gentoo dot org @ 2014-03-14  0:46 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14935

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vapier at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug sim/14935] printf/swiwrite with arm-none-eabi target simulator only working on first run
  2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
  2012-12-09  1:22 ` [Bug sim/14935] " htm at lavabit dot com
  2014-03-14  0:46 ` vapier at gentoo dot org
@ 2015-03-29 22:02 ` vapier at gentoo dot org
  2015-03-29 22:09 ` vapier at gentoo dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vapier at gentoo dot org @ 2015-03-29 22:02 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14935

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm-eabi

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug sim/14935] printf/swiwrite with arm-none-eabi target simulator only working on first run
  2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
                   ` (2 preceding siblings ...)
  2015-03-29 22:02 ` vapier at gentoo dot org
@ 2015-03-29 22:09 ` vapier at gentoo dot org
  2021-10-31 17:27 ` [Bug sim/14935] sim: arm: printf/swiwrite " vapier at gentoo dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vapier at gentoo dot org @ 2015-03-29 22:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14935

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug sim/14935] sim: arm: printf/swiwrite only working on first run
  2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
                   ` (3 preceding siblings ...)
  2015-03-29 22:09 ` vapier at gentoo dot org
@ 2021-10-31 17:27 ` vapier at gentoo dot org
  2022-11-02 11:34 ` luis.machado at arm dot com
  2022-11-03 10:26 ` nickc at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: vapier at gentoo dot org @ 2021-10-31 17:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14935

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|printf/swiwrite with        |sim: arm: printf/swiwrite
                   |arm-none-eabi target        |only working on first run
                   |simulator only working on   |
                   |first run                   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug sim/14935] sim: arm: printf/swiwrite only working on first run
  2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
                   ` (4 preceding siblings ...)
  2021-10-31 17:27 ` [Bug sim/14935] sim: arm: printf/swiwrite " vapier at gentoo dot org
@ 2022-11-02 11:34 ` luis.machado at arm dot com
  2022-11-03 10:26 ` nickc at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: luis.machado at arm dot com @ 2022-11-02 11:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14935

Luis Machado <luis.machado at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luis.machado at arm dot com

--- Comment #1 from Luis Machado <luis.machado at arm dot com> ---
Hi Nick, are you still planning to address this?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug sim/14935] sim: arm: printf/swiwrite only working on first run
  2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
                   ` (5 preceding siblings ...)
  2022-11-02 11:34 ` luis.machado at arm dot com
@ 2022-11-03 10:26 ` nickc at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: nickc at redhat dot com @ 2022-11-03 10:26 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14935

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Luis Machado from comment #1)
> Hi Nick, are you still planning to address this?

No, sorry - I am really not able to work on ARM SIM issues any more.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-03 10:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-09  1:11 [Bug sim/14935] New: printf/swiwrite with arm-none-eabi target simulator only working on first run htm at lavabit dot com
2012-12-09  1:22 ` [Bug sim/14935] " htm at lavabit dot com
2014-03-14  0:46 ` vapier at gentoo dot org
2015-03-29 22:02 ` vapier at gentoo dot org
2015-03-29 22:09 ` vapier at gentoo dot org
2021-10-31 17:27 ` [Bug sim/14935] sim: arm: printf/swiwrite " vapier at gentoo dot org
2022-11-02 11:34 ` luis.machado at arm dot com
2022-11-03 10:26 ` nickc at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).