Commit Graph

36379 Commits

Author SHA1 Message Date
Alan Modra 5731205c28 daily update 2002-09-04 00:00:05 +00:00
gdbadmin 74a7ea521f *** empty log message *** 2002-09-04 00:00:02 +00:00
Keith Seitz 0ae67eb394 * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.
Use integer comparison instead of string comparison for testing
        whether binary was built.
2002-09-03 22:29:14 +00:00
Theodore A. Roth 8a55a7c51f * gdb/avr-tdep.c (avr_gdbarch_init): Use generic_unwind_get_saved_register. 2002-09-03 21:42:13 +00:00
Stephane Carrez 8cee930b67 * tuiIO.c (tui_putc): New function to print one character.
(printable_part): New function from readline/complete.c.
	(PUTX): New macro, likewise.
	(print_filename): New function, likewise.
	(get_y_or_n): New function, likewise and adapted for TUI.
	(tui_rl_display_match_list): New function from readline/complete.c
	and writes on TUI command window.
	(tui_setup_io): Install or remove the readline hook
	rl_completion_display_matches_hook so that completion is written
	directly in TUI command window instead of in the TUI pipe.
	(tui_initialize_io): Use #ifdef TUI_USE_PIPE_FOR_READLINE for the
	TUI redirection pipe.
	(tui_getc): Likewise for call to tui_readline_output.
	(tui_readline_output): Likewise for function.
	* tui.c (tui_rl_startup_hook): Always take care of gdb prompt.
2002-09-03 20:47:48 +00:00
Jim Blandy 38fc42c80d * gdb.threads/killed.exp, gdb.threads/killed.c: New test. 2002-09-03 20:02:48 +00:00
David Carlton e26fb1d7e5 2002-09-03 David Carlton <carlton@math.stanford.edu>
* dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
	argument (PR gdb/653).  Update call to smash_to_method_type.
	(read_structure_scope): Update call to dwarf2_add_member_fn.
2002-09-03 17:32:11 +00:00
Keith Seitz d26bd0178a * gdb680.exp: New file to test to check for uiout list/tuple
nesting bug.
2002-09-03 16:37:00 +00:00
Michal Ludvig 30d524915d 2002-09-03 Michal Ludvig <mludvig@suse.cz>
* x86-64-linux-tdep.c: Include gdb_string.h
	* x86-64-linux-nat.c: Ditto.
