dyninst.git
24 years agofirst commit of dyninst library. Also includes:
buck [Tue, 18 Mar 1997 19:43:26 +0000 (19:43 +0000)]
first commit of dyninst library.  Also includes:
moving templates from paradynd to dyninstAPI
converting showError into a function (in showerror.C)
many ifdefs for BPATCH_LIBRARY in dyinstAPI/src.

24 years agoChanged to start blizzard application, when flavor is 'cow'
zhichen [Mon, 17 Mar 1997 19:58:18 +0000 (19:58 +0000)]
Changed to start blizzard application, when flavor is 'cow'

24 years agoSmall changes made for handling inferior procedure call on hpux platform
lzheng [Mon, 17 Mar 1997 02:18:46 +0000 (02:18 +0000)]
Small changes made for handling inferior procedure call on hpux platform

24 years agoAdded one more function to handle inferior procedure call
lzheng [Mon, 17 Mar 1997 02:17:15 +0000 (02:17 +0000)]
Added one more function to handle inferior procedure call

24 years agoFollow up commit of previous commit to this file
lzheng [Mon, 17 Mar 1997 00:06:48 +0000 (00:06 +0000)]
Follow up commit of previous commit to this file

24 years agoChanges made for the value of observed cost
lzheng [Sun, 16 Mar 1997 23:16:31 +0000 (23:16 +0000)]
Changes made for the value of observed cost

24 years agoadded info about c test program
newhall [Sat, 15 Mar 1997 03:16:38 +0000 (03:16 +0000)]
added info about c test program

24 years agoc version of xtext visi
newhall [Fri, 14 Mar 1997 22:06:17 +0000 (22:06 +0000)]
c version of xtext visi

24 years agoadded example c visi program
newhall [Fri, 14 Mar 1997 22:05:40 +0000 (22:05 +0000)]
added example c visi program

24 years agoAdded reportSelf in the case when the daemons were started by
zhichen [Fri, 14 Mar 1997 18:50:57 +0000 (18:50 +0000)]
Added reportSelf in the case when the daemons were started by
COW DJM. Search for 'Tempest' for the change

24 years agoDealing with complier optimization related to the return value
lzheng [Fri, 14 Mar 1997 15:57:07 +0000 (15:57 +0000)]
Dealing with complier optimization related to the return value

24 years agoFixed bug that let .text symbols into function name table.
hollings [Tue, 11 Mar 1997 17:54:55 +0000 (17:54 +0000)]
Fixed bug that let .text symbols into function name table.
This caused the first function in an executable to not be found for
instrumentation.

24 years agofix to check for if return points overlap in pdFunction::checkInstPoints
newhall [Fri, 7 Mar 1997 17:05:13 +0000 (17:05 +0000)]
fix to check for if return points overlap in pdFunction::checkInstPoints

24 years agoFixed bug related to finding next free index in the inferior heap - naim
naim [Thu, 6 Mar 1997 20:08:57 +0000 (20:08 +0000)]
Fixed bug related to finding next free index in the inferior heap - naim

24 years agoMinor change to fix warning message about MAX macro - naim
naim [Wed, 5 Mar 1997 21:33:23 +0000 (21:33 +0000)]
Minor change to fix warning message about MAX macro - naim

24 years agoMinor change to fix compiler error on aix - naim
naim [Wed, 5 Mar 1997 21:32:57 +0000 (21:32 +0000)]
Minor change to fix compiler error on aix - naim

24 years agoMaking sure we only save REG_MT for the MT_THREAD case - naim
naim [Wed, 5 Mar 1997 21:32:34 +0000 (21:32 +0000)]
Making sure we only save REG_MT for the MT_THREAD case - naim

24 years agoChanged deletes of malloc'd space to be frees.
hollings [Wed, 5 Mar 1997 17:37:08 +0000 (17:37 +0000)]
Changed deletes of malloc'd space to be frees.

24 years agoModified how registers are saved/restored when a function call is made,
sec [Mon, 3 Mar 1997 19:50:15 +0000 (19:50 +0000)]
Modified how registers are saved/restored when a function call is made,
in emitFuncCall.  It was previously saving registers in the same location
the registers were saved in the base trampoline, which was causing a problem
because the original values were being overwritten.

