[hellogcc] Fwd: Re: [PATCH v3 00/14] let gdb reuse gcc's C compiler

  • From: asmwarrior <asmwarrior@xxxxxxxxx>
  • To: hellogcc@xxxxxxxxxxxxx
  • Date: Sun, 02 Nov 2014 22:31:06 +0800

看着架势GDB要调用GCC的parser干活了,而且似乎GCC的parser现在可以独立成为一个so了。
https://sourceware.org/gdb/wiki/GCCCompileAndExecute
这wiki里面的东西挺有意思。


-------- Original Message --------
Subject: Re: [PATCH v3 00/14] let gdb reuse gcc's C compiler
Date: Sat, 1 Nov 2014 22:52:33 +0100
From: Jan Kratochvil <jan.kratochvil@xxxxxxxxxx>
To: gdb-patches@xxxxxxxxxxxxxx
Newsgroups: gmane.comp.gdb.patches
References: <20141101214552.13230.45564.stgit@xxxxxxxxxxxxxxxxxxxxxxx>

Hi,

I have forgotten the most important:

Current GCC trunk (future 5.0) has now the libcc1.so support checked in by
Phil, therefore this gdb/NEWS addition is now really true:

* GDB now supports the compilation and injection of source code into
  the inferior.  GDB will use GCC 5.0 or higher built with libcc1.so
  to compile the source code to object code, and if successful, inject
  and execute that code within the current context of the inferior.

This makes it relatively easy to test this patchset.


Jan




Other related posts:

  • » [hellogcc] Fwd: Re: [PATCH v3 00/14] let gdb reuse gcc's C compiler - asmwarrior