[RFC] Let "gcore" command accept a suffix argument

Joel Brobecker brobecker@adacore.com
Wed Jun 23 16:59:00 GMT 2010


> 2010-06-23  Hui Zhu  <teawater@gmail.com>
> 
>        * printcmd.c (ui_printf): New function.
>        (printf_command): Call ui_printf.
>        (_initialize_printcmd): New command "eval".

This is OK.

> 2010-06-23  Hui Zhu  <teawater@gmail.com>
> 
> 	* gdb.base/eval.exp: New file.

This is also OK.  Just for the record, I first thought that your two
tests where still the same and thus would generate the same message.
But after a closer inspection, one used $a++ and the other ++$a.
Why not use something more different like '$a * 2' maybe?

Another way to make things different is to specify distinct messages
explicitly - for instance "first eval" / "second eval"...

-- 
Joel



More information about the Gdb-patches mailing list