aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-27Check if -mcmodel=medium worksH.J. Lu3-2/+24
2012-01-27 H.J. Lu <hongjiu.lu@intel.com> * configure.ac: Check if -mcmodel=medium works. * configure: Regenerated.
2012-01-27daily updateAlan Modra1-1/+1
2012-01-27gdb/Jan Kratochvil2-1/+7
Fix the 2012-01-26 regression by la_get_symbol_name_match_p. * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P result.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves4-33/+26
* linux-low.c (linux_child_pid_to_exec_file): Delete. (elf_64_file_p): Make static. (linux_pid_exe_is_elf_64_file): New. * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): Delete declarations. (linux_pid_exe_is_elf_64_file): Declare. * linux-x86-low.c (x86_arch_setup): Use linux_pid_exe_is_elf_64_file.
2012-01-27 * configure.ac (with_python): Fix absolute path handling for win32.Doug Evans3-2/+7
* configure: Regenerate.
2012-01-27 * bfd/elf32-microblaze.c (create_got_section):Michael Eager2-1/+7
Reuse existing .rela.got section.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-11/+71
* gdb.base/watchpoint.exp (no_hw): New global. (maybe_clean_restart, maybe_reinitialize): If no_hw is set, disable hw watchpoints. (test_wide_location_1, test_wide_location_2): If no_hw is set, don't expect hw watchpoints. (no_hw_watchpoints): Always clean restart. (do_tests): New procedure, factored out from the top level. (top level): Run tests twice. Once with hw watchpoints enabled, another time with hw watchpoints disabled.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-36/+46
* gdb.base/watchpoint.exp (test_no_hw_watchpoints): New, factored out from the top level. (top level): Call it instead.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+10
* gdb.base/watchpoint.exp (top level): Re-enable hardware watchpoints sooner.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+6
* gdb.base/watchpoint.exp (top level): Delete watch ival3.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-2/+44
* gdb.base/watchpoint.exp (test_watchpoint_in_big_blob): Expect "You may have requested too many hardware breakpoints/watchpoints".
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-47/+49
* gdb.base/watchpoint.exp (maybe_clean_restart) (maybe_reinitialize): New. (test_disabling_watchpoints): Call maybe_reinitialize. Don't expect "hit N times". (test_disabling_watchpoints, test_complex_watchpoint) (test_watchpoint_and_breakpoint, test_inaccessible_watchpoint): Call maybe_clean_restart. (top level): Use clean_restart. Remove "mips-idt-*" reinitialization.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-7/+5
* gdb.base/watchpoint.exp: Always run test_complex_watchpoint.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-11/+10
* gdb.base/watchpoint.exp: Clean restart after tests that don't require `initialize' anymore. Remove unnecessary `initialize' calls.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-66/+8
* gdb.base/watchpoint.exp (wp_set): Delete. (initialize, test_simple_watchpoint, top level): Remove dead code.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+6
* gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Fix typo.
2012-01-272012-01-27 Pedro Alves <palves@redhat.com>Pedro Alves4-1/+217
* config/extended-gdbserver.exp: New file. * lib/gdbserver-support.exp (gdbserver_start_extended): Extend comment. (gdbserver_start_multi, mi_gdbserver_start_multi): New. * boards/native-extended-gdbserver.exp: New file.
2012-01-27 * gdb.textinfo (Packets): Move vCont paragraph to the correct place.Thomas Schwinge2-6/+10
2012-01-27*** empty log message ***gdbadmin1-1/+1
2012-01-26 * symtab.c: Whitespace cleanup, no code changes.Doug Evans2-1/+24
2012-01-26 * symtab.c (lookup_symbol_in_language): Improve comment.Doug Evans2-7/+8
(lookup_symbol_aux): Fix comment.
2012-01-26daily updateAlan Modra1-1/+1
2012-01-26 * dwarf2.h (enum dwarf_form): Add Fission extensions.Cary Coutant2-1/+17
(enum dwarf_attribute): Likewise.
2012-01-26 * psymtab.c (add_psymbol_to_list): Result is now "void".Doug Evans3-21/+11
* psympriv.h (add_psymbol_to_list): Update.
2012-01-26 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.Doug Evans2-1/+4
2012-01-26gdb/Jan Kratochvil6-40/+57
Do not open script filenames twice. * cli/cli-cmds.c (source_script_from_stream): Pass to source_python_script also STREAM. * python/py-auto-load.c (source_section_scripts): Pass to source_python_script_for_objfile also STREAM. (auto_load_objfile_script): Pass to source_python_script_for_objfile also INPUT. * python/python-internal.h (source_python_script_for_objfile): New parameter file, rename parameter file to filename. * python/python.c (python_run_simple_file): Call PyRun_SimpleFile instead if !_WIN32. Update the function comment. (source_python_script, source_python_script_for_objfile) (source_python_script): New parameter file, rename parameter file to filename. Pass FILENAME to python_run_simple_file. * python/python.h (source_python_script): New parameter file, rename parameter file to filename.
2012-01-262012-01-26 Pedro Alves <palves@redhat.com>Pedro Alves2-9/+21
* corelow.c (core_has_fake_pid): Delete. (core_close): Delete references to `core_has_fake_pid'. (add_to_thread_list): Adjust to mark the inferior's pid as fake. (core_open): Delete references to `core_has_fake_pid'. (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of the removed global.
2012-01-26 PR gas/13624Nick Clifton2-0/+6
* app.c (app_push): Set 'add_newlines' to zero after saving.
2012-01-26 * make-relative-prefix.c (make_relative_prefix_1): Avoid warningJakub Jelinek2-3/+9
about using preprocessor directives inside of macro arguments.
2012-01-262012-01-26 Pedro Alves <palves@redhat.com>Pedro Alves2-134/+77
* gdb.base/watchpoint.exp: Replace send_gdb/gdb_expect by gdb_test and gdb_test_multiple.
2012-01-262012-01-26 Pedro Alves <palves@redhat.com>Pedro Alves2-9/+20
Make test messages unique, and more identifiable. * gdb.multi/watchpoint-multi.exp: Change test messages.
2012-01-26 PR binutils/13622Nick Clifton2-2/+10
* readelf.c (process_section_groups): If there are no section headers do not scan for section groups. (process_note_sections): Likewise for note sections.
2012-01-26Remove language param from name_matcher in struct quick_symbol_functionsJoel Brobecker8-20/+27
The quick_symbol_functions struct contains a field which is pointer a function which takes another function, called name_matcher, as its parameter. This name_matcher currently has 3 arguments, one of them being the language. This parameter is no longer used, and thus deleted. gdb/ChangeLog: * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]: Remove language parameter from name_matcher. Adjust the comment. * symtab.c (search_symbols_name_matches, expand_partial_symbol_name): Remove language parameter. * ada-lang.c (ada_expand_partial_symbol_name): Likewise. * linespec.c (iterate_name_matcher): Likewise. * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of name_matcher. Adjust call accordingly. * psymtab.c (expand_symtabs_matching_via_partial): Likewise. (maintenance_check_symtabs): Adjust type of parameter "fun". * psymtab.h (maintenance_check_symtabs): Likewise.
2012-01-26Ada: allow unqualified function names in linespecsJoel Brobecker14-35/+86
This is the meat, where we replace the old la_symbol_name_compare language method with the new ada_get_symbol_name_match_p. It fixes the problem when trying to insert a breakpoint on "+". gdb/ChangeLog: * language.h (symbol_name_match_p_ftype): New typedef. (struct language_defn): Replace field la_symbol_name_compare by la_get_symbol_name_match_p. * ada-lang.c (ada_get_symbol_name_match_p): New function. (ada_language_defn): Use it. * linespec.c (struct symbol_matcher_data): New type. (iterate_name_matcher): Rewrite. (iterate_over_all_matching_symtabs): Pass a pointer to a symbol_matcher_data struct to expand_symtabs_matching instead of just the lookup name. * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c, language.c: Delete field la_symbol_name_compare, and replace by NULL for new field la_get_symbol_name_match_p. * symfile.h (struct quick_symbol_functions): Update comment.
2012-01-26*** empty log message ***gdbadmin1-1/+1
2012-01-25daily updateAlan Modra1-1/+1
2012-01-25gdb/gdbserver/Jan Kratochvil2-44/+34
* linux-low.c (linux_wait_for_event_1): Rename to ... (linux_wait_for_event): ... here and merge it with former linux_wait_for_event - new variable wait_ptid, use it. (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
2012-01-25 * gdb.base/solib-disc.exp: Fix regexps.Tom Tromey2-2/+6
2012-01-25 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' beforeTom Tromey2-1/+6
dereferencing.
2012-01-25 * int_encoding.cc (read_unsigned_LEB_128): Replaced with inlineCary Coutant6-20/+177
definition and ... (read_unsigned_LEB_128_x): ... this new function. (read_signed_LEB_128): Replaced with inline definition and ... (read_signed_LEB_128_x): ... this new function. * int_encoding.h (read_unsigned_LEB_128_x): New function. (read_unsigned_LEB_128): Add inline definition. (read_signed_LEB_128_x): New function. (read_signed_LEB_128): Add inline definition. * testsuite/Makefile.am (leb128_unittest): New unit test. * testsuite/Makefile.in: Regenerate. * testsuite/leb128_unittest.cc: New unit test.
2012-01-25* rl78-decode.opc (rl78_decode_opcode): Add NOT1.DJ Delorie4-1/+21
* rl78-decode.c: Regenerate. * config/rl78-parse.y (NOT1): Add.
2012-01-25*** empty log message ***gdbadmin1-1/+1
2012-01-24daily updateAlan Modra1-1/+1
2012-01-24 PR symtab/12406:Tom Tromey16-61/+714
* solib.c (update_solib_list): Update the program space's added_solibs and deleted_solibs fields. * progspace.h (struct program_space) <added_solibs, deleted_solibs>: New fields. (clear_program_space_solib_cache): Declare. * progspace.c (release_program_space): Call clear_program_space_solib_cache. (clear_program_space_solib_cache): New function. * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call bpstat_stop_status. Use handle_solib_event. * breakpoint.c: Include gdb_regex.h. (print_solib_event): New function. (bpstat_print): Use print_solib_event. (bpstat_stop_status): Add special case for bp_shlib_event. (handle_solib_event): New function. (bpstat_what): Use handle_solib_event. (struct solib_catchpoint): New. (dtor_catch_solib, insert_catch_solib, remove_catch_solib) (breakpoint_hit_catch_solib, check_status_catch_solib) (print_it_catch_solib, print_one_catch_solib) (print_mention_catch_solib, print_recreate_catch_solib): New functions. (catch_solib_breakpoint_ops): New global. (catch_load_or_unload, catch_load_command_1) (catch_unload_command_1): New functions. (internal_bkpt_check_status): Add special case for bp_shlib_event. (internal_bkpt_print_it): Use print_solib_event. (initialize_breakpoint_ops): Initialize catch_solib_breakpoint_ops. (_initialize_breakpoint): Register "catch load" and "catch unload". * breakpoint.h (handle_solib_event): Declare. * NEWS: Add entry for "catch load" and "catch unload". gdb/doc * gdb.texinfo (Set Catchpoints): Document "catch load" and "catch unload". (Files): Mention new catch commands. (GDB/MI Async Records): Likewise. gdb/testsuite * lib/mi-support.exp (mi_expect_stop): Add special case for solib-event. * gdb.base/catch-load-so.c: New file. * gdb.base/catch-load.exp: New file. * gdb.base/catch-load.c: New file. * gdb.base/break-interp.exp (reach_1): Update regexp.
2012-01-24 * ada-lang.c: Include gdb_vecs.h.Tom Tromey5-6/+38
* charset.c: Include gdb_vecs.h. * tracepoint.h: Include gdb_vecs.h. * gdb_vecs.h: New file.
2012-01-242012-01-24 Pedro Alves <pedro@codesourcery.com>Tom Tromey3-84/+31
* breakpoint.c (breakpoint_hit_catch_fork) (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall) (breakpoint_hit_catch_exec): Make use of the `ws' argument. * infrun.c (inferior_has_forked, inferior_has_vforked) (inferior_has_execd, inferior_has_called_syscall): Delete. (handle_syscall_event): Get syscall_number from the execution control state's wait status. (wait_for_inferior): Don't clear syscall_number.
2012-01-242012-01-24 Pedro Alves <palves@redhat.com>Tom Tromey4-27/+78
* breakpoint.c (bpstat_check_location, bpstat_stop_status, pc_at_non_inline_function): Add `ws' parameter, and pass it down. (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork) (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add `ws' parameter. (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return false for events other than TARGET_SIGNAL_TRAP. (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit): Add `ws' parameter. (bkpt_breakpoint_hit): Add `ws' parameter. Return false for events other than TARGET_SIGNAL_TRAP. (tracepoint_breakpoint_hit): Add `ws' parameter. * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws' parameter. (bpstat_stop_status): Same. (pc_at_non_inline_function): Same. * infrun.c (handle_syscall_event, handle_inferior_event): Adjust to pass the current event's waitstatus to bpstat_stop_status and pc_at_non_inline_function.
2012-01-24gdb/Jan Kratochvil3-8/+12
Code cleanup. * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM. Update the function comment for it. (source_script_with_search): Call make_cleanup_fclose for STREAM. * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose for STREAM.
2012-01-24gdb/testsuite/Jan Kratochvil2-3/+9
Fix fuzzy results. * gdb.mi/var-cmd.c (do_locals_tests): Initialize variables lsimple, lpsimple and func.
2012-01-242012-01-24 Pedro Alves <palves@redhat.com>Pedro Alves2-17/+29
* breakpoint.c (bpstat_stop_status): Moving clearing print_it outside `bs->stop' block. (bpstat_what): Rework bp_shlib_event handling. (internal_bkpt_check_status): If the breakpoint is a bp_shlib_event, then set bs->stop and bs->print if stop_on_solib_events is set.