This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] expose gdb values to python
On Mon, Sep 29, 2008 at 01:15:05PM -0300, Thiago Jung Bauermann wrote:
> +/* Python's float type corresponds to native C's double type (which is
> + assumed to use IEEE double format). */
> +#define builtin_type_pyfloat builtin_type_ieee_double
> +
> +/* Python's long type corresponds to native C's long long type (which is
> + assumed to be int64_t). */
> +#define builtin_type_pylong builtin_type_int64
> +
> +/* The current language may not have a boolean type, so always use an
> + integer as boolean type. Hopefully any language can deal with integers
> + as boolean values. */
> +#define builtin_type_pybool builtin_type_int32
Can't you get an architecture to use when you need these? I'm scared
the double change, in particular, will break any non-ieee target.
This is supposed to be target arithmetic, we should use the target
formats.
--
Daniel Jacobowitz
CodeSourcery