Re: [DynInst_API:] How to use DyninstAPI to get thread/process call stack in case of a signal delivery

2014-04-17 Thread Ray Chen
On Thu, Apr 17, 2014 at 11:01 AM, JiangJie wrote: > > So why does not dyninstAPI support registering a signal handler callback for > Linux platform? > I'm sorry. I wasn't aware, but this functionality was originally implemented to support a specific windows-only project and never got ported to ou

Re: [DynInst_API:] Several Dyninst build issues

2014-04-17 Thread Jim Galarowicz
Hi Bill, I think I have all the issues addressed based on your suggestions. I ran into another similar (to issue 2) problem today on Pleiades at NASA where the binutils as assembler was getting invoked and cause xerces-c to file to configure. So, I've changed our binutils build to not instal

Re: [DynInst_API:] ParseAPI and PE files

2014-04-17 Thread Bill Williams
On 04/17/2014 11:08 AM, E.Robbins wrote: On 17/04/2014 16:40 PM Bill Williams wrote: Oh. One other thing--if you're trying to analyze PE files on Linux, that's not presently going to work. It might be possible, if you have a Linux system with the necessary Windows headers present and you know of

Re: [DynInst_API:] ParseAPI and PE files

2014-04-17 Thread E.Robbins
On 17/04/2014 16:40 PM Bill Williams wrote: > Oh. One other thing--if you're trying to analyze PE files on Linux, > that's not presently going to work. It might be possible, if you have a > Linux system with the necessary Windows headers present and you know of > a replacement for the debug SDK, to

Re: [DynInst_API:] ParseAPI and PE files

2014-04-17 Thread E.Robbins
Sorry, I just saw Bill's reply. From: E.Robbins Sent: 17 April 2014 16:52 To: dyninst-api@cs.wisc.edu Subject: RE: ParseAPI and PE files To be clear, I don't think this is a problem with the way we are using the ParseAPI, as I've written several programs

Re: [DynInst_API:] ParseAPI and PE files

2014-04-17 Thread E.Robbins
To be clear, I don't think this is a problem with the way we are using the ParseAPI, as I've written several programs that all work fine for ELF binaries, but not PE. The failure is almost immediate when trying to create the SymtabCodeSource object: SymtabCodeSource ∗sts = new SymtabCodeSource

Re: [DynInst_API:] ParseAPI and PE files

2014-04-17 Thread Bill Williams
On 04/16/2014 06:13 AM, E.Robbins wrote: Hi, we are trying to use the ParseAPI with PE files. Even with the simple example in the ParseAPI manual, we get an error: [SymtabCodeSource.C] FATAL: can't create Symtab object for file It appears that the SymtabCodeSource does not like PE files. Is t

Re: [DynInst_API:] How to use DyninstAPI to get thread/process call stack in case of a signal delivery

2014-04-17 Thread JiangJie
Hi Ray, My platform is x86/Linux. Unfortunately, registerSignalHandlerCallback() does not work on X86/Linux platform. Even I have registered such a signal handler callback for SIGSEGV signal, this registered callback function never gets called and executed. In fact, in dyninstapi/src/hybridCall