Closed Evedel closed 7 years ago
Hmm.. are you able to paste the contents of, or a screenshot of the console panel in the developer tools so I can see more of its conversation with gdb?
It looks like it might be due to the use of threads. I haven't yet added thread selection or proper handling yet, so it might be presuming thread 0 for some tasks.
Sure, thank you for the answer!
So, just for a case, I tried to disable omp and mpi in my code as well, but it didn't help.
This is all the output from start to first debugger step
dbg-gdb > -file-exec-and-symbols /Users/sergeibiriukov/_git/moca/fortran/playground/execute
main.coffee [sm]:196 dbg-gdb < = thread-group-added Object {id: "i1"}
main.coffee [sm]:196 dbg-gdb < = cmd-param-changed Object {param: "startup-with-shell", value: "off"}
main.coffee [sm]:196 dbg-gdb < ^ done Object {}
main.coffee [sm]:412 dbg-gdb > -file-exec-and-symbols /Users/sergeibiriukov/_git/moca/fortran/playground/execute
main.coffee [sm]:196 dbg-gdb < = thread-group-added Object {id: "i1"}
main.coffee [sm]:196 dbg-gdb < = cmd-param-changed Object {param: "startup-with-shell", value: "off"}
main.coffee [sm]:196 dbg-gdb < ^ done Object {}
main.coffee [sm]:412 dbg-gdb > -gdb-set mi-async on
main.coffee [sm]:196 dbg-gdb < ^ done Object {}
main.coffee [sm]:412 dbg-gdb > -break-insert /Users/sergeibiriukov/_git/moca/fortran/playground/src/main.f90:55
main.coffee [sm]:196 dbg-gdb < ^ done Object {bkpt: Object}
main.coffee [sm]:412 dbg-gdb > -exec-arguments 2 diff-graddiv 0.06 201703221156-diff-graddiv-2D-2nw 2nw 100 1.98 symm
main.coffee [sm]:196 dbg-gdb < ^ done Object {}
main.coffee [sm]:412 dbg-gdb > -exec-run
main.coffee [sm]:196 dbg-gdb < = thread-group-started Object {id: "i1", pid: "49582"}
main.coffee [sm]:196 dbg-gdb < = thread-created Object {id: "1", group-id: "i1"}
main.coffee [sm]:196 dbg-gdb < = thread-exited Object {id: "1", group-id: "i1"}
main.coffee [sm]:196 dbg-gdb < = thread-created Object {id: "2", group-id: "i1"}
main.coffee [sm]:208 dbg-gdb < ~ [New Thread 0x1403 of process 49582]
main.coffee [sm]:208 dbg-gdb < & warning: unhandled dyld version (15)
main.coffee [sm]:196 dbg-gdb < ^ running Object {}
main.coffee [sm]:196 dbg-gdb < * running Object {thread-id: "all"}
main.coffee [sm]:196 dbg-gdb < = breakpoint-modified Object {bkpt: Object}
main.coffee [sm]:208 dbg-gdb < ~
main.coffee [sm]:208 dbg-gdb < ~ Thread 2 hit Breakpoint 1, MAIN__ () at src/main.f90:55
main.coffee [sm]:208 dbg-gdb < ~ 55 p = pos
main.coffee [sm]:196 dbg-gdb < * stopped Object {reason: "breakpoint-hit", disp: "keep", bkptno: "1"}
main.coffee [sm]:412 dbg-gdb > -stack-list-frames --thread 1
main.coffee [sm]:196 dbg-gdb < ^ error Object {msg: "Thread id: 1 has terminated"}
main.coffee [sm]:208 dbg-gdb < ~ [Switching to thread 2 (Thread 0x1403 of process 49582)]
main.coffee [sm]:208 dbg-gdb < ~ #0 MAIN__ () at src/main.f90:55
main.coffee [sm]:208 dbg-gdb < ~ 55 p = pos
main.coffee [sm]:196 dbg-gdb < = thread-selected Object {id: "2"}
internal/process/next_tick.js:103 Uncaught (in promise) Thread id: 1 has terminated
And this staff is constantly repeated after each step over
dbg-gdb > -exec-next
main.coffee [sm]:196 dbg-gdb < ^ running Object {}
main.coffee [sm]:196 dbg-gdb < * running Object {thread-id: "all"}
main.coffee [sm]:196 dbg-gdb < * stopped Object {reason: "end-stepping-range"}
main.coffee [sm]:412 dbg-gdb > -stack-list-frames --thread 1
main.coffee [sm]:196 dbg-gdb < ^ error Object {msg: "Thread id: 1 has terminated"}
main.coffee [sm]:208 dbg-gdb < ~ [Switching to thread 2 (Thread 0x1403 of process 49582)]
main.coffee [sm]:208 dbg-gdb < ~ #0 MAIN__ () at src/main.f90:47
main.coffee [sm]:208 dbg-gdb < ~ 47 result(1) = pspc1
main.coffee [sm]:196 dbg-gdb < = thread-selected Object {id: "2"}
internal/process/next_tick.js:103 Uncaught (in promise) Thread id: 1 has terminated
Cheers for that bug report
I've published a speculative fix. Can you update and let me know if it works okay now?
@ProPuke nice! It fixed my issue. Thanks for such a fast help!
ignore that, wrong issue # >.>
Hi!
The promising package, thank you for your efforts, but somehow I have empty variables panel, while debugging and stepping go ok, maybe someone has some ideas what I'm doing wrong:
MacOS 10.12.3 GNU Fortran (GCC) 6.2.0 GNU gdb (GDB) 7.12 Atom : 1.15.0 dbg-gdb 1.6.0