This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]