Lines Matching full:gdb
68 /// 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 ()()
157 // Force all GDB output to go to stderr. We print messages to stderr in operator ()()
158 // when grabbing the stacktrace and we do not want GDB's output to end in operator ()()
173 /// Looks for the path to the GDB binary.
175 /// \return The absolute path to the GDB binary if any, otherwise none. Note
182 LW("The builtin path to GDB is bogus, which probably indicates a bug " in find_gdb()
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()
279 /// gdb handler from.
282 /// information to gdb from.
297 LW(F("Failed to open %s to append GDB's output") % in dump_stacktrace()
306 const optional< fs::path > gdb = utils::find_gdb(); in dump_stacktrace() local
307 if (!gdb) { in dump_stacktrace()
308 gdb_err << F("Cannot find GDB binary; builtin was '%s'\n") % in dump_stacktrace()
323 run_gdb(gdb.get(), program, core_file.get()), in dump_stacktrace()
330 gdb_err << "GDB timed out\n"; in dump_stacktrace()
334 gdb_err << "GDB exited successfully\n"; in dump_stacktrace()
336 gdb_err << "GDB failed; see output above for details\n"; in dump_stacktrace()
351 /// gdb handler from.
354 /// information to gdb from.