I've found where gdb is (it wasn't in the path yet), and tried your 
instructions (I have never used gdb...). That is what I got:
    
    
    C:\Code\geth\src>gdb runforever.exe
    GNU gdb (GDB) 7.11.1
    ...
    Reading symbols from runforever.exe...(no debugging symbols found)...done.
    (gdb) run
    Starting program: C:\Code\geth\src\runforever.exe
    [New Thread 15588.0x316c]
    [New Thread 15588.0x149c]
    In doStuff()
    In initProcess()
    [New Thread 15588.0xccc]
    
    Thread 3 received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 15588.0xccc]
    0x000000d55e7ffd90 in ?? ()
    (gdb) bt
    #0  0x000000d55e7ffd90 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    

Doesn't sound very useful to me. But GDB says "(no debugging symbols found)". 
Since I compiled with "\--debuginfo", along with all the other parameters I 
listed above, I would have expected gdb to find the debug info. So either it is 
not located where gdb is looking (local configuration issue?) or not in the 
format gdb is expecting (remember, I'm building with VC...).

So I looked into koch, and it was also there, but also not in the path, so I 
copied it in the bin of my Nim installation.

That is what I got running "koch temp c runforever.nim":
    
    
    C:\Code\geth\src>koch temp c runforever.nim
    nim c  compiler\nim
    Hint: used config file 'C:\nim-0.17.2\config\nim.cfg' [Conf]
    Hint: system [Processing]
    Hint: nim [Processing]
    Error: cannot open 'C:\Code\geth\src\compiler\nim.nim'
    FAILURE
    

Looks like koch is looking fo nim.nim in the wrong place. Second attempt:
    
    
    C:\nim-0.17.2>koch temp c c:\code\geth\src\runforever.nim
    nim c  compiler\nim
    Hint: used config file 'C:\nim-0.17.2\config\nim.cfg' [Conf]
    Hint: used config file 'C:\nim-0.17.2\compiler\nim.cfg' [Conf]
    Hint: system [Processing]
    ...
    Hint:  [Link]
    cl.exe /nologo /DEBUG /Zi /F33554432 /FeC:\nim-0.17.2\compiler\nim.exe 
icons/nim-amd64-windows-vcc.res ... compiler\nimcache\compiler_scriptconfig.obj
    LINK : fatal error LNK1181: cannot open input file 
'icons/nim-amd64-windows-vcc.res'
    Error: execution of an external program failed: 'vccexe.exe    
--platform:amd64 /nologo /DEBUG /Zi /F33554432  
/FeC:\nim-0.17.2\compiler\nim.exe  ... '
    FAILURE
    
    C:\nim-0.17.2>
    

Reply via email to