Skip to content

Commit

Permalink
Removing debug loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieMonroe committed Aug 13, 2013
1 parent db2e517 commit ae1d95b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
15 changes: 2 additions & 13 deletions Gglobal.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,32 +57,21 @@ HIDDEN const uint8_t dwarf_to_unw_regnum_map[DWARF_NUM_PRESERVED_REGS] =
HIDDEN void
tdep_init (void)
{
uprintf("Initing lock\n");
lock_init (&x86_64_lock, "tdep_init");
uprintf("Acquiring lock\n");

lock_acquire (&x86_64_lock);
{
if (tdep_init_done)
/* another thread else beat us to it... */
goto out;

uprintf("mi Initing lock\n");


mi_init ();
uprintf("dwarf Initing lock\n");

dwarf_init ();

uprintf("Initing mem val lock\n");

tdep_init_mem_validate ();
uprintf("Inited mem val lock\n");

tdep_init_done = 1; /* signal that we're initialized... */
}
out:
uprintf("Unlocking lock\n");

lock_release (&x86_64_lock);
uprintf("Unlocked lock\n");
}
4 changes: 0 additions & 4 deletions Ginit_local.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,11 @@ unw_init_local (unw_cursor_t *cursor, ucontext_t *uc)
{
struct cursor *c = (struct cursor *) cursor;

uprintf("initing local\n");

if (unlikely (!tdep_init_done)){
x86_64_local_addr_space_init();
tdep_init ();
}

uprintf("done tdep init\n");

Debug (1, "(cursor=%p)\n", c);

c->dwarf.as = unw_local_addr_space;
Expand Down
2 changes: 0 additions & 2 deletions include/tdep-x86_64/libunwind_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,9 @@ dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val)
return -UNW_EBADREG;

if (DWARF_IS_REG_LOC (loc)){
uprintf("DWARF_IS_REG_LOC -> %p", (*c->as->acc.access_reg));
return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), val,
0, c->as_arg);
}else{
uprintf("!DWARF_IS_REG_LOC -> %p", (*c->as->acc.access_mem));
return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), val,
0, c->as_arg);
}
Expand Down
4 changes: 0 additions & 4 deletions init.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ static inline int
common_init (struct cursor *c, unsigned use_prev_instr)
{
int ret;
uprintf("common_init \n");

c->dwarf.loc[RAX] = REG_INIT_LOC(c, rax, RAX);
c->dwarf.loc[RDX] = REG_INIT_LOC(c, rdx, RDX);
Expand All @@ -55,9 +54,6 @@ common_init (struct cursor *c, unsigned use_prev_instr)
c->dwarf.loc[R15] = REG_INIT_LOC(c, r15, R15);
c->dwarf.loc[RIP] = REG_INIT_LOC(c, rip, RIP);

uprintf("registers saved \n");

uprintf("dwarf_getting RIP %lx \n", (long)c->dwarf.loc[RIP].val);
ret = dwarf_get (&c->dwarf, c->dwarf.loc[RIP], &c->dwarf.ip);
if (ret < 0)
return ret;
Expand Down

0 comments on commit ae1d95b

Please sign in to comment.