summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* Move putchar_filtered() to utils.c.Andrew Cagney2001-01-315-14/+20
|
* 2001-01-28 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-316-0/+67
| | | | | | | | | | | | | | | | | * library/plugins: New directory. Sample plug-in directory to help developers of Insight plug-ins. See README file in that directory. * library/plugins/plugins.tcl: New file. Sample version of a code fragment file which adds entries to the PlugIn menu of the Source Window to activate custom plug-in windows. * library/plugins/pkgIndex.tcl: New file. Sample version of a file with package information for the installed plug-ins. * library/plugins/rhabout.tcl: New file. Sample file providing a plug-in package. * library/plugins/rhabout: New directory. Sample plug-in. * library/plugins/rhabout/rhabout.itcl: New file. Sample class implementing a plug-in window. * library/plugins/rhabout/tclIndex: New file. Tcl index for the sample plug-in implementation.
* Cleanup autoconfigury of vfork().Andrew Cagney2001-01-317-203/+486
|
* Replace strsave() with xstrdup().Andrew Cagney2001-01-3119-64/+80
|
* * cli/cli-script.c (define_command): Check for a bad hook value inAndrew Cagney2001-01-312-0/+6
| | | | switch statement.
* * configure/sh/embed.mt: New file.J.T. Conklin2001-01-304-2/+19
| | | | | | | * configure/sh/linux.mt: New file. * configure/sh/sh.mt: Removed. * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets. (sh-*-*): Removed.
* Replace blanked lines from earlier commit with comment stating thatKevin Buettner2001-01-301-3/+3
| | | | the reason why the space is empty.
* Remove unused printf() definition.Kevin Buettner2001-01-302-4/+8
|
* Removed files structs3.c structs3.exp.Michael Chastain2001-01-302-112/+0
| | | | These were added by accident. Whoops!
* 2001-01-29 Michael Chastain <chastain@redhat.com>Michael Chastain2001-01-304-2/+122
| | | | | * symtab.c (block_lookup_symbol): Use 'namespace' parameter in symbol comparisons in binary search.
* 2001-01-28 Michael Chastain <chastain@redhat.com>Michael Chastain2001-01-281-428/+194
| | | | | | | | | | | | | | | | | | | | | | * gdb.c++/ovldbreak.exp (take_gdb_out_of_choice_menu): New proc to call when tests fail. It takes gdb out of the overloaded function choice menu back to the main prompt, so that the test program stays synchronized. (set_bp_overloaded): New proc to collect all the common code for setting a breakpoint on an overloaded name. Calls take_gdb_out_of_choice_menu when needed. (menu_overload1arg): New variable to collect the repeated instances of the expected menu for an overloaded name. Change the regular expression to handle changes in g++ type encoding: "void" can be either "void" or "", and "unsigned int" can be either "unsigned int" or "unsigned". (continue_to_bp_overloaded): Change regular expressions to handle changes in g++ type encoding. (no proc): Call take_gdb_out_of_choice_menu when needed. Remove redundant calls to "info break". Accept either "canceled" or "cancelled". Change regular expressions in "info break" calls to handle changes in g++ type encoding. Give all tests unique strings.
* 2001-01-28 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-283-1/+37
| | | | | | | * library/main.tcl: Add plugin subdirectory, if existent, to auto_path. * library/srcbar.itcl (create_plugin_menu): New method. Create a pull down menu for plugins if there are any for this target configuration. (create_menu_items): Invoke the new method above.
* 2001-01-28 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-282-0/+27
| | | | | | * library/gdbmenubar.itcl (menubar_new_menu): Save lable of a menu to use as index. (menubar_delete_menu): New function. Delete a menu.
* 2001-01-28 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-282-0/+8
| | | | | * library/gdbmenubar.itcl (menu_list): Add missing declararion for global variable.
* 2001-01-28 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-283-6/+12
| | | | | | * library/gdbmenubar.itcl (set_class_state): Turn off verbose debug messages. * library/gdbtoolbar.itcl (set_class_state): Ditto.
* 2001-01-27 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-272-1/+7
| | | | | | From Momchil Velikov <velco@fadata.bg> * mi-cmd-disas.c (gdb_dis_asm_read_memory): Add missing memory attributes argument in the call to `xfer_memory'.
* * win32-nat.c (child_xfer_memory): Add missing argument required by 2001-01-23Christopher Faylor2001-01-272-1/+7
| | | | change.
* * ui-out.c (do_list_end): New function.Mark Kettenis2001-01-274-2/+31
| | | | | | | | | | (make_cleanup_ui_out_list_end): New function. * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end. * stack.c (print_frame) [UI_OUT]: Call make_cleanup_ui_out_list_end to make sure we mark the end of the list if we do a non-local exit. At the end of the function, instead of calling ui_out_list_end directly, let do_cleanups handle it.
* 2001-01-26 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-272-3/+13
| | | | | | | * generic/gdbtk-cmds.c (gdb_clear_file): Call exec_file_clear() and symbol_file_clear() instead of exec_file_command() and symbol_file_command(). (gdb_find_file_command): Return the proper error text.
* 2001-01-26 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-2714-71/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix double parsing of filenames passed as command line arguments to GDB (causes weird handling of escape characters). Also, remove dependencies on the CLI from libgdb. * call-cmds.h: Remove declaration of exec_file_command(). * gdbcore.h: Remove declaration of exec_file_command(). Add declarations for exec_open() and exec_file_clear(). * symfile.h: Add declarations for symbol_file_add_main() and symbol_file_clear(). * exec.c (exec_open): New function. Implements to_open for exec targets. (exec_file_clear): New function. Makes GDB forget about a previously specified executable file. (exec_file_attach): Move parsing of arguments from here ... (exec_file_command): ... to here. (init_exec_ops): Use exec_open(), not exec_file_command() to implement to_open for exec targets. * symfile.c (symbol_file_add_main): New function. Call symbol_file_add() with default values. Used when the file name has already been parsed. (symbol_file_clear): New function. Makes GDB forget about previously read symbols. (symbol_file_command): Call the above function instead of inline code. * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated "call-cmds.h". (captured_main): Call exec_file_attach() and symbol_file_add_main() instead of exec_file_command() and symbol_file_command(). (captured_main): Add comment. * corefile.c: Include "symfile.h". (core_file_command): Call symbol_file_add_main() instead of symbol_file_command(). (reopen_exec_file): Call exec_open() instead of exec_file_command(). * infcmd.c: Include "symfile.h". (attach_command): Call symbol_file_add_main() instead of symbol_file_command(). * infrun.c: Remove comment about the inclusion of "symfile.h", not any longer appropriate. (follow_exec): Call symbol_file_add_main() instead of symbol_file_command(). * remote-es.c: Include "symfile.h". (es1800_load): Call symbol_file_add_main() instead of symbol_file_command(). * remote-vx.c: Remove comment about the inclusion of "symfile.h", not any longer appropriate. (vx-wait): Call symbol_file_add_main() instead of symbol_file_command(). * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main() instead of symbol_file_command(). * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and symbol_file_add_main() instead of exec_file_command() and symbol_file_command(). * Makefile.in: Update dependencies.
* 2001-01-24 Jeff Holcomb <jeffh@redhat.com>Jeff Holcomb2001-01-2612-33/+29
| | | | | | | | | | | | | | | | | * remote-udi.c (udi_open): Change strdup to xstrdup. * thread.c (thread_apply_all_command): Change strdup to xstrdup. Update copyright message. * varobj.c (delete_variable_1): Likewise. * gdb_string.h: Remove declaration of strdup. Update copyright message. * config/xm-mpw.h: Likewise. * config/i386/xm-i386mach.h: Likewise. * config/m68k/xm-apollo68b.h: Likewise. * config/m68k/xm-hp300bsd.h: Likewise. * config/rs6000/xm-rs6000.h: Likewise. * config/vax/xm-vaxult.h: Remove declaration of strdup. * config/vax/xm-vaxult2.h: Likewise.
* 2001-01-26 Jeff Holcomb <jeffh@redhat.com>Jeff Holcomb2001-01-262-0/+5
| | | | * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
* * target.c (target_xfer_memory_partial): Return -1 on failure dueJ.T. Conklin2001-01-262-2/+7
| | | | to invalid access mode attribute.
* * win32-nat.c (_initialize_core_win32): Prototype correctly.Christopher Faylor2001-01-252-1/+5
|
* * config/alpha/tm-fbsd.h: Update copyright.Mark Kettenis2001-01-254-2/+69
| | | | | | | (USE_STRUCT_CONVENTION): Define in terms of alphabsd_use_struct_convention. * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c. * alphafbsd-tdep.c: New file.
* 2001-01-25 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-252-0/+9
| | | | | | | | | | | | | * library/srcbar.itcl: New file. Implement SrcBar, a menu and toolbar for the Source Window (code previously in srcmenubar.itcl and srctoolbar.itcl). * library/srcmenubar.itcl: Remove obsolete file. * library/srctoolbar.itcl: Remove obsolete file. * library/srcbar.tcl: Remove obsolete file. * library/gdbmenubar.itcl (menubar_show): New method. Associate the menu with the toplevel window. * library/srcwin.itb (_build_win): Use SrcBar. * library/tclIndex: Regenerate.
* 2001-01-25 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-257-1916/+1145
| | | | | | | | | | | * library/srcbar.itcl: New file. Implement SrcBar, a menu and toolbar for the Source Window (code previously in srcmenubar.itcl and srctoolbar.itcl). * library/srcmenubar.itcl: Remove obsolete file. * library/srctoolbar.itcl: Remove obsolete file. * library/srcbar.tcl: Remove obsolete file. * library/srcwin.itb (_build_win): Use SrcBar. * library/tclIndex: Regenerate.
* 2001-01-24 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-251-2/+2
| | | | | | From Martin Hunt <hunt@cygnus.com> * generic/gdbtk-cmds.c (gdb_set_bp_addr, gdb_set_bp): Change strsave() to xstrdup().
* 2001-01-24 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-252-1/+5
| | | | * top.c (print_gdb_version): Update Copyright year.
* 2001-01-24 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-251-0/+6
| | | | | | From Martin Hunt <hunt@cygnus.com> * generic/gdbtk-cmds.c (gdb_set_bp_addr, gdb_set_bp): Change strsave() to xstrdup().
* 2001-01-24 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-252-1/+7
| | | | | | From Martin Hunt <hunt@cygnus.com> * generic/gdbtk-cmds.c (gdbtk_dis_asm_read_memory): Fix call to xfer_memory().
* * dcache.c (dcache_write_line): Fix typo.J.T. Conklin2001-01-244-7/+22
| | | | | | | | * memattr.c (delete_mem_region): Replace free() with xfree(). (mem_number): Add explicit type. * sol-thread.c (sol_thread_xfer_memory): Add attrib argument. (rw_common): Likewise.
* 2001-01-24 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-243-7/+34
| | | | | | | | * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions for the inferior program arguments. (run_command, run_no_args_command, init_infcmd)): Use accessor functions to set the inferior program arguments. * inferior.h: Add definitions to the accessor functions above.
* * lin-lwp.c (lin_lwp_xfer_memory): Add attrib argument.J.T. Conklin2001-01-243-2/+6
| | | | * thread-db.c (thread_db_xfer_memory): Likewise.
* * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):Jim Blandy2001-01-242-4/+13
| | | | Implement these correctly, using make_cv_type.
* * exec.c (xfer_memory): Add attrib argument.J.T. Conklin2001-01-2332-179/+1116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * infptrace.c (child_xfer_memory): Likewise. * monitor.c (monitor_xfer_memory): Likewise. * remote-adapt.c (adapt_xfer_inferior_memory): Likewise. * remote-array.c (array_xfer_memory): Likewise. * remote-bug.c (bug_xfer_memory): Likewise. * remote-e7000.c (e7000_xfer_inferior_memory): Likewise. * remote-eb.c (eb_xfer_inferior_memory): Likewise. * remote-es.c (es1800_xfer_inferior_memory): Likewise. * remote-mips.c (mips_xfer_memory): Likewise. * remote-mm.c (mm_xfer_inferior_memory): Likewise. * remote-nindy.c (nindy_xfer_inferior_memory): Likewise. * remote-os9k.c (rombug_xfer_inferior_memory): Likewise. * remote-rdi.c (arm_rdi_xfer_memory): Likewise. * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise. * remote-sds.c (sds_xfer_memory): Likewise. * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise. * remote-st.c (st2000_xfer_inferior_memory): Likewise. * remote-udi.c (udi_xfer_inferior_memory): Likewise. * remote-vx.c (vx_xfer_memory): Likewise. * remote.c (remote_xfer_memory): Likewise. * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise. * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise. * target.h (#include "memattr.h"): Added. (target_ops.to_xfer_memory): Add attrib argument. * wince.c (_initialize_inftarg): Removed call to set_dcache_state. * dcache.h (set_dcache_state): Removed declaration. * dcache.c (set_dcache_state): Removed definition * dcache.c: Update module comment, as dcache is now enabled and disabled with memory region attributes instead of by the global variable "remotecache". Add comment describing the interaction between dcache and memory region attributes. (dcache_xfer_memory): Add comment describing benefits of moving cache writeback to a higher level. (dcache_struct): Removed cache_has_stuff field. This was used to record whether the cache had been accessed in order to invalidate it when it was disabled. However, this is not needed because the cache is write through and the code that enables, disables, and deletes memory regions invalidate the cache. Add comment which suggests that we could be more selective and only invalidate those cache lines containing data from those memory regions. (dcache_invalidate): Updated. (dcache_xfer_memory): Updated. (dcache_alloc): Don't abort() if dcache_enabled_p is clear. (dcache_xfer_memory): Removed code that called do_xfer_memory() to perform a uncached transfer if dcache_enabled_p was clear. This function is now only called if caching is enabled for the memory region. (dcache_info): Always print cache info. * target.c (do_xfer_memory): Add attrib argument. (target_xfer_memory, target_xfer_memory_partial): Break transfer into chunks defined by memory regions, pass region attributes to do_xfer_memory(). * dcache.c (dcache_read_line, dcache_write_line): Likewise. * Makefile.in (SFILES): Add memattr.c. (COMMON_OBS): Add memattr.o. (dcache.o): Add target.h to dependencies. * memattr.c: New file. * memattr.h: Likewise.
* * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.J.T. Conklin2001-01-2312-612/+746
| | | | | | | | | | | | | | | | | | * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise. * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise. * gdbserver/low-sim.c (#include "defs.h"): Removed. (mygeneric_load): Rename from generic_load. * gdbserver/low-hppabsd.c (#include "server.h"): Added. (#include "defs.h"): Removed. (inferior_pid, perror_with_name): Remove declarations. * gdbserver/low-linux.c: Likewise. * gdbserver/low-nbsd.c: Likewise. * gdbserver/low-sparc.c: Likewise. * gdbserver/low-sun3.c: Likewise. * i386-stub.c: Re-indent. * m68k-stub.c: Re-indent.
* * gdbarch.sh (PARM_BOUNDARY): Define.Nicholas Duffek2001-01-224-0/+42
| | | | | * gdbarch.c: Regenerate. * gdbarch.h: Regenerate.
* * ns32k-tdep.c: #include "frame.h"J.T. Conklin2001-01-2216-15/+75
| | | | | | | | | | | | | | | | | | | | | | | | | * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It appears to have been inadvertantly removed sometime in May 1999. * Revert 2000-11-09 changes where shared library objects were moved from NATDEPFILES to TDEPFILES on NetBSD targets. While we'd like to be able to debug dynamically linked executables, this makes it impossible to build a cross debugger on a many hosts. * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES. * config/i386/nbsdelf.mt: Likewise. * config/m68k/nbsd.mt: Likewise. * config/ns32k/nbsd.mt: Likewise. * config/powerpc/nbsd.mt: Likewise. * config/sparc/nbsd.mt: Likewise. * config/sparc/nbsdelf.mt: Likewise. * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES. * config/i386/nbsdelf.mh: Likewise. * config/m68k/nbsd.mh: Likewise. * config/ns32k/nbsd.mh: Likewise. * config/powerpc/nbsd.mh: Likewise. * config/sparc/nbsd.mh: Likewise.
* * mi-support.exp (mi_gdb_start): Skip mi tests if -i flag isMark Kettenis2001-01-212-0/+11
| | | | | recognized (i.e. if GDB was compiled with UI_OUT, but the mi interpreter wasn't recognized (because it wasn't compiled in).
* Fix previous checkout of this:Fernando Nasser2001-01-192-2/+3
| | | | | | | | | | | 2001-01-18 Fernando Nasser <fnasser@redhat.com> * library/srctextwin.itb (_highlightAsmLine): Add missing FUNCNAME parameter. (FillAssembly, FillMixed): Pass the FUNCNAME parameter that is needed by the above method. * library/srctextwin.ith (_highlightAsmLine): Add FUNCNAME parameter to method definition.
* * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.Jason Merrill2001-01-193-1/+21
| | | | | (process_one_symbol): Likewise. * dwarfread.c (handle_producer): Likewise.
* 2001-01-19 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-192-1/+6
| | | | | * library/prefs.tcl (pref_set_defaults): Set default value of gdb/src/top_control to place the source window controls at the top.
* Drop -Wuninitialized until GDB compiles with it.Andrew Cagney2001-01-194-35/+87
| | | | Add list of buildable targets to the MAINTAINERS file.
* Replace STRCMP with strcmp()Andrew Cagney2001-01-198-23/+24
|
* Replace FREEIF() with xfree().Andrew Cagney2001-01-192-10/+11
|
* Add new arc core numbers.Nick Clifton2001-01-192-9/+12
|
* * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookupJim Blandy2001-01-182-2/+9
| | | | | | a mangled symbol rather than recursing into lookup_symbol, since this will just re-unmangle the name & call lookup_symbol_aux - leading to an infinite recursion.
* 2001-01-18 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-182-3/+12
| | | | | | | | | * library/srctextwin.itb (_highlightAsmLine): Add missing FUNCNAME parameter. (FillAssembly, FillMixed): Pass the FUNCNAME parameter that is needed by the above method. * library/srctextwin.ith (_highlightAsmLine): Add FUNCNAME parameter to method definition.
* * infcmd.c (print_return_value): Restore another space lost byMark Kettenis2001-01-182-1/+6
| | | | switch to UIOUT. ``$NN='' should be ``$NN =''.