Re: gnat: symbolic traceback on exceptions



gautier_niouzes@xxxxxxxxxxx escribió:
Manuel Collado:

Did you try it with AdaGide with switch "Trace exception" set? Compile F3,
run F4.

No, I din't. But I've done it now without success. It seems that the "Trace exceptions" option lets AdaGide to run the program through an "AD" utility that interfaces with GDB. In my machine AD itself seems to crash. Example:

(...)

This AD should disappear one day - I don't know if it even sometimes
works...

Looking at the sources I see that your original AD was written for MS-DOS, and that AdaGide contains a modified version for WinNT. But even the adapted sources have not been updated since 1999.



The solution to your problem ("the GNAT 3.13+ way") is, generically written:

....[code snipped]...

Yes, this is an interesting alternative.


Of course you can do it without the generic wrapper, just paste the exception part at the end of your main procedure.

I've put the message reporting code in a separate subroutine, called from the exception part of the main procedure.



The switches mentioned in the above code correspond to the compiler switches "debug info" and "trace-back" in the "Debugging" group of AdaGIDE's "Project settings" -> "Debug/Release settings".

Your post has alerted me about a new version of AdaGide. I was using v7.0, thas has a different set of options. After installing v7.3 I see a checkbox that enables/disables the usage of AD.


Thanks, a lot.
--
To reply by e-mail, please remove the extra dot
in the given address:  m.collado -> mcollado
.



Relevant Pages

  • Re: SetUnhandledExceptionFilter
    ... The only way to prevent at all cost a crash in the applicaiton ... Looking at a full dump of Word.exe and/or LotusNotes is the only way ... A bad heap metadata will cause an access violation, ... normally dismissed in some wide exception handler) ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Event ID 7031 Exchange 2003
    ... I could not find any exceptions in the crashdump file. ... It seems like the information store crash is "silent" with no other error ... What is the process that had the exception. ...
    (microsoft.public.exchange2000.information.store)
  • Re: Standby-Sleep Problem
    ... If your driver does not explicitly show up in the crash dump, then it does not mean that the crash is not your driver's fault. ... If you cannot attach a debugger, then you will not be successful in developing your driver. ... Break instruction exception - code 80000003 ...
    (microsoft.public.development.device.drivers)
  • Re: Checking for null parameter
    ... Would you say that an exception can occur in the body of printLine? ... you could have made printLength() private. ... It does not crash if *and only if* called from the mainyou show. ... If you document that it might throw an NPE, ...
    (comp.lang.java.programmer)
  • Re: Running PSIM (PowerPC simulator) under GDB
    ... in which Special Register 81 is ... Exception 10, not Exception 7. ... Replaced with an instruction which explicitly sets the MSR, ... :> Running under Cygwin, with GDB and the embedded PowerPC simulator, ...
    (comp.arch.embedded)