Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Can i set a breakpoint when a member of a C struct is being assigned?
@ 2007-07-30  5:37 ying lcs
  2007-07-30  9:32 ` Bernhard Walle
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ying lcs @ 2007-07-30  5:37 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-30 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-30  5:37 Can i set a breakpoint when a member of a C struct is being assigned? ying lcs
2007-07-30  9:32 ` Bernhard Walle
2007-07-30 21:16 ` Eli Zaretskii
2007-07-30 21:17 ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox