dyninst.git
8 years agoClean warnings in StackwalkerAPI
legendre1 [Fri, 24 Jun 2011 18:21:43 +0000 (11:21 -0700)]
Clean warnings in StackwalkerAPI

8 years agoFix StackwalkerAPI on Cray build
legendre1 [Fri, 24 Jun 2011 18:21:25 +0000 (11:21 -0700)]
Fix StackwalkerAPI on Cray build

8 years agoFix compilation error for patchapi testsuite.
Wenbin Fang [Fri, 24 Jun 2011 15:55:45 +0000 (10:55 -0500)]
Fix compilation error for patchapi testsuite.

8 years agoGet rid of block_instance::srcs_ and block_instance:trgs_ .
Wenbin Fang [Fri, 24 Jun 2011 04:40:13 +0000 (23:40 -0500)]
Get rid of block_instance::srcs_ and block_instance:trgs_ .

8 years agoGet rid of func_instance::callBlocks() and func_instance::exitBlocks().
Wenbin Fang [Fri, 24 Jun 2011 03:55:14 +0000 (22:55 -0500)]
Get rid of func_instance::callBlocks() and func_instance::exitBlocks().

8 years agoGet rid of func_instance::blocks_ and func_instance::blocks(), which is redundent...
Wenbin Fang [Fri, 24 Jun 2011 03:05:38 +0000 (22:05 -0500)]
Get rid of func_instance::blocks_ and func_instance::blocks(), which is redundent from
 PatchAPI::PatchFunction::all_blocks_ and PatchAPI::PatchFunction::getAllBlocks().

8 years agoChange PatchAPI::PatchFunction::blocklist type to blockset.
Wenbin Fang [Fri, 24 Jun 2011 00:57:01 +0000 (19:57 -0500)]
Change PatchAPI::PatchFunction::blocklist type to blockset.

8 years agoAdd a method AddressSpace::addMappedObject(mapped_object* obj),
Wenbin Fang [Fri, 24 Jun 2011 00:24:13 +0000 (19:24 -0500)]
Add a method AddressSpace::addMappedObject(mapped_object* obj),
which adds the mapped_object to the duplicate bookkeeping structure
in AddressSpace and PatchAPI::AddrSpace.

8 years agoAdding translation for PPC relocations
Madhavi Krishnan [Thu, 23 Jun 2011 19:22:35 +0000 (14:22 -0500)]
Adding translation for PPC relocations

Added PPC32 relocation translation for rewriting
statically linked binaries.

8 years agoAdd testsuite for PatchAPI and interface for transactional semantics in PatchAPI.
Wenbin Fang [Tue, 21 Jun 2011 19:17:37 +0000 (14:17 -0500)]
Add testsuite for PatchAPI and interface for transactional semantics in PatchAPI.

What's new:
  * Testsuite for PatchAPI, which only verifies the bookkeeping structures, and
    uses dummy snippets. See testsuite/src/patchapi subdirectory that includes
    the following test cases -
    - patch1_1: snippet insertion at different points.
    - patch1_2: snippet insertion order.
    - patch2_1: snippet removal
    - patch3_1: function call replacement / removal
    - patch3_2: function replacement
  * PatchAPI support for transactional semantics of instrumentation/code
    modification, which provides Command abstraction with a run method and an
    undo method. See patchAPI/src/Command.C and patchAPI/h/Command.h.
    - For PatchAPI, there are default implementations of some commands,
      including PushFrontCommand, RemoveSnippetCommand, ReplaceCallCommand and
      so forth. See patchAPI/src/Command.C.
    - For Dyninst integration, the DynInstrumenter is a special command that is
      responsible for code relocation and generation. For now, DynInstrumenter
      invokes AddressSpace::relocate(), and if it fails, it simply exits,
      without undo.

8 years agoMake the compilation of dyninst and testsuite work on Windows XP.
Windows User [Tue, 21 Jun 2011 18:26:27 +0000 (13:26 -0500)]
Make the compilation of dyninst and testsuite work on Windows XP.

8 years agoAdd missing patchapi_group_test_group.c file on different platforms.
wenbin [Mon, 20 Jun 2011 22:18:57 +0000 (17:18 -0500)]
Add missing patchapi_group_test_group.c file on different platforms.

8 years agoFix the testsuite/make.module.tmpl file, which caused the compilation to fail under...
Wenbin Fang [Mon, 20 Jun 2011 22:10:13 +0000 (17:10 -0500)]
Fix the testsuite/make.module.tmpl file, which caused the compilation to fail under platforms other than x86-64

8 years agoMerge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge
Wenbin Fang [Mon, 20 Jun 2011 00:33:12 +0000 (19:33 -0500)]
Merge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

8 years agoFinish patch3_2.
Wenbin Fang [Sun, 19 Jun 2011 23:59:09 +0000 (18:59 -0500)]
Finish patch3_2.

TODO:
  finish the undo part of DynInstrumenter.

8 years agoFinish Patch3_1.
Wenbin Fang [Sun, 19 Jun 2011 20:57:33 +0000 (15:57 -0500)]
Finish Patch3_1.

8 years agoUnqualified std::pair breaks builds.
Nathan Rosenblum [Sat, 18 Jun 2011 15:04:09 +0000 (10:04 -0500)]
Unqualified std::pair breaks builds.

Also incorrect LHS type for fgetc() call breaks EOF test.

8 years agoFinish patch2_1.
Wenbin Fang [Fri, 17 Jun 2011 17:31:33 +0000 (12:31 -0500)]
Finish patch2_1.

8 years agoFinish patch1_2: snippet insertion order.
Wenbin Fang [Fri, 17 Jun 2011 05:25:53 +0000 (00:25 -0500)]
Finish patch1_2: snippet insertion order.

8 years agoComplete patch1_1: testing patchapi's snippet insertion functionality.
Wenbin Fang [Thu, 16 Jun 2011 22:53:47 +0000 (17:53 -0500)]
Complete patch1_1: testing patchapi's snippet insertion functionality.

8 years agoTransactional semantics for dyninst public interface is done.
Wenbin Fang [Thu, 16 Jun 2011 05:17:38 +0000 (00:17 -0500)]
Transactional semantics for dyninst public interface is done.
And, copy the mutatee from original PatchAPI testsuite in PatchAPI branch.

TODO:
  - testsuite for PatchAPI (mutator side)
  - transactional semantics for dyninst instrumentation engine.

8 years agoDelete SnippetRep class, shift the functionality of SnippetRep to Snippet.
Wenbin Fang [Tue, 14 Jun 2011 21:40:33 +0000 (16:40 -0500)]
Delete SnippetRep class, shift the functionality of SnippetRep to Snippet.
And, make the compilation of  other patchapi test cases works.

TODO:
1. Test cases for patchapi.
2. Transactional semantics integration on the dyninst side.

8 years agoMerge branch 'dyninst_patchapi_merge' of git.dyninst.org:/pub/dyninst into dyninst_pa...
Wenbin Fang [Mon, 13 Jun 2011 20:15:35 +0000 (15:15 -0500)]
Merge branch 'dyninst_patchapi_merge' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

8 years agoComplete various Commands on PatchAPI side: PushBackCommand, PushFrontCommand, ...
Wenbin Fang [Mon, 13 Jun 2011 20:09:49 +0000 (15:09 -0500)]
Complete various Commands on PatchAPI side: PushBackCommand, PushFrontCommand, ...

TODO:
  - testsuite for patchapi
  - integrate the transactional semantics to dyninst

8 years agoFinish patch4_1 test case for PatchAPi, to test transactional semantics.
Wenbin Fang [Sun, 12 Jun 2011 23:04:05 +0000 (18:04 -0500)]
Finish patch4_1 test case for PatchAPi, to test transactional semantics.

8 years agoInitial implementation of Command and the testsuite of PatchAPI.
Wenbin Fang [Sat, 11 Jun 2011 19:05:51 +0000 (14:05 -0500)]
Initial implementation of Command and the testsuite of PatchAPI.

TODO:
  - test case for Command
  - integrate Instrumenter into Command
  - replace all public interface w/ Command

8 years agoModified dyner to run on top of dynC.
David Aeschlimann [Fri, 10 Jun 2011 18:33:15 +0000 (13:33 -0500)]
Modified dyner to run on top of dynC.

8 years agoManual bugfixes.
David Aeschlimann [Fri, 10 Jun 2011 18:31:21 +0000 (13:31 -0500)]
Manual bugfixes.

8 years agoModified the dynC interface to remove the concept of snippet names.
David Aeschlimann [Fri, 10 Jun 2011 18:27:55 +0000 (13:27 -0500)]
Modified the dynC interface to remove the concept of snippet names.
Snippets with common variable scopes are now passed as a vector of points.
The method returns a map of points to BPatch_snippets.

8 years agoComplete various Commands on PatchAPI side: PushBackCommand, PushFrontCommand, ...
Wenbin Fang [Mon, 13 Jun 2011 20:09:49 +0000 (15:09 -0500)]
Complete various Commands on PatchAPI side: PushBackCommand, PushFrontCommand, ...

TODO:
  - testsuite for patchapi
  - integrate the transactional semantics to dyninst

8 years agoFinish patch4_1 test case for PatchAPi, to test transactional semantics.
Wenbin Fang [Sun, 12 Jun 2011 23:04:05 +0000 (18:04 -0500)]
Finish patch4_1 test case for PatchAPi, to test transactional semantics.

8 years agoMerge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge
Wenbin Fang [Sat, 11 Jun 2011 19:08:20 +0000 (14:08 -0500)]
Merge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

8 years agoInitial implementation of Command and the testsuite of PatchAPI.
Wenbin Fang [Sat, 11 Jun 2011 19:05:51 +0000 (14:05 -0500)]
Initial implementation of Command and the testsuite of PatchAPI.

TODO:
  - test case for Command
  - integrate Instrumenter into Command
  - replace all public interface w/ Command

8 years agoMerge branch 'new_interface'
David Aeschlimann [Fri, 10 Jun 2011 18:38:53 +0000 (13:38 -0500)]
Merge branch 'new_interface'

8 years agoModified dyner to run on top of dynC.
David Aeschlimann [Fri, 10 Jun 2011 18:33:15 +0000 (13:33 -0500)]
Modified dyner to run on top of dynC.

8 years agoManual bugfixes.
David Aeschlimann [Fri, 10 Jun 2011 18:31:21 +0000 (13:31 -0500)]
Manual bugfixes.

8 years agoModified the dynC interface to remove the concept of snippet names.
David Aeschlimann [Fri, 10 Jun 2011 18:27:55 +0000 (13:27 -0500)]
Modified the dynC interface to remove the concept of snippet names.
Snippets with common variable scopes are now passed as a vector of points.
The method returns a map of points to BPatch_snippets.

8 years agoInitial commit of PatchAPI and Integration of PatchAPI into Dyninst.
Wenbin Fang [Mon, 6 Jun 2011 23:53:31 +0000 (18:53 -0500)]
Initial commit of PatchAPI and Integration of PatchAPI into Dyninst.

What's new:
  * Initial commit of PatchAPI into master branch. See patchAPI subdirectory.
  * Integration of PatchAPI into Dyninst.
    - instPoint becomes a subclass of PatchAPI::Point
    - mapped_object becomes a subclass of PatchAPI::PatchObject
    - func_instance becomes a subclass of PatchAPI::PatchFunction
    - block_instance becomes a subclass of PatchAPI::PatchBlock
    - edge_instance becomes a subclass of PatchAPI::PatchEdge
    - The implementation of point finding in Dyninst relies on PatchAPI's
      filter-based point query interface, which is PatchAPI::PatchMgr::findPoint
    - Dyninst uses PatchAPI's bookkeeping structures to keep track inserted
      snippets, replaced functions, replaced function calls, etc.
    - PatchAPI Pluggins for Dyninst can be found in dyninstAPI/src/Relocation,
      with prefix "Dyn" (e.g., DynInstrumenter).

8 years agoFix the link error of patchAPI by modifying patchAPI/make.module.tmpl.
Wenbin Fang [Mon, 6 Jun 2011 23:10:01 +0000 (18:10 -0500)]
Fix the link error of patchAPI by modifying  patchAPI/make.module.tmpl.

8 years agoCode clean up before mering to master branch.
Wenbin Fang [Mon, 6 Jun 2011 21:54:40 +0000 (16:54 -0500)]
Code clean up before mering to master branch.

8 years agoMerge branch 'dyninst_patchapi_merge' of wenbin@feta:~/devel/dyninst/dyninst into...
Windows User [Fri, 3 Jun 2011 20:34:39 +0000 (15:34 -0500)]
Merge branch 'dyninst_patchapi_merge' of wenbin@feta:~/devel/dyninst/dyninst into dyninst_patchapi_merge

8 years agoAfter tested under windows.
Windows User [Fri, 3 Jun 2011 20:23:32 +0000 (15:23 -0500)]
After tested under windows.

8 years agoAfter tested under windows.
Windows User [Fri, 3 Jun 2011 20:23:32 +0000 (15:23 -0500)]
After tested under windows.

8 years agoModified FreeBSD makefile for dyninstAPI
Wenbin Fang [Fri, 3 Jun 2011 01:57:54 +0000 (20:57 -0500)]
Modified FreeBSD makefile for dyninstAPI

8 years agoFix failed test2_7 in ppc64_linux.
wenbin [Thu, 2 Jun 2011 06:28:16 +0000 (01:28 -0500)]
Fix failed test2_7 in ppc64_linux.

8 years agoAdd Makefiles for multiple platforms of PatchAPI
Wenbin Fang [Thu, 2 Jun 2011 05:21:44 +0000 (00:21 -0500)]
Add Makefiles for multiple platforms of PatchAPI

8 years agoAdd missed make files for ppc32 and ppc64
wenbin [Thu, 2 Jun 2011 05:03:52 +0000 (00:03 -0500)]
Add missed make files for ppc32 and ppc64

8 years agoClean up redundant code in PatchObject.
wenbin [Thu, 2 Jun 2011 04:50:28 +0000 (23:50 -0500)]
Clean up redundant code in PatchObject.

8 years agoMake patchAPI work on ppc-32-linux.
wenbin [Thu, 2 Jun 2011 04:17:53 +0000 (23:17 -0500)]
Make patchAPI work on ppc-32-linux.

One test case doesn't work:
  - process mode: test_pt_ls

8 years agoAdd getFunctions method to PatchBlock.
Wenbin Fang [Wed, 1 Jun 2011 20:54:20 +0000 (15:54 -0500)]
Add getFunctions method to PatchBlock.

8 years agoCheckpoint before doing transactional semantics.
Wenbin Fang [Wed, 1 Jun 2011 19:37:14 +0000 (14:37 -0500)]
Checkpoint before doing transactional semantics.

8 years agoCheckpoint before cleaning modify function call stuffs.
Wenbin Fang [Wed, 1 Jun 2011 19:12:29 +0000 (14:12 -0500)]
Checkpoint before cleaning modify function call stuffs.

8 years agoCheckpoint before cleaning up function replacement stuffs in AddressSpace class.
Wenbin Fang [Wed, 1 Jun 2011 18:08:13 +0000 (13:08 -0500)]
Checkpoint before cleaning up function replacement stuffs in AddressSpace class.

8 years agoClean up the PatchAPI's bookkeeping structure for code modification thing.
Wenbin Fang [Tue, 31 May 2011 23:29:02 +0000 (18:29 -0500)]
Clean up the PatchAPI's bookkeeping structure for code modification thing.
Will move those structures to PatchAPI::Instrumenter class.

8 years agoAdd missed files ...
Wenbin Fang [Tue, 31 May 2011 22:59:10 +0000 (17:59 -0500)]
Add missed files ...

8 years agoMerge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge
Wenbin Fang [Tue, 31 May 2011 22:58:45 +0000 (17:58 -0500)]
Merge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

Conflicts:
dyninstAPI/src/addressSpace.h
dyninstAPI/src/block.C
dyninstAPI/src/block.h
dyninstAPI/src/edge.C
dyninstAPI/src/function.C
dyninstAPI/src/function.h
dyninstAPI/src/mapped_object.C

8 years agoRe-enable support for adding debugging symbols to rewritten binaries.
Andrew Bernat [Tue, 31 May 2011 21:24:04 +0000 (16:24 -0500)]
Re-enable support for adding debugging symbols to rewritten binaries.

8 years agoMove snippet insertion/removal bookkeeping information to patchAPI side.
Wenbin Fang [Tue, 31 May 2011 20:27:49 +0000 (15:27 -0500)]
Move snippet insertion/removal bookkeeping information to patchAPI side.

8 years agoPrototype of ParseAPI modification callback system; still needs work but compiles...
Andrew Bernat [Tue, 31 May 2011 15:36:54 +0000 (10:36 -0500)]
Prototype of ParseAPI modification callback system; still needs work but compiles and is structured correctly.

8 years agoAdd missed file CFGMaker.h
Wenbin Fang [Tue, 31 May 2011 06:34:36 +0000 (01:34 -0500)]
Add missed file CFGMaker.h

8 years agoClean up PatchAPI code, and pass test1_22.
Wenbin Fang [Tue, 31 May 2011 03:12:25 +0000 (22:12 -0500)]
Clean up PatchAPI code, and pass test1_22.

8 years agoIntegrate AddressSpace::relocate to PatchAPI.
Wenbin Fang [Mon, 30 May 2011 21:04:02 +0000 (16:04 -0500)]
Integrate AddressSpace::relocate to PatchAPI.

Still one test case fails: test1_22
  - fail on mutatee
  - problematic code: in BPatch_binaryEdit relocate() invocation.

8 years agoedgePoint is done .
Wenbin Fang [Sat, 28 May 2011 07:20:19 +0000 (02:20 -0500)]
edgePoint is done .

8 years agoPreInsn and PostInsn are done in func_instance.
Wenbin Fang [Sat, 28 May 2011 06:35:29 +0000 (01:35 -0500)]
PreInsn and PostInsn are done in func_instance.

8 years agopreCall and postCall, blockEntry and blockExit are done in func_instance.
Wenbin Fang [Fri, 27 May 2011 22:23:25 +0000 (17:23 -0500)]
preCall and postCall, blockEntry and blockExit are done in func_instance.

8 years agoFinish funcEntryPoint and funcExitPoint in func_instance.
Wenbin Fang [Fri, 27 May 2011 20:52:50 +0000 (15:52 -0500)]
Finish funcEntryPoint and funcExitPoint in func_instance.

8 years agoMerge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge
Wenbin Fang [Fri, 27 May 2011 19:08:43 +0000 (14:08 -0500)]
Merge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

8 years agoCommit: test1_37 fix
Madhavi Krishnan [Fri, 27 May 2011 18:40:02 +0000 (13:40 -0500)]
Commit: test1_37 fix

There were two problems with test1_37
1) The mutator was not checking if a variable is NULL.
Hence, the test crashes. This is fixed by adding an
check.
2) The mutatee uses static declaration for global
variables. bgxlc doesn't create a symbol with name
for static variables, since static variables
cannot be not accessed outside the file. This is a
fundamental problem that Dyninst cannot fix, if
the compiler decides to ignore the variable name.
The current fix is to make the global variable not
static.

