Subject: Re: 2000 03 07 make(1) seems to have variable parsing problems
To: None <current-users@netbsd.org, smd@ebone.net>
From: Sean Doran <smd@ebone.net>
List: current-users
Date: 06/07/2000 23:31:47
| #5 0x805a248 in Var_Parse (str=0x808fff0 "", ctxt=0x8061080, err=1,
| lengthPtr=0xbfbfb830, freePtr=0xbfbfb834)
| at /usr/src/usr.bin/make/var.c:2041
2038 cp2 = Var_Parse(cp, ctxt, err, &len, &freeIt);
2039 Buf_AddBytes(buf, strlen(cp2), (Byte *) cp2);
2040 if (freeIt)
2041 free(cp2);
(gdb) print cp
$17 = 0x8079d3a "${FILESNAME:U${F:T}}}"
(gdb) print *ctxt
$19 = {name = 0x8062040 "Command", uname = 0x0, path = 0x0, type = 0,
order = 0, flags = 0, made = UNMADE, unmade = 0, mtime = 0, cmtime = 0,
iParents = 0x8060160, cohorts = 0x8060180, parents = 0x80601a0,
children = 0x80601c0, successors = 0x80601e0, preds = 0x8060200, context = {
bucketPtr = 0x8063040, size = 16, numEntries = 1, mask = 15},
commands = 0x8060220, suffix = 0x0}
(gdb) print err
$20 = 1
(gdb) print len
$21 = 20
(gdb) print freeIt
$22 = 1
(gdb) print cp2
$26 = 0x4810d960 "junk pointer, too low to make sense.\n"
(gdb) print *buf
$24 = {size = 256, left = 256, buffer = 0x8094200 "", inPtr = 0x8094200 "",
outPtr = 0x8094200 ""}