This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Newb] Stepping into cc1plus from gcc


On Mar 22, 2004, llewelly@xmission.com wrote:

> Alexandre Oliva <aoliva@redhat.com> writes:
>> On Mar 21, 2004, Andreas Schwab <schwab@suse.de> wrote:
>> 
>> > Alexandre Oliva <aoliva@redhat.com> writes:
>> 
>> >> But then you have to know the command line passed to cc1plus.  And
>> >> what if gdb doesn't support --args, or if you want to use emacs and it
>> >> doesn't support gdb --args?
>> 
>> > You don't want to use such an old gdb anyway.
>> 
>> But I do want to use gdb within emacs

> ok. I have to ask. In emacs I type 'M-x gdb', and it responds:
>     'Run gdb (like this): gdb ' and I add
>     '--args /usr/local/gcc-3.3.3/lib/gcc-lib/i386-unknown-freebsd5.2/3.3.3/cc1plus ... '
>     and it works happily. I am using emacs 21.2.1 and gdb 5.2.1 . 

> Does this not work for you? 
    
If you know the arguments to pass to cc1plus, yes, it does.

The point of debugx is to be able to run a `gcc -c -flags ...' and get
a debugger attached to cc1 or cc1plus, with the right command line.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]