1
# This file defines handy gdb macros
2
# To use it, add this line to your ~/.gdbinit or
7
set $tag = ((((unsigned int)($ptr)) & (0x3 << 1)) >> 1)
10
if ((((unsigned int)($ptr)) & 0xe) == 0x6)
11
printf "this is : Integer\n"
13
if ((((unsigned int)($ptr)) & 0x1e) == 0xe)
14
printf "this is : Char\n"
17
if ((((unsigned int)($ptr)) & 0xfe) == 0x1e)
18
printf "this is : SCM_NULL\n"
20
if ((((unsigned int)($ptr)) & 0xfe) == 0x3e)
21
printf "this is : SCM_INVALID\n"
23
if ((((unsigned int)($ptr)) & 0xfe) == 0x5e)
24
printf "this is : SCM_UNBOUND\n"
26
if ((((unsigned int)($ptr)) & 0xfe) == 0x7e)
27
printf "this is : SCM_TRUE\n"
29
if ((((unsigned int)($ptr)) & 0xfe) == 0x9e)
30
printf "this is : SCM_FALSE\n"
32
if ((((unsigned int)($ptr)) & 0xfe) == 0xbe)
33
printf "this is : SCM_EOF\n"
35
if ((((unsigned int)($ptr)) & 0xfe) == 0xde)
36
printf "this is : SCM_UNDEF\n"
43
set $ptr = ((ScmObj)(((unsigned int)($arg0)) & (~0U << 3)))
44
set $car = ((ScmObj)$ptr)->car
50
set $ptr = ((ScmObj)(((unsigned int)($arg0)) & (~0U << 3)))
51
set $cdr = ((ScmObj)$ptr)->cdr