Just a sample of the Echomail archive
COMPOSVM:
[ << oldest | < older | list | newer > | newest >> ]
|  Message 263,339 of 264,034  |
|  =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Craig A. Berry  |
|  Re: cma$tis_errno_get_addr  |
|  15 Sep 25 22:56:04  |
 From: arne@vajhoej.dk On 9/15/2025 10:39 PM, Craig A. Berry wrote: > On 9/15/25 9:16 PM, Arne Vajhøj wrote: >> On 9/15/2025 10:15 PM, Arne Vajhøj wrote: >>> On 9/15/2025 9:49 PM, John Reagan wrote: >>>> On 9/15/2025 9:20 PM, Arne Vajhøj wrote: >>>>> Anybody got a description of cma$tis_errno_get_addr? >>> >>>> Returns the address of the thread's errno >>> >>> That was what I expected. >>> >>> But I am having problems. >>> >>> It actually works in C. >>> >>> But when I call it in Pascal, then I get the correct >>> address but the value at the address is not correct. >> >> Calling decc$crtl_init does not solve the problem. >> > Never tried it from Pascal. Since errno is a CRTL thing, it's not clear > to me that it makes any sense to do so, but if you're trying to debug a > library called from the Pascal code, maybe. Pascal calling C++ library. > In any case the following > are the notes I made for myself a long time ago: > > Get errno from VMS debugger: > > set image CMA$TIS_SHR > set radix hexadecimal > call CMA$TIS_ERRNO_GET_ADDR > ! > ! The above returns an address > ! > examine/long/decimal |
[ << oldest | < older | list | newer > | newest >> ]
(c) 1994, bbs@darkrealms.ca