On 03/05/2012 03:32 PM, Simon Thijs de Feber wrote:
> Hello Martin,
> 
> Thanks for your answer !
> How can I set a break ?

(gdb) b __ghdl_fatal

> Is the bt printed to screeen ?

Yes, example:

(gdb) bt
#0  0x00007ffff6b0d39d in nanosleep () from /lib/libc.so.6
#1  0x00007ffff6b42844 in usleep () from /lib/libc.so.6
#2  0x00000000004c7e62 in sim_usleep (cycles=50000) at netpp.c:330
#3  0x000000000044d4ea in work__usbjtag__ARCH__behavior(__PRO *,  const) ()

You might want to check the online help of gdb, it can do a lot more.
The "info" function for example is helpful to identify symbols of
partially known function names.

> 
> I had another test with the same code on the following :
> - Ubuntu 11.04 failed and never seen it work, 64-bit machine
> - Fedora 15(/16) failed but worked before, same 64-bit machine
> - Slackware 12.2 is working OK, Pentium 4 based machine
> 

I've had obscure errors changing between various architectures (32/64),
since I'm of the impatient type, I found workarounds by just changing
the code, so I never knew what went wrong, really..

Cheers,

- Martin

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to