public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* RFA: NEWS update
@ 2010-08-17 17:15 Tom Tromey
  2010-08-17 18:19 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Tromey @ 2010-08-17 17:15 UTC (permalink / raw)
  To: gdb-patches

This updates NEWS to account for the template parameter support.
I added a "C++ Improvements" section because I know we will be adding
more stuff here before 7.3.

Ok?

Tom

2010-08-17  Tom Tromey  <tromey@redhat.com>

	* NEWS: Mention template parameter support.

Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.399
diff -u -r1.399 NEWS
--- NEWS	16 Aug 2010 21:19:29 -0000	1.399
+++ NEWS	17 Aug 2010 17:15:03 -0000
@@ -12,6 +12,12 @@
 
      result = some_value (10,20)
 
+* C++ Improvements:
+
+  ** GDB now puts template parameters in scope when debugging in an
+     instantiation.  This feature requires proper debuginfo support
+     from the compiler; it was added to GCC 4.5.
+
 * GDB now has some support for using labels in the program's source in
   linespecs.  For instance, you can use "advance label" to continue
   execution to a label.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RFA: NEWS update
  2010-08-17 17:15 RFA: NEWS update Tom Tromey
@ 2010-08-17 18:19 ` Eli Zaretskii
  2010-08-17 18:33   ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2010-08-17 18:19 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

> From: Tom Tromey <tromey@redhat.com>
> Date: Tue, 17 Aug 2010 11:15:43 -0600
> 
> This updates NEWS to account for the template parameter support.
> I added a "C++ Improvements" section because I know we will be adding
> more stuff here before 7.3.

Good idea, thanks.

> Ok?

Can the entry elaborate a bit more about this?  I'm afraid I was
unable to understand what will the improvement mean to me as a C++
programmer.  "Puts template parameter in scope" is somewhat cryptic,
IMO.

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RFA: NEWS update
  2010-08-17 18:19 ` Eli Zaretskii
@ 2010-08-17 18:33   ` Tom Tromey
  2010-08-17 19:25     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Tromey @ 2010-08-17 18:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

Eli> Can the entry elaborate a bit more about this?  I'm afraid I was
Eli> unable to understand what will the improvement mean to me as a C++
Eli> programmer.  "Puts template parameter in scope" is somewhat cryptic,
Eli> IMO.

Sure.  How about this?

Tom

Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.399
diff -u -c -r1.399 NEWS
cvs diff: conflicting specifications of output style
Write failed flushing stdout buffer.
write stdout: Broken pipe
*** NEWS	16 Aug 2010 21:19:29 -0000	1.399
--- NEWS	17 Aug 2010 18:33:05 -0000
***************
*** 12,17 ****
--- 12,28 ----
  
       result = some_value (10,20)
  
+ * C++ Improvements:
+ 
+   ** GDB now puts template parameters in scope when debugging in an
+      instantiation.  For example, if you have:
+ 
+      template<int X> int func (void) { return X; }
+ 
+      Then if you step into func<5>, "print X" will show "5".  This
+      feature requires proper debuginfo support from the compiler; it
+      was added to GCC 4.5.
+ 
  * GDB now has some support for using labels in the program's source in
    linespecs.  For instance, you can use "advance label" to continue
    execution to a label.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RFA: NEWS update
  2010-08-17 18:33   ` Tom Tromey
@ 2010-08-17 19:25     ` Eli Zaretskii
  2010-08-17 21:33       ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2010-08-17 19:25 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

> From: Tom Tromey <tromey@redhat.com>
> Cc: gdb-patches@sourceware.org
> Date: Tue, 17 Aug 2010 12:33:31 -0600
> 
> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
> 
> Eli> Can the entry elaborate a bit more about this?  I'm afraid I was
> Eli> unable to understand what will the improvement mean to me as a C++
> Eli> programmer.  "Puts template parameter in scope" is somewhat cryptic,
> Eli> IMO.
> 
> Sure.  How about this?

Perfect.  Thanks.

> +   ** GDB now puts template parameters in scope when debugging in an
> +      instantiation.  For example, if you have:
> + 
> +      template<int X> int func (void) { return X; }
> + 
> +      Then if you step into func<5>, "print X" will show "5".  This
         ^^^^
This "then" should not be capitalized, as it doesn't really begin a
sentence.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RFA: NEWS update
  2010-08-17 19:25     ` Eli Zaretskii
@ 2010-08-17 21:33       ` Tom Tromey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2010-08-17 21:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

>> +      Then if you step into func<5>, "print X" will show "5".  This
Eli>          ^^^^
Eli> This "then" should not be capitalized, as it doesn't really begin a
Eli> sentence.

I'm committing it with that change.

Tom

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-17 21:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 17:15 RFA: NEWS update Tom Tromey
2010-08-17 18:19 ` Eli Zaretskii
2010-08-17 18:33   ` Tom Tromey
2010-08-17 19:25     ` Eli Zaretskii
2010-08-17 21:33       ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).