• Online approaching a field of a global structure via telnet

    From ilan.selig@gmail.com@21:1/5 to All on Thu Oct 4 01:17:13 2018
    Hi
    I have in my code a big global structure with many fields.
    I want to connect the running program via telnet, and online approaching a field of this structure.
    I tried:
    My_Struct.field_1
    and I got: "C Interp: Syntex Error"
    Is there an easy way of doing it? (without approaching directly to the memory trying digging the correct adress).
    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From kuhlenough@gmail.com@21:1/5 to All on Thu Sep 5 12:18:43 2019
    No, the C shell interpreter does not understand struct. Only a full debugger will know that feild_1 in your example in an offset from the pointer My_Struct. If My_Struct is global it will be in the symbol table.
    feild_1 = 12
    printf "%d\n", * (My_Struct+feild_1)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)