forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/scripts/gdb/linux/clk.py
....@@ -41,6 +41,8 @@
4141 self.show_subtree(child, level + 1)
4242
4343 def invoke(self, arg, from_tty):
44
+ if utils.gdb_eval_or_none("clk_root_list") is None:
45
+ raise gdb.GdbError("No clocks registered")
4446 gdb.write(" enable prepare protect \n")
4547 gdb.write(" clock count count count rate \n")
4648 gdb.write("------------------------------------------------------------------------\n")