Gdb/Architectures-In-Guile
From Get docs
Next: Disassembly In Guile, Previous: Lazy Strings In Guile, Up: Guile API [Contents][Index]
23.3.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
#t
ifobject
is 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 avoid
type of architecturearch
.
- Scheme Procedure
- arch-char-type arch
- Return the
<gdb:type>
object for achar
type of architecturearch
.
- Scheme Procedure
- arch-short-type arch
- Return the
<gdb:type>
object for ashort
type of architecturearch
.
- Scheme Procedure
- arch-int-type arch
- Return the
<gdb:type>
object for anint
type of architecturearch
.
- Scheme Procedure
- arch-long-type arch
- Return the
<gdb:type>
object for along
type of architecturearch
.
- Scheme Procedure
- arch-schar-type arch
- Return the
<gdb:type>
object for asigned char
type of architecturearch
.
- Scheme Procedure
- arch-uchar-type arch
- Return the
<gdb:type>
object for anunsigned char
type of architecturearch
.
- Scheme Procedure
- arch-ushort-type arch
- Return the
<gdb:type>
object for anunsigned short
type of architecturearch
.
- Scheme Procedure
- arch-uint-type arch
- Return the
<gdb:type>
object for anunsigned int
type of architecturearch
.
- Scheme Procedure
- arch-ulong-type arch
- Return the
<gdb:type>
object for anunsigned long
type of architecturearch
.
- Scheme Procedure
- arch-float-type arch
- Return the
<gdb:type>
object for afloat
type of architecturearch
.
- Scheme Procedure
- arch-double-type arch
- Return the
<gdb:type>
object for adouble
type of architecturearch
.
- Scheme Procedure
- arch-longdouble-type arch
- Return the
<gdb:type>
object for along double
type of architecturearch
.
- Scheme Procedure
- arch-bool-type arch
- Return the
<gdb:type>
object for abool
type of architecturearch
.
- Scheme Procedure
- arch-longlong-type arch
- Return the
<gdb:type>
object for along long
type of architecturearch
.
- Scheme Procedure
- arch-ulonglong-type arch
- Return the
<gdb:type>
object for anunsigned long long
type of architecturearch
.
- Scheme Procedure
- arch-int8-type arch
- Return the
<gdb:type>
object for anint8
type of architecturearch
.
- Scheme Procedure
- arch-uint8-type arch
- Return the
<gdb:type>
object for auint8
type of architecturearch
.
- Scheme Procedure
- arch-int16-type arch
- Return the
<gdb:type>
object for anint16
type of architecturearch
.
- Scheme Procedure
- arch-uint16-type arch
- Return the
<gdb:type>
object for auint16
type of architecturearch
.
- Scheme Procedure
- arch-int32-type arch
- Return the
<gdb:type>
object for anint32
type of architecturearch
.
- Scheme Procedure
- arch-uint32-type arch
- Return the
<gdb:type>
object for auint32
type of architecturearch
.
- Scheme Procedure
- arch-int64-type arch
- Return the
<gdb:type>
object for anint64
type of architecturearch
.
- Scheme Procedure
- arch-uint64-type arch
- Return the
<gdb:type>
object for auint64
type 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]