all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Earl <jearl@notengoamigos.org>
To: help-gnu-emacs@gnu.org
Subject: Re: c/c++ project management and debugging
Date: Mon, 20 Dec 2010 22:13:50 -0700	[thread overview]
Message-ID: <87bp4foghd.fsf@notengoamigos.org> (raw)
In-Reply-To: mailman.14.1292891000.3394.help-gnu-emacs@gnu.org

On Mon, Dec 20 2010, Rajinder Yadav wrote:

> On Mon, Dec 20, 2010 at 8:47 AM, Andrea Crotti
> <andrea.crotti.0@gmail.com> wrote:
>> Rajinder Yadav <devguy.ca@gmail.com> 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 <space> 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


  parent reply	other threads:[~2010-12-21  5:13 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 11:39 c/c++ project management and debugging Rajinder Yadav
2010-12-20 13:47 ` Andrea Crotti
2010-12-20 15:52   ` Suvayu Ali
     [not found]   ` <mailman.1.1292860380.13743.help-gnu-emacs@gnu.org>
2010-12-20 16:36     ` despen
2010-12-20 17:00       ` Jason Earl
2010-12-21  0:23   ` Rajinder Yadav
2010-12-21  1:28     ` Andrea Crotti
2010-12-21 12:00       ` Rajinder Yadav
2010-12-21 12:30         ` Andrea Crotti
2010-12-21 12:27       ` Rajinder Yadav
     [not found]       ` <mailman.3.1292932824.3904.help-gnu-emacs@gnu.org>
2010-12-21 13:10         ` Elena
2010-12-21 13:35           ` Elena
2010-12-21 14:06             ` Andrea Crotti
     [not found]             ` <mailman.5.1292940435.31822.help-gnu-emacs@gnu.org>
2010-12-21 14:25               ` Richard Riley
2010-12-21 20:26               ` Elena
2010-12-21 21:43                 ` Pascal J. Bourguignon
2010-12-22  8:19                   ` Elena
2010-12-22 15:54                   ` Richard Riley
2010-12-23  0:45                     ` Pascal J. Bourguignon
2010-12-23  8:34                       ` Elena
2010-12-23  8:38                         ` Pascal J. Bourguignon
2010-12-23  8:50                           ` Elena
2010-12-23 13:07                       ` Richard Riley
2010-12-23 13:32                         ` Pascal J. Bourguignon
2010-12-23 14:33                           ` Richard Riley
2010-12-23 13:35                         ` Elena
2010-12-24  5:42                         ` rusi
2010-12-24  8:58                         ` Gary
2010-12-24  9:05                         ` Gary
     [not found]                         ` <mailman.9.1293181132.17958.help-gnu-emacs@gnu.org>
2010-12-24 11:09                           ` Richard Riley
2010-12-24 11:35                             ` Elena
2011-01-10 10:07                             ` Gary
     [not found]                             ` <mailman.4.1294654218.11614.help-gnu-emacs@gnu.org>
2011-01-10 11:04                               ` Richard Riley
2011-01-10 12:37                                 ` Gary
2011-01-10 12:55                                 ` Pascal J. Bourguignon
2011-01-10 13:49                                   ` Richard Riley
2011-01-10 14:54                                     ` Le Wang
2011-01-10 15:30                                       ` Gary
     [not found]                                       ` <mailman.7.1294673476.7472.help-gnu-emacs@gnu.org>
2011-01-10 16:18                                         ` Richard Riley
2011-01-11  7:20                                           ` Gary
2011-01-11 16:55                                           ` Andreas Röhler
     [not found]                                           ` <mailman.0.1294764952.30016.help-gnu-emacs@gnu.org>
2011-01-11 17:56                                             ` rusi
     [not found]                                     ` <mailman.5.1294671316.7472.help-gnu-emacs@gnu.org>
2011-01-10 15:24                                       ` Richard Riley
     [not found]                         ` <mailman.11.1293181565.17958.help-gnu-emacs@gnu.org>
2010-12-24 11:12                           ` Richard Riley
     [not found]                         ` <mailman.13.1293183850.17958.help-gnu-emacs@gnu.org>
2010-12-24 11:15                           ` Richard Riley
2010-12-21 23:09                 ` Andrea Crotti
2010-12-21 21:42               ` Pascal J. Bourguignon
2010-12-21 14:30           ` Rajinder Yadav
     [not found]           ` <mailman.0.1292941865.1790.help-gnu-emacs@gnu.org>
2010-12-21 14:52             ` Richard Riley
2010-12-21 16:42               ` Rajinder Yadav
     [not found]               ` <mailman.3.1292949766.3175.help-gnu-emacs@gnu.org>
2010-12-21 20:35                 ` Elena
2010-12-21 21:51               ` Pascal J. Bourguignon
2010-12-22  8:28                 ` Elena
2010-12-22  8:50                   ` Elena
2010-12-22  9:48                     ` Pascal J. Bourguignon
2010-12-22 10:06                       ` Elena
2010-12-22 10:22                         ` Elena
2010-12-22 10:58                           ` Andrea Crotti
     [not found]                           ` <mailman.2.1293015509.3728.help-gnu-emacs@gnu.org>
2010-12-22 11:16                             ` Pascal J. Bourguignon
2010-12-22 12:38                               ` Elena
2010-12-22 13:32                                 ` Pascal J. Bourguignon
2010-12-22 13:51                                   ` Elena
2010-12-22 15:09                                     ` Andrea Crotti
2010-12-22 15:53                                     ` Pascal J. Bourguignon
2010-12-22 15:09                                 ` Helmut Eller
2010-12-22 21:46                                   ` Elena
2010-12-22 10:25                         ` Pascal J. Bourguignon
2010-12-22 12:34                           ` Elena
2010-12-22 13:04                             ` Andrea Crotti
     [not found]                             ` <mailman.8.1293023060.3728.help-gnu-emacs@gnu.org>
2010-12-22 13:29                               ` Elena
2010-12-22 14:12                                 ` Andrea Crotti
     [not found]                                 ` <mailman.3.1293027192.25158.help-gnu-emacs@gnu.org>
2010-12-22 14:43                                   ` Elena
2010-12-22 15:46                                     ` Andrea Crotti
2010-12-23 12:35                               ` Elena
2010-12-23 13:01                                 ` Eli Zaretskii
2010-12-24 11:38                                 ` Andrea Crotti
     [not found]                                 ` <mailman.2.1293190750.15516.help-gnu-emacs@gnu.org>
2010-12-24 12:55                                   ` Richard Riley
2010-12-24 14:18                                     ` Pascal J. Bourguignon
2010-12-24 14:32                                       ` Richard Riley
2010-12-25 16:17                                       ` rusi
2010-12-25 17:12                                         ` Pascal J. Bourguignon
2010-12-22 13:35                             ` Pascal J. Bourguignon
2010-12-22  9:57                     ` Andrea Crotti
2010-12-21 21:47             ` Pascal J. Bourguignon
2010-12-21 13:44         ` despen
2010-12-21 14:27           ` Richard Riley
2010-12-21 19:08         ` Jason Earl
2010-12-21 20:41           ` Elena
     [not found]   ` <mailman.14.1292891000.3394.help-gnu-emacs@gnu.org>
2010-12-21  5:13     ` Jason Earl [this message]
2010-12-21 14:36       ` Rajinder Yadav
2010-12-21 14:40         ` Rajinder Yadav
     [not found] <mailman.7.1292845153.32310.help-gnu-emacs@gnu.org>
2010-12-20 12:36 ` Elena
2011-01-11  8:55   ` Dmitriy Igrishin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bp4foghd.fsf@notengoamigos.org \
    --to=jearl@notengoamigos.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.