aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authornobody <>2002-09-03 22:29:15 +0000
committernobody <>2002-09-03 22:29:15 +0000
commit2e3c0e2427295c9cc09a8a707dfba38d50e2ba30 (patch)
treeb870b2944410a7cd58805b1139cbbb6e68afdefc /gdb/target.c
parent98c56715d7b32c12647ab664e75c92b1616b54ca (diff)
downloadgdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.zip
gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.tar.gz
gdb-2e3c0e2427295c9cc09a8a707dfba38d50e2ba30.tar.bz2
This commit was manufactured by cvs2svn to create branch 'gdb_5_3-branch'.gdb_5_3-2002-09-04-branchpoint
Sprout from cagney_sysregs-20020825-branch 2002-08-25 19:39:46 UTC nobody 'This commit was manufactured by cvs2svn to create branch' Cherrypick from master 2002-09-03 22:29:14 UTC Keith Seitz <keiths@redhat.com> ' * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.': bfd/ChangeLog bfd/Makefile.am bfd/Makefile.in bfd/aoutx.h bfd/archures.c bfd/bfd-in.h bfd/bfd-in2.h bfd/coff-tic4x.c bfd/coff64-rs6000.c bfd/coffcode.h bfd/coffswap.h bfd/config.bfd bfd/configure bfd/configure.in bfd/cpu-avr.c bfd/cpu-pj.c bfd/cpu-powerpc.c bfd/cpu-rs6000.c bfd/cpu-tic4x.c bfd/cpu-v850.c bfd/cpu-z8k.c bfd/doc/ChangeLog bfd/doc/chew.c bfd/ecoff.c bfd/elf32-arm.h bfd/elf32-v850.c bfd/libbfd.h bfd/mipsbsd.c bfd/pdp11.c bfd/reloc.c bfd/targets.c bfd/ticoff.h bfd/version.h gdb/ChangeLog gdb/Makefile.in gdb/ada-exp.y gdb/alphanbsd-tdep.c gdb/avr-tdep.c gdb/ax-gdb.c gdb/breakpoint.c gdb/c-exp.y gdb/c-valprint.c gdb/cli/cli-script.c gdb/cli/cli-script.h gdb/config/i386/nbsd.mt gdb/config/i386/nbsdaout.mh gdb/config/i386/nbsdelf.mh gdb/config/i386/tm-nbsd.h gdb/config/mips/nbsd.mt gdb/configure.tgt gdb/cp-abi.c gdb/doc/ChangeLog gdb/doc/gdb.texinfo gdb/dwarf2read.c gdb/f-exp.y gdb/gdb-events.c gdb/gdb-events.h gdb/gdb-events.sh gdb/gdbserver/ChangeLog gdb/gdbserver/linux-low.c gdb/gdbserver/remote-utils.c gdb/gdbserver/server.c gdb/gdbserver/target.h gdb/gnu-nat.c gdb/hpux-thread.c gdb/i386-linux-nat.c gdb/i386-tdep.c gdb/i386-tdep.h gdb/i386bsd-tdep.c gdb/i386nbsd-tdep.c gdb/i387-tdep.c gdb/inferior.h gdb/inflow.c gdb/inftarg.c gdb/jv-exp.y gdb/jv-valprint.c gdb/lin-lwp.c gdb/m2-exp.y gdb/m3-nat.c gdb/mipsnbsd-tdep.c gdb/nbsd-tdep.c gdb/nbsd-tdep.h gdb/osabi.c gdb/p-exp.y gdb/p-lang.c gdb/ppcnbsd-tdep.c gdb/proc-api.c gdb/procfs.c gdb/regcache.c gdb/regcache.h gdb/rs6000-tdep.c gdb/shnbsd-tdep.c gdb/signals/signals.c gdb/sol-thread.c gdb/sparcnbsd-tdep.c gdb/stack.c gdb/symtab.c gdb/target.c gdb/target.h gdb/testsuite/ChangeLog gdb/testsuite/gdb.base/commands.exp gdb/testsuite/gdb.mi/ChangeLog gdb/testsuite/gdb.mi/gdb680.exp gdb/testsuite/gdb.threads/killed.c gdb/testsuite/gdb.threads/killed.exp gdb/testsuite/gdb.threads/pthreads.exp gdb/testsuite/lib/gdb.exp gdb/testsuite/lib/mi-support.exp gdb/tui/ChangeLog gdb/tui/tui-hooks.c gdb/tui/tui-out.c gdb/tui/tui.c gdb/tui/tui.h gdb/tui/tuiData.c gdb/tui/tuiData.h gdb/tui/tuiDisassem.c gdb/tui/tuiDisassem.h gdb/tui/tuiIO.c gdb/tui/tuiIO.h gdb/tui/tuiSource.c gdb/tui/tuiSourceWin.c gdb/tui/tuiSourceWin.h gdb/tui/tuiStack.c gdb/tui/tuiWin.c gdb/version.in gdb/win32-nat.c gdb/wince.c gdb/x86-64-linux-nat.c gdb/x86-64-linux-tdep.c include/ChangeLog include/coff/internal.h include/coff/ti.h include/coff/tic4x.h include/dis-asm.h include/elf/ChangeLog include/elf/v850.h include/opcode/tic4x.h opcodes/ChangeLog opcodes/Makefile.am opcodes/Makefile.in opcodes/arc-opc.c opcodes/configure opcodes/configure.in opcodes/disassemble.c opcodes/mips-dis.c opcodes/tic4x-dis.c opcodes/v850-dis.c opcodes/v850-opc.c sim/common/ChangeLog sim/common/Make-common.in sim/igen/ChangeLog sim/igen/gen-support.c sim/v850/ChangeLog sim/v850/Makefile.in sim/v850/sim-main.h sim/v850/simops.c Delete: gdb/config/i386/nbsdaout.mt gdb/config/i386/nbsdelf.mt gdb/config/i386/tm-nbsdaout.h
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c
index ec1979b..75d022f 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -138,6 +138,8 @@ static void debug_to_terminal_inferior (void);
static void debug_to_terminal_ours_for_output (void);
+static void debug_to_terminal_save_ours (void);
+
static void debug_to_terminal_ours (void);
static void debug_to_terminal_info (char *, int);
@@ -445,6 +447,9 @@ cleanup_target (struct target_ops *t)
de_fault (to_terminal_ours,
(void (*) (void))
target_ignore);
+ de_fault (to_terminal_save_ours,
+ (void (*) (void))
+ target_ignore);
de_fault (to_terminal_info,
default_terminal_info);
de_fault (to_kill,
@@ -608,6 +613,7 @@ update_current_target (void)
INHERIT (to_terminal_inferior, t);
INHERIT (to_terminal_ours_for_output, t);
INHERIT (to_terminal_ours, t);
+ INHERIT (to_terminal_save_ours, t);
INHERIT (to_terminal_info, t);
INHERIT (to_kill, t);
INHERIT (to_load, t);
@@ -1980,6 +1986,14 @@ debug_to_terminal_ours (void)
}
static void
+debug_to_terminal_save_ours (void)
+{
+ debug_target.to_terminal_save_ours ();
+
+ fprintf_unfiltered (gdb_stdlog, "target_terminal_save_ours ()\n");
+}
+
+static void
debug_to_terminal_info (char *arg, int from_tty)
{
debug_target.to_terminal_info (arg, from_tty);
@@ -2405,6 +2419,7 @@ setup_target_debug (void)
current_target.to_terminal_inferior = debug_to_terminal_inferior;
current_target.to_terminal_ours_for_output = debug_to_terminal_ours_for_output;
current_target.to_terminal_ours = debug_to_terminal_ours;
+ current_target.to_terminal_save_ours = debug_to_terminal_save_ours;
current_target.to_terminal_info = debug_to_terminal_info;
current_target.to_kill = debug_to_kill;
current_target.to_load = debug_to_load;