This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
how to access PC
- From: Mohammed Tajuddin <taj dot subhani at oracle dot com>
- To: linuxppc64-dev at lists dot linuxppc dot org
- Cc: amodra at bigpond dot net dot au, gcc at gcc dot gnu dot org
- Date: Mon, 08 Sep 2003 17:03:25 -0700
- Subject: how to access PC
- References: <OF12786557.32B9372E-ON86256D91.0052BC58-86256D91.00531E3A@us.ibm.com> <20030829162103.A29782@infradead.org>
Hello,
Has anyone tried accessing the program counter on linux powerpc64? I
notice struct pt_regs defined in ptrace.h, does not contain any place
holder for program counter which is defined on mac-osx for example.
Basically I was trying to access PC, PS from within a program.
Appreciate your feedback.
Regards,
TAJ