From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: gdb@sources.redhat.com Subject: Cast to a struct in expressions Date: Fri, 27 Apr 2001 01:10:00 -0000 Message-id: <8011-Fri27Apr2001111107+0300-eliz@is.elta.co.il> X-SW-Source: 2001-04/msg00200.html Should the following work? (gdb) p/x *(struct {long foo; unsigned bar;} *)foobar It doesn't seem to work for me; GDB complains thusly: A parse error in expression, near `long foo; unsigned bar} *)foobar Seems like the parser chokes on the struct declaration? Am I missing something?