103 Commits

Author SHA1 Message Date
rginda%netscape.com
9dffd404bd bug 99601, add filter support to js/jsd, r=jband sr=brendan
large addition to the jsd_xpc component allows arbitrary filtering of debug hooks by url pattern, line range, and global object.  also adds ability to begin instrumenting jsscripts at app startup.


git-svn-id: svn://10.0.0.236/trunk@106689 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 13:41:32 +00:00
jaggernaut%netscape.com
56fd5dbc91 More REQUIRES clean-up.
git-svn-id: svn://10.0.0.236/trunk@105540 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 22:08:55 +00:00
rginda%netscape.com
af63e55a40 bug 103804, "Venkman doesn't like stopping in timeouts", r=jband, sr=shaver
add callback to the enterNestedEventLoop method


git-svn-id: svn://10.0.0.236/trunk@105018 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 06:35:46 +00:00
rginda%netscape.com
b285e0a763 bug 103831, r=cls, sr=jband
remove java stubs


git-svn-id: svn://10.0.0.236/trunk@104943 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-09 21:43:15 +00:00
rginda%netscape.com
9e5dd4fe59 bug 102785, r=dp, sr=shaver, a=asa
remove venkman startup listener so we don't have to load the dll at startup.
checking into 0.9.5 branch also.


git-svn-id: svn://10.0.0.236/trunk@104808 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 19:44:35 +00:00
jaggernaut%netscape.com
5bcb5cf396 Clean up REQUIRES lines.
git-svn-id: svn://10.0.0.236/trunk@104763 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-07 10:35:41 +00:00
jaggernaut%netscape.com
2fb527c1a2 Checking in updated mac project file for Venkman (the JS Debugger)
git-svn-id: svn://10.0.0.236/trunk@104255 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-30 12:39:29 +00:00
rginda%netscape.com
48eb12277f - not built -
remove java references, add jsd_xpc.cpp note, explain jsdb.


git-svn-id: svn://10.0.0.236/trunk@104254 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-30 08:52:04 +00:00
rginda%netscape.com
7d5c7774c2 move REQUIRES line above include config.mak, to fix bustage
git-svn-id: svn://10.0.0.236/trunk@104252 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-30 07:10:21 +00:00
rginda%netscape.com
97747926e4 fixing REQUIRES bustage
git-svn-id: svn://10.0.0.236/trunk@104250 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-30 06:28:38 +00:00
jaggernaut%netscape.com
51e0dc7a6c Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
rginda%netscape.com
22a97b8a46 - venkman only -
bug 100943, changes needed to build jsd on os/2
patch by Dainis Jonitis, r=mkaply,rginda


git-svn-id: svn://10.0.0.236/trunk@103530 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-22 01:39:24 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
2281a4d137 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103230 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 22:39:41 +00:00
jaggernaut%netscape.com
8b71ae9c91 Bug 73353: splitting the modules on the REQUIRES lines in Makefile.in across multiple lines to more clearly show the changes made. sr=alecf
git-svn-id: svn://10.0.0.236/trunk@103093 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 13:41:47 +00:00
rginda%netscape.com
8c7d55aef9 - venkman only -
init xpconnect on the debugger's default context so that xpconnect can use it when it has to.  r=jband


git-svn-id: svn://10.0.0.236/trunk@102366 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 01:34:44 +00:00
rginda%netscape.com
59d192da29 - venkman only -
turn off verbose debugging for me
push a thread event queue for necko before we enter a nested event loop


git-svn-id: svn://10.0.0.236/trunk@102328 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:29:59 +00:00
rginda%netscape.com
84b8ddf3ae -- not built --
exposing call hook functionality


git-svn-id: svn://10.0.0.236/trunk@102149 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:03:53 +00:00
rginda%netscape.com
a411916b1b -- not built --
whitespace cleanup


git-svn-id: svn://10.0.0.236/trunk@102148 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 18:01:28 +00:00
rginda%netscape.com
39016686cd - not built -
spruce up some comments
added, then comented out, jsdIDebuggerService::filterGlobalObject


git-svn-id: svn://10.0.0.236/trunk@101914 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:03:44 +00:00
rginda%netscape.com
f12cac4564 - not built -
whitespace tweakage


