Skip to content

Loading…

Missing type when printing pointer #7

Open
pathdb opened this Issue · 0 comments

1 participant

@pathdb
Collaborator

Pathdb only prints pointer's value, without its type.

$1 = 0xffffffffbfb29c98^M
pathdb> FAIL: gdb.base/miscexprs.exp: print value of &ibig.i[0]
$2 = 0xffffffffbfb2b8b8 ""^M
pathdb> PASS: gdb.base/miscexprs.exp: print value of &cbig.c[0]
$3 = 0xffffffffbfb2b598^M
pathdb> FAIL: gdb.base/miscexprs.exp: print value of &fbig.f[0]
$4 = 0xffffffffbfb2a918^M
pathdb> FAIL: gdb.base/miscexprs.exp: print value of &dbig.d[0]
$5 = 0xffffffffbfb2b278^M
pathdb> FAIL: gdb.base/miscexprs.exp: print value of &sbig.s[0]
$6 = 0xffffffffbfb28e88^M
pathdb> FAIL: gdb.base/miscexprs.exp: print value of &lbig.l[0]

GDB prints pointer's value along with its type.
print &ibig.i[0]^M
$1 = (int *) 0xbfffd0e8^M
(gdb) PASS: gdb.base/miscexprs.exp: print value of &ibig.i[0]
print &cbig.c[0]^M
$2 = 0xbfffed08 ""^M
(gdb) PASS: gdb.base/miscexprs.exp: print value of &cbig.c[0]
print &fbig.f[0]^M
$3 = (float *) 0xbfffe9e8^M
(gdb) PASS: gdb.base/miscexprs.exp: print value of &fbig.f[0]
print &dbig.d[0]^M
$4 = (double *) 0xbfffdd68^M
(gdb) PASS: gdb.base/miscexprs.exp: print value of &dbig.d[0]
print &sbig.s[0]^M
$5 = (short int *) 0xbfffe6c8^M
(gdb) PASS: gdb.base/miscexprs.exp: print value of &sbig.s[0]
print &lbig.l[0]^M
$6 = (long int *) 0xbfffc2d8^M
(gdb) PASS: gdb.base/miscexprs.exp: print value of &lbig.l[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.