print call stack in C / C++

Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390
valeca
Posts: 12
Joined: Wed Sep 28, 2022 3:37 am
Skillset: user
Referer: internet

print call stack in C / C++

Postby valeca » Wed Nov 16, 2022 12:41 am

Is there any way to print the call stack in a running process every time a certain function is called?
Thanks.

User avatar
sergeyken
Posts: 458
Joined: Wed Jul 24, 2019 10:12 pm
Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
Referer: Internet search

Re: print call stack in C / C++

Postby sergeyken » Wed Nov 16, 2022 8:31 pm

This cannot be a C/C++ function.

This may be an option which can be provided (or not) by a specific version of C/C++ compiler/debugger (with IDE).
Javas and Pythons come and go, but JCL and SORT stay forever.


  • Similar Topics
    Replies
    Views
    Last post