loading standard configuration file 'default.conf' command line: cobc -x -C -g -d -Q --coverage -A --coverage -v /home/casa/dev/git/cobol-hello-world/petstore.cob preprocessing: /home/casa/dev/git/cobol-hello-world/petstore.cob -> petstore.i return status: 0 parsing: petstore.i (/home/casa/dev/git/cobol-hello-world/petstore.cob) return status: 0 translating: petstore.i -> petstore.c (/home/casa/dev/git/cobol-hello-world/petstore.cob) COBOL file /home/casa/dev/git/cobol-hello-world/petstore.cob compiled with exit code: 0 SourceMap created: lines 48, vars 26 /home/casa/dev/git/cobol-hello-world/petstore.cob 79 > /home/casa/dev/git/cobol-hello-world/petstore.c 103 /home/casa/dev/git/cobol-hello-world/petstore.cob 80 > /home/casa/dev/git/cobol-hello-world/petstore.c 106 /home/casa/dev/git/cobol-hello-world/petstore.cob 81 > /home/casa/dev/git/cobol-hello-world/petstore.c 118 /home/casa/dev/git/cobol-hello-world/petstore.cob 82 > /home/casa/dev/git/cobol-hello-world/petstore.c 135 /home/casa/dev/git/cobol-hello-world/petstore.cob 83 > /home/casa/dev/git/cobol-hello-world/petstore.c 147 /home/casa/dev/git/cobol-hello-world/petstore.cob 84 > /home/casa/dev/git/cobol-hello-world/petstore.c 159 /home/casa/dev/git/cobol-hello-world/petstore.cob 85 > /home/casa/dev/git/cobol-hello-world/petstore.c 163 /home/casa/dev/git/cobol-hello-world/petstore.cob 87 > /home/casa/dev/git/cobol-hello-world/petstore.c 166 /home/casa/dev/git/cobol-hello-world/petstore.cob 88 > /home/casa/dev/git/cobol-hello-world/petstore.c 170 /home/casa/dev/git/cobol-hello-world/petstore.cob 89 > /home/casa/dev/git/cobol-hello-world/petstore.c 178 /home/casa/dev/git/cobol-hello-world/petstore.cob 91 > /home/casa/dev/git/cobol-hello-world/petstore.c 181 /home/casa/dev/git/cobol-hello-world/petstore.cob 92 > /home/casa/dev/git/cobol-hello-world/petstore.c 185 /home/casa/dev/git/cobol-hello-world/petstore.cob 93 > /home/casa/dev/git/cobol-hello-world/petstore.c 189 /home/casa/dev/git/cobol-hello-world/petstore.cob 94 > /home/casa/dev/git/cobol-hello-world/petstore.c 195 /home/casa/dev/git/cobol-hello-world/petstore.cob 95 > /home/casa/dev/git/cobol-hello-world/petstore.c 199 /home/casa/dev/git/cobol-hello-world/petstore.cob 96 > /home/casa/dev/git/cobol-hello-world/petstore.c 205 /home/casa/dev/git/cobol-hello-world/petstore.cob 97 > /home/casa/dev/git/cobol-hello-world/petstore.c 209 /home/casa/dev/git/cobol-hello-world/petstore.cob 98 > /home/casa/dev/git/cobol-hello-world/petstore.c 215 /home/casa/dev/git/cobol-hello-world/petstore.cob 99 > /home/casa/dev/git/cobol-hello-world/petstore.c 234 /home/casa/dev/git/cobol-hello-world/petstore.cob 100 > /home/casa/dev/git/cobol-hello-world/petstore.c 242 /home/casa/dev/git/cobol-hello-world/petstore.cob 101 > /home/casa/dev/git/cobol-hello-world/petstore.c 252 /home/casa/dev/git/cobol-hello-world/petstore.cob 102 > /home/casa/dev/git/cobol-hello-world/petstore.c 256 /home/casa/dev/git/cobol-hello-world/petstore.cob 103 > /home/casa/dev/git/cobol-hello-world/petstore.c 260 /home/casa/dev/git/cobol-hello-world/petstore.cob 104 > /home/casa/dev/git/cobol-hello-world/petstore.c 268 /home/casa/dev/git/cobol-hello-world/petstore.cob 106 > /home/casa/dev/git/cobol-hello-world/petstore.c 271 /home/casa/dev/git/cobol-hello-world/petstore.cob 107 > /home/casa/dev/git/cobol-hello-world/petstore.c 275 /home/casa/dev/git/cobol-hello-world/petstore.cob 108 > /home/casa/dev/git/cobol-hello-world/petstore.c 280 /home/casa/dev/git/cobol-hello-world/petstore.cob 110 > /home/casa/dev/git/cobol-hello-world/petstore.c 293 /home/casa/dev/git/cobol-hello-world/petstore.cob 112 > /home/casa/dev/git/cobol-hello-world/petstore.c 303 /home/casa/dev/git/cobol-hello-world/petstore.cob 114 > /home/casa/dev/git/cobol-hello-world/petstore.c 306 /home/casa/dev/git/cobol-hello-world/petstore.cob 115 > /home/casa/dev/git/cobol-hello-world/petstore.c 310 /home/casa/dev/git/cobol-hello-world/petstore.cob 116 > /home/casa/dev/git/cobol-hello-world/petstore.c 314 /home/casa/dev/git/cobol-hello-world/petstore.cob 117 > /home/casa/dev/git/cobol-hello-world/petstore.c 318 /home/casa/dev/git/cobol-hello-world/petstore.cob 118 > /home/casa/dev/git/cobol-hello-world/petstore.c 322 /home/casa/dev/git/cobol-hello-world/petstore.cob 119 > /home/casa/dev/git/cobol-hello-world/petstore.c 326 /home/casa/dev/git/cobol-hello-world/petstore.cob 120 > /home/casa/dev/git/cobol-hello-world/petstore.c 334 /home/casa/dev/git/cobol-hello-world/petstore.cob 121 > /home/casa/dev/git/cobol-hello-world/petstore.c 340 /home/casa/dev/git/cobol-hello-world/petstore.cob 122 > /home/casa/dev/git/cobol-hello-world/petstore.c 349 /home/casa/dev/git/cobol-hello-world/petstore.cob 123 > /home/casa/dev/git/cobol-hello-world/petstore.c 358 /home/casa/dev/git/cobol-hello-world/petstore.cob 124 > /home/casa/dev/git/cobol-hello-world/petstore.c 367 /home/casa/dev/git/cobol-hello-world/petstore.cob 126 > /home/casa/dev/git/cobol-hello-world/petstore.c 373 /home/casa/dev/git/cobol-hello-world/petstore.cob 127 > /home/casa/dev/git/cobol-hello-world/petstore.c 377 /home/casa/dev/git/cobol-hello-world/petstore.cob 128 > /home/casa/dev/git/cobol-hello-world/petstore.c 382 /home/casa/dev/git/cobol-hello-world/petstore.cob 129 > /home/casa/dev/git/cobol-hello-world/petstore.c 386 /home/casa/dev/git/cobol-hello-world/petstore.cob 130 > /home/casa/dev/git/cobol-hello-world/petstore.c 391 /home/casa/dev/git/cobol-hello-world/petstore.cob 131 > /home/casa/dev/git/cobol-hello-world/petstore.c 395 /home/casa/dev/git/cobol-hello-world/petstore.cob 132 > /home/casa/dev/git/cobol-hello-world/petstore.c 400 /home/casa/dev/git/cobol-hello-world/petstore.cob 133 > /home/casa/dev/git/cobol-hello-world/petstore.c 408 petstore_.b_2[null] > RETURN-CODE petstore_.b_6[null] > WS-ITEM petstore_.b_7[null] > I petstore_.b_12[null] > WS-BILL petstore_.b_16[null] > WS-CONTROL petstore_.f_13[a_4] > TOTAL-QUANTITY petstore_.f_14[a_5] > TOTAL-COST petstore_.f_15[a_5] > TOTAL-COST-DISCOUNTED petstore_.f_17[a_4] > J petstore_.f_18[a_6] > DISCOUNT petstore_.f_19[a_4] > MINIMUM-FOR-DISCOUNT petstore_.f_20[a_2] > USER-ANSWER petstore_.f_22[a_7] > HEADING-LINE1 petstore_.f_30[a_7] > HEADING-LINE2 petstore_.f_38[a_7] > ITEM-LINE petstore_.f_39[a_2] > DETAIL-DESCRIPTION petstore_.f_41[a_9] > DETAIL-PRICE petstore_.f_43[a_10] > DETAIL-QUANTITY petstore_.f_45[a_9] > DETAIL-COST petstore_.f_46[a_7] > TOTAL-LINE1 petstore_.f_49[a_7] > TOTAL-LINE2 petstore_.f_53[a_11] > DET-TOTAL-QUANTITY petstore_.f_54[a_7] > TOTAL-LINE3 petstore_.f_58[a_9] > DET-TOTAL-COST petstore_.f_59[a_7] > TOTAL-LINE4 petstore_.f_63[a_9] > DET-TOTAL-DISCOUNTED petstore_.RETURN-CODE[null] > b_2 petstore_.WS-ITEM[null] > b_6 petstore_.I[null] > b_7 petstore_.WS-BILL[null] > b_12 petstore_.WS-CONTROL[null] > b_16 petstore_.HEADING-LINE1[a_7] > f_22 petstore_.HEADING-LINE2[a_7] > f_30 petstore_.ITEM-LINE[a_7] > f_38 petstore_.TOTAL-LINE1[a_7] > f_46 petstore_.TOTAL-LINE2[a_7] > f_49 petstore_.TOTAL-LINE3[a_7] > f_54 petstore_.TOTAL-LINE4[a_7] > f_59 petstore_.WS-BILL.TOTAL-QUANTITY[a_4] > f_13 petstore_.WS-BILL.TOTAL-COST[a_5] > f_14 petstore_.WS-BILL.TOTAL-COST-DISCOUNTED[a_5] > f_15 petstore_.WS-CONTROL.J[a_4] > f_17 petstore_.WS-CONTROL.DISCOUNT[a_6] > f_18 petstore_.WS-CONTROL.MINIMUM-FOR-DISCOUNT[a_4] > f_19 petstore_.WS-CONTROL.USER-ANSWER[a_2] > f_20 petstore_.ITEM-LINE.DETAIL-DESCRIPTION[a_2] > f_39 petstore_.ITEM-LINE.DETAIL-PRICE[a_9] > f_41 petstore_.ITEM-LINE.DETAIL-QUANTITY[a_10] > f_43 petstore_.ITEM-LINE.DETAIL-COST[a_9] > f_45 petstore_.TOTAL-LINE2.DET-TOTAL-QUANTITY[a_11] > f_53 petstore_.TOTAL-LINE3.DET-TOTAL-COST[a_9] > f_58 petstore_.TOTAL-LINE4.DET-TOTAL-DISCOUNTED[a_9] > f_63 stdin: 1-gdb-set target-async on stdin: 2-gdb-set non-stop on stdin: 3-environment-directory "/home/casa/dev/git/cobol-hello-world" stdin: 4-target-attach 3009 stdin: 5-file-exec-and-symbols "/home/casa/dev/git/cobol-hello-world/petstore" stdout: =thread-group-added,id="i1" GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-group-added","output":[["id","i1"]]}]} stdout: (gdb) 1^done (gdb) 2^done (gdb) 3^done,source-path="/home/casa/dev/git/cobol-hello-world:$cdir:$cwd" (gdb) =thread-group-started,id="i1",pid="3009" =thread-created,id="1",group-id="i1" GDB -> App: {"token":1,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}} GDB -> App: {"token":2,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}} GDB -> App: {"token":3,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["source-path","/home/casa/dev/git/cobol-hello-world:$cdir:$cwd"]]}} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-group-started","output":[["id","i1"],["pid","3009"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-created","output":[["id","1"],["group-id","i1"]]}]} stdout: 4^done =library-loaded,id="/usr/lib/x86_64-linux-gnu/libcob.so.4",target-name="/usr/lib/x86_64-linux-gnu/libcob.so.4",host-name="/usr/lib/x86_64-linux-gnu/libcob.so.4",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5ee6330",to="0x00007fc7e5f1ed99"}] GDB -> App: {"token":4,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["target-name","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["host-name","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5ee6330"],["to","0x00007fc7e5f1ed99"]]]]]}]} stdout: =library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5d62270",to="0x00007fc7e5e004f2"}] =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgmp.so.10",target-name="/usr/lib/x86_64-linux-gnu/libgmp.so.10",host-name="/usr/lib/x86_64-linux-gnu/libgmp.so.10",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5cde600",to="0x00007fc7e5d3abd8"}] =library-loaded,id="/lib/x86_64-linux-gnu/libncursesw.so.6",target-name="/lib/x86_64-linux-gnu/libncursesw.so.6",host-name="/lib/x86_64-linux-gnu/libncursesw.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5ca2260",to="0x00007fc7e5cc6b70"}] =library-loaded,id="/lib/x86_64-linux-gnu/libtinfo.so.6",target-name="/lib/x86_64-linux-gnu/libtinfo.so.6",host-name="/lib/x86_64-linux-gnu/libtinfo.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5c78940",to="0x00007fc7e5c85d58"}] =library-loaded,id="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",target-name="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",host-name="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5add480",to="0x00007fc7e5c19c60"}] =library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5aa8130",to="0x00007fc7e5aa8e75"}] =library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5908320",to="0x00007fc7e5a4e39b"}] =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e5f3b090",to="0x00007fc7e5f58b20"}] =library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007fc7e58cb5b0",to="0x00007fc7e58d9641"}] GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libm.so.6"],["target-name","/lib/x86_64-linux-gnu/libm.so.6"],["host-name","/lib/x86_64-linux-gnu/libm.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5d62270"],["to","0x00007fc7e5e004f2"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["target-name","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["host-name","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5cde600"],["to","0x00007fc7e5d3abd8"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libncursesw.so.6"],["target-name","/lib/x86_64-linux-gnu/libncursesw.so.6"],["host-name","/lib/x86_64-linux-gnu/libncursesw.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5ca2260"],["to","0x00007fc7e5cc6b70"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libtinfo.so.6"],["target-name","/lib/x86_64-linux-gnu/libtinfo.so.6"],["host-name","/lib/x86_64-linux-gnu/libtinfo.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5c78940"],["to","0x00007fc7e5c85d58"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["target-name","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["host-name","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5add480"],["to","0x00007fc7e5c19c60"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libdl.so.2"],["target-name","/lib/x86_64-linux-gnu/libdl.so.2"],["host-name","/lib/x86_64-linux-gnu/libdl.so.2"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5aa8130"],["to","0x00007fc7e5aa8e75"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libc.so.6"],["target-name","/lib/x86_64-linux-gnu/libc.so.6"],["host-name","/lib/x86_64-linux-gnu/libc.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5908320"],["to","0x00007fc7e5a4e39b"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib64/ld-linux-x86-64.so.2"],["target-name","/lib64/ld-linux-x86-64.so.2"],["host-name","/lib64/ld-linux-x86-64.so.2"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e5f3b090"],["to","0x00007fc7e5f58b20"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libpthread.so.0"],["target-name","/lib/x86_64-linux-gnu/libpthread.so.0"],["host-name","/lib/x86_64-linux-gnu/libpthread.so.0"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007fc7e58cb5b0"],["to","0x00007fc7e58d9641"]]]]]}]} getThreads stdin: 6-thread-info stdout: ~"[Thread debugging using libthread_db enabled]\n" ~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n" GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"console","content":"[Thread debugging using libthread_db enabled]\n"}]} [Thread debugging using libthread_db enabled] GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"console","content":"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"}]} Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". stdout: ~"0x00007fc7e59d0461 in __GI___libc_read (fd=0, buf=0x556f63e594d0, nbytes=1024) at ../sysdeps/unix/sysv/linux/read.c:26\n" &"26\t../sysdeps/unix/sysv/linux/read.c: No such file or directory.\n" *stopped,frame={addr="0x00007fc7e59d0461",func="__GI___libc_read",args=[{name="fd",value="0"},{name="buf",value="0x556f63e594d0"},{name="nbytes",value="1024"}],file="../sysdeps/unix/sysv/linux/read.c",fullname="/build/glibc-vjB4T1/glibc-2.28/io/../sysdeps/unix/sysv/linux/read.c",line="26"},thread-id="1",stopped-threads=["1"],core="2" GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"console","content":"0x00007fc7e59d0461 in __GI___libc_read (fd=0, buf=0x556f63e594d0, nbytes=1024) at ../sysdeps/unix/sysv/linux/read.c:26\n"}]} 0x00007fc7e59d0461 in __GI___libc_read (fd=0, buf=0x556f63e594d0, nbytes=1024) at ../sysdeps/unix/sysv/linux/read.c:26 GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"log","content":"26\t../sysdeps/unix/sysv/linux/read.c: No such file or directory.\n"}]} 26 ../sysdeps/unix/sysv/linux/read.c: No such file or directory. GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"exec","asyncClass":"stopped","output":[["frame",[["addr","0x00007fc7e59d0461"],["func","__GI___libc_read"],["args",[[["name","fd"],["value","0"]],[["name","buf"],["value","0x556f63e594d0"]],[["name","nbytes"],["value","1024"]]]],["file","../sysdeps/unix/sysv/linux/read.c"],["fullname","/build/glibc-vjB4T1/glibc-2.28/io/../sysdeps/unix/sysv/linux/read.c"],["line","26"]]],["thread-id","1"],["stopped-threads",["1"]],["core","2"]]}]} stop: undefined Not implemented stop reason (assuming exception): undefined stdout: 5^done (gdb) 6^done,threads=[{id="1",target-id="Thread 0x7fc7e58c4100 (LWP 3009)",name="petstore",frame={level="0",addr="0x00007fc7e59d0461",func="__GI___libc_read",args=[{name="fd",value="0"},{name="buf",value="0x556f63e594d0"},{name="nbytes",value="1024"}],file="../sysdeps/unix/sysv/linux/read.c",fullname="/build/glibc-vjB4T1/glibc-2.28/io/../sysdeps/unix/sysv/linux/read.c",line="26"},state="stopped",core="2"}],current-thread-id="1" (gdb) GDB -> App: {"token":5,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}} GDB -> App: {"token":6,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["threads",[[["id","1"],["target-id","Thread 0x7fc7e58c4100 (LWP 3009)"],["name","petstore"],["frame",[["level","0"],["addr","0x00007fc7e59d0461"],["func","__GI___libc_read"],["args",[[["name","fd"],["value","0"]],[["name","buf"],["value","0x556f63e594d0"]],[["name","nbytes"],["value","1024"]]]],["file","../sysdeps/unix/sysv/linux/read.c"],["fullname","/build/glibc-vjB4T1/glibc-2.28/io/../sysdeps/unix/sysv/linux/read.c"],["line","26"]]],["state","stopped"],["core","2"]]]],["current-thread-id","1"]]}} clearBreakPoints stdin: 7-break-delete stdout: 7^done (gdb) GDB -> App: {"token":7,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}} addBreakPoint stdin: 8-break-insert -f "/home/casa/dev/git/cobol-hello-world/petstore.c:135" getThreads stdin: 9-thread-info stdout: 8^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000002aca",func="PETSTORE_",file="petstore.c",fullname="/home/casa/dev/git/cobol-hello-world/petstore.c",line="135",thread-groups=["i1"],times="0",original-location="/home/casa/dev/git/cobol-hello-world/petstore.c:135"} (gdb) 9^done,threads=[{id="1",target-id="Thread 0x7fc7e58c4100 (LWP 3009)",name="petstore",frame={level="0",addr="0x00007fc7e59d0461",func="__GI___libc_read",args=[{name="fd",value="0"},{name="buf",value="0x556f63e594d0"},{name="nbytes",value="1024"}],file="../sysdeps/unix/sysv/linux/read.c",fullname="/build/glibc-vjB4T1/glibc-2.28/io/../sysdeps/unix/sysv/linux/read.c",line="26"},state="stopped",core="2"}],current-thread-id="1" (gdb) GDB -> App: {"token":8,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["bkpt",[["number","1"],["type","breakpoint"],["disp","keep"],["enabled","y"],["addr","0x0000000000002aca"],["func","PETSTORE_"],["file","petstore.c"],["fullname","/home/casa/dev/git/cobol-hello-world/petstore.c"],["line","135"],["thread-groups",["i1"]],["times","0"],["original-location","/home/casa/dev/git/cobol-hello-world/petstore.c:135"]]]]}} GDB -> App: {"token":9,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["threads",[[["id","1"],["target-id","Thread 0x7fc7e58c4100 (LWP 3009)"],["name","petstore"],["frame",[["level","0"],["addr","0x00007fc7e59d0461"],["func","__GI___libc_read"],["args",[[["name","fd"],["value","0"]],[["name","buf"],["value","0x556f63e594d0"]],[["name","nbytes"],["value","1024"]]]],["file","../sysdeps/unix/sysv/linux/read.c"],["fullname","/build/glibc-vjB4T1/glibc-2.28/io/../sysdeps/unix/sysv/linux/read.c"],["line","26"]]],["state","stopped"],["core","2"]]]],["current-thread-id","1"]]}} stdin: 10-exec-run stdout: =thread-exited,id="1",group-id="i1" =thread-group-exited,id="i1" GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-exited","output":[["id","1"],["group-id","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-group-exited","output":[["id","i1"]]}]} stdout: =library-unloaded,id="/usr/lib/x86_64-linux-gnu/libcob.so.4",target-name="/usr/lib/x86_64-linux-gnu/libcob.so.4",host-name="/usr/lib/x86_64-linux-gnu/libcob.so.4",thread-group="i1" =library-unloaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",thread-group="i1" =library-unloaded,id="/usr/lib/x86_64-linux-gnu/libgmp.so.10",target-name="/usr/lib/x86_64-linux-gnu/libgmp.so.10",host-name="/usr/lib/x86_64-linux-gnu/libgmp.so.10",thread-group="i1" =library-unloaded,id="/lib/x86_64-linux-gnu/libncursesw.so.6",target-name="/lib/x86_64-linux-gnu/libncursesw.so.6",host-name="/lib/x86_64-linux-gnu/libncursesw.so.6",thread-group="i1" =library-unloaded,id="/lib/x86_64-linux-gnu/libtinfo.so.6",target-name="/lib/x86_64-linux-gnu/libtinfo.so.6",host-name="/lib/x86_64-linux-gnu/libtinfo.so.6",thread-group="i1" =library-unloaded,id="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",target-name="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",host-name="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",thread-group="i1" =library-unloaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",thread-group="i1" =library-unloaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",thread-group="i1" =library-unloaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",thread-group="i1" =library-unloaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",thread-group="i1" GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["target-name","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["host-name","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/lib/x86_64-linux-gnu/libm.so.6"],["target-name","/lib/x86_64-linux-gnu/libm.so.6"],["host-name","/lib/x86_64-linux-gnu/libm.so.6"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["target-name","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["host-name","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/lib/x86_64-linux-gnu/libncursesw.so.6"],["target-name","/lib/x86_64-linux-gnu/libncursesw.so.6"],["host-name","/lib/x86_64-linux-gnu/libncursesw.so.6"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/lib/x86_64-linux-gnu/libtinfo.so.6"],["target-name","/lib/x86_64-linux-gnu/libtinfo.so.6"],["host-name","/lib/x86_64-linux-gnu/libtinfo.so.6"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["target-name","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["host-name","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/lib/x86_64-linux-gnu/libdl.so.2"],["target-name","/lib/x86_64-linux-gnu/libdl.so.2"],["host-name","/lib/x86_64-linux-gnu/libdl.so.2"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/lib/x86_64-linux-gnu/libc.so.6"],["target-name","/lib/x86_64-linux-gnu/libc.so.6"],["host-name","/lib/x86_64-linux-gnu/libc.so.6"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/lib64/ld-linux-x86-64.so.2"],["target-name","/lib64/ld-linux-x86-64.so.2"],["host-name","/lib64/ld-linux-x86-64.so.2"],["thread-group","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-unloaded","output":[["id","/lib/x86_64-linux-gnu/libpthread.so.0"],["target-name","/lib/x86_64-linux-gnu/libpthread.so.0"],["host-name","/lib/x86_64-linux-gnu/libpthread.so.0"],["thread-group","i1"]]}]} stdout: =thread-group-started,id="i1",pid="3026" =thread-created,id="1",group-id="i1" =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000555555556aca",func="PETSTORE_",file="petstore.c",fullname="/home/casa/dev/git/cobol-hello-world/petstore.c",line="135",thread-groups=["i1"],times="0",original-location="/home/casa/dev/git/cobol-hello-world/petstore.c:135"} =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7fd6090",to="0x00007ffff7ff3b20"}] GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-group-started","output":[["id","i1"],["pid","3026"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-created","output":[["id","1"],["group-id","i1"]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"breakpoint-modified","output":[["bkpt",[["number","1"],["type","breakpoint"],["disp","keep"],["enabled","y"],["addr","0x0000555555556aca"],["func","PETSTORE_"],["file","petstore.c"],["fullname","/home/casa/dev/git/cobol-hello-world/petstore.c"],["line","135"],["thread-groups",["i1"]],["times","0"],["original-location","/home/casa/dev/git/cobol-hello-world/petstore.c:135"]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib64/ld-linux-x86-64.so.2"],["target-name","/lib64/ld-linux-x86-64.so.2"],["host-name","/lib64/ld-linux-x86-64.so.2"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7fd6090"],["to","0x00007ffff7ff3b20"]]]]]}]} stdout: 10^running *running,thread-id="1" GDB -> App: {"token":10,"outOfBandRecord":[],"resultRecords":{"resultClass":"running","results":[]}} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"exec","asyncClass":"running","output":[["thread-id","1"]]}]} stdout: ~"[Switching to thread 1 (process 3026)](running)\n" =thread-selected,id="1" (gdb) GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"console","content":"[Switching to thread 1 (process 3026)](running)\n"}]} [Switching to thread 1 (process 3026)](running) GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"thread-selected","output":[["id","1"]]}]} stdout: =library-loaded,id="/usr/lib/x86_64-linux-gnu/libcob.so.4",target-name="/usr/lib/x86_64-linux-gnu/libcob.so.4",host-name="/usr/lib/x86_64-linux-gnu/libcob.so.4",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7f7c330",to="0x00007ffff7fb4d99"}] =library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7df8270",to="0x00007ffff7e964f2"}] =library-loaded,id="/usr/lib/x86_64-linux-gnu/libgmp.so.10",target-name="/usr/lib/x86_64-linux-gnu/libgmp.so.10",host-name="/usr/lib/x86_64-linux-gnu/libgmp.so.10",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7d74600",to="0x00007ffff7dd0bd8"}] =library-loaded,id="/lib/x86_64-linux-gnu/libncursesw.so.6",target-name="/lib/x86_64-linux-gnu/libncursesw.so.6",host-name="/lib/x86_64-linux-gnu/libncursesw.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7d38260",to="0x00007ffff7d5cb70"}] =library-loaded,id="/lib/x86_64-linux-gnu/libtinfo.so.6",target-name="/lib/x86_64-linux-gnu/libtinfo.so.6",host-name="/lib/x86_64-linux-gnu/libtinfo.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7d0e940",to="0x00007ffff7d1bd58"}] =library-loaded,id="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",target-name="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",host-name="/usr/lib/x86_64-linux-gnu/libdb-5.3.so",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7b73480",to="0x00007ffff7cafc60"}] =library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff7b3e130",to="0x00007ffff7b3ee75"}] =library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff799e320",to="0x00007ffff7ae439b"}] =library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffff79615b0",to="0x00007ffff796f641"}] GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["target-name","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["host-name","/usr/lib/x86_64-linux-gnu/libcob.so.4"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7f7c330"],["to","0x00007ffff7fb4d99"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libm.so.6"],["target-name","/lib/x86_64-linux-gnu/libm.so.6"],["host-name","/lib/x86_64-linux-gnu/libm.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7df8270"],["to","0x00007ffff7e964f2"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["target-name","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["host-name","/usr/lib/x86_64-linux-gnu/libgmp.so.10"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7d74600"],["to","0x00007ffff7dd0bd8"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libncursesw.so.6"],["target-name","/lib/x86_64-linux-gnu/libncursesw.so.6"],["host-name","/lib/x86_64-linux-gnu/libncursesw.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7d38260"],["to","0x00007ffff7d5cb70"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libtinfo.so.6"],["target-name","/lib/x86_64-linux-gnu/libtinfo.so.6"],["host-name","/lib/x86_64-linux-gnu/libtinfo.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7d0e940"],["to","0x00007ffff7d1bd58"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["target-name","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["host-name","/usr/lib/x86_64-linux-gnu/libdb-5.3.so"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7b73480"],["to","0x00007ffff7cafc60"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libdl.so.2"],["target-name","/lib/x86_64-linux-gnu/libdl.so.2"],["host-name","/lib/x86_64-linux-gnu/libdl.so.2"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff7b3e130"],["to","0x00007ffff7b3ee75"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libc.so.6"],["target-name","/lib/x86_64-linux-gnu/libc.so.6"],["host-name","/lib/x86_64-linux-gnu/libc.so.6"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff799e320"],["to","0x00007ffff7ae439b"]]]]]}]} GDB -> App: {"outOfBandRecord":[{"isStream":false,"type":"notify","asyncClass":"library-loaded","output":[["id","/lib/x86_64-linux-gnu/libpthread.so.0"],["target-name","/lib/x86_64-linux-gnu/libpthread.so.0"],["host-name","/lib/x86_64-linux-gnu/libpthread.so.0"],["symbols-loaded","0"],["thread-group","i1"],["ranges",[[["from","0x00007ffff79615b0"],["to","0x00007ffff796f641"]]]]]}]} getStack stdin: 11-stack-list-frames --thread 1 0 20 getThreads stdin: 12-thread-info getThreads stdin: 13-thread-info stdout: ~"[Thread debugging using libthread_db enabled]\n" ~"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n" GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"console","content":"[Thread debugging using libthread_db enabled]\n"}]} [Thread debugging using libthread_db enabled] GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"console","content":"Using host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\n"}]} Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". stdout: 11^error,msg="Selected thread is running." (gdb) GDB -> App: {"token":11,"outOfBandRecord":[],"resultRecords":{"resultClass":"error","results":[["msg","Selected thread is running."]]}} stdout: 12^done,threads=[{id="1",target-id="process 3026",name="petstore",state="running",core="2"}],current-thread-id="1" (gdb) 13^done,threads=[{id="1",target-id="process 3026",name="petstore",state="running",core="2"}],current-thread-id="1" (gdb) Hi, welcome to the petstore cash register system! Item description: GDB -> App: {"token":12,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["threads",[[["id","1"],["target-id","process 3026"],["name","petstore"],["state","running"],["core","2"]]]],["current-thread-id","1"]]}} GDB -> App: {"token":13,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["threads",[[["id","1"],["target-id","process 3026"],["name","petstore"],["state","running"],["core","2"]]]],["current-thread-id","1"]]}} Hi, welcome to the petstore cash register system! Item description: