| commit | 61f9fb1ea4aab3cd42bfcaaee2a05ac0dbe18a22 | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tromey@adacore.com> | Wed Apr 12 09:30:21 2023 -0600 |
| committer | Tom Tromey <tromey@adacore.com> | Fri May 12 12:11:35 2023 -0600 |
| tree | da773c5cdf0f520dd05803c61e25ff6980282db4 | |
| parent | 6a667807390b7091b5ec088d979c779f65d3dfa5 [diff] |
Fix calling debuginfo-less functions in Ada A co-worker at AdaCore noticed that calling a function without debuginfo yields: (gdb) print plus_one(23) 'pck.plus_one' has unknown return type; cast the call to its declared return type However, this also happens if you follow the directions and add the cast. This patch fixes the problem and adds a regression test.