Thread View: comp.unix.wizards
1 messages
1 total messages
Started by Douglas A. Balog
Tue, 26 Jan 1993 20:05
Accessing the text segment of a process.
Author: Douglas A. Balog
Date: Tue, 26 Jan 1993 20:05
Date: Tue, 26 Jan 1993 20:05
17 lines
1167 bytes
1167 bytes
Hi, I want to have a subroutine that looks at the text segment of a process and builds a table of what variables and functions are there. So that later on in the program I can call a function or reference a variable by its name. Kind of like asking a debugger to run a function. I know of a way to compile the program, run a perl script which calls nm and then recompile the program. But every time I recompile, I have to do it twice. I also know of a way to popen(nm argv[0]) and find the info that way. I really want to look at the text segment and figure this out. Is this possible ? Thanks for any info, Doug
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads