dyninst.git
18 years agoThis commit implements the functions BPatch_function::isSharedLib() and
jodom [Wed, 29 Jan 2003 23:01:22 +0000 (23:01 +0000)]
This commit implements the functions BPatch_function::isSharedLib() and
BPatch_module::isSharedLib().

18 years agoThis is a fix to process::replaceFunctionCall(). The problem was that
jodom [Wed, 29 Jan 2003 23:00:16 +0000 (23:00 +0000)]
This is a fix to process::replaceFunctionCall().  The problem was that
the address stored by the instPoint was relative to the start of the shared
object, and not absolute.  Because of this, a tramp would be inserted in
the wrong place.

The fix is only applied to SPARC at this time, although the problem may
exist for other archs as well.

18 years agoFixed bug in GUI where status of multiple proccesses on same host were all
pcroth [Wed, 29 Jan 2003 21:27:23 +0000 (21:27 +0000)]
Fixed bug in GUI where status of multiple proccesses on same host were all
displayed on the same status line, leaving other status lines for that host
empty.  Now have status output sent to correct status line for each process.

18 years agoLast commit was missing #ifdefs to make new code compatible with Paradyn-only
jodom [Tue, 28 Jan 2003 16:37:22 +0000 (16:37 +0000)]
Last commit was missing #ifdefs to make new code compatible with Paradyn-only
build.

18 years agofix dyninst's fork handling (broke when the new Solaris "proc" supported)
schendel [Tue, 28 Jan 2003 16:23:20 +0000 (16:23 +0000)]
fix dyninst's fork handling (broke when the new Solaris "proc" supported)
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
minor style change

18 years agofix dyninst's fork handling (broke when the new Solaris "proc" supported)
schendel [Tue, 28 Jan 2003 16:23:19 +0000 (16:23 +0000)]
fix dyninst's fork handling (broke when the new Solaris "proc" supported)
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
added process method markDyninstLibAlreadyLoaded() and getPreForkCallback();

18 years agofix dyninst's fork handling (broke when the new Solaris "proc" supported)
schendel [Tue, 28 Jan 2003 16:23:18 +0000 (16:23 +0000)]
fix dyninst's fork handling (broke when the new Solaris "proc" supported)
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
consider that a process stopped due to being at a trap a valid stop state
  when retrieving register information;
removed some debug tracing lines;
set the inherit-on-fork mode for processes which use a postForkCallback;
split Solaris function waitProcs, into two functions;
change back to old method on how get return value of trapped fork call;
added process method markDyninstLibAlreadyLoaded() and getPreForkCallback();

18 years agoThis commit fixes an issue with installing a base trampoline in a function
jodom [Tue, 28 Jan 2003 12:30:46 +0000 (12:30 +0000)]
This commit fixes an issue with installing a base trampoline in a function
which requires relocation.  Upon relocating the function, a new instPoint
is created.  However, the back pointer to the BPatch_point (instPoint::bppoint)
was not being set.

This patch addresses Solaris/SPARC only.

18 years agoadd system call interruption for x86 linux
zandy [Fri, 24 Jan 2003 22:53:35 +0000 (22:53 +0000)]
add system call interruption for x86 linux

18 years agoAdded semicolons missing from some rules.
pcroth [Fri, 24 Jan 2003 16:12:00 +0000 (16:12 +0000)]
Added semicolons missing from some rules.

18 years agoStray right parenthesis eliminated.
tlmiller [Fri, 24 Jan 2003 13:20:55 +0000 (13:20 +0000)]
Stray right parenthesis eliminated.

18 years agoIA-64: first successful dynamic instrumentation.
tlmiller [Thu, 23 Jan 2003 17:55:49 +0000 (17:55 +0000)]
IA-64: first successful dynamic instrumentation.

18 years agoThe IA-64 port doesn't do relocation, so eliminate the testing thereof.
tlmiller [Thu, 23 Jan 2003 17:09:18 +0000 (17:09 +0000)]
The IA-64 port doesn't do relocation, so eliminate the testing thereof.

18 years agoRemoved spurious targets, options, added -Wno-deprecated for cleanliness.
tlmiller [Thu, 23 Jan 2003 17:05:12 +0000 (17:05 +0000)]
Removed spurious targets, options, added -Wno-deprecated for cleanliness.

