This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11407] -stack-list-locals should catch python exceptions and return the error per variable
- From: "asmwarrior at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 21 Jun 2010 02:42:12 -0000
- Subject: [Bug python/11407] -stack-list-locals should catch python exceptions and return the error per variable
- References: <20100320163108.11407.niko.sams@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.