Re: [PATCH 4/5] add gcc/gdb interface files

2014-06-19 Thread Tom Tromey
> "Jeff" == Jeff Law writes: >> One other random idea was something like: >> GCC_METHOD7 (gcc_decl, build_decl, >> const char *, /* Argument NAME. */ >> enum gcc_c_symbol_kind, /* Argument SYM_KIND. */ Jeff> Works for me. I took this approach. Other changes in this version

Re: [PATCH 4/5] add gcc/gdb interface files

2014-06-09 Thread Jeff Law
On 06/05/14 19:54, Tom Tromey wrote: "Jakub" == Jakub Jelinek writes: Jakub> Another possibility would be to give the macros twice as many arguments Jakub> as there are parameters and just through the odd arguments away when Jakub> expanding to the template parameters. That would mean you wri

Re: [PATCH 4/5] add gcc/gdb interface files

2014-06-05 Thread Jakub Jelinek
On Thu, Jun 05, 2014 at 07:54:30PM -0600, Tom Tromey wrote: > > "Jakub" == Jakub Jelinek writes: > > Jakub> Another possibility would be to give the macros twice as many arguments > Jakub> as there are parameters and just through the odd arguments away when > Jakub> expanding to the template

Re: [PATCH 4/5] add gcc/gdb interface files

2014-06-05 Thread Tom Tromey
> "Jakub" == Jakub Jelinek writes: Jakub> Another possibility would be to give the macros twice as many arguments Jakub> as there are parameters and just through the odd arguments away when Jakub> expanding to the template parameters. That would mean you write Jakub> GCC_METHOD7 (gcc_decl, b

Re: [PATCH 4/5] add gcc/gdb interface files

2014-06-05 Thread Jakub Jelinek
On Thu, Jun 05, 2014 at 01:23:37PM -0600, Jeff Law wrote: > >>>+GCC_METHOD7 (gcc_decl, build_decl, > >>>+ const char */* name */, > >>>+ enum gcc_c_symbol_kind /* sym_kind */, > >>>+ gcc_type /* sym_type */, > >>>+ const char */* substitution_name */, > >>>+ gcc_addres

Re: [PATCH 4/5] add gcc/gdb interface files

2014-06-05 Thread Jeff Law
On 06/04/14 14:39, Tom Tromey wrote: "Jakub" == Jakub Jelinek writes: +GCC_METHOD7 (gcc_decl, build_decl, +const char */* name */, +enum gcc_c_symbol_kind /* sym_kind */, +gcc_type /* sym_type */, +const char */* substitution_name */, +

Re: [PATCH 4/5] add gcc/gdb interface files

2014-06-04 Thread Tom Tromey
> "Jakub" == Jakub Jelinek writes: >> +GCC_METHOD7 (gcc_decl, build_decl, >> + const char */* name */, >> + enum gcc_c_symbol_kind /* sym_kind */, >> + gcc_type /* sym_type */, >> + const char */* substitution_name */, >> + gcc_address /* address */, >>

Re: [PATCH 4/5] add gcc/gdb interface files

2014-05-22 Thread Jeff Law
On 05/22/14 07:16, Jakub Jelinek wrote: On Thu, May 22, 2014 at 06:52:05AM -0600, Jeff Law wrote: On 05/16/14 09:26, Tom Tromey wrote: 2014-05-16 Phil Muldoon Jan Kratochvil Tom Tromey * gcc-c-fe.def: New file. * gcc-c-interface.h: New file.

Re: [PATCH 4/5] add gcc/gdb interface files

2014-05-22 Thread Jakub Jelinek
On Thu, May 22, 2014 at 06:52:05AM -0600, Jeff Law wrote: > On 05/16/14 09:26, Tom Tromey wrote: > > > >2014-05-16 Phil Muldoon > > Jan Kratochvil > > Tom Tromey > > > > * gcc-c-fe.def: New file. > > * gcc-c-interface.h: New file. > > * gcc-interface.h: New file.

Re: [PATCH 4/5] add gcc/gdb interface files

2014-05-22 Thread Jeff Law
On 05/16/14 09:26, Tom Tromey wrote: 2014-05-16 Phil Muldoon Jan Kratochvil Tom Tromey * gcc-c-fe.def: New file. * gcc-c-interface.h: New file. * gcc-interface.h: New file. --- +GCC_METHOD7 (gcc_decl, build_decl, +const char *

[PATCH 4/5] add gcc/gdb interface files

2014-05-16 Thread Tom Tromey
The gcc plugin is split into two parts. One part is an ordinary gcc plugin. The other part is a shared library that is loaded by gdb. This patch adds some files that define the interface exported by this shared library to gdb. These files also define the internal API by which the gdb- and gcc-s