Debugging data on Alpha

Richard Henderson rth@redhat.com
Fri Dec 29 10:10:00 GMT 2000


On Fri, Dec 29, 2000 at 07:42:17AM -0500, Richard Kenner wrote:
> Here's an example: look at the variables declared around line 6819
> of expr.c (right before the call to get_inner_reference).

I presume you mean line 6858 --

6856            int volatilep = 0;
6857            unsigned int alignment;
6858            tree tem = get_inner_reference (exp, &bitsize, &bitpos, &offset,
6859                                            &mode1, &unsignedp, &volatilep,
6860                                            &alignment);

struct foo { int f; } x;
int bar() { return x.f; }

Breakpoint 4, expand_expr (exp=0x2000009bb80, target=0x200000bd220, 
    tmode=SImode, modifier=EXPAND_NORMAL) at ../../../egcs-std/gcc/expr.c:6858
6858            tree tem = get_inner_reference (exp, &bitsize, &bitpos, &offset,
(gdb) p volatilep
$1 = 0
(gdb) n
6865            if (tem == exp)
(gdb) p tem
$2 = (union tree_node *) 0x200000a8e00
(gdb) p bitsize
$3 = 32
(gdb) p bitpos
$4 = 0
(gdb) p offset
$5 = (union tree_node *) 0x0


I've tried this with recent cvs gdb (using dwarf2) and 4.18 (using mdebug).
So.  Is there something else that should be tried to reproduce the problem?



r~


More information about the Gcc mailing list