projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updare French translation for binutils and German translation for opcodes.
[deliverable/binutils-gdb.git]
/
gdb
/
obsd-nat.c
diff --git
a/gdb/obsd-nat.c
b/gdb/obsd-nat.c
index e4a98ae91e25ad097627263d55c6e99f0331caf2..72ed10cb0ae00a72d8d7f5f81f087b9435238d54 100644
(file)
--- a/
gdb/obsd-nat.c
+++ b/
gdb/obsd-nat.c
@@
-1,6
+1,6
@@
/* Native-dependent code for OpenBSD.
/* Native-dependent code for OpenBSD.
- Copyright (C) 2012-201
4
Free Software Foundation, Inc.
+ Copyright (C) 2012-201
5
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-50,11
+50,13
@@
obsd_pid_to_str (struct target_ops *ops, ptid_t ptid)
}
static void
}
static void
-obsd_
find_new_threads
(struct target_ops *ops)
+obsd_
update_thread_list
(struct target_ops *ops)
{
pid_t pid = ptid_get_pid (inferior_ptid);
struct ptrace_thread_state pts;
{
pid_t pid = ptid_get_pid (inferior_ptid);
struct ptrace_thread_state pts;
+ prune_threads ();
+
if (ptrace (PT_GET_THREAD_FIRST, pid, (caddr_t)&pts, sizeof pts) == -1)
perror_with_name (("ptrace"));
if (ptrace (PT_GET_THREAD_FIRST, pid, (caddr_t)&pts, sizeof pts) == -1)
perror_with_name (("ptrace"));
@@
-168,7
+170,7
@@
obsd_add_target (struct target_ops *t)
{
/* Override some methods to support threads. */
t->to_pid_to_str = obsd_pid_to_str;
{
/* Override some methods to support threads. */
t->to_pid_to_str = obsd_pid_to_str;
- t->to_
find_new_threads = obsd_find_new_threads
;
+ t->to_
update_thread_list = obsd_update_thread_list
;
t->to_wait = obsd_wait;
add_target (t);
}
t->to_wait = obsd_wait;
add_target (t);
}
This page took
0.024497 seconds
and
4
git commands to generate.