public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* detecting out of bound variables
@ 2004-07-16 17:57 Charlls Quarra
  0 siblings, 0 replies; only message in thread
From: Charlls Quarra @ 2004-07-16 17:57 UTC (permalink / raw)
  To: gdb



 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-16 16:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-16 17:57 detecting out of bound variables Charlls Quarra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).