From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4460 invoked by alias); 28 Jul 2010 09:03:23 -0000 Received: (qmail 4351 invoked by uid 22791); 28 Jul 2010 09:03:22 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-ew0-f41.google.com (HELO mail-ew0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jul 2010 09:03:13 +0000 Received: by ewy28 with SMTP id 28so1762937ewy.0 for ; Wed, 28 Jul 2010 02:03:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.42.72 with SMTP id r8mr6825616ebe.86.1280307790154; Wed, 28 Jul 2010 02:03:10 -0700 (PDT) Received: by 10.213.97.88 with HTTP; Wed, 28 Jul 2010 02:03:10 -0700 (PDT) In-Reply-To: References: <4C487AD8.7030203@vmware.com> <4C487F33.1030807@vmware.com> <4C48800B.1030100@vmware.com> Date: Wed, 28 Jul 2010 09:03:00 -0000 Message-ID: Subject: Re: help with loading core files From: Steffen Dettmer To: "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 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: 2010-07/txt/msg00106.txt.bz2 On Thu, Jul 22, 2010 at 7:55 PM, Mathew Yeates wrote: > How do people deal with running to a breakpoint that takes 10 minutes > to get to? It would be great if I could run to the breakpoint once, > save some info, and in the future just return to the breakpoint and > keep running from there. I usually write a mock called by a automated unit test and run it in gdb with full debug log messages enabled. If the first run does not reveal enough information (e.g. uhh, what was in variable x at this and that point?), it is a good opportunity to improve the log messages. When using an appropriate mock, it can be simple to call the problematic function again, even from gdb (e.g. `print myFunc()'). oki, Steffen