git-svn-id: svn://10.0.0.236/trunk@101913 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:02:28 +00:00
rginda%netscape.com
ccde950ed1 - not built -
don't allow gc's during script hooks if CAUTIOUS_SCRIPTHOOK is defined (which it is, by default.)  Should help with stability until we can fix the real problems.
Use JSVAL_ macros instead of JSD_* calls in jsdValue::GetJSType method, avoiding two c++ frames per call.


git-svn-id: svn://10.0.0.236/trunk@101912 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 22:02:07 +00:00
rginda%netscape.com
67a99ef7dc - not built -
modeline fix


git-svn-id: svn://10.0.0.236/trunk@101911 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:59:53 +00:00
cls%seawood.org
3b8b92a2e8 Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101008 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 07:59:59 +00:00
rginda%netscape.com
d8c5b0ae44 - not built -
add javadoc comments, remove jsdIScript::isActive, add jasIService::GC()


git-svn-id: svn://10.0.0.236/trunk@100263 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 05:15:27 +00:00
rginda%netscape.com
03a2c7e85e - not built -
remove isActive attribute from jsdScript (it's the same thing as isValid)
fix bug in jsdValue::GetDoubleValue()
add jsdService::GC()


git-svn-id: svn://10.0.0.236/trunk@100262 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 05:14:21 +00:00
cls%seawood.org
ab047b9066 Update REQUIRES for jsd
git-svn-id: svn://10.0.0.236/trunk@99631 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-20 05:33:34 +00:00
rginda%netscape.com
35911730fa - not built -
remove spaces from non debug definitions of DEBUG_*, bug 89240


git-svn-id: svn://10.0.0.236/trunk@98666 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-05 09:06:24 +00:00
rginda%netscape.com
e7c0aaeb78 - not built -
add jsdIEphemeral interface, inherit from it in interfaces that need to.


git-svn-id: svn://10.0.0.236/trunk@98578 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-03 22:22:58 +00:00
rginda%netscape.com
92375f22f6 - not built -
move debug object counters and various constructors to jsd_xpc.cpp
add LiveEphemeral struct to reperesent a link in a PRCList of ephemeral objects.
declare jsdIEphemeral interface in objects that need it, add invalidaAll static method to jsdIProperty and jsdIValue.  jsdIObject still needs work.


git-svn-id: svn://10.0.0.236/trunk@98577 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-03 22:21:56 +00:00
rginda%netscape.com
68b6b75a73 - not built -
Large changes to improve the way we deal with our wrappers around js engine structures.  jsdIScript, jsdIStackFrame, jsdIValue, and jsdIProperty interfaces now inherit from a new interface "jsdIEphemeral".  This interface is used to invalidate the wrapper.  Once the wrapper is invalidated, *most* methods throw NS_ERROR_NOT_AVAILABLE, some interfaces, such as jsdIScript, cache important information so that the wrapper isn't utterly useless once it has been invalidated.  The boolean isValid attribute can be used to see if the wrapper is still valid.

factor debug object counters into some simple macros
add new velid assertion macros for the new ephemeral objects
add utility functions for dealing with PR_CLISTs full of ephemeral objects.
invalidate the jsdIFrame after the execution hook completes
move some c/dtors from jsd_xpc.h over here to avoid exposing debug object counters, and repeating some macros
fix incorrectly set out parameter in getValue::GetDoubleValue


git-svn-id: svn://10.0.0.236/trunk@98576 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-03 22:19:04 +00:00
rginda%netscape.com
ddfac0a616 - not built -
Add isValid to jsdIScript
Add jsdIService::isOn


git-svn-id: svn://10.0.0.236/trunk@98154 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 07:47:22 +00:00
rginda%netscape.com
b629a02a62 - not built -
declare and initialize new provate members in jsdScript, copy important script properties at jsdScript creation time, so they're around after Invalidate().


git-svn-id: svn://10.0.0.236/trunk@98153 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 07:47:04 +00:00
rginda%netscape.com
07cb8fe673 - not built -
large changes to fix the following bugs:
82684, crash manually clearing breakpoint
*actually* clearing mValid in jsdScript::Invalidate fixed this one.

85636, assertions on quiting venkman
jsdService::Off now disconnects the hooks into JSD, to avoid calling back into js after that.  It also processes any pending script delete events that occurred during the last GC. The code to process the gPendingScripts list has been factored out of the gc callback.  Processing the dead script list allows us to properly finalize all of the jsdIScript object, which seems to clear up the "gc roots exist at shutdown" assertions.  In effect, these changes get rid of *all* of the jsd related assertions on exit.

Added isOn attribute to jsdIService.
Added isValid attribute to jsdIScript.  We now prefetch appropriate properties from the underlying JSDScript, so that it's available after the script is Invalidate()d

moved jsdService constructor to jsd_xpc.h

Save the runtime passed to OnForRuntime so we can use it to clear the GC Gallback in Off().


git-svn-id: svn://10.0.0.236/trunk@98152 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 07:46:36 +00:00
waterson%netscape.com
18986ada3f Land STATIC_BUILD_20010612_BRANCH, which supports building mozilla with components statically linked into the executable, as well as 'meta modules' that combine components into uber-DLLs.
git-svn-id: svn://10.0.0.236/trunk@97613 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 20:21:49 +00:00
valeski%netscape.com
b75b28be35 r=chak, sr=vidur, a=tor. 82000. removing unused arg from nsICategoryManager.
git-svn-id: svn://10.0.0.236/trunk@96452 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 21:25:57 +00:00
rginda%netscape.com
e0f36cbef2 - not built -
add enumerateScripts() method to jsdIDebugger service
don't create a new debugger context if the user trys to call on[ForRuntime]() multiple times


git-svn-id: svn://10.0.0.236/trunk@95587 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 07:18:10 +00:00
rginda%netscape.com
7b2d61c2b7 - not built -
add onForRuntime() method to jsdIDebuggerService to let native code turn on the deubgger (on() can only be called from js)
register an app-start observer so we can turn on the debugger at startup if "js.debugger.autostart" pref is true.
r=peterv, bug 81840


git-svn-id: svn://10.0.0.236/trunk@95583 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 06:00:12 +00:00
rginda%netscape.com
8a3e79369f bug 76050, use the same module name across the module. Fix senna bustage. r=cls
git-svn-id: svn://10.0.0.236/trunk@95037 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 20:40:43 +00:00
rginda%netscape.com
96d9080417 bug 76050, fix REQUIRES for jsd unix makefile. r=cls
git-svn-id: svn://10.0.0.236/trunk@95035 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 20:39:35 +00:00
rginda%netscape.com
35cc679664 fix to help senna tinderbox find PRClist
git-svn-id: svn://10.0.0.236/trunk@94973 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 07:55:34 +00:00
rginda%netscape.com
10ae8cb7e3 fix ports bustage
git-svn-id: svn://10.0.0.236/trunk@94972 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 07:42:58 +00:00
rginda%netscape.com
c4cf632983 - not built -
add required libraries to unix make


git-svn-id: svn://10.0.0.236/trunk@94900 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-14 21:59:01 +00:00
rginda%netscape.com
bc8594c1fc - not built -
check for valid PC in ClearBreakpoint
Lock script subsystem while clearing all breakpoints


git-svn-id: svn://10.0.0.236/trunk@94823 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-13 21:08:06 +00:00
rginda%netscape.com
7fbb46dcd5 - not built -
Convert JS_SetTrap closure to a jsval so it works like a GC thing.


git-svn-id: svn://10.0.0.236/trunk@94822 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-13 21:07:03 +00:00
rginda%netscape.com
b607b58895 - not built -
updating windows build goop


git-svn-id: svn://10.0.0.236/trunk@94000 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 23:44:07 +00:00
rginda%netscape.com
c184482966 - not built -
remove jsdIContext and jsdIThreadstate interfaces
add TYPE_BOOLEAN to jsdIValue
update callback signatures to reflect the removal of jsdIContext and jsdIThreadstate
add errorHook and throwHook attributes to jsdIDebuggerService


git-svn-id: svn://10.0.0.236/trunk@93977 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 22:16:27 +00:00
rginda%netscape.com
860f870445 - not built -
remove jsdContext and jsdThreadstate objects


git-svn-id: svn://10.0.0.236/trunk@93976 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 22:14:37 +00:00
rginda%netscape.com
6a4907263d - not built -
remove jsdThreadState and jsdContext objects.
consolidate ExecutionHook and BreakpointHook callbacks
remove return value checking from all methods (xpconnect does this for us.)


git-svn-id: svn://10.0.0.236/trunk@93975 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 22:14:04 +00:00