From The Compiler, 5 Years ago, written in Plain Text.
Embed
  1. GNU gdb (GDB) 7.5
  2. Copyright (C) 2012 Free Software Foundation, Inc.
  3. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  4. This is free software: you are free to change and redistribute it.
  5. There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  6. and "show warranty" for details.
  7. This GDB was configured as "x86_64-unknown-linux-gnu".
  8. For bug reporting instructions, please see:
  9. <http://www.gnu.org/software/gdb/bugs/>...
  10. Reading symbols from /usr/bin/herbstluftwm...done.
  11. (gdb) li layout.c:947
  12. 942         HSClient* focus_old = get_current_client();
  13. 943         Window window = frame->content.clients.buf[index];
  14. 944         window_focus(window);
  15. 945         HSClient* focus_new = get_current_client();
  16. 946         if (focus_old == focus_new) {
  17. 947             printf("delta was %d but focus stayed at window %lx\n",
  18. 948                    delta, focus_old->window);
  19. 949         }
  20. 950         return 0;
  21. 951     }
  22. (gdb) break layout.c:948
  23. Breakpoint 1 at 0x4090b2: file src/layout.c, line 948.
  24. (gdb) run
  25. Starting program: /usr/bin/herbstluftwm
  26. [Thread debugging using libthread_db enabled]
  27. Using host libthread_db library "/lib/libthread_db.so.1".
  28. cannot parse frame args "grid"
  29. Easystroke is already running, showing configuration window instead.
  30.  
  31. Breakpoint 1, frame_current_cycle_selection (argc=1, argv=0x664a00) at src/layout.c:948
  32. 948                    delta, focus_old->window);
  33. (gdb) n
  34. 947             printf("delta was %d but focus stayed at window %lx\n",
  35. (gdb) n
  36. 950         return 0;
  37. (gdb) n
  38. 951     }
  39. (gdb) quit
  40. A debugging session is active.
  41.  
  42.         Inferior 1 [process 14618] will be killed.
  43.  
  44. Quit anyway? (y or n)