Re: [Linux-ia64] differentiating single-step vs taken-branch trap

From: David Mosberger <>
Date: 2001-09-25 02:42:21
Hi Wei,

>>>>> On Sun, 23 Sep 2001 18:43:18 -0700 (PDT), Weihaw Chuang <> said:

  Wei> Hi everyone, I've got two questions, but only the first is
  Wei> really important.  1. I'm using the ptrace kernel interface to
  Wei> trace a child process via single-step or taken-branch traps
  Wei> (through David Mosberger's utrace tool).  Is there a way I can
  Wei> use ptrace to allow me to single-step, and in addition observe
  Wei> occurances of taken-branches?

Yes, the siginfo trap code (si_code) will tell you.  It is set to
TRAP_BRANCH for a taken branch and to TRAP_TRACE for a single step
trap.  Use PTRACE_GETSIGINFO to get a hold of the siginfo of the
traced task.

Received on Mon Sep 24 09:42:23 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:05 EST