From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31498 invoked by alias); 16 Apr 2004 01:07:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31489 invoked from network); 16 Apr 2004 01:07:16 -0000 Received: from unknown (HELO mail-out4.apple.com) (17.254.13.23) by sources.redhat.com with SMTP; 16 Apr 2004 01:07:16 -0000 Received: from mailgate2.apple.com (a17-128-100-204.apple.com [17.128.100.204]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id i3G1BHYB012950 for ; Thu, 15 Apr 2004 18:11:17 -0700 (PDT) Received: from relay2.apple.com (relay2.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.3.6) with ESMTP id for ; Thu, 15 Apr 2004 18:07:15 -0700 Received: from [17.201.22.245] (inghji6.apple.com [17.201.22.245]) by relay2.apple.com (8.12.11/8.12.11) with ESMTP id i3G17D8A012262 for ; Fri, 16 Apr 2004 01:07:14 GMT Mime-Version: 1.0 (Apple Message framework v613) Content-Transfer-Encoding: 7bit Message-Id: <85C3BC8E-8F42-11D8-8CF3-000A958F4C44@apple.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: gdb-patches@sources.redhat.com From: Jim Ingham Subject: Pending breakpoints & ignore Date: Fri, 16 Apr 2004 01:07:00 -0000 X-SW-Source: 2004-04/txt/msg00336.txt.bz2 Oh, yes, one more thing. We probably need to copy the ignore count and thread over from the pended breakpoint to the actual breakpoint. This should work: (gdb) break SomeNotLoadedFunction (gdb) ignore $bpnum 5 but it doesn't right now. Like: 2004-04-15 Jim Ingham * breakpoint.c (create_breakpoints): Copy the ignore count and thread id over from the pended breakpoint to the actual breakpoint. Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.166 diff -p -p -r1.166 breakpoint.c *** breakpoint.c 8 Apr 2004 21:18:12 -0000 1.166 --- breakpoint.c 16 Apr 2004 01:02:00 -0000 *************** create_breakpoints (struct symtabs_and_l *** 4937,4942 **** --- 4937,4946 ---- be copied too. */ if (pending_bp->commands) b->commands = copy_command_lines (pending_bp->commands); + + /* We have to copy over the ignore_count and thread as well. */ + b->ignore_count = pending_bp->ignore_count; + b->thread = pending_bp->thread; } mention (b); } Jim -- Jim Ingham jingham@apple.com Developer Tools Apple Computer