This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Can i set a breakpoint when a member of a C struct is being assigned?
- From: "ying lcs" <yinglcs at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sun, 29 Jul 2007 22:20:58 -0500
- Subject: 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.