Re: [DynInst_API:] ParseAPI and single graphs


Date: Tue, 26 Mar 2013 12:06:36 +0000
From: "E.Robbins" <er209@xxxxxxxxxx>
Subject: Re: [DynInst_API:] ParseAPI and single graphs
If not I guess I just will just have to do a depth first walk on each function entry node to find the connected components.

Cheers,
Ed
________________________________________
From: dyninst-api-bounces@xxxxxxxxxxx [dyninst-api-bounces@xxxxxxxxxxx] on behalf of E.Robbins [er209@xxxxxxxxxx]
Sent: 26 March 2013 11:59
To: dyninst-api@xxxxxxxxxxx
Subject: [DynInst_API:] ParseAPI and single graphs

Hi,

I'm using parseAPI to recover CFGs, but I'd really only like to get a single CFG back for the program starting from the main function. At present I get a bunch of separate graphs back - from frame_dummy, __do_global_ctors_aux etc, all bundled together, and this is a problem as I can't do, e.g. a depth first walk of the nodes when many of them are from different graphs.

I've been looking for a way to separate out the nodes, for example those from different code regions, but this doesn't work as nodes from different code regions can be reached from main. I've also tried calling parse on the codeobject with the address of the main function, but this still gets me lots of extra bits that don't appear reachable from main.

I could probably walk the CFG starting from each function entry and see which nodes are connected and which aren't, but is there an easier way?

Thanks,
Ed
_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
[← Prev in Thread] Current Thread [Next in Thread→]