2009/4/20 Nicolas Cellier <[email protected]>: > Do you know how to dump Smalltalk process stacks from within the VM > debugger (I mean gdb) ? >
never mind, found it: (gdb) info functions .*[Ss]tack.* All functions matching regular expression ".*[Ss]tack.*": File gnu-interp.c: sqInt balancedStackafterPrimitivewithArgs(sqInt, sqInt, sqInt); sqInt fetchStackPointerOf(sqInt); sqInt okayActiveProcessStack(void); sqInt popStack(void); sqInt primitiveInstVarsPutFromStack(void); sqInt primitiveStoreStackp(void); sqInt printAllStacks(void); etc... (gdb) call printAllStacks() Process 2022647440 SharedQueue>findFirst: 2022647348 Semaphore>critical: 2022647256 BlockClosure>ensure: 2022647100 Semaphore>critical: 2022646948 SharedQueue>findFirst: 2022646856 InputEventSensor>peekKeyboardEvent 2022646764 InputEventSensor>keyboardPressed 2022646672 InputEventSensor>flushKeyboard 2022646580 Debugger>openNotifierContents:label: 2022646248 >openInterrupt:onProcess: 2022645324 DebuggerUnwindBug>testUnwindDebugger 2022645232 TestCase>performTest 2022645140 TestCase>runCase 2022645048 BlockClosure>ensure: 2022644916 TestCase>runCase 2022644824 TestResult>runCase: 2022644704 BlockClosure>on:do: 2022644560 TestResult>runCase: 2022644468 BlockClosure>on:do: 2022644340 TestResult>runCase: 2022644248 TestCase>run: 2022644156 TestRunner>runTest: 2022644064 TestRunner>runSuite: 2022643972 SequenceableCollection>do:displayingProgress: 2015446772 SequenceableCollection>withIndexDo: 2015446652 SequenceableCollection>do:displayingProgress: 2015446560 ProgressInitiationException>defaultAction 2015446384 BlockClosure>ensure: 2015446100 ProgressInitiationException>defaultAction 2015446008 UndefinedObject>handleSignal: 2015445916 ContextPart>handleSignal: 2015445824 Exception>signal 2015445684 ProgressInitiationException>display:at:from:to:during: 2015445592 >display:at:from:to:during: 2015445464 String>displayProgressAt:from:to:during: 2015445276 SequenceableCollection>do:displayingProgress: 2015445184 TestRunner>basicRunSuite:do: 2015445092 BlockClosure>ensure: 2015441744 TestRunner>basicRunSuite:do: 2015441652 TestRunner>runSuite: 2015348260 TestRunner>runAll 2015348168 PluggableButtonMorph>performAction 2015348052 PluggableButtonMorphPlus>performAction 2015347960 PluggableButtonMorph>mouseUp: 2015347868 SequenceableCollection>do: 2015344832 PluggableButtonMorph>mouseUp: 2015344696 PluggableButtonMorphPlus>mouseUp: 2015344604 Morph>handleMouseUp: 2015344512 MouseButtonEvent>sentTo: 2015344420 Morph>handleEvent: 2015344328 Morph>handleFocusEvent: 2015344148 HandMorph>sendFocusEvent:to:clear: 2015344056 PasteUpMorph>becomeActiveDuring: 2015343964 BlockClosure>on:do: 2015343872 PasteUpMorph>becomeActiveDuring: 2015343752 HandMorph>sendFocusEvent:to:clear: 2015343660 HandMorph>sendEvent:focus:clear: 2015343568 HandMorph>sendMouseEvent: 2015343420 HandMorph>handleEvent: 2015343268 HandMorph>processEvents 2015343156 WorldState>doOneCycleNowFor: 2015343064 SequenceableCollection>do: 2015342972 WorldState>handsDo: 2015342880 WorldState>doOneCycleNowFor: 2015342752 WorldState>doOneCycleFor: 2015342660 PasteUpMorph>doOneCycle 2008850980 >spawnNewProcess 2008850852 BlockClosure>newProcess Process 2010748656 >finalizationProcess 2010748564 >restartFinalizationProcess 2010748748 BlockClosure>newProcess Process 2022648416 Semaphore>critical: 2022648324 BlockClosure>ensure: 2022648168 Semaphore>critical: 2022648052 SharedQueue>nextPut: 2022647960 InputEventSensor>queueEvent: 2022647832 InputEventSensor>handleEvent: 2022647740 InputEventFetcher>signalEvent: 2022647624 OrderedCollection>do: 2022647532 InputEventFetcher>signalEvent: 2010762944 InputEventFetcher>eventLoop 2010762852 InputEventPollingFetcher>installEventLoop 2010763076 BlockClosure>newProcess Process 2022648508 >handleTimerEvent 2011103312 >? 2011103156 BlockClosure>on:do: 2011103064 >? 2011102972 >? 2011103464 BlockClosure>newProcess Process 2015023020 SystemDictionary>lowSpaceWatcher 2015022928 SystemDictionary>installLowSpaceWatcher 2015023152 BlockClosure>newProcess Process 2022646156 DebuggerUnwindBug>testUnwindDebugger 2022645848 Semaphore>critical: 2022645756 BlockClosure>ensure: 2022645664 Semaphore>critical: 2022645572 DebuggerUnwindBug>testUnwindDebugger 2022645940 BlockClosure>newProcess _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
