| | |
How to get the "Program Counter"
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2008
Posts: 1,433
Reputation:
Solved Threads: 118
0
#2 34 Days Ago
The only way I can think of, is to use some inline assembly and get the value of the PC register, look up the use of asm with C.
I need pageviews! most fun profile ever :)
0
#4 33 Days Ago
•
•
•
•
Thanks for the reply. Yes, I know how to use assembler within C code. But the question is if it is possible to get the program counter of a another program of which the source code should not be altered!
MyProg --->get the program counter --> UnkownProg
Thanks in advance,
svkers
You'll probably have to consult the AMD/Intel manuals for this one...
![]() |
Other Threads in the C Forum
- Previous Thread: HELP! The "if" function doesn't work!!!
- Next Thread: count number of comparisons
| Thread Tools | Search this Thread |
#include * ansi append array arrays asterisks bash binarysearch centimeter changingto char character convert copyimagefile cprogramme creafecopyofanytypeoffileinc database dynamic execv feet fgets file floatingpointvalidation fork framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux hacking histogram ide inches include incrementoperators infiniteloop initialization input interest intmain() iso kernel keyboard kilometer license linked linkedlist linux list lists locate looping lowest matrix meter microsoft number oddnumber opendocumentformat openwebfoundation overwrite owf pdf pointer posix power probleminc process program programming radix recursion recv recvblocked research reversing segmentationfault sequential single socket socketprograming socketprogramming standard strchr string suggestions systemcall test testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi






