aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-10-032008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov16-87/+96
* utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv and check for out-of-memory condition. * exec.c (exec_file_command): Call it. * infrun.c (handle_command, xdb_handle_command): Likewise. * interps.c (interpreter_exec_cmd): Likewise. * linux-nat.c (linux_nat_info_proc_cmd): Likewise. * procfs.c (info_proc_cmd): Likewise. * remote-mips.c (common_open): Likewise. * remote-sim.c (gdbsim_kill, gdbsim_create_inferior) (gdbsim_open): Likewise. * remote.c (extended_remote_run, remote_put_command) (remote_get_command, remote_delete_command): Likewise. * ser-mingw.c (pipe_windows_open): Likesise. * source.c (add_path, show_substitute_path_command) (unset_substitute_path_command, set_substitute_path_command): Likewise. * stack.c (backtrace_command): Likewise. * symfile.c (symbol_file_command, generic_load) (add_symbol_file_command): Likesise. * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols) (maintenance_print_msymbols): Likewise.
2008-10-03*** empty log message ***gdbadmin1-1/+1
2008-10-02gdb/Jan Kratochvil15-245/+85
Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined. * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix), valops.c (value_cast), varobj.c (c_number_of_children): Replace TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. * f-valprint.c (f77_get_dynamic_upperbound): Replace with ... (f77_get_upperbound): ... this function handling now only TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. (f77_get_dynamic_lowerbound): Replace with ... (f77_get_lowerbound): ... this function handling now only TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED. (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl): Update their callers. * eval.c (evaluate_subexp_standard): Update their callers. * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound) (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their prototypes. (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove. * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove the lower_bound_was_default variable. Update the f77_get_dynamic_upperbound, f77_get_upperbound and TYPE_ARRAY_UPPER_BOUND_TYPE calls. * gdbtypes.c (print_bound_type): Remove the function. (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and LOWER_BOUND_TYPE. * gdbtypes.h (enum array_bound_type): Remove. (struct main_type): Remove the fields upper_bound_type and lower_bound_type. Comment the new overload of the field artificial. (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ... (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro. (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ... (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro. gdb/testsuite/ * gdb.base/maint.exp (maint print type): Remove printing UPPER_BOUND_TYPE and LOWER_BOUND_TYPE.
2008-10-02 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.Tom Tromey2-2/+6
2008-10-02 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): UpdateDaniel Jacobowitz5-9/+119
comments. (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver. (mips_linux_init_abi): Do not override skip_trampoline_code. * configure.tgt (mips*-*-linux*): Add glibc-tdep.o. * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches. (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs. (mips_skip_mips16_trampoline_code): Rename from mips_skip_trampoline_code. (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New. * infrun.c (handle_inferior_event): Do not pass zero to in_solib_dynsym_resolve_code.
2008-10-02 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.Pierre Muller3-0/+18
2008-10-02*** empty log message ***gdbadmin1-1/+1
2008-10-01 * symtab.c (search_symbols): Update.Tom Tromey3-11/+10
* symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
2008-10-01 * symfile.c (syms_from_objfile): Update.Tom Tromey3-19/+14
(reread_symbols): Update. * objfiles.h (OBJF_SYMS): Remove. (OBJF_REORDERED): Renumber. (OBJF_SHARED): Likewise. (OBJF_READNOW): Likewise. (OBJF_USERLOADED): Likewise.
2008-10-01 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.Tom Tromey8-17/+31
(find_pc_sect_symtab): Likewise. * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE. * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use MSYMBOL_TYPE, not SYMBOL_TYPE. * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE. * objc-lang.c (find_methods): Use MSYMBOL_TYPE. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use MSYMBOL_TYPE. * m2-exp.y (yylex): Use SYMBOL_CLASS.
2008-10-01 * gdb.texinfo (catch) [exception]: Document how to insertJoel Brobecker2-0/+15
a breakpoint on user-defined exceptions when the exception name is identical to one of the language-defined ones.
2008-10-01 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.Tom Tromey12-47/+66
(scan_xcoff_symtab): Update. * mdebugread.c (record_minimal_symbol): Update. (parse_partial_symbols): Update. * elfread.c (record_minimal_symbol): Update. * dbxread.c (record_minimal_symbol): Update. * coffread.c (record_minimal_symbol): Update. * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine. (sh64_elf_make_msymbol_special): Update. * mips-tdep.c (mips_elf_make_msymbol_special): Use MSYMBOL_TARGET_FLAG_1. (mips_elf_make_msymbol_special): Likewise. (msymbol_is_special): Likewise. * minsyms.c (prim_record_minimal_symbol_and_info): Update. (install_minimal_symbols): Likewise. (prim_record_minimal_symbol): Update. (prim_record_minimal_symbol_and_info): Remove 'info' argument. * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine. (MSYMBOL_SET_RTI): Redefine. (MSYMBOL_IS_RTC): Redefine. (MSYMBOL_IS_RTI): Redefine. * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine. (MSYMBOL_IS_SPECIAL): Redefine. * symtab.h (struct minimal_symbol) <info>: Remove. <target_flag_1, target_flag_2>: New fields. (MSYMBOL_INFO): Remove. (MSYMBOL_TARGET_FLAG_1): New macro. (MSYMBOL_TARGET_FLAG_2): Likewise. (prim_record_minimal_symbol_and_info): Update.
2008-10-01 * ada-lang.c (is_digits_suffix): Delete unused function.Joel Brobecker2-13/+4
2008-10-01*** empty log message ***gdbadmin1-1/+1
2008-09-30 * ada-lang.c (ada_modulus): Correct to avoid sign problem withJoel Brobecker2-2/+7
moduli >= 2**31.
2008-09-30 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"Joel Brobecker2-4/+43
variant branch. (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not supposed to be null. Fixes debugger segfaults. (is_unchecked_variant): New function. (to_fixed_variant_branch_type): Modify to leave unchecked unions untouched. (ada_template_to_fixed_record_type_1): Fix comment.
2008-09-30 * ada-lang.c (standard_exc): New static constant.Joel Brobecker2-0/+44
(ada_exception_catchpoint_cond_string): Add special handling for the predefined exceptions.
2008-09-30 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. UpdateJoel Brobecker2-7/+7
the code accordingly.
2008-09-30 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strangeJoel Brobecker2-10/+26
treatment of expect_type. Return the correct type when dereferencing an integer.
2008-09-30gdbTom Tromey18-17/+277
PR gdb/2484: * symtab.c (struct add_macro_name_data): New struct. (add_macro_name): New function. (default_make_symbol_completion_list): Complete macro names. * scm-lang.c (scm_language_defn): Update. * p-lang.c (pascal_language_defn): Update. * objc-lang.c (objc_language_defn): Update. * macrotab.h (macro_callback_fn): Add user_data argument. (macro_for_each): Likewise. (macro_for_each_in_scope): Declare. * macrotab.c: (struct macro_for_each_data): New struct. (foreach_macro): Use it. (macro_for_each): Likewise. (foreach_macro_in_scope): New function. (macro_for_each_in_scope): Likewise. * macrocmd.c (print_one_macro): Add argument. (macro_list_command): Pass NULL to macro_for_each. * m2-lang.c (m2_language_defn): Update. * language.h (struct language_defn) <la_macro_expansion>: New field. (macro_expansion): New enum. * language.c (unknown_language_defn): Update. Fix order of initializers. (auto_language_defn): Likewise. (local_language_defn): Update. * jv-lang.c (java_language_defn): Update. * f-lang.c (f_language_defn): Update. * c-lang.c (c_language_defn): Update. (cplus_language_defn): Likewise. (asm_language_defn): Likewise. (minimal_language_defn): Likewise. * ada-lang.c (ada_language_defn): Update. gdb/testsuite * gdb.base/macscp.exp: Add completion tests. * gdb.base/macscp1.c (FIFTY_SEVEN): New macro. (TWENTY_THREE): Likewise. (FORTY_EIGHT): Likewise.
2008-09-30 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.Joel Brobecker2-5/+43
(get_scope_pc_bounds): Use it.
2008-09-30 * gdb.base/macscp.exp: Change "M" to "MACRO_TO_EXPAND"Tom Tromey3-19/+25
everywhere. * gdb.base/macscp1.c (MACRO_TO_EXPAND): Rename from "M".
2008-09-30*** empty log message ***gdbadmin1-1/+1
2008-09-29*** empty log message ***gdbadmin1-1/+1
2008-09-28gdb/testsuite/Jan Kratochvil2-11/+24
* gdb.threads/attachstop-mt.exp: Note a real testcase name this testcase is derived from. Fix racy dependency on an expected PID number. No longer support the testcase on Linux kernel 2.4.x.
2008-09-28*** empty log message ***gdbadmin1-1/+1
2008-09-27gdbTom Tromey8-75/+473
* NEWS: Update. * macrocmd.c (extract_identifier): Add is_parameter argument. (macro_define_command): Update. (macro_undef_command): Likewise. * macroexp.c (stringify): New function. (find_parameter): Likewise. (gather_arguments): Add nargs argument. Handle varargs. (substitute_args): Add is_varargs and va_arg_name arguments. Handle varargs, splicing, stringification. Use find_parameter. (expand): Handle varargs. gdb/doc * gdb.texinfo (Macros): Remove text about stringification, varargs, and splicing. gdb/testsuite * gdb.base/macscp.exp: Add tests for stringification, splicing, and varargs.
2008-09-27gdbTom Tromey20-60/+134
* scm-lang.c (scm_language_defn): Update. * p-typeprint.c (pascal_print_typedef): New function. * p-lang.h: (pascal_print_typedef): Declare. * p-lang.c (pascal_language_defn): Update. * objc-lang.c (objc_language_defn): Update. * m2-typeprint.c (m2_print_typedef): New function. * m2-lang.h (m2_print_typedef): Declare. * m2-lang.c (m2_language_defn): Update. * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal): Remove. (struct language_defn) <la_print_typedef>: New field. (default_print_typedef): Declare. (LA_PRINT_TYPEDEF): New define. * language.c (unknown_language_defn): Update. (auto_language_defn): Update. (local_language_defn): Update. * jv-lang.c (java_language_defn): Update. * f-lang.c (f_language_defn): Update. * c-typeprint.c (c_print_typedef): New function. * c-lang.h (c_print_typedef): Declare. * c-lang.c (c_language_defn): Update. (cplus_language_defn): Update. (asm_language_defn): Update. (minimal_language_defn): Update. * ada-lang.c (ada_language_defn): Update. * typeprint.c (default_print_typedef): New function. gdb/doc * gdbint.texinfo (Language Support): Remove text about omitting support for a language.
2008-09-27 * jv-exp.y (insert_exp): Define using ISO syntax.Tom Tromey2-21/+19
(copy_exp): Likewise. (push_expression_name): Likewise. (push_fieldnames): Likewise. (java_type_from_name): Likewise. (yyerror): Likewise. (yylex): Likewise. (parse_number): Likewise.
2008-09-27*** empty log message ***gdbadmin1-1/+1
2008-09-26 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.Joel Brobecker2-0/+5
2008-09-26*** empty log message ***gdbadmin1-1/+1
2008-09-25 * stack.c (print_frame_args): Fix typos in comments.Joel Brobecker2-2/+6
2008-09-252008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>Thiago Jung Bauermann2-2/+6
* linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
2008-09-25*** empty log message ***gdbadmin1-1/+1
2008-09-24 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.Vladimir Prus2-1/+5
2008-09-24* frame.c (get_frame_register_bytes): Avoid excessive function calls.Andreas Schwab2-3/+4
2008-09-24* frame.c (get_frame_register_bytes): Take pseudo registers intoAndreas Schwab2-1/+7
account.
2008-09-24*** empty log message ***gdbadmin1-1/+1
2008-09-23 * dcache.c (state_chars): New static global.Doug Evans4-14/+35
(ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK. All uses updated. (dcache_info): Print cache state as mnemonically useful letters instead of magic numbers. * doc/gdb.texinfo (info dcache): Update.
2008-09-23 * dwarf2read.c (comp_unit_head): Reorganize for better packing.Doug Evans2-1/+5
2008-09-23*** empty log message ***gdbadmin1-1/+1
2008-09-22 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't useTom Tromey2-3/+8
printf_filtered.
2008-09-222008-09-22 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-35/+156
gdb/doc * gdb.texinfo (Packets): Add info on thread-id syntax and multiprocess extensions. <D>: Document multiprocess form of packet. <H>: Use thread-id syntax. <T>: Likewise. <vCont>: Likewise. Note this is required for multiprocess. <vKill>: New packet. (Stop Reply Packets) <T>: Use thread-id syntax. <W>: Document multiprocess form of reply. <X>: Likewise. (General Query Packets) <qC>: Use thread-id syntax. <qfThreadInfo>: Likewise. <qGetTLSAddr>: Likewise. <qP>: Likewise. <qSupported>: Add "multiprocess" feature. <qThreadExtraInfo>: Use thread-id syntax.
2008-09-22 * infrun.c (follow_exec): Don't do a generic mourn. InsteadPedro Alves3-5/+10
inline the required bits. * breakpoint.h (enum inf_context): Add inf_execd.
2008-09-22 * infrun.c (handle_inferior_event): In the follow exec case,Pedro Alves2-20/+16
context-switch before doing anything else.
2008-09-22 * top.c (any_thread_of, kill_or_detach): New functions.Pedro Alves2-8/+44
(quit_target): Iterate over all inferiors, killing or detaching accordingly.
2008-09-22 Remove the attach_flag global, and make it per-inferior.Pedro Alves15-75/+133
* inferior.h (attach_flag): Delete. (inferior_process): Declare. * solib.c (update_solib_list): Adjust. * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust. * inf-ptrace.c (inf_ptrace_detach): Adjust. (inf_ptrace_files_info): Get it from the current inferior. * inf-ttrace.c (inf_ttrace_attach): Adjust. (inf_ttrace_files_info): Get it from the current inferior. * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap) (clear_sigint_trap): Get it from the current process. * remote.c (extended_remote_attach_1) (extended_remote_create_inferior_1): Adjust. * top.c (quit_confirm, quit_target): Get it from the current inferior. * procfs.c (do_detach): Adjust. (procfs_wait): Get it from the event inferior. (procfs_files_info): Get it from the current inferior. * nto-procfs.c (procfs_files_info): Likewise. (procfs_attach): Adjust. Set the attach_flag here. (do_attach): Don't set it here. (procfs_detach): Don't clear it. (procfs_mourn_inferior): Don't clear it. * solib-osf.c (osf_solib_create_inferior_hook): Adjust. * target.c (attach_flag): Delete. (generic_mourn_inferior): Don't clear it. * win32-nat.c (get_win32_debug_event): Get it from the event process. (do_initial_win32_stuff): Add attaching argument. Set attach_flag in the inferior accordingly. (win32_attach): Don't set the attach_flag here. Pass 1 to do_intial_win32_stuff. (win32_files_info): Get it from the current inferior. (win32_create_inferior): Dont clear attach_flag here. Pass 0 to do_intial_win32_stuff.
2008-09-22 Make the stop_soon global be per-inferior instead.Pedro Alves15-42/+137
* infcmd.c (attach_command_post_wait): Adjust. (attach_command): Likewise. * inferior.h (stop_soon): Delete. (struct inferior): Add stop_soon member. * infrun.c (stop_soon): Delete. (clear_proceed_status, start_remote) (fetch_inferior_event, handle_inferior_event): Adjust. (signal_stop_state): Don't check stop_soon here. Check in callers instead. (save_inferior_status, restore_inferior_status): Adjust. * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass signals to common code if starting up the inferior. * inferior.h (struct inferior_info): Added stop_soon member. * inferior.c (add_inferior) Clear stop_soon. * mips-tdep.c (heuristic_proc_start): Adjust. * nto-procfs.c (procfs_create_inferior): Adjust. * solib-irix.c (irix_solib_create_inferior_hook): Adjust. * solib-osf.c (osf_solib_create_inferior_hook): Adjust. * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. * win32-nat.c (do_initial_win32_stuff): Adjust. * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
2008-09-22 Implement remote multi-process extensions.Pedro Alves5-118/+502
* remote.c (struct remote_state): Add extended and multi_process_aware fields. (remote_multi_process_p): New. (PACKET_vKill): New. (record_currthread): Use thread_change_ptid. Notice new inferiors. (set_thread, remote_thread_alive): Use write_ptid. (write_ptid, read_ptid): New. (remote_current_thread, remote_threads_extra_info): Use them. (remote_threads_info): Likewise. Detect new inferiors. (remote_start_remote): Add inferior to inferior list. (remote_multi_process_feature): New. (remote_protocol_features): Add "multiprocess" feature. (remote_query_supported): Pass "multiprocess+" as supported features. (remote_open_1): Clear multi_process_aware. Set extended accordingly. (remote_detach_1): Detach current process. Use extended packet format for extended-remote multi-process. Detach process from the inferior list. Only mourn after printing output. (extended_remote_attach_1): Add process to the inferior list. (remote_vcont_resume): Use write_ptid to pass the thread ids. (remote_wait): Use read_ptid. Implement the extended multi-process extension format of the 'W' and 'X' reply packets. Remove exited inferiors from inferior list. (remote_xfer_memory): Set general thread. (remote_vkill): New. (extended_remote_kill): New. (remote_mourn_1): Discard all inferiors. (select_new_thread_callback): New. (extended_remote_mourn_1): If there are more processes to debug, switch to a thread in another process, and don't pop the target. (extended_remote_create_inferior_1): Add the new process to the inferior list. (remote_stopped_by_watchpoint): Indenting. (remote_xfer_partial): Set the general thread. (remote_pid_to_str): If the remote is multi-process aware, print the process id as well as the thread id. (remote_get_thread_local_address): Use write_ptid. (init_extended_remote_ops): Register extended_remote_kill. (_initialize_remote): Register new packets. Change magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid member to 42000. * thread.c (thread_change_ptid): Also account for the inferior pid changing. * inferior.h (discard_all_inferiors): Declare. * inferior.c (discard_all_inferiors): New.