18 years agoReplaced handleStartProcess with initSharedObjects (better name)
bernat [Tue, 21 Jan 2003 17:47:17 +0000 (17:47 +0000)]
Replaced handleStartProcess with initSharedObjects (better name)
Moved call graph initialization (Paradyn) from initSharedObjects()
to handlepDyninstInit() (fixed MT bug).

18 years agoAdded comment describing AIX segfault
bernat [Fri, 17 Jan 2003 20:53:17 +0000 (20:53 +0000)]
Added comment describing AIX segfault

18 years agoFixes typo in "Close" menu; "persistent" was misspelled.
willb [Fri, 17 Jan 2003 19:00:04 +0000 (19:00 +0000)]
Fixes typo in "Close" menu; "persistent" was misspelled.

18 years agoremoving config.h from repository, should be created by configure command
darnold [Thu, 16 Jan 2003 18:48:27 +0000 (18:48 +0000)]
removing config.h from repository, should be created by configure command

18 years agocosmetic changes to reflect removal of MC_ in filenames
darnold [Thu, 16 Jan 2003 18:46:25 +0000 (18:46 +0000)]
cosmetic changes to reflect removal of MC_ in filenames

18 years agoChanges to support statistics collection.
willb [Wed, 15 Jan 2003 17:17:38 +0000 (17:17 +0000)]
Changes to support statistics collection.

18 years agoChanges to support asking other threads to exit cleanly.
willb [Wed, 15 Jan 2003 17:16:54 +0000 (17:16 +0000)]
Changes to support asking other threads to exit cleanly.

18 years agoChanges to support exiting cleanly when asked to by main thread.
willb [Wed, 15 Jan 2003 17:16:10 +0000 (17:16 +0000)]
Changes to support exiting cleanly when asked to by main thread.

18 years agoAutofix for PMAPI
bernat [Tue, 14 Jan 2003 20:07:11 +0000 (20:07 +0000)]
Autofix for PMAPI

18 years agoAdded microstate accounting flag to /proc flags
bernat [Tue, 14 Jan 2003 18:36:12 +0000 (18:36 +0000)]
Added microstate accounting flag to /proc flags

18 years agoChanged for buildability.
tlmiller [Mon, 13 Jan 2003 03:56:06 +0000 (03:56 +0000)]
Changed for buildability.

18 years agoremove _KERNEL conditional around declaration of qsort_cmpfunc_t - fixes kerninst...
mjbrim [Tue, 7 Jan 2003 21:36:42 +0000 (21:36 +0000)]
remove _KERNEL conditional around declaration of qsort_cmpfunc_t - fixes kerninst driver build errors

18 years agoFixed a bug where we were opening the wrong file
bernat [Tue, 7 Jan 2003 21:36:26 +0000 (21:36 +0000)]
Fixed a bug where we were opening the wrong file

18 years agoSwitched to new /proc interface
bernat [Mon, 6 Jan 2003 19:27:26 +0000 (19:27 +0000)]
Switched to new /proc interface

18 years agoFinished removing pthdebug references
bernat [Mon, 6 Jan 2003 19:27:02 +0000 (19:27 +0000)]
Finished removing pthdebug references

18 years agoNew Solaris /proc support - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 3 Jan 2003 21:57:44 +0000 (21:57 +0000)]
New Solaris /proc support  - - - - - - - - - - - - - - - - - - - - - - -
Added /proc interface

18 years agoNew Solaris /proc support - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 3 Jan 2003 21:57:40 +0000 (21:57 +0000)]
New Solaris /proc support  - - - - - - - - - - - - - - - - - - - - - - -
Removed ioctl-based /proc and moved to current /proc

18 years agoNew Solaris /proc support - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 3 Jan 2003 21:57:39 +0000 (21:57 +0000)]
New Solaris /proc support  - - - - - - - - - - - - - - - - - - - - - - -
Removed (unused) pthread debug library for AIX

18 years agoNew Solaris /proc support - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 3 Jan 2003 21:57:34 +0000 (21:57 +0000)]
New Solaris /proc support  - - - - - - - - - - - - - - - - - - - - - - -
clear_breakpoint_for_syscall_completion returns a boolean

18 years agoNew Solaris /proc support - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 3 Jan 2003 21:57:33 +0000 (21:57 +0000)]
New Solaris /proc support  - - - - - - - - - - - - - - - - - - - - - - -
Added new file descriptors for Solaris

