aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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-11-30 Philip Blundell <pb@futuretv.com>Phil Blundell2-1/+6
* config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists, even in non BFD_ASSEMBLER case.
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 Diego Novillo <dnovillo@redhat.com>Diego Novillo5-0/+19
* tc-i386.c (md_assemble): Swap i.disp_relocs when using intel syntax. 2000-11-30 Diego Novillo <dnovillo@redhat.com> * intel.s, intel.d: New test for @GOT references.
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-30Add support for x86_64-*-linux-gnu* targetNick Clifton7-326/+381
2000-11-30Add support for x86_64-*-linux-gnu* targetNick Clifton20-926/+5665
2000-11-30Add x86-64 support files.Nick Clifton3-0/+52
2000-11-30* readelf.c (frame_display_row): Output 's' for DW_CFA_same_value.DJ Delorie2-1/+5
2000-11-30 * emulparams/crislinux.sh (ENTRY): Change back to _start.Hans-Peter Nilsson3-43/+51
(TEXT_START_SYMBOLS): Remove conditional setting of __start. * scripttempl/crisaout.sc: Change all RELOCATING not related to merging non-a.out sections into CONSTRUCTING.
2000-11-302000-11-30 Kazu Hirata <kazu@hxi.com>Kazu Hirata2-96/+79
* xcofflink.c: Fix formatting.
2000-11-30Regenerate gdbarch.c.Andrew Cagney2-17/+21
2000-11-30Add support for ARM's v5TE architecture and Intel's XScale extenstionsNick Clifton12-250/+1771
2000-11-30Add GNU Free Documentation LicenseNick Clifton1-15/+371
2000-11-29Turn Gnu Free Documentation License intoa commentNick Clifton1-359/+361
2000-11-29 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging outputRichard Henderson5-607/+1017
until dwarf2_finish; use relaxation to get cross-fragment offsets; thread multiple subsegments properly; handle multiple code sections properly; emit proper compilation unit info for assembler generated debugging. * as.h (enum _relax_state): Add rs_dwarf2dbg. * dwarf2dbg.h (struct dwarf2_line_info): Remove filename. (dwarf2dbg_estimate_size_before_relax): Declare. (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare. * write.c: Include dwarf2dbg.h. (cvt_frag_to_fill): Handle rs_dwarf2dbg. (relax_segment): Likewise.
2000-11-29* libiberty.h: Move #includes to top. Prototype xmalloc_failed.DJ Delorie2-6/+14
2000-11-29* aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.DJ Delorie2-162/+262
(AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three argument form of AC_DEFINE in dummy definitions block. Use AC_DEFINE_NOAUTOHEADER for real definitions of things defined in dummy block. Preload cache variables instead of bypassing tests, where possible. * acconfig.h: Removed. * xmalloc.c (xmalloc_failed): New function, does error reporting on failed allocation. (xmalloc, xcalloc, xrealloc): Use it.
2000-11-29* hashtab.c (higher_prime_number): Use a table, rather than aDJ Delorie2-22/+61
seive, to find the next prime.
2000-11-29* aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.DJ Delorie5-126/+107
(AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three argument form of AC_DEFINE in dummy definitions block. Use AC_DEFINE_NOAUTOHEADER for real definitions of things defined in dummy block. Preload cache variables instead of bypassing tests, where possible. * acconfig.h: Removed. * xmalloc.c (xmalloc_failed): New function, does error reporting on failed allocation. (xmalloc, xcalloc, xrealloc): Use it.
2000-11-29Fix -Wuninitialized warnings.Andrew Cagney3-8/+15
2000-11-292000-11-28 Kazu Hirata <kazu@hxi.com>Kazu Hirata2-434/+415
* elf32-mips.c: Fix formatting.
2000-11-28 (parse_reg): Parse names case-insensitively.Hans-Peter Nilsson2-53/+60
2000-11-28 (sh_elf_cons): Cast *input_line_pointer to unsigned char whenHans-Peter Nilsson2-3/+7
indexing is_end_of_line[]. (md_assemble): Initialize size to 0. (md_section_align): Mark parameter seg as unused.
2000-11-28 * sh-dis.c (print_insn_ddt): Make insn_x, insn_y unsigned.Hans-Peter Nilsson2-4/+10
(print_insn_ppi): Make nib1, nib2, nib3 unsigned. Initialize variable dc to NULL. (print_insn_shx): Remove unused label d_reg_n.
2000-11-28 * gas/sh/err.exp: New, framework for error-testing.Hans-Peter Nilsson3-0/+44
* gas/sh/err-1.s: New test.
2000-11-28 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditionalHans-Peter Nilsson2-17/+30
jump>: Use as_bad_where instead of as_bad. Tweak error message accordingly. Stabilize frag by updating fix part and resetting variant part. <undefined symbol, unconditional jump>: Ditto.
2000-11-28 Change sourceware.cygnus.com to sources.redhat.com.Hans-Peter Nilsson2-3/+5
Fix typo for "amongst".
2000-11-28 * MAINTAINERS: Add Jörn Rennecke and self as SH maintainers.Hans-Peter Nilsson2-0/+6
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-282000-11-28 Kazu Hirata <kazu@hxi.com>Kazu Hirata10-110/+109
* aoutx.h: Fix formatting. * bfd-in.h: Likewise. * bfd-in2.h: Likewise. * cache.c: Likewise. * cisco-core.c: Likewise. * coff64-rs6000.c: Likewise. * coffcode.h: Likewise. * coffswap.h: Likewise. * corefile.c: Likewise.
2000-11-282000-11-27 Kazu Hirata <kazu@hxi.com>Kazu Hirata14-45/+61
* config/obj-aout.h: Fix formatting. * config/obj-bout.h: Likewise. * config/obj-coff.c: Likewise. * config/obj-coff.h: Likewise. * config/obj-elf.h: Likewise. * config/obj-som.h: Likewise. * config/obj-vms.c: Likewise. * config/obj-vms.h: Likewise. * config/tc-h8300.h: Likewise. * config/tc-ns32k.h: Likewise. * config/tc-sparc.h: Likewise. * config/tc-tic54x.h: Likewise. * config/tc-z8k.h: Likewise.
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-28Move GNU Free Documentation License from the output into a commentNick Clifton14-3982/+4038
2000-11-28 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coffHans-Peter Nilsson3-25/+16
targets. Remove i860 from valid a.out targets. * Makefile.in: Regenerate.
2000-11-28 * binutils-all/readelf.s: Adjust to readelf.c formatting changes.Hans-Peter Nilsson2-11/+16
2000-11-28* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.Christopher Faylor3-2/+6
2000-11-28 * config/tc-cris.c: Include dwarf2dbg.h.Hans-Peter Nilsson5-65/+96
(md_pseudo_table): Add .file and .loc. (md_assemble): Call dwarf2_emit_insn if generating ELF. (s_cris_file, s_cris_loc): New. * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define. * Makefile.am: Regenerate dependencies. * Makefile.in: Regenerate.
2000-11-28Correct {STANDARD,MRI}_MUL_PRECEDENCE value.Alan Modra2-3/+9
2000-11-282000-11-28 David O'Brien <obrien@dragon.nuxi.com>David O'Brien2-2/+6
* emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF does not use them. Approved by: Richard Henderson <rth@twiddle.net> Message-ID: <20001127014059.A16638@twiddle.net>
2000-11-282000-11-27 Kazu Hirata <kazu@hxi.com>Kazu Hirata4-75/+66
* coff64-rs6000.c: Fix formatting. * coffgen.c: Likewise. * cofflink.c: Likewise.
2000-11-282000-11-27 Kazu Hirata <kazu@hxi.com>Kazu Hirata2-206/+248
* aout-adobe.c: Fix formatting.
2000-11-27 * common.h (e_machine numbers): Clarify comments to describe howHans-Peter Nilsson2-6/+20
EM_* constants are assigned. Move EM_PJ from official section to ad-hoc section. (EM_CRIS): Correct comment to match official description. (EM_MMIX): Ditto.
2000-11-27oops, forgot a semicolonDJ Delorie1-1/+1
2000-11-27* readelf.c (usage): Add -wf (--debug-dump=frames) option.DJ Delorie3-5/+501
(parse_args): Support -wf option. (process_section_headers): Ditto. (debug_displays): Ditto. (display_debug_frames): New, dump *_frame sections. (frame_need_space): Support for above. (frame_display_row): Ditto. * binutils.texi: Document it.
2000-11-27Fix delete_hw_event_data() to free the scheduled eventsStephane Carrez2-2/+7
2000-11-27Remove space == 0 restriction in the simulator (dv-core)Stephane Carrez2-2/+5
2000-11-272000-11-27 Philip Blundell <pb@futuretv.com>Phil Blundell5-1/+19
* libcoff-in.h (coff_tdata): Add `strings_written' flag. (obj_coff_strings_written): New accessor macro for above. * libcoff.h: Regenerate. * cofflink.c (_bfd_coff_final_link): Say that we wrote the strings. * coffcode.h (coff_write_object_contents): No need to write out the string table if it's already been done.
2000-11-272000-11-22 Philip Blundell <pb@futuretv.com>Phil Blundell2-0/+8
* cofflink.c (_bfd_coff_generic_relocate_section): Don't object to weak undefined symbols.