24 years agoTurning MT_THREAD flag to "true" in order to use vector of counter/timers - naim
naim [Fri, 28 Feb 1997 15:54:50 +0000 (15:54 +0000)]
Turning MT_THREAD flag to "true" in order to use vector of counter/timers - naim

24 years agoAdded debugging information for HP and POWER, so we can attach to the
naim [Fri, 28 Feb 1997 15:54:05 +0000 (15:54 +0000)]
Added debugging information for HP and POWER, so we can attach to the
application - naim

24 years agoFixing problem with use of registers before and after function calls - naim
naim [Fri, 28 Feb 1997 15:53:13 +0000 (15:53 +0000)]
Fixing problem with use of registers before and after function calls - naim

24 years agochanged some calls to open, and dup to use syscall instead. This is for
newhall [Thu, 27 Feb 1997 19:11:06 +0000 (19:11 +0000)]
changed some calls to open, and dup to use syscall instead.  This is for
applications that have their own version of these routines, we want to make
sure to call the correct open or dup.

24 years agoFirst part of WindowsNT port: divided RTposix.c into two files,
mjrg [Wed, 26 Feb 1997 23:52:05 +0000 (23:52 +0000)]
First part of WindowsNT port: divided RTposix.c into two files,
RTinst.c which has all platform independent code and RTposix.c with
unix specific code

24 years agoFirst part of WindowsNT commit: changes for compiling with VisualC++;
mjrg [Wed, 26 Feb 1997 23:49:41 +0000 (23:49 +0000)]
First part of WindowsNT commit: changes for compiling with VisualC++;
moved includes to platform header files

24 years agoFirst part of WindowsNT port: changes for compiling with Visual C++;
mjrg [Wed, 26 Feb 1997 23:46:27 +0000 (23:46 +0000)]
First part of WindowsNT port: changes for compiling with Visual C++;
moved unix specific code to unix.C file

24 years agoChanged return value argument
mjrg [Wed, 26 Feb 1997 23:45:05 +0000 (23:45 +0000)]
Changed return value argument

24 years agoFirst part on WindowsNT port: changes for compiling with Visual C++;
mjrg [Wed, 26 Feb 1997 23:42:44 +0000 (23:42 +0000)]
First part on WindowsNT port: changes for compiling with Visual C++;
moved unix specific code to unix.C

24 years agoFixing a problem with temporary counters for pvm metrics - naim
naim [Wed, 26 Feb 1997 18:03:52 +0000 (18:03 +0000)]
Fixing a problem with temporary counters for pvm metrics - naim

24 years agoCommited changes to fix the problem of reading wrong return value
lzheng [Tue, 25 Feb 1997 18:57:30 +0000 (18:57 +0000)]
Commited changes to fix the problem of reading wrong return value
(treat the leaf and not-leaf routines differently)

24 years agoAdded EEL awareness to Object-elf32.h, search for 'EEL' for comments.
zhichen [Tue, 25 Feb 1997 17:34:33 +0000 (17:34 +0000)]
Added EEL awareness to Object-elf32.h, search for 'EEL' for comments.

24 years agoMinor fix to my previous commit - naim
naim [Mon, 24 Feb 1997 14:22:58 +0000 (14:22 +0000)]
Minor fix to my previous commit - naim

24 years agoEliminating references to dataReqNode from the ast class - Pre-dyninstAPI
naim [Fri, 21 Feb 1997 20:20:35 +0000 (20:20 +0000)]
Eliminating references to dataReqNode from the ast class - Pre-dyninstAPI
commit - naim

24 years agoEliminating all references to dataReqNode from the ast class. Pre-dynisntAPI
naim [Fri, 21 Feb 1997 20:19:45 +0000 (20:19 +0000)]
Eliminating all references to dataReqNode from the ast class. Pre-dynisntAPI
commit - naim

24 years agoMoving files from paradynd to dyninstAPI - First pre-dynisntAPI commit! - naim
naim [Fri, 21 Feb 1997 20:17:05 +0000 (20:17 +0000)]
Moving files from paradynd to dyninstAPI - First pre-dynisntAPI commit! - naim