8 years agoMerge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge
Wenbin Fang [Fri, 27 May 2011 06:50:18 +0000 (01:50 -0500)]
Merge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

8 years agoCheckpoint before moving Bpatch_point to Patchapi::findpoint system.
Wenbin Fang [Fri, 27 May 2011 06:48:53 +0000 (01:48 -0500)]
Checkpoint before moving Bpatch_point to Patchapi::findpoint system.

8 years agoEnabling static link mode bgxlc/bgxlc++ for bluegene rewriter
Madhavi Krishnan [Fri, 27 May 2011 03:03:48 +0000 (22:03 -0500)]
Enabling static link mode bgxlc/bgxlc++ for bluegene rewriter

8 years agoMerge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge
Wenbin Fang [Thu, 26 May 2011 06:53:24 +0000 (01:53 -0500)]
Merge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

8 years agoMerge branch 'dyninst_patchapi_merge' of git.dyninst.org:/pub/dyninst into dyninst_pa...
Wenbin Fang [Thu, 26 May 2011 06:52:22 +0000 (01:52 -0500)]
Merge branch 'dyninst_patchapi_merge' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

Conflicts:
dyninstAPI/src/addressSpace.h
dyninstAPI/src/function.C

8 years agoPatchAPI initialization works in binary rewriter
Wenbin Fang [Thu, 26 May 2011 06:44:26 +0000 (01:44 -0500)]
PatchAPI initialization works in binary rewriter

8 years agoLoad library works for process.
Wenbin Fang [Thu, 26 May 2011 05:34:32 +0000 (00:34 -0500)]
Load library works for process.

8 years agoDo PatchAPI initialization properly for process mode (normal and fork).
Wenbin Fang [Thu, 26 May 2011 03:12:44 +0000 (22:12 -0500)]
Do PatchAPI initialization properly for process mode (normal and fork).

8 years agoDo PatchAPI initialization properly for process mode (normal and fork).
Wenbin Fang [Thu, 26 May 2011 03:12:44 +0000 (22:12 -0500)]
Do PatchAPI initialization properly for process mode (normal and fork).

8 years agoStatic rewriter for ppc32
Madhavi Krishnan [Thu, 26 May 2011 02:31:56 +0000 (21:31 -0500)]
Static rewriter for ppc32

Initial commit for rewriting statically linked
binaries on ppc32.

Missing features:
1) Support for the entire set of PPC relocation types
2) Support for updating and adding TLS

8 years agoChange interface of PointMaker
Wenbin Fang [Wed, 25 May 2011 23:44:47 +0000 (18:44 -0500)]
Change interface of PointMaker

8 years agoppc32 testsuite changes for static rewriter
Madhavi Krishnan [Wed, 25 May 2011 20:23:57 +0000 (15:23 -0500)]
ppc32 testsuite changes for static rewriter

Adding support for running rewriter tests for
statically linked binaries on ppc32_linux.

8 years agoUpdate ppc32_bgp Makefile
Madhavi Krishnan [Wed, 25 May 2011 19:25:20 +0000 (14:25 -0500)]
Update ppc32_bgp Makefile

.. to reflect Drew's recent commit.

8 years agoconsolidate edge interface.
Wenbin Fang [Wed, 25 May 2011 05:06:46 +0000 (00:06 -0500)]
consolidate edge interface.

TODO:
 - make instPoint work on PatchAPI::Point
 - make AddressSpace::relocateInt work in PatchAPI

8 years agoconsolidate block interface.
Wenbin Fang [Wed, 25 May 2011 05:00:00 +0000 (00:00 -0500)]
consolidate block interface.

8 years agoA checkpoint before consolidating block interface.
Wenbin Fang [Wed, 25 May 2011 03:19:08 +0000 (22:19 -0500)]
A checkpoint before consolidating block interface.

8 years agoconsolidate function interface
Wenbin Fang [Wed, 25 May 2011 01:50:51 +0000 (20:50 -0500)]
consolidate function interface

