• 大小: 10.3MB
    文件类型: .rar
    金币: 2
    下载: 7 次
    发布日期: 2023-10-05
  • 语言: 其他
  • 标签: 对讲机  

资源简介

chirp-0.4.1-win32 手台通用写频软件 chirp-0.4.1-win32 手台通用写频软件

资源截图

代码片段和文件信息

import gdb

# This is not quite right as local vars may override symname
def read_global_var (symname):
    return gdb.selected_frame().read_var(symname)

def g_quark_to_string (quark):
    if quark == None:
        return None
    quark = long(quark)
    if quark == 0:
        return None
    val = read_global_var (“g_quarks“)
    max_q = long(read_global_var (“g_quark_seq_id“))
    if quark < max_q:
        return val[quark].string()
    return None

# We override the node printers too so that node->next is not expanded
class GListNodePrinter:
    “Prints a GList node“

    def __init__ (self val):
        self.val = val

    def to_string (self):
        return “{data=%s next=0x%x prev=0x%x}“ % (str(self.val[“data“]) long(self.val[“next“]) long(self.val[“prev“]))

class GSListNodePrinter:
    “Prints a GSList node“

    def __init__ (self val):
        self.val = val

    def to_string (self):
        return “{data=%s next=0x%x}“ % (str(self.val[“data“]) long(self.val[“next“]))

class GListPrinter:
    “Prints a GList“

    class _iterator:
        def __init__(self head listtype):
            self.link = head
            self.listtype = listtype
            self.count = 0

        def __iter__(self):
            return self

        def next(self):
            if self.link == 0:
                raise StopIteration
            data = self.link[‘data‘]
            self.link = self.link[‘next‘]
            count = self.count
            self.count = self.count + 1
            return (‘[%d]‘ % count data)

    def __init__ (self val listtype):
        self.val = val
        self.listtype = listtype

    def children(self):
        return self._iterator(self.val self.listtype)

    def to_string (self):
        return  “0x%x“ % (long(self.val))

    def display_hint (self):
        return “array“

class GHashPrinter:
    “Prints a GHashTable“

    class _iterator:
        def __init__(self ht keys_are_strings):
            self.ht = ht
            if ht != 0:
                self.array = ht[“nodes“]
                self.size = ht[“size“]
            self.pos = 0
            self.keys_are_strings = keys_are_strings
            self.value = None

        def __iter__(self):
            return self

        def next(self):
            if self.ht == 0:
                raise StopIteration
            if self.value != None:
                v = self.value
                self.value = None
                return v
            while long(self.pos) < long(self.size):
                node = self.array[self.pos]
                self.pos = self.pos + 1
                if long (node[“key_hash“]) >= 2:
                    key = node[“key“]
                    val = node[“value“]

                    if self.keys_are_strings:
                        key = key.cast (gdb.lookup_type(“char“).pointer())

                    # Queue value for next result
                    self.value = (‘[%dv]‘% (self.pos) val)

                    # Return key
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     230529  2012-02-08 23:51  libpng14-14.dll

     文件     986624  2010-11-02 02:41  libxml2.dll

     文件     205824  2010-11-02 02:43  libxmlmods.libxml2mod.pyd

     文件      47104  2010-11-02 02:43  libxmlmods.libxsltmod.pyd

     文件     172032  2010-11-02 02:42  libxslt.dll

     文件     111616  2011-04-09 10:03  pango.pyd

     文件      17920  2011-04-09 10:03  pangocairo.pyd

     文件     152576  2011-06-12 16:06  pyexpat.pyd

     文件    2206720  2011-06-12 16:09  python27.dll

     文件     354304  2011-02-26 10:02  pythoncom27.dll

     文件     110080  2011-02-27 08:13  pywintypes27.dll

     文件      11776  2011-06-12 16:06  select.pyd

     文件     688128  2011-06-12 16:06  unicodedata.pyd

     文件      49664  2011-06-12 16:05  w9xpopen.exe

     文件      96768  2011-02-26 10:00  win32api.pyd

     文件     265728  2011-02-26 10:05  win32com.shell.shell.pyd

     文件     112128  2011-02-26 09:59  win32file.pyd

     文件     167424  2011-02-26 10:00  win32gui.pyd

     文件     100352  2012-02-08 23:51  zlib1.dll

     文件        935  2012-02-08 23:50  etc\bash_completion.d\gdbus-bash-completion.sh

     文件       1930  2012-02-08 23:50  etc\bash_completion.d\gsettings-bash-completion.sh

     文件       5226  2012-02-08 23:50  etc\fonts\fonts.conf

     文件       6961  2012-02-08 23:50  etc\fonts\fonts.dtd

     文件        772  2012-02-28 11:06  etc\gtk-2.0\gtk.immodules

     文件        241  2012-02-08 23:51  etc\gtk-2.0\gtkrc

     文件        890  2012-02-08 23:51  etc\gtk-2.0\im-multipress.conf

     文件        736  2012-02-08 23:51  etc\pango\pango.aliases

     文件        160  2012-02-28 11:06  etc\pango\pango.modules

     文件       6921  2012-02-08 23:50  lib\atk-1.0.def

     文件      65076  2012-02-08 23:50  lib\atk-1.0.lib

............此处省略543个文件信息

评论

共有 条评论