24 years agoMoving files from paradynd to dyninstAPI + eliminating references to
naim [Fri, 21 Feb 1997 20:15:34 +0000 (20:15 +0000)]
Moving files from paradynd to dyninstAPI + eliminating references to
dataReqNode from the ast class. This is the first pre-dyninstAPI commit! - naim

24 years agoMoving files from paradynd to dyninstAPI + moving references to dataReqNode
naim [Fri, 21 Feb 1997 20:13:10 +0000 (20:13 +0000)]
Moving files from paradynd to dyninstAPI + moving references to dataReqNode
out of the ast class. The is the first pre-dyninstAPI commit! - naim

24 years agoMoving files from paradynd to dyninstAPI - naim
naim [Fri, 21 Feb 1997 20:10:31 +0000 (20:10 +0000)]
Moving files from paradynd to dyninstAPI - naim

24 years agoMoving files from paradynd to dyninstAPI - naim
naim [Fri, 21 Feb 1997 20:03:55 +0000 (20:03 +0000)]
Moving files from paradynd to dyninstAPI - naim

24 years agoMoving files to from paradynd to dyninstAPI - naim
naim [Fri, 21 Feb 1997 20:02:04 +0000 (20:02 +0000)]
Moving files to from paradynd to dyninstAPI - naim

24 years agoMoving files to dyninstAPI directory - naim
naim [Fri, 21 Feb 1997 19:57:59 +0000 (19:57 +0000)]
Moving files to dyninstAPI directory - naim

24 years agoMoving aix.C to different directory - naim
naim [Fri, 21 Feb 1997 19:44:21 +0000 (19:44 +0000)]
Moving aix.C to different directory - naim

24 years agoRemoving cmost.h - naim
naim [Fri, 21 Feb 1997 19:29:25 +0000 (19:29 +0000)]
Removing cmost.h - naim

24 years agoCleaned up some stuff, warnings, etc.
sec [Tue, 18 Feb 1997 21:35:38 +0000 (21:35 +0000)]
Cleaned up some stuff, warnings, etc.

24 years agoCleaned up some stuff
sec [Tue, 18 Feb 1997 21:35:07 +0000 (21:35 +0000)]
Cleaned up some stuff

24 years agoThere were some bugs in how the time was accessed, fixed those; I also
sec [Tue, 18 Feb 1997 21:34:37 +0000 (21:34 +0000)]
There were some bugs in how the time was accessed, fixed those; I also
removed DYNISTexecvp which is buggy, and is never called (it was called
for MPI stuff, but I replaced it with some modifications for poe/mpi in
paradyn/DMthread).

24 years agoRedefined how base trampolines for function exit/return points are created,
sec [Tue, 18 Feb 1997 21:30:23 +0000 (21:30 +0000)]
Redefined how base trampolines for function exit/return points are created,
inserted, executed, etc.  We are unable to always find (all of the)
return branches out of a function.  So intead, we modified how things are done
a bit.

By modifying the entry base trampoline of a function, and allocating a
few instructions, we are able to set the link register (which points to
the instruction where the pc will go to after it exits the function) to
point to the return base trampoline.  So, when the function exits it will
jump to the return base trampoline, which will reset the link register to
point to where it should really go--the original value of the link register,
where the function should really go after it exits--is stored on the stack,
in the callee's link-area word #4.

In order to get things working, and be a bit conservative, whenever an entry
or exit trampoline is created, the other one will also be created.  So you
will always have both, and entry and exit trampoline for a function.  This
is done to prevent us from going in and changing the entry trampoline when
an exit trampoline is added.

24 years agoAdded poe support
sec [Tue, 18 Feb 1997 21:25:15 +0000 (21:25 +0000)]
Added poe support

24 years agoCleaned up some code.
sec [Tue, 18 Feb 1997 21:24:24 +0000 (21:24 +0000)]
Cleaned up some code.

24 years agoAdded a field to instPoint, which identifies what the instrumentation
sec [Tue, 18 Feb 1997 21:24:09 +0000 (21:24 +0000)]
Added a field to instPoint, which identifies what the instrumentation
point is for (an enum saying ipFuncEntry, ipFuncReturn, ipFuncCallPoint).

