Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Cast to a struct in expressions
@ 2001-04-27  1:10 Eli Zaretskii
  2001-04-27  8:24 ` Daniel Berlin
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2001-04-27  1:10 UTC (permalink / raw)
  To: gdb

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?


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-04-29  0:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-27  1:10 Cast to a struct in expressions Eli Zaretskii
2001-04-27  8:24 ` Daniel Berlin
2001-04-27 10:41   ` Eli Zaretskii
2001-04-27 12:30     ` Daniel Berlin
2001-04-28  1:08       ` Eli Zaretskii
2001-04-28  2:12         ` Paul Hilfinger
2001-04-28 11:30           ` Daniel Berlin
2001-04-28 11:09         ` Daniel Berlin
2001-04-28 23:47           ` Eli Zaretskii
2001-04-28 23:52             ` Daniel Berlin
2001-04-29  0:20               ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox