dyninst.git
14 years agoadd ppc64_linux platform - - - - - - - - - - - - - - - - - - - - - - - -
ssuen [Wed, 20 Jun 2007 21:19:11 +0000 (21:19 +0000)]
add ppc64_linux platform  - - - - - - - - - - - - - - - - - - - - - - - -

14 years agoadd ppc64_linux platform - - - - - - - - - - - - - - - - - - - - - - - -
ssuen [Wed, 20 Jun 2007 20:49:36 +0000 (20:49 +0000)]
add ppc64_linux platform  - - - - - - - - - - - - - - - - - - - - - - - -

14 years agoSeveral gap and jump table parsing fixes - - - - - - - - - - - - - - - -
nater [Fri, 15 Jun 2007 21:30:11 +0000 (21:30 +0000)]
Several gap and jump table parsing fixes  - - - - - - - - - - - - - - - -
Re-enable recording of image-funcs in by-address hash table

14 years agoSeveral gap and jump table parsing fixes - - - - - - - - - - - - - - - -
nater [Fri, 15 Jun 2007 21:30:10 +0000 (21:30 +0000)]
Several gap and jump table parsing fixes  - - - - - - - - - - - - - - - -
Fix holes in gap parsing coverage, change name of gap functions.

14 years agoSeveral gap and jump table parsing fixes - - - - - - - - - - - - - - - -
nater [Fri, 15 Jun 2007 21:30:09 +0000 (21:30 +0000)]
Several gap and jump table parsing fixes  - - - - - - - - - - - - - - - -
Search for CMP instruction in jump table heuristic was flawed, leading
to incorrect estimation of jump table size. There may be intervening
instructions between the CMP and later JCC.

14 years agoFix a bug in the tests
bernat [Wed, 13 Jun 2007 18:51:31 +0000 (18:51 +0000)]
Fix a bug in the tests

14 years agoUpdate Makefiles to compile with Boost
bernat [Wed, 13 Jun 2007 18:51:28 +0000 (18:51 +0000)]
Update Makefiles to compile with Boost

14 years agoMove from AstNode * to AstNodePtr, remove circular #include dependencies
bernat [Wed, 13 Jun 2007 18:50:19 +0000 (18:50 +0000)]
Move from AstNode * to AstNodePtr, remove circular #include dependencies

14 years agoUpdate Makefiles
bernat [Wed, 13 Jun 2007 18:50:13 +0000 (18:50 +0000)]
Update Makefiles

14 years agoAdd AstNodePtr *ast_wrapper instead of AstNode *
bernat [Wed, 13 Jun 2007 18:50:12 +0000 (18:50 +0000)]
Add AstNodePtr *ast_wrapper instead of AstNode *

14 years agoAdd $(TO_CORE)/external as a header file source
bernat [Wed, 13 Jun 2007 18:50:11 +0000 (18:50 +0000)]
Add $(TO_CORE)/external as a header file source

14 years agoUpdate Windows packager for Dyninst 5.1 release. - - - - - - - - - - - -
rchen [Wed, 13 Jun 2007 06:30:20 +0000 (06:30 +0000)]
Update Windows packager for Dyninst 5.1 release.  - - - - - - - - - - - -
Update vdproj files to reflect new packager requirements for 5.1 release.

14 years agoDon't reference paths in public symtab files off of core Release5_1
legendre [Thu, 31 May 2007 14:24:46 +0000 (14:24 +0000)]
Don't reference paths in public symtab files off of core

14 years agoUpdate copyright notice to LGPL
legendre [Wed, 30 May 2007 19:19:37 +0000 (19:19 +0000)]
Update copyright notice to LGPL

14 years agoFix some buggy optimized x86_64 instruction generation code that was revealed
rchen [Fri, 25 May 2007 21:13:57 +0000 (21:13 +0000)]
Fix some buggy optimized x86_64 instruction generation code that was revealed
by a previous commit.  - - - - - - - - - - - - - - - - - - - - - - - - -
Check size of address and immediate in optimzed assignment.

