Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If a listener nods his head when you're explaining your program, wake him up.


computers / comp.sys.tandem / Re: INSPECT Question

SubjectAuthor
* INSPECT QuestionRay Jeffery
`- Re: INSPECT QuestionKeith Dick

1
INSPECT Question

<15532f89-11cf-4780-8bfd-bc1678869e90n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=585&group=comp.sys.tandem#585

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:a05:620a:13d0:b0:6ff:afd8:f08e with SMTP id g16-20020a05620a13d000b006ffafd8f08emr2296912qkl.337.1674762935812;
Thu, 26 Jan 2023 11:55:35 -0800 (PST)
X-Received: by 2002:a81:9bd6:0:b0:509:5557:c194 with SMTP id
s205-20020a819bd6000000b005095557c194mr391115ywg.449.1674762935619; Thu, 26
Jan 2023 11:55:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.tandem
Date: Thu, 26 Jan 2023 11:55:35 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=206.201.224.118; posting-account=ENxIRAoAAAAK6O5ZZt0kQoG-ylOmM_9h
NNTP-Posting-Host: 206.201.224.118
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <15532f89-11cf-4780-8bfd-bc1678869e90n@googlegroups.com>
Subject: INSPECT Question
From: rayjeff...@westernunion.com (Ray Jeffery)
Injection-Date: Thu, 26 Jan 2023 19:55:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1483
 by: Ray Jeffery - Thu, 26 Jan 2023 19:55 UTC

Does anyone know how to display the address of a pointer in a TAL program using Inspect? For example, if I have a pointer variable named PTR, and while in Inspect I do "d (@ptr)", the value displayed is the address that PTR points to, not the address of the pointer variable itself. Is it possible to see the address of the pointer variable itself? I am debugging a memory corruption issue, and the ability to do this would help considerably.

Re: INSPECT Question

<3e363b5c-9ef2-47d4-a066-c2127cae2e08n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=590&group=comp.sys.tandem#590

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:a05:6214:15c5:b0:537:4cb5:737 with SMTP id p5-20020a05621415c500b005374cb50737mr1946554qvz.31.1675046238079;
Sun, 29 Jan 2023 18:37:18 -0800 (PST)
X-Received: by 2002:a25:c247:0:b0:80b:6201:bee7 with SMTP id
s68-20020a25c247000000b0080b6201bee7mr2726953ybf.340.1675046237830; Sun, 29
Jan 2023 18:37:17 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.tandem
Date: Sun, 29 Jan 2023 18:37:17 -0800 (PST)
In-Reply-To: <15532f89-11cf-4780-8bfd-bc1678869e90n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=98.42.228.104; posting-account=Lua_ZwoAAADivbVXQF8uKE7dZSUNm9vj
NNTP-Posting-Host: 98.42.228.104
References: <15532f89-11cf-4780-8bfd-bc1678869e90n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e363b5c-9ef2-47d4-a066-c2127cae2e08n@googlegroups.com>
Subject: Re: INSPECT Question
From: rkd...@gmail.com (Keith Dick)
Injection-Date: Mon, 30 Jan 2023 02:37:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3214
 by: Keith Dick - Mon, 30 Jan 2023 02:37 UTC

On Thursday, January 26, 2023 at 11:55:36 AM UTC-8, rayje...@westernunion.com wrote:
> Does anyone know how to display the address of a pointer in a TAL program using Inspect? For example, if I have a pointer variable named PTR, and while in Inspect I do "d (@ptr)", the value displayed is the address that PTR points to, not the address of the pointer variable itself. Is it possible to see the address of the pointer variable itself? I am debugging a memory corruption issue, and the ability to do this would help considerably.

If you can modify the source and recompile the program, you can equivalence a non-pointer to the pointer and display the address of that new variable. For example:

INT .PTR;
INT PTR_X = PTR;

when in Inspect D (@PTR_X) would display the address of PTR, not the address PTR points at.

If you cannot change the source and recompile, you can try using the IDENTIFIER command. That command shows numerous things about the variable you give as its argument. Among them is the memory location of the variable. I don't remember what it shows for global variables, but for variable local to a proc, it shows the location as 'L'+x, where x is the offset from the L register at which the variable is located. There may be a way to display the value of the L register in high level Inspect, but if so, I don't remember it. However, you can switch to low level inspect, display the value of the L register, then return to high level Inspect:

LOW
D L
HIGH

If you are in a subproc, I believe the local variables are given addresses relative to the S register, so you would display the value of the S register instead of the L register when in low-level Inspect.

Memory corruption errors are difficult to track down. Good luck!

(Do you know about memory-change breakpoints? If not, read about them in the description of the BREAK command. They can be helpful for some cases of memory corruption debugging.)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor