This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
pushed: [RFA/Python] Fix int() builtin with range type gdb.Value objects.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 20 Nov 2013 21:24:52 +0400
- Subject: pushed: [RFA/Python] Fix int() builtin with range type gdb.Value objects.
- Authentication-results: sourceware.org; auth=none
- References: <1384773267-4883-1-git-send-email-brobecker at adacore dot com> <87r4adpupf dot fsf at fleche dot redhat dot com> <20131119030458 dot GE3481 at adacore dot com> <87zjp0mnuv dot fsf at fleche dot redhat dot com> <20131120024752 dot GJ3481 at adacore dot com> <8738mrjchi dot fsf at fleche dot redhat dot com>
> Joel> gdb/ChangeLog:
>
> Joel> * python/py-value.c (is_intlike): Delete.
> Joel> (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
> Joel> by use of is_integral_type.
> Joel> (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
> Joel> by use of is_integral_type and check for TYPE_CODE_PTR.
>
> Joel> Re-tested on x86_64-linux, JIC.
>
> Not sure if you are waiting for me, but just in case, this looks good --
> thanks for cleaning this up.
Thanks Tom. I was playing it safe, since there was no actual visible
issues besides the cleanup itself. Now pushed!
--
Joel