This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Help on C++ and dynamic linker breakpoint
- To: gdb at sourceware dot cygnus dot com
- Subject: Help on C++ and dynamic linker breakpoint
- From: "James Duan" <waterice at hotmail dot com>
- Date: Thu, 10 Aug 2000 14:53:13 EST
Hi,
1. How can I set a breakpoint with condition related to a variable
in a C++ class, for example, support a is a class variable of class
C1, and func is a class function of it. I try to set a breakpoint
when a > 10.
I did:
break C1::func if C1::a>10
but it failed, and actually I tried other methods, but none works.
Currently I have to set:
break C1::func
and run the program to there and then add in the condition for the
breakpoint, is there any other better way?
2. How can I check which class function is in use for subclass?
For example, if parent class pc has a virtual funciton vf and the
child class cc has also defined a virtual function vf. It is clear
cc should call its own vf, but I have some trouble to see which one
it calls. Actually it goes completely to somewhere I even do not
know how it reach there. I want to know where I can find the patch
to handle the following message:
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
Thanks.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com