[commit/cleanup] delete redundant ada-lang.c:evaluate_subexp

Joel Brobecker brobecker@adacore.com
Wed May 20 18:23:00 GMT 2009


Hello,

I noticed a redundant routine in ada-lang.c, so I deleted it. and while
I was looking at it, I noticed another location in objc-lang.c where
it could be used... The latter change is not strictly necessary, but
it's more consistent with the rest of the code.

2009-05-22  Joel Brobecker  <brobecker@adacore.com>

        * ada-lang.c (evaluate_subexp): Delete.  Use the version from eval.c.
        (evaluate_subexp_type): Reimplement using evaluate_subexp.
        * value.h (evaluate_subexp): Add declaration.
        * eval.c (evaluate_subexp): Make non-static.
        * objc-lang.c (print_object_command): Use evaluate_subexp.

Tested on x86-linux. Will commit in a couple of days if no objection.

-- 
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup.diff
Type: text/x-diff
Size: 3420 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20090520/6aa98cdf/attachment.bin>


More information about the Gdb-patches mailing list