diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-19 20:25:14 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-19 20:25:14 +0000 |
commit | 0e37a63c3cabe0baab792ed4169307ab4cdc791d (patch) | |
tree | 145a5ac1f7245ba969db1c1db74093c538f009c0 /gdb/testsuite/gdb.dwarf2/implptr.c | |
parent | 7e324e482fe55600d1fff227944f6b4b98fbb96f (diff) | |
download | binutils-0e37a63c3cabe0baab792ed4169307ab4cdc791d.zip binutils-0e37a63c3cabe0baab792ed4169307ab4cdc791d.tar.gz binutils-0e37a63c3cabe0baab792ed4169307ab4cdc791d.tar.bz2 |
gdb/
* dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
type.
gdb/testsuite/
* gdb.dwarf2/implptr.S: Rebuilt.
* gdb.dwarf2/implptr.c (intp, intpp, intppp): New typedefs.
(bar): Use them for j, k, l.
* gdb.dwarf2/implptr.exp: New variable opts. Support runtest parameter
COMPILE.
(print j in implptr:bar): Update for the intp typedef.
(print p[0].x in implptr:foo): Use more exact regex.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/implptr.c')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/implptr.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/implptr.c b/gdb/testsuite/gdb.dwarf2/implptr.c index 64c7076..9812b7e 100644 --- a/gdb/testsuite/gdb.dwarf2/implptr.c +++ b/gdb/testsuite/gdb.dwarf2/implptr.c @@ -52,12 +52,16 @@ foo (int i) return i + j; /* foo breakpoint */ } +typedef int *intp; +typedef intp *intpp; +typedef intpp *intppp; + int __attribute__ ((noinline, used, noclone)) bar (int i) { - int *j = &i; - int **k = &j; - int ***l = &k; + intp j = &i; + intpp k = &j; + intppp l = &k; i++; /* bar breakpoint */ return i; } |