(gnu_pid_to_exec_file): Add PID parameter.
(set_sig_thread_cmd): Use PIDGET on return value from
thread_id_to_pid.
(proc_string): Use MERGEPID to construct argument to
pid_to_thread_id.
* gnu-nat.c: Fix the formatting where indent misinterpreted `&' as
a binary operator.
(gnu_attach): Change error message for missing
argument to be identical to the corresponding message in
`inftarg.c'. This makes the testsuite happy.
* gnu-nat.c: Include "gdbthread.h". Include <hurd.h>.
Reorder headers a bit. Overall cleanup and minor reformatting.
(MIG_SERVER_DIED): Remove define.
(proc_update_sc): Add braces to silence compiler warning.
(proc_steal_exc_port): Initialize err to zero.
(make_proc): Add braces to silence compiler warning.
(inf_validate_task_sc): Add cast to silence compiler warning.
(inf_set_traced): Reorganize a bit to silence compiler warning.
(inf_validate_procs): Use mach_msg_type_number_t for all thread
numbers and add braces to silence compiler warning.
(gnu_wait): Add prototypes for server functions and add braces to
silence compiler warnings.
(S_exception_raise_request): Pass subcode to inf_debug call.
(gnu_write_inferior): Remove unused variable `protection_changed'.
(gnu_xfer_memory): Remove unused variable `result'.
(set_sig_thread_cmd): Remove unused varible `tid'.
(set_signals_cmd): Remve unused variable `trace'.
(add_task_commands): Provide complete prototype. Reformat help
strings a bit to make sure the first line is a full sentence.
Call info_port_rights_cmd instead of info_send_rights_cmd for the
"info port-rights" command.
(add_thread_commands): Provide complete prototype. Make static.
Reformat help strings a bit to make sure the first line is a full
sentence.
(_initialize_gnu_nat): Provide complete prototype.
* gnu-nat.c (proc_string): Make global.
(do_mach_notify_dead_name): Suppress dead name notifications if we
know that the task is dead.
1999-12-13 Mark Kettenis <kettenis@gnu.org>
* gnu-nat.c (inf_validate_task_sc): Get task info via proc server
instead of directly from the kernel. Add some hackery to make
sure that the info isn't influenced by suspension of the task in
the proc server itself.
* Finalize merge from Hurd folk.
Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
* thread.c (thread_apply_command, thread_apply_all_command,
thread_command): Make sure TP is alive.
(thread_alive): New function.
Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
* infrun.c (sig_print_info): Deal better with long signal names.
Wed Nov 22 15:23:35 1995 Miles Bader <miles@gnu.ai.mit.edu>
* thread.c (thread_id_to_pid): New function.
Fri Dec 1 13:25:25 1995 Miles Bader <miles@gnu.ai.mit.edu>
* gnu-nat.c: (set_thread_cmd_list, show_thread_cmd_list,
set_thread_default_cmd_list, show_thread_default_cmd_list):
New variables. (set_thread_cmd, show_thread_cmd,
set_thread_default_cmd, show_thread_default_cmd): New functions.
Fri Apr 18 15:20:16 1997 Miles Bader <miles@gnu.ai.mit.edu>
* gnu-nat.c (inf_startup): remove TASK parameter.
(inf_set_task): replace with new function (inf_set_pid).
* gdbthread.h: Add extern decl for thread_cmd_list.
* Makefile.in: Add rule for gnu-nat.o and i386gnu-nat.o (Gnu Hurd)
* config/i386/i386gnu.mh: remove rules for [i386]gnu-nat.o, now
in Makefile.in (as for other targets); add NATDEPFILE corelow.o to
satisfy symbol dependancy in solib.c (core_ops).
* target.[ch] conditionalize Mach-specific signals so that they
won't show up in non-Mach gdb's!
* thread.c: add function thread_id_to_pid; change name of static
function "thread_switch" to "switch_to_thread", to avoid conflict
with Mach global symbol; move thread_cmd_list to global scope
so targets can add their own thread commands.
* infrun.c: sig_print_info: allow for long signal names.
* gnu-nat.[ch]: tidying up comments.
* gnu-nat.c: move several functions to static scope, just for tidy;
remove calls to prune_threads and renumber_threads;
gnu_wait must not return -1 when inferior exits;
attach_to_child will modify inferior_pid in a way that allows
fork_inferior to remain unchanged;
remove extra arg from startup_inferior;
move mach-specific thread commands here from thread.c.