[Ilugc] display values inside a class at runtime
- From: siva.chandran.p@xxxxxxxxx (Siva Chandran P)
- Date: Sun Nov 28 21:25:33 2010
__progname works for structs and not classes as per below url
The same should work with class objects too. I've used it many times and
still using. If the class object variable is not pointer just try
(gdb) p class_object_variable
if it is pointer try
(gdb) p *class_object_variable
Thanks & Regards,
Siva Chandran P
http://www.sivachandran.in/
Other related posts: