I'm using kgdb to debug something via a serial cable, so I "set remote /dev/ttyS1" in gdb, which gives me output from the remote machine through gdb.
Is there any way to redirect this output to a file WITHOUT redirecting the rest of gdb's output? It won't let me enable TUI, either. I'm using:
set logging file ~/gdb_output.log
set logging overwrite on
set logging redirect on
set logging on
Thanks!
Is both the serial coming in from my target machine and the output from gdb using stdout? What uses stdin, what uses stdoutm and what uses stderr?
set logging redirect off
? I don't grasp what kind of workflow you're trying to set up (perhaps usingscreen
to record the debugging sessions would work better?), but GDB Manual has pretty good descriptions of the debugging options.. – Nominal Animal