git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git]
/
lunaix-os
/
scripts
/
gdb
/
lunadbg
/
sched_dump.py
diff --git
a/lunaix-os/scripts/gdb/lunadbg/sched_dump.py
b/lunaix-os/scripts/gdb/lunadbg/sched_dump.py
index 9621f02e0a667598356a108f38f148f7d0b13aaa..4dce934a6d2fb630599705e01a6fa87fc5e8b910 100644
(file)
--- a/
lunaix-os/scripts/gdb/lunadbg/sched_dump.py
+++ b/
lunaix-os/scripts/gdb/lunadbg/sched_dump.py
@@
-10,9
+10,9
@@
class ProcessDump(LunadbgCommand):
def __init__(self) -> None:
super().__init__("proc")
def __init__(self) -> None:
super().__init__("proc")
- def
invoke(self, argument: str, from_tty: bool) -> None
:
+ def
execute(self, parsed, gdb_args, from_tty)
:
pp = MyPrettyPrinter()
pp = MyPrettyPrinter()
- ProcInfo.process_at(
argument
).print_detailed(pp)
+ ProcInfo.process_at(
gdb_args
).print_detailed(pp)
class SchedulerDump(LunadbgCommand):
class SchedulerDump(LunadbgCommand):
@@
-23,11
+23,7
@@
class SchedulerDump(LunadbgCommand):
self._parser.add_argument("-l", "--long-list",
required=False, default=False, action='store_true')
self._parser.add_argument("-l", "--long-list",
required=False, default=False, action='store_true')
- def invoke(self, argument: str, from_tty: bool) -> None:
- args = self._parse_args(argument)
- if args is None:
- return
-
+ def on_execute(self, args, gdb_args, from_tty):
sched_context = gdb.parse_and_eval("&sched_ctx")
sched = Scheduler(sched_context)
sched_context = gdb.parse_and_eval("&sched_ctx")
sched = Scheduler(sched_context)