diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-03-12 21:16:09 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-03-12 21:16:09 +0000 |
commit | f75c77fc06691fd6a6340cfffdb81568d6f93146 (patch) | |
tree | 26b8a231c9107c73c59f4e3e6093a3270f9aea82 | |
parent | 911c6daef6aa101c4fd240e342074c2efcf1d5a7 (diff) | |
download | gdb-f75c77fc06691fd6a6340cfffdb81568d6f93146.zip gdb-f75c77fc06691fd6a6340cfffdb81568d6f93146.tar.gz gdb-f75c77fc06691fd6a6340cfffdb81568d6f93146.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/gnu-nat.c | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2fd2e43..70d35b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 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 %eflags isn't modified. This fixes a bug where every call to a function in the program beyond the first call would fail. diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 6d69b93..243e264 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -264,7 +264,7 @@ proc_update_sc (struct proc *proc) 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; } @@ -370,7 +370,7 @@ proc_get_state (struct proc *proc, int will_modify) 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; } @@ -379,7 +379,7 @@ proc_get_state (struct proc *proc, int will_modify) { if (will_modify) proc->state_changed = 1; - return (thread_state_t) & proc->state; + return (thread_state_t) &proc->state; } else return 0; @@ -796,7 +796,7 @@ inf_validate_procinfo (struct inf *inf) 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) { @@ -2119,7 +2119,7 @@ gnu_attach (args, from_tty) struct inf *inf = cur_inf (); if (!args) - error_no_arg ("PID to attach"); + error_no_arg ("process-id to attach"); pid = atoi (args); |