aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
AgeCommit message (Collapse)AuthorFilesLines
2005-03-17* defs.h (xsnprintf): New prototype.Mark Kettenis1-0/+4
* utils.c (xsnprintf): New function.
2005-02-142005-02-14 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+4
* utils.c (paddress): New function. * defs.h (paddress): Declare. * printcmd.c (deprecated_print_address_numeric): Rename print_address_numeric, call paddress. * valprint.c, ui-out.c, tui/tui-stack.c, tracepoint.c: Update. * symmisc.c, symfile.c stack.c, p-valprint.c, printcmd.c: Update. * maint.c, m32r-rom.c, infcmd.c, f-valprint.c, exec.c: Update. * dwarf2read.c, dve3900-rom.c, defs.h, c-valprint.c: Update. * corefile.c, cli/cli-cmds.c, breakpoint.c, annotate.c: Update. * ada-valprint.c: Update.
2005-02-062005-02-03 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+4
* utils.c (xzalloc): New function. * defs.h (XZALLOC): Use xzalloc. (xzalloc): Declare. * value.c (allocate_value): Allocate a zeroed buffer. * mdebugread.c (xzalloc): Delete.
2005-01-142005-01-14 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-3/+0
* utils.c (error_output_message): Delete function. * defs.h (error_output_message): Delete declaration.
2005-01-142005-01-14 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+0
* linespec.c (symtab_from_filename, decode_variable): Use throw_error instead of error_silent. * breakpoint.c (do_captured_parse_breakpoint): Change return type to void. (break_command_1): Use catch_exception and check the error return status. * exceptions.c (throw_error): New function. (throw_vsilent): Delete function. * exceptions.h (throw_error): Declare. (throw_vsilent): Delete declaration. * utils.c (error_silent): Delete function. * defs.h (error_silent): Delete declaration.
2005-01-142005-01-13 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-7/+0
* defs.h (error_last_message, error_init): Delete declaration. * utils.c (fatal, vfatal): Call throw_vfatal. (error, verror): Call throw_verror; (do_write, error_stream_1): Delete function. (error_stream): Simplify, call error. (error_last_message, error_init, gdb_lasterr): Delete. (error_silent): Simplify, call throw_vsilent. * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message. * main.c (captured_main): Delete call to error_init. * exceptions.c (throw_verror, throw_verror) (throw_vsilent): New functions. (do_write, print_and_throw): New functions. (last_message): New global. (throw_reason): Replace error_last_message with last_message. (catch_exceptions_with_msg): Dup the message. * exceptions.h (throw_verror, throw_vfatal, throw_vsilent): Declare.
2005-01-122005-01-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-89/+2
* exceptions.h (enum return_reason, RETURN_MASK) (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL) (return_mask, throw_exception, catch_exceptions_ftype) (catch_exceptions_with_msg, catch_errors_ftype, catch_errors) (catch_command_errors_ftype, catch_command_errors): Move to exceptions.h. * exceptions.c, exceptions.h: New files. * top.c: Do not include <setjmp.h>. (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return) (throw_exception, catcher, catch_exceptions) (catch_exceptions_with_msg, struct catch_errors_args) (do_catch_errors, catch_errors, struct captured_command_args) (do_captured_command, catch_command_errors): Move to exceptions.c. * wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h". * tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto. * symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto. * remote-sds.c, remote-mips.c, remote-fileio.c: Ditto. * remote-e7000.c, objc-lang.c, ocd.c: Ditto. * remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto. * main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto. * hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto. * corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto. * ada-valprint.c, ada-lang.c: Ditto. * Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and exceptions.o. Update all dependencies.
2004-11-13 * config/i386/xm-go32.h: Don't include fopen-bin.h.Eli Zaretskii1-5/+6
Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR. * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the branch that doesn't define CRLF_SOURCE_FILES; always use binary-mode open. (print_source_lines_base, forward_search_command) (reverse_search_command): Enable the code that accepts DOS-style CRLF line endings on all platforms (this removes the need for CRLF_SOURCE_FILES). * defs.h: (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
2004-11-13 * defs.h: Fix wording of the comment before FOPEN_RB.Eli Zaretskii1-4/+4
2004-11-132004-11-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-7/+3
* defs.h (enum lval_type): Delete lval_reg_frame_relative. * value.h (struct value): Update comment. * valops.c (value_assign): Fold lval_reg_fame_relative into lval_register. * findvar.c (value_from_register, locate_var_value): Ditto.
2004-11-102004-11-10 Randolph Chung <tausq@debian.org>Randolph Chung1-4/+0
* blockframe.c (inside_entry_func): Move to ..... * frame.c (inside_entry_func): ... here, and make static. (backtrace_past_entry): New flag. (get_prev_frame): Stop backtrace at the entry function if enabled by flag. Update comments. (_initialize_frame): Add command to set backtrace_past_entry flag. * defs.h (inside_entry_func): Remove prototype. doc/ * gdb.texinfo: Document set/show backtrace past-entry commands. Rearrange index entries for set/show backtrace past-main.
2004-11-052004-11-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+4
* defs.h (fatal, vfatal): New function prototypes. * stack.c (backtrace_command_stub): Stub to call backtrace_command_1 via catch_errors. (backtrace_command): Change to call backtrace_command_stub via catch_errors instead of calling backtrace_command_1 directly. (backtrace_full_command): Ditto. * utils.c (error_stream_1): New static function. (verror): Change to call error_stream_1 instead of error_stream. (error_stream): Call error_stream_1 with RETURN_ERROR argument. (vfatal, fatal): New functions.
2004-10-12* defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead ofMark Kettenis1-4/+9
"fopen-same.h". Update comment.
2004-10-01First part of turning on initial Ada support.Paul N. Hilfinger1-0/+1
* symfile.c (init_filename_language_table): Add extensions for Ada. * defs.h (enum language): Add language_ada. * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define. * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB. (add_symbols_from_enclosing_procs): Make a no-op for now. (ada_unqualified_name,add_angle_brackets,function_name_from_pc) (extended_canonical_line_spec, find_sal_from_funcs_and_line) (find_line_in_linetable, find_next_line_in_linetable) (read_all_symtabs, is_plausible_func_for_line) (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found) (is_runtime_sym_defined, check_size): Remove declaration. (function_name_from_pc, ada_translate_error_message) (ada_lookup_minimal_symbol): Remove definition. (ada_add_block_symbols): Remove useless label. * ada-lang.h (ada_maybe_exception_partial_symbol): Remove useless declaration. (ada_is_exception_sym): Likewise.
2004-09-30* defs.h (msavestring, mstrsave): Remove prototypes.Mark Kettenis1-4/+0
* utils.c (msavestring, mstrsave): Remove functions. * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave. * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead of mstrsave. * source.c (find_and_open_source): Use xstrdup instead of mstrsave.
2004-09-132004-09-13 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-7/+0
Eliminate event_loop_p, always has the value 1. * defs.h (event_loop_p): Delete macro. * breakpoint.c (until_break_command): Simplify. * utils.c (prompt_for_continue): Simplify. * tracepoint.c (read_actions): Simplify. * top.c (throw_exception, execute_command, gdb_readline_wrapper) (gdb_rl_operate_and_get_next, command_line_input, get_prompt) (set_prompt, init_main): Simplify. (init_signals, disconnect): Delete, unused. * remote.c (remote_async_resume) (extended_remote_async_create_inferior): Simplify. * mi/mi-interp.c (mi_input): Delete, unused. (mi_interpreter_resume, mi_command_loop): Simplify. * interps.c (current_interp_command_loop): Simplify. * infrun.c (proceed): Simplify. * infcmd.c (run_command, continue_command, step_1, jump_command) (until_command, advance_command, finish_command) (interrupt_target_command): Simplify. * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2004-09-112004-09-11 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-0/+5
* language.c (hex_string, hex_string_custom): Move from here ... * utils.c (hex_string, hex_string_custom): ... to here, rewrite. (CELLSIZE): Increase to 50. * language.h (hex_string, hex_string_custom): Move from here ... * defs.h: ... to here. * Makefile.in: Update all dependencies.
2004-09-11* language.c (local_hex_format_custom): Remove.Paul N. Hilfinger1-0/+1
(local_hex_string): Rename to hex_string, use C format, and move to utils.c (local_hex_string_custom): Rename to hex_string_custom and change interface. Now uses C format. Move to utils.c (local_octal_format_custom): Remove. (local_decimal_format_custom): Remove. (unknown_language_defn): Remove language-specific number formatting entries. (auto_language_defn): Ditto. (local_language_defn): Ditto. * language.h (struct language_format_info): Delete declaration. (struct language_defn): Remove language_format_info fields la_binary_format, la_octal_format, la_decimal_format, la_hex_format. (local_binary_format): Remove macro. (local_binary_format_prefix): Remove macro. (local_binary_format_specifier): Remove macro. (local_binary_format_suffix): Remove macro. (local_octal_format): Remove macro. (local_octal_format_prefix): Remove macro. (local_octal_format_specifier): Remove macro. (local_octal_format_suffix): Remove macro. (local_decimal_format): Remove macro. (local_decimal_format_prefix): Remove macro. (local_decimal_format_specifier): Remove macro. (local_decimal_format_suffix): Remove macro. (local_hex_format): Remove macro. (local_hex_format_prefix): Remove macro. (local_hex_format_specifier): Remove macro. (local_hex_format_suffix): Remove macro. (local_decimal_format_custom): Remove. (local_octal_format_custom): Remove. (local_hex_format_custom): Remove. (local_hex_string): Rename to hex_string and move to defs.h. (local_hex_string_custom): Rename to hex_string_custom, change interface, and move to defs.h. * utils.c: (int_string): New function. (hex_string): New function (from language.c). (hex_string_custom): New function (from language.c). (octal2str): New function. (decimal2str): Add width parameter. (paddr_u): Use new decimal2str interface. (paddr_d): Ditto. * defs.h (hex_string): Declare. (hex_string_custom): Declare. (int_string): Declare. * printcmd.c (print_scalar_formatted): Remove localized binary formatting. * valprint.c (print_longest): Use int_string. (print_floating): Use C hex format. (print_hex_chars): Ditto. (print_binary_chars): Remove language-specific formatting. (print_octal_chars): Use C octal format. (print_decimal_chars): Delocalize format. (print_decimal): Remove. * ada-lang.c (ada_language_defn): Remove language-specific number formatting entries. * p-lang.c (pascal_language_defn): Ditto. * c-lang.c (c_language_defn): Ditto. (cplus_language_defn): Ditto. (asm_language_defn): Ditto. (minimal_language_defn): Ditto. * f-lang.c (f_language_defn): Ditto. * jv-lang.c (java_language_defn): Ditto. * m2-lang.c (m2_language_defn): Ditto. * scm-lang.c (scm_language_defn): Ditto. * objc-lang.c (objc_language_defn): Ditto. * memattr.c (mem_info_command): Use renamed hex_string_custom with new interface. * pa64solib.c (pa64_sharedlibrary_info_command): Ditto. * ui-out.c (ui_out_field_core_addr): Ditto. * breakpoint.c (breakpoint_adjustment_warning): Ditto. * exec.c (print_section_info): Ditto. * i387-tdep.c (print_i387_status_word): Ditto. (print_i387_control_word): Ditto. (i387_print_float_info): Ditto. * maint.c (maint_print_section_info): Ditto. * solib.c (info_sharedlibrary_command): Ditto. * somsolib.c (som_sharedlibrary_info_command): Ditto. * symtab.c (print_msymbol_info): Ditto. * tracepoint.c (tracepoints_info): Ditto. * solib-frv.c (lm_base): Ditto. (frv_current_sos): Ditto. (enable_break2): Ditto. (enable_break): Ditto. * dbxread.c (read_dbx_symtab): Use renamed hex_string. (process_one_symbol): Ditto. * infcmd.c (program_info): Ditto. * mdebugread.c (parse_partial_symbols): Ditto. * symfile.c (add_symbol_file_command): Ditto. * cli/cli-cmds.c (edit_command): Ditto. (list_command): Ditto. * infcall.c (call_function_by_hand): Ditto. * remote-vx.c (vx_run_files_info): Ditto. (vx_wait): Ditto. (vx_attach): Ditto. (vx_detach): Ditto. (vx_kill): Ditto. * aix-thread.c (pdc_symbol_addrs): Ditto. (pdc_read_regs): Ditto. (pdc_write_regs): Ditto. (pdc_read_data): Ditto. (pdc_write_data): Ditto. * d10v-tdep.c (display_trace): Ditto. * rs6000-nat.c (find_toc_address): Ditto. * aix-thread.c: Don't include language.h. * buildsym.c: Ditto. * dbxread.c: Ditto. * mdebugread.c: Ditto. * rs6000-nat.c: Ditto. * buildsym.c (make_blockvector): Use renamed hex_string.
2004-09-08Fix bug reported and analyzed by Olivier Crete:Jim Blandy1-0/+4
* symfile.c (copy_section_addr_info): New function. (symbol_file_add_with_addrs_or_offsets): Use it to save the original set of address arguments, instead of handwritten code that uses one length to allocate and a different length to initialize. Use make_cleanup_free_section_addr_info. * symfile.h (copy_section_addr_info): New declaration. * utils.c: #include "symfile.h". (do_free_section_addr_info, make_cleanup_free_section_addr_info): New functions. * defs.h (make_cleanup_free_section_addr_info): New declaration. * Makefile.in (utils.o): Update dependencies.
2004-09-022004-09-02 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-32/+0
* acconfig.h (GDB_MULTI_ARCH): Delete undef. * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2004-09-012004-08-31 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+0
* frame.c: Include "objfiles.h". (inside_main_func): New function. (get_prev_frame): Use new inside_main_func. * Makefile.in (frame.o): Update dependencies. * defs.h (inside_main_func): Delete declaration. * blockframe.c (inside_main_func): Delete function.
2004-08-14* defs.h: Remove out-of-date comment.Mark Kettenis1-13/+0
[!FCLOSE_PROVIDED] (fclose): Remove prototype. [!GETENV_PROVIDED] (getenv): Remove prototype.
2004-08-14* defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURNMark Kettenis1-1/+1
from declaration. * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN from definition.
2004-08-102004-08-10 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+0
* main.c (captured_main): Delete call to init_malloc. * defs.h (init_malloc): Delete declaration. * utils.c (mmalloc, mrealloc, mcalloc, mfree) (init_malloc): Delete functions. Index: testsuite/ChangeLog 2004-08-10 Andrew Cagney <cagney@gnu.org> * gdb.gdb/selftest.exp (do_steps_and_nexts): Remove code to skip init_malloc call.
2004-08-102004-08-10 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-4/+0
* defs.h (xmfree): Delete. * utils.c (xmfree): Delete function. (xfree): Inline calls to xmfree and mfree. * symmisc.c (free_symtab_block, free_symtab): Use xfree. * symfile.c (reread_symbols, init_psymbol_list): Ditto. * source.c (forget_cached_source_info, find_and_open_source): Ditto. * somread.c (som_symfile_finish): Ditto. * objfiles.c (allocate_objfile, free_objfile): * nlmread.c (nlm_symfile_finish): Ditto. * hpread.c (hpread_symfile_finish): Ditto. * elfread.c (free_elfinfo, elf_symfile_finish): Ditto. * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto. * coffread.c (coff_symfile_finish): Ditto.
2004-08-102004-08-10 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+0
* defs.h (xmcalloc): Delete declaration. * utils.c (xmcalloc): Delete. (xcalloc): Inline calls to xmcalloc and mcalloc. * ada-lang.c (_initialize_ada_language): Use htab_create_alloc, xcalloc and xfree. * symtab.c (create_demangled_names_hash): Ditto.
2004-08-102004-08-10 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+0
* defs.h (xmrealloc): Delete. * utils.c (xmrealloc): Delete. (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc. * symmisc.c (extend_psymbol_list): Use xrealloc. * source.c (find_source_lines): Ditto. * hpread.c (hpread_lookup_type): Ditto. * dbxread.c (add_bincl_to_list): Ditto.
2004-08-102004-08-10 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+0
* utils.c (xmmalloc): Delete. (xmalloc): Inline xmmalloc and mmalloc calls. (msavestring): Use xmalloc. * defs.h (xmmalloc): Delete declaration. * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of xmmalloc. * symmisc.c (extend_psymbol_list): Ditto. * symfile.c (init_psymbol_list): Ditto. * source.c (find_source_lines): Ditto. * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto. * elfread.c (elf_symtab_read): Ditto. * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto. * coffread.c (coff_symfile_init): Ditto.
2004-07-30 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.Eli Zaretskii1-0/+3
* exec.c (exec_file_attach): * nto-tdep.c (nto_find_and_open_solib): * pa64solib.c (pa64_solib_sizeof_symbol_table): * solib.c (solib_open): * somsolib.c (som_solib_sizeof_symbol_table): * source.c (is_regular_file, openp, open_source_file): * symfile.c (symfile_bfd_open): * wince.c (upload_to_device): Differentiate between the search for binary and source files.
2004-07-282004-07-27 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+2
* defs.h (enum language): Add nr_languages. * language.h (struct language_arch_info): Define. (struct language_defn): Add la_language_arch_info. (language_lookup_primative_type_by_name): Declare. (language_string_char_type): Declare. * language.c (_initialize_language, language_gdbarch_post_init) (struct language_gdbarch, language_gdbarch_data): Implement per-architecture language information. (unknown_language_arch_info, language_string_char_type) (language_lookup_primative_type_by_name): New functions. (unknown_language_defn, auto_language_defn) (local_language_defn): Set la_language_arch_info to unknown_language_arch_info. (unknown_builtin_types): Delete. * gdbtypes.c (lookup_primitive_typename): Use language_lookup_primative_type_by_name. (create_string_type): Use language_string_char_type. * values.c (value_from_string): Use language_string_char_type. * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info. * p-lang.c (pascal_language_defn): Ditto. * m2-lang.c (m2_language_defn): Ditto. * jv-lang.c (java_language_defn): Ditto. * objc-lang.c (objc_language_defn): Ditto. * f-lang.c (f_language_defn): Ditto. * c-lang.c (c_language_defn, cplus_language_defn) (asm_language_defn, minimal_language_defn): Ditto.
2004-07-17Index: ChangeLogAndrew Cagney1-2/+5
2004-07-16 Andrew Cagney <cagney@gnu.org> * defs.h (event_loop_p): Replace variable declaration with macro, always 1. * main.c (captured_main): Delete options "-async" and "-noasync". (event_loop_p): Delete variable. * NEWS: Mention that "-async" and "-noasync" were removed. Index: doc/ChangeLog 2004-07-16 Andrew Cagney <cagney@gnu.org> * gdb.texinfo (Mode Options): Delete documentation on "-async" and "-noasync".
2004-06-292004-06-28 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+3
* defs.h (xstrvprintf): Declare. * utils.c (xstrvprintf): New function. (internal_vproblem, xstrprintf, xasprintf) (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf. * serial.c (serial_printf): Ditto. * complaints.c (vcomplaint): Ditto.
2004-06-252004-06-25 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
* defs.h (deprecated_ui_loop_hook): Deprecated. * wince.c (child_wait): Update. * win32-nat.c (child_wait): Update. * v850ice.c (v850ice_wait): Update. * top.c (deprecated_ui_loop_hook): Update. * serial.h: Update. * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) (do_unix_readchar): Update. * ser-tcp.c (net_open): Update. * remote-sim.c (gdb_os_poll_quit): Update. * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2004-06-242004-06-24 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+2
* defs.h (deprecated_pre_add_symbol_hook) (deprecated_post_add_symbol_hook): Deprecated. * symfile.c (symbol_file_add_with_addrs_or_offsets) (symbol_file_add_with_addrs_or_offsets): Update references.
2004-06-242004-06-24 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-0/+4
* defs.h (post_add_symbol_hook, pre_add_symbol_hook) (ui_loop_hook, selected_frame_level_changed_hook): Declare. * wince.c (ui_loop_hook): Delete extern declaration. * win32-nat.c (ui_loop_hook): Delete extern declaration.. * v850ice.c (ui_loop_hook): Delete extern declaration.. * ser-unix.c (ui_loop_hook): Delete extern declaration.. * ser-tcp.c (ui_loop_hook): Delete extern declaration.. * remote-sim.c (ui_loop_hook): Delete extern declaration.. * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern. ui_loop_hook declaration.
2004-06-10Add the -file-list-exec-source-files command to MI.Bob Rossi1-2/+0
2004-05-08* defs.h (enum return_value_convention): AddMark Kettenis1-1/+13
RETURN_VALUE_ABI_RETURNS_ADDRESS and RETURN_VALUE_ABI_PRESERVES_ADDRESS. * infcmd.c (legacy_return_value): New function. (print_return_value): Rwerite to implement RETURN_VALUE_ABI_RETURNS_ADDRESS. * values.c (using_struct_return): Check for inequality to RETURN_VALUE_REGISTER_CONVENTION instead of equality to RETURN_VALUE_STRUCT_CONVENTION. * i386-tdep.c (i386_return_value): Implement RETURN_VALUE_ABI_RETURNS_ADDRESS.
2004-04-302004-04-30 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+0
* defs.h (deprecated_inside_entry_file): Delete declaration. * blockframe.c (deprecated_inside_entry_file): Delete function. (legacy_frame_chain_valid): Delete call. * sh64-tdep.c (sh64_frame_chain): Delete call. * objfiles.h: Update comments. * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete call. * frame.c (get_prev_frame): Delete call, update comments.
2004-04-212004-04-21 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-37/+39
* annotate.h (deprecated_annotate_starting_hook) (deprecated_annotate_stopped_hook) (deprecated_annotate_exited_hook) (deprecated_annotate_signal_hook) (deprecated_annotate_signalled_hook): Deprecate. * tracepoint.h (deprecated_create_tracepoint_hook) (deprecated_delete_tracepoint_hook) (deprecated_modify_tracepoint_hook) (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Deprecate. * target.h (deprecated_target_new_objfile_hook): Deprecate. * remote.h (deprecated_target_resume_hook) (deprecated_target_wait_loop_hook): Deprecate. * gdbcore.h (deprecated_exec_file_display_hook) (deprecated_file_changed_hook): Deprecate. * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate. * defs.h (deprecated_modify_breakpoint_hook) (deprecated_command_loop_hook, deprecated_show_load_progress) (deprecated_print_frame_info_listing_hook) (deprecated_query_hook, deprecated_warning_hook) (deprecated_flush_hook, deprecated_create_breakpoint_hook) (deprecated_delete_breakpoint_hook) (deprecated_interactive_hook, deprecated_registers_changed_hook) (deprecated_readline_begin_hook, deprecated_readline_hook) (deprecated_readline_end_hook, deprecated_register_changed_hook) (deprecated_memory_changed_hook, deprecated_init_ui_hook) (deprecated_context_hook, deprecated_target_wait_hook) (deprecated_attach_hook, deprecated_detach_hook) (deprecated_call_command_hook, deprecated_set_hook) (deprecated_error_hook, deprecated_error_begin_hook) (deprecated_ui_load_progress_hook): Deprecate. * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update. * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update. * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update. * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update. * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update. * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update. * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update. * annotate.c, aix-thread.c: Update.
2004-02-232004-02-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-0/+2
* defs.h (nquery, yquery): New prototypes. * breakpoint.c (break_command_1): Use new nquery interface. * utils.c (defaulted_query, nquery, yquery): New functions.
2004-02-182004-02-17 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-3/+0
* Makefile.in (defs_h): Remove dependency on progress_h. * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of progress.h. * main.c (captured_main): Delete use of START_PROGRESS and END_PROGRESS. 2004-02-17 Elena Zannoni <ezannoni@redhat.com> * gdb.base/selftest.exp (do_steps_and_nexts): Add comment.
2004-02-102004-02-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-4/+0
* defs.h: Do not include "tui.h". * gdb_curses.h: New file. * tui/tui-hooks.h: New file. * tui/tui.h (tui_update_all_exec_infos): Delete declaration. (tui_install_hooks, tui_remove_hooks): Delete declarations. (tui_initialize_io): Delete declaration. (tui_initialize_readline: Delete redundant declaration. (struct tui_point): Delete definition. * tui/tui-data.h (struct tui_point): Define. * cli/cli-decode.c [TUI]: Include "tui/tui.h". * utils.c: Include "tui/tui.h". * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h". * printcmd.c [TUI]: Include "tui/tui.h". * cli/cli-cmds.c [TUI]: Include "tui/tui.h". * tui/tui-command.c: Include "gdb_curses.h". * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto. * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto. * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto. * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto. * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h". * Makefile.in: Update all dependencies. (tui_hooks_h, gdb_curses_h): Define. (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
2004-02-04 * objfiles.h: Delete comments refering to inside_entry_func andDaniel Jacobowitz1-3/+2
DEPRECATED_FRAME_CHAIN_VALID. * defs.h (inside_entry_func): Update prototype.. * blockframe.c (inside_entry_func): Rename to legacy_inside_entry_func. Add new inside_entry_func taking a frame. * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
2004-02-02Fix typo in commentFred Fish1-2/+2
2004-01-202004-01-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-1/+16
* linespec.c (decode_variable, symtab_from_filename): Call error_silent with error message instead of throwing an exception directly. * defs.h (error_silent, error_output_message): Add prototypes. (catch_exceptions_with_msg): Ditto. * utils.c (error_silent, error_output_message): New functions. * top.c (catch_exceptions_with_msg): New function.
2004-01-17* defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.Mark Kettenis1-0/+1
* osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
2004-01-022004-01-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+0
* utils.c (do_my_cleanups): Make static, add forward declaration. * defs.h (do_my_cleanups): Delete declaration.
2003-12-072003-12-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+7
* defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by directly calling strcmp equivalents. Add disclaimer.
2003-11-232003-11-23 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+8
* symfile.c (symbol_file_command): Replace STREQ with strcmp. * defs.h (DEPRECATED_STREQN): Rename STREQN. (DEPRECATED_STREQ): Rename STREQ. * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update. * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update. * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update. * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update. * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update. * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update. * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update. * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update. * source.c, sparc-tdep.c, stack.c, target.c: Update.
2003-10-312003-10-31 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+4
* defs.h (XZALLOC): Define. * target.h (struct target_ops): Add "to_data"; * bfd-target.h, bfd-target.c: New files. * Makefile.in (SFILES): Add "bfd-target.c". (COMMON_OBS): Add "bfd-target.o". (bfd-target.o): Specify dependencies. (bfd_target_h): Define. * defs.h (XZALLOC): Define.