]> gcc.gnu.org Git - gcc.git/commit
ada: Add support for symbolic backtraces with DLLs on Windows
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 22 Apr 2024 14:52:14 +0000 (16:52 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 13 Jun 2024 13:30:27 +0000 (15:30 +0200)
commit22085d1900b9c3e214f837a5549e9c9c56a69b99
tree3b8bede4c0b99d24c1e847cc2e3f656fa5df439e
parent9e490bea69205ec4cad8caf21f19d8a8a89a7b43
ada: Add support for symbolic backtraces with DLLs on Windows

This puts Windows on par with Linux as far as backtraces are concerned.

gcc/ada/

* libgnat/s-tsmona__linux.adb (Get): Move down descriptive comment.
* libgnat/s-tsmona__mingw.adb: Add with clause and use clause for
System.Storage_Elements.
(Get): Pass GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT in the call
to GetModuleHandleEx and remove the subsequent call to FreeLibrary.
Upon success, set Load_Addr to the base address of the module.
* libgnat/s-win32.ads (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS): Use
shorter literal.
(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT): New constant.
gcc/ada/libgnat/s-tsmona__linux.adb
gcc/ada/libgnat/s-tsmona__mingw.adb
gcc/ada/libgnat/s-win32.ads
This page took 0.055893 seconds and 5 git commands to generate.