14 years agoFix some buggy optimized x86_64 instruction generation code that was revealed
rchen [Fri, 25 May 2007 21:13:53 +0000 (21:13 +0000)]
Fix some buggy optimized x86_64 instruction generation code that was revealed
by a previous commit.  - - - - - - - - - - - - - - - - - - - - - - - - -
Call emitMovImmToMem() instead of emitMovImmToRM() from emitStoreImm().

14 years agoFix some buggy optimized x86_64 instruction generation code that was revealed
rchen [Fri, 25 May 2007 21:13:50 +0000 (21:13 +0000)]
Fix some buggy optimized x86_64 instruction generation code that was revealed
by a previous commit.  - - - - - - - - - - - - - - - - - - - - - - - - -
Make emitMovImmToMem() generate x86/x86_64 compatible MOV r/m32, imm32

14 years agoFix bug #772. Enables correct writing of 32 and 64 bit values in mutatee.
rchen [Tue, 22 May 2007 21:05:48 +0000 (21:05 +0000)]
Fix bug #772.  Enables correct writing of 32 and 64 bit values in mutatee.
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use newly passed size parameter in store methods.  Fix 64-bit value check.

14 years agoFix bug #772. Enables correct writing of 32 and 64 bit values in mutatee.
rchen [Tue, 22 May 2007 21:05:39 +0000 (21:05 +0000)]
Fix bug #772.  Enables correct writing of 32 and 64 bit values in mutatee.
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Update headers to accont for size in emitter base class and subclasses.

14 years agoFix bug #772. Enables correct writing of 32 and 64 bit values in mutatee.
rchen [Tue, 22 May 2007 21:05:35 +0000 (21:05 +0000)]
Fix bug #772.  Enables correct writing of 32 and 64 bit values in mutatee.
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Fix logic error.

14 years agoinstPoint.C, instPoint.h
bernat [Tue, 22 May 2007 19:42:02 +0000 (19:42 +0000)]
instPoint.C, instPoint.h
  - Provide a "batch" mechanism for updateInstances which works around
    a nasty O(n**2) problem during function relocation.
reloc-func.C
  - Use aforementioned mechanism
symtab.C
  - Remove some minor memory leaks

14 years agoMoved the process::hasPassedMain to latter in the startup sequence
legendre [Mon, 21 May 2007 17:12:46 +0000 (17:12 +0000)]
Moved the process::hasPassedMain to latter in the startup sequence

14 years agoDon't clean-up the dynamic linker Dyn_Symtab object after use, it may be
legendre [Mon, 21 May 2007 17:12:44 +0000 (17:12 +0000)]
Don't clean-up the dynamic linker Dyn_Symtab object after use, it may be
shared

14 years agoWhen libunwind fails to give us debug info , we no longer fail fatally, we simply...
bill [Fri, 18 May 2007 18:49:14 +0000 (18:49 +0000)]
When libunwind fails to give us debug info , we no longer fail fatally, we simply warn the user and move on with instrumentation.

--BW

14 years agoChange the libxml include path
giri [Thu, 17 May 2007 22:22:02 +0000 (22:22 +0000)]
Change the libxml include path

14 years ago- Fixes a problem with locating main on AMD64 32-bit mode. We were
legendre [Thu, 17 May 2007 20:01:32 +0000 (20:01 +0000)]
- Fixes a problem with locating main on AMD64 32-bit mode.  We were
reading the address of main as a 64-bit integer rather than a 32.

14 years agoFixes a problem with arbitrary instPoints colliding with callsite, entry, or
legendre [Thu, 17 May 2007 19:55:11 +0000 (19:55 +0000)]
Fixes a problem with arbitrary instPoints colliding with callsite, entry, or
exit instPoints.  The latter three now take priority over arbitrary
instPoints when asking what "type" of instPoint is at an instruction.

14 years agoCheck if a module is being deleted before BPatch_point::getCalledFunction
legendre [Thu, 17 May 2007 19:55:08 +0000 (19:55 +0000)]
Check if a module is being deleted before BPatch_point::getCalledFunction