18 years agoNew Solaris /proc support - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 3 Jan 2003 21:57:30 +0000 (21:57 +0000)]
New Solaris /proc support  - - - - - - - - - - - - - - - - - - - - - - -
Added (disabled) /proc support

18 years agoNew Solaris /proc support - - - - - - - - - - - - - - - - - - - - - - -
bernat [Fri, 3 Jan 2003 21:57:28 +0000 (21:57 +0000)]
New Solaris /proc support  - - - - - - - - - - - - - - - - - - - - - - -
Added sol_proc.C to build list

18 years agofixes an error in my recent commit that removed getProcedurePoint(); which was
jaw [Fri, 3 Jan 2003 06:59:57 +0000 (06:59 +0000)]
fixes an error in my recent commit that removed getProcedurePoint(); which was
causing test4 to fail.  Also fixes test1 for fortran mutatees on Solaris
(it turns out that findBPFunction() is currently necessary here because it
explicitly looks for the extra '_' in function names).  This should go away
when proper wildcarding is introduced into findFunction()).

18 years agorenamed list.h to List.h because Solaris native compiler was mistakenly
schendel [Thu, 2 Jan 2003 21:43:26 +0000 (21:43 +0000)]
renamed list.h to List.h because Solaris native compiler was mistakenly
including the STL list.h;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:41 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
fixed warnings when compiling with Solaris native compiler;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:40 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
included header file necessary when compiling with Solaris native compiler;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:39 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
moved process class members which, buffer, bufStart, and bufEnd, from
  process class to pd_process class;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:38 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
fixed warnings when compiling with Solaris native compiler;
moved process class members which, buffer, bufStart, and bufEnd, from
  process class to pd_process class;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:37 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
fixed warnings when compiling with Solaris native compiler;
fixed C++ syntax errors;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:36 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
fixed warnings when compiling with Solaris native compiler;
included header file necessary when compiling with Solaris native compiler;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:33 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
fixed warnings when compiling with Solaris native compiler;
since file uses tabs for indenting, added comment which switches
  users into tab style indenting under emacs;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:32 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
fixed memory bug in function processDirectories;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:31 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
removed building dyninst on Solaris with -g and -O0 (-O2) is the default,
-g and -O0 options were specified in an inappropriate place, plus I think
  we want to normally build dyninst without -g and with using the
  default -O2;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:30 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
changed macro from TYPENAME31 to TYPENAME and moved definition to
  common/h/language.h;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:21 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
renamed list.h to List.h because Solaris native compiler was mistakenly
including the STL list.h;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:14 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
created wrapper function for cplus_demangle;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:13 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
changed macro from TYPENAME31 to TYPENAME and moved definition to
  common/h/language.h;
fixed warnings when compiling with Solaris native compiler;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:12 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
moved TYPENAME definition to common/h/language.h;

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:11 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
removed unnecessary and at times error prone inclusion of make.config.local,
  the inclusion of nmake.config.local is still there

18 years agoupdates so dyninstAPI and the dyninstAPI tests can be built with the
schendel [Thu, 2 Jan 2003 19:51:04 +0000 (19:51 +0000)]
updates so dyninstAPI and the dyninstAPI tests can be built with the
Solaris native compiler  - - - - - - - - - - - - - - - - - - - - - - - -
added make variable SOLARIS_NATIVE, which when set will use the Solaris
native compiler when building dyninst and dyninst tests on Solaris

18 years agoThis commit removes BPatch_image::findProcedurePoint() from the
jaw [Sat, 21 Dec 2002 03:16:42 +0000 (03:16 +0000)]
This commit removes BPatch_image::findProcedurePoint() from the
dyninstAPI.  This was essentially a convenience function which returned a
single BPatch_point, given a char *fn_name and location type.  This
is incompatible with situation where there are two functions that have
the same name.

The preferred way to do this operation is to use findFunction(name) to
get a vector of BPatch_functions with <name>, select the BPatch_function
you are interested in, and then use BPatch_function::findPoint().

18 years agoThis commit fully changes the class name of "vector" to "pdvector".
jaw [Fri, 20 Dec 2002 07:49:52 +0000 (07:49 +0000)]
This commit fully changes the class name of "vector" to "pdvector".

A nice upshot is the removal of a bunch of code previously under the flag
USE_STL_VECTOR, which is no longer necessary in many cases where a
functional difference between common/h/Vector.h and stl::vector was
causing a crash.

