hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
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")