identifying symbols

Gokul B Kandiraju <kandiraj@cse.psu.edu>
26 Jan 2001 17:05:48 -0500

          From comp.compilers

Related articles
Stack based-Register Based vinoth@india.ti.com (Vinoth Kumar) (2001-01-19)
Re: Stack based-Register Based vbdis@aol.com (2001-01-20)
identifying symbols kandiraj@cse.psu.edu (Gokul B Kandiraju) (2001-01-26)
| List of all articles for this month |
From: Gokul B Kandiraju <kandiraj@cse.psu.edu>
Newsgroups: comp.compilers
Date: 26 Jan 2001 17:05:48 -0500
Organization: Deparment of Computer Science and Engineering, The Pennsylvania State University
References: 01-01-124 01-01-137
Keywords: debug, question, comment
Posted-Date: 26 Jan 2001 17:05:47 EST



  I have a question regarding identifying symbols and thanks in advance for
your help.


    I pass an executable file as an argument to a simulator[SimpleScalar]
    which runs it instruction by instruction. When an event
    happens(eg. cache miss), I want to know which function of the original
    c code (i;e my program) is being executed at that point (binding an
adress to a symbol ?)
    there is a symbol table and also an interface to bind address to a
    symbol but the problem is the address is being bound to a kernel
  function(for eg. __do_global..) and not the function in my benchmark.


    Is there anyway in which I can get the name of my function at this point
    ? - also, can someone give me a neat pointer to symbol table
construction - i'm not sure if every kernel symbol required by the program
is stored in sym tab - i want to know what exactly goes in constructing a
  symtab.
  Thanks alot for your help


  -gokul--
  PhD Student, PennState.
[I suspect that if you're in the kernel, you can find the the saved user
program counter without too much trouble. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.