Stephane Carrez [Sat, 26 Oct 2002 10:40:03 +0000 (10:40 +0000)]
* tuiIO.c (tui_prep_terminal): Save the prompt registered in readline.
(tui_redisplay_readline): Use the last saved prompt.
(tui_rl_saved_prompt): New.
* Makefile.in (install-gdbtk): Add missing continuation backslash to insure
that shell variables, such as "transformed_name" are propagated to later shell
statements in rule.
Mark Kettenis [Sun, 20 Oct 2002 12:14:39 +0000 (12:14 +0000)]
* configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
* config/i386/obsd.mt: New file.
* i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
* i386obsd-nat.c (_initialize_i386obsd_nat): Set
i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
* i386obsd-tdep.c: New file.
nobody [Sun, 20 Oct 2002 11:54:41 +0000 (11:54 +0000)]
This commit was manufactured by cvs2svn to create branch 'gdb_5_3-branch'.
Cherrypick from master 2002-10-20 11:54:40 UTC Mark Kettenis <kettenis@gnu.org> '* configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.':
gdb/i386obsd-tdep.c
From Grace Sainsbury <graces@redhat.com>:
* Makefile.in (gdbtk-main.o): New target.
(gdb.o): New target.
(main_h): Define.
(main.o): Update dependencies.
(gdb$(EXEEXT)): Add gdb.o.
(SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
(SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
(SUBDIR_GDBTK_CLEAN): Set.
(install-gdbtk): Install the insight binary.
(uninstall-gdbtk): New target.
(all-gdbtk, clean-gdbtk): New rule.
* top.c (use_windows): Default to zero.
* main.c: Include "main.h".
(main): Delete.
(struct captured_main_args): Delete.
(gdb_main): New function.
* main.h: New file.
* gdb.c: New File.
Index: gdbtk/ChangeLog
2002-09-26 Andrew Cagney <ac131313@redhat.com>
Import from mainline:
From Grace Sainsbury <graces@redhat.com>:
* generic/gdbtk-main.c: New file.
Index: testsuite/gdb.gdbtk/ChangeLog
2002-09-28 Andrew Cagney <ac131313@redhat.com>
Import from mainline:
2002-09-26 Keith Seitz <keiths@redhat.com>
* lib/insight-support.exp (gdbtk_start): Figure out where
the insight executable is based on where gdb is. Use this
executable to start insight instead of gdb.
This commit was manufactured by cvs2svn to create branch 'gdb_5_3-branch'.
Cherrypick from master 2002-09-26 17:46:04 UTC Andrew Cagney <cagney@redhat.com> '2002-09-26 Andrew Cagney <ac131313@redhat.com>':
gdb/gdb.c
gdb/main.h
Andrew Cagney [Wed, 25 Sep 2002 20:43:23 +0000 (20:43 +0000)]
* frame.c: Include "gdb_string.h" and "builtin-regs.h".
(frame_map_regnum_to_name): New function.
(frame_map_name_to_regnum): New function.
* frame.h (frame_map_name_to_regnum): Declare.
(frame_map_regnum_to_name): Declare.
* builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
* builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
* parse.c: Do not include "builtin-regs.h".
(target_map_name_to_register): Delete function.
(write_dollar_variable): Use frame_map_name_to_regnum.
* parser-defs.h (target_map_name_to_register): Delete declaration.
* expprint.c: Include "frame.h".
(print_subexp): Use frame_map_regnum_to_name.
* eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
* infcmd.c (registers_info): Use frame_map_name_to_regnum.
This commit was manufactured by cvs2svn to create branch 'gdb_5_3-branch'.
Cherrypick from master 2002-09-25 20:30:38 UTC Andrew Cagney <cagney@redhat.com> '2002-09-25 Andrew Cagney <cagney@redhat.com>':
gdb/testsuite/gdb.base/pc-fp.c
gdb/testsuite/gdb.base/pc-fp.exp
Jim Blandy [Wed, 25 Sep 2002 03:52:31 +0000 (03:52 +0000)]
* dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
texthigh and textlow to reader-specific structs caused
objfile_relocate to miss them. This is fixable, but the work that
the change was supposed to prepare GDB for never got done anyway.
* gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
generic_read_register_dummy() (PR gdb/703).
(avr_push_return_address): #if 0 out unused vars.
(avr_gdbarch_init): Enable use of avr_push_return_address().
* tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.
(tui_initialize_readline): Allow to use space to leave SingleKey
to enter one gdb command.
(tui_enable): Restore the TUI keymap when we are back to TUI.
(tui_disable): Restore normal keymap when leaving TUI.
* tuiIO.c (tui_redisplay_readline): Restore the SingleKey mode
when the buffer becomes empty and we are in tui_one_command_mode.