dyninst.git
12 years agoThese are the windows fixes that I previously alluded to, combined with
jaw [Fri, 9 May 2008 00:25:37 +0000 (00:25 +0000)]
These are the windows fixes that I previously alluded to, combined with
smallish fixes for a couple build problems introduced by recent commits on
the other platforms (assorted, but small).

12 years agoMerging release branch changes into cvs head
legendre [Thu, 8 May 2008 21:52:05 +0000 (21:52 +0000)]
Merging release branch changes into cvs head

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:55:41 +0000 (20:55 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The new test suite supports pluggable modules for different output methods.
The two modules currently available are StdOutputDriver which has the same
behavior as before, routing test output to log files or stdout/stderr, and
DatabaseOutputDriver which sends test output directly to our test history
database.

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:59 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Updating the new test suite

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:58 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New makefile with targets for creating and cleaning generated makefiles and
test lists

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:52 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AMD64 Linux

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:46 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Solaris 2.9

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:40 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Solaris 2.8

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:34 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
32bit AIX

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:28 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PPC32 Linux

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:22 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IA64 Linux

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:16 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
i386 Linux, updating files and removing copies of specification files from
the platform directory.  We no longer need them here.

12 years agoDon't build test suites by default; only install newtestsuite when it's
cooksey [Thu, 8 May 2008 20:53:14 +0000 (20:53 +0000)]
Don't build test suites by default; only install newtestsuite when it's
explicitly requested.
Update the new test suite with support for more platforms, and preliminary
support for writing directly to the test history database from the test
driver.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

12 years agoThis commit fixes Wisconsin build errors for CVSHEAD on solaris. A
roundy [Wed, 7 May 2008 19:46:37 +0000 (19:46 +0000)]
This commit fixes Wisconsin build errors for CVSHEAD on solaris.  A
evious commit of mine fixed a build error by adding an include path
 common/make.module.tmpl, but I should have used the variable
IBXML2_INC instead.  Subsequent changes to common brought this
oblem back up.  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
changed include to use $LIBXML2_INC

12 years agoModify isCode & add a new flag to test isLoadable
giri [Thu, 1 May 2008 21:53:37 +0000 (21:53 +0000)]
Modify isCode & add a new flag to test isLoadable

12 years agomake variable and parameter lists annotations to class Symbol instead of class members
jaw [Sun, 27 Apr 2008 06:54:22 +0000 (06:54 +0000)]
make variable and parameter lists annotations to class Symbol instead of class members

12 years agobugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
roundy [Fri, 25 Apr 2008 20:51:56 +0000 (20:51 +0000)]
bugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bugfix to addFunctionStub

12 years agobugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
roundy [Fri, 25 Apr 2008 20:51:55 +0000 (20:51 +0000)]
bugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
simple fixes of compile-time errors

12 years agobugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
roundy [Fri, 25 Apr 2008 20:51:54 +0000 (20:51 +0000)]
bugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
removed unnecessary typecast that was causing a compile-time error

12 years agobugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
roundy [Fri, 25 Apr 2008 20:51:53 +0000 (20:51 +0000)]
bugfix in image::addFunctionStub, compile-time fixes in pdwinnt.C and in libcommon
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
added include flag for libxml

12 years agoTurns out my last commit got screwed up -- I think it was a partial commit
jaw [Tue, 22 Apr 2008 04:39:23 +0000 (04:39 +0000)]
Turns out my last commit got screwed up -- I think it was a partial commit
that terminated due to conflicts -- and somehow I missed the error message
??

This commit essentially reverts the repository, and then reapplies a bunch
of
changes, thus just about every file is "modified" here...

12 years agoThis is still true, but the static data structure is now:
jaw [Fri, 18 Apr 2008 17:07:24 +0000 (17:07 +0000)]
This is still true, but the static data structure is now:
map [ Annotatee <--> map [ annotation_type <--> vector<Annotation> ] ]

(The present, simpler implementation is broken and does not allow for the
proper discernment of annotation types, by object).  The discussion of
whether the amount of access time is sufficiently small can commence...

This also adds a first stab at a public interface to annotations -- So far
I have tried to keep in a notion of arbitrary object annotations, ie, you
can say something like "annotate this object A with this B".

Anyways...  to both test this and to provide an example, I applied this
public interface to SymtabAPI::Symbol by replacing the notion of the upPtr
with an externally provided annotation.  In other words, since a Symbol
never needs to have knowledge of an image_func, or an image_variable, this
can be handled completely externally to symtabAPI.  Furthermore this
allows for the distinction of what the effective upPtr points to (an
image_func or an image_variable) -- creating a greater sense of type
safety that is independent of code-context.

12 years agoFix rewriter bugs
giri [Fri, 18 Apr 2008 16:52:52 +0000 (16:52 +0000)]
Fix rewriter bugs

12 years agoFixes a bug that my last commit introduced related to the initialization of static...
roundy [Wed, 16 Apr 2008 20:59:25 +0000 (20:59 +0000)]
Fixes a bug that my last commit introduced related to the initialization of static process class members stopThread_ID_counter and stopThread_callbacks

12 years agoIncorporates a suggestion to remove the BPatch_process parameter
roundy [Wed, 16 Apr 2008 18:12:31 +0000 (18:12 +0000)]
Incorporates a suggestion to remove the BPatch_process parameter
om the stopThreadExpr snippet constructor.  Updates the
cumentation to reflect this, and gets around the need for the
atch_process by making a supporting process function static.  - - - - - -
made "int getStopThreadCB_ID(const Address cb)" a static function

12 years agoIncorporates a suggestion to remove the BPatch_process parameter
roundy [Wed, 16 Apr 2008 18:12:29 +0000 (18:12 +0000)]
Incorporates a suggestion to remove the BPatch_process parameter
om the stopThreadExpr snippet constructor.  Updates the
cumentation to reflect this, and gets around the need for the
atch_process by making a supporting process function static.  - - - - - -
redefined the stopThreadExpr constructor

12 years agoDocuments stopThreadExpr & dynamicTargetExpr snippets, the
roundy [Wed, 16 Apr 2008 17:02:40 +0000 (17:02 +0000)]
Documents stopThreadExpr & dynamicTargetExpr snippets, the
atchSignalHandlerCallback and BPatchStopThreadCallback callback
pes, and changes to the parseNewRegion (now parseNewFunctions)
terface, also fixes an AIX bug and updates the symtab function
ndEnclosingRegion.   - - - - - - - - - - - - - - - - - - - - - - - - - -
updates the definition of the new Symtab::findEnclosingRegion function

12 years agoDocuments stopThreadExpr & dynamicTargetExpr snippets, the
roundy [Wed, 16 Apr 2008 17:02:39 +0000 (17:02 +0000)]
Documents stopThreadExpr & dynamicTargetExpr snippets, the
atchSignalHandlerCallback and BPatchStopThreadCallback callback
pes, and changes to the parseNewRegion (now parseNewFunctions)
terface, also fixes an AIX bug and updates the symtab function
ndEnclosingRegion.   - - - - - - - - - - - - - - - - - - - - - - - - - -
updates a use of the Symtab::findEnclosingRegion function

12 years agoDocuments stopThreadExpr & dynamicTargetExpr snippets, the
roundy [Wed, 16 Apr 2008 17:02:38 +0000 (17:02 +0000)]
Documents stopThreadExpr & dynamicTargetExpr snippets, the
atchSignalHandlerCallback and BPatchStopThreadCallback callback
pes, and changes to the parseNewRegion (now parseNewFunctions)
terface, also fixes an AIX bug and updates the symtab function
ndEnclosingRegion.   - - - - - - - - - - - - - - - - - - - - - - - - - -
resolved aix compile-time bug by adding an empty emitStorePreviousStackFrameRegister function definition

12 years agoDocuments stopThreadExpr & dynamicTargetExpr snippets, the
roundy [Wed, 16 Apr 2008 17:02:35 +0000 (17:02 +0000)]
Documents stopThreadExpr & dynamicTargetExpr snippets, the
atchSignalHandlerCallback and BPatchStopThreadCallback callback
pes, and changes to the parseNewRegion (now parseNewFunctions)
terface, also fixes an AIX bug and updates the symtab function
ndEnclosingRegion.   - - - - - - - - - - - - - - - - - - - - - - - - - -
changed parseNewRegions to parseNewFunctions

12 years agoRolling back from version 1.115 to 1.114 of BPatch_image.C, which was an accidental...
roundy [Tue, 15 Apr 2008 21:43:05 +0000 (21:43 +0000)]
Rolling back from version 1.115 to 1.114 of BPatch_image.C, which was an accidental commit to the file.

12 years agoUpdated parseNewRegion to be named parseNewFunctions, and removed the regionStart...
roundy [Tue, 15 Apr 2008 21:39:06 +0000 (21:39 +0000)]
Updated parseNewRegion to be named parseNewFunctions, and removed the regionStart and regionEnd parameters

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:47 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added new API function: bool findEnclosingRegion(Region *&reg, Dyninst::Address where), updated isCode to do binary rather than linear search, and added a bugfix.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:46 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Removed code that was obsoleted by the Regions interface to Windows PE sections.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:45 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added new API function: bool findEnclosingRegion(Region *&reg, Dyninst::Address where)

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:44 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added handling for the stopThread snippet type

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:43 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added a new event type: DSE_stopThread

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:42 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added new typedef for event handling

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:41 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The decodeRTSignal function was removed from this class, but some supporting platform-dependent code was added back in decodeRTSignal_NP.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:40 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
New class member image::addFunctionStub(addr), the removal of the image::possible_mains vector, and fixed a bug fileDescriptor constructor not initializing a class member.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:39 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cleaned up the windows findmain code, if it can't find a main function, it uses the binary's entry point instead of scanning from the start of the .text section for code.  Added image::addFunctionStub(addr). Updated getPtrToInstruction to grab pointers from code without assuming a single code region.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:38 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gap parsing no longer a compiler flag

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:36 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The handler for evtSignalHandlerCB is in the SignalHandler class

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:35 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added two cases for evtStopThread and evtSignalHandlerCB.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:33 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Now conatins implementation of decodeRTSignal, previously in unix.C.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:31 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added function stubs related to the moving of decodeRTSignal into the signalgenerator class.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:29 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added stopThread handing

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:28 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added stderr printf for failed dll parse

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:27 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added datastructure for exception handling

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:26 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added code for decoding & handling exceptions that match registered signal handler callbacks.  Added platform dependent code for runtime signal handling.  The guts of BPatch_process::setBeingDebuggedFlag() are in this file now.  Now contains some new support for Windows debugging, specifically related to the location of the thread instruction block.  Also added the handling of the stopThread snippet to this class.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:24 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Enabled re-parsing of an existing object seeded with additional function start addresses via mapped_object::analyzeNewFunctions.  Also added and added an analyzed_ flag to the mapped_object class.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:22 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Streamlined process::instrumentLibcStartMain.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:19 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Trivially extended getDynamicCallSiteArgs to work on dynamic jumps

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:13 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added new class member & accessor function for saving the address of the Windows Thread Information Block datastructure, needed for BPatch_process::setBeingDebuggedFlag() and Windows exception handling.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:11 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added new callback classes: StopThreadCallback, SignalHandlerCallback

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:09 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added AstDynamicTargetNode corresponding to new snippet class: BPatch_dynamicTargetExpr

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:08 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Changed definition and uses of isDynamicCall() to isDynamic(), and allowed it to apply to dynamic branches as well as dynamic calls.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:07 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Removed assert obsoleted by previous commit and fixed compiler warning

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:05 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added two event types: evtStopThread, evtSignalHandlerCB

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:02 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modified secret API function BPatch_point::getCFTarget to take a vector of Addresses instead of unsigned longs, made it handle jumps in addition to calls.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:01 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Fixed bugs in my BPatch_module::getUnresolvedCtrlTransfers function.

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:43:00 +0000 (16:43 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
updated implementation of BPatch_image::parseNewRegion

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:59 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
findFunctionByAddr now triggers parsing of underlying mapped_objects when necessary

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:58 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added internal class member functions triggerStopThread & triggerSignalHandler, they had to be in a BPatch-level class to create BPatch_points & BPatch_functions through the right interface

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:57 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added BPatch_stopThreadExpr, BPatch_dynamicTargetExpr snippets

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:56 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added internal class member functions triggerStopThread & triggerSignalHandler

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:55 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Changed signature of secret API call: getCFTarget to take Dyninst::Address instead of unsigned long

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:54 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Changed signature of secret API call: BPatch_image::parseNewRegion

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:53 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added callback types for signal notification & stopThread notification

12 years agoAdded snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback...
roundy [Tue, 15 Apr 2008 16:42:52 +0000 (16:42 +0000)]
Added snippet types BPatch_dynamicTargetExpr and BPatch_stopThread, new callback types for stopThread and BPatchSignalHandlerCallback, changed the signature of secret API functions BPatch_image::parseNewRegion and BPatch_point::getCFTarget, made gap parsing a process class flag rather than a precompiler flag,
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Added registration & removal for a SignalHandlerCallback.  Also removal function for stopThread callbacks.

12 years agoAdd stub implementation for modifying program registers in instrumentation.
bernat [Mon, 14 Apr 2008 20:44:24 +0000 (20:44 +0000)]
Add stub implementation for modifying program registers in instrumentation.

12 years agoMerge changes since Dyninst 5.2 beta 3 into trunk
legendre [Fri, 11 Apr 2008 23:29:50 +0000 (23:29 +0000)]
Merge changes since Dyninst 5.2 beta 3 into trunk

12 years agoRemove unused Boost header file that was causing Solaris (or possibly
bernat [Thu, 10 Apr 2008 17:07:17 +0000 (17:07 +0000)]
Remove unused Boost header file that was causing Solaris (or possibly
gcc 3.4.4) to break.

12 years agoAdd setPermissions to Region
giri [Tue, 8 Apr 2008 22:55:45 +0000 (22:55 +0000)]
Add setPermissions to Region

12 years agoUse segment permissions for sections
giri [Tue, 8 Apr 2008 22:55:21 +0000 (22:55 +0000)]
Use segment permissions for sections

12 years agoChange isCode to check correct the correct addresses
giri [Tue, 8 Apr 2008 21:17:49 +0000 (21:17 +0000)]
Change isCode to check correct the correct addresses

12 years agoFix solaris build error
giri [Tue, 8 Apr 2008 18:51:24 +0000 (18:51 +0000)]
Fix solaris build error

12 years agoDefine new setLocation function
giri [Mon, 7 Apr 2008 22:33:06 +0000 (22:33 +0000)]
Define new setLocation function

12 years agoRemove previously defined Region structure
giri [Mon, 7 Apr 2008 22:33:05 +0000 (22:33 +0000)]
Remove previously defined Region structure

12 years agoChange Section to Region
giri [Mon, 7 Apr 2008 22:32:38 +0000 (22:32 +0000)]
Change Section to Region

12 years agoDLLEXPORT AnnotatableBase constructor
giri [Mon, 7 Apr 2008 22:32:36 +0000 (22:32 +0000)]
DLLEXPORT AnnotatableBase constructor

12 years agoAdd symtabAPI/h to include file path
giri [Mon, 7 Apr 2008 22:32:35 +0000 (22:32 +0000)]
Add symtabAPI/h to include file path

12 years agoRemove Extra dynutil/h to build line
giri [Mon, 7 Apr 2008 22:32:34 +0000 (22:32 +0000)]
Remove Extra dynutil/h to build line

12 years agoAdd Annotatable.h, util.h as dependencies to the project
giri [Mon, 7 Apr 2008 22:32:30 +0000 (22:32 +0000)]
Add Annotatable.h, util.h as dependencies to the project

12 years agoAdd an API call for accessing dependencies
giri [Tue, 1 Apr 2008 18:52:32 +0000 (18:52 +0000)]
Add an API call for accessing dependencies

12 years agoReverting to 1.26, commit 1.27 moved to release branch
bill [Mon, 31 Mar 2008 21:30:42 +0000 (21:30 +0000)]
Reverting to 1.26, commit 1.27 moved to release branch

12 years agoAdd a section for absolute symbols
giri [Mon, 31 Mar 2008 21:23:09 +0000 (21:23 +0000)]
Add a section for absolute symbols

12 years agoFixed Symtab constructor error handling
bill [Mon, 31 Mar 2008 21:06:06 +0000 (21:06 +0000)]
Fixed Symtab constructor error handling

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:41 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Remove unnecessary second generation of template BT

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:39 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Add naming of registers (AMD-64/POWER only)

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:38 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Remove instPoint::liveRegisterArray()

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:37 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Compilation fixes

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:36 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Remove int* live array

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:24 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Add capability to write to original register

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:23 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Remove unnecessary #define

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:20 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Add register modification snippet

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:17 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
getLiveRegisters now returns registers instead of ints

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:15 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Add BPatch_register prototype

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:12 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Add createRegister_NP and getRegisters

12 years agoRegister modification commit - - - - - - - - - - - - - - - - - - - - - -
bernat [Tue, 25 Mar 2008 19:24:11 +0000 (19:24 +0000)]
Register modification commit  - - - - - - - - - - - - - - - - - - - - - -
Disable external templates on ppc32-linux