1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-09-28 17:39:29 +02:00

(_Unwind_GetDataRelBase): Implement it by returning the "gp" value

of the proc-info.

(Logical change 1.144)
This commit is contained in:
hp.com!davidm 2003-12-20 11:38:49 +00:00
parent 2afc5f7ddb
commit 9239758529

View file

@ -28,7 +28,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
unsigned long
_Unwind_GetDataRelBase (struct _Unwind_Context *context)
{
/* Not yet implemented. DWARF2-based exception-handling would need
this, apparently. */
return 0;
unw_proc_info_t pi;
pi.gp = 0;
unw_get_proc_info (&context->cursor, &pi);
return pi.gp;
}