def addr_in_funcs_table(self, pc):
     return pytable_utils.has_results(self._sdb.db.funcstable,
                                      "(startaddr <= 0x%x) & (0x%x < endaddr)" % (pc, pc))
 def is_pc_longwrite(self, pc):
     query = "0x%x == writeaddr" % pc
     return pytable_utils.has_results(self._sdb.db.longwritestable, query)
 def addr_in_srcs_table(self, pc):
     return pytable_utils.has_results(self._sdb.db.srcstable, "addr == 0x%x" % pc)
 def is_smc(self, pc):
     query = "pc == 0x%x" % pc
     return pytable_utils.has_results(self._sdb.db.smcstable, query)
 def skip_pc(self, pc):
     query = "(pc <= 0x%x) & (0x%x < resumepc)" % (pc, pc)
     return pytable_utils.has_results(self._sdb.db.skipstable, query)
 def name_in_relocs_table(self, name):
     return pytable_utils.has_results(self._sdb.db.relocstable, 'name == "%s"' % name)
Пример #7
0
 def addr_in_funcs_table(self, pc):
     return pytable_utils.has_results(
         self._sdb.db.funcstable,
         "(startaddrlo <= 0x%x) & (startaddrhi <= 0x%x) & (0x%x < endaddrlo) & (0x%x <= endaddrhi)"
         % (utils.addr_lo(pc), utils.addr_hi(pc), utils.addr_lo(pc),
            utils.addr_hi(pc)))
Пример #8
0
 def addr_in_srcs_table(self, pc):
     return pytable_utils.has_results(
         self._sdb.db.srcstable, "(addrlo == 0x%x) & (addrhi == 0x%x)" %
         (utils.addr_lo(pc), utils.addr_hi(pc)))
Пример #9
0
 def is_pc_longwrite(self, pc):
     query = "(0x%x == writeaddrlo) & (0x%x == writeaddrhi)" % \
         (utils.addr_lo(pc),
          utils.addr_hi(pc))
     return pytable_utils.has_results(self._sdb.db.longwritestable, query)
Пример #10
0
 def skip_pc(self, pc):
     query = "(pclo <= 0x%x) & (pchi <= 0x%x) & " \
         "(0x%x < resumepclo) & (0x%x <= resumepchi)" \
         % (utils.addr_lo(pc), utils.addr_hi(pc),
            utils.addr_lo(pc), utils.addr_hi(pc))
     return pytable_utils.has_results(self._sdb.db.skipstable, query)