From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Earl Newsgroups: gmane.emacs.help Subject: Re: c/c++ project management and debugging Date: Mon, 20 Dec 2010 22:13:50 -0700 Organization: A noiseless patient Spider Message-ID: <87bp4foghd.fsf@notengoamigos.org> References: <4D0F4058.6050101@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292941019 1721 80.91.229.12 (21 Dec 2010 14:16:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 14:16:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 15:16:54 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PV31H-0008Ui-BW for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 15:16:54 +0100 Original-Received: from localhost ([127.0.0.1]:44866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV31E-0003py-1k for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 09:16:48 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Injection-Info: mx02.eternal-september.org; posting-host="2dYgsd229VFZxSGBkoHvsw"; logging-data="2319"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GeGhqUvFH7Rg819rZRjFL" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAABGdBTUEAALGPC/xhBQAAAAFz UkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlw SFlzAAASmwAAEpsB4JJZDAAAAAl2cEFnAAAAMAAAADAAzu6MVwAAAaFJREFUSMe1VtuxxSAIzIz9 2Iyl2Aj1bBX0k5+LrwjGjJyPy2ROwtGNBJbVCwwwy1UNoOL3f+SBxkj15Lr4NsboN24DWMZxYQNA TjGmjC1gswJiqBbpDeANYMwXBFyAFB5L7ADMBcoSDgAFBSDHR2tA8ABMSB4AawB76pAnILsKx2lm 1VfpgUi3kxrySylRHdmQj40Jva2/jl8EY3Twv/phhsC9nIQR0hnAOUptYsL3RxvAk+YIH2AWsvTH GYBgKn8GaPYm5jNANaCQ8WfAzyH9x0crFfGl9X4QVdg8gEqN2KjBHi6V/iBq6iyAxTqd+Yvupwai VwM9LZkxQ6otihmS6H+mHlK5URwi0UQgWxHoxS5JagBSed7IzJRCallS2pg2QsamcGUFNSHgLZUv augJIUualv1Bv6+yVat1oeMq92s/mBBWQJH7dQX7CnpvWWs/4CazpHlB2RR1BFSzNGdIaTbbLil8 U76BKKU0GztapXP3C78bNYQ6MTQybY8OkIaITf9HPzyHkXE4YXs4mf5VDz+jAepj3RTQ3Ubv0SPy 9AcCrfKh0TBgvgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxMC0wNC0zMFQyMzo1NDo0My0wNjowMKID BVQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTAtMDQtMzBUMjM6NTQ6NDItMDY6MDB1KbZcAAAAAElF TkSuQmCC Cancel-Lock: sha1:1mf8Rd80BbKgwTXixQ5VXY9jCiE= sha1:v+E+3BpyPMjJ2sveiTMTTsjPkOw= Original-Xref: usenet.stanford.edu gnu.emacs.help:183469 X-Mailman-Approved-At: Tue, 21 Dec 2010 09:13:28 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77725 Archived-At: On Mon, Dec 20 2010, Rajinder Yadav wrote: > On Mon, Dec 20, 2010 at 8:47 AM, Andrea Crotti > wrote: >> Rajinder Yadav writes: >> >>> up to now i've been using emacs for ruby on rails, i want to get setup >>> so i can also do c/c++ development >>> >>> i come from a visualstudio ide background for c++ stuff, how can I >>> setup emacs to integrate the gnu tool chain, such that i can have >>> emacs generate makefiles and do the builds >>> >>> also how can i get a gui like ide gdb setup for debugging code >> >> Why, does visualstudio integrates with the gnu tool chain :O? >> I guess not, but that's what I understood from your sentences... > > no i wanted emacs to integrate with the gnu tool chain > >> Anyway with Cedet you can do a lot of stuff. >> It doesn't however generats any makefile, but if you learn to write them >> is not time wasted at all... > > yes i already have cedet installed and working, but i would rather not > write makefiles by hand. i understand there is also autoconf that can > be used to generate makefiles, possible that's a better way to go, > still i don't feel like investing the time to learn about autoconf at > this point and time There's no reason to write Makefiles by hand now that Emacs can do it for you. M-x ede-new to create a new project (choose a "Make" project), then M-x customize-project. For simple projects it is tons easier than creating a Makefile by hand, especially considering all of the targets that EDE gives you for free. Plus, creating a project teaches Emacs how your project is organized. Not only does this allow you to easily run the build from inside Emacs, but it allows you to query and search your files by project as well. >> Gdb integration works quite well already, the only important >> parameter for gdb imho is (setq gdb-many-windows t) >> >> and then just try something you'll see if you like it. > > yes i discovered this gdb setting on the emacs-fu blog, however i have > 2 questions > > 1) when i have EBC opened gdb-many-windows end up looking like a mess, > is there a way to get it to work with EBC? > > 2) i can't figure out how to set breakpoint, can't i simple click > someone in the source window to add a bp? I hit C-x in the source window. There probably is a way to use the mouse. To be honest, I don't use the debugger much. I probably should. Jason