Message ID | 20140808121539.GA12907@host2.jankratochvil.net |
---|---|
State | New |
Headers | show |
Hi Jan, On Fri, 8 Aug 2014, Jan Kratochvil wrote: >>>>>>> "Jeff" == Jeff Law <law@redhat.com> writes: >>> Does this deserve a mention in the news file? > Attached (based on Tom's PATCH 0/5 mail). Index: htdocs/gcc-5/changes.html =================================================================== +<h3 id="c">C</h3> + <ul> + <li>GDB evaluation of a block of source code is now provided by new GCC + plugin.<br /> How does one obtain/install/trigger this plugin? Where are more details documented? This is information I'd add here. + A user can compile a code snippet and it will be inserted into the inferior + and evaluated. Declarations needed by the snippet are supplied by GDB, and + there is a GDB--GCC interface so that the snippets can refer to local + variables in the current inferior frame. The validator probably is going to complain that this needs to be within <p>...</p> markers. In HTML, I'd just say GDB-GCC (one dash). I'm good with this patch modulo these suggestion, but perhaps Jeff or Tom have some further input? Gerald
What happened with this? I don't see any libcc1 in the gcc repository and this patch was never committed. Cheers, Manuel. On 31 August 2014 17:12, Gerald Pfeifer <gerald@pfeifer.com> wrote: > Hi Jan, > > On Fri, 8 Aug 2014, Jan Kratochvil wrote: >>>>>>>> "Jeff" == Jeff Law <law@redhat.com> writes: >>>> Does this deserve a mention in the news file? >> Attached (based on Tom's PATCH 0/5 mail). > > Index: htdocs/gcc-5/changes.html > =================================================================== > +<h3 id="c">C</h3> > + <ul> > + <li>GDB evaluation of a block of source code is now provided by new GCC > + plugin.<br /> > > How does one obtain/install/trigger this plugin? Where are more details > documented? This is information I'd add here. > > + A user can compile a code snippet and it will be inserted into the inferior > + and evaluated. Declarations needed by the snippet are supplied by GDB, and > + there is a GDB--GCC interface so that the snippets can refer to local > + variables in the current inferior frame. > > The validator probably is going to complain that this needs to be within > <p>...</p> markers. > > In HTML, I'd just say GDB-GCC (one dash). > > I'm good with this patch modulo these suggestion, but perhaps Jeff or > Tom have some further input? > > Gerald
On Sun, 14 Sep 2014 17:07:05 +0200, Manuel López-Ibáñez wrote: > What happened with this? I don't see any libcc1 in the gcc repository > and this patch was never committed. It was discussed internally and the patches are going to be updated, rebased and later checked in. Thanks, Jan
Index: htdocs/gcc-5/changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/changes.html,v retrieving revision 1.2 diff -u -p -r1.2 changes.html --- htdocs/gcc-5/changes.html 30 Jul 2014 18:02:31 -0000 1.2 +++ htdocs/gcc-5/changes.html 8 Aug 2014 12:10:46 -0000 @@ -20,7 +20,25 @@ <!-- h3 id="ada">Ada</h3 --> <!-- h3 id="c-family">C family</h3 --> -<!-- h3 id="c">C</h3--> + +<h3 id="c">C</h3> + <ul> + <li>GDB evaluation of a block of source code is now provided by new GCC + plugin.<br /> + For example: + <pre> + (gdb) compile code int i; for (i = 0; i < 3; ++i) printf ("#%d\n", i) + #0 + #1 + #2 + </pre> + A user can compile a code snippet and it will be inserted into the inferior + and evaluated. Declarations needed by the snippet are supplied by GDB, and + there is a GDB--GCC interface so that the snippets can refer to local + variables in the current inferior frame. + </li> + </ul> + <!-- h3 id="cxx">C++</h3--> <!-- h4 id="libstdcxx">Runtime Library (libstdc++)</h4--> <h3 id="fortran">Fortran</h3>