This is the mail archive of the gdb@sourceware.org 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]

Can i set a breakpoint when a member of a C struct is being assigned?


Hi,

Can i set a breakpoint when a member of a C struct is being assigned?

For example, i have a C struct in my code:
struct myStruct{
   int type;
};

How can I break my debugging program when I have code like this:

myStruct*  p;

p->type = 10;

Thank you.


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