Home
last modified time | relevance | path

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

1234

/freebsd/tools/tools/kgdb/
H A Dtcplog.py77 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 Dt_regress.sh41 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/libexec/kgdb/
H A Dacttrace.py8 import gdb
12 return gdb.lookup_global_symbol(name).value()
16 for thread in gdb.inferiors()[0].threads():
35 class acttrace(gdb.Command):
37 super(acttrace, self).__init__("acttrace", gdb.COMMAND_USER)
41 curthread = gdb.selected_thread()
56 gdb.execute("bt")
/freebsd/targets/pseudo/userland/gnu/
H A DMakefile.depend22 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 Dagent-ptrace.sh20 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 Dstacktrace.cpp187 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 Dstacktrace_test.cpp280 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 DREADME2 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 Ddot.gdbinit11 # 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 Dlivedump_test.sh25 cat >./kldstat.gdb <<'__EOF__'
39 echo "source ./kldstat.gdb" > ./script.gdb
41 kgdb -q ${kernel} ./livecore.0 < ./script.gdb
/freebsd/contrib/llvm-project/lldb/docs/man/
H A Dlldb-server.rst36 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 DGDBRemoteErrno.def16 // from gdb's include/gdb/fileio.h
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/
H A Dqemu-3-deps-vm.sh21 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 \
55 gdb gettext gettext-runtime git gmake gsed jq ksh lcov libtool lscpu \
84 gdb git jq kernel-rpm-macros ksh libacl-devel libaio-devel \
/freebsd/sys/dev/firewire/
H A D00README78 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 Dcrashinfo.sh159 GDB=/usr/local/bin/gdb
226 ${GDB%gdb}kgdb -q $KERNEL $VMCORE < $file
/freebsd/usr.sbin/bhyve/
H A DMakefile86 SRCS+= gdb.c
91 SUBDIR+= gdb
/freebsd/lib/clang/liblldb/
H A DMakefile468 SRCS+= Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
541 SRCS+= Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
542 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
543 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
544 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
545 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
546 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
547 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
548 SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
549 SRCS+= Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
[all …]
/freebsd/tools/build/options/
H A DWITH_GDB2 .Xr gdb 1 .
H A DWITHOUT_GDB2 .Xr gdb 1 .
H A DWITH_DEBUG_FILES6 .Xr gdb 1 .
/freebsd/sys/
H A DREADME.md39 | gdb | kernel remote GDB stub - `gdb(4)` |
/freebsd/contrib/xz/
H A DREADME176 using gdb:
177 $ gdb /path/to/app-binary # Load the app to the debugger.
178 (gdb) core core # Open the coredump.
179 (gdb) bt # Print the backtrace. Copy & paste to bug report.
180 (gdb) quit # Quit gdb.
/freebsd/stand/kboot/
H A DREADME41 Add -g -G to have gdb stop and wait for the debugger. This is useful for
45 debugging the trampiline and up to that, use gdb /boot/loader. When debugging
/freebsd/contrib/file/magic/Magdir/
H A Dti-8x27 >0x00003B byte 0x08 (gdb)
44 >0x00003B byte 0x08 (gdb)
62 >0x00003B byte 0x08 (gdb)
80 >0x00003B byte 0x08 (gdb)
/freebsd/usr.sbin/bhyve/gdb/
H A DMakefile2 FILESDIR= ${SHAREDIR}/bhyve/gdb

1234