2010-05-17 Michael Snyder <msnyder@vmware.com>

* procfs.c: White space.
This commit is contained in:
Michael Snyder 2010-05-17 21:47:01 +00:00
parent c81c812a7a
commit f4a14ae60d
2 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 Michael Snyder <msnyder@vmware.com>
* procfs.c: White space.
* python/py-auto-load.c: White space. * python/py-auto-load.c: White space.
* python/py-block.c: White space. * python/py-block.c: White space.
* python/py-breakpoint.c: White space. * python/py-breakpoint.c: White space.

View File

@ -859,6 +859,7 @@ sysset_t_alloc (procinfo * pi)
{ {
sysset_t *ret; sysset_t *ret;
int size = sysset_t_size (pi); int size = sysset_t_size (pi);
ret = xmalloc (size); ret = xmalloc (size);
#ifdef DYNAMIC_SYSCALLS #ifdef DYNAMIC_SYSCALLS
ret->pr_size = ((pi->num_syscalls + (8 * sizeof (uint64_t) - 1)) ret->pr_size = ((pi->num_syscalls + (8 * sizeof (uint64_t) - 1))
@ -1000,6 +1001,7 @@ static int
find_syscall (procinfo *pi, char *name) find_syscall (procinfo *pi, char *name)
{ {
int i; int i;
for (i = 0; i < pi->num_syscalls; i++) for (i = 0; i < pi->num_syscalls; i++)
{ {
if (pi->syscall_names[i] && strcmp (name, pi->syscall_names[i]) == 0) if (pi->syscall_names[i] && strcmp (name, pi->syscall_names[i]) == 0)
@ -1565,6 +1567,7 @@ proc_stop_process (procinfo *pi)
{ {
#ifdef NEW_PROC_API #ifdef NEW_PROC_API
procfs_ctl_t cmd = PCSTOP; procfs_ctl_t cmd = PCSTOP;
win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd)); win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
#else /* ioctl method */ #else /* ioctl method */
win = (ioctl (pi->ctl_fd, PIOCSTOP, &pi->prstatus) >= 0); win = (ioctl (pi->ctl_fd, PIOCSTOP, &pi->prstatus) >= 0);
@ -1602,6 +1605,7 @@ proc_wait_for_stop (procinfo *pi)
#ifdef NEW_PROC_API #ifdef NEW_PROC_API
{ {
procfs_ctl_t cmd = PCWSTOP; procfs_ctl_t cmd = PCWSTOP;
win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd)); win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
/* We been runnin' and we stopped -- need to update status. */ /* We been runnin' and we stopped -- need to update status. */
pi->status_valid = 0; pi->status_valid = 0;
@ -2275,6 +2279,7 @@ proc_clear_current_fault (procinfo *pi)
#ifdef NEW_PROC_API #ifdef NEW_PROC_API
{ {
procfs_ctl_t cmd = PCCFAULT; procfs_ctl_t cmd = PCCFAULT;
win = (write (pi->ctl_fd, (void *) &cmd, sizeof (cmd)) == sizeof (cmd)); win = (write (pi->ctl_fd, (void *) &cmd, sizeof (cmd)) == sizeof (cmd));
} }
#else #else
@ -3209,6 +3214,7 @@ procfs_debug_inferior (procinfo *pi)
#ifdef DYNAMIC_SYSCALLS #ifdef DYNAMIC_SYSCALLS
{ {
int callnum = find_syscall (pi, "_exit"); int callnum = find_syscall (pi, "_exit");
if (callnum >= 0) if (callnum >= 0)
gdb_praddsysset (traced_syscall_entries, callnum); gdb_praddsysset (traced_syscall_entries, callnum);
} }
@ -3267,6 +3273,7 @@ procfs_debug_inferior (procinfo *pi)
#ifdef DYNAMIC_SYSCALLS #ifdef DYNAMIC_SYSCALLS
{ {
int callnum = find_syscall (pi, "execve"); int callnum = find_syscall (pi, "execve");
if (callnum >= 0) if (callnum >= 0)
gdb_praddsysset (traced_syscall_exits, callnum); gdb_praddsysset (traced_syscall_exits, callnum);
callnum = find_syscall (pi, "ra_execve"); callnum = find_syscall (pi, "ra_execve");
@ -3564,7 +3571,6 @@ procfs_store_registers (struct target_ops *ops,
static int static int
syscall_is_lwp_exit (procinfo *pi, int scall) syscall_is_lwp_exit (procinfo *pi, int scall)
{ {
#ifdef SYS_lwp_exit #ifdef SYS_lwp_exit
if (scall == SYS_lwp_exit) if (scall == SYS_lwp_exit)
return 1; return 1;
@ -4501,6 +4507,7 @@ static void
procfs_files_info (struct target_ops *ignore) procfs_files_info (struct target_ops *ignore)
{ {
struct inferior *inf = current_inferior (); struct inferior *inf = current_inferior ();
printf_filtered (_("\tUsing the running image of %s %s via /proc.\n"), printf_filtered (_("\tUsing the running image of %s %s via /proc.\n"),
inf->attach_flag? "attached": "child", inf->attach_flag? "attached": "child",
target_pid_to_str (inferior_ptid)); target_pid_to_str (inferior_ptid));
@ -5102,6 +5109,7 @@ procfs_can_use_hw_breakpoint (int type, int cnt, int othertype)
will be generated when the host and target pointer sizes are will be generated when the host and target pointer sizes are
different. */ different. */
struct type *ptr_type = builtin_type (target_gdbarch)->builtin_data_ptr; struct type *ptr_type = builtin_type (target_gdbarch)->builtin_data_ptr;
if (sizeof (void *) != TYPE_LENGTH (ptr_type)) if (sizeof (void *) != TYPE_LENGTH (ptr_type))
return 0; return 0;
@ -5693,6 +5701,7 @@ procfs_corefile_thread_callback (procinfo *pi, procinfo *thread, void *data)
if (pi != NULL) if (pi != NULL)
{ {
ptid_t ptid = MERGEPID (pi->pid, thread->tid); ptid_t ptid = MERGEPID (pi->pid, thread->tid);
args->note_data = procfs_do_thread_registers (args->obfd, ptid, args->note_data = procfs_do_thread_registers (args->obfd, ptid,
args->note_data, args->note_data,
args->note_size, args->note_size,