14 years agoAdd BPatch::getBPatchVersion to return version numbers. Check those version
legendre [Thu, 17 May 2007 19:55:05 +0000 (19:55 +0000)]
Add BPatch::getBPatchVersion to return version numbers.  Check those version
numbers in Paradynd

14 years agomapped_object.C: delete allocated pdvectors to avoid a memory leak
bernat [Thu, 17 May 2007 17:09:04 +0000 (17:09 +0000)]
mapped_object.C: delete allocated pdvectors to avoid a memory leak
symtab.C: remove #if 0'ed code

14 years agoRemoved jmp->noop patch
bernat [Tue, 15 May 2007 21:39:41 +0000 (21:39 +0000)]
Removed jmp->noop patch

14 years agoUse proper makefile ifdef directive, as opposed to C preprocessor directives
rchen [Tue, 15 May 2007 15:50:11 +0000 (15:50 +0000)]
Use proper makefile ifdef directive, as opposed to C preprocessor directives
that are interpreted as comments by make.

14 years agoAdd Nate's fix for 0-offset jumps; elide them instead.
bernat [Mon, 14 May 2007 22:20:15 +0000 (22:20 +0000)]
Add Nate's fix for 0-offset jumps; elide them instead.

14 years agoadd libxml2 include paths
giri [Mon, 14 May 2007 20:57:53 +0000 (20:57 +0000)]
add libxml2 include paths

14 years agowindows exportXML fixes
giri [Mon, 14 May 2007 20:48:53 +0000 (20:48 +0000)]
windows exportXML fixes

14 years agoCheck to see if the libxml2 include path is empty
giri [Mon, 14 May 2007 20:48:19 +0000 (20:48 +0000)]
Check to see if the libxml2 include path is empty

14 years agoXML Schema
giri [Sun, 13 May 2007 23:16:34 +0000 (23:16 +0000)]
XML Schema

14 years agoRemove an unneccessary exportXML function call
giri [Sun, 13 May 2007 23:12:21 +0000 (23:12 +0000)]
Remove an unneccessary exportXML function call

14 years agofix build problems.Get rid of emitSymbols
giri [Sat, 12 May 2007 14:01:45 +0000 (14:01 +0000)]
fix build problems.Get rid of emitSymbols

14 years agoAdd libxml2 include path
giri [Fri, 11 May 2007 23:50:22 +0000 (23:50 +0000)]
Add libxml2 include path

14 years agoimport XML for symtabAPI
giri [Fri, 11 May 2007 23:49:43 +0000 (23:49 +0000)]
import XML for symtabAPI

14 years agoFix an order of operations problem where we wouldn't create the
legendre [Fri, 11 May 2007 21:47:36 +0000 (21:47 +0000)]
Fix an order of operations problem where we wouldn't create the
initial pd_thread on attach.

14 years agoMake the PARADYND_DEBUG attach mode easier to use
legendre [Fri, 11 May 2007 21:47:35 +0000 (21:47 +0000)]
Make the PARADYND_DEBUG attach mode easier to use

14 years agoReport resource checksum to FE after attach
legendre [Fri, 11 May 2007 21:47:34 +0000 (21:47 +0000)]
Report resource checksum to FE after attach

14 years agoCreate a paradynd before attaching, if one doesn't exist.
legendre [Fri, 11 May 2007 21:47:32 +0000 (21:47 +0000)]
Create a paradynd before attaching, if one doesn't exist.

14 years agoAlign Dyninst heaps to 16 byte boundries
legendre [Wed, 9 May 2007 21:53:28 +0000 (21:53 +0000)]
Align Dyninst heaps to 16 byte boundries

14 years agoUse mutatee word size when reading "sync_event_arg1" from mutatee
legendre [Wed, 9 May 2007 21:53:27 +0000 (21:53 +0000)]
Use mutatee word size when reading "sync_event_arg1" from mutatee
Don't change isVisiblyStopped when recieving a signal

14 years agoHave signalgenerator test for self-exit
legendre [Wed, 9 May 2007 21:53:25 +0000 (21:53 +0000)]
Have signalgenerator test for self-exit

