Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* set $argv = *argv@100
@ 2002-02-11 21:48 Andrew Cagney
  2002-02-11 22:22 ` Kevin Buettner
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-02-11 21:48 UTC (permalink / raw)
  To: gdb

Consider the sequence:

(top-gdb) print argv
$4 = (char **) 0xbfbfd3cc
(top-gdb) set $argv = *argv@100
(top-gdb) print $argv
$5 = (char **) 0xbfbfd3cc
(top-gdb) print sizeof ($argv)
$6 = 0x4
(top-gdb) print sizeof (*argv@100)
$7 = 0x190

should $argv have been assigned the contents of *argv@100 or just the 
address?

Contrast it with:

(top-gdb) print args
$9 = {func = 0x804d498 <captured_main>, func_args = 0xbfbfd8d4}
(top-gdb) set $a = args
(top-gdb) print $a
$10 = {func = 0x804d498 <captured_main>, func_args = 0xbfbfd8d4}

puzzled.

Andrew


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

end of thread, other threads:[~2002-02-12 16:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-11 21:48 set $argv = *argv@100 Andrew Cagney
2002-02-11 22:22 ` Kevin Buettner
2002-02-12  7:32   ` Andrew Cagney
2002-02-12  8:33     ` Kevin Buettner

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