This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/11407] -stack-list-locals should catch python exceptions and return the error per variable


------- Additional Comments From asmwarrior at gmail dot com  2010-06-21 02:42 -------
Hi, here is my modified source code of gdb/stack.c
it is around the line 1469, and then change the function to like this below:
-------------------------

static void
iterate_over_block_locals (struct block *b,
               iterate_over_block_arg_local_vars_cb cb,
               void *cb_data)
{
  struct dict_iterator iter;
  struct symbol *sym;
  struct frame_info *frame;
  struct symtab_and_line sal;
  frame = get_selected_frame (NULL) ;
  find_frame_sal (frame, &sal);

  ALL_BLOCK_SYMBOLS (b, iter, sym)
    {
      switch (SYMBOL_CLASS (sym))
    {
    case LOC_LOCAL:
    case LOC_REGISTER:
    case LOC_STATIC:
    case LOC_COMPUTED:
      if (SYMBOL_IS_ARGUMENT (sym))
        break;
      if(sym->line>= sal.line)
        break;
      (*cb) (SYMBOL_PRINT_NAME (sym), sym, cb_data);
      break;

    default:
      /* Ignore symbols which are not locals.  */
      break;
    }
    }
} 

---------------------------------

Asmwarrior ollydbg from codeblocks' forum



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11407

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]