8 years agoConsolidate edges_.
Wenbin Fang [Tue, 24 May 2011 22:23:45 +0000 (17:23 -0500)]
Consolidate edges_.

TODO:
 - Consolidate function_instance and PatchAPI::PatchFunction interface
 - Consolidate block_instance and PatchAPI::PatchBlock interface
 - Consolidate edge_instance and PatchAPI::PatchEdge interface

8 years agoConsolidate blocks_ on both dyninst and patchapi sides
Wenbin Fang [Tue, 24 May 2011 07:36:16 +0000 (02:36 -0500)]
Consolidate blocks_ on both dyninst and patchapi sides

TODO:
  - consolidate edges_

8 years agoCheckpoint before cleaning up blocks_ stuff in mapped_object.
Wenbin Fang [Tue, 24 May 2011 05:33:24 +0000 (00:33 -0500)]
Checkpoint before cleaning up blocks_ stuff in mapped_object.

8 years agoMerge changes from master to function.h
Wenbin Fang [Tue, 24 May 2011 04:38:46 +0000 (23:38 -0500)]
Merge changes from master to function.h

8 years agoMerge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge
Wenbin Fang [Tue, 24 May 2011 04:38:04 +0000 (23:38 -0500)]
Merge branch 'master' of git.dyninst.org:/pub/dyninst into dyninst_patchapi_merge

Conflicts:
dyninstAPI/src/function.h

8 years agoAdd shortcut for type casting: SCAST_xx
Wenbin Fang [Tue, 24 May 2011 04:04:17 +0000 (23:04 -0500)]
Add shortcut for type casting: SCAST_xx

8 years agoFix test1_38.
Wenbin Fang [Tue, 24 May 2011 01:28:15 +0000 (20:28 -0500)]
Fix test1_38.

Cause of the failure:
  in mapped_object::findFuncByEntry, it may pass NULL to mapped_object::findFunction, which causes segfault.

Solution:
  make sure the argument passed to findFunction is non-NULL.

8 years agoConsolidate funcs_ in both patchapi and dyninst sides, but introduce the failure...
Wenbin Fang [Tue, 24 May 2011 00:01:23 +0000 (19:01 -0500)]
Consolidate funcs_ in both patchapi and dyninst sides, but introduce the failure of test1_38, on the function call to block_instance::callee()

8 years agoMerge branch 'master' of cumin.cs.wisc.edu:/p/paradyn/development/bernat/builds/dyninst
Andrew Bernat [Mon, 23 May 2011 21:46:09 +0000 (16:46 -0500)]
Merge branch 'master' of cumin.cs.wisc.edu:/p/paradyn/development/bernat/builds/dyninst

8 years agoFix PPC stackwalking bug
Andrew Bernat [Mon, 23 May 2011 21:45:46 +0000 (16:45 -0500)]
Fix PPC stackwalking bug

8 years agoFix pgCC relocation bug
Andrew Bernat [Mon, 23 May 2011 21:30:39 +0000 (16:30 -0500)]
Fix pgCC relocation bug

8 years agoIntegrate patchmgr into BPatch_process.
Wenbin Fang [Mon, 23 May 2011 05:56:18 +0000 (00:56 -0500)]
Integrate patchmgr into BPatch_process.

TODO:
 - DynPointMaker
 - DynCFGMaker
 - Cleanup CFG stuffs
 - Cleanup Point stuffs

8 years agoCheckpoint for integrating PatchMgr into dyninst
Wenbin Fang [Sun, 22 May 2011 22:38:42 +0000 (17:38 -0500)]
Checkpoint for integrating PatchMgr into dyninst

8 years agoChange PointFactory to PointMaker
Wenbin Fang [Sun, 22 May 2011 21:39:07 +0000 (16:39 -0500)]
Change PointFactory to PointMaker

8 years agoSmall fix of PatchObject::getFunc
Wenbin Fang [Sun, 22 May 2011 20:59:47 +0000 (15:59 -0500)]
Small fix of PatchObject::getFunc