Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Strangeness in set command
@ 2008-04-05 16:49 Eli Zaretskii
  2008-04-05 16:56 ` Andreas Schwab
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2008-04-05 16:49 UTC (permalink / raw)
  To: gdb

Assuming that `s' is a variable of type `struct stat', this command
fails:

  (gdb) set s.st_mode=0x1ff
  Ambiguous set command "s.st_mode=0x1ff"

But this succeeds:

  (gdb) set (&s)->st_mode=0x1ff

How come we are smart enough to support the latter, but not the
former?


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

end of thread, other threads:[~2008-04-09  0:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-05 16:49 Strangeness in set command Eli Zaretskii
2008-04-05 16:56 ` Andreas Schwab
2008-04-05 18:54   ` Eli Zaretskii
2008-04-07  8:47     ` Daniel Jacobowitz
2008-04-07 18:32       ` Andrew STUBBS
2008-04-07 19:28       ` Michael Snyder
2008-04-07 19:37         ` Eli Zaretskii
2008-04-08 20:38           ` Andrew STUBBS
2008-04-08 20:45             ` Eli Zaretskii
2008-04-09  0:35               ` Doug Evans
2008-04-09  0:44             ` Michael Snyder
2008-04-09 17:24         ` Tom Tromey
2008-04-09 17:36           ` Michael Snyder

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