Re: [Gems-users] Debugging


Date: Mon, 5 Apr 2010 11:55:50 +0430
From: Mahmood Naderan <mahmood.nt@xxxxxxxxx>
Subject: Re: [Gems-users] Debugging
There is no OPT_FLAGS in my ruby makefile, but the DEBUG_FLAGS is present. How about Opal then? I saw the makefile and it has OPT_FLAGS, but the DEBUG_FLAGS is somehow different:
#OPT_FLAGS := -g -c -xO0
OPT_FLAGS := -ggdb -g3 -O2 -fPIC -finline-functions
#OPT_FLAGS := -xCC  -fast -xarch=v8plusa -xO4 -ftrap=%all,no%inexact -xs -xprefetch=yes
# define is_opal for cross-compiling packages
DEBUG_FLAGS += -DIS_OPAL

#    My standard debug package
#DEBUG_FLAGS += -DMODINIT_VERBOSE -DVERIFY_SIMICS -DPIPELINE_VIS -DDEBUG_RETIRE -DDEBUG_LSQ -DDEBUG_FILTER -DDEBUG_TESTER

#    My standard "functional correctness" debugging package
#DEBUG_FLAGS  += -DDEBUG_FUNCTIONALITY

#    defines for startup debugging
#DEBUG_FLAGS += -DMODINIT_VERBOSE
#    some run-time checks to validate simics envr is what we expect
DEBUG_FLAGS += -DVERIFY_SIMICS
#    PIPELINE_VIS: define for pipeline vis stuff
#DEBUG_FLAGS += -DPIPELINE_VIS

#    DEBUG_RETIRE for more verbose retirement
#DEBUG_FLAGS += -DDEBUG_RETIRE
#    defines debugging of the LSQ
#DEBUG_FLAGS += -DDEBUG_LSQ
#    Enables enables a debug filtering mechanism based on cycle, per proc
DEBUG_FLAGS += -DDEBUG_FILTER
#DEBUG_FLAGS += -DPRINT_L2MISS
.....
..... and so many commented lines.

// Naderan *Mahmood;


On Mon, Apr 5, 2010 at 11:41 AM, Byn Choi <bynchoi1@xxxxxxxxxxxx> wrote:
http://www.cs.wisc.edu/gems/doc/gems-wiki/moin.cgi/Debugging_Ruby_README

On Apr 5, 2010, at 12:42 AM, Mahmood Naderan wrote:

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;
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.



_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.



[← Prev in Thread] Current Thread [Next in Thread→]