comp.lang.ada
 help / color / mirror / Atom feed
* GNAT: Ada.Text_IO.Set_Error doesn't seem to work in neither Linux no Windows.
@ 2018-08-21  6:08 Petter Fryklund
  2018-08-21  7:03 ` gautier_niouzes
  0 siblings, 1 reply; 3+ messages in thread
From: Petter Fryklund @ 2018-08-21  6:08 UTC (permalink / raw)


Hi all,

Do I need to do something Before trying to Set_Error?

Regards,
Petter

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

* Re: GNAT: Ada.Text_IO.Set_Error doesn't seem to work in neither Linux no Windows.
  2018-08-21  6:08 GNAT: Ada.Text_IO.Set_Error doesn't seem to work in neither Linux no Windows Petter Fryklund
@ 2018-08-21  7:03 ` gautier_niouzes
  2018-08-21 13:22   ` Petter Fryklund
  0 siblings, 1 reply; 3+ messages in thread
From: gautier_niouzes @ 2018-08-21  7:03 UTC (permalink / raw)


> Do I need to do something Before trying to Set_Error?

Did you open (as out_file) the file you want to associate to Set_Error?

Here an example that's working:

https://sourceforge.net/p/gnavi/code/HEAD/tree/gwenerator/src/GWen_Windows.adb#l547

HTH
G.


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

* Re: GNAT: Ada.Text_IO.Set_Error doesn't seem to work in neither Linux no Windows.
  2018-08-21  7:03 ` gautier_niouzes
@ 2018-08-21 13:22   ` Petter Fryklund
  0 siblings, 0 replies; 3+ messages in thread
From: Petter Fryklund @ 2018-08-21 13:22 UTC (permalink / raw)


Sorry, it seems like stderr redirection is not common between Ada.Text_IO and System.IO. I wanted to redirect output from GNAT.Task_Stack_Usage. What I'd really like is a passive iterator over the task entries, so that I can smoothly send output from our embedded to our Trace Application running on a PC.

Regards,
Petter


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

end of thread, other threads:[~2018-08-21 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-21  6:08 GNAT: Ada.Text_IO.Set_Error doesn't seem to work in neither Linux no Windows Petter Fryklund
2018-08-21  7:03 ` gautier_niouzes
2018-08-21 13:22   ` Petter Fryklund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox