aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/implptr.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-25 16:04:53 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-25 16:04:53 +0000
commit543305c9cd7417b50b1e6d1fce6c7e0e44741bf4 (patch)
tree9362b4af6cd7e359cf25eef80294b924cd8c249e /gdb/testsuite/gdb.dwarf2/implptr.c
parentc0a91b2b1432c7ecd7dfb558f9c37b6798b234d0 (diff)
downloadbinutils-543305c9cd7417b50b1e6d1fce6c7e0e44741bf4.zip
binutils-543305c9cd7417b50b1e6d1fce6c7e0e44741bf4.tar.gz
binutils-543305c9cd7417b50b1e6d1fce6c7e0e44741bf4.tar.bz2
gdb/
Fix implicit pointer offsets. * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also ptr.OFFSET. gdb/testsuite/ Fix implicit pointer offsets. * gdb.dwarf2/implptr.c (add): New marker baz breakpoint. * gdb.dwarf2/implptr.exp (set baz breakpoint for implptr) (continue to breakpoint: continue to baz breakpoint for implptr) (sanity check element 0, sanity check element 1) (enter the inlined function, check element 0 for the offset) (check element 1 for the offset) (continue to breakpoint: ignore the second baz breakpoint): New tests. (set foo breakpoint for implptr): Update the breakpoint number.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/implptr.c')
-rw-r--r--gdb/testsuite/gdb.dwarf2/implptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/implptr.c b/gdb/testsuite/gdb.dwarf2/implptr.c
index 9812b7e..ab68c24 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr.c
+++ b/gdb/testsuite/gdb.dwarf2/implptr.c
@@ -31,7 +31,7 @@ int u[6];
static inline void
add (struct S *a, struct S *b, int c)
{
- *a->x += *b->x;
+ *a->x += *b->x; /* baz breakpoint */
a->y += b->y;
u[c + 0]++;
a = (struct S *) 0;