2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
PR python/11036 * python/py-frame.c (frapy_read_var): Add block argument and logic to cope with user provided blocks. 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Frames In Python): Add block parameter and description to read_var text. 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-frame.exp: Add read_var block tests. * gdb.python/py-frame.c (block): New function.
This commit is contained in:
parent
0e095b7eee
commit
dc00d89fd0
7 changed files with 92 additions and 13 deletions
|
@ -8,7 +8,23 @@ int f1 (int a, int b)
|
|||
return f2(a) + b;
|
||||
}
|
||||
|
||||
int block (void)
|
||||
{
|
||||
int i = 99;
|
||||
{
|
||||
double i = 1.1;
|
||||
double f = 2.2;
|
||||
{
|
||||
const char *i = "stuff";
|
||||
const char *f = "foo";
|
||||
const char *b = "bar";
|
||||
return 0; /* Block break here. */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
block ();
|
||||
return f1 (1, 2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue