aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2002-08-31 * tuiSourceWin.h (tuiUpdateAllExecInfos): Don't declare.Stephane Carrez4-30/+12
(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-312002-08-31 Stephane Carrez <stcarrez@nerim.fr>Stephane Carrez5-4/+187
* 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*** empty log message ***gdbadmin1-1/+1
2002-08-30 * tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous andStephane Carrez2-9/+20
current line.
2002-08-30 * tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.Stephane Carrez2-91/+29
(_hasBreak): Remove. (tuiShowSource): Fix comment indentation. (tuiSourceIsDisplayed): Likewise. (tuiVerticalSourceScroll): Likewise.
2002-08-30 * tuiSourceWin.h (tui_update_all_breakpoint_info): Declare.Stephane Carrez6-154/+152
(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-302002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-1/+28
* 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* symtab.c (lookup_symbol_aux): In the cases where we find aJim Blandy2-8/+25
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*** empty log message ***gdbadmin1-1/+1
2002-08-29* gdb.threads/pthreads.exp: Move the portable thread compilationJim Blandy3-29/+45
code into a function in lib/gdb.exp, and call that from here. * lib/gdb.exp (gdb_compile_pthreads): New function.
2002-08-29 * stack.c (print_frame_info_base): Always set current_source_symtabKeith Seitz2-4/+11
and current_source_line.
2002-08-29 * linux-low.c (linux_create_inferior): Call setpgid. ReturnDaniel Jacobowitz5-41/+49
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 * lib/mi-support.exp (mi_gdb_test): Add global declaration forKeith Seitz2-1/+6
expect_out so that callers can get at it.
2002-08-29 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).Joel Brobecker2-2/+6
2002-08-29*** empty log message ***gdbadmin1-1/+1
2002-08-28 * tui.c (tuiGetLowDisassemblyAddress): Moved from here.Stephane Carrez3-25/+25
* tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use tui_find_disassembly_address to find the starting address of disassemble window.
2002-08-28 * stack.c (select_frame): Add FIXME concerning selected-frameKeith Seitz2-2/+25
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-28Update all .c dependencies.Andrew Cagney2-836/+705
2002-08-28*** empty log message ***gdbadmin1-1/+1
2002-08-27 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,Tom Tromey12-10/+41
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 * tuiDisassem.c (tui_disassemble): New function to disassembleStephane Carrez4-114/+254
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 * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.Stephane Carrez2-0/+8
2002-08-272002-08-27 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni4-1/+18
* cli/cli-script.h (copy_command_lines): Export. * breakpoint.c: Include cli/cli-script.h. * Makefile.in (breakpoint.o): Update dependencies.
2002-08-272002-08-26 Joel Brobecker <brobecker@gnat.com>Michael Snyder4-13/+171
* 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*** empty log message ***gdbadmin1-1/+1
2002-08-26 * rs6000-tdep.c (altivec_register_p): Restore function inadvertentlyKevin Buettner2-0/+17
deleted in 2002-08-20 commit. This function is still used by ppc-linux-nat.c.
2002-08-26 * gdb-events.sh: Add selected-frame-level-changed event.Keith Seitz4-1/+42
* gdb-events.c: Regenerated. * gdb-events.h: Regenerated.
2002-08-26 Fix PR gdb/393:Stephane Carrez2-0/+13
* tui.c (tui_disable): Update gdb's knowledge of its terminal using target_terminal_save_ours. (tui_enable): Likewise.
2002-08-26 Fix PR gdb/393:Stephane Carrez14-0/+73
* 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* i386-tdep.c (i386_store_return_value): Undeprecate. Convert toMark Kettenis2-13/+18
use regcache_* functions. (i386_gdbarch_init): Set store_return_value instead of deprecated_store_return_value.
2002-08-26*** empty log message ***gdbadmin1-1/+1
2002-08-25* regcache.c (regcache_raw_write_signed,Mark Kettenis3-0/+34
regcache_raw_write_unsigned): New functions. * regcache.h (regcache_raw_write_signed, regcache_raw_write_unsigned): New prototypes.
2002-08-25 * tui.c (tui_rl_switch_mode): Renames tui_switch_mode.Stephane Carrez2-14/+22
(tui_rl_change_windows): Renames tui_change_windows. (tui_rl_delete_other_windows): Renames tui_delete_other_windows. (tui_initialize_readline): Update.
2002-08-252002-08-21 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-48/+61
* 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 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.Stephane Carrez2-44/+7
(_hasBreak): Remove.
2002-08-25 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbolStephane Carrez2-8/+19
to find symbol address.
2002-08-25 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunctionStephane Carrez5-23/+14
and use tuiGetBeginAsmAddress. * tuiSourceWin.h (tui_display_main): Declare. * tui.h (tuiDisplayMainFunction): Remove. * tui-hooks.c (tui_new_objfile_hook): Update.
2002-08-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-16/+21
* gdb.texinfo (Examples): Use ``->'' for a packet send and ``<-'' for a packet receive.
2002-08-25 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.Stephane Carrez2-9/+6
(tuiShowSourceAsIs): Don't declare.
2002-08-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-1/+135
* 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 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always updateStephane Carrez2-4/+9
the frame position.
2002-08-25 * tuiStack.c (tuiSetLocatorContent): Remove.Stephane Carrez2-90/+46
(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-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-24/+77
* 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-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-1/+7
* 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-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-0/+25
* 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-252002-08-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-27/+43
* 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-252002-08-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-3/+10
* 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 * tuiSourceWin.c (tuiDisplayMainFunction): Update to useStephane Carrez4-80/+73
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 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpointStephane Carrez6-68/+59
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 * tuiStack.h (tuiGetLocatorFilename): Don't declare.Stephane Carrez3-45/+13
(tuiUpdateLocatorDisplay): Likewise. * tuiStack.c (tuiGetLocatorFilename): Remove. (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent instead of tuiUpdateLocatorDisplay. (tuiUpdateLocatorDisplay): Remove.