From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2477 invoked by alias); 30 Jul 2007 03:21:03 -0000 Received: (qmail 2469 invoked by uid 22791); 30 Jul 2007 03:21:02 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.230) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jul 2007 03:21:01 +0000 Received: by nz-out-0506.google.com with SMTP id x7so805376nzc for ; Sun, 29 Jul 2007 20:20:59 -0700 (PDT) Received: by 10.142.87.7 with SMTP id k7mr203691wfb.1185765658856; Sun, 29 Jul 2007 20:20:58 -0700 (PDT) Received: by 10.142.253.7 with HTTP; Sun, 29 Jul 2007 20:20:58 -0700 (PDT) Message-ID: <568e62a40707292020j4e53d480je8822ac6f37f4eda@mail.gmail.com> Date: Mon, 30 Jul 2007 05:37:00 -0000 From: "ying lcs" To: gdb@sourceware.org Subject: Can i set a breakpoint when a member of a C struct is being assigned? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00204.txt.bz2 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.