Home
last modified time | relevance | path

Searched full:gdb (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/freebsd/usr.sbin/dconschat/
H A Ddconschat.880 .Xr gdb 1 Pq Pa ports/devel/gdb
87 .Xr gdb 1 Pq Pa ports/devel/gdb .
89 .Xr gdb 1 Pq Pa ports/devel/gdb
130 .Xr gdb 1 Pq Pa ports/devel/gdb
170 .Xr gdb 1 Pq Pa ports/devel/gdb
253 .Xr gdb 1 Pq Pa ports/devel/gdb
255 .Xr gdb 1 Pq Pa ports/devel/gdb
260 .Sx "On-line Kernel Debugging Using Remote GDB"
264 .Xr gdb 4
267 % gdb -k kernel.debug
[all …]
/freebsd/contrib/netbsd-tests/usr.bin/gdb/
H A Dt_regress.sh28 # Regression tests for some GDB PRs
34 atf_set "descr" "Test that gdb works with threaded programs"
35 atf_set "require.progs" "gdb"
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
57 atf_set "descr" "Test that gdb works with PIE executables"
58 atf_set "require.progs" "cc gdb"
66 cat <<EOF >test.gdb
70 gdb --batch -x test.gdb ./test >gdb.out 2>&1
[all …]
/freebsd/contrib/kyua/utils/
H A Dstacktrace.cpp68 /// Built-in path to GDB.
76 const char* utils::builtin_gdb = GDB;
79 /// Maximum time the external GDB process is allowed to run for.
101 /// Functor to execute GDB in a subprocess.
103 /// Path to the GDB binary to use.
115 /// \param gdb_ Path to the GDB binary to use.
126 /// Executes GDB.
133 const fs::path gdb_script_path = control_directory / "gdb.script"; in operator ()()
135 // Old versions of GDB, such as the one shipped by FreeBSD as of in operator ()()
141 std::cerr << "Cannot create GDB script\n"; in operator ()()
[all …]
H A Dstacktrace_test.cpp279 utils::builtin_gdb = "/path/to/gdb"; in ATF_TEST_CASE_BODY()
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
[all …]
/freebsd/sys/tools/gdb/
H A Dpcpu.py7 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 Dacttrace.py10 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")
47 # Registers the command with gdb, doesn't do anything.
H A Dvnet.py7 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)
[all …]
H A DREADME.txt1 This directory contains Python scripts that can be loaded by GDB to help debug
5 utility should be added to freebsd.py. sys/tools/kernel-gdb.py is installed
7 be automatically loaded by kgdb when opening a vmcore, so if you add new GDB
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
H A Dfreebsd.py7 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")
54 """Convert a FreeBSD kernel thread ID to a gdb inferior thread."""
55 for thread in gdb.inferiors()[0].threads():
/freebsd/tools/tools/kgdb/
H A Dtcplog.py19 # TCP Logs can be extracted from FreeBSD kernel core dumps using the gdb plugin
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")
[all …]
/freebsd/share/man/man4/
H A Dnetgdb.430 .Nd protocol for debugging the kernel with GDB over the network
36 .Cd "options GDB"
43 is a UDP-based protocol for communicating with a remote GDB client via an
58 Then it waits for a GDB client to connect.
59 The GDB command to connect is:
66 and the ordinary GDB client, speaking the ordinary GDB remote protocol.
69 session is identical to any other kernel GDB session from the perspective
70 of the GDB debugger.
124 .It Va debug.gdb.netgdb.debug
131 .Xr gdb 4 ,
H A Dgdb.429 .Nm gdb
38 .Xr gdb 1 Pq Pa ports/devel/gdb
86 .Dl "gdb -k -wcore kernel.debug /dev/mem"
91 .Xr gdb 1 Pq Pa ports/devel/gdb
108 .Dl "gdb -k kernel.debug /var/crash/vmcore.29"
249 # gdb kernel.debug
250 GNU gdb 5.2.1 (FreeBSD)
320 # gdb -k kernel.debug /dev/fwmem0.0
321 GNU gdb 5.2.1 (FreeBSD)
337 .Xr gdb 1 Pq Pa ports/devel/gdb ,
[all …]
H A Ddcons.435 .Cd "options GDB"
43 .Cd "options GDB"
64 There are 2 ports, one for the console TTY and another is GDB port,
103 .Xr gdb 1 Pq Pa ports/devel/gdb
114 .Xr gdb 4 ,
/freebsd/sys/gdb/
H A Dnetgdb.c35 * both NetGDB and gdb(1), and pass bidirectional traffic between the two
38 * Second, The NetGDB client is activated much like ordinary 'gdb' and
43 * Finally, the remote (k)gdb(1) uses 'target remote <proxy>:<port>' to connect
46 * NetGDBv1 speaks the literal GDB remote serial protocol, and uses a 1:1
47 * relationship between GDB packets and plain debugnet packets. There is no
79 #include <gdb/gdb.h>
80 #include <gdb/gdb_int.h>
81 #include <gdb/netgdb.h>
156 * The following routines implement a pseudo GDB debugport (an emulated serial
157 * driver that the MI gdb(4) code does I/O with).
[all …]
H A Dgdb_cons.c30 * Support for redirecting console msgs to gdb. We register
31 * a pseudo console to hook cnputc and send stuff to the gdb
48 #include <gdb/gdb.h>
49 #include <gdb/gdb_int.h>
61 "copy console messages to GDB");
64 0, "copy console messages to GDB");
69 sprintf(cp->cn_name, "gdb"); in gdb_cnprobe()
173 CONSOLE_DRIVER(gdb);
H A Dgdb_main.c41 #include <gdb/gdb.h>
42 #include <gdb/gdb_int.h>
44 SYSCTL_NODE(_debug, OID_AUTO, gdb, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
45 "GDB settings");
50 KDB_BACKEND(gdb, gdb_init, NULL, NULL, gdb_trap);
84 printf("GDB: debug ports:"); in gdb_init()
92 printf("GDB: no debug ports present\n"); in gdb_init()
95 printf("GDB: current port: %s\n", gdb_cur->gdb_name); in gdb_init()
162 * EOF when GDB ask in gdb_do_threadinfo()
[all...]
/freebsd/crypto/openssh/regress/
H A Dagent-ptrace.sh20 if have_prog gdb ; then
23 echo "skipped (gdb not found)"
51 gdb ${SSHAGENT} ${SSH_AGENT_PID} > ${OBJ}/gdb.out 2>&1 << EOF
56 fail "gdb failed: exit code $r"
58 …|Invalid argument.|Unable to access task|Inappropriate ioctl for device.' >/dev/null ${OBJ}/gdb.out
60 rm -f ${OBJ}/gdb.out
/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/sbin/savecore/tests/
H A Dlivedump_test.sh24 # Implement kldstat using gdb script.
25 cat >./kldstat.gdb <<'__EOF__'
37 # Use a script to source the main gdb script, otherwise kgdb prints
39 echo "source ./kldstat.gdb" > ./script.gdb
41 kgdb -q ${kernel} ./livecore.0 < ./script.gdb
/freebsd/tools/debugscripts/
H A DREADME2 This directory contains gdb macros for kernel debugging. When you
9 # gdb kernel.debug
10 This GDB was configured as "i386-undermydesk-freebsd"...
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
/freebsd/sys/tools/
H A Dkernel-gdb.py11 sys.path.append(os.path.join(os.path.dirname(__file__), "gdb"))
31 class reload(gdb.Command):
33 Reload the FreeBSD kernel GDB helper scripts.
36 super(reload, self).__init__("kgdb-reload", gdb.COMMAND_USER)
42 # Register the reload command with gdb.
/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)
105 >0x00003B byte 0x0D (function GDB)
106 >0x00003B byte 0x0E (polar GDB)
107 >0x00003B byte 0x0F (parametric GDB)
108 >0x00003B byte 0x10 (diffeq GDB)
138 >0x00003B byte 0x0D (function GDB)
139 >0x00003B byte 0x0E (polar GDB)
[all …]
/freebsd/usr.bin/clang/lldb-server/
H A Dlldb-server.159 Runs the server using the gdb\-remote protocol. LLDB can afterwards
60 connect to the server using \fIgdb\-remote\fP command.
175 .SS GDB\-SERVER CONNECTIONS
179 Define a port to be used for gdb\-server connections. Can be specified multiple
190 Specify the range of ports that can be used for gdb\-server connections. Both
234 Use \fIgdb\-remote\fP command to connect to the server:
237 (lldb) gdb\-remote 1234
248 (lldb) gdb\-remote 1234
/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.
145 GDB-SERVER CONNECTIONS
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/tools/test/stress2/misc/
H A Dfifo3.sh39 # $ gdb /tmp/fifo 19547
40 # GNU gdb 6.1.1 [FreeBSD]
42 # GDB is free software, covered by the GNU General Public License, and you are
45 # There is absolutely no warranty for GDB. Type "show warranty" for details.
46 # This GDB was configured as "amd64-marcel-freebsd"...
53 # (gdb) bt
59 # (gdb) f 3
63 # (gdb)

12345678910>>...14