Note that this only works if process is interrupted with Ctrl+C, if instead cancel is pressed:
tho...@thomas-laptop:~$ gdb gnome-screenshot 2>&1 | tee gdb-gnome-screenshot.txtGNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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 "i486-linux-gnu"... (gdb) handle SIG33 pass nostop noprint Signal Stop Print Pass to program Description SIG33 No No Yes Real-time event 33 (gdb) set pagination 0 (gdb) set logging file gdb-gnome-screenshot.log (gdb) set logging on Copying output to gdb-gnome-screenshot.log. (gdb) run Starting program: /usr/bin/gnome-screenshot [Thread debugging using libthread_db enabled] [New Thread 0xb6d9c700 (LWP 24181)] [New Thread 0xb6c1eb90 (LWP 24372)] ** (gnome-screenshot:24181): WARNING **: Couldn't find window manager window [New Thread 0xb59d2b90 (LWP 24391)] [New Thread 0xb51d1b90 (LWP 24392)] [New Thread 0xb49d0b90 (LWP 24394)] [Thread 0xb59d2b90 (LWP 24391) exited] [Thread 0xb6c1eb90 (LWP 24372) exited] [New Thread 0xb6c1eb90 (LWP 24638)] Program exited normally. (gdb) backtrace full No stack. (gdb) info registers The program has no registers now. (gdb) thread apply all backtrace No registers. (gdb) quit ** Attachment added: "gdb-gnome-screenshot.log" http://launchpadlibrarian.net/23092385/gdb-gnome-screenshot.log -- gnome-screenshot fails to grab current window after 10 sec if right click window, grab whole Desktop instead https://bugs.launchpad.net/bugs/334156 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs