This is the mail archive of the gdb@sources.redhat.com 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]

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


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