projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make fputs_unfiltered use fputs_maybe_filtered
[deliverable/binutils-gdb.git]
/
gdb
/
mips-linux-nat.c
diff --git
a/gdb/mips-linux-nat.c
b/gdb/mips-linux-nat.c
index 8d87dc82fbe307b7ff054e0c431a0c86250188c7..38ff461a35b3955780e6ce49c69b0e05c4b27136 100644
(file)
--- a/
gdb/mips-linux-nat.c
+++ b/
gdb/mips-linux-nat.c
@@
-1,6
+1,6
@@
/* Native-dependent code for GNU/Linux on MIPS processors.
/* Native-dependent code for GNU/Linux on MIPS processors.
- Copyright (C) 2001-20
18
Free Software Foundation, Inc.
+ Copyright (C) 2001-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-458,11
+458,7
@@
mips_linux_nat_target::read_description ()
if (have_dsp < 0)
{
if (have_dsp < 0)
{
- int tid;
-
- tid = ptid_get_lwp (inferior_ptid);
- if (tid == 0)
- tid = inferior_ptid.pid ();
+ int tid = get_ptrace_pid (inferior_ptid);
errno = 0;
ptrace (PTRACE_PEEKUSER, tid, DSP_CONTROL, 0);
errno = 0;
ptrace (PTRACE_PEEKUSER, tid, DSP_CONTROL, 0);
@@
-543,7
+539,7
@@
mips_linux_nat_target::can_use_hw_breakpoint (enum bptype type,
int i;
uint32_t wanted_mask, irw_mask;
int i;
uint32_t wanted_mask, irw_mask;
- if (!mips_linux_read_watch_registers (
ptid_get_lwp (inferior_ptid
),
+ if (!mips_linux_read_watch_registers (
inferior_ptid.lwp (
),
&watch_readback,
&watch_readback_valid, 0))
return 0;
&watch_readback,
&watch_readback_valid, 0))
return 0;
@@
-584,7
+580,7
@@
mips_linux_nat_target::stopped_by_watchpoint ()
int n;
int num_valid;
int n;
int num_valid;
- if (!mips_linux_read_watch_registers (
ptid_get_lwp (inferior_ptid
),
+ if (!mips_linux_read_watch_registers (
inferior_ptid.lwp (
),
&watch_readback,
&watch_readback_valid, 1))
return false;
&watch_readback,
&watch_readback_valid, 1))
return false;
@@
-619,7
+615,7
@@
mips_linux_nat_target::region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
struct pt_watch_regs dummy_regs;
int i;
struct pt_watch_regs dummy_regs;
int i;
- if (!mips_linux_read_watch_registers (
ptid_get_lwp (inferior_ptid
),
+ if (!mips_linux_read_watch_registers (
inferior_ptid.lwp (
),
&watch_readback,
&watch_readback_valid, 0))
return 0;
&watch_readback,
&watch_readback_valid, 0))
return 0;
@@
-641,7
+637,7
@@
write_watchpoint_regs (void)
ALL_LWPS (lp)
{
ALL_LWPS (lp)
{
- tid =
ptid_get_lwp (lp->ptid
);
+ tid =
lp->ptid.lwp (
);
if (ptrace (PTRACE_SET_WATCH_REGS, tid, &watch_mirror, NULL) == -1)
perror_with_name (_("Couldn't write debug register"));
}
if (ptrace (PTRACE_SET_WATCH_REGS, tid, &watch_mirror, NULL) == -1)
perror_with_name (_("Couldn't write debug register"));
}
@@
-677,10
+673,9
@@
mips_linux_nat_target::insert_watchpoint (CORE_ADDR addr, int len,
struct mips_watchpoint *new_watch;
struct mips_watchpoint **pw;
struct mips_watchpoint *new_watch;
struct mips_watchpoint **pw;
- int i;
int retval;
int retval;
- if (!mips_linux_read_watch_registers (
ptid_get_lwp (inferior_ptid
),
+ if (!mips_linux_read_watch_registers (
inferior_ptid.lwp (
),
&watch_readback,
&watch_readback_valid, 0))
return -1;
&watch_readback,
&watch_readback_valid, 0))
return -1;
@@
-788,8
+783,9
@@
mips_linux_nat_target::close ()
linux_nat_trad_target::close ();
}
linux_nat_trad_target::close ();
}
+void _initialize_mips_linux_nat ();
void
void
-_initialize_mips_linux_nat (
void
)
+_initialize_mips_linux_nat ()
{
add_setshow_boolean_cmd ("show-debug-regs", class_maintenance,
&show_debug_regs, _("\
{
add_setshow_boolean_cmd ("show-debug-regs", class_maintenance,
&show_debug_regs, _("\
This page took
0.030369 seconds
and
4
git commands to generate.