Menu

#207 OpenOCD sends debug and warning messages to the stderr

0.9.0
closed
nobody
None
none
2021-06-19
2018-09-03
Roman
No

OpenOCD sends debug and warning messages to the stderr.

Expected result: Debug and warning, info messages should be sent to stdout. Error messages should be sent to the stderr.

Actual result: All messages (debug, warning, error) messages are sent to the stderr

Discussion

  • Antonio Borneo

    Antonio Borneo - 2021-06-05
     
  • Antonio Borneo

    Antonio Borneo - 2021-06-05

    OpenOCD can be used in "pipe" from within GDB.
    From doc/openocd.texi:

    A pipe connection is typically started as follows:
    @example
    target extended-remote | \
    openocd -c "gdb_port pipe; log_output openocd.log"
    @end example
    This would cause GDB to run OpenOCD and communicate using pipes (stdin/stdout).

    To avoid mixing LOGs with GDB communication, all OpenOCD output is by default sent to stderr.
    Nevertheless it can be redirected wherever you want with the "log_output" command.
    If you want it on stdout you can, on Linux, add on commandline "-c log_outupt /dev/stdout"

    For me this ticket is not valid and should be closed

     
  • Antonio Borneo

    Antonio Borneo - 2021-06-18
    • status: new --> closed
    • Resolution: --> none
     
  • Antonio Borneo

    Antonio Borneo - 2021-06-18

    OpenOCD can be used in "pipe" from within GDB.
    From doc/openocd.texi:

    A pipe connection is typically started as follows:
    @example
    target extended-remote | \
    openocd -c "gdb_port pipe; log_output openocd.log"
    @end example
    This would cause GDB to run OpenOCD and communicate using pipes (stdin/stdout).

    To avoid mixing LOGs with GDB communication, all OpenOCD output is by default sent to stderr.
    Nevertheless it can be redirected wherever you want with the "log_output" command.
    If you want it on stdout you can, on Linux, add on commandline "-c log_outupt /dev/stdout"

    For me this ticket is not valid and should be closed as

     
    • Tommy Murphy

      Tommy Murphy - 2021-06-18

      If you want it on stdout you can, on Linux, add on commandline "-c log_outupt /dev/stdout"

      Do you know what the equivalent is on Windows?

       

      Last edit: Tommy Murphy 2021-06-18

Log in to post a comment.