dyninst.git
12 years ago* Bugfix: InstrucIter no longer used for int_function iteration.
bill [Tue, 11 Dec 2007 20:22:05 +0000 (20:22 +0000)]
* Bugfix: InstrucIter no longer used for int_function iteration.
InstrucIterFunction replaces it for that case, and performs an iteration over
the int_function's basic blocks.

A InstrucIter-Function.C
A InstrucIter-Function.h
M BPatch_flowGraph.C
M BPatch_function.C
M InstrucIter-x86.C
M InstrucIter-xplat.C
M InstrucIter.h
M arch-ia64.C
M function.C
M function.h
M inst-ia64.C

* Bugfix: We had an overzealous assertion about the laziness of our liveness
analysis (namely, that we'd only ever try to compute block liveness once).

M liveness.C

* Bugfix: A multitramp was referenced after it had been replaced.
This crashed when we tried to install the dead version of the multitramp.
We no longer keep the dead version around.

M addressSpace.C
M baseTramp.C
M multiTramp.h

* Bugfix: FedoraCore 7's gcc would not compile arch-x86.C.  Our flag table
initialization is now kinder to the compiler.

M arch-x86.C
M arch-x86.h

12 years agoFix solaris Elf issues
giri [Tue, 11 Dec 2007 18:41:43 +0000 (18:41 +0000)]
Fix solaris Elf issues

12 years agobuild fixes
giri [Tue, 11 Dec 2007 17:18:23 +0000 (17:18 +0000)]
build fixes

12 years ago- Indicate if the symbol is in symtab/dynsym sections
giri [Tue, 11 Dec 2007 16:40:44 +0000 (16:40 +0000)]
- Indicate if the symbol is in symtab/dynsym sections

12 years agoRemove updateDynamic
giri [Mon, 10 Dec 2007 22:47:15 +0000 (22:47 +0000)]
Remove updateDynamic

12 years agoadd relocations & dynamic symbols
giri [Mon, 10 Dec 2007 22:33:39 +0000 (22:33 +0000)]
add relocations & dynamic symbols

12 years agoadd relocation entries
giri [Mon, 10 Dec 2007 22:33:38 +0000 (22:33 +0000)]
add relocation entries

12 years agochange signature for emitDriver
giri [Mon, 10 Dec 2007 22:33:34 +0000 (22:33 +0000)]
change signature for emitDriver

12 years agoEmit dynamic symbol tables
giri [Mon, 10 Dec 2007 22:27:56 +0000 (22:27 +0000)]
Emit dynamic symbol tables

12 years agoFix bug where the register number is wrongly parsed.
giri [Mon, 10 Dec 2007 22:27:55 +0000 (22:27 +0000)]
Fix bug where the register number is wrongly parsed.

12 years agoinitialize locations for variables
giri [Mon, 10 Dec 2007 22:27:54 +0000 (22:27 +0000)]
initialize locations for variables

12 years agovoid *upPtrs for all type classes & export symbols on windows
giri [Mon, 10 Dec 2007 22:27:52 +0000 (22:27 +0000)]
void *upPtrs for all type classes & export symbols on windows

12 years agochange relocationEntry class to refer to the dynamic symbol that a relocationEntry...
giri [Mon, 10 Dec 2007 22:27:50 +0000 (22:27 +0000)]
change relocationEntry class to refer to the dynamic symbol that a relocationEntry refers to

12 years agoParse dynamic section, dynamic symbol table
giri [Mon, 10 Dec 2007 22:27:48 +0000 (22:27 +0000)]
Parse dynamic section, dynamic symbol table

12 years agoDefine Elf_X_Dyn for other platforms too
giri [Mon, 10 Dec 2007 22:27:47 +0000 (22:27 +0000)]
Define Elf_X_Dyn for other platforms too

12 years agoImplement routines to get all local/global variables
giri [Mon, 10 Dec 2007 22:27:45 +0000 (22:27 +0000)]
Implement routines to get all local/global variables

12 years agoRemoved debugging prints, added lowlevel func offToAddress
legendre [Mon, 10 Dec 2007 20:16:22 +0000 (20:16 +0000)]
Removed debugging prints, added lowlevel func offToAddress

12 years agoRemoved debugging prints
legendre [Mon, 10 Dec 2007 20:16:21 +0000 (20:16 +0000)]
Removed debugging prints

12 years agoAdded AddrLookup to Linux/PPC
legendre [Mon, 10 Dec 2007 20:16:19 +0000 (20:16 +0000)]
Added AddrLookup to Linux/PPC

12 years agoFixed declaration of pid variable
legendre [Mon, 10 Dec 2007 20:16:18 +0000 (20:16 +0000)]
Fixed declaration of pid variable

12 years agoAdded parseauxv.C to Solaris makefile
legendre [Mon, 10 Dec 2007 20:16:17 +0000 (20:16 +0000)]
Added parseauxv.C to Solaris makefile

13 years agoRemove #include ptrace.
bernat [Wed, 5 Dec 2007 19:31:04 +0000 (19:31 +0000)]
Remove #include ptrace.

13 years agoSanity check an input register ID.
bernat [Wed, 5 Dec 2007 19:30:40 +0000 (19:30 +0000)]
Sanity check an input register ID.

13 years agoFix conflict problem with function definition.
bernat [Wed, 5 Dec 2007 04:37:33 +0000 (04:37 +0000)]
Fix conflict problem with function definition.

13 years agoBPatch - define function needed by Windows
bernat [Tue, 4 Dec 2007 22:00:33 +0000 (22:00 +0000)]
BPatch - define function needed by Windows
templates-nt.C - mirror definition from templates2

13 years agoAdded boost file
bernat [Tue, 4 Dec 2007 21:58:18 +0000 (21:58 +0000)]
Added boost file

13 years agoAdd new boost dependencies
bernat [Tue, 4 Dec 2007 21:47:18 +0000 (21:47 +0000)]
Add new boost dependencies

13 years agoUse "" instead of <> for Boost includes
bernat [Tue, 4 Dec 2007 21:47:11 +0000 (21:47 +0000)]
Use "" instead of <> for Boost includes

13 years agoAdd registerSpace.h as include
legendre [Tue, 4 Dec 2007 21:10:17 +0000 (21:10 +0000)]
Add registerSpace.h as include

13 years agoRemove bitArray.C
legendre [Tue, 4 Dec 2007 21:10:16 +0000 (21:10 +0000)]
Remove bitArray.C

13 years agoFix bug in error handling for failed process stops
legendre [Tue, 4 Dec 2007 18:07:28 +0000 (18:07 +0000)]
Fix bug in error handling for failed process stops

13 years agoFix Windows build errors
legendre [Tue, 4 Dec 2007 18:07:26 +0000 (18:07 +0000)]
Fix Windows build errors

13 years agoAllow builds to progress without libdwarf, libelf, or libunwind, useful for building
legendre [Tue, 4 Dec 2007 18:07:24 +0000 (18:07 +0000)]
Allow builds to progress without libdwarf, libelf, or libunwind, useful for building
components.

13 years agoRemove debuging code that may have been causing failures
legendre [Tue, 4 Dec 2007 18:05:59 +0000 (18:05 +0000)]
Remove debuging code that may have been causing failures

13 years agoAdd 'Region' lookup to find regions of the binary mapped into the address space
legendre [Tue, 4 Dec 2007 18:05:50 +0000 (18:05 +0000)]
Add 'Region' lookup to find regions of the binary mapped into the address space

13 years agoFix windows compile issues
legendre [Tue, 4 Dec 2007 18:05:49 +0000 (18:05 +0000)]
Fix windows compile issues

13 years agoAdd AddrLookup component
legendre [Tue, 4 Dec 2007 18:05:39 +0000 (18:05 +0000)]
Add AddrLookup component

13 years agoAdd build commands for new AddrLookup component
legendre [Tue, 4 Dec 2007 18:05:31 +0000 (18:05 +0000)]
Add build commands for new AddrLookup component

13 years agoFix compilation issue with new gcc versions
legendre [Tue, 4 Dec 2007 18:05:29 +0000 (18:05 +0000)]
Fix compilation issue with new gcc versions

13 years agoRemove debugging print
legendre [Tue, 4 Dec 2007 18:05:28 +0000 (18:05 +0000)]
Remove debugging print

13 years agoFix problem where we'd allow operations on unloaded modules
legendre [Tue, 4 Dec 2007 18:05:27 +0000 (18:05 +0000)]
Fix problem where we'd allow operations on unloaded modules

13 years agoMove /proc/PID/auxv parsing to common area
legendre [Tue, 4 Dec 2007 18:05:13 +0000 (18:05 +0000)]
Move /proc/PID/auxv parsing to common area

13 years agoAdd PtraceBulkRead to common
legendre [Tue, 4 Dec 2007 18:05:12 +0000 (18:05 +0000)]
Add PtraceBulkRead to common

13 years agoUse new 'Address' type from dynutil
legendre [Tue, 4 Dec 2007 18:05:10 +0000 (18:05 +0000)]
Use new 'Address' type from dynutil

13 years agoFix compiler warnings
legendre [Tue, 4 Dec 2007 18:05:06 +0000 (18:05 +0000)]
Fix compiler warnings

13 years agoFix build issue stemming from code coverage including internal Dyninst headers.
legendre [Tue, 4 Dec 2007 18:05:05 +0000 (18:05 +0000)]
Fix build issue stemming from code coverage including internal Dyninst headers.

13 years agoAdd files necessary for use of dynamic_bitset
bernat [Tue, 4 Dec 2007 18:01:43 +0000 (18:01 +0000)]
Add files necessary for use of dynamic_bitset

13 years agoAdd typedef for Boost's dynamic bitset
bernat [Tue, 4 Dec 2007 17:59:48 +0000 (17:59 +0000)]
Add typedef for Boost's dynamic bitset

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:58:28 +0000 (17:58 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Platform-independent liveness functions

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:58:26 +0000 (17:58 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add debugging output

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:58:25 +0000 (17:58 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Use cap_32_64 instead of arch_x86_64 where appropriate

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:58:21 +0000 (17:58 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Move liveness storage to image_func

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:58:19 +0000 (17:58 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add liveness debug print

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:58:18 +0000 (17:58 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Get rid of warning

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:58:15 +0000 (17:58 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add flags liveness info

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:52 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add GPR/SPR/FPR register types

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:51 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Reduce header file over-includes

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:48 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add x86 registers used/defined function

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:47 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add stub for power liveness function

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:39 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Deprecate BPatch-level liveness info

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:37 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add liveness trigger flags

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:36 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add liveness.C to build list

13 years agoFlags liveness for IA-32 and AMD-64 - - - - - - - - - - - - - - - - - -
bernat [Tue, 4 Dec 2007 17:57:34 +0000 (17:57 +0000)]
Flags liveness for IA-32 and AMD-64  - - - - - - - - - - - - - - - - - -
Add cap_liveness and cap_32_64 to make.config

13 years agorevert back changes
giri [Tue, 4 Dec 2007 16:32:19 +0000 (16:32 +0000)]
revert back changes

13 years agochange parseTypesNow to be public
giri [Mon, 3 Dec 2007 19:29:07 +0000 (19:29 +0000)]
change parseTypesNow to be public

13 years agoRemove debugging code that was causing a hang SanDiegoDistro
legendre [Wed, 21 Nov 2007 20:06:17 +0000 (20:06 +0000)]
Remove debugging code that was causing a hang

13 years agoDisable the install of new libraries until we switch over to new testsuite
legendre [Wed, 21 Nov 2007 20:06:16 +0000 (20:06 +0000)]
Disable the install of new libraries until we switch over to new testsuite

13 years agoAdd new files to the build
giri [Mon, 19 Nov 2007 18:28:22 +0000 (18:28 +0000)]
Add new files to the build

13 years agoAdd ability to emit 32 bit files on 64 bit architectures
giri [Mon, 19 Nov 2007 18:28:17 +0000 (18:28 +0000)]
Add ability to emit 32 bit files on 64 bit architectures

13 years agoFix a problem with negative unsigned offsets causing SymtabAPI to create
bernat [Tue, 13 Nov 2007 04:10:57 +0000 (04:10 +0000)]
Fix a problem with negative unsigned offsets causing SymtabAPI to create
enormous (4GB) binaries.

13 years agoRewriter fixes - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 9 Nov 2007 20:11:02 +0000 (20:11 +0000)]
Rewriter fixes  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Add a new "get scratch register, but not that one" call

13 years agoRewriter fixes - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 9 Nov 2007 20:10:59 +0000 (20:10 +0000)]
Rewriter fixes  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Optimize AMD-64 function calls

13 years agoRewriter fixes - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 9 Nov 2007 20:10:57 +0000 (20:10 +0000)]
Rewriter fixes  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Don't keep registers allocated during the body of an if statement

13 years agoRewriter fixes - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 9 Nov 2007 20:10:56 +0000 (20:10 +0000)]
Rewriter fixes  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Enable liveness calculation for static case

13 years agoast.C: fix a problem with checking whether an operator AST node has a function call
bernat [Thu, 8 Nov 2007 18:25:38 +0000 (18:25 +0000)]
ast.C: fix a problem with checking whether an operator AST node has a function call
  as a child; due to a typo, we weren't checking all children.

binaryEdit.C, binaryEdit.h: redo how we track changes to "memory" to include variables
  as well as instrumentation. This approach is less efficient, but correct.

13 years agoFix Section Layout Issue
giri [Wed, 7 Nov 2007 16:48:26 +0000 (16:48 +0000)]
Fix Section Layout Issue

13 years agoFix Section layout issue
giri [Wed, 7 Nov 2007 16:48:10 +0000 (16:48 +0000)]
Fix Section layout issue

13 years agoFix a problem with multiTramps overriding function replacements; this was
bernat [Wed, 7 Nov 2007 02:35:28 +0000 (02:35 +0000)]
Fix a problem with multiTramps overriding function replacements; this was
a reversion to a previous version.

13 years agoM dyninstAPI/src/BPatch_binaryEdit.C
bill [Thu, 1 Nov 2007 21:41:01 +0000 (21:41 +0000)]
M dyninstAPI/src/BPatch_binaryEdit.C
  - Atomic defaults to OFF
  - Removed fprintf spam when failing to insert instrumentation
M dyninstAPI/src/BPatch_snippet.C
  - Guard against null proc before dereferencing it
M dyninstAPI/src/binaryEdit.C
  - Found that a can't happen could; removed error spam
  - Added debug output for modifications that don't go in known segments
  - Removed debug output when new symbols get added
M dyninstAPI/src/instPoint.C
  - Guard against uninstrumentable functions causing crashes
M dyninstAPI/src/multiTramp.C
  - Added instrumentation logging for why a multitramp fails
M dyninstAPI/src/reloc-func.C
  - Guard against null possibleEntry

13 years agoBPatch_addressSpace.C:
bernat [Thu, 1 Nov 2007 21:16:04 +0000 (21:16 +0000)]
BPatch_addressSpace.C:
  Update BPatchSnippetHandle for paradyn use (ensure that the returned
  BPatch_process is defined)
BPatch_process.C: Paradyn fixes
addressSpace.C: remove erroneous assert
multiTramp.C: improved debugging output

13 years agoUpdate BPatchSnippetHandle for paradyn use
bernat [Thu, 1 Nov 2007 21:15:15 +0000 (21:15 +0000)]
Update BPatchSnippetHandle for paradyn use

13 years agoDon't use traps in static case.
bernat [Tue, 30 Oct 2007 19:03:10 +0000 (19:03 +0000)]
Don't use traps in static case.

13 years agoFixed up relocation of functions with jump tables.
bernat [Tue, 30 Oct 2007 19:03:08 +0000 (19:03 +0000)]
Fixed up relocation of functions with jump tables.

13 years agoAdd a "canUseTraps" virtual function, defaults to true for dynamic and false for...
bernat [Tue, 30 Oct 2007 19:03:04 +0000 (19:03 +0000)]
Add a "canUseTraps" virtual function, defaults to true for dynamic and false for static.

13 years agoFix incorrect debugging statement.
bernat [Fri, 26 Oct 2007 21:30:58 +0000 (21:30 +0000)]
Fix incorrect debugging statement.

13 years agoBetter debugging.
bernat [Fri, 26 Oct 2007 21:25:21 +0000 (21:25 +0000)]
Better debugging.

13 years agoMake sure we can write multiTramps into relocated functions.
bernat [Fri, 26 Oct 2007 21:24:52 +0000 (21:24 +0000)]
Make sure we can write multiTramps into relocated functions.

13 years agoFix a problem with overwriting part of a inter-function branch with
bernat [Fri, 26 Oct 2007 21:24:20 +0000 (21:24 +0000)]
Fix a problem with overwriting part of a inter-function branch with
multiTramps.

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:53 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Fix memory leak in destructor code

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:50 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Linux/POWER fixes

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:48 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Fix typo that caused parseThat failures

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:47 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Implement debugging code for a "don't call this" default function

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:46 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Implement readValue and writeValue at address space level

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:43 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove some BPatch_process dependencies

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:42 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove dependence on BPFlowGraph-ll_proc

13 years agoCode split bug fixes - - - - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 26 Oct 2007 17:17:40 +0000 (17:17 +0000)]
Code split bug fixes  - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove unused ll_proc method

13 years agoChecking platform before trying to build newtestsuite
cooksey [Thu, 18 Oct 2007 15:54:35 +0000 (15:54 +0000)]
Checking platform before trying to build newtestsuite

13 years agoConsistency check instrumentation for a valid process
bernat [Tue, 16 Oct 2007 17:04:10 +0000 (17:04 +0000)]
Consistency check instrumentation for a valid process

Remove unused BPatch_process *

13 years agoRemove unused BPatch_process *
bernat [Tue, 16 Oct 2007 17:03:58 +0000 (17:03 +0000)]
Remove unused BPatch_process *

13 years agoRefactor callback calls
rutar [Tue, 16 Oct 2007 02:20:54 +0000 (02:20 +0000)]
Refactor callback calls