Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb user defined function
@ 2012-01-15  2:51 Sinbad
  2012-01-16 20:46 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Sinbad @ 2012-01-15  2:51 UTC (permalink / raw)
  To: gdb

i am trying to write a user-defined function in gdb.
while analyzing the core is it possible to see if a
pointer variable is accessible or not inside a gdb
user-defined function. for example.
(gdb) p *ptr
cannot access memory at address 0x35336
is there any way to find this inside a gdb function.
i need something as follows
define sub
   is_accessible(ptr)
end


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

end of thread, other threads:[~2012-01-17 16:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-15  2:51 gdb user defined function Sinbad
2012-01-16 20:46 ` Tom Tromey
2012-01-17  6:10   ` Sinbad
2012-01-17 16:29     ` Tom Tromey
2012-01-17 16:31       ` Tom Tromey

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