FS#49895 - [gcc-ada] Stripping symbols from Ada runtime disables exception catching in gdb

Attached to Project: Arch Linux
Opened by Shawn Nock (nocko) - Thursday, 30 June 2016, 20:10 GMT
Last edited by Allan McRae (Allan) - Saturday, 14 January 2017, 07:33 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Stripping symbols from Ada runtime disables exception catching in gdb with the message:

(gdb) catch exception
Your Ada runtime appears to be missing some debugging information.
Cannot insert Ada exception catchpoint in this configuration.
(gdb)

Practically speaking, this means that attempting backtrace of exceptions shows frames in the exit/error path of the program, instead of relevant frames for the exception itself.

Additional info:
* Tested gcc-ada 6.1.1-2

Steps to reproduce:

1. gdb <ada-binary>
2. (gdb) catch exception

Fix:

Adding !strip to package_gcc-ada() options array results in the normal functionality
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 14 January 2017, 07:33 GMT
Reason for closing:  Deferred
Additional comments about closing:  Waiting on debug symbol packages
Comment by Allan McRae (Allan) - Wednesday, 13 July 2016, 04:53 GMT
Not stripping symbols makes big binaries... We need to get debug packages happening!

Loading...