14 years agoFix AMD64 relocation parsing
giri [Tue, 8 May 2007 22:49:01 +0000 (22:49 +0000)]
Fix AMD64 relocation parsing

14 years agofix two tiny dyner bugs -- segfault when issuing "where" command when the application...
jaw [Tue, 1 May 2007 14:30:58 +0000 (14:30 +0000)]
fix two tiny dyner bugs -- segfault when issuing "where" command when the application has already terminated, and fixing the deletebreak command

14 years agoAdd a condition to see if there are no symbols present
giri [Fri, 27 Apr 2007 16:54:53 +0000 (16:54 +0000)]
Add a condition to see if there are no symbols present

14 years agofix a bug in the findFunctionByRegex function
giri [Fri, 27 Apr 2007 16:53:29 +0000 (16:53 +0000)]
fix a bug in the findFunctionByRegex function

14 years agofix an infinite loop bug
giri [Fri, 27 Apr 2007 16:52:40 +0000 (16:52 +0000)]
fix an infinite loop bug

14 years agoFixed bugs from last commit
legendre [Thu, 26 Apr 2007 23:01:59 +0000 (23:01 +0000)]
Fixed bugs from last commit

14 years agoMoved Dyninst heaps to executable section
legendre [Wed, 25 Apr 2007 15:40:36 +0000 (15:40 +0000)]
Moved Dyninst heaps to executable section

14 years agoFix compiler warning
legendre [Tue, 24 Apr 2007 23:06:10 +0000 (23:06 +0000)]
Fix compiler warning

14 years agoRemoved debugging code
legendre [Tue, 24 Apr 2007 23:06:09 +0000 (23:06 +0000)]
Removed debugging code

14 years agoFixed bug where we weren't reading the vsyscall page correctly on LANL systems
legendre [Tue, 24 Apr 2007 23:06:08 +0000 (23:06 +0000)]
Fixed bug where we weren't reading the vsyscall page correctly on LANL systems

14 years agoFix bug where we weren't always suppressing signals while stopping a MT process
legendre [Tue, 24 Apr 2007 23:06:07 +0000 (23:06 +0000)]
Fix bug where we weren't always suppressing signals while stopping a MT process
Allow Dyninst to read auxv from stack if /proc/PID/auxv fails

14 years agoAllow Dyninst to read auxv from stack if /proc/PID/auxv fails
legendre [Tue, 24 Apr 2007 23:06:05 +0000 (23:06 +0000)]
Allow Dyninst to read auxv from stack if /proc/PID/auxv fails

14 years agoCorrect the BPatch_type returned by BPatch_tidExpr
legendre [Tue, 24 Apr 2007 23:06:04 +0000 (23:06 +0000)]
Correct the BPatch_type returned by BPatch_tidExpr

14 years agoMake dyninst heap executable by default
legendre [Tue, 24 Apr 2007 23:05:58 +0000 (23:05 +0000)]
Make dyninst heap executable by default

14 years agofix expected args to match mrnet updated list
darnold [Tue, 24 Apr 2007 20:35:25 +0000 (20:35 +0000)]
fix expected args to match mrnet updated list

14 years agoAdd a hashmap for modSyms
giri [Tue, 17 Apr 2007 19:05:50 +0000 (19:05 +0000)]
Add a hashmap for modSyms

14 years agoAdd a hashmap for modsyms
giri [Tue, 17 Apr 2007 19:04:57 +0000 (19:04 +0000)]
Add a hashmap for modsyms

14 years agoSegfault fix for parsing static binaries
giri [Fri, 13 Apr 2007 20:21:57 +0000 (20:21 +0000)]
Segfault fix for parsing static binaries

14 years agoMoved the native demangler loading code into Object-elf
giri [Fri, 13 Apr 2007 20:21:20 +0000 (20:21 +0000)]
Moved the native demangler loading code into Object-elf

