[Gems-users] Debugging


Date: Mon, 5 Apr 2010 10:12:17 +0430
From: Mahmood Naderan <mahmood.nt@xxxxxxxxx>
Subject: [Gems-users] Debugging
Hi,
Sorry if I ask many questions. In controlop.C, there is a function:
void control_inst_t::printDetail( void )
{
  DEBUG_OUT( "control_inst_t\n");
  DEBUG_OUT( "type    : %s\n",
                    pstate_t::branch_type_menomic[s->getBranchType()] );
  DEBUG_OUT("offset  : 0x%0llx\n", s->getOffset());
  DEBUG_OUT("isTaken : %d\n", m_isTaken);
  DEBUG_OUT("Predicted Target :\n");
  m_pseq->printPC( &m_predicted );
  DEBUG_OUT("Actual Target :\n");
  m_pseq->printPC( &m_actual );
}

The problem is nowhere in the output file, I can see this information. It seems that the program isn't run in the debug mode.
1- How can I enable that?
2- How it is possible to set breakpoints in the program?

// Naderan *Mahmood;
[← Prev in Thread] Current Thread [Next in Thread→]