2002-09-03 13:06:33 +00:00
Jason Thorpe 06891d8342 * ada-exp.y (yyname, yyrule): Remap global variables that appear
when YYDEBUG is set to 1.
* c-exp.y: Likewise.
* f-exp.y: Likewise.
* jv-exp.y: Likewise.
* m2-exp.y: Likewise.
* p-exp.y: Likewise.
2002-09-03 02:45:56 +00:00
Alan Modra b8bb248ad6 daily update 2002-09-03 00:00:04 +00:00
gdbadmin 227a300fcc *** empty log message *** 2002-09-03 00:00:02 +00:00
Stephane Carrez 770c90cdb5 * tuiWin.c (_newHeightOk): Fix compilation warnings. 2002-09-02 19:34:18 +00:00
Stephane Carrez b7bb15bc12 * gdb.texinfo (TUI Overview): Document status line fields. 2002-09-02 19:09:30 +00:00
Stephane Carrez 3d757584d0 * gdb.texinfo (TUI Commands): Document info win command. 2002-09-02 18:54:12 +00:00
Jason Thorpe 7d400e7763 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
dependency list.
* i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
solib_svr4_fetch_link_map_offsets to
nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
* config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
* config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
* config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
solib-svr4.o, and solib-legacy.o.
* config/i386/tm-nbsd.h: Include solib.h.
2002-09-02 18:09:07 +00:00
Jason Thorpe 704a27c461 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
(i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd.
(i[3456]86-*-openbsd*): Make this a separate entry.  Add a
comment noting that this needs its own target configuration.
* config/i386/nbsd.mt: New file.
* config/i386/nbsdaout.mt: Remove.
* config/i386/nbsdelf.mt: Ditto.
* config/i386/tm-nbsdaout.h: Ditto.
2002-09-02 17:24:51 +00:00
Nick Clifton 67010b4679 Add EXTERN references to __ctbpm __gp and __ep.
Define TEMPLATE_NAME.
Revert bogus change to ldexp.c
2002-09-02 17:03:30 +00:00
Jason Thorpe d66198e1a7 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
(i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
(i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
tdep->sigtramp_end.
(i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
* config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
(i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2002-09-02 16:35:14 +00:00
Nick Clifton 3e369e968e Fix PROVIDE 2002-09-02 14:46:56 +00:00
Nick Clifton 5cec694196 Use helpful names instead of cryptically overloaded bfd_reloc error codes.
Replace caching of external symbols with caching of internal symbols obtained
from calling bfd_elf_get_elf_syms().
Fixup problems with freeing cached allocated memory blocks.
2002-09-02 14:23:43 +00:00
Alan Modra 638524b534 * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.
(bfd_pj_arch): Use bfd_default_scan.
	* cpu-v850.c (scan): Remove.
	(N): Use bfd_default_scan.
	* cpu-z8k.c (scan_mach): Remove.
	(arch_info_struct, bfd_z8k_arch): Reorganize so that the default is
	first.  Use bfd_default_scan.
2002-09-02 11:52:01 +00:00
Alan Modra 250d94fd4b * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-coded
bfd_mach constants.
	(ecoff_get_magic): Likewise.
	* elf32-v850.c (v850_elf_object_p): Likewise.
	(v850_elf_final_write_processing): Likewise.
	* mipsbsd.c (MY(set_arch_mach)): Likewise.
	(MY(write_object_contents)): Likewise.
	* coff64-rs6000.c (xcoff64_write_object_contents): Likewise.
	* coffcode.h (coff_write_object_contents): Likewise.
	(coff_set_arch_mach_hook): Add comment describing machine == 0.
	Remove unnecessary "machine" assignments.
	(coff_write_relocs): Test for the absolute section sym by testing
	section and flags.

	* pdp11.c (NAME(aout,machine_type)): Like aoutx.h.
2002-09-02 11:47:42 +00:00
Nick Clifton bf5be08227 Remove redundant references to V850EA architecture. 2002-09-02 11:44:39 +00:00
Alan Modra d943fe33c6 * arc-opc.c: Include bfd.h.
(arc_get_opcode_mach): Subtract off base bfd_mach value.
2002-09-02 06:00:05 +00:00
Alan Modra 3b77b1d509 * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386
and bfd_mach_i386_i386_intel_syntax.
2002-09-02 05:58:55 +00:00
gdbadmin eb9dca9498 *** empty log message *** 2002-09-02 00:00:32 +00:00
Alan Modra 2fc2fd0100 daily update 2002-09-02 00:00:06 +00:00
Jason Thorpe 3cac699e88 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
$(i386_tdep_h), and nbsd-tdep.h to dependency list.
* i386-tdep.h (i386bsd_init_abi): New prototype.
* i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
function declaration.
(_initialize_i386bsd_tdep): Don't register OS ABI handlers
for NetBSD-a.out or NetBSD-ELF.
(i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
(i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
(i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
* i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
and nbsd-tdep.h.
(i386nbsd_pc_in_sigtramp): New function.
(i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
i386nbsd_pc_in_sigtramp.
(_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
and i386nbsdelf_init_abi OS ABI handlers.
* config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
* config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2002-09-01 23:24:19 +00:00
Mark Kettenis 7e3ceb5296 *** empty log message *** 2002-09-01 22:16:04 +00:00
Mark Kettenis 7010ca0ad6 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
registers if the target really has them.


* defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
Fix some whitespace problems.
2002-09-01 22:05:42 +00:00
Stephane Carrez f020bed670 * tuiWin.c (_tuiAllWindowsInfo): Don't crash if the window
is not displayed.
2002-09-01 17:23:59 +00:00
Stephane Carrez 27229e9991 * tui-out.c (tui_out_new): Clear start_of_line.
* tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
	to update the current source line.
2002-09-01 16:12:52 +00:00
Stephane Carrez cda8ab4048 * tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
(tui_install_hooks): Install it.
	(tui_remove_hooks): Remove it.
2002-09-01 12:49:32 +00:00
Stephane Carrez cb50eddded * tuiData.h (FILE_PREFIX): Don't define.
(blankStr, locationStr, breakStr): Don't declare.
	(breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Likewise.
	(displayableWinContentOf, displayableWinContentAt): Likewise.
	(winElementHeight, winByName, freeAllWindows): Likewise.

	* tuiData.c (blankStr, locationStr, breakStr): Remove.
	(breakLocationStr, nullStr, historyLimit, setHistoryLimitTo): Remove.
	(displayableWinContentOf, displayableWinContentAt): Remove.
	(winElementHeight, winByName, freeAllWindows): Remove.
2002-09-01 10:49:00 +00:00
Stephane Carrez 5026540224 * tuiStack.c (tui_make_status_line): New function to create the
status line.
	(tuiShowLocatorContent): Use it instead of displayableWinContentAt.
	* tuiData.h (PROC_PREFIX): Use "In:" to reduce length of prefix.
	(PC_PREFIX): Use upper case.
	(SINGLE_KEY, MIN_LINE_WIDTH, MIN_PROC_WIDTH): Define.
	(MAX_TARGET_WIDTH, MAX_PID_WIDTH): Define.
2002-09-01 10:20:48 +00:00
Stephane Carrez 269c21feac * gdb.texinfo (TUI Overview): Document breakpoint markers. 2002-09-01 08:52:36 +00:00
Stephane Carrez 7cf36c7860 * gdb.texinfo (TUI Single Key Mode): Document new SingleKey mode.
(TUI Keys): Likewise.
2002-09-01 08:39:48 +00:00
Alan Modra c73618fa9c daily update 2002-09-01 00:00:07 +00:00
gdbadmin 2f8b5f1041 *** empty log message *** 2002-09-01 00:00:02 +00:00
Jason Thorpe 6dd93b7254 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
than nbsd-tdep.h.

(ChangeLog check-in missed in previous commit.)
2002-08-31 22:47:41 +00:00
Jason Thorpe 40543c4df7 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
than nbsd-tdep.h.
2002-08-31 22:46:20 +00:00
Jason Thorpe 2ca8ae213f * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
list.
* alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
(alphanbsd_skip_sigtramp_frame): New functions.
(alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
to alphanbsd_sigcontext_addr.
2002-08-31 22:43:38 +00:00
Jason Thorpe 3d9b49b090 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
list.
(nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
* alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
nbsd_pc_in_sigtramp.
* mipsnbsd-tdep.c: Include nbsd-tdep.h.
(mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
* nbsd-tdep.c: Include gdb_string.h.
(nbsd_pc_in_sigtramp): New function.
* nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
* ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
(ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
ppcnbsd_pc_in_sigtramp.
* shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
(shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
shnbsd_pc_in_sigtramp.
* sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
* config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2002-08-31 20:28:37 +00:00
Hans-Peter Nilsson a6bd2a4f18 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
ATTRIBUTE_UNUSED.
2002-08-31 18:51:07 +00:00
Hans-Peter Nilsson 156436a5c2 * ld-mmix/bpo-10.d: Tweak for change in symbols handling.
* ld-mmix/bpo-11.d: Ditto.

	* ld-mmix/b-nosym.d: Adjust for changed output for absence of
	symbols.

	* ld-mmix/sec-7m.d: Rename tested section from .debug_info to
	.di.
	* ld-mmix/sec-7a.s, ld-mmix/sec-7b.s, ld-mmix/sec-7c.s,
	ld-mmix/sec-7d.s, ld-mmix/sec-7e.s: Ditto.
2002-08-31 17:23:58 +00:00
Stephane Carrez 6999695c60 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.
(tuiClearAllExecInfosContent): Likewise.
	(tuiEraseAllExecInfosContent): Ditto.
	(tuiUpdateSourceWindowsFromLocator): Ditto.
	* tuiSourceWin.c (tuiUpdateAllExecInfos): Remove.
	* tui.h (tui_vCheckDataValues): Don't declare.
	(tui_vStartNewLines, tui_vAllSetHasBreakAt): Likewise.
	(tui_vUpdateLocatorFilename, tui_vUpdateSourceWindowsWithAddr): Ditto.
	(tui_vShowFrameInfo): Ditto.
2002-08-31 12:25:29 +00:00
Stephane Carrez e09d2eba9e 2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
* tui.c (tui_commands): Table of single key commands.
	(tui_rl_command_key): New function to execute gdb command.
	(tui_rl_command_mode): New function to temporarily leave SingleKey.
	(tui_rl_next_keymap): New function to enter/leave the SingleKey mode.
	(tui_rl_startup_hook): New function to avoid prompt display by
	readline functions.
	(tui_set_key_mode): New function to set the key mode and install
	the readline keymap.
	(tui_initialize_readline): Create TUI SingleKey readline map.
	(tui_enable): Install rl_startup_hook.
	(tui_disable): Remove it.
	* tui.h (enum tui_key_mode): Declare.
	(tui_set_key_mode, tui_current_key_mode): Declare.
	* tuiIO.c (tui_redisplay_readline): Don't display the prompt in
	SingleKey mode.
	* tuiIO.h (tui_redisplay_readline): Declare.
2002-08-31 12:02:14 +00:00
gdbadmin f5ad01299e *** empty log message *** 2002-08-31 00:00:31 +00:00
Alan Modra 6b9e33ce06 daily update 2002-08-31 00:00:08 +00:00