$ gdb mousepad GNU gdb (GDB) Fedora 7.10.1-30.fc23 Copyright (C) 2015 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-redhat-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 mousepad...Reading symbols from /usr/lib/debug/usr/bin/mousepad.debug...done. done. (gdb) run --foo Starting program: /usr/bin/mousepad --foo [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". (mousepad:19529): Mousepad-ERROR **: Unknown option --foo Program received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff629e81b in _g_log_abort (breakpoint=1) at gmessages.c:324 324 G_BREAKPOINT (); Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.6-19.fc23.x86_64 libgcc-5.3.1-2.fc23.x86_64 (gdb) bt #0 0x00007ffff629e81b in _g_log_abort (breakpoint=1) at gmessages.c:324 #1 g_logv (log_domain=0x5555555831a0 "Mousepad", log_level=G_LOG_LEVEL_ERROR, format=, args=args@entry=0x7fffffffde70) at gmessages.c:1081 #2 0x00007ffff629e98f in g_log (log_domain=, log_level=, format=) at gmessages.c:1119 #3 0x0000555555567bb2 in main (argc=2, argv=0x7fffffffe068) at main.c:95 (gdb)