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
Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git]
/
lunaix-os
/
scripts
/
gdb
/
lunadbg
/
syslog.py
diff --git
a/lunaix-os/scripts/gdb/lunadbg/syslog.py
b/lunaix-os/scripts/gdb/lunadbg/syslog.py
index 307b5f31cf4a713c38ce8354e01a17bb32896b40..e8a56c42a16a2b4c0a4f9c00dda70b22f575d3ba 100644
(file)
--- a/
lunaix-os/scripts/gdb/lunadbg/syslog.py
+++ b/
lunaix-os/scripts/gdb/lunadbg/syslog.py
@@
-17,8
+17,8
@@
class SysLogDump(gdb.Command):
print(f"[{time_str}] <L{self.log_level[lvl]}> {log.string()}")
def invoke(self, argument: str, from_tty: bool) -> None:
print(f"[{time_str}] <L{self.log_level[lvl]}> {log.string()}")
def invoke(self, argument: str, from_tty: bool) -> None:
- log_recs = LunaixSymbols.exported(SymbolDomain.DEBUG, "kprecs")
+ log_recs = LunaixSymbols.exported(SymbolDomain.DEBUG, "kpr
intf", "kpr
ecs")
head = log_recs.deref_and_access("kp_ents.ents").address
ent_type = gdb.lookup_type("struct kp_entry").pointer()
head = log_recs.deref_and_access("kp_ents.ents").address
ent_type = gdb.lookup_type("struct kp_entry").pointer()
- llist_foreach(head, ent_type, lambda a,b: self.syslog_entry_callback(a, b))
\ No newline at end of file
+ llist_foreach(head, ent_type,
"ents",
lambda a,b: self.syslog_entry_callback(a, b))
\ No newline at end of file