aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2000-12-112000-12-11 Fernando Nasser <fnasser@redhat.com>Fernando Nasser3-6/+11
* configure.in: Fix typos. It is CONFIG_SRCS not CONFIG_SRS. * configure: Regenerate.
2000-12-112000-12-11 Fernando Nasser <fnasser@redhat.com>Fernando Nasser3-10/+17
* configure.in: Fix a couple of typos in the handling of the enable_gdbcli option. Make it check enableval for the result of AC_ARG_ENABLE. * configure: Regenerate.
2000-12-092000-12-09 Michael Chastain <chastain@redhat.com>Michael Chastain2-10/+18
* gdb.base/break.exp (test_clear_command): Use a marker function rather than 'main' for the test function. Also move this test to an execution point where the marker function names are guaranteed to be bound to functions. (Executing tests after a 'finish' from main runs into name conflicts with local names in __libc_start_main).
2000-12-082000-12-08 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder2-2/+14
* dwarf2read.c (DWARF2_REG_TO_REGNUM): New macro. Provide default definition. Will be used to translate between the compiler's register numbering and GDB's (for register variables etc). (new_symbol): Use DWARF2_REG_TO_REGNUM to translate register ids.
2000-12-082000-12-08 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder5-8/+16
* alpha-tdep.c: Fix typo in comment. * dbxread.c: Fix typo in comment. * fr30-tdep.c: Fix typo: newline missing after comment. * mcore-tdep.c: Fix typo in comment.
2000-12-08* gdbserver/low-hppabsd.c (buf2, environ, quit, quit_flag):J.T. Conklin9-61/+186
Removed unused variables and declarations. * gdbserver/low-linux.c (buf2, environ, query, quit, quit_flag): Likewise. * gdbserver/low-nbsd.c (buf2, environ, quit, quit_flag): Likewise. * gdbserver/low-sparc.c (buf2, environ, query, quit, quit_flag): Likewise. * gdbserver/low-sun.c (buf2, environ, query, quit, quit_flag): Likewise. * gdbserver/low-hppabsd.c, gdbserver/low-linux.c, gdbserver/low-nbsd.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c (create_inferior): Update comment. * gdbserver/low-nbsd.c (initialize_arch, fetch_inferior_registers, store_inferior_registers): Provide implementations for the m68k and ns32k. * config/m68k/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o * config/ns32k/nbsd.mt (GDBSERVER_DEPFILES): Likewise. * configure.tgt (m68*-*-netbsd*, ns32k-*-netbsd*): Add gdbserver to configdirs. -------------------------------------------------------------------
2000-12-082000-12-07 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder4-0/+333
* gdb.base/finish.exp: New test for gdb's "finish" command. * gdb.base/return2.exp: New test for gdb's "return" command. * gdb.base/return2.c: New source file for above.
2000-12-072000-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni3-29/+46
* config/sh/tm-sh.h (struct gdbarch_tdep): Rename fields {FP15,DR14,FV12}_REGNUM to {FP,DR,FV}_LAST_REGNUM. * sh-tdep.c (sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type, sh_do_registers_info, sh_gdbarch_init, sh_sh4_register_byte, sh_sh4_register_raw_size, sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual, sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register, sh_store_pseudo_register, sh_do_pseudo_register): Ditto. * sh-tdep.c (sh_gdbarch_init): Use a function pointer to set the disassembly print function. (_initialize_sh_tdep): Initialize tm_print_insn using the function pointer.
2000-12-07From Richard Henderson <rth@twiddle.net>:Mark Kettenis2-4/+10
* alpha-nat.c (supply_gregset, fill_gregset): Use gdb_gregset_t. (supply_fpregset, fill_fpregset): Use gdb_fpregset_t.
2000-12-062000-12-06 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-18/+18
* cli/cli-decode.c (add_abbrev_cmd): Reinstate. Add comment saying that is not currently used.
2000-12-062000-12-06 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-9/+7
* cli/cli-decode.c (lookup_cmd): Change disabled code into comment.
2000-12-062000-12-06 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-137/+5
* cli/cli-decode.c (lookup_cmd): Remove old stale copy of this routine which was not being used for quite some time.
2000-12-052000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder9-13/+50
* gdb.base/constvars.exp: Add a "pass" message if "up" succeeds. * gdb.base/miscexprs.exp: Ditto. * gdb.base/pointers.exp: Ditto. * gdb.c++/derivation.exp: Ditto. * gdb.c++/local.exp: Ditto. * gdb.c++/namespace.exp: Ditto. * gdb.c++/overload.exp: Ditto. * gdb.c++/ref-types.exp: Ditto.
2000-12-052000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder10-22/+63
* gdb.base/constvars.exp: Test result of "up" command. * gdb.base/miscexprs.exp: Ditto. * gdb.base/pointers.exp: Ditto. * gdb.base/scope.exp: Ditto. * gdb.c++/derivation.exp: Ditto. * gdb.c++/local.exp: Ditto. * gdb.c++/namespace.exp: Ditto. * gdb.c++/overload.exp: Ditto. * gdb.c++/ref-types.exp: Ditto.
2000-12-05* gdb-stabs.h (SECT_OFF_MAX): Increase to 64.Mark Kettenis3-4/+9
* symfile.h (MAX_SECTIONS): Increase to 64.
2000-12-052000-12-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni3-24/+8
* config/sh/tm-sh.h (struct gdbarch_tdep): Get rid of DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM, they are not used anywhere. * sh-tdep.c (sh_gdbarch_init): Don't initialize DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM.
2000-12-052000-12-04 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-1/+5
* utils.c (internal_verror): Fix typo in error msg.
2000-12-05* gdbint.texinfo (ECOFF_REG_TO_REGNUM, DWARF_REG_TO_REGNUM,Andrew Cagney2-0/+17
DWARF2_REG_TO_REGNUM): Document.
2000-12-04* Makefile.in (symfile.o): Add gdb-stabs.h to dependencies list.Mark Kettenis2-3/+7
2000-12-04Fix dwarf2read.c related crash in which section index was not beingKevin Buettner2-23/+11
initialized properly.
2000-12-04Multiarch STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM,Andrew Cagney12-32/+318
DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM.
2000-12-022000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>Stephane Carrez2-12/+6
* m68hc11-tdep.c (m68hc11_gdbarch_init): Remove elf_flags, cleanup. (gdbarch_tdep): Likewise.
2000-12-022000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>Stephane Carrez2-2/+8
* m68hc11-tdep.c (SOFT_D1_REGNUM): Soft registers start at 14. (m68hc11_register_names): Add null for register 13.
2000-12-022000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>Stephane Carrez2-168/+229
* m68hc11-tdep.c (m68hc11_frame_args_address): Fix args address computation. (m68hc11_frame_init_saved_regs): Frame pointer is saved only if the symbol exist. (m68hc11_analyze_instruction): New function. (m6811_prologue, m6812_prologue): New prologue description tables. (m68hc11_guess_from_prologue): Use the above. (m68hc11_gdbarch_init): Setup gdbarch_tdep for the prologue descriptions.
2000-12-02Add check for vfork() to configure.in. Cleanup uses.Andrew Cagney6-8/+24
2000-12-02* ser-unix.c (wait_for): Initialize the FD_SET before every selectAndrew Cagney2-35/+44
call. (ser_unix_wait_for): Ditto.
2000-12-02Really check-in:Andrew Cagney2-3/+7
* Makefile.in (varobj.o): Delete special .c.o rule supressing -Werror flag.
2000-12-02* m32r-rom.c (m32r_load_section): Update to matchAndrew Cagney2-1/+7
bfd_map_over_sections's ``func'' arg.
2000-12-02* mips-tdep.c (struct upk_mips16): Delete fields ``inst'' andAndrew Cagney2-174/+179
``fmt''. Make ``offset'' a CORE_ADDR. (print_unpack): Delete. (extended_offset): Construct and return a CORE_ADDR. (fetch_mips_16): Return an int. Don't assume short is 16 bits. (unpack_mips16): Rewrite. Add ``extension'' parameter instead of incorrectly guessing if the instruction had an extension. (map16): Delete array. (mips16_op): Delete macro. (extended_mips16_next_pc): Rewrite of old mips16_next_pc function. When an extended instruction do a recursive call. (mips16_next_pc): Call extended_mips16_next_pc. (mips_next_pc): Cleanup.
2000-12-02* ser-e7kpc.c (e7000pc_setstopbits): New function.Andrew Cagney5-14/+35
(e7000pc_ops): Add e7000pc_setstopbits. * remote-e7000.c (e7000_detach, e7000_resume, e7000_xfer_inferior_memory, e7000_files_info, e7000_files_info, e7000_insert_breakpoint, e7000_remove_breakpoint, e7000_kill): Update function signature to match target vector. * h8300-tdep.c (h8300_command, h8300h_command, h8300s_command): h8500-tdep.c (small_command, big_command, medium_command, compact_command): Update function signature to match add_cmd.
2000-12-012000-12-01 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-2/+12
* p-exp.y: Define strncasecmp as strnicmp for MSVC. (yylex): Use strncasecmp, not strnicmp.
2000-12-012000-12-01 Fernando Nasser <fnasser@redhat.com>Fernando Nasser16-2850/+3765
* cli/cli-decode.c: New file. Handle lists of commands, their decoding and documentation. (add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc, add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd, add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list, help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1, undef_cmd_error, lookup_cmd, deprecated_cmd_warning, lookup_cmd_composition, complete_on_cmdlist, complete_on_enum): Moved here from command.c. (add_info, add_info_alias, add_com, add_com_alias): Moved here from top.c. * cli/cli-decode.h: Definitions/declarations for the above. * cli/cli-cmds.c: New file. GDB CLI commands. (error_no_arg, info_command, show_command, help_command, show_version, quit_command, pwd_command, cd_command, echo_command, shell_escape, make_command, show_user, set_debug, show_debug, init_cmd_lists): Moved here from top.c. (apropos_command): Moved here from command.c. (complete_command, source_command): Moved here (part) from top.c. (is_complete_command): New function. Checks if a command is the "complete" command. (init_cli_cmds): New function. Add commands to the CLI (from code previously in top.c. * cli/cli-cmds.h: Definitions/declarations for the above. * cli/cli-script.c: New file. GDB CLI command scripting. (build_command_line, get_command_line, print_command_lines, print_command_line, execute_user_command, execute_control_command, while_command, if_command, arg_cleanup, setup_user_args, locate_arg, insert_args, realloc_body_list, read_next_line, recurse_read_control_structure, read_command_lines, free_command_lines, do_free_command_lines_cleanup, make_cleanup_free_command_lines, validate_comname, user_defined_command, define_command, document_command, source_cleanup_lines, do_fclose_cleanup, show_user_1): Moved here from top.c. (script_from_file): New function. Implements execution of a script contained in a file (part of code for the source_command() that used to exist in top.c). * cli/cli-script.h: Definitions/declarations for the above. * cli/cli-setshow.c: New file. Handle set and show GDB CLI commands. (parse_auto_binary_operation, parse_binary_operation, do_setshow_command, cmd_show_list): Moved here from command.c. * cli/cli-setshow.h: Definitions/declarations for the above. * top.c: Remove all CLI code, except the command loop. (gdb_init): Call init_cli_cmds(). * command.c: Remove obsolete file. * command.h: Mark as DEPRECATED. * gdbcmd.h: Ditto. * call-cmds.h: Ditto. * Makefile.in (SFILES): Remove command.c. (COMMON_OBS): Remove command.o. (command.o): Remove obsolete target. (cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros. Refer to CLI header files. (cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets. (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS, SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN, SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli subdirectory. * configure.in (enable_gdbcli): New option. Include the CLI in the executable (cannot be disabled yet). (CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS, CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add the corresponding SUBDIR_CLI_* macros if CLI requested. * configure: Regenerate.
2000-12-012000-10-27 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-16/+27
* p-exp.y (yylex): avoid problem with symbol name starting as a operator name.
2000-12-012000-11-30 Fernando Nasser <fnasser@redhat.com>Fernando Nasser16-407/+599
* linespec.h: New file. Declarations for linespec.c. * linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c, symtab.c, tracepoint.c: Include the above. * completer.c: New file. Line completion stuff for GDB. (get_gdb_completer_word_break_characters, get_gdb_completer_quote_characters): New functions. Accessors for useful completer internal data. (filename_completer, line_completion_function, skip_quoted): Moved here from top.c. * completer.h: New file. Declarations for the above. * linespec.c (decode_line_1): Use get_gdb_completer_word_break_characters and get_gdb_completer_quote_characters. * top.c: Include completer.h. (filename_completer, line_completion_function, skip_quoted): Moved to completer.c. * corefile.c, exec.c, source.c, symfile.c, linespec.c: Include completer.h. * Makefile.in (SFILES): Add completer.c. (COMMON_OBS): Add completer.o. (completer.o): New target. (linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o, symtab.o, tracepoint.o): Add linespec.h to dependencies list. (corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h to dependencies list.
2000-11-30Regenerate gdbarch.c.Andrew Cagney2-17/+21
2000-11-29Fix -Wuninitialized warnings.Andrew Cagney3-8/+15
2000-11-282000-11-22 Michael Chastain <chastain@redhat.com>Fernando Nasser2-2/+15
* mips_pro.exp: Accept either "middle -> top -> main" or "middle -> main" in the backtrace, because gcc can optimize tail calls to jumps. Remove setup_xfail for the hppa case. Add a comment with the original warning messages from PR 3016, which was filed in 1993, to preserve them for posterity.
2000-11-28*** empty log message ***Mark Salter1-0/+4
2000-11-28Add Mark Salter to Write After Approval list.Mark Salter1-0/+1
2000-11-28* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.Christopher Faylor3-2/+6
2000-11-27* remote.c (remote_write_bytes): Add default case to switchAndrew Cagney6-4/+33
initializing ``todo''. Ditto for ``nr_bytes''. * top.c (catch_errors): Always initialize ``val''. * solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size returning an unknown size. * gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''. * breakpoint.c (break_at_finish_at_depth_command_1): Initialise extra_args to NULL. (break_at_finish_command_1): Ditto.
2000-11-27* TODO: Add GFDL updates to 5.1 release criteria.Andrew Cagney2-0/+17
2000-11-26Add support for configuring an xscale atrgetNick Clifton3-0/+10
2000-11-24Support 68HC12 arch in GdbStephane Carrez2-1/+16
2000-11-24Use gdbarch_tdep for 68hc11 specific data (stack_correction global)Stephane Carrez2-14/+44
2000-11-24Add --enable-gdb-build-warnings=... to configure{,.in}.Andrew Cagney5-346/+405
2000-11-24Fix entry typo and missing information.Fernando Nasser1-2/+4
2000-11-21 * target.h (TARGET_SIGNAL_REALTIME_64): Added for IRIX 6.Peter Schauer3-0/+13
* target.c (target_signal_from_host, do_target_signal_to_host): Handle TARGET_SIGNAL_REALTIME_64.
2000-11-21 * solib.c (solib_open): Handle the case whereKevin Buettner2-12/+21
solib_absolute_prefix is NULL.
2000-11-212000-11-20 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder4-51/+103
* solist.h: Declare new function solib_open. * solib.c (solib_open): New function. Abstracts some of the code from solib_map_sections, for finding the binary solib file. (solib_map_sections): Call solib_open. * solib-svr4.c (enable_break): Call solib_open.