14 years agofix for exec'd remote shell commands stealing input from MRNet front-ends
mjbrim [Fri, 13 Apr 2007 17:09:58 +0000 (17:09 +0000)]
fix for exec'd remote shell commands stealing input from MRNet front-ends
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
point stdin of exec'd remote shell commands to /dev/null using '-n' option

14 years agoRemoves hard coded translation of "\\Device\\HarddiskVolume1" to "c:",
rchen [Tue, 3 Apr 2007 19:02:49 +0000 (19:02 +0000)]
Removes hard coded translation of "\\Device\\HarddiskVolume1" to "c:",
and allows for any "\\Device\\HarddiskVolume" prefix string.

14 years agoAdded Dyn_Symtab::getInterpreterName, which returns the name of the
legendre [Mon, 26 Mar 2007 20:34:55 +0000 (20:34 +0000)]
Added Dyn_Symtab::getInterpreterName, which returns the name of the
.out's interpreter (usually, /lib/ld-x.x.x.so on Linux).  Only implemented
n ELF, return NULL on other platforms.

14 years agoAdded process::getInterpreterBase and process::getInterpreterName
legendre [Mon, 26 Mar 2007 20:34:53 +0000 (20:34 +0000)]
Added process::getInterpreterBase and process::getInterpreterName

14 years agoUse auxv vector and binary's .interp section to find dynamic linker rather
legendre [Mon, 26 Mar 2007 20:34:52 +0000 (20:34 +0000)]
Use auxv vector and binary's .interp section to find dynamic linker rather
than /proc/PID/maps

14 years agoGet interpreter base address out of auxv
legendre [Mon, 26 Mar 2007 20:34:51 +0000 (20:34 +0000)]
Get interpreter base address out of auxv

14 years agoAccidently left out of Thur's commit - add DYNINST_5_1 #define
legendre [Mon, 26 Mar 2007 20:34:50 +0000 (20:34 +0000)]
Accidently left out of Thur's commit - add DYNINST_5_1 #define

14 years agoNo longer using BACKUP_CORE in builds, removed
legendre [Thu, 22 Mar 2007 19:56:34 +0000 (19:56 +0000)]
No longer using BACKUP_CORE in builds, removed

14 years agoSet libcommon and build pre-req for paradynd
legendre [Thu, 22 Mar 2007 19:56:33 +0000 (19:56 +0000)]
Set libcommon and build pre-req for paradynd

14 years agoSymtabAPI not needed as a prereq for paradyn
legendre [Thu, 22 Mar 2007 19:56:31 +0000 (19:56 +0000)]
SymtabAPI not needed as a prereq for paradyn

14 years agoRevert libfl specification to a directory to agree with the rest of Paradyn
legendre [Thu, 22 Mar 2007 19:56:29 +0000 (19:56 +0000)]
Revert libfl specification to a directory to agree with the rest of Paradyn

14 years agoSymtabAPI not needed as a prereq for igen
legendre [Thu, 22 Mar 2007 19:56:27 +0000 (19:56 +0000)]
SymtabAPI not needed as a prereq for igen

14 years agoRemoved incorrect debugging statement
legendre [Thu, 22 Mar 2007 19:56:26 +0000 (19:56 +0000)]
Removed incorrect debugging statement

14 years agoWe weren't initializing thread_index_function for forked process objects.
legendre [Thu, 22 Mar 2007 19:56:25 +0000 (19:56 +0000)]
We weren't initializing thread_index_function for forked process objects.

14 years agoAdd debugging asserts to make sure we don't create threads w/o a process
legendre [Thu, 22 Mar 2007 19:56:24 +0000 (19:56 +0000)]
Add debugging asserts to make sure we don't create threads w/o a process

14 years agoHave oneTimeCodeAsync return errors correctly as specified in the manual.
legendre [Thu, 22 Mar 2007 19:56:21 +0000 (19:56 +0000)]
Have oneTimeCodeAsync return errors correctly as specified in the manual.

14 years agoMarked certain BPatch_edge functions as public (and locked) to agree with
legendre [Thu, 22 Mar 2007 19:56:19 +0000 (19:56 +0000)]
Marked certain BPatch_edge functions as public (and locked) to agree with
manual

