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.
87 I_die_here : (PTRACEINVOKER) architecture missing in vgdb.c
193 /* Return the default path prefix for the named pipes (FIFOs) used by vgdb/gdb
202 prefix = vmalloc(strlen(tmpdir) + strlen("/vgdb-pipe") + 1);
204 strcat(prefix, "/vgdb-pipe");
228 /* shared_mem_fd will not be closed till vgdb exits. */
261 XERROR (0, "cannot use 32 bits vgdb with a 64bits valgrind process\n");
262 /* But we can use a 64 bits vgdb with a 32 bits valgrind */
400 /* subset of VG_(threads) needed for vgdb ptrace.
871 /* Not yet attached. If problem, vgdb can abort,
875 So, Valgrind has to SET_PTRACER this vgdb. Once this
876 is done, this vgdb can ptrace the valgrind process. */
910 /* 64bit vgdb speaking with a 32bit executable.
930 I_die_here : (sp) architecture missing in vgdb.c
937 // vgdb speaking with a 32bit executable.
956 // Note that for a 64 bits vgdb, only 4 bytes of NULL bad_return
1005 /* This sign extension is needed when vgdb 32 bits runs
1015 I_die_here : architecture missing in vgdb.c
1021 assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
1023 // vgdb speaking with a 64 bit executable.
1049 assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
1051 assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
1094 assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
1096 I_die_here: architecture missing in vgdb.c
1157 by vgdb. The verification is done every max_invoke_ms ms. If
1284 This allows to avoid having two vgdb speaking with the same Valgrind
1298 "Probably vgdb pid %d already speaks with Valgrind pid %d\n",
1487 sprintf(from_gdb_to_pid, "%s-from-vgdb-to-%d-by-%s-on-%s", vgdb_prefix,
1489 sprintf(to_gdb_from_pid, "%s-to-vgdb-from-%d-by-%s-on-%s", vgdb_prefix,
1491 sprintf(shared_mem, "%s-shared-mem-vgdb-%d-by-%s-on-%s", vgdb_prefix,
1493 DEBUG (1, "vgdb: using %s %s %s\n",
1662 /* install the signal handlers allowing e.g. vgdb to cleanup in
1674 a SIGINT to vgdb + causes a character to be sent to remote gdbserver.
1677 XERROR (errno, "vgdb error sigaction SIGINT\n");
1684 vgdb receives this signal, it will simulate the user typing C-c. */
1686 XERROR (errno, "vgdb error sigaction SIGUSR1\n");
1689 /* SIGTERM: can receive this signal (e.g. from gdb) to terminate vgdb
1693 XERROR (errno, "vgdb error sigaction SIGTERM\n");
1696 process debugged: gdb will close its pipes to vgdb. vgdb
1699 XERROR (errno, "vgdb error sigaction SIGPIPE\n");
1704 XERROR (errno, "vgdb error sigaction SIGALRM\n");
1727 in the valgrind process can stay stopped if vgdb main
1737 breakpoint place. Using ptrace, vgdb will ensure the
1743 waiting for the ptracing process to detach or die. vgdb
1746 (as vgdb would not be there to catch it). vgdb can also not
1763 "vgdb error pthread_join invoke_gdbserver_in_valgrind_thread\n");
1999 /* report to user the existence of a vgdb-able valgrind process
2040 "vgdb will only be able to attach to a Valgrind process\n"
2065 "Usage: vgdb [OPTION]... [[-c] COMMAND]...\n"
2066 "vgdb (valgrind gdb) has two usages\n"
2073 " OPTIONS are [--pid=<number>] [--vgdb-prefix=<prefix>]\n"
2079 " --vgdb-prefix arg must be given to both Valgrind and vgdb utility\n"
2081 " between the Valgrind gdbserver and vgdb.\n"
2082 " --wait (default 0) tells vgdb to check during the specified number\n"
2084 " --max-invoke-ms (default 100) gives the nr of milli-seconds after which vgdb\n"
2087 " --port instructs vgdb to listen for gdb on the specified port nr.\n"
2088 " --cmd-time-out (default 99999999) tells vgdb to exit if the found Valgrind\n"
2095 " To get help from the Valgrind gdbserver, use vgdb help\n"
2120 fprintf (stderr, "vgdb error: invalid pid %d given\n", arg_pid);
2135 const char *suffix = "-from-vgdb-to-"; /* followed by pid */
2170 "vgdb error: opening directory %s searching vgdb fifo\n",
2185 ERROR (errno, "vgdb error: stat %s searching vgdb fifo\n",
2222 XERROR (errno, "vgdb error: reading directory %s for vgdb fifo\n",
2238 fprintf (stderr, "vgdb error: no FIFO found and no pid given\n");
2240 fprintf (stderr, "vgdb error: no FIFO found matching pid %d\n",
2354 } else if (is_opt(argv[i], "--vgdb-prefix=")) {
2395 "Using vgdb standalone implies to give -D or -l or a COMMAND\n");
2425 fprintf (stderr, "args error. Try `vgdb --help` for more information\n");
2461 when ptrace will be used: vgdb must clean up the ptrace effect before
2475 "vgdb %d "
2478 "vgdb pid %d\n",