use typedef'd type or original type?
Doug Evans
dje@sebabeach.org
Wed Jan 30 03:47:00 GMT 2008
While working on
http://sourceware.org/ml/gdb-patches/2008-01/msg00759.html
I came across this.
(gdb) l
1 typedef int myint;
2
3 myint x = 3;
4
5 int
6 main ()
7 {
8 }
[assumed stopped in main]
(gdb) whatis x
type = myint
(gdb) whatis -x
type = myint
(gdb) whatis +x
type = int
fyi, I made the patch change "whatis -x" print "int" instead of "myint" -
if myint was myshort the result should be int.
More information about the Gdb
mailing list