35static gdb::unique_xmalloc_ptr<char>
39 gdb::unique_xmalloc_ptr<char> note_data;
44 static const size_t fname_len = 16;
45 static const size_t psargs_len = 80;
49 fname = lbasename (exe);
50 psargs = std::string (exe);
53 if (!infargs.empty ())
54 psargs +=
' ' + infargs;
61 fname.resize (fname_len - 1);
62 psargs.resize (psargs_len - 1);
67 fname.resize (fname_len);
68 psargs.resize (psargs_len);
71 note_data.reset (elfcore_write_prpsinfo (
obfd, note_data.release (),
74 if (note_data ==
nullptr)
82 catch (
const gdb_exception_error &e)
93 gdb_signal stop_signal;
94 if (signalled_thr !=
nullptr)
97 stop_signal = GDB_SIGNAL_0;
99 if (signalled_thr !=
nullptr)
101 stop_signal,
obfd, ¬e_data,
105 if (thr == signalled_thr)
const std::string & args() const
inf_non_exited_threads_range non_exited_threads()
gdb_signal stop_signal() const
const char * get_exec_file(int err)
void elf_none_init_abi(struct gdbarch *gdbarch)
static gdb::unique_xmalloc_ptr< char > elf_none_make_corefile_notes(struct gdbarch *gdbarch, bfd *obfd, int *note_size)
void exception_print(struct ui_file *file, const struct gdb_exception &e)
void gcore_elf_make_tdesc_note(struct gdbarch *gdbarch, bfd *obfd, gdb::unique_xmalloc_ptr< char > *note_data, int *note_size)
void gcore_elf_build_thread_register_notes(struct gdbarch *gdbarch, struct thread_info *info, gdb_signal stop_signal, bfd *obfd, gdb::unique_xmalloc_ptr< char > *note_data, int *note_size)
thread_info * gcore_find_signalled_thread()
void set_gdbarch_make_corefile_notes(struct gdbarch *gdbarch, gdbarch_make_corefile_notes_ftype *make_corefile_notes)
void update_thread_list(void)
struct inferior * current_inferior(void)
gdbarch * target_thread_architecture(ptid_t ptid)