Generally speaking, Dyninst and Paradyn now use pdvector exclusively.
This commit DOES NOT cover the USE_STL_VECTOR flag, which will now
substitute stl::vector for BPatch_Vector only.  This is currently, to
the best of my knowledge, only used by DPCL.  This will be updated and
tested in a future commit.

The purpose of this, again, is to create a further semantic difference
between two functionally different classes (which both have the same
[nearly] interface).

18 years agoAdded support for "array of strings" type.
pcroth [Thu, 19 Dec 2002 17:16:44 +0000 (17:16 +0000)]
Added support for "array of strings" type.

18 years agoFixed some signed/unsigned compiler warnings.
pcroth [Thu, 19 Dec 2002 17:12:00 +0000 (17:12 +0000)]
Fixed some signed/unsigned compiler warnings.

18 years agoMade parse error messages a bit more explicit.
pcroth [Thu, 19 Dec 2002 16:52:50 +0000 (16:52 +0000)]
Made parse error messages a bit more explicit.
Changed rule to make more efficient parser (?).

18 years agoChanged malloc/free to new/delete.
pcroth [Thu, 19 Dec 2002 16:47:27 +0000 (16:47 +0000)]
Changed malloc/free to new/delete.

18 years agoAdded methods for building the network with no backends and later
pcroth [Thu, 19 Dec 2002 16:38:33 +0000 (16:38 +0000)]
Added methods for building the network with no backends and later
connecting them.

18 years agoAdded a protocol constant for leaf information request/response messages.
pcroth [Thu, 19 Dec 2002 16:38:08 +0000 (16:38 +0000)]
Added a protocol constant for leaf information request/response messages.

18 years agoAdded support for requesting and collecting information about net leaf
pcroth [Thu, 19 Dec 2002 16:37:25 +0000 (16:37 +0000)]
Added support for requesting and collecting information about net leaf
processes.  Removed a large unused comment.

18 years agoAdded support for propagating leaf info requests and responses through the net.
pcroth [Thu, 19 Dec 2002 16:36:50 +0000 (16:36 +0000)]
Added support for propagating leaf info requests and responses through the net.
Added a termination check for internal node processes.

18 years agoAdded support for getting leaf information and connecting backends to leaves.
pcroth [Thu, 19 Dec 2002 16:36:02 +0000 (16:36 +0000)]
Added support for getting leaf information and connecting backends to leaves.
Changed to use new parser name prefix.

18 years agoAdded utility methods for accepting connections from remote processes.
pcroth [Thu, 19 Dec 2002 16:35:20 +0000 (16:35 +0000)]
Added utility methods for accepting connections from remote processes.
Added check for closed remote process connections.

18 years agoRe-generated from parser.y to use new name prefixes.
pcroth [Thu, 19 Dec 2002 16:34:08 +0000 (16:34 +0000)]
Re-generated from parser.y to use new name prefixes.

18 years agoChanged scanner symbol prefix to avoid name conflicts in programs with
pcroth [Thu, 19 Dec 2002 16:33:37 +0000 (16:33 +0000)]
Changed scanner symbol prefix to avoid name conflicts in programs with
multiple scanners.

18 years agoRemoved tmp_filename from thread-specific data
pcroth [Thu, 19 Dec 2002 16:33:09 +0000 (16:33 +0000)]
Removed tmp_filename from thread-specific data
Added protection in mc_printf in case it is called before TSD is set up

