Bug 15387 - Add stapdyn functions to get/set errno
Summary: Add stapdyn functions to get/set errno
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: dyninst (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-23 01:38 UTC by Josh Stone
Modified: 2021-01-18 19:08 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Stone 2013-04-23 01:38:50 UTC
On entering handlers from within Dyninst, we currently save the current errno and restore it as we leave, so we don't destroy its value by anything called from the handler.  However, some scripts may wish to retrieve the process' original errno for analysis, and maybe even set it to something else.  We could conceivable provide tapset functions to get/set our saved errno.
Comment 1 Stan Cox 2021-01-08 20:51:14 UTC
Date:   Fri Jan 8 15:38:42 2021 -0500
Add stapdyn VMA-tracking.

partially fixes this but there are odd cases (see tls.exp) where the relocated address matches __errno_location () but the errno retrieval fails.
Comment 2 Stan Cox 2021-01-18 19:08:25 UTC
Fixed by commit 1529bfce8