| /freebsd/tools/tools/kgdb/ |
| H A D | tcplog.py | 77 class TCPLogDump(gdb.Command): 81 "tcplog_dump", gdb.COMMAND_USER 112 inf = gdb.inferiors()[0] # in a coredump this should always be safe 115 hdrlen = gdb.parse_and_eval("sizeof(struct tcp_log_header)") 118 inp = tcpcb.cast(gdb.lookup_type("struct inpcb").pointer()) 121 bufaddr = gdb.parse_and_eval( 123 length = gdb.parse_and_eval("sizeof(struct in_endpoints)") 158 length = gdb.parse_and_eval("sizeof(struct tcp_log_buffer)") 160 length = gdb.parse_and_eval("&((struct tcp_log_buffer *) 0)->tlb_th") 162 bufaddr = gdb.parse_and_eval("&(((struct tcp_log_mem *){})->tlm_buf)".format(eaddr)) [all …]
|
| /freebsd/contrib/netbsd-tests/usr.bin/gdb/ |
| H A D | t_regress.sh | 41 cat <<EOF >test.gdb 49 gdb --batch -x test.gdb dig >gdb.out 50 atf_check -s exit:1 -o ignore -e ignore grep "Program received signal SIGTRAP" gdb.out 66 cat <<EOF >test.gdb 70 gdb --batch -x test.gdb ./test >gdb.out 2>&1 71 atf_check -s exit:1 -o ignore -e ignore grep "annot access memory" gdb.out
|
| /freebsd/sys/tools/gdb/ |
| H A D | pcpu.py | 7 import gdb 11 class pcpu(gdb.Function): 26 cpuid = tdfind(gdb.selected_thread().ptid[2])['td_oncpu'] 28 raise gdb.error("Currently selected thread is off-CPU") 30 raise gdb.error(f"Currently selected on invalid CPU {cpuid}") 35 for f in gdb.lookup_type("struct pcpu").fields(): 40 return val.cast(gdb.lookup_type("uintptr_t")) 49 block = gdb.block_for_pc(lf['ops']['cls']['methods'][0]['func']) 50 elf_file_t = gdb.lookup_type("elf_file_t", block).target() 72 raise gdb.error(f"{path} has unexpected linker file type {file_type}") [all …]
|
| H A D | vnet.py | 7 import gdb 11 class vnet(gdb.Function): 29 if gdb.lookup_symbol("sysctl___kern_features_vimage")[0] is None: 34 vnet = tdfind(gdb.selected_thread().ptid[2])['td_vnet'] 45 raise gdb.error(f"No prison named {vnet}") 48 return val.cast(gdb.lookup_type("uintptr_t")) 66 block = gdb.block_for_pc(lf['ops']['cls']['methods'][0]['func']) 67 elf_file_t = gdb.lookup_type("elf_file_t", block).target() 91 raise gdb.error(f"{path} has unexpected linker file type {file_type}") 96 obj = gdb.Value(vnet_data_base + vnet_entry_addr - start + base)
|
| H A D | acttrace.py | 10 import gdb 15 class acttrace(gdb.Command): 22 super(acttrace, self).__init__("acttrace", gdb.COMMAND_USER) 26 curthread = gdb.selected_thread() 34 raise gdb.error(f"failed to find GDB thread with TID {tid}") 41 gdb.execute("bt")
|
| H A D | freebsd.py | 7 import gdb 11 sym = gdb.lookup_global_symbol(name) 13 sym = gdb.lookup_static_symbol(name) 15 raise gdb.GdbError(f"Symbol '{name}' not found") 55 for thread in gdb.inferiors()[0].threads():
|
| H A D | selftest.py | 7 import gdb 24 gdb.execute(cmd) 25 except gdb.error as e:
|
| H A D | README.txt | 5 utility should be added to freebsd.py. sys/tools/kernel-gdb.py is installed 12 them from /usr/lib/debug/boot/kernel/gdb/*. 17 the script with "python import selftest" in (k)gdb. 21 kgdb-reload Reload all gdb modules, useful when developing the modules
|
| /freebsd/targets/pseudo/userland/gnu/ |
| H A D | Makefile.depend | 22 gnu/usr.bin/gdb/doc \ 23 gnu/usr.bin/gdb/gdb \ 24 gnu/usr.bin/gdb/gdbserver \ 25 gnu/usr.bin/gdb/kgdb \ 26 gnu/usr.bin/gdb/libgdb \
|
| /freebsd/crypto/openssh/regress/ |
| H A D | agent-ptrace.sh | 20 if have_prog gdb ; then 51 gdb ${SSHAGENT} ${SSH_AGENT_PID} > ${OBJ}/gdb.out 2>&1 << EOF 58 …|Invalid argument.|Unable to access task|Inappropriate ioctl for device.' >/dev/null ${OBJ}/gdb.out 60 rm -f ${OBJ}/gdb.out
|
| /freebsd/contrib/kyua/utils/ |
| H A D | stacktrace.cpp | 187 const fs::path gdb(builtin_gdb); in find_gdb() local 188 if (gdb.is_absolute()) in find_gdb() 189 return utils::make_optional(gdb); in find_gdb() 191 return fs::find_in_path(gdb.c_str()); in find_gdb() 306 const optional< fs::path > gdb = utils::find_gdb(); in dump_stacktrace() local 307 if (!gdb) { in dump_stacktrace() 323 run_gdb(gdb.get(), program, core_file.get()), in dump_stacktrace()
|
| H A D | stacktrace_test.cpp | 280 optional< fs::path > gdb = utils::find_gdb(); in ATF_TEST_CASE_BODY() local 281 ATF_REQUIRE(gdb); in ATF_TEST_CASE_BODY() 282 ATF_REQUIRE_EQ("/path/to/gdb", gdb.get().str()); in ATF_TEST_CASE_BODY() 296 optional< fs::path > gdb = utils::find_gdb(); in ATF_TEST_CASE_BODY() local 297 ATF_REQUIRE(gdb); in ATF_TEST_CASE_BODY() 298 ATF_REQUIRE_EQ(exp_gdb, gdb.get()); in ATF_TEST_CASE_BODY() 307 optional< fs::path > gdb = utils::find_gdb(); in ATF_TEST_CASE_BODY() local 308 ATF_REQUIRE(!gdb); in ATF_TEST_CASE_BODY() 316 optional< fs::path > gdb = utils::find_gdb(); in ATF_TEST_CASE_BODY() local 317 ATF_REQUIRE(!gdb); in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd/tools/debugscripts/ |
| H A D | README | 2 This directory contains gdb macros for kernel debugging. When you 9 # gdb kernel.debug 17 automatically extracts the path to the kernel source, runs gdb to extract 18 information about kernel modules loaded, and then reruns gdb loading the
|
| H A D | dot.gdbinit | 11 # gdb kernel.debug 13 # Read gdb(4) for more details. 72 # trouble here is that it's a pain to use, since gdb doesn't have the 80 # Improvements in gdb should make this go away some day.
|
| /freebsd/sbin/savecore/tests/ |
| H A D | livedump_test.sh | 25 cat >./kldstat.gdb <<'__EOF__' 39 echo "source ./kldstat.gdb" > ./script.gdb 41 kgdb -q ${kernel} ./livecore.0 < ./script.gdb
|
| /freebsd/sys/tools/ |
| H A D | kernel-gdb.py | 31 class reload(gdb.Command): 36 super(reload, self).__init__("kgdb-reload", gdb.COMMAND_USER)
|
| /freebsd/contrib/llvm-project/lldb/docs/man/ |
| H A D | lldb-server.rst | 36 Runs the server using the gdb-remote protocol. LLDB can afterwards 37 connect to the server using *gdb-remote* command. 150 Define a port to be used for gdb-server connections. Can be specified multiple 157 Specify the range of ports that can be used for gdb-server connections. Both 192 Use *gdb-remote* command to connect to the server: 194 (lldb) gdb-remote 1234 202 (lldb) gdb-remote 1234
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteErrno.def | 16 // from gdb's include/gdb/fileio.h
|
| /freebsd/sys/contrib/openzfs/.github/workflows/scripts/ |
| H A D | qemu-3-deps-vm.sh | 21 fakeroot fio gdb inetutils jq less linux linux-headers lsscsi nfs-utils \ 39 fakeroot fio gdb gdebi git ksh lcov isc-dhcp-client jq libacl1-dev \ 56 gdb gettext gettext-runtime git gmake gsed jq ksh lcov libtool lscpu \ 85 gdb git jq kernel-rpm-macros ksh libacl-devel libaio-devel \
|
| /freebsd/sys/dev/firewire/ |
| H A D | 00README | 78 dmesg and gdb those are statically linked. 80 as gdb with /dev/mem or want to insert savectx(&dumppcb) into panic(), 91 # gdb -k -c /dev/fwmem0 /sys/i386/compile/GENERIC/kernel.debug 94 remote gdb at 400,000,000 bps :-)
|
| /freebsd/usr.sbin/crashinfo/ |
| H A D | crashinfo.sh | 159 GDB=/usr/local/bin/gdb 223 ${GDB%gdb}kgdb -q $KERNEL $VMCORE < $file
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | Makefile | 88 SRCS+= gdb.c 93 SUBDIR+= gdb
|
| /freebsd/tools/build/options/ |
| H A D | WITH_GDB | 2 .Xr gdb 1 .
|
| H A D | WITHOUT_GDB | 2 .Xr gdb 1 .
|
| /freebsd/lib/clang/liblldb/ |
| H A D | Makefile | 478 SRCS+= Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp 551 SRCS+= Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp 552 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp 553 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp 554 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp 555 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp 556 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp 557 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp 558 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp 559 SRCS+= Plugins/Process/gdb [all...] |