Home
last modified time | relevance | path

Searched refs:gdb (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/OK3568_Linux_fs/kernel/scripts/gdb/linux/
H A Dproc.py14 import gdb
22 class LxCmdLine(gdb.Command):
27 super(LxCmdLine, self).__init__("lx-cmdline", gdb.COMMAND_DATA)
30 gdb.write(gdb.parse_and_eval("saved_command_line").string() + "\n")
36 class LxVersion(gdb.Command):
41 super(LxVersion, self).__init__("lx-version", gdb.COMMAND_DATA)
45 gdb.write(gdb.parse_and_eval("(char *)linux_banner").string())
68 resource = gdb.parse_and_eval(resource_str)
74 gdb.write(" " * depth * 2 +
80 class LxIOMem(gdb.Command):
[all …]
H A Dcpus.py14 import gdb
24 return gdb.selected_thread().num - 1
26 tid = gdb.selected_thread().ptid[2]
32 raise gdb.GdbError("Sorry, obtaining the current CPU is not yet "
40 offset = gdb.parse_and_eval(
44 offset = gdb.parse_and_eval(
46 except gdb.error:
59 gdb.events.stop.disconnect(cpu_mask_invalidate)
60 if hasattr(gdb.events, 'new_objfile'):
61 gdb.events.new_objfile.disconnect(cpu_mask_invalidate)
[all …]
H A Dsymbols.py14 import gdb
21 if hasattr(gdb, 'Breakpoint'):
22 class LoadModuleBreakpoint(gdb.Breakpoint):
29 module = gdb.parse_and_eval("mod")
39 show_pagination = gdb.execute("show pagination", to_string=True)
41 gdb.execute("set pagination off")
44 gdb.write("refreshing all symbols to reload module "
51 gdb.execute("set pagination %s" % ("on" if pagination else "off"))
56 class LxSymbols(gdb.Command):
71 super(LxSymbols, self).__init__("lx-symbols", gdb.COMMAND_FILES,
[all …]
H A Dutils.py14 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)
46 element = gdb.Value(0).cast(typeobj)
55 class ContainerOf(gdb.Function):
66 return container_of(ptr, gdb.lookup_type(typename.string()).pointer(),
81 endian = gdb.execute("show endian", to_string=True)
[all …]
H A Dlists.py14 import gdb
64 raise gdb.GdbError('argument must be of type (struct list_head [*])')
67 gdb.write("Starting with: {}\n".format(c))
68 except gdb.MemoryError:
69 gdb.write('head is not accessible\n')
76 gdb.write('prev.next != current: '
85 except gdb.MemoryError:
86 gdb.write('prev is not accessible: '
94 gdb.write('next.prev != current: '
103 except gdb.MemoryError:
[all …]
H A Ddevice.py5 import gdb
36 for kobj in kset_for_each_object(gdb.parse_and_eval('bus_kset')):
43 for kobj in kset_for_each_object(gdb.parse_and_eval('class_kset')):
53 raise gdb.GdbError("Can't find bus type {!r}".format(name))
60 raise gdb.GdbError("Can't find device class {!r}".format(name))
91 gdb.write('{}dev {}:\t{}\n'.format('\t' * level, dev_name(dev), dev))
97 class LxDeviceListBus(gdb.Command):
101 super(LxDeviceListBus, self).__init__('lx-device-list-bus', gdb.COMMAND_DATA)
106 gdb.write('bus {}:\t{}\n'.format(bus['name'].string(), bus))
112 raise gdb.GdbError("Can't find bus {!r}".format(arg))
[all …]
H A Dclk.py5 import gdb
18 class LxClkSummary(gdb.Command):
27 super(LxClkSummary, self).__init__("lx-clk-summary", gdb.COMMAND_DATA)
30 gdb.write("%*s%-*s %7d %8d %8d %11lu%s\n" % (
44 gdb.write(" enable prepare protect \n")
45 gdb.write(" clock count count count rate \n")
46 gdb.write("------------------------------------------------------------------------\n")
47 for clk in clk_core_for_each_child(gdb.parse_and_eval("clk_root_list")):
49 for clk in clk_core_for_each_child(gdb.parse_and_eval("clk_orphan_list")):
56 class LxClkCoreLookup(gdb.Function):
[all …]
H A Dconfig.py5 import gdb
11 class LxConfigDump(gdb.Command):
17 super(LxConfigDump, self).__init__("lx-configdump", gdb.COMMAND_DATA,
18 gdb.COMPLETE_FILENAME)
27 py_config_ptr = gdb.parse_and_eval("&kernel_config_data")
28 py_config_ptr_end = gdb.parse_and_eval("&kernel_config_data_end")
30 except gdb.error as e:
31 raise gdb.GdbError("Can't find config, enable CONFIG_IKCONFIG?")
33 inf = gdb.inferiors()[0]
41 gdb.write("Dumped config to " + filename + "\n")
H A Dtasks.py14 import gdb
24 init_task = gdb.parse_and_eval("init_task").address
49 class LxTaskByPidFunc(gdb.Function):
63 raise gdb.GdbError("No task of PID " + str(pid))
69 class LxPs(gdb.Command):
73 super(LxPs, self).__init__("lx-ps", gdb.COMMAND_DATA)
76 gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM"))
78 gdb.write("{} {:^5} {}\n".format(
97 ia64_task_size = gdb.parse_and_eval("sizeof(struct task_struct)")
107 class LxThreadInfoFunc (gdb.Function):
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/gdb/python/gdb/command/
H A Dframe_filters.py20 import gdb
22 from gdb.FrameIterator import FrameIterator
23 from gdb.FrameDecorator import FrameDecorator
24 import gdb.frames
28 class SetFilterPrefixCmd(gdb.Command):
33 gdb.COMMAND_OBSCURE,
34 gdb.COMPLETE_NONE, True)
36 class ShowFilterPrefixCmd(gdb.Command):
40 gdb.COMMAND_OBSCURE,
41 gdb.COMPLETE_NONE, True)
[all …]
H A Dexplore.py19 import gdb
33 gdb.TYPE_CODE_CHAR,
34 gdb.TYPE_CODE_INT,
35 gdb.TYPE_CODE_BOOL,
36 gdb.TYPE_CODE_FLT,
37 gdb.TYPE_CODE_VOID,
38 gdb.TYPE_CODE_ENUM,
125 gdb.TYPE_CODE_CHAR : ScalarExplorer,
126 gdb.TYPE_CODE_INT : ScalarExplorer,
127 gdb.TYPE_CODE_BOOL : ScalarExplorer,
[all …]
H A Dtype_printers.py18 import gdb
22 class InfoTypePrinter(gdb.Command):
29 gdb.COMMAND_DATA)
47 for objfile in gdb.objfiles():
52 if gdb.current_progspace().type_printers:
54 self.list_type_printers(gdb.current_progspace().type_printers)
56 if gdb.type_printers:
58 self.list_type_printers(gdb.type_printers)
60 class _EnableOrDisableCommand(gdb.Command):
62 super(_EnableOrDisableCommand, self).__init__(name, gdb.COMMAND_DATA)
[all …]
H A Dunwinders.py17 import gdb
42 argv = gdb.string_to_argv(arg)
56 class InfoUnwinder(gdb.Command):
73 gdb.COMMAND_STACK)
94 self.list_unwinders("Global:", gdb.frame_unwinders,
97 cp = gdb.current_progspace()
100 for objfile in gdb.objfiles():
130 total += do_enable_unwinder1(gdb.frame_unwinders, name_re, flag)
132 total += do_enable_unwinder1(gdb.current_progspace().frame_unwinders,
134 for objfile in gdb.objfiles():
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/gdb/python/gdb/command/
H A Dframe_filters.py20 import gdb
22 from gdb.FrameIterator import FrameIterator
23 from gdb.FrameDecorator import FrameDecorator
24 import gdb.frames
28 class SetFilterPrefixCmd(gdb.Command):
33 gdb.COMMAND_OBSCURE,
34 gdb.COMPLETE_NONE, True)
36 class ShowFilterPrefixCmd(gdb.Command):
40 gdb.COMMAND_OBSCURE,
41 gdb.COMPLETE_NONE, True)
[all …]
H A Dexplore.py19 import gdb
33 gdb.TYPE_CODE_CHAR,
34 gdb.TYPE_CODE_INT,
35 gdb.TYPE_CODE_BOOL,
36 gdb.TYPE_CODE_FLT,
37 gdb.TYPE_CODE_VOID,
38 gdb.TYPE_CODE_ENUM,
125 gdb.TYPE_CODE_CHAR : ScalarExplorer,
126 gdb.TYPE_CODE_INT : ScalarExplorer,
127 gdb.TYPE_CODE_BOOL : ScalarExplorer,
[all …]
H A Dtype_printers.py18 import gdb
22 class InfoTypePrinter(gdb.Command):
29 gdb.COMMAND_DATA)
47 for objfile in gdb.objfiles():
52 if gdb.current_progspace().type_printers:
54 self.list_type_printers(gdb.current_progspace().type_printers)
56 if gdb.type_printers:
58 self.list_type_printers(gdb.type_printers)
60 class _EnableOrDisableCommand(gdb.Command):
62 super(_EnableOrDisableCommand, self).__init__(name, gdb.COMMAND_DATA)
[all …]
H A Dunwinders.py17 import gdb
42 argv = gdb.string_to_argv(arg)
56 class InfoUnwinder(gdb.Command):
73 gdb.COMMAND_STACK)
94 self.list_unwinders("Global:", gdb.frame_unwinders,
97 cp = gdb.current_progspace()
100 for objfile in gdb.objfiles():
130 total += do_enable_unwinder1(gdb.frame_unwinders, name_re, flag)
132 total += do_enable_unwinder1(gdb.current_progspace().frame_unwinders,
134 for objfile in gdb.objfiles():
[all …]
/OK3568_Linux_fs/buildroot/package/gdb/11.2/
H A D0009-gdb-Fix-native-build-on-xtensa.patch4 Subject: [PATCH] gdb: Fix native build on xtensa
9 Apply a similar fix than for Alpha architecture on gdb 9:
10 https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=7a27b85f6d9b5eea9bd1493f903158fbea4b2…
14 ../../gdb/xtensa-linux-nat.c: In function ‘void fill_gregset(const regcache*, elf_greg_t (*)[128], …
15 ../../gdb/xtensa-linux-nat.c:66:17: error: ‘gdbarch_pc_regnum’ was not declared in this scope
19 ../../gdb/xtensa-linux-nat.c:68:17: error: ‘gdbarch_ps_regnum’ was not declared in this scope
22 ../../gdb/xtensa-linux-nat.c:71:38: error: no matching function for call to ‘gdbarch_tdep::gdbarch_…
25 In file included from ../../gdb/xtensa-linux-nat.c:38:
26 ../../gdb/xtensa-tdep.h:160:8: note: candidate: ‘gdbarch_tdep::gdbarch_tdep()’
29 ../../gdb/xtensa-tdep.h:160:8: note: candidate expects 0 arguments, 1 provided
[all …]
/OK3568_Linux_fs/buildroot/package/gdb/12.1/
H A D0009-gdb-Fix-native-build-on-xtensa.patch4 Subject: [PATCH] gdb: Fix native build on xtensa
9 Apply a similar fix than for Alpha architecture on gdb 9:
10 https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=7a27b85f6d9b5eea9bd1493f903158fbea4b2…
14 ../../gdb/xtensa-linux-nat.c: In function ‘void fill_gregset(const regcache*, elf_greg_t (*)[128], …
15 ../../gdb/xtensa-linux-nat.c:66:17: error: ‘gdbarch_pc_regnum’ was not declared in this scope
19 ../../gdb/xtensa-linux-nat.c:68:17: error: ‘gdbarch_ps_regnum’ was not declared in this scope
22 ../../gdb/xtensa-linux-nat.c:71:38: error: no matching function for call to ‘gdbarch_tdep::gdbarch_…
25 In file included from ../../gdb/xtensa-linux-nat.c:38:
26 ../../gdb/xtensa-tdep.h:160:8: note: candidate: ‘gdbarch_tdep::gdbarch_tdep()’
29 ../../gdb/xtensa-tdep.h:160:8: note: candidate expects 0 arguments, 1 provided
[all …]
/OK3568_Linux_fs/buildroot/package/gdb/10.2/
H A D0009-gdb-Fix-native-build-on-xtensa.patch4 Subject: [PATCH] gdb: Fix native build on xtensa
9 Apply a similar fix than for Alpha architecture on gdb 9:
10 https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=7a27b85f6d9b5eea9bd1493f903158fbea4b2…
14 ../../gdb/xtensa-linux-nat.c: In function ‘void fill_gregset(const regcache*, elf_greg_t (*)[128], …
15 ../../gdb/xtensa-linux-nat.c:66:17: error: ‘gdbarch_pc_regnum’ was not declared in this scope
19 ../../gdb/xtensa-linux-nat.c:68:17: error: ‘gdbarch_ps_regnum’ was not declared in this scope
22 ../../gdb/xtensa-linux-nat.c:71:38: error: no matching function for call to ‘gdbarch_tdep::gdbarch_…
25 In file included from ../../gdb/xtensa-linux-nat.c:38:
26 ../../gdb/xtensa-tdep.h:160:8: note: candidate: ‘gdbarch_tdep::gdbarch_tdep()’
29 ../../gdb/xtensa-tdep.h:160:8: note: candidate expects 0 arguments, 1 provided
[all …]
/OK3568_Linux_fs/yocto/meta-clang/recipes-devtools/gdb/gdb/
H A D0001-gdb-Link-with-latomic-for-riscv-clang-alone.patch4 Subject: [PATCH] gdb: Link with -latomic for riscv/clang alone
8 gdb/Makefile.in | 2 +-
11 diff --git a/gdb/Makefile.in b/gdb/Makefile.in
13 --- a/gdb/Makefile.in
14 +++ b/gdb/Makefile.in
15 @@ -1889,7 +1889,7 @@ gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(CDEPS) $(TDEPLIBS)
16 $(SILENCE) rm -f gdb$(EXEEXT)
18 -o gdb$(EXEEXT) gdb.o $(LIBGDB_OBS) \
22 $(ECHO_SIGN) $(CODESIGN) -s $(CODESIGN_CERT) gdb$(EXEEXT)
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/gcc-10.3.1/python/libstdcxx/v6/
H A Dxmethods.py18 import gdb
19 import gdb.xmethod
25 return gdb.lookup_type('bool')
28 return gdb.lookup_type('std::size_t')
30 class LibStdCxxXMethod(gdb.xmethod.XMethod):
32 gdb.xmethod.XMethod.__init__(self, name)
37 class ArrayWorkerBase(gdb.xmethod.XMethodWorker):
43 nullptr = gdb.parse_and_eval('(void *) 0')
136 class ArrayMethodsMatcher(gdb.xmethod.XMethodMatcher):
138 gdb.xmethod.XMethodMatcher.__init__(self,
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/gcc-10.3.1/python/libstdcxx/v6/
H A Dxmethods.py18 import gdb
19 import gdb.xmethod
25 return gdb.lookup_type('bool')
28 return gdb.lookup_type('std::size_t')
30 class LibStdCxxXMethod(gdb.xmethod.XMethod):
32 gdb.xmethod.XMethod.__init__(self, name)
37 class ArrayWorkerBase(gdb.xmethod.XMethodWorker):
43 nullptr = gdb.parse_and_eval('(void *) 0')
136 class ArrayMethodsMatcher(gdb.xmethod.XMethodMatcher):
138 gdb.xmethod.XMethodMatcher.__init__(self,
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/gdb/python/gdb/
H A Dtypes.py19 import gdb
33 while (type_.code == gdb.TYPE_CODE_REF or
34 type_.code == gdb.TYPE_CODE_RVALUE_REF or
35 type_.code == gdb.TYPE_CODE_TYPEDEF):
36 if (type_.code == gdb.TYPE_CODE_REF or
37 type_.code == gdb.TYPE_CODE_RVALUE_REF):
60 if (type_.code != gdb.TYPE_CODE_STRUCT and
61 type_.code != gdb.TYPE_CODE_UNION):
87 if enum_type.code != gdb.TYPE_CODE_ENUM:
151 for objfile in gdb.objfiles():
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/gdb/python/gdb/
H A Dtypes.py19 import gdb
33 while (type_.code == gdb.TYPE_CODE_REF or
34 type_.code == gdb.TYPE_CODE_RVALUE_REF or
35 type_.code == gdb.TYPE_CODE_TYPEDEF):
36 if (type_.code == gdb.TYPE_CODE_REF or
37 type_.code == gdb.TYPE_CODE_RVALUE_REF):
60 if (type_.code != gdb.TYPE_CODE_STRUCT and
61 type_.code != gdb.TYPE_CODE_UNION):
87 if enum_type.code != gdb.TYPE_CODE_ENUM:
151 for objfile in gdb.objfiles():
[all …]

12345678910>>...13