mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-26 13:03:42 +01:00
(main): If HAVE_TTRACE is defined, fail unconditionally.
(Logical change 1.222)
This commit is contained in:
parent
6cc7f0a9a8
commit
ba424722db
1 changed files with 15 additions and 0 deletions
|
@ -23,6 +23,19 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef HAVE_TTRACE
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
printf ("FAILURE: ttrace() not supported yet\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
#else /* !HAVE_TTRACE */
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <libunwind-ptrace.h>
|
||||
|
@ -250,3 +263,5 @@ main (int argc, char **argv)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* !HAVE_TTRACE */
|
||||
|
|
Loading…
Reference in a new issue