This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: NEWS update


>>>>> "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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]