The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
finding stack location in C using program jacques83 High Level Programming 12 10-23-2006 02:06 PM
Register RSA Key fingerprint with JVM 1.4.2 asawari UNIX for Dummies Questions & Answers 0 06-14-2006 06:04 AM
Can't register Not registered Forum Support Area for Unregistered Users & Account Problems 2 01-27-2006 03:46 PM
register unsuccessfully Javier Forum Support Area for Unregistered Users & Account Problems 1 02-18-2005 06:04 PM
Register variables amatsaka High Level Programming 3 10-25-2002 09:07 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-22-2009
amit gangarade amit gangarade is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 3
Question Finding register set being used in program

How can i find( or list) contents of all registers being used by my program?
Is there any system call or library available for this?

At runtime in my c/c++ program. At runtime using may be some assembly hack!!!!!!!!!!!

Last edited by amit gangarade; 10-05-2009 at 01:40 PM..
  #2 (permalink)  
Old 09-22-2009
achenle achenle is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 74
Disassemble it and find all the registers referenced in the binary machine code.
  #3 (permalink)  
Old 09-28-2009
botao's Avatar
botao botao is offline
Registered User
  
 

Join Date: Mar 2006
Location: brazil
Posts: 38
how about gdb ? (and 'info registers' of course)

- if you want the contents of the registers, you'll have to use gdb (the gnu debugger) , and after running your program (for a hitherto uncertain time) ,
use the 'info registers' command to examine the registers' contents ;

- exactly at which point in time the register snapshot will have to be taken,
only you (the author) can tell ;

good luck, and success !

alexandre botao
Alexandre V. R. Botao | Unix, C/C++, Shell, LDAP, SSL/TLS, SSH, Perl, Java, Python, Security, ...
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0