Lines Matching refs:gdb
14 import gdb
24 gdb.events.new_objfile.disconnect(self._new_objfile_handler)
28 self._type = gdb.lookup_type(self._name)
30 raise gdb.GdbError(
32 if hasattr(gdb, 'events') and hasattr(gdb.events, 'new_objfile'):
33 gdb.events.new_objfile.connect(self._new_objfile_handler)
45 element = gdb.Value(0).cast(typeobj)
54 class ContainerOf(gdb.Function):
65 return container_of(ptr, gdb.lookup_type(typename.string()).pointer(),
80 endian = gdb.execute("show endian", to_string=True)
86 raise gdb.GdbError("unknown endianness '{0}'".format(str(endian)))
147 if hasattr(gdb.Frame, 'architecture'):
148 return arch in gdb.newest_frame().architecture().name()
152 target_arch = gdb.execute("show architecture", to_string=True)
165 gdb.events.exited.disconnect(exit_handler)
169 return gdb.execute("monitor info version", to_string=True) != ""
170 except gdb.error:
175 thread_info = gdb.execute("info thread 2", to_string=True)
177 except gdb.error:
186 if gdbserver_type is not None and hasattr(gdb, 'events'):
187 gdb.events.exited.connect(exit_handler)
193 return gdb.parse_and_eval(expresssion)
194 except gdb.error: