[Info-vax] C_TEST_ROUTINES.C link problem

eh e.heuser at dvdwrite.de
Wed Dec 14 10:29:27 EST 2022


Hi,

I'm still have problems to reproduce the steps documented in "Debugging 
a Device Driver":

After the connection of the two machine via debug/keep as described,

the "set break" command fails:


DBG> set image SYSTEM_DEBUG
DBG> show module
module name                     symbols   language   size

AUX_TARGET                      no        C         71264
BREAK                           no        BLISS     32684
BUFSRV_TARGET                   no        C         50728
BUGCHECK_CODES                  no        BLISS     27264
CONSOLE                         no        C         21380
CRTLPRINTF                      no        C         30184
C_TEST_ROUTINES                 no        C          5744
DUMPHEX                         no        C         24736
FATAL_EXC                       no        C         31872
HIGH_ADDRESS                    no        C           688
LIB$CALLING_STANDARD            no        BLISS     20004
LIB$CALLING_STANDARD_AUX        no        MACRO64    1680
LIB$EF                          no        AMACRO     1632
LINMGR_TARGET                   no        C        125376
LOW_ADDRESS                     no        C          1004
OBJMGR                          no        C         41700
PLUMGR                          no        C         64948
POOL                            no        C         22952
PROTOMGR_TARGET                 no        C         71100
SCB                             no        BLISS     14656
SOCMGR                          no        C         38872
STEP                            no        BLISS     30676
SYS$DOINIT                      no        AMACRO    94148
TARGET_KERNEL                   yes       C        217612
TMRMGR_TARGET                   no        C         42488
XDELTA                          no        BLISS    242904
XDELTA_ISRS                     no        MACRO64    2428

total modules: 27
DBG> set module c_test_routines
DBG> show module
module name                     symbols   language   size

AUX_TARGET                      no        C         71264
BREAK                           no        BLISS     32684
BUFSRV_TARGET                   no        C         50728
BUGCHECK_CODES                  no        BLISS     27264
CONSOLE                         no        C         21380
CRTLPRINTF                      no        C         30184
C_TEST_ROUTINES                 yes       C          5744
DUMPHEX                         no        C         24736
FATAL_EXC                       no        C         31872
HIGH_ADDRESS                    no        C           688
LIB$CALLING_STANDARD            no        BLISS     20004
LIB$CALLING_STANDARD_AUX        no        MACRO64    1680
LIB$EF                          no        AMACRO     1632
LINMGR_TARGET                   no        C        125376
LOW_ADDRESS                     no        C          1004
OBJMGR                          no        C         41700
PLUMGR                          no        C         64948
POOL                            no        C         22952
PROTOMGR_TARGET                 no        C         71100
SCB                             no        BLISS     14656
SOCMGR                          no        C         38872
STEP                            no        BLISS     30676
SYS$DOINIT                      no        AMACRO    94148
TARGET_KERNEL                   yes       C        217612
TMRMGR_TARGET                   no        C         42488
XDELTA                          no        BLISS    242904
XDELTA_ISRS                     no        MACRO64    2428

total modules: 27
DBG> set lang c
DBG> set source dka0:[vms$common.sys$ldr]c_test_routines.c
DBG> show source
For EDIT:
     source directory list for all modules, match the latest source file 
version
         dka0:[vms$common.sys$ldr]c_test_routines.c
For DISPLAY:
     source directory list for all modules, match the exact source file 
version
         dka0:[vms$common.sys$ldr]c_test_routines.c
DBG> set lang c
DBG> show symbol test_c_code*
routine C_TEST_ROUTINES\test_c_code5
routine C_TEST_ROUTINES\test_c_code4
routine C_TEST_ROUTINES\test_c_code3
routine C_TEST_ROUTINES\test_c_code2
routine C_TEST_ROUTINES\test_c_code
DBG> set break test_c_code
%DEBUG-E-NOACCESSR, no read access to address 0000000000052790
%DEBUG-E-CMDFAILED, the SET BREAK command has failed

Do I need special options in the link step?

I'm helpless!!!

Eberhard

Am 13.12.2022 um 19:37 schrieb vaxinf--- via Info-vax:
> Turns out that the source code was changed between V8.2 and V8.4. If I 
> use the code V8.4 provided, everything compiles and links just fine!!!
>
> Am 13.12.2022 um 18:02 schrieb vaxinf--- via Info-vax:
>> Yes,
>>
>> you're right. On my working Alpha OpenVMS V8.4 the link step is OK, too.
>>
>> So I have to configure out, which part is not installed correctly in 
>> my test V8.2 equipment.
>>
>> Eberhard
>>
>> Am 13.12.2022 um 14:43 schrieb Joukj via Info-vax:
>>> Eberhard Heuser wrote:
>>>> Hi,
>>>>
>>>> I'm starting to understand how OpenVMS I/O takes place and how to 
>>>> debug this.
>>>>
>>>> I have two OpenVMS Alpha virtual machines. They talk to each other 
>>>> through the debugger as described in the manuals (boot -fl 0,8000 
>>>> dka0,ewa0)
>>>>
>>>> There is one routine in the system$examples called C_TEST_ROUTINES.C
>>>> that helps to understand what the kernel does.
>>>>
>>>> Now the link step fails :
>>>> %LINK-W-NUDFSYMS, 1 undefined symbol:
>>>> %LINK-I-UDFSYM,         XDT$FREGSAV
>>>> %LINK-W-USEUNDEF, undefined symbol XDT$FREGSAV referenced
>>>>
>>>> I have no idea how to get rid off this failure.
>>>>
>>>> Any ideas?
>>>
>>> On my (Alpha & Itanium) systems it just links:
>>>
>>> $ cc C_TEST_ROUTINES.C
>>> $ link C_TEST_ROUTINES
>>> $
>>>
>>> Did you use any qualifiers on the cc and/or link command?
>>>
>>>          Jouk
>>> _______________________________________________
>>> Info-vax mailing list
>>> Info-vax at rbnsn.com
>>> http://rbnsn.com/mailman/listinfo/info-vax_rbnsn.com
>>>
>>
>>
>> _______________________________________________
>> Info-vax mailing list
>> Info-vax at rbnsn.com
>> http://rbnsn.com/mailman/listinfo/info-vax_rbnsn.com
>>
>
>
> _______________________________________________
> Info-vax mailing list
> Info-vax at rbnsn.com
> http://rbnsn.com/mailman/listinfo/info-vax_rbnsn.com
>


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





More information about the Info-vax mailing list