This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb user defined function
- From: Sinbad <sinbad dot sinbad at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sun, 15 Jan 2012 08:21:11 +0530
- Subject: gdb user defined function
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