From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hongxu Chen Newsgroups: gmane.emacs.help Subject: Ask for some advice on Emacs GDB for large project Date: Mon, 01 Jul 2013 16:26:05 +0800 Message-ID: <87fvvy3cv6.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372667191 12361 80.91.229.3 (1 Jul 2013 08:26:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jul 2013 08:26:31 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 01 10:26:33 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UtZRO-0005Pk-KG for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jul 2013 10:26:30 +0200 Original-Received: from localhost ([::1]:46627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtZRO-0006Pl-7R for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jul 2013 04:26:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtZRA-0006Pc-Fv for help-gnu-emacs@gnu.org; Mon, 01 Jul 2013 04:26:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtZR6-0000dF-2C for help-gnu-emacs@gnu.org; Mon, 01 Jul 2013 04:26:16 -0400 Original-Received: from mail-pb0-x229.google.com ([2607:f8b0:400e:c01::229]:61641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtZR5-0000cs-SG for help-gnu-emacs@gnu.org; Mon, 01 Jul 2013 04:26:11 -0400 Original-Received: by mail-pb0-f41.google.com with SMTP id rp16so4600561pbb.28 for ; Mon, 01 Jul 2013 01:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=8Akng2i35l19OCGUrwkI0WkRSqRFO8Ev9LQTQwWo6XU=; b=tu8hrTWMVc2dvw7JKXYDp6/KPduXKRdEFAVYjfexAc5IWPtdaeYPOr2EuMBPpEUJcU wTTXkow0zkOJi9xpKEgV//ndcB1y+tlWkuyxWzuXG9vCLPtbREH7LJ4LOxeWys2XdpxY vyC3vIs0OVHgRupkYOmvohvgVoBY9+QygR6pHIVO8Xz/sZ2zOYHQ4yX201iHqfv3OTFN OhZ9BDpA1jgMwVWYoBOz/DrYFJzJF6VN9wVUFI/KbwPPYUhoEA8HyV4pnwJd/7C4oFbf GDiyq1+jPzyHsp+Pp0dcYjIw6RQUQWORstAxgVcjoi/UnSr71Fuoo1T5LLoS7iackX/l 5gEg== X-Received: by 10.66.232.196 with SMTP id tq4mr23082666pac.167.1372667170533; Mon, 01 Jul 2013 01:26:10 -0700 (PDT) Original-Received: from hongxuchen-VM.STAP ([167.220.232.198]) by mx.google.com with ESMTPSA id i16sm22695006pag.18.2013.07.01.01.26.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Jul 2013 01:26:09 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91888 Archived-At: Hi guys, For some reason I am doing some coding on a large project(actually it's about llvm). When debugging with Emacs gdb, I feel that it is sometimes annoying: 1. Since there are quite a lot of symbols inside the project, when looking at some identifiers(but NOT locals) in the source code, sometimes I use `TAB' for auto-complete, I often need to wait gdb quite a long time to list all the candidate that might match(quite a lot of symbols that is nothing but useless). however I only need to see *whatis SOME_ID*, how can I make it with some tweaks? 2. The cursor is not guaranteed when some gdb command is executed, so I have to use `M->' to force it there. Is there some good `advice' or customizable variables to automatically do this? 3. How can I change the size of the windows when in gdb-many-windows mode? Any sample code? 4. What's the good practice for gdb step/next etc. Should I hit every command in the command window or set some keymaps in the source code mode and then press the command? It would be appreciated if some sample code is included. Thanks! -- Regards, Hongxu Chen