projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle void * conversions in FreeBSD/x86 native code to fix C++ build.
[deliverable/binutils-gdb.git]
/
gdb
/
target.c
diff --git
a/gdb/target.c
b/gdb/target.c
index e5e81728b93bad7cb9970ad5e4cbb6df530339a4..a9744c4f67dc4334cb68a69d06897478ac6f4bc5 100644
(file)
--- a/
gdb/target.c
+++ b/
gdb/target.c
@@
-1,6
+1,6
@@
/* Select target systems and architectures at runtime for GDB.
/* Select target systems and architectures at runtime for GDB.
- Copyright (C) 1990-201
5
Free Software Foundation, Inc.
+ Copyright (C) 1990-201
6
Free Software Foundation, Inc.
Contributed by Cygnus Support.
Contributed by Cygnus Support.
@@
-466,6
+466,14
@@
target_terminal_is_inferior (void)
/* See target.h. */
/* See target.h. */
+int
+target_terminal_is_ours (void)
+{
+ return (terminal_state == terminal_is_ours);
+}
+
+/* See target.h. */
+
void
target_terminal_inferior (void)
{
void
target_terminal_inferior (void)
{
@@
-483,6
+491,11
@@
target_terminal_inferior (void)
inferior's terminal modes. */
(*current_target.to_terminal_inferior) (¤t_target);
terminal_state = terminal_is_inferior;
inferior's terminal modes. */
(*current_target.to_terminal_inferior) (¤t_target);
terminal_state = terminal_is_inferior;
+
+ /* If the user hit C-c before, pretend that it was hit right
+ here. */
+ if (check_quit_flag ())
+ target_pass_ctrlc ();
}
/* See target.h. */
}
/* See target.h. */
@@
-2157,6
+2170,8
@@
target_pre_inferior (int from_tty)
the inferior was attached to. */
current_inferior ()->attach_flag = 0;
the inferior was attached to. */
current_inferior ()->attach_flag = 0;
+ current_inferior ()->highest_thread_num = 0;
+
agent_capability_invalidate ();
}
agent_capability_invalidate ();
}
@@
-3350,9
+3365,17
@@
target_interrupt (ptid_t ptid)
/* See target.h. */
void
/* See target.h. */
void
-target_check_pending_interrupt (void)
+target_pass_ctrlc (void)
+{
+ (*current_target.to_pass_ctrlc) (¤t_target);
+}
+
+/* See target.h. */
+
+void
+default_target_pass_ctrlc (struct target_ops *ops)
{
{
-
(*current_target.to_check_pending_interrupt) (¤t_target
);
+
target_interrupt (inferior_ptid
);
}
/* See target/target.h. */
}
/* See target/target.h. */
This page took
0.02612 seconds
and
4
git commands to generate.