This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
detecting out of bound variables
- From: Charlls Quarra <charlls_quarra at yahoo dot com dot ar>
- To: gdb at sources dot redhat dot com
- Date: Fri, 16 Jul 2004 13:27:56 -0300 (ART)
- Subject: detecting out of bound variables
Hi,
its possible to detect that a convenience variable
points to an out of bounds value?
for example;
>set $str=(char*)0xf1
>print $str
$1 = 0xf1 <Address 0xf1 out of bounds>
i want to check this to avoid calling library
functions (like strcmp) that can segfault when trying
to dereference these variables
cheers
___________________________________________________________
100mb gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar