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)
65 element = gdb.Value(0).cast(typeobj)
74 class ContainerOf(gdb.Function):
85 return container_of(ptr, gdb.lookup_type(typename.string()).pointer(),
100 endian = gdb.execute("show endian", to_string=True)
106 raise gdb.GdbError("unknown endianness '{0}'".format(str(endian)))
170 if hasattr(gdb.Frame, 'architecture'):
171 return arch in gdb.newest_frame().architecture().name()
175 target_arch = gdb.execute("show architecture", to_string=True)
188 gdb.events.exited.disconnect(exit_handler)
192 return gdb.execute("monitor info version", to_string=True) != ""
193 except gdb.error:
198 thread_info = gdb.execute("info thread 2", to_string=True)
200 except gdb.error:
209 if gdbserver_type is not None and hasattr(gdb, 'events'):
210 gdb.events.exited.connect(exit_handler)
216 return gdb.parse_and_eval(expresssion)
217 except gdb.error: