+2000-03-11 Mark Kettenis <kettenis@gnu.org>
+
+ * 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.
+
2000-03-11 Mark Kettenis <kettenis@gnu.org>
* i386gnu-nat.c (gnu_store_registers): Make sure the T bit in the
assert (proc_is_thread (proc));
proc_debug (proc, "storing back changed thread state");
err = thread_set_state (proc->port, THREAD_STATE_FLAVOR,
- (thread_state_t) & proc->state, THREAD_STATE_SIZE);
+ (thread_state_t) &proc->state, THREAD_STATE_SIZE);
if (!err)
proc->state_changed = 0;
}
mach_msg_type_number_t state_size = THREAD_STATE_SIZE;
error_t err =
thread_get_state (proc->port, THREAD_STATE_FLAVOR,
- (thread_state_t) & proc->state, &state_size);
+ (thread_state_t) &proc->state, &state_size);
proc_debug (proc, "getting thread state");
proc->state_valid = !err;
}
{
if (will_modify)
proc->state_changed = 1;
- return (thread_state_t) & proc->state;
+ return (thread_state_t) &proc->state;
}
else
return 0;
int info_flags = 0;
error_t err =
proc_getprocinfo (proc_server, inf->pid, &info_flags,
- (procinfo_t *) & pi, &pi_len, &noise, &noise_len);
+ (procinfo_t *) &pi, &pi_len, &noise, &noise_len);
if (!err)
{
struct inf *inf = cur_inf ();
if (!args)
- error_no_arg ("PID to attach");
+ error_no_arg ("process-id to attach");
pid = atoi (args);