Home | History | Annotate | Download | only in coregrind

Lines Matching refs:vgdb

2 /*--- Relay between gdb and gdbserver embedded in valgrind  vgdb.c ---*/
57 /* vgdb has two usages:
62 arguments are given or only --pid and --vgdb-prefix, then usage 1 is
65 As relay application, vgdb reads bytes from gdb on stdin and
72 As a standalone utility, vgdb builds command packets to write to valgrind,
74 Once all the commands are sent and their replies received, vgdb will exit.
86 I_die_here : (PTRACEINVOKER) architecture missing in vgdb.c
190 /* Return the path prefix for the named pipes (FIFOs) used by vgdb/gdb
199 prefix = vmalloc(strlen(tmpdir) + strlen("/vgdb-pipe") + 1);
201 strcat(prefix, "/vgdb-pipe");
225 /* shared_mem_fd will not be closed till vgdb exits. */
258 XERROR (0, "cannot use 32 bits vgdb with a 64bits valgrind process\n");
259 /* But we can use a 64 bits vgdb with a 32 bits valgrind */
397 /* subset of VG_(threads) needed for vgdb ptrace.
866 /* Not yet attached. If problem, vgdb can abort,
870 So, Valgrind has to SET_PTRACER this vgdb. Once this
871 is done, this vgdb can ptrace the valgrind process. */
905 /* 64bit vgdb speaking with a 32bit executable.
923 I_die_here : (sp) architecture missing in vgdb.c
930 // vgdb speaking with a 32bit executable.
949 // Note that for a 64 bits vgdb, only 4 bytes of NULL bad_return
995 I_die_here : architecture missing in vgdb.c
1001 assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
1003 // vgdb speaking with a 64 bit executable.
1029 assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
1031 assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
1074 I_die_here: architecture missing in vgdb.c
1135 by vgdb. The verification is done every max_invoke_ms ms. If
1262 This allows to avoid having two vgdb speaking with the same Valgrind
1276 "Probably vgdb pid %d already speaks with Valgrind pid %d\n",
1465 sprintf(from_gdb_to_pid, "%s-from-vgdb-to-%d-by-%s-on-%s", vgdb_prefix,
1467 sprintf(to_gdb_from_pid, "%s-to-vgdb-from-%d-by-%s-on-%s", vgdb_prefix,
1469 sprintf(shared_mem, "%s-shared-mem-vgdb-%d-by-%s-on-%s", vgdb_prefix,
1471 DEBUG (1, "vgdb: using %s %s %s\n",
1640 /* install the signal handlers allowing e.g. vgdb to cleanup in
1652 a SIGINT to vgdb + causes a character to be sent to remote gdbserver.
1655 XERROR (errno, "vgdb error sigaction SIGINT\n");
1662 vgdb receives this signal, it will simulate the user typing C-c. */
1664 XERROR (errno, "vgdb error sigaction SIGUSR1\n");
1667 /* SIGTERM: can receive this signal (e.g. from gdb) to terminate vgdb
1671 XERROR (errno, "vgdb error sigaction SIGTERM\n");
1674 process debugged: gdb will close its pipes to vgdb. vgdb
1677 XERROR (errno, "vgdb error sigaction SIGPIPE\n");
1682 XERROR (errno, "vgdb error sigaction SIGALRM\n");
1705 in the valgrind process can stay stopped if vgdb main
1715 breakpoint place. Using ptrace, vgdb will ensure the
1721 waiting for the ptracing process to detach or die. vgdb
1724 (as vgdb would not be there to catch it). vgdb can also not
1741 "vgdb error pthread_join invoke_gdbserver_in_valgrind_thread\n");
1977 /* report to user the existence of a vgdb-able valgrind process
2018 "vgdb will only be able to attach to a Valgrind process\n"
2043 "Usage: vgdb [OPTION]... [[-c] COMMAND]...\n"
2044 "vgdb (valgrind gdb) has two usages\n"
2051 " OPTIONS are [--pid=<number>] [--vgdb-prefix=<prefix>]\n"
2057 " --vgdb-prefix arg must be given to both Valgrind and vgdb utility\n"
2059 " between the Valgrind gdbserver and vgdb.\n"
2060 " --wait (default 0) tells vgdb to check during the specified number\n"
2062 " --max-invoke-ms (default 100) gives the nr of milli-seconds after which vgdb\n"
2065 " --port instructs vgdb to listen for gdb on the specified port nr.\n"
2066 " --cmd-time-out (default 99999999) tells vgdb to exit if the found Valgrind\n"
2073 " To get help from the Valgrind gdbserver, use vgdb help\n"
2098 fprintf (stderr, "vgdb error: invalid pid %d given\n", arg_pid);
2113 const char *suffix = "-from-vgdb-to-"; /* followed by pid */
2148 "vgdb error: opening directory %s searching vgdb fifo\n",
2163 ERROR (errno, "vgdb error: stat %s searching vgdb fifo\n",
2200 XERROR (errno, "vgdb error: reading directory %s for vgdb fifo\n",
2216 fprintf (stderr, "vgdb error: no FIFO found and no pid given\n");
2218 fprintf (stderr, "vgdb error: no FIFO found matching pid %d\n",
2332 } else if (is_opt(argv[i], "--vgdb-prefix=")) {
2373 "Using vgdb standalone implies to give -D or -l or a COMMAND\n");
2403 fprintf (stderr, "args error. Try `vgdb --help` for more information\n");
2439 when ptrace will be used: vgdb must clean up the ptrace effect before
2453 "vgdb %d "
2456 "vgdb pid %d\n",