Commit Graph

12676 Commits

Author SHA1 Message Date
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
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
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
gdbadmin eb9dca9498 *** empty log message *** 2002-09-02 00:00:32 +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
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
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
Stephane Carrez 00b90ae2d1 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
current line.
2002-08-30 21:49:49 +00:00
Stephane Carrez 98427f3550 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
(_hasBreak): Remove.
	(tuiShowSource): Fix comment indentation.
	(tuiSourceIsDisplayed): Likewise.
	(tuiVerticalSourceScroll): Likewise.
2002-08-30 20:23:34 +00:00
Stephane Carrez 00b2bad465 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.
(tui_update_breakpoint_info): Declare.
	(tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.

	* tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Update breakpoint
	information using tui_update_breakpoint_info.
	(tui_update_all_breakpoint_info): New function to refresh all
	execution windows.
	(tui_update_breakpoint_info): New function to recompute the status
	of exec info window from breakpoints.
	(tuiSetHasBreakAt, tuiAllSetHasBreakAt): Remove.
	(tuiSetExecInfoContent): Use the exec info flags computed by
	tui_update_breakpoint_info to display a short status about breakpoints.

	* tuiData.h (TuiExecInfoContent): New for exec info string.
	(TuiWhichElement): Use it.
	(TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT): New defines.
	(TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): New defines.
	(TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS): Likewise.
	(TUI_EXECINFO_SIZE): Likewise.
	* tuiData.c (initContentElement): Clear exec info string.

	* tui-hooks.c (get_breakpoint): Remove.
	(tui_event_create_breakpoint): Call tui_update_all_breakpoint_info.
	(tui_event_delete_breakpoint): Likewise.
	(tui_event_modify_breakpoint): Likewise.
2002-08-30 20:07:05 +00:00
Pierre Muller c860120cad 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
* breakpoint.c (breakpoint_init_inferior): Reset the val field of
	watchpoints to NULL.
	(insert_breakpoints): set val field of watchpoints if NULL.
2002-08-30 07:14:19 +00:00
Jim Blandy c7612d5319 * symtab.c (lookup_symbol_aux): In the cases where we find a
minimal symbol of an appropriate name and use its address to
select a symtab to read and search, use `name' (as passed to us)
as the demangled name when searching the symtab's global and
static blocks, not the minsym's name.
2002-08-30 03:24:00 +00:00
gdbadmin 3e41352c0b *** empty log message *** 2002-08-30 00:00:01 +00:00
Jim Blandy b6ff0e81ff * gdb.threads/pthreads.exp: Move the portable thread compilation
code into a function in lib/gdb.exp, and call that from here.
* lib/gdb.exp (gdb_compile_pthreads): New function.
2002-08-29 22:36:52 +00:00
Keith Seitz 6660986257 * stack.c (print_frame_info_base): Always set current_source_symtab
and current_source_line.
2002-08-29 19:59:35 +00:00
Daniel Jacobowitz a9fa9f7daf * linux-low.c (linux_create_inferior): Call setpgid. Return
the new PID.
        (unstopped_p, linux_signal_pid): Remove.
        (linux_target_ops): Remove linux_signal_pid.
        * remote-utils.c (putpkt, input_interrupt): Use signal_pid
        global instead of target method.
        * target.h (struct target_ops): Remove signal_pid.  Update comment
        for create_inferior.
        * server.c (signal_pid): New variable.
        (create_inferior): Set signal_pid.  Block SIGTTOU and SIGTTIN in
        gdbserver.  Set the child to be the foreground process group.
        (attach_inferior): Set signal_pid.
2002-08-29 18:50:25 +00:00
Keith Seitz 07c988968a * lib/mi-support.exp (mi_gdb_test): Add global declaration for
expect_out so that callers can get at it.
2002-08-29 16:10:13 +00:00
Joel Brobecker 151fefe27f * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S). 2002-08-29 15:08:54 +00:00
gdbadmin e67895fcef *** empty log message *** 2002-08-29 00:00:02 +00:00
Stephane Carrez 77cad3ba61 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.
* tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
	tui_find_disassembly_address to find the starting address of
	disassemble window.
2002-08-28 20:33:27 +00:00
Keith Seitz bfb3754e3d * stack.c (select_frame): Add FIXME concerning selected-frame
events.
        (select_frame_command): Send selected-frame-level-changed
        event notification, but only if the level actually changed.
        (up_silently_base): Add selected-frame-level-changed event
        notification.
        (down_silently_base): Likewise.
2002-08-28 17:27:44 +00:00
Andrew Cagney e822a2a074 Update all .c dependencies. 2002-08-28 14:02:18 +00:00
gdbadmin c434313989 *** empty log message *** 2002-08-28 00:00:02 +00:00
Tom Tromey 309367d4cc * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
	Update dependencies.
	* i387-tdep.c: Include gdb_string.h.
	* osabi.c: Likewise.
	* i386-linux-nat.c: Likewise.
	* lin-lwp.c: Likewise.
	* ax-gdb.c: Likewise.
	* signals/signals.c: Likewise.
	* jv-valprint.c: Likewise.
	* p-lang.c: Likewise.
	* c-valprint.c: Likewise.
	* cp-abi.c: Likewise.
2002-08-27 22:37:14 +00:00
Stephane Carrez aec2f747a8 * tuiDisassem.c (tui_disassemble): New function to disassemble
several lines in a buffer.
	(tui_find_disassembly_address): New function to search backward
	or forward a disassembly line.
	(tuiSetDisassemContent): Use tui_disassemble to obtain the real
	content and format it in the window.
	(tuiShowDisassemAndUpdateSource): Remove unused locals.
	(tuiVerticalDisassemScroll): Use tui_find_disassembly_address to
	obtain the address to disassemble for the scrolling.
	* tuiDisassem.h (tuiGetBeginAsmAddress): Update.
	* tuiSourceWin.c (tuiUpdateSourceWindowAsIs): Don't pass symtab.
2002-08-27 21:59:49 +00:00
Stephane Carrez ec6f88920b * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition. 2002-08-27 20:58:27 +00:00
Elena Zannoni e1507482f5 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
* cli/cli-script.h (copy_command_lines): Export.
	* breakpoint.c: Include cli/cli-script.h.
	* Makefile.in (breakpoint.o): Update dependencies.
2002-08-27 19:06:36 +00:00
Michael Snyder c2b8ed2c80 2002-08-26 Joel Brobecker <brobecker@gnat.com>
* cli/cli-script.c (copy_command_lines): New function.
	* defs.h (copy_command_lines): Export.
	* testsuite/gdb.base/commands.exp: New tests for commands
	attached to a temporary breakpoint, and for commands that
	delete the breakpoint they are attached to.

2002-08-26  Michael Snyder  <msnyder@redhat.com>

	* breakpoint.c (bpstat_stop_status): Instead of copying the
	pointer to the breakpoint commands struct, make a new copy
	of the struct and point to that.
	(bpstat_clear): Free the commands struct.
	(bpstat_clear_actions): Free the commands struct.
	(bpstat_do_actions): Free the command actions.  Also execute
	the local cleanups, instead of deleting them.
	(delete_breakpoint): Leave the commands field of the bpstat
	chain alone -- it will be freed later.
2002-08-27 01:09:09 +00:00
gdbadmin b1f3a3732a *** empty log message *** 2002-08-27 00:00:33 +00:00
Kevin Buettner 64b841757f * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
deleted in 2002-08-20 commit.  This function is still used by
	ppc-linux-nat.c.
2002-08-26 23:20:53 +00:00
Keith Seitz 55970da69c * gdb-events.sh: Add selected-frame-level-changed event.
* gdb-events.c: Regenerated.
        * gdb-events.h: Regenerated.
2002-08-26 19:41:56 +00:00
Stephane Carrez 1533ce99dd Fix PR gdb/393:
* tui.c (tui_disable): Update gdb's knowledge of its terminal
	using target_terminal_save_ours.
	(tui_enable): Likewise.
2002-08-26 19:35:37 +00:00
Stephane Carrez a790ad353e Fix PR gdb/393:
* inflow.c (terminal_save_ours): New function to save terminal
	settings.
	* inferior.h (terminal_save_ours): Declare.
	* target.c (debug_to_terminal_save_ours): New function.
	(cleanup_target): Defaults to_terminal_save_ours.
	(update_current_target): Inherit to_terminal_save_ours.
	(setup_target_debug): Set to_terminal_save_ours.
	* target.h (target_terminal_save_ours): New to save terminal settings.
	(target_ops): New member to_terminal_save_ours.
	* gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
	* hpux-thread.c (init_hpux_thread_ops): Likewise.
	* inftarg.c (init_child_ops): Likewise.
	* m3-nat.c (init_m3_ops): Likewise.
	* procfs.c (init_procfs_ops): Likewise.
	* wince.c (init_child_ops): Likewise.
	* win32-nat.c (init_child_ops): Likewise.
	* sol-thread.c (init_sol_thread_ops): Likewise.
2002-08-26 19:18:33 +00:00
Mark Kettenis 3d7f4f4914 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
use regcache_* functions.
(i386_gdbarch_init): Set store_return_value instead of
deprecated_store_return_value.
2002-08-26 18:35:25 +00:00
gdbadmin eb5d82dd0a *** empty log message *** 2002-08-26 00:00:32 +00:00
Mark Kettenis c00dcbe965 * regcache.c (regcache_raw_write_signed,
regcache_raw_write_unsigned): New functions.
* regcache.h (regcache_raw_write_signed,
regcache_raw_write_unsigned): New prototypes.
2002-08-25 23:44:30 +00:00
Stephane Carrez 6ba6ffa237 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.
(tui_rl_change_windows): Renames tui_change_windows.
	(tui_rl_delete_other_windows): Renames tui_delete_other_windows.
	(tui_initialize_readline): Update.
2002-08-25 21:44:41 +00:00
Andrew Cagney 0e0d15ca2c 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
	(m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
	source file dependencies.  Cleanup corresponding generator rules.
2002-08-25 21:43:05 +00:00
Stephane Carrez f8b6fe0970 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
(_hasBreak): Remove.
2002-08-25 19:54:56 +00:00
Stephane Carrez 0510ab860e * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
to find symbol address.
2002-08-25 19:39:45 +00:00
Stephane Carrez 1f393769d4 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
and use tuiGetBeginAsmAddress.
	* tuiSourceWin.h (tui_display_main): Declare.
	* tui.h (tuiDisplayMainFunction): Remove.
	* tui-hooks.c (tui_new_objfile_hook): Update.
2002-08-25 19:19:50 +00:00
Andrew Cagney d2c6833eda 2002-08-25 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (Examples): Use ``->'' for a packet send and ``<-''
	for a packet receive.
2002-08-25 19:10:15 +00:00
Stephane Carrez 74e70df6b6 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
(tuiShowSourceAsIs): Don't declare.
2002-08-25 18:58:58 +00:00
Andrew Cagney d3b22ed57c 2002-08-25 Andrew Cagney <ac131313@redhat.com>
* regcache.h (register_offset_hack): Declare.
	(regcache_cooked_read_using_offset_hack): Declare.
	(regcache_cooked_write_using_offset_hack): Declare.

	* regcache.c (register_offset_hack): New function.
	(regcache_cooked_read_using_offset_hack): New function.
	(regcache_cooked_write_using_offset_hack): New function.
	(regcache_dump): Check that the registers, according to their
	offset, are packed hard against each other.
	(cooked_xfer_using_offset_hack): New function.
2002-08-25 18:47:16 +00:00
Stephane Carrez 90949d06a3 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
the frame position.
2002-08-25 18:42:32 +00:00
Stephane Carrez 7d6dd1e97d * tuiStack.c (tuiSetLocatorContent): Remove.
(tuiUpdateLocatorInfoFromFrame): Remove.
	(tui_set_locator_info): Allocate the content buffer if necessary.
	(tui_set_locator_filename): Call tui_set_locator_info directly.
	(tuiShowFrameInfo): Likewise and use find_pc_line instead of
	find_pc_symtab.
2002-08-25 17:13:29 +00:00
Andrew Cagney bb4250135d 2002-08-25 Andrew Cagney <ac131313@redhat.com>
* regcache.c (struct regcache_descr): Add field register_type.
	(init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
	in as a parameter
	(init_regcache_descr): Initialize register_type.  Pass the descr
	to init_legacy_regcache_descr.  Use register_type instead of
	REGISTER_VIRTUAL_TYPE.
	(register_type): New function.
	(regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
	* regcache.h (register_type): Declare.
2002-08-25 15:36:11 +00:00
Andrew Cagney d0403e0050 2002-08-25 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
	instead of deprecated_store_return_value.  Fix fallout from
	2002-08-23 Andrew Cagney <cagney@redhat.com>.
2002-08-25 15:18:41 +00:00
Andrew Cagney 0ed04cce6d 2002-08-25 Andrew Cagney <ac131313@redhat.com>
* regcache.c (max_register_size): New function.
	(init_legacy_regcache_descr): Ensure that max_register_size is
	large enough for REGISTER_VIRTUAL_SIZE.
	* regcache.h (max_register_size): Declare.
2002-08-25 14:44:04 +00:00
Andrew Cagney 46d8b1c325 2002-08-24 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (clean): Move to end of file.
	(distclean, maintainer-clean, realclean): Ditto.
	(mostlyclean): Move rule to end of file.  Use GDB_TEX_TMPS,
	GDBINT_TEX_TMPS, STABS_TEX_TMPS.
	(gdb.dvi, gdb.pdf): Do not cleanup TeX temp files after texi2dvi.
	(gdbint.dvi, gdbint.pdf, stabs.dvi, stabs.pdf): Ditto.
2002-08-25 13:48:15 +00:00
Andrew Cagney 46d79c043b 2002-08-24 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
	store_return_value.
	(e500_extract_return_value): Change type of valbuf pointer to
	void.
2002-08-25 13:15:50 +00:00
Stephane Carrez 2e17b76385 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
tuiUpdateLocatorFilename.
	* tuiStack.c (tuiSetLocatorInfo): Make it static.
	(tuiSetLocatorContent): Likewise.
	(tuiUpdateLocatorInfoFromFrame): Likewise.
	(tuiSwitchFilename): Remove.
	(tui_set_locator_filename): New function
	(tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
	use tui_set_locator_filename to record the filename.
	(tuiUpdateLocatorFilename): Likewise.
	(tuiUpdateLocatorInfoFromFrame): Update.
	(tuiSetLocatorContent): Likewise.
	* tuiStack.h (tuiClearLocatorContent): Don't declare.
	(tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
	(tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
2002-08-25 13:13:20 +00:00
Stephane Carrez bc6b7f04ca * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
comparison; cleanup.
	* tuiSource.c (tuiSetSourceContent): Set window title and filename.
	* tuiGeneralWin.c (boxWin): Print optional title on top of window.
	* tuiData.h (TuiSourceInfo): Add filename member.
	(TuiGenWinInfo): Add title member.
	* tuiData.c (initGenericPart): Clear title.
	(freeWindow): Free title and filename; remove unused locals.
	(initWinInfo): Clear filename.
	(tuiDelWindow): Free it; remove unused locals.
2002-08-25 11:00:46 +00:00
Stephane Carrez d059f789de * tuiStack.h (tuiGetLocatorFilename): Don't declare.
(tuiUpdateLocatorDisplay): Likewise.
	* tuiStack.c (tuiGetLocatorFilename): Remove.
	(tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
	instead of tuiUpdateLocatorDisplay.
	(tuiUpdateLocatorDisplay): Remove.
2002-08-25 10:04:08 +00:00
Stephane Carrez 3a42771a8e * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
* tuiStack.c (tuiClearLocatorDisplay): Remove.
	(tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
	(tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
2002-08-25 09:53:27 +00:00
Stephane Carrez 5564c76952 * tuiStack.c (tui_get_function_from_frame): Rename from
_getFuncNameFromFrame; use print_address_symbolic to get symbolic
	name of address.
	(tuiUpdateLocatorInfoFromFrame): Update.
2002-08-25 09:40:32 +00:00
Stephane Carrez bc77de56b6 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
(_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
	(_tuiSetGeneralAndSpecialRegsContent): Likewise.
	(_tuiSetFloatRegsContent): Likewise.
	(_tuiRegisterName): Return a const char*.
	* tuiData.h (_TuiDataElement): Use const char* for name.
2002-08-25 09:12:36 +00:00
Stephane Carrez 335fc5a319 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
(tuiShowAllExecInfosContent): Likewise.
	* tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
	(tuiShowAllExecInfosContent): Remove.
	(tuiAllocSourceBuffer): Remove unused locals.
2002-08-25 08:44:44 +00:00
Stephane Carrez 7563e053c3 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
to follow other gdb's command names; use execute_command; cleanup.
	(_initialize_tuiStack): Update.
2002-08-25 08:22:58 +00:00
Stephane Carrez b7a60de68b * tuiWin.h (tui_update_gdb_sizes): Declare. 2002-08-25 07:56:01 +00:00
Andrew Cagney b0787093b1 2002-08-24 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (GDBINT_TEX_TMPS): Define.
	(gdbint.dvi, gdbint.pdf): Use
	(GDB_TEX_TMPS): Define.
	(gdb.dvi, gdb.pdf): Use.
	(STABS_TEX_TMPS): Define.
	(stabs.dvi, stabs.pdf): Use.
	(GDB_DOC_SOURCE_INCLUDES): New macros.
	(GDB_DOC_BUILD_INCLUDES, GDB_DOC_FILES): New macros.
	(GDBINT_DOC_FILES_INCLUDES): New macros.
	(GDBINT_DOC_BUILD_INCLUDES): New macros.
	(GDBINT_DOC_FILES, STABS_DOC_SOURCE_INCLUDES): New macros.
	(STABS_DOC_BUILD_INCLUDES, STABS_DOC_FILES): New macros.
	(SFILES_DOC, SFILES_INCLUDED, SFILES_LOCAL): Delete macros.
	(links2roff): Replace SFILES_INCLUDED with
	GDB_DOC_SOURCE_INCLUDES.
	(gdb.dvi, gdb_toc.html, gdb.pdf, gdb.info): Update dependencies.
	(gdb.me, gdb.mm, gdb.ms): Update dependencies.
	(gdbint.dvi, gdbint_toc.html, gdbint.pdf, gdbint.info): Update
	dependencies.
	(stabs.info, stabs_toc.html, stabs.pdf, stabs.dvi): Update
	dependencies.
	(gdbmi.texinfo): Delete rule.
	(inc-hist.texinfo): Delete rule.
	(rluser.texinfo): Delete rule.
2002-08-25 00:12:33 +00:00
gdbadmin 4bf8918b43 *** empty log message *** 2002-08-25 00:00:32 +00:00
Stephane Carrez 297d160777 * tui.c (strcat_to_buf): Use const char* for source item.
(tui_enable): Update the windows if there is a selected frame.
	* tui.h (strcat_to_buf): Update prototype.
	(strcat_to_buf_with_fmt): Remove.
2002-08-24 17:04:33 +00:00
Stephane Carrez 3e752b0491 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
is the size of command window.
	(tuiResizeAll): Call it instead of init_page_info.
	* tui.c (tui_enable): Call it to resize to TUI command window.
	(tui_disable): Likewise for plain screen.
2002-08-24 16:43:08 +00:00
Stephane Carrez c7037be10d * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
use tuiShowFrameInfo instead of tuiSetLocatorContent.
	* tuiLayout.h (showLayout): Remove.
	* tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
	(_showSourceDisassemCommand): Likewise.
	(showLayout): Make it static.
	(lastLayout): Remove.
2002-08-24 15:25:25 +00:00
Mark Kettenis cd87e76990 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
workaround.
2002-08-24 14:36:12 +00:00
Stephane Carrez bc712bbf17 * tuiSourceWin.c (tui_show_source_line): New function.
(tuiShowSourceContent): Call it and avoid clearing the window before
	redrawing it.
	(tuiClearAllSourceWinsContent): Remove.
	* tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
	* tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
	* tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
	(tuiRefreshAll): Don't clear the window.
	(_makeVisibleWithNewHeight): Don't clear locator line.
	(tuiResizeAll): Remove unused locals.
	(_tuiAdjustWinHeights): Likewise.
	(_makeInvisibleAndSetNewHeight): Likewise.
	(_newHeightOk): Likewise.
	* tuiLayout.c (showLayout): Don't clear source windows.
	(tuiSetLayout): Don't clear the window.
	(_initAndMakeWin): Likewise for status line.
	* tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
	(makeWindow): Likewise.
	(tuiClearWin): Remove.
	* tuiGeneralWin.h (tuiClearWin): Don't declare.
2002-08-24 12:28:33 +00:00
Stephane Carrez e9ae5755d3 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
(tuiAsmWinIsDisplayed): Remove.
	(tuiShowAllSourceWinsContent): Remove.
	(tuiUpdateOnEnd): Remove.
	* tuiGeneralWin.c (scrollWinForward): Remove.
	(scrollWinBackward): Remove.
	(_winResize): Don't declare.
	* tui.h (tuiUpdateOnEnd): Don't declare.
	(vcatch_errors, va_catch_errors): Likewise.
	* tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
	(tuiShowAllSourceWinsContent): Likewise.
	* tuiGeneralWin.h (scrollWinForward): Likewise.
	(scrollWinBackward): Likewise.
2002-08-24 10:15:54 +00:00
Stephane Carrez ad0fd2c861 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info. 2002-08-24 09:43:30 +00:00
Mark Kettenis 853c7bd0f4 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
long long) to prevent compiler warning on 64-bit systems.
2002-08-24 00:40:59 +00:00
Andrew Cagney ebba838619 Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.3144
diff -u -r1.3144 ChangeLog
--- ChangeLog	23 Aug 2002 23:05:38 -0000	1.3144
+++ ChangeLog	23 Aug 2002 23:14:45 -0000
@@ -1,3 +1,53 @@
2002-08-23  Andrew Cagney  <cagney@redhat.com>

	* gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
	(DEPRECATED_STORE_RETURN_VALUE): New method.
	(EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
	* gdbarch.h, gdbarch.c: Re-generate.

	* values.c (set_return_value): Pass current_regcache to
	STORE_RETURN_VALUE.
	* arch-utils.h (legacy_store_return_value): Declare.
	* arch-utils.c (legacy_store_return_value): New function.
	(legacy_extract_return_value): Update parameters.

	* config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
	STORE_RETURN_VALUE.
	* config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
	* config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.

	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
	* i386-tdep.c (i386_extract_return_value): Update.
	* arch-utils.c (legacy_extract_return_value): Update.
	* frv-tdep.c (frv_gdbarch_init): Update.
	* cris-tdep.c (cris_gdbarch_init): Update.
	* d10v-tdep.c (d10v_gdbarch_init): Update.
	* rs6000-tdep.c (rs6000_gdbarch_init): Update.
	* m68k-tdep.c (m68k_gdbarch_init): Update.
	* mcore-tdep.c (mcore_gdbarch_init): Update.
	* mn10300-tdep.c (mn10300_gdbarch_init): Update.
	* s390-tdep.c (s390_gdbarch_init): Update.
	* sparc-tdep.c (sparc_gdbarch_init): Update.
	* sh-tdep.c (sh_gdbarch_init): Update.
	* x86-64-tdep.c (x86_64_gdbarch_init): Update.
	* v850-tdep.c (v850_gdbarch_init): Update.
	* avr-tdep.c (avr_gdbarch_init): Update.
	* ia64-tdep.c (ia64_gdbarch_init): Update.
	* ns32k-tdep.c (ns32k_gdbarch_init): Update.
	* vax-tdep.c (vax_gdbarch_init): Update.
	* alpha-tdep.c (alpha_gdbarch_init): Update.
	* arm-tdep.c (arm_gdbarch_init): Update.
	* mips-tdep.c (mips_gdbarch_init): Update.
	* i386-tdep.c (i386_gdbarch_init): Update.

Index: doc/ChangeLog
2002-08-21  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Update
	STORE_RETURN_VALUE, mention regcache.
2002-08-24 00:21:37 +00:00
gdbadmin 0becb2ae21 *** empty log message *** 2002-08-24 00:00:33 +00:00
Andrew Cagney 5bd8c6d0f9 2002-08-23 Andrew Cagney <ac131313@redhat.com>
* config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2002-08-23 23:15:52 +00:00
Mark Kettenis e73e1724fe * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
problems.
2002-08-23 23:05:39 +00:00
Joel Brobecker 3e6564e1ff * infrun.c (handle_inferior_event): Move a comment outside of a
function call, in order to avoid indent reformatting this part
        of the code in an unreadable way.
2002-08-23 21:55:36 +00:00
Grace Sainsbury 81d0cc192b * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
when breakpoints fail. Move general breakpoint error messages to
	insert_breakpoints.
	* breakpoint.c (insert_breakpoints): Change warnings when
	breakpoints are nto inserted to specify the type. Remove call to
	memory_error when hardware breakpoints can't be inserted. Remove
	multiple calls to warning so all messages are sent to the user at
	once.
	(delete_breakpoints): Make insert error messsages more explicit.
2002-08-23 20:49:38 +00:00
Daniel Jacobowitz 0312286c94 * gdb.threads/print-threads.c: New file.
* gdb.threads/print-threads.exp: New file.
        * gdb.threads/schedlock.c: New file.
        * gdb.threads/schedlock.exp: New file.
2002-08-23 20:32:02 +00:00
Daniel Jacobowitz 1757409337 * ChangeLog: Move gdbserver entries after GDB 5.2 to
gdbserver/ChangeLog.
2002-08-23 19:55:50 +00:00
Mark Kettenis dfe01d390c * i386-tdep.c: Include "objfiles.h".
(i386_svr4_init_abi): Set in_solib_call_trampoline and
skip_trampoline_code.
* config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
(CPLUS_MARKER): Define to '.'.
2002-08-23 19:26:15 +00:00
Mark Kettenis 8acc293538 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
member.
(linux_corefile_thread_callback): Increase args->num_notes.
(linux_make_note_section): Initialize thread_args.num_notes, and
use it to determine whether notes for any threads were created.
2002-08-23 19:06:05 +00:00
Joel Brobecker 640b227fa0 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
        and PCUNKILL.
        (write_with_trace): Conditionalize out the switch branch handling
        PCSHOLD if the corresponding macro is not defined. Likewise for
        PRSABORT and PRSTOP.
        This change will be needed by the Interix port.
2002-08-23 15:06:53 +00:00
Elena Zannoni dd039bc424 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
* gdb.arch/altivec-abi.exp: The source C file is altivec-abi.c,
        not altivec.c.
2002-08-23 01:52:22 +00:00
gdbadmin 4fb4f9522d *** empty log message *** 2002-08-23 00:00:02 +00:00
Elena Zannoni 96ff0de4ab 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
	ev_offset fields.
	(skip_prologue): Add support for BookE/e500 instructions.
	(e500_extract_return_value): New function.
	(frame_get_saved_regs): Add support for saving ev registers and
	pseudo gpr's.
	(e500_store_return_value): New function.
	(rs6000_gdbarch_init): Move up default intializations of
	deprecated_extract_return_value and store_return_value.  Overwrite
	init of store_return_value with e500 specific version.
	Set extract_return_value for e500.
2002-08-22 22:26:41 +00:00
Elena Zannoni fbefca5bab 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
* blockframe.c (generic_call_dummy_register_unwind): Use
	regcache_cooked_read to catch cases in which the variable is
	stored in a pseudo register.
2002-08-22 22:25:17 +00:00
Andrew Cagney 4d210288d3 Obsolete i960. 2002-08-22 21:52:45 +00:00
Corinna Vinschen 6c0c456d87 * aix-thread.c (aix_thread_detach): Disable thread debugging on
detach to allow reinitialization.
2002-08-22 15:27:16 +00:00
Andrew Cagney 9f9d12b370 2002-08-22 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Change the s390 target to s390-linux-gnu (second
attempt).
2002-08-22 14:47:52 +00:00
Jim Blandy ebeb39fe31 * coffread.c (coff_symfile_read): Don't try to read the line
number table from disk if the image file doesn't have a symbol
table; we'll never actually look at the info anyway, and Windows
ships DLL's with bogus file offsets for the line number data.
2002-08-22 05:50:11 +00:00
gdbadmin f43d77f5e1 *** empty log message *** 2002-08-22 00:00:32 +00:00
Elena Zannoni 5bf1c6772c 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
        an e500 executable.
2002-08-21 22:56:02 +00:00
Michael Snyder 18f8152171 2002-08-21 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (DEFAULT_MIPS_TYPE): Delete unused macro.
	* config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
	* config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2002-08-21 22:39:26 +00:00
Michael Snyder 71b8ef9305 2002-08-21 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
	(MSYMBOL_SIZE): Replace macro with function.
2002-08-21 22:18:25 +00:00
Jim Blandy d174216d52 * valops.c (value_cast): Simplify and correct logic for doing a
static cast from a pointer to a base class to a pointer to a
derived class.
2002-08-21 17:24:31 +00:00
Andrew Cagney 0ab7a79125 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (default_print_registers_info): Replace
do_registers_info.
(registers_info): Use gdbarch_print_registers_info instead of
DO_REGISTERS_INFO.
* inferior.h (default_print_registers_info): Replace
do_registers_info.
* gdbarch.sh (PRINT_REGISTERS_INFO): New method.
(DO_REGISTERS_INFO): Change to a predicate function.
* gdbarch.h, gdbarch.c: Regenerate.

2002-08-21  Andrew Cagney  <ac131313@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Document
print_registers_info.  Note that DO_REGISTERS_INFO is deprecated.
2002-08-21 16:34:10 +00:00
Keith Seitz e23792ccb6 * gdb-events.sh: Add target-changed event.
* gdb-events.c: Regenerated.
        * gdb-events.c: Regenerated.
        * valops.c (value_assign): Add target-changed event notification
        to inlval_register, lval_memory, and lval_reg_frame_relative.
2002-08-21 15:34:36 +00:00
Joel Brobecker 9fb14e79f9 * NEWS: Add an entry regarding the improvement of the next/step
operation on Alpha Tru64 multi-processor machines.
2002-08-21 13:59:28 +00:00
Andrew Cagney 72acd513df 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in: Update dependencies for mi/ cli/ and tui/
directores.
2002-08-21 05:40:07 +00:00
Andrew Cagney 342af04b4c 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in: Update all _h macro definitions.
2002-08-21 05:03:38 +00:00
Andrew Cagney 6d39a69f2f 2002-08-21 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (install-gdbtk): Move to install section.
(rdi-share/libangsd.a): Move to end of file.
2002-08-21 04:50:20 +00:00
Andrew Cagney fa5f27c703 2002-08-19 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_register_unwind): When a register, set addrp to
the register's byte.
2002-08-21 03:34:22 +00:00
Michael Snyder 5a89d8aaa2 2002-08-20 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
	used locally, so move them from the target machine header to here.
	(mips_set_processor_type, mips_register_name, mips32_next_pc,
	mips16_next_pc, cached_proc_desc, mips_set_processor_type):
	Make static.
	* config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2002-08-21 01:08:23 +00:00
Andrew Cagney 822e978b93 2002-08-20 Andrew Cagney <cagney@redhat.com>
* NEWS: Mention that the Apollo line was made obsolete.
* configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
m68*-hp-hpux* obsolete.
* configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
m68*-hp-bsd* and m68*-hp-hpux* obsolete.
* buildsym.c (make_blockvector): Make static.
* buildsym.h (make_blockvector): Make extern declaration obsolete.
* Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
(ALLDEPFILES): Remove dstread.c.
(dstread.o): Obsolete make rule.
* dstread.c: Makefile obsolete.
* dst.h: Ditto.
* config/m68k/hp300hpux.mt: Ditto.
* config/m68k/hp300hpux.mh: Ditto.
* config/m68k/hp300bsd.mt: Ditto.
* config/m68k/hp300bsd.mh: Ditto.
* config/m68k/apollo68b.mt: Ditto.
* config/m68k/apollo68v.mh: Ditto.
* config/m68k/apollo68b.mh: Ditto.
2002-08-21 00:57:44 +00:00
gdbadmin d5b39e0c53 *** empty log message *** 2002-08-21 00:00:33 +00:00
Michael Snyder e41b17f0dc 2002-08-20 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_in_return_stub): Make static.
	(mips_gdbarch_init): Set in_solib_return_trampoline.
	* config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2002-08-20 23:07:43 +00:00
Michael Snyder d50355b63c 2002-08-20 Michael Snyder <msnyder@redhat.com>
* gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
	* gdbarch.c, gdbarch.h: Regenerate.
	* arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
	Add.
        * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2002-08-20 23:01:29 +00:00
Michael Snyder 757a7cc676 2002-08-20 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
	(mips_gdbarch_init): Set skip_trampoline_code,
	in_solib_call_trampoline.
	* config/mips/tm-mips.h (REGISTER_NAME): Delete.
	(IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2002-08-20 22:44:55 +00:00
Elena Zannoni c8001721f3 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* ppc-tdep.h (struct gdbarch_tdep): Add ev registers.

	* rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
	vector type for ev registers.
	(e500_pseudo_register_read): New function.
	(e500_pseudo_register_write): New function.
	(e500_dwarf2_reg_to_regnum): New function.
	(PPC_UISA_NOFP_SPRS): New macro.
	(PPC_EV_REGS): New macro.
	(PPC_GPRS_PSEUDO_REGS): New macro.
	(registers_e500): New register set for e500.
	(variants): Add e500 variant.
	(rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
	before setting architectural dependent variations.  Initialize ev
	registers numbers.  Add case for e500 architecture.  Set the
	number of pseudo registers.
2002-08-20 22:24:29 +00:00
Elena Zannoni 64366f1caf 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c: Clean up comments.
2002-08-20 22:11:48 +00:00
Andrew Cagney 7e78f0ca69 2002-08-20 Andrew Cagney <cagney@redhat.com>
* h8300-tdep.c: Re-indent file.
2002-08-20 22:02:48 +00:00
Michael Snyder f7ab6ec685 2002-08-19 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
	(MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
	(FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
	POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
	(CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
	CALL_DUMMY_ADDRESS): Delete.
	* mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
	mips_msymbol_is_special, mips_fix_call_dummy): New functions.
	(mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
	push_dummy_frame, fix_call_dummy, init_extra_frame_info,
	push_return_address.
	(mips_register_raw_size, mips_eabi_use_struct_convention,
	mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
	mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
	mips_init_extra_frame_info, mips_eabi_push_arguments,
	mips_n32n64_push_arguments, mips_push_return_address,
	mips_push_dummy_frame,	mips_pop_frame,	mips_skip_prologue,
	mips_breakpoint_from_pc, mips_call_dummy_address): Make	static.
2002-08-20 21:58:44 +00:00
Jim Blandy 697f7479bb * Makefile.in (LDFLAGS): Allow the configure script to establish a
default for this.
* gdbserver/Makefile.in (LDFLAGS): Same.
2002-08-20 21:32:18 +00:00
Keith Seitz e86ae29ff5 * breakpoints.c (watch_command_1): Use internal breakpoint
when setting a watchpoint_scope breakpoint.
2002-08-20 20:03:35 +00:00
Elena Zannoni 216b504fa7 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* gdbtypes.c (build_builtin_type_vec64): Add name to type.
	(build_builtin_type_vec64i): Ditto.
	(build_builtin_type_vec128): Ditto.
	(build_builtin_type_vec128i): Ditto.
2002-08-20 19:57:32 +00:00
Michael Snyder b5d1566e1b 2002-08-19 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_frame_num_args): New function.
	(mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
	frame_saved_pc, frame_args_address, frame_locals_address,
	frame_num_args, and frame_args_skip.
	* config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
	FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
	FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
	* config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2002-08-20 19:41:59 +00:00
Michael Snyder 73da396e0b 2002-08-20 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
	(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
	* mips-tdep.c (mips_store_struct_return): New function.
	(mips_extract_struct_value_address): New function.
	(mips_gdbarch_init): Set store_struct_return and
	extract_struct_value_address.
2002-08-20 19:32:47 +00:00
Michael Snyder 2f1488ce23 2002-08-20 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
	(EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
	* mips-tdep.c (mips_store_struct_return): New function.
	(mips_extract_struct_value_address): New function.
	(mips_gdbarch_init): Set store_struct_return and
	extract_struct_value_address.
2002-08-20 19:26:23 +00:00
David Carlton 41ff2da14c 2002-08-13 David Carlton <carlton@math.stanford.edu>
* dwarf2read.c (dwarf2_build_psymtabs): Check that
	dwarf_line_offset is nonzero before creating dwarf_line_buffer.
	(read_file_scope): Check that line_header is nonzero before
	decoding macro information.
2002-08-20 18:45:30 +00:00
Mark Kettenis e5451d58f4 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
flag the general-purpose registers as floating-point on targets
that don't support the floating-point registers.
2002-08-20 17:59:50 +00:00
Mark Kettenis e1b73efd99 *** empty log message *** 2002-08-20 17:38:46 +00:00
Elena Zannoni 4a6daafa0b 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (altivec_register_p): Delete.
	(rs6000_do_altivec_registers): Delete.
	(rs6000_altivec_registers_info): Delete.
	(rs6000_do_registers_info): Delete.
	(_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
	(rs6000_gdbarch_init): Remove setting of do_registers_info.
2002-08-20 17:33:51 +00:00
Elena Zannoni ab4327e008 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
* infcmd.c (do_registers_info): Print vector registers in hex
	format only.
	(print_vector_info): Check that printing registers
	makes sense.
	(print_float_info): Ditto.
2002-08-20 16:33:32 +00:00
Andrew Cagney cb1d2653f9 2002-08-20 Andrew Cagney <ac131313@redhat.com>
* mips-tdep.c (mips_gdbarch_init): Update.
(mips_o32_extract_return_value): Rewrite.
(mips_o32_store_return_value): Rewrite.
(mips_o32_xfer_return_value): New function.
(mips_xfer_register): Tweak debug print message.  Allow for
buf_offset when dumping the value transfered.
2002-08-20 16:11:49 +00:00
Andrew Cagney dfc3d9b245 2002-08-20 Andrew Cagney <ac131313@redhat.com>
* config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
* config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
* config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
* config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
* mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2002-08-20 13:17:55 +00:00
gdbadmin f5126dd7c3 *** empty log message *** 2002-08-20 00:00:06 +00:00
Michael Snyder 7807aa614f 2002-08-14 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2002-08-19 23:22:17 +00:00
Elena Zannoni 489461e2aa 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (struct reg): Add field to indicate a pseudo
	register.
	(P): New macro to define a register as a pseudo register.
	(R, R4, R8, R16, FR32, R64, R0): Updated.
	(struct variant): Add new fields for number of pseudo registers
	and number of total registers.
	(tot_num_registers): New macro replacing....
	(num_registers): ...deleted macro.
	(num_registers): New function.
	(num_pseudo_registers): New function.
	(variants): Update all variants to intialize new fields correctly.
	Postpone initialization of number of pseudo regs and real regs.
	(init_variants): New function.
	(rs6000_gdbarch_init): Initialize variants.  Update calculation of
	registers offsets.
2002-08-19 23:21:16 +00:00
David Carlton 2c2738a0e0 2002-08-19 David Carlton <carlton@math.stanford.edu>
* valops.c (search_struct_field): Change error message to treat
	return value of 0 from value_static_field as meaning that field is
	optimized out.
	(value_struct_elt_for_reference): Ditto.
	* values.c (value_static_field): Treat an unresolved location the
	same as a nonexistent symbol.  Fix PR gdb/635.
2002-08-19 23:19:53 +00:00
David Carlton 2a73a662d6 2002-08-19 David Carlton <carlton@math.stanford.edu>
* gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
	enclosed.  Fix PR gdb/574.
2002-08-19 22:53:33 +00:00
David Carlton fcaffe4c2a Add self to MAINTAINERS. 2002-08-19 22:38:07 +00:00
Andrew Cagney ee2d5c5028 2002-08-19 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (Remote Protocol): Reformat.  Use cross references.
Fix minor typos.  Add index entries.
2002-08-19 22:09:03 +00:00
Andrew Cagney 88658117fa 2002-08-19 Andrew Cagney <ac131313@redhat.com>
* mips-tdep.c (mips_xfer_register): New function.
(mips_n32n64_extract_return_value): Rewrite.
(mips_gdbarch_init): For N32 and N64, set extract_return_value
instead of deprecated_extract_return_value.
2002-08-19 21:25:43 +00:00
Elena Zannoni 21283bebca 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (TDEP): Delete macro.
        (branch_dest): Replace use of TDEP macro with its body.
        (rs6000_pop_frame): Ditto.
        (rs6000_push_arguments): Ditto.
        (rs6000_skip_trampoline_code): Ditto.
        (rs6000_frame_saved_pc): Ditto.
        (rs6000_frame_chain): Ditto.
        (rs6000_register_name): Ditto.
        (rs6000_register_byte): Ditto.
        (rs6000_register_raw_size): Ditto.
        (rs6000_register_virtual_type): Ditto.
        (rs6000_register_convertible): Ditto.
        (rs6000_convert_from_func_ptr_addr): Ditto.
2002-08-19 17:57:59 +00:00
Daniel Jacobowitz bf07299995 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
conditionally.
        (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
        MIPS_LINUX_JB_ELEMENT_SIZE.
        * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
        for MAX_REGISTER_RAW_SIZE arrays.
        (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
        MIPS_LINUX_JB_ELEMENT_SIZE.
2002-08-19 14:24:56 +00:00
Pierre Muller 242f28010b * remove wrong patch about TYPE_CODE_FLAGS for pascal 2002-08-19 13:12:09 +00:00
Pierre Muller ed8f822aaf 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
* p-valprint.c (pascal_val_print): Add support for TYPE_CODE_FLAGS.
2002-08-19 12:08:07 +00:00
Pierre Muller 9b949a49f8 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
* i387-tdep.c (i387_print_float_info): Fix typo in comment.
2002-08-19 11:52:36 +00:00
Aidan Skinner 6d3e79c6c8 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
ada-valprint.c ada-tasks.c.
	(YYFILES): Add ada-exp.y.
	(ada-exp.tab.c ada-lex.c ada-lang.o): New target.
	(ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
	(ada-exp.tab.o): New target.
2002-08-19 10:52:20 +00:00
Andrew Cagney 53c69bd7cd 2002-08-18 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (Data): Add ``Vector Unit'' to menu.
2002-08-19 00:57:17 +00:00
Andrew Cagney 06c0b04e1c 2002-08-18 Andrew Cagney <ac131313@redhat.com>
* regcache.c (regcache_xfer_part): New function.
(regcache_raw_read_part): New function.
(regcache_raw_write_part): New function.
(regcache_cooked_read_part): New function.
(regcache_cooked_write_part): New function.
* regcache.h (regcache_raw_read_part): Declare.
(regcache_raw_write_part): Declare.
(regcache_cooked_read_part): Declare.
(regcache_cooked_write_part): Declare.
2002-08-19 00:43:41 +00:00
gdbadmin d90b1c99f7 *** empty log message *** 2002-08-19 00:00:02 +00:00
Daniel Jacobowitz 6d7fbb5a8b Fix PR gdb/655
* tui.c: Disable <termio.h> include.
2002-08-18 23:20:47 +00:00
Daniel Jacobowitz 92d1e33186 * remote.c (remote_open_1): Add async_p.
(remote_async_open_1): Delete.
        (open_remote_target): Delete.
        (remote_open, extended_remote_open): Update calls to remote_open_1.
        (remote_async_open, extended_remote_async_open): Call
        remote_open_1 instead of remote_async_open_1.
2002-08-18 23:17:57 +00:00
Mark Kettenis 247055dee0 * blockframe.c: Fix a few coding standard violations. 2002-08-18 22:40:15 +00:00
Mark Kettenis 0b7177103b * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
here from ...
* config/i386/tm-i386sco5.h: ... here.  File removed.
* config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2002-08-18 22:23:32 +00:00
Mark Kettenis 26d28e1276 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define. 2002-08-18 22:17:57 +00:00
Mark Kettenis 641eda3940 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
(TM_FILE): Set to tm-i386.h.
* config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
* config/i386/tm-i386v.h: Remove file.
* config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
instead of "i386/tm-i386v.h".
(START_INFERIOR_TRAPS_EXPECTED): Remove define.
* config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
"i386/tm-i386v.h".
(START_INFERIOR_TRAPS_EXPECTED): Remove define.
* config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
"i386/tm-i386.h".
2002-08-18 22:14:24 +00:00
Mark Kettenis d4e0bab44f * config/i386/nm-i386v.h: Add protection against
multiple-inclusion.
(i386_register_u_addr): Remove prototype.
(register_u_addr): New prototype.
(REGISTER_U_ADDR): Redefine accordingly.
* i386v-nat.c: Improve several comments.
(i386_register_u_addr): Change signature and rename to
register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
ubase variable.
2002-08-18 21:53:55 +00:00
Andrew Cagney 46cac009b7 2002-08-18 Andrew Cagney <ac131313@redhat.com>
* config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
(DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
* mips-tdep.c (mips_gdbarch_init): Set store_return_value and
deprecated_extract_return_value.
(mips_o32_push_arguments, mips_o64_push_arguments): Clone and
rename mips_o32o64_push_arguments.
(mips_gdbarch_init): Update.
(mips_extract_return_value): Delete.
(mips_o32_extract_return_value): Clone mips_extract_return_value.
(mips_o64_extract_return_value): Clone mips_extract_return_value.
(mips_eabi_extract_return_value): Clone mips_extract_return_value.
(mips_n32n64_extract_return_value): Clone
mips_extract_return_value.
(mips_store_return_value): Delete.
(mips_o32_store_return_value): Clone mips_store_return_value.
(mips_o64_store_return_value): Clone mips_store_return_value.
(mips_eabi_store_return_value): Clone mips_store_return_value.
(mips_n32n64_store_return_value): Clone mips_store_return_value.
2002-08-18 18:59:53 +00:00
Aidan Skinner 0c30c098d9 * ada-lang.c: Use gdb_string.h instead of <string.h>.
* ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2002-08-18 18:24:29 +00:00
Aidan Skinner d2e4a39e32 * ada-lang.c: run through gdb_indent.sh
* ada-lang.h: run through gdb_indent.sh
        * ada-tasks.c: run through gdb_indent.sh
        * ada-typeprint.c: run through gdb_indent.sh
        * ada-valprint.c: run through gdb_indent.sh
2002-08-18 18:11:12 +00:00
Andrew Cagney 01fc4e33eb 2002-08-18 Andrew Cagney <ac131313@redhat.com>
* osabi.c (gdbarch_init_osabi): Don't complain about an unknown
ABI.
2002-08-18 17:59:57 +00:00
Mark Kettenis c38d82615e * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code. 2002-08-18 17:37:17 +00:00
Mark Kettenis 222db64cbf * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
* i386b-nat.c [FLOAT_INFO]: Remove dead code.
2002-08-18 17:28:50 +00:00
Mark Kettenis c2848c82ce * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
write_register_gen instead of write_register_bytes.
2002-08-18 17:18:45 +00:00
Mark Kettenis d8ee244c99 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
i[3456]-*-osf1mk* configurations have been made obsolete.
* configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
i[3456]86-*-osf1mk* hosts obsolete.
* confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
targets obsolete.
* config/i386/i386mach.mh, config/i386/nm-i386mach.h,
config/i386/xm-i386mach.h, config/i386/i386m3.mh,
config/i386/i386m3.mt, config/i386/nm-m3.h,
config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
config/i386/i386mk.mh, config/i386/i386mk.mt,
config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
obsolete.
* i386mach-nat.c, i386m3-nat.c: Make files obsolete.
* Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
(i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2002-08-18 16:32:14 +00:00
Andrew Cagney 61d8d407cd 2002-08-18 Andrew Cagney <ac131313@redhat.com>
* config/pa/tm-hppa.h (hppa_store_return_value): Declare.
(hppa_value_returned_from_stack): Declare.
(hppa_extract_return_value): Declare.
* config/pa/hppa.mt: New file.
* configure.tgt: Recognize hppa*-*-*.
* MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
2002-08-18 16:09:04 +00:00
Mark Kettenis 0c52bd593a * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
comment.
2002-08-18 14:47:59 +00:00
Mark Kettenis b5686e99e9 * top.c (gdb_rl_operate_and_get_next): Make sure
operate-and-get-next functions correctly even when the history
list is completely filled.
2002-08-18 12:39:03 +00:00
Andrew Cagney c1bab85b70 2002-08-17 Andrew Cagney <ac131313@redhat.com>
* config/ia64/ia64.mt: New file.
* config/alpha/alpha.mt: New file.
* MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
ia64-linux-gnu.  Mention that ia64-elf is broken.
* configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2002-08-18 04:14:02 +00:00
Andrew Cagney 32089c7c02 2002-08-17 Andrew Cagney <ac131313@redhat.com>
* config/ia64/ia64.mt: New file.
* config/alpha/alpha.mt: New file.
* MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
ia64-linux-gnu.  Mention that ia64-elf is broken.
* configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2002-08-18 04:00:47 +00:00
gdbadmin 23aadcd222 *** empty log message *** 2002-08-18 00:00:32 +00:00
Mark Kettenis b4671f856b * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
generic_func_frame_valid instead of func_frame_valid.
2002-08-17 11:39:38 +00:00
Mark Kettenis 1f36144cb0 * gdb.base/return.exp: Remove i*86-*-* from list of xfail'ed
targets.  The problem should be fixed now.
2002-08-17 10:22:01 +00:00
Joel Brobecker c8edd8b484 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
procfs appears to be broken when debugging on multi-processor
        machines. So enable software single stepping in order to avoid
        using the procfs interface to do next/step operations, using
        internal breakpoints instead.

        * infrun.c (handle_inferior_event): Readjust the stop_pc by
        DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
        make this pc address equal to the value it would have if the
        system stepping capability was used. Also set a new flag used
        to ensure that we don't readjust the PC one more time later.

        * breakpoint.c (bpstat_stop_status): Do not adjust the PC
        address by DECR_PC_AFTER_BREAK when software single step is
        in use for this architecture, as this has already been taken
        care of in handle_inferior_event().
2002-08-17 06:12:52 +00:00
Joel Brobecker 238617f678 * infrun.c (handle_inferior_event): Minor reformatting, to make
a rather long condition expression easier to read.
2002-08-17 00:16:54 +00:00
Andrew Cagney 541a7aacdc Move gdbtk gunk to end of file. 2002-08-17 00:04:36 +00:00
gdbadmin b7ffab51d3 *** empty log message *** 2002-08-17 00:00:31 +00:00
Andrew Cagney f92d4a7b00 2002-08-16 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (copying.o): Separate out compile rule.
(hpux-thread.o, procfs.o, signals.o): Ditto.
(v850ice.o, z8k-tdep.o): Ditto.
(tui-file.o): Move to TUI section.
(xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
(nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2002-08-16 23:32:04 +00:00
Joel Brobecker 1cce71eb0e * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
skip_trampoline_code, for better namespace-proofing.

        * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2002-08-16 22:44:00 +00:00
Joel Brobecker 0851f23d27 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros. 2002-08-16 20:32:58 +00:00
Joel Brobecker f8d40ec8a6 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
signal, check whether we hit a breakpoint before checking for a
        single step breakpoint. Otherwise, GDB fails to notice that a
        breakpoint has been hit when stepping onto a breakpoint.
2002-08-16 17:56:17 +00:00
Keith Seitz 63d022e0ce * gdb-events.sh (clear_gdb_event_hooks): New function.
* gdb-events.c: Regenerate.
        * gdb-events.h: Regenerate.
2002-08-16 16:09:07 +00:00
Andrew Cagney 6e31adb3f7 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
not_a_sw_breakpoint.
* breakpoint.h (bpstat_stop_status): Add parameter names.
2002-08-16 15:37:54 +00:00
Grace Sainsbury c8189ed162 * remote.c (remote_insert_hw_breakpoint)
(remote_remove_hw_breakpoint): Fix calculation of length field
	for Z-packet.
2002-08-16 14:52:12 +00:00
Michael Snyder 102182a951 2002-08-15 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (FUNCTION_START_OFFSET, IN_SIGTRAMP,
	REGISTER_VIRTUAL_SIZE): Delete.
	(REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
	from macros to functions.

	* mips-tdep.c (mips_register_convert_from_type,
        mips_register_convert_to_type): New functions.
        (mips_gdbarch_init): Set up function_start_offset,
	register_virtual_size, pc_in_sigtramp.
2002-08-16 04:10:23 +00:00
Michael Snyder bf1f5b4c04 2002-08-15 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_do_registers_info): Make static.
        (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
        * config/mips/tm-mips.h (DO_REGISTERS_INFO): Delete.
2002-08-16 03:07:34 +00:00
Michael Snyder bcb0cc15ad 2002-08-15 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_gdbarch_init): Set gdbarch read_sp to
	mips_read_sp.
        * config/mips/tm-mips.h (TARGET_READ_SP): Delete.
2002-08-16 02:36:49 +00:00
Michael Snyder 466d7106f6 2002-08-15 Michael Snyder <msnyder@redhat.com>
* irix5-nat.c (supply_gregset): Allocate plenty-big buffer
	(32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
	(supply_fpregset): Ditto.
2002-08-16 02:01:50 +00:00
Michael Snyder d05285fac9 2002-08-15 Michael Snyder <msnyder@redhat.com>
* config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
	REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
	MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
	* mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
	(mips_register_convertible, mips_register_convert_to_virtual,
	mips_register_convert_to_raw): Make static.
2002-08-16 01:23:17 +00:00
Andrew Cagney e76f1f2e33 2002-08-15 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (vector_info): New function.
(_initialize_infcmd): Add command "info vector".
(print_vector_info): New function.

* gdbarch.sh (PRINT_VECTOR_INFO): New method
* gdbarch.h, gdbarch.c: Regenerate.

Index: doc/ChangeLog
2002-08-15  Andrew Cagney  <ac131313@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Document
PRINT_VECTOR_INFO.
* gdb.texinfo (Vector Unit): Document "info vectors" command.
2002-08-16 00:27:46 +00:00
Andrew Cagney 4782dc1929 2002-08-15 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
``print_all''.  Only print vector registers when ``print_all''.
2002-08-16 00:13:03 +00:00
Andrew Cagney 8e186fd66b 2002-08-15 Andrew Cagney <ac131313@redhat.com>
* i387-tdep.h (i387_print_float_info): Add `args' parameter.
* i387-tdep.c (i387_print_float_info): Add `args' parameter.
2002-08-16 00:01:59 +00:00
gdbadmin a994539f9b *** empty log message *** 2002-08-16 00:00:04 +00:00
Andrew Cagney 23e3a7ac79 2002-08-15 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
Add `args' parameter.
* gdbarch.h, gdbarch.c: Regenerate.

* arm-tdep.c (arm_print_float_info): Add the parameter `args'.

* infcmd.c (float_info): Call print_float_info.
(print_float_info): New function.  By default, print the
floating-point registers.

* arch-utils.h (default_print_float_info): Delete declaration.
* arch-utils.c (default_print_float_info): Delete function.
2002-08-15 23:41:20 +00:00
Mark Kettenis 3f733acc3a * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
out define.
2002-08-15 23:21:34 +00:00
Mark Kettenis 7d8d291815 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
FRAME.
2002-08-15 23:06:54 +00:00
Mark Kettenis 1c7cc58312 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
* configure.host: Make i[3456]86-*-aix host obsolete.
* configure.tgt: Make i[3456]86-*-aix target obsolete.
* config/i386/i386aix.mh, config/i386/i386aix.mt,
config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
config/i386/xm-i386aix.h: Make files obsolete.
* i386aix-nat.c: Make file obsolete.
* Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
(i386aix-nat.o): Make target obsolete.
2002-08-15 22:51:40 +00:00
Mark Kettenis e0ca2bb902 * config/i386/nm-gnu.h: Removed.
* config/i386/nm-i386gnu.h: New file.
(THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
Moved here from ...
* config/i386/tm-i386gnu.h: ... here.  Removed.
* config/i386/xm-i386gnu.h: Removed.
* config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
(NAT_FILE): Set to nm-i386gnu.h.
* config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
* i386-tdep.c: New file.
* Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
(i386gnu-tdep.o): Specify dependencies.
2002-08-15 22:24:01 +00:00
Mark Kettenis 6b99ee2e01 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
"i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
Adjust a few comments to reflect reality a bit closer.
(KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
target_insert_watchpoint, target_remove_watchpoint):
Move defines to ...
* config/i386/nm-i386sco5.h: ... here.
(kernel_u_size): Add prototype.  Improve a few comments and add
protection against multiple inclusion.
2002-08-15 21:16:19 +00:00
Mark Kettenis d9a6f65c13 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
out define.
2002-08-15 19:34:58 +00:00
Mark Kettenis 047eff6a37 * uw-thread.c (SP_ARG0): Define if not already defined.
* config/i386/tm-i386.h (SO_ARG0): Remove define.
2002-08-15 19:00:47 +00:00
Mark Kettenis dcdb1290ca * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define. 2002-08-15 18:49:52 +00:00
Mark Kettenis 16057ec7a6 *** empty log message *** 2002-08-15 18:38:43 +00:00
Mark Kettenis 5d2d0b2ae2 * config/i386/tm-i386.h: Don't include "regcache.h". 2002-08-15 18:35:11 +00:00
Mark Kettenis 61113f8bf1 * i387-tdep.h (i387_print_float_info): New prototype.
* i387-tdep.c (print_i387_value, print_i387_ext,
print_i387_status_word, print_i387_control_word): Add `struct
ui_file *' argument and use it for output.
(i387_print_float_info): Renamed from i387_float_info.  Add
`struct gdbarch *' and `struct ui_file *' arguments and use the
latter for output.
* i386-tdep.c: Include "i387-tdep.h".
(i386_gdbarch_init): Set print_float_info.
* config/i386/tm-i386.h (i387_float_info): Remove prototype.
(FLOAT_INFO): Remove define.
2002-08-15 17:36:57 +00:00
Mark Kettenis 5415e7c5d4 * gdb.java/jv-print.exp: Fix p '' and p ''' tests to deal with
2002-07-24 change that removes final dots from error messages.
2002-08-15 17:18:50 +00:00
gdbadmin 0485ddbcbc *** empty log message *** 2002-08-15 00:00:33 +00:00
Michael Snyder 46e0f5060a 2002-08-13 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_push_arguments): Rename to
	mips_eabi_push_arguments, and tune for EABI.
	(MIPS_REGS_HAVE_HOME_P): Delete.
	(struct gdbarch_tdep): Remove mips_regs_have_home_p field.
	(mips_gdbarch_init): Set gdbarch push_arguments for eabi.
	Delete references to mips_regs_have_home_p.
2002-08-14 19:17:39 +00:00
Keith Seitz 409268de8d * Makefile.in (install-gdbtk): Create insight plugin directory.
Install plugins.tcl file.
2002-08-14 18:13:30 +00:00
Keith Seitz ffc6a242e0 * configure.in: Move SUBDIRS to near top of the file so that
--enable options may add things to it.
        If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
        * configure: Regenerate.
2002-08-14 17:43:16 +00:00
Michael Snyder ebafbe8353 2002-08-13 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_o32o64_push_arguments):  New function,
	cloned from mips_push_arguments, tuned for o32/o64 ABI.
	(mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2002-08-14 01:20:03 +00:00
Andrew Cagney 32f6f25d26 2002-08-13 Andrew Cagney <ac131313@redhat.com>
* vax-tdep.c (vax_get_saved_register): Delete function.
(vax_gdbarch_init): Update.
* ns32k-tdep.c (ns32k_get_saved_register): Delete function.
(ns32k_gdbarch_init): Update.
* alpha-tdep.c (alpha_get_saved_register): Delete function.
(alpha_gdbarch_init): Update.
2002-08-14 00:23:59 +00:00
gdbadmin d51b06c39e *** empty log message *** 2002-08-14 00:00:02 +00:00
Andrew Cagney 53826de97c 2002-08-13 Andrew Cagney <cagney@redhat.com>
* regcache.c (init_regcache_descr): Overallocate the
raw_register_valid_p array including space for NUM_PSEUDO_REGS.
(registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
num_raw_registers.
(set_register_cached): Add range checking assertions.  Use
current_regcache.
2002-08-13 23:06:40 +00:00
Tom Tromey 3c1499adb3 * gdb.base/readline.exp: New file. 2002-08-13 22:10:18 +00:00
Mark Kettenis 7d12f766fa * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
numbers for MMX registers.
2002-08-13 21:54:18 +00:00
Andrew Cagney 0680b1201a 2002-08-13 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (Maintenance Commands): Document "maint print
registers", "maint print raw-registers" and "maint print
cooked-registers".
2002-08-13 21:39:00 +00:00
Andrew Cagney 7b4c2dcea0 * i386-tdep.c (i386_gdbarch_init): Use
generic_unwind_get_saved_register.
2002-08-13 19:14:09 +00:00
Kevin Buettner 1e03ad2088 * procfs.c (procfs_can_use_hw_breakpoint): New function.
(init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
	target vector.
	* config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
	Delete.  Add comment regarding this now-deleted target method.
2002-08-13 18:03:38 +00:00
Stephane Carrez 548bcbeca8 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
(M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
	(m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
	real PC and the page number (if it's within the memory bank window).
	(m68hc11_pseudo_register_write): Likewise when saving.
	(m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
	(m68hc11_register_virtual_type): Return uint32 for virtual pc.
	(m68hc11_register_raw_size): And use 32-bit for it.
	(m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
	16K memory bank is used by the prog; also use the virtual pc.
2002-08-13 17:24:50 +00:00
Stephane Carrez 7df11f5981 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
(m68hc11_gdbarch_init): Install it in gdbarch.
	(MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
	(MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
	(MSYMBOL_SIZE): New for documentation.
	(insn_return_kind): Enum to specify how a function returns.
	(frame_extra_info): Cleanup and record the return mode.
	(gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
	register in address computation.
	(m68hc11_get_return_insn): New to obtain the return instruction used
	by the function.
	(m68hc11_frame_init_saved_regs): Take into account the return
	instruction used by the function for far and interrupt functions.
	(m68hc11_init_extra_frame_info): Take into account page register.
	(m68hc11_frame_args_address): Adjust according to the return mode.
	(show_regs): Print page register only when it's used.
2002-08-13 16:40:46 +00:00
Stephane Carrez 5706502aab * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
(M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
	(m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
	registers.
	(m68hc11_register_raw_size): Likewise.
2002-08-13 16:19:22 +00:00
Andrew Cagney 28fc674094 2002-08-13 Andrew Cagney <cagney@redhat.com>
* i386-tdep.c (i386_register_name): Handle mmx registers.
(mmx_regnum_p): New function.
(i386_mmx_names): New array.
(mmx_num_regs): New variable.
(i386_pseudo_register_read): New function.
(i386_pseudo_register_write): New function.
(mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.

* regcache.c (regcache_raw_read_unsigned): New function.
(regcache_raw_read_signed): New function.
* regcache.h (regcache_raw_read_unsigned): Declare.
(regcache_raw_read_signed): Declare.
2002-08-13 14:32:28 +00:00
Andrew Cagney a378f41926 2002-08-12 Andrew Cagney <cagney@redhat.com>
* regcache.c (regcache_raw_read_as_address): Delete function.
(regcache_cooked_read_signed): New function.
(regcache_cooked_read_unsigned): New function.
* regcache.h (regcache_cooked_read_signed): Declare.
(regcache_cooked_read_unsigned): Declare.
(regcache_raw_read_as_address): Delete declaration.
* blockframe.c (generic_read_register_dummy): Use
regcache_cooked_read_unsigned.
* i386-tdep.c (i386_extract_struct_value_address): Use
regcache_cooked_read_unsigned.
2002-08-13 13:58:50 +00:00
Stephane Carrez 81967506b7 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
double sizes according to ELF ABI flags.
	(gdbarch_tdep): Record elf_flags.
2002-08-13 13:10:42 +00:00
Stephane Carrez ffe1f3ee3f * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
(m6812_prolog): They can appear in 68HC12 function prologue.
	(m68hc11_frame_chain): Cleanup.
2002-08-13 11:03:42 +00:00
gdbadmin 8e7157081c *** empty log message *** 2002-08-13 00:00:33 +00:00
Andrew Cagney 98216c5d02 2002-08-12 Andrew Cagney <cagney@redhat.com>
* i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
declarations.
* i386-linux-tdep.c (i386_linux_register_byte): Delete function.
(i386_linux_register_raw_size): Delete function.
i386_linux_init_abi): Update.
* i386-tdep.c (i386_register_raw_size): Delete function.
(i386_register_byte): Delete function.
(i386_gdbarch_init): Update.
(i386_register_size): Delete array.
(i386_register_offset): Delete array.

* config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
(REGISTER_RAW_SIZE): Delete macro.
* config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
(REGISTER_BYTE): Delete macro.
2002-08-12 19:05:33 +00:00
gdbadmin cf1d5986d8 *** empty log message *** 2002-08-12 00:00:32 +00:00
Aidan Skinner 3b19021e44 * ada-lang.c (ada_lookup_partial_symbol)
(to_fixed_variant_branch_type) (find_line_in_linetable): Fix
	prototype names so that grep ^func works properly.

	* ada-lang.c (ada_array_element_type)
	(ada_lookup_partial_symbol): Fix typos in parameter list.

	* ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
	Fix prototype names so that grep ^func works properly.
2002-08-11 18:15:49 +00:00
gdbadmin 661757b496 *** empty log message *** 2002-08-11 00:00:33 +00:00
Andrew Cagney b063e7a269 2002-08-10 Andrew Cagney <cagney@redhat.com>
Elena Zannoni  <ezannoni@redhat.com>
            Martin M. Hunt  <hunt@redhat.com>

* gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
(build_builtin_type_vec128i): Set the vector bit.
* gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
* gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
(build_builtin_type_vec64): New function.
(build_builtin_type_vec64i): New function.
(build_gdbtypes): Initialize builtin_type_vec64 and
builtin_type_vec64i.
2002-08-10 05:12:40 +00:00
Andrew Cagney a7e3c2ad4b 2002-08-09 Andrew Cagney <cagney@redhat.com>
* regcache.c (regcache_dump): Compare the register offset
with REGISTER_BYTE.
* arch-utils.c (generic_register_byte): New function.
* arch-utils.h (generic_register_byte): Declare.
* gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
* gdbarch.h, gdbarch.c: Regenerate.
2002-08-10 02:00:16 +00:00
Michael Snyder 119d55d8e4 Oversights in previous checkin. 2002-08-10 01:09:11 +00:00
Andrew Cagney ee0cf7cc8a Shh, revert unintended commit. 2002-08-10 00:40:40 +00:00
Andrew Cagney af030b9af8 2002-08-09 Andrew Cagney <cagney@redhat.com>
* regcache.c: Include "gdbcmd.h"
(_initialize_regcache): Add commands "maintenance print
registers", "maintenance print raw-registers" and "maintenance
print cooked-registers".
(enum regcache_dump_what): Define.
(dump_endian_bytes): New function.
(regcache_dump): New function.
(regcache_print): New function.
(maintenance_print_registers): New function.
(maintenance_print_raw_registers): New function.
(maintenance_print_cooked_registers): New function.
* Makefile.in (regcache.o): Update dependencies.
2002-08-10 00:36:46 +00:00