From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23659 invoked by alias); 4 Oct 2008 07:29:07 -0000 Received: (qmail 23650 invoked by uid 22791); 4 Oct 2008 07:29:07 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 04 Oct 2008 07:28:32 +0000 Received: from zps35.corp.google.com (zps35.corp.google.com [172.25.146.35]) by smtp-out.google.com with ESMTP id m947SQhq030303 for ; Sat, 4 Oct 2008 08:28:27 +0100 Received: from localhost (ruffy.corp.google.com [172.18.118.116]) by zps35.corp.google.com with ESMTP id m947SPAV023357 for ; Sat, 4 Oct 2008 00:28:25 -0700 Received: by localhost (Postfix, from userid 67641) id 1E2891C78EB; Sat, 4 Oct 2008 00:28:25 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [RFA] watch for ^c in maint info {symtabs,psymtabs} Message-Id: <20081004072825.1E2891C78EB@localhost> Date: Sat, 04 Oct 2008 07:29:00 -0000 From: dje@google.com (Doug Evans) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00101.txt.bz2 If debugging a large app, it's painful if ^c doesn't work in maint info {symtabs,psymtabs}. Ok to check in? 2008-10-04 Doug Evans * symmisc.c (maintenance_info_symtabs): Watch for ^c. (maintenance_info_psymtabs): Ditto. Index: symmisc.c =================================================================== RCS file: /cvs/src/src/gdb/symmisc.c,v retrieving revision 1.58 diff -u -p -u -p -r1.58 symmisc.c --- symmisc.c 3 Oct 2008 16:36:10 -0000 1.58 +++ symmisc.c 4 Oct 2008 07:23:59 -0000 @@ -937,6 +937,8 @@ maintenance_info_symtabs (char *regexp, actually find a symtab whose name matches. */ int printed_objfile_start = 0; + QUIT; + ALL_OBJFILE_SYMTABS (objfile, symtab) if (! regexp || re_exec (symtab->filename)) @@ -988,6 +990,8 @@ maintenance_info_psymtabs (char *regexp, actually find a symtab whose name matches. */ int printed_objfile_start = 0; + QUIT; + ALL_OBJFILE_PSYMTABS (objfile, psymtab) if (! regexp || re_exec (psymtab->filename))