aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2000-11-21* gdbserver/low-nbsd.c (fetch_inferior_registers,J.T. Conklin2-14/+29
store_inferior_registers): Support older NetBSD/powerpc systems from before fp reg support was added. Adapt to register number changes caused when powerpc target was multi-arched.
2000-11-202000-11-20 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+6
* ia64-tdep.c (gdbarch_tdep): Change reference from ELFOSABI_MONTEREY to ELFOSABI_AIX.
2000-11-20 * c-valprint.c (print_function_pointer_address): New functionPeter Schauer2-3/+31
to automatically dereference a function pointer for printing if necessary. (c_val_print): Use print_function_pointer_address when printing function pointer addresses.
2000-11-20* gdbserver/low-nbsd.c: Fix typos.J.T. Conklin2-32/+36
2000-11-20 * pa64solib.c (add_to_solib): Pass TARGET to pa64_solib_load_symbols.Jeff Law2-1/+6
2000-11-20Add linespec maintainers.Andrew Cagney2-0/+7
2000-11-20Devolve Solaris/x86Andrew Cagney2-1/+5
2000-11-20 * MAINTAINERS: Peter Schauer and Kevin Buettner maintain AIX. JimAndrew Cagney2-1/+13
Blandy, KEvin Buettner and Peter Schauer share shared libs.
2000-11-20Mark error_no_arg() as no-return.Andrew Cagney2-1/+5
2000-11-20Replace asprintf() / vasprintf() with xasprintf() xvasprintf().Andrew Cagney8-77/+106
2000-11-20Add ``extern'' and STREQ to cleanups.Andrew Cagney2-0/+16
2000-11-19* symtab.c (no_symtab_msg): Remove definition.Jim Blandy3-7/+12
(sources_info): Replace use of no_symtab_msg with the string itself. * linespec.c (no_symtab_msg): Remove declaration. (decode_line_1): Replace uses of no_symtab_msg with the string itself.
2000-11-19 * gdb.texinfo (Continuing and Stepping): Fixed markup and typos,Eli Zaretskii2-12/+17
as suggested by Dmitry Sivachenko <dima@Chg.RU>.
2000-11-18Handle optimizer code motions into the prologue.Kevin Buettner2-6/+113
2000-11-18Protoization.Kevin Buettner2-6/+6
2000-11-17 * lib/gdb.exp (gdb_test): Override timeout with board info.Nicholas Duffek2-4/+12
2000-11-17 * gdb.base/display.exp: Don't kill running stub. Add "again" toNicholas Duffek2-13/+19
the second kill and detach messages.
2000-11-17 * configure.in: Add AC_EXEEXT.Nicholas Duffek7-6/+137
* configure: Regenerate. * Makefile.in (just-check): Export EXEEXT. * lib/gdb.exp ($EXEEXT): Import from environment. * gdb.base/maint.exp: Expect $EXEEXT in executable name. Don't expect "maint dump-me" on Cygwin. * gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append $EXEEXT.
2000-11-17 * gdb.base/break.exp: Test backtrace and finish from calledNicholas Duffek2-15/+24
function on all platforms, not just HP-UX.
2000-11-17* gdb.texinfo: Document new 'set step-mode' command.Christopher Faylor2-0/+21
2000-11-17* thread.c (thread_apply_all_command): Save the command before executing itChristopher Faylor2-0/+23
because it may be modified. Restore the saved command so that the same command is executed on next thread. (thread_apply_command): Same correction.
2000-11-172000-11-16 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-1/+17
* regcache.c (read_register_bytes): Failing to set register_valid is not necessarily an error, if the register is a pseudo-register. Some pseudo-registers are never marked as valid, so that they will be read anew every time. Determining if a pseudo-register is valid (or should be marked invalid) may be difficult, whereas just recomputing it may be cheap.
2000-11-16 * tracepoint.c (trace_find_tracepoint_command): Replace call toDavid Taylor3-2/+9
parse_and_eval_address with a call to parse_and_eval_long as we are evaluating an integer, not an address. * top.c (show_commands): Ditto.
2000-11-15Protoization.Kevin Buettner4-8/+6
2000-11-15 * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,David Taylor2-3/+9
not TARGET_PTR_BIT, since we are dealing with addresses, not pointers.