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/Python] Fix int() builtin with range type gdb.Value objects.


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> I missed that, you're right! New patch attached.

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.

Tom


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