emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defending GCC considered futile


From: Eli Zaretskii
Subject: Re: Defending GCC considered futile
Date: Tue, 10 Feb 2015 17:58:58 +0200

> From: Helmut Eller <address@hidden>
> CC: Daniel Colascione <address@hidden>, Eli Zaretskii <address@hidden>
> Date: Tue, 10 Feb 2015 09:47:21 +0100
> 
> Recent GDB versions (can) use a GCC plugin to parse source-code;
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=include/gcc-c-fe.def;hb=HEAD

This is used for a different feature: to be able to inject code into a
program being debugged.  See gdb/compile/ in the GDB repository (and
the corresponding docs in the manual, gdb/doc/gdb.texinfo).

And I don't think this is implemented as a GCC plugin.  AFAIU, GDB
dynamically loads libcc1.so to invoke the compiler functions.

> I think completion is still done by GDB itself.

That's correct, GDB completes on symbols using its own code.
File-name completion uses Readline functions.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]