$ gdb --args gnuplot -p -e "data_file='ttyACM0-870.csv'" example2.gp GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from gnuplot...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/gnuplot -p -e data_file=\'ttyACM0-870.csv\' example2.gp [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffead7e700 (LWP 31925)] [New Thread 0x7fffea10d700 (LWP 31926)] [New Thread 0x7fffe990c700 (LWP 31927)] [Thread 0x7fffead7e700 (LWP 31925) exited] [Thread 0x7fffea10d700 (LWP 31926) exited] [Thread 0x7ffff7fb2940 (LWP 31921) exited] [Inferior 1 (process 31921) exited normally] (gdb) quit