Posts


Remote GDB output

2020-08-04

I've recently come across a fairly useful trick for debugging programs that do a lot of command line IO. As it turns out, it is possible to tell GDB to redirect the standard IO streams of the debugged program to a different terminal session. How this works is that you first determine the underlying terminal device file for the remote window, then pass it to gdb using the -tty flag. Now GDB will run the debugged program with all input and output directed towards the remote terminal.


Hello world

2020-07-11

The main reason why I'm creating this blog is to improve my technical writing skills. I'm not quite sure what I'm going to put here yet, but it will probably be tech related, and hopefully it will be interesting.

© 2020 Sahan Fernando. All rights reserved.