18 years agoFixed signed/unsigned compiler warning
pcroth [Thu, 19 Dec 2002 16:32:18 +0000 (16:32 +0000)]
Fixed signed/unsigned compiler warning

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:39:40 +0000 (16:39 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
minor style change

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:38:03 +0000 (16:38 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
minor style change;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:38:02 +0000 (16:38 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
don't clear the event field in the bootstrap record when pDYNININSTinit
  completes, exec handling needs to read this after pDYNININSTinit is
  called;
add mechanism for some initialization to get run before daemon gets
  signalled that a fork is ready to occur;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:59 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
add mechanism for some initialization to get run before daemon gets
  signalled that a fork is ready to occur;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:58 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
add mechanism for some initialization to get run before daemon gets
  signalled that a fork is ready to occur;
setup PMAPI groups appropriately when fork occurs;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:57 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fix bug where we weren't resetting the cumulativeValue member for the
  threadMetFocusNodes when handling fork;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:56 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fix bug where we were setting the freespace and highWaterMark members
  incorrectly in the shmMgr fork copy constructor;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:55 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
removed debugging trace lines;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:54 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
remove old fork and exec handling code;
added code to adjust all metric-focuses when an exec occurs;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:53 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
remove old fork and exec handling code;
added code to adjust all metric-focuses when an exec occurs;
add comment for fork handling;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:52 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
show an error message if metric-focus request failed because function
  or module couldn't be found;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:50 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
add ability for member deleteProcNode() to not remove machineMetFocusNode
  if no procNodes exist (if requested);
added function to adjust machineMetFocusNode for an execed process;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:49 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
add ability for member deleteProcNode() to not remove machineMetFocusNode
  if no procNodes exist (if requested);
make a copy of focus instead of using a reference;
fix incorrect checking of insertInstrumentation return value;
added function to adjust machineMetFocusNode for an execed process;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:48 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
instrument execve instead of __execve because we currently don't
  allow __execve to be instrumented (it's an internal function which we
  don't allow to be instrumented in certain cases);

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:47 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
added callback from dyninst to be called when an exec has completed;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:46 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
turn off building daemon on linux with -g;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:45 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fix for unusual behaviour on AIX when sending a trap for exec and/or
  checking for shared object mapping changes;
split variable dyninstName which represented both the dyninst and paradyn
  runtime libraries at different times into two variables, paradynRT_name
  and dyninstRT_name;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:44 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
cleaned up function dynamic_linking::handleIfDueToSharedObjectMapping

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:43 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
split variable dyninstName which represented both the dyninst and paradyn
  runtime libraries at different times into two variables, paradynRT_name
  and dyninstRT_name;
put paradyn specific function handleStopDueToExecEntry into ifdefs;
removed argument to handleCompletionOfpDYNINSTinit since unnecessary;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:42 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
split variable dyninstName which represented both the dyninst and paradyn
  runtime libraries at different times into two variables, paradynRT_name
  and dyninstRT_name;
when handling fork, now calling attach code before dyn_thread fork copy
  constructor, so that default lwp for new process will have been created;
update handleExec to handle some recently added process class members
  appropriately;
fixed bug where we were reading the dyninst bootstrap record where we
  should have been reading the paradyn bootstrap record;
put paradyn specific function handleStopDueToExecEntry into ifdefs;
removed argument to handleCompletionOfpDYNINSTinit since unnecessary;
added callback from dyninst to be called when an exec has completed;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:39 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
split variable dyninstName which represented both the dyninst and paradyn
  runtime libraries at different times into two variables, paradynRT_name
  and dyninstRT_name;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:37 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
changed deleteInst function so it returns false if instr. not deleted
  (because instr non-existant) instead of asserting, returns true if
  successful;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:36 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
changed dyn_thread copy constructor used for forks so will use default
  lwp from new process;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:35 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
added member that returns process associated with dyn_lwp;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:32 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
split variable dyninstName which represented both the dyninst and paradyn
  runtime libraries at different times into two variables, paradynRT_name
  and dyninstRT_name;
removed unused paradyn code in dyninst specific function;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:31 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
split variable dyninstName which represented both the dyninst and paradyn
  runtime libraries at different times into two variables, paradynRT_name
  and dyninstRT_name;
rename local variable and change function name of function getRTLibraryName
  to avoid confusion;

18 years agoresurrect to Paradyn's ability to handle execs in monitored processes;
schendel [Sat, 14 Dec 2002 16:37:28 +0000 (16:37 +0000)]
resurrect to Paradyn's ability to handle execs in monitored processes;
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
updated documentation for function BPatch_thread::getInheritedSnippet

18 years agoAdded mutatee_util.o to files linked with test1.mutatee_xlf90 on AIX.
buck [Fri, 13 Dec 2002 23:36:49 +0000 (23:36 +0000)]
Added mutatee_util.o to files linked with test1.mutatee_xlf90 on AIX.

18 years agoPre-instrument a few MPI-related functions on sparc to gather tag
mirg [Thu, 12 Dec 2002 20:21:05 +0000 (20:21 +0000)]
Pre-instrument a few MPI-related functions on sparc to gather tag
and communicator information, like we already do on other
platforms. The 6 argument limit is no longer an obstacle there.

18 years agoAllow caching of the return value of call expressions
mirg [Thu, 12 Dec 2002 20:20:45 +0000 (20:20 +0000)]
Allow caching of the return value of call expressions