# 2 Terminal.app windows# terminal window 1# start Bash compiled with -g flag~/Downloads/bash-4.2/bash-ilset-bm
echo $$>bash.pid# terminal window 2gdb-n-q(gdb)setprint pretty on(gdb)sethistory save on(gdb)sethistory filename~/.gdb_history(gdb)setstep-mode off(gdb)setverbose on(gdb)setheight0(gdb)setwidth0(gdb)setpagination off(gdb)setfollow-fork-mode child(gdb)thread apply all bt full(gdb)shell cat bash.pid(gdb)attach(gdb)breakpretty_print_job# terminal window 1# cut & paste# (input will be invisible on the command line)sleep600 terminal window 2(gdb)continue(gdb)ctrl-c# terminal window 1# cut & pastekill $!# terminal window 2(gdb)continue(gdb)btReadinginsymbolsforinput.c...done.Readinginsymbolsforreadline.c...done.Readinginsymbolsfory.tab.c...done.Readinginsymbolsforeval.c...done.Readinginsymbolsforshell.c...done.#0 pretty_print_job (job_index=0, format=0, stream=0x7fff70bb9250) at jobs.c:1630#1 0x0000000100032ae3 in notify_of_job_status () at jobs.c:3561#2 0x0000000100031e21 in waitchld (wpid=-1, block=0) at jobs.c:3202#3 0x0000000100031a1a in sigchld_handler (sig=20) at jobs.c:3049#4 #5 0x00007fff85a9f464 in read ()#6 0x00000001000b39a9 in rl_getc (stream=0x7fff70bb9120) at input.c:471#7 0x00000001000b3940 in rl_read_key () at input.c:448#8 0x0000000100097c88 in readline_internal_char () at readline.c:517#9 0x0000000100097dba in readline_internal_charloop () at readline.c:579#10 0x0000000100097de6 in readline_internal () at readline.c:593#11 0x0000000100097842 in readline (prompt=0x100205f80 "noname:~ $ ") at readline.c:342#12 0x0000000100007ab7 in yy_readline_get () at parse.y:1443#13 0x0000000100007bbe in yy_readline_get () at parse.y:1474#14 0x00000001000079d1 in yy_getc () at parse.y:1376#15 0x000000010000888d in shell_getc (remove_quoted_newline=1) at parse.y:2231#16 0x0000000100009a22 in read_token (command=0) at parse.y:2908#17 0x00000001000090c1 in yylex () at parse.y:2517#18 0x000000010000466a in yyparse () at y.tab.c:2014#19 0x00000001000042fb in parse_command () at eval.c:228#20 0x00000001000043ef in read_command () at eval.c:272#21 0x0000000100004088 in reader_loop () at eval.c:137#22 0x0000000100001e4d in main (argc=2, argv=0x7fff5fbff528, env=0x7fff5fbff540) at shell.c:749(gdb)detach(gdb)quit