Architectures In Guile (Debugging with GDB)
From Get docs
Gdb/docs/latest/gdb/Architectures-In-Guile
Next: Disassembly In Guile, Previous: Lazy Strings In Guile, Up: Guile API [Contents][Index]
23.4.3.21 Guile representation of architectures
GDB uses architecture specific parameters and artifacts in a number of its various computations. An architecture is represented by an instance of the <gdb:arch> class.
The following architecture-related procedures are provided by the (gdb) module:
- Scheme Procedure
- arch? object
- Return
#tifobjectis an object of type<gdb:arch>. Otherwise return#f.
- Scheme Procedure
- current-arch
- Return the current architecture as a
<gdb:arch>object.
- Scheme Procedure
- arch-name arch
- Return the name (string value) of
<gdb:arch>arch.
- Scheme Procedure
- arch-charset arch
- Return name of target character set of
<gdb:arch>arch.
- Scheme Procedure
- arch-wide-charset
- Return name of target wide character set of
<gdb:arch>arch.
Each architecture provides a set of predefined types, obtained by the following functions.
- Scheme Procedure
- arch-void-type arch
- Return the
<gdb:type>object for avoidtype of architecturearch.
- Scheme Procedure
- arch-char-type arch
- Return the
<gdb:type>object for achartype of architecturearch.
- Scheme Procedure
- arch-short-type arch
- Return the
<gdb:type>object for ashorttype of architecturearch.
- Scheme Procedure
- arch-int-type arch
- Return the
<gdb:type>object for aninttype of architecturearch.
- Scheme Procedure
- arch-long-type arch
- Return the
<gdb:type>object for alongtype of architecturearch.
- Scheme Procedure
- arch-schar-type arch
- Return the
<gdb:type>object for asigned chartype of architecturearch.
- Scheme Procedure
- arch-uchar-type arch
- Return the
<gdb:type>object for anunsigned chartype of architecturearch.
- Scheme Procedure
- arch-ushort-type arch
- Return the
<gdb:type>object for anunsigned shorttype of architecturearch.
- Scheme Procedure
- arch-uint-type arch
- Return the
<gdb:type>object for anunsigned inttype of architecturearch.
- Scheme Procedure
- arch-ulong-type arch
- Return the
<gdb:type>object for anunsigned longtype of architecturearch.
- Scheme Procedure
- arch-float-type arch
- Return the
<gdb:type>object for afloattype of architecturearch.
- Scheme Procedure
- arch-double-type arch
- Return the
<gdb:type>object for adoubletype of architecturearch.
- Scheme Procedure
- arch-longdouble-type arch
- Return the
<gdb:type>object for along doubletype of architecturearch.
- Scheme Procedure
- arch-bool-type arch
- Return the
<gdb:type>object for abooltype of architecturearch.
- Scheme Procedure
- arch-longlong-type arch
- Return the
<gdb:type>object for along longtype of architecturearch.
- Scheme Procedure
- arch-ulonglong-type arch
- Return the
<gdb:type>object for anunsigned long longtype of architecturearch.
- Scheme Procedure
- arch-int8-type arch
- Return the
<gdb:type>object for anint8type of architecturearch.
- Scheme Procedure
- arch-uint8-type arch
- Return the
<gdb:type>object for auint8type of architecturearch.
- Scheme Procedure
- arch-int16-type arch
- Return the
<gdb:type>object for anint16type of architecturearch.
- Scheme Procedure
- arch-uint16-type arch
- Return the
<gdb:type>object for auint16type of architecturearch.
- Scheme Procedure
- arch-int32-type arch
- Return the
<gdb:type>object for anint32type of architecturearch.
- Scheme Procedure
- arch-uint32-type arch
- Return the
<gdb:type>object for auint32type of architecturearch.
- Scheme Procedure
- arch-int64-type arch
- Return the
<gdb:type>object for anint64type of architecturearch.
- Scheme Procedure
- arch-uint64-type arch
- Return the
<gdb:type>object for auint64type of architecturearch.
Example:
(gdb) guile (type-name (arch-uchar-type (current-arch))) "unsigned char"
Next: Disassembly In Guile, Previous: Lazy Strings In Guile, Up: Guile API [Contents][Index]