kernel/scripts/gdb/linux/clk.py
.. .. @@ -41,6 +41,8 @@ 41 41 self.show_subtree(child, level + 1) 42 42 43 43 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")44 46 gdb.write(" enable prepare protect \n") 45 47 gdb.write(" clock count count count rate \n") 46 48 gdb.write("------------------------------------------------------------------------\n")