From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11620 invoked by alias); 24 Dec 2006 23:34:28 -0000 Received: (qmail 11610 invoked by uid 22791); 24 Dec 2006 23:34:28 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.233) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 24 Dec 2006 23:34:24 +0000 Received: by nz-out-0506.google.com with SMTP id m7so1491755nzf for ; Sun, 24 Dec 2006 15:34:22 -0800 (PST) Received: by 10.65.253.6 with SMTP id f6mr157770qbs.1167003262901; Sun, 24 Dec 2006 15:34:22 -0800 (PST) Received: by 10.65.193.14 with HTTP; Sun, 24 Dec 2006 15:34:22 -0800 (PST) Message-ID: <89c3ea2b0612241534o2b25b187v444cf8298f6b3f31@mail.gmail.com> Date: Sun, 24 Dec 2006 23:34:00 -0000 From: "andy wang" To: gdb@sourceware.org Subject: Stopping Execution When Variables Change MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: 2006-12/txt/msg00198.txt.bz2 Hi, All: Last question before Xmas :-) I want to find the same function in gdb as in sun's dbx I can't find it in GDB manual so I came here. Thanks in advanced! ============ the following is from sun dbx manual ========= topping Execution When Variables Change To stop program execution if the value of a specified variable has changed, type: (dbx) stop change variable Keep these points in mind when using the stop change command: * dbx stops the program at the line after the line that caused a change in the value of the specified variable. * If variable is local to a function, the variable is considered to have changed when the function is first entered and storage for variable is allocated. The same is true with respect to parameters. * The command does not work with multithreaded applications. For more information on specifying a change event, see change variable and stop Command.