Re: Extracting symbol info out of processes at runtime

From: John-Mark Gurney (gurney_j_at_efn.org)
Date: 04/29/04

  • Next message: P. de Boer: "Re: Extracting symbol info out of processes at runtime"
    Date: Thu, 29 Apr 2004 09:59:16 -0700
    To: "P. de Boer" <pieter@thelostparadise.com>
    
    

    P. de Boer wrote this message on Wed, Apr 28, 2004 at 17:59 +0200:
    > For a little private project I'm working at, I need to find the address
    > of a function which is inside a shared library of a running process, OR
    > the base address the library is running at (in that case, I can simply
    > do a base_address+known_offset_of_function). The executable nor
    > libraries have their symbols stripped.

    Well, if you don't mind not doing all the code, you could use gcore + gdb
    to extract the function and library... It may not be the most elegant
    solution, but it will work..

    -- 
      John-Mark Gurney				Voice: +1 415 225 5579
         "All that I will do, has been done, All that I have, has not."
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: P. de Boer: "Re: Extracting symbol info out of processes at runtime"

    Relevant Pages

    • Re: Why is libc.so.1 mounted on Solaris 10?
      ... and virtualization and realized an app or OS instance might ... migrate from one host to another. ... what happens when a running process "migrates" to another ... pathnames to libraries? ...
      (comp.unix.solaris)
    • Re: Extracting symbol info out of processes at runtime
      ... >> of a function which is inside a shared library of a running process, ... >> libraries have their symbols stripped. ... I looked at the gdb sources to see if I could get ... a sense of how gdb extracts the data, but couldn't get the hang of it. ...
      (freebsd-hackers)
    • Re: Document Library Security and Workflow
      ... The solution is not elegant. ... The contributors can circumvent SharePoint security by trimming the ... > which are waiting to be approved by analysts. ... > submissions libraries to an approved library or is there a more elegant ...
      (microsoft.public.sharepoint.portalserver)
    • Linking a directory of static libraries
      ... libraries. ... I manually add -l entries in the "Other Linker Flags" field in ... but this doesnt seem to be very elegant. ...
      (comp.sys.mac.programmer.help)
    • Re: jQuerys latest stab at competence
      ... elegant, and its technical deficiencies can be corrected. ... but that you can't clearly identify a difference in quality is very telling on the value of your opinion of the two libraries. ... Andrew Poulos ...
      (comp.lang.javascript)