i'm having troubles watching a certain pointer that i know is modified in a wrong way..
i have a class processor
that is a subclass of the apstract pu
.
bus
is a pointer to an other unrelated object and is defined in pu
, i use it in processor
and at some point its values changes (i'm wondering why).
so, i'm trying to watch that particular bus
variable with gdb (and i'm not good at using it), but i can't find how to keep in sight that specific varible.
my class scheme is as follows:
class pu{
public:
pu(systemBus *sysBus) {bus = sysBus;};
private:
systemBus *bus;
}
class processor : public pu{
public:
processor(systemBus *sysbus) : pu(sysbus) {};
}
thanks