14 years agoFixed Windows Paradyn build problem involving function implementation in the
legendre [Thu, 22 Mar 2007 19:56:15 +0000 (19:56 +0000)]
Fixed Windows Paradyn build problem involving function implementation in the
Time.h header file accesses non-exported functionality from libcommon

14 years agoFixed Windows Paradyn build problem involving the unused debug_ostream
legendre [Thu, 22 Mar 2007 19:56:13 +0000 (19:56 +0000)]
Fixed Windows Paradyn build problem involving the unused debug_ostream

14 years agoFix paradynd segfault on x86 stemming from libcommon changes
legendre [Thu, 22 Mar 2007 19:56:12 +0000 (19:56 +0000)]
Fix paradynd segfault on x86 stemming from libcommon changes

14 years agoFix user reported compilation problems with Ubuntu's gcc 4.1.2, but doesn't
legendre [Thu, 22 Mar 2007 19:56:09 +0000 (19:56 +0000)]
Fix user reported compilation problems with Ubuntu's gcc 4.1.2, but doesn't
happen with our versions of same compiler.

14 years agoFix O|SS reported segfault where we had a common block with a name interfering
legendre [Thu, 22 Mar 2007 19:56:08 +0000 (19:56 +0000)]
Fix O|SS reported segfault where we had a common block with a name interfering
with another symbol of the same name and causing a segfault.

14 years agoO|SS reported bug where the "attach before main" code was not handling the case
legendre [Thu, 22 Mar 2007 19:56:07 +0000 (19:56 +0000)]
O|SS reported bug where the "attach before main" code was not handling the case
where the /lib/ld-x.x.x.so library was split up in the address space.  Some parts
of the ld-x.x.x.so were appearing low, followed by other mmap regions,
followed by the rest of ld-x.x.x.so

14 years agoFix bug with "attach before main" where we wouldn't recognize the dynamic loader
legendre [Thu, 22 Mar 2007 19:56:06 +0000 (19:56 +0000)]
Fix bug with "attach before main" where we wouldn't recognize the dynamic loader
library on AMD64

14 years agoRemoved debugging statement that was printing free'd memory during SignalHandler
legendre [Thu, 22 Mar 2007 19:56:05 +0000 (19:56 +0000)]
Removed debugging statement that was printing free'd memory during SignalHandler
exit

14 years agoFix a bug where an inserted and removed exit callback could cause a crash
legendre [Thu, 22 Mar 2007 19:56:04 +0000 (19:56 +0000)]
Fix a bug where an inserted and removed exit callback could cause a crash

14 years agoCast (void *) to (const char *) instead of (Word *) to correctly use pointer arithmetic.
rchen [Tue, 20 Mar 2007 23:32:58 +0000 (23:32 +0000)]
Cast (void *) to (const char *) instead of (Word *) to correctly use pointer arithmetic.

14 years agokill warning about variable overshadowing
darnold [Tue, 20 Mar 2007 23:20:21 +0000 (23:20 +0000)]
kill warning about variable overshadowing

14 years agouse proper "IOCGIFCONF" ioctl request based on compiler
darnold [Tue, 20 Mar 2007 23:20:20 +0000 (23:20 +0000)]
use proper "IOCGIFCONF" ioctl request based on compiler

14 years agouse proper fields of iovec struct based on compiler
darnold [Tue, 20 Mar 2007 23:20:19 +0000 (23:20 +0000)]
use proper fields of iovec struct based on compiler

14 years agouse AR and ARFLAGS from autoconf
darnold [Tue, 20 Mar 2007 23:20:18 +0000 (23:20 +0000)]
use AR and ARFLAGS from autoconf

14 years agoisambiguate "pow" function for sun compiler
darnold [Tue, 20 Mar 2007 23:20:17 +0000 (23:20 +0000)]
isambiguate "pow" function for sun compiler

14 years agoxtern "C" added to quiet sun compiler
darnold [Tue, 20 Mar 2007 23:20:15 +0000 (23:20 +0000)]
xtern "C" added to quiet sun compiler