24 years agoCleaned some code and removed some warning messages
sec [Tue, 18 Feb 1997 21:18:09 +0000 (21:18 +0000)]
Cleaned some code and removed some warning messages

24 years agoCleaned some code up
sec [Tue, 18 Feb 1997 21:17:35 +0000 (21:17 +0000)]
Cleaned some code up

24 years agoAdded 5 instructions to the base trampoline, 4 nops under the label of
sec [Tue, 18 Feb 1997 21:17:03 +0000 (21:17 +0000)]
Added 5 instructions to the base trampoline, 4 nops under the label of
UPDATE_LR, used to update the link register in function entry and exit
points.

24 years agoAdded some support for MPI functions, default instrumentation to catch
sec [Tue, 18 Feb 1997 21:16:04 +0000 (21:16 +0000)]
Added some support for MPI functions, default instrumentation to catch
the msg tags, etc.
Removed the default instrumentation for DYNISTexecFailed on the exit point
for exec; this was always being called, even when exec worked, due to how
AIX handles exec.  This should make exec work now.

24 years agoAdded a label, UPDATE_LR, used in tramp-power.S for the code which will
sec [Tue, 18 Feb 1997 21:13:36 +0000 (21:13 +0000)]
Added a label, UPDATE_LR, used in tramp-power.S for the code which will
update the link register.

24 years agoRedefined most of this include file. Alot of the representations for
sec [Tue, 18 Feb 1997 21:12:56 +0000 (21:12 +0000)]
Redefined most of this include file.  Alot of the representations for
instructions were in the form of PowerPC instructions, not Power2; I modified
it, cleaned it up, reduced some warnings, etc.  Some small bug fixes in what
instructions were used, etc.

24 years agoCleaned up some warning errors.
sec [Tue, 18 Feb 1997 21:11:47 +0000 (21:11 +0000)]
Cleaned up some warning errors.

24 years agoAdd poe daemon suport; modified dataManager::addExecutable to launch the
sec [Tue, 18 Feb 1997 21:10:42 +0000 (21:10 +0000)]
Add poe daemon suport; modified dataManager::addExecutable to launch the
poe daemon using IBM's 'poe' program (which will launch a program, in
this case paradynd, on a set of nodes.

24 years agoAdded a friend, class dataManager, to paradynDaemon; needed for POE support.
sec [Tue, 18 Feb 1997 21:09:10 +0000 (21:09 +0000)]
Added a friend, class dataManager, to paradynDaemon; needed for POE support.

24 years agoAdd poe daemon support.
sec [Tue, 18 Feb 1997 21:07:13 +0000 (21:07 +0000)]
Add poe daemon support.

24 years agochanged MaxActiveExperiments constant to guard against deadlock.
karavan [Thu, 6 Feb 1997 20:47:52 +0000 (20:47 +0000)]
changed MaxActiveExperiments constant to guard against deadlock.

24 years agoFixed a bug in the rs6000 version; we were jumping to the wrong location
sec [Tue, 4 Feb 1997 15:20:31 +0000 (15:20 +0000)]
Fixed a bug in the rs6000 version; we were jumping to the wrong location
in the base tramp after a mini-trampoline was deleted.

24 years agoChanges made for combining the long jump and short jump on solaris platform
lzheng [Mon, 3 Feb 1997 17:20:55 +0000 (17:20 +0000)]
Changes made for combining the long jump and short jump on solaris platform

24 years agoCombined the long jump and short jump for the instrumentation
lzheng [Mon, 3 Feb 1997 04:59:47 +0000 (04:59 +0000)]
Combined the long jump and short jump for the instrumentation

24 years agoinitial version of sparc-solaris makefile
newhall [Fri, 31 Jan 1997 22:20:38 +0000 (22:20 +0000)]
initial version of sparc-solaris makefile

24 years agoMinor fix that eliminates some warning messages when a pvm process ends - naim
naim [Fri, 31 Jan 1997 16:01:43 +0000 (16:01 +0000)]
Minor fix that eliminates some warning messages when a pvm process ends - naim

24 years agoFixing race condition between continueProc and inferiorRPC in progress - naim
naim [Fri, 31 Jan 1997 15:59:24 +0000 (15:59 +0000)]
Fixing race condition between continueProc and inferiorRPC in progress - naim

