------- Comment #9 from tbm at cyrius dot com  2007-11-21 18:11 -------
(In reply to comment #8)
> Martin, can you go up to frame #4, and do "print *pass" in gdb? Thanks.

You mean in execute_one_pass, right?

Breakpoint 4, execute_one_pass (pass=0x1208c51b8) at gcc/passes.c:1065
1065      current_pass = pass;
(gdb) print *pass
$1 = {name = 0x1207c2e7e "useless", gate = 0,
  execute = 0x1203a57a0 <remove_useless_stmts>,
  sub = 0x0, next = 0x120896890, static_pass_number = 12,
  tv_id = 0, properties_required = 1,
  properties_provided = 0, properties_destroyed = 0,
  todo_flags_start = 589824,
  todo_flags_finish = 1, letter = 0 '\0'}
(gdb)
(gdb) c
Continuing.

Breakpoint 3, execute_one_pass (pass=0x1208c51b8) at gcc/passes.c:1140
1140      execute_todo (todo_after | pass->todo_flags_finish);
(gdb) print *pass
$2 = {name = 0x1207c2e7e "useless", gate = 0,
  execute = 0x1203a57a0 <remove_useless_stmts>,
  sub = 0x0, next = 0x120896890, static_pass_number = 12,
  tv_id = 0, properties_required = 1,
  properties_provided = 0, properties_destroyed = 0,
  todo_flags_start = 589824,
  todo_flags_finish = 1, letter = 0 '\0'}
(gdb)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34171

Reply via email to