Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92cfb886 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Revert "scripts/gdb: bail early if there are no generic PD"



This reverts commit 30ac77e9 which is
commit f19c3c2959e465209ade1a7a699e6cbf4359ce78 upstream.

It is not needed in Android systems, and it breaks the ABI for no real
reason, so revert it.

Bug: 161946584
Change-Id: I96195afffc4e2bb06d16b6489548b4b475b6599c
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 2bd517d6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
import gdb
import sys

from linux.utils import CachedType, gdb_eval_or_none
from linux.utils import CachedType
from linux.lists import list_for_each_entry

generic_pm_domain_type = CachedType('struct generic_pm_domain')
@@ -70,8 +70,6 @@ Output is similar to /sys/kernel/debug/pm_genpd/pm_genpd_summary'''
            gdb.write('    %-50s  %s\n' % (kobj_path, rtpm_status_str(dev)))

    def invoke(self, arg, from_tty):
        if gdb_eval_or_none("&gpd_list") is None:
            raise gdb.GdbError("No power domain(s) registered")
        gdb.write('domain                          status          children\n');
        gdb.write('    /device                                             runtime status\n');
        gdb.write('----------------------------------------------------------------------\n');