24 years agoemitInferiorRPCtrailer can now stop to make use of the result
tamches [Thu, 30 Jan 1997 18:31:06 +0000 (18:31 +0000)]
emitInferiorRPCtrailer can now stop to make use of the result

24 years agoreplace use of getMaxBranch1Insn() with
tamches [Thu, 30 Jan 1997 18:30:02 +0000 (18:30 +0000)]
replace use of getMaxBranch1Insn() with
offsetWithinRangeOfBranchInsn()

24 years agoreplaced getMaxBranch1Insn() with offsetWithinRangeOfBranchInsn()
tamches [Thu, 30 Jan 1997 18:29:25 +0000 (18:29 +0000)]
replaced getMaxBranch1Insn() with offsetWithinRangeOfBranchInsn()

24 years agoinferiorRPCs can now make use of the result, passing it to the callback
tamches [Thu, 30 Jan 1997 18:28:03 +0000 (18:28 +0000)]
inferiorRPCs can now make use of the result, passing it to the callback
function.  Added tryToFindExecutable(), createdViaAttach, wasRunningWhenAttached,
needToContinueAfterDYNINSTinit, isRunning(), getArgv0(),  getPathEnv(),
getCwdEnv().  removed PARADYND_TRACE_SOCKET env var.
attachProcess() no longer takes in a dir.

24 years agoadded getArgv0() as a shared object name to ignore...needed when attaching
tamches [Thu, 30 Jan 1997 18:23:10 +0000 (18:23 +0000)]
added getArgv0() as a shared object name to ignore...needed when attaching
to a process not being run from the current directory

24 years agoadded extract_string_ptr, extract_string, get_ps_stuff, isRunning,
tamches [Thu, 30 Jan 1997 18:22:04 +0000 (18:22 +0000)]
added extract_string_ptr, extract_string, get_ps_stuff, isRunning,
tryToFindExecutable, read_inferiorRPC_result_register

24 years agocall to procStopFromDYNINSTinit slightly changed to make use of its
tamches [Thu, 30 Jan 1997 18:20:35 +0000 (18:20 +0000)]
call to procStopFromDYNINSTinit slightly changed to make use of its
new features

24 years agoemitInferiorRPCtrailer revamped; can now stop to read the result value of
tamches [Thu, 30 Jan 1997 18:19:27 +0000 (18:19 +0000)]
emitInferiorRPCtrailer revamped; can now stop to read the result value of
an inferiorRPC

24 years agoemitInferiorRPCtrailer revamped...can now stop to read the return value
tamches [Thu, 30 Jan 1997 18:18:58 +0000 (18:18 +0000)]
emitInferiorRPCtrailer revamped...can now stop to read the return value
of an inferiorRPC

24 years agoattach no longer takes in a dir; takes in afterAttach
tamches [Thu, 30 Jan 1997 18:18:22 +0000 (18:18 +0000)]
attach no longer takes in a dir; takes in afterAttach

24 years agocontinueAllProcesses() won't try to continue an already-running process;
tamches [Thu, 30 Jan 1997 18:17:58 +0000 (18:17 +0000)]
continueAllProcesses() won't try to continue an already-running process;
pauseAllProcesses won't try to pause an already-paused process

24 years agocorrected use of demangName
tamches [Thu, 30 Jan 1997 18:15:59 +0000 (18:15 +0000)]
corrected use of demangName

24 years agofile() and name() are now const methods
tamches [Thu, 30 Jan 1997 18:14:36 +0000 (18:14 +0000)]
file() and name() are now const methods

24 years agoskeleton isRunning, tryToFindExecutable, and read_inferiorRPC_result_register
tamches [Thu, 30 Jan 1997 18:13:32 +0000 (18:13 +0000)]
skeleton isRunning, tryToFindExecutable, and read_inferiorRPC_result_register

24 years agoemitInferiorRPCtrailer has extra params for stopping to make use of
tamches [Thu, 30 Jan 1997 18:12:15 +0000 (18:12 +0000)]
emitInferiorRPCtrailer has extra params for stopping to make use of
the result.  skeleton isRunning, tryToFindExecutable, and
read_inferiorRPC_result_register

24 years agoattach() no longer takes in a dir name; takes in afterAttach
tamches [Thu, 30 Jan 1997 18:09:31 +0000 (18:09 +0000)]
attach() no longer takes in a dir name; takes in afterAttach

24 years agoUI version changed to "1.2 alpha 1"
tamches [Thu, 30 Jan 1997 18:08:25 +0000 (18:08 +0000)]
UI version changed to "1.2 alpha 1"

24 years agoimproved UI to attach (no longer takes in a directory; option on
tamches [Thu, 30 Jan 1997 18:08:07 +0000 (18:08 +0000)]
improved UI to attach (no longer takes in a directory; option on
whether to run/pause/asis after attaching)

24 years agoattach no longer takes in a dir
tamches [Thu, 30 Jan 1997 18:07:21 +0000 (18:07 +0000)]
attach no longer takes in a dir

24 years agonewProgramCallbackFunc takes in a runMe param
tamches [Thu, 30 Jan 1997 18:06:33 +0000 (18:06 +0000)]
newProgramCallbackFunc takes in a runMe param

24 years agoaddRunningProgram() takes in isInitiallyRunning flag;
tamches [Thu, 30 Jan 1997 18:05:46 +0000 (18:05 +0000)]
addRunningProgram() takes in isInitiallyRunning flag;
attach no longer takes in a dir

24 years agoattach() doesn't take in a dir anymore; it takes afterAttach integer.
tamches [Thu, 30 Jan 1997 18:00:50 +0000 (18:00 +0000)]
attach() doesn't take in a dir anymore; it takes afterAttach integer.
newProgramCallbackFunc now takes wantToInitiallyRun flag.

24 years agoadded "afterAttach" param to attach()
tamches [Thu, 30 Jan 1997 17:55:09 +0000 (17:55 +0000)]
added "afterAttach" param to attach()

24 years agoadded global var the_paradyndPid, which connectToDaemon() now uses
tamches [Thu, 30 Jan 1997 17:54:15 +0000 (17:54 +0000)]
added global var the_paradyndPid, which connectToDaemon() now uses
and DYNINSTinit takes as 3d param, and which obsoletes PARADYND_TRACE_SOCKET,
so an attached process can fork successfully.

24 years agoadded a non-const operator[]
tamches [Thu, 30 Jan 1997 17:49:48 +0000 (17:49 +0000)]
added a non-const operator[]

24 years agoadded concat_pathname_components, extractNextPathElem, exists_executable,
tamches [Thu, 30 Jan 1997 17:49:18 +0000 (17:49 +0000)]
added concat_pathname_components, extractNextPathElem, exists_executable,
and executableFromArgv0AndPathAndCwd

24 years agoremoved assert that all globals in .stab should be defined in .symtab
tamches [Thu, 30 Jan 1997 17:47:51 +0000 (17:47 +0000)]
removed assert that all globals in .stab should be defined in .symtab

24 years agoremoved some unused code that was not removed in my previous commit
newhall [Thu, 30 Jan 1997 15:51:33 +0000 (15:51 +0000)]
removed some unused code that was not removed in my previous commit

24 years agoPart of the base instrumentation for supporting multithreaded applications
naim [Mon, 27 Jan 1997 20:52:11 +0000 (20:52 +0000)]
Part of the base instrumentation for supporting multithreaded applications
(vectors of counter/timers) implemented for all current platforms +
different bug fixes - naim

24 years agoPart of the base instrumentation for supporting multithreaded applications
naim [Mon, 27 Jan 1997 19:35:52 +0000 (19:35 +0000)]
Part of the base instrumentation for supporting multithreaded applications
(vectors of counter/timers) implemented for all current platforms +
different bug fixes - naim

24 years agoadded declaration for processVec
mjrg [Thu, 23 Jan 1997 20:52:17 +0000 (20:52 +0000)]
added declaration for processVec

24 years agoCheck that a process has completed initialization before inserting instrumentation
mjrg [Thu, 23 Jan 1997 20:51:54 +0000 (20:51 +0000)]
Check that a process has completed initialization before inserting instrumentation

24 years agoChanges made to remove uncessary instructions
lzheng [Wed, 22 Jan 1997 15:49:28 +0000 (15:49 +0000)]
Changes made to remove uncessary instructions