binutils-gdb.git
12 years agodaily update
Alan Modra [Mon, 30 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoCheck if -fpic -mtls-dialect=gnu2 works
H.J. Lu [Mon, 30 Jan 2012 21:13:30 +0000 (21:13 +0000)]
Check if -fpic -mtls-dialect=gnu2 works

2012-01-30  H.J. Lu  <hongjiu.lu@intel.com>

* configure.ac: Check if -fpic -mtls-dialect=gnu2 works.
* configure: Regenerated.

12 years ago PR breakpoints/13568:
Tom Tromey [Mon, 30 Jan 2012 20:10:32 +0000 (20:10 +0000)]
PR breakpoints/13568:
* dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
argument.  Check for recursive includes.
(dwarf_decode_macros): Create an include hash.

12 years agoSupport stepping through PPC PLT with securePLT.
Michael Eager [Mon, 30 Jan 2012 17:09:40 +0000 (17:09 +0000)]
Support stepping through PPC PLT with securePLT.

* configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
* ppc-linux-tdep.c: Include glibc-tdep.h.
(powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
(powerpc_linux_in_plt_stub): New function.
(powerpc_linux_in_dynsym_resolve_code): New function.
(ppc_skip_trampoline_code): New function.
(ppc_linux_init_abi): Use PPC specific functions rather than generic.
Use glibc_skip_solib_resolver.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 30 Jan 2012 06:48:08 +0000 (06:48 +0000)]
gdb/testsuite/
* gdb.base/valgrind-db-attach.exp (attach to debugger): Fix
compatibility with valgrind-3.7.0.

12 years ago*** empty log message ***
gdbadmin [Mon, 30 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 29 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 29 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 28 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/
Jan Kratochvil [Sat, 28 Jan 2012 18:08:22 +0000 (18:08 +0000)]
gdb/
Code cleanup: Make 1440 bytes of data segment read-only.
* arch-utils.c (endian_enum): Make it const char *const [].
* arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
Likewise.
* breakpoint.c (always_inserted_enums): Likewise.
* cli/cli-cmds.c (script_ext_enums): Likewise.
* cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
enumlist parameter const char *const *.
* cli/cli-decode.h (struct cmd_list_element): Make the enums field
const char *const *.
* command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
parameter const char *const *.
* cris-tdep.c (cris_modes): Make it const char *const [].
* filesystem.c (target_file_system_kinds): Likewise.
* i386-tdep.c (valid_flavors, valid_conventions): Likewise.
* infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
(can_use_displaced_stepping_enum, scheduler_enums)
(exec_direction_names): Likewise.
* language.c (_initialize_language): Make the type_or_range_names and
case_sensitive_names variables const char *const [].
* mips-tdep.c (mips_abi_strings): Make it const char *const [].
* python/python.c (python_excp_enums): Likewise.
* remote.c (interrupt_sequence_modes): Likewise.
* rs6000-tdep.c (powerpc_vector_strings): Likewise.
* serial.c (logbase_enums): Likewise.
* sh-tdep.c (sh_cc_enum): Likewise.
* stack.c (print_frame_arguments_choices, print_entry_values_choices):
Likewise.
* symtab.c (multiple_symbols_modes): Likewise.
* tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
Likewise.
* utils.c (internal_problem_modes): Likewise.

12 years ago * reloc.h (Bits): New class with static functions, copied from
Ian Lance Taylor [Sat, 28 Jan 2012 01:47:01 +0000 (01:47 +0000)]
* reloc.h (Bits): New class with static functions, copied from
namespace utils in arm.cc.
* arm.cc (namespace utils): Remove.  Rewrite all uses to use Bits
instead.

12 years agoUpdate copyright year.
Ian Lance Taylor [Sat, 28 Jan 2012 01:43:58 +0000 (01:43 +0000)]
Update copyright year.

12 years ago * mips.h: New file
Ian Lance Taylor [Sat, 28 Jan 2012 01:04:22 +0000 (01:04 +0000)]
* mips.h: New file
* elfcpp.h (SHT_MIPS_REGINFO): New enums for processor-specific flags.
(SHF_MIPS_GPREL): Likewise.
(PT_MIPS_REGINFO, PT_MIPS_RTPROC, PT_MIPS_OPTIONS): Likewise.
(DT_MIPS_RLD_VERSION, DT_MIPS_TIME_STAMP, DT_MIPS_ICHECKSUM,
 DT_MIPS_IVERSION, DT_MIPS_FLAGS, DT_MIPS_BASE_ADDRESS, DT_MIPS_MSYM,
 DT_MIPS_CONFLICT, DT_MIPS_LIBLIST, DT_MIPS_LOCAL_GOTNO,
 DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO, DT_MIPS_SYMTABNO,
 DT_MIPS_UNREFEXTNO, DT_MIPS_GOTSYM, DT_MIPS_HIPAGENO, DT_MIPS_RLD_MAP,
 DT_MIPS_DELTA_CLASS, DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE,
 DT_MIPS_DELTA_INSTANCE_NO, DT_MIPS_DELTA_RELOC, DT_MIPS_DELTA_RELOC_NO,
 DT_MIPS_DELTA_SYM, DT_MIPS_DELTA_SYM_NO, DT_MIPS_DELTA_CLASSSYM,
 DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_CXX_FLAGS, DT_MIPS_PIXIE_INIT,
 DT_MIPS_SYMBOL_LIB, DT_MIPS_LOCALPAGE_GOTIDX, DT_MIPS_LOCAL_GOTIDX,
 DT_MIPS_HIDDEN_GOTIDX, DT_MIPS_PROTECTED_GOTIDX, DT_MIPS_OPTIONS,
 DT_MIPS_INTERFACE, DT_MIPS_DYNSTR_ALIGN, DT_MIPS_INTERFACE_SIZE,
 DT_MIPS_RLD_TEXT_RESOLVE_ADDR, DT_MIPS_PERF_SUFFIX,
 DT_MIPS_COMPACT_SIZE, DT_MIPS_GP_VALUE, DT_MIPS_AUX_DYNAMIC,
 DT_MIPS_PLTGOT, DT_MIPS_RWPLT): Likewise.

12 years ago * elfcpp.h (STT_GNU_IFUNC): Add comment.
Ian Lance Taylor [Sat, 28 Jan 2012 00:59:27 +0000 (00:59 +0000)]
* elfcpp.h (STT_GNU_IFUNC): Add comment.

12 years agoCorrect incremental relocation offset
H.J. Lu [Sat, 28 Jan 2012 00:23:31 +0000 (00:23 +0000)]
Correct incremental relocation offset

2012-01-27  H.J. Lu  <hongjiu.lu@intel.com>

* incremental.cc (write_info_blocks): Correct relocation offset.

12 years ago*** empty log message ***
gdbadmin [Sat, 28 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoSupport x32 GD->IE and GD->LE optimizations
H.J. Lu [Fri, 27 Jan 2012 23:29:54 +0000 (23:29 +0000)]
Support x32 GD->IE and GD->LE optimizations

2012-01-27  H.J. Lu  <hongjiu.lu@intel.com>

* x86_64.cc (Relocate::tls_gd_to_ie): Support x32.
(Relocate::tls_gd_to_le): Likewise.

12 years agoSupport x32 IFUNC function pointer
H.J. Lu [Fri, 27 Jan 2012 23:26:55 +0000 (23:26 +0000)]
Support x32 IFUNC function pointer

2012-01-27  H.J. Lu  <hongjiu.lu@intel.com>

* x86_64.cc (Scan::global): Support x32 IFUNC function pointer.

12 years agoCheck if -mcmodel=medium works
H.J. Lu [Fri, 27 Jan 2012 23:23:37 +0000 (23:23 +0000)]
Check if -mcmodel=medium works

2012-01-27  H.J. Lu  <hongjiu.lu@intel.com>

* configure.ac: Check if -mcmodel=medium works.
* configure: Regenerated.

12 years agodaily update
Alan Modra [Fri, 27 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agogdb/
Jan Kratochvil [Fri, 27 Jan 2012 20:31:13 +0000 (20:31 +0000)]
gdb/
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.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 19:23:43 +0000 (19:23 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* 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.

12 years ago * configure.ac (with_python): Fix absolute path handling for win32.
Doug Evans [Fri, 27 Jan 2012 18:23:12 +0000 (18:23 +0000)]
* configure.ac (with_python): Fix absolute path handling for win32.
* configure: Regenerate.

12 years ago * bfd/elf32-microblaze.c (create_got_section):
Michael Eager [Fri, 27 Jan 2012 16:47:27 +0000 (16:47 +0000)]
* bfd/elf32-microblaze.c (create_got_section):
Reuse existing .rela.got section.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 14:01:23 +0000 (14:01 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* 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.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 14:00:41 +0000 (14:00 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp (test_no_hw_watchpoints): New, factored
out from the top level.
(top level): Call it instead.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:59:57 +0000 (13:59 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp (top level): Re-enable hardware
watchpoints sooner.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:59:21 +0000 (13:59 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp (top level): Delete watch ival3.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:58:46 +0000 (13:58 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp (test_watchpoint_in_big_blob): Expect
"You may have requested too many hardware
breakpoints/watchpoints".

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:58:11 +0000 (13:58 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* 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.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:56:56 +0000 (13:56 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp: Always run test_complex_watchpoint.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:55:58 +0000 (13:55 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp: Clean restart after tests that don't
require `initialize' anymore.  Remove unnecessary `initialize'
calls.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:54:52 +0000 (13:54 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp (wp_set): Delete.
(initialize, test_simple_watchpoint, top level): Remove dead code.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:54:03 +0000 (13:54 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp (test_inaccessible_watchpoint): Fix
typo.

12 years ago2012-01-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 27 Jan 2012 13:02:22 +0000 (13:02 +0000)]
2012-01-27  Pedro Alves  <palves@redhat.com>

* 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.

12 years ago * gdb.textinfo (Packets): Move vCont paragraph to the correct place.
Thomas Schwinge [Fri, 27 Jan 2012 09:22:59 +0000 (09:22 +0000)]
* gdb.textinfo (Packets): Move vCont paragraph to the correct place.

12 years ago*** empty log message ***
gdbadmin [Fri, 27 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * symtab.c: Whitespace cleanup, no code changes.
Doug Evans [Thu, 26 Jan 2012 23:41:54 +0000 (23:41 +0000)]
* symtab.c: Whitespace cleanup, no code changes.

12 years ago * symtab.c (lookup_symbol_in_language): Improve comment.
Doug Evans [Thu, 26 Jan 2012 23:22:23 +0000 (23:22 +0000)]
* symtab.c (lookup_symbol_in_language): Improve comment.
(lookup_symbol_aux): Fix comment.

12 years agodaily update
Alan Modra [Thu, 26 Jan 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years ago * dwarf2.h (enum dwarf_form): Add Fission extensions.
Cary Coutant [Thu, 26 Jan 2012 22:57:17 +0000 (22:57 +0000)]
* dwarf2.h (enum dwarf_form): Add Fission extensions.
(enum dwarf_attribute): Likewise.

12 years ago * psymtab.c (add_psymbol_to_list): Result is now "void".
Doug Evans [Thu, 26 Jan 2012 22:19:59 +0000 (22:19 +0000)]
* psymtab.c (add_psymbol_to_list): Result is now "void".
* psympriv.h (add_psymbol_to_list): Update.

12 years ago * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
Doug Evans [Thu, 26 Jan 2012 22:01:36 +0000 (22:01 +0000)]
* dwarf2read.c (add_partial_symbol): Delete local psym, unused.

12 years agogdb/
Jan Kratochvil [Thu, 26 Jan 2012 21:54:45 +0000 (21:54 +0000)]
gdb/
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.

12 years ago2012-01-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 26 Jan 2012 16:44:29 +0000 (16:44 +0000)]
2012-01-26  Pedro Alves  <palves@redhat.com>

* 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.

12 years ago PR gas/13624
Nick Clifton [Thu, 26 Jan 2012 14:56:49 +0000 (14:56 +0000)]
PR gas/13624
* app.c (app_push): Set 'add_newlines' to zero after saving.

12 years ago * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
Jakub Jelinek [Thu, 26 Jan 2012 14:28:31 +0000 (14:28 +0000)]
* make-relative-prefix.c (make_relative_prefix_1): Avoid warning
about using preprocessor directives inside of macro arguments.

12 years ago2012-01-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 26 Jan 2012 10:50:59 +0000 (10:50 +0000)]
2012-01-26  Pedro Alves  <palves@redhat.com>

* gdb.base/watchpoint.exp: Replace send_gdb/gdb_expect by gdb_test
and gdb_test_multiple.

12 years ago2012-01-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 26 Jan 2012 10:09:43 +0000 (10:09 +0000)]
2012-01-26  Pedro Alves  <palves@redhat.com>

Make test messages unique, and more identifiable.
* gdb.multi/watchpoint-multi.exp: Change test messages.

12 years ago PR binutils/13622
Nick Clifton [Thu, 26 Jan 2012 09:59:30 +0000 (09:59 +0000)]
PR binutils/13622
* readelf.c (process_section_groups): If there are no section
headers do not scan for section groups.
(process_note_sections): Likewise for note sections.

12 years agoRemove language param from name_matcher in struct quick_symbol_functions
Joel Brobecker [Thu, 26 Jan 2012 04:21:40 +0000 (04:21 +0000)]
Remove language param from name_matcher in struct quick_symbol_functions

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.

12 years agoAda: allow unqualified function names in linespecs
Joel Brobecker [Thu, 26 Jan 2012 04:20:36 +0000 (04:20 +0000)]
Ada: allow unqualified function names in linespecs

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.

12 years ago*** empty log message ***
gdbadmin [Thu, 26 Jan 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 25 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agogdb/gdbserver/
Jan Kratochvil [Wed, 25 Jan 2012 18:25:13 +0000 (18:25 +0000)]
gdb/gdbserver/
* 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.

12 years ago * gdb.base/solib-disc.exp: Fix regexps.
Tom Tromey [Wed, 25 Jan 2012 16:20:31 +0000 (16:20 +0000)]
* gdb.base/solib-disc.exp: Fix regexps.

12 years ago * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
Tom Tromey [Wed, 25 Jan 2012 15:57:04 +0000 (15:57 +0000)]
* breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
dereferencing.

12 years ago * int_encoding.cc (read_unsigned_LEB_128): Replaced with inline
Cary Coutant [Wed, 25 Jan 2012 07:34:55 +0000 (07:34 +0000)]
* int_encoding.cc (read_unsigned_LEB_128): Replaced with inline
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.

12 years ago* rl78-decode.opc (rl78_decode_opcode): Add NOT1.
DJ Delorie [Wed, 25 Jan 2012 01:40:11 +0000 (01:40 +0000)]
* rl78-decode.opc (rl78_decode_opcode): Add NOT1.
* rl78-decode.c: Regenerate.

* config/rl78-parse.y (NOT1): Add.

12 years ago*** empty log message ***
gdbadmin [Wed, 25 Jan 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 24 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago PR symtab/12406:
Tom Tromey [Tue, 24 Jan 2012 21:39:18 +0000 (21:39 +0000)]
PR symtab/12406:
* 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.

12 years ago * ada-lang.c: Include gdb_vecs.h.
Tom Tromey [Tue, 24 Jan 2012 21:36:37 +0000 (21:36 +0000)]
* ada-lang.c: Include gdb_vecs.h.
* charset.c: Include gdb_vecs.h.
* tracepoint.h: Include gdb_vecs.h.
* gdb_vecs.h: New file.

12 years ago2012-01-24 Pedro Alves <pedro@codesourcery.com>
Tom Tromey [Tue, 24 Jan 2012 21:32:56 +0000 (21:32 +0000)]
2012-01-24  Pedro Alves  <pedro@codesourcery.com>

* 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.

12 years ago2012-01-24 Pedro Alves <palves@redhat.com>
Tom Tromey [Tue, 24 Jan 2012 21:31:24 +0000 (21:31 +0000)]
2012-01-24  Pedro Alves  <palves@redhat.com>

* 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.

12 years agogdb/
Jan Kratochvil [Tue, 24 Jan 2012 20:56:33 +0000 (20:56 +0000)]
gdb/
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.

12 years agogdb/testsuite/
Jan Kratochvil [Tue, 24 Jan 2012 20:35:35 +0000 (20:35 +0000)]
gdb/testsuite/
Fix fuzzy results.
* gdb.mi/var-cmd.c (do_locals_tests): Initialize variables lsimple,
lpsimple and func.

12 years ago2012-01-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 24 Jan 2012 19:12:32 +0000 (19:12 +0000)]
2012-01-24  Pedro Alves  <palves@redhat.com>

* 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.

12 years agoChangeLog:
Gary Benson [Tue, 24 Jan 2012 15:13:30 +0000 (15:13 +0000)]
ChangeLog:
Delete #if 0'd out code.
* stack.c (print_frame_label_vars): Remove.
(catch_info): Likewise.
(_initialize_stack): Remove "info catch" command.
* NEWS: Mention the above.

doc/ChangeLog:
Delete #if 0'd out code.
* gdb.texinfo (Frame Info): Remove "info catch".

testsuite/ChangeLog:
Delete #if 0'd out code.
* gdb.base/default.exp (info catch): Remove.
* gdb.base/gdb_history (info catch): Likewise.
* gdb.base/help.exp (info catch): Likewise.

12 years ago2012-01-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 24 Jan 2012 14:19:03 +0000 (14:19 +0000)]
2012-01-24  Pedro Alves  <palves@redhat.com>

* remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
it.
(remote_notice_new_inferior): If the remote end doesn't support
the multiprocess extensions, then the PID is fake.
(add_current_inferior_and_thread): New.
(remote_start_remote): Use it.
(extended_remote_attach_1): Adjust.
(extended_remote_create_inferior_1): Use
add_current_inferior_and_thread.

12 years agogdb/
Jan Kratochvil [Tue, 24 Jan 2012 13:49:58 +0000 (13:49 +0000)]
gdb/
Fix watchpoints to be specific for each inferior.
* breakpoint.c (watchpoint_in_thread_scope): Verify also
current_program_space.
* i386-nat.c (i386_inferior_data_cleanup): New.
(i386_inferior_data_get): Replace variable inf_data_local by an
inferior_data call.
(i386_use_watchpoints): Initialize i386_inferior_data.
* linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
specific iterate_over_lwps.

gdb/testsuite/
Fix watchpoints to be specific for each inferior.
* gdb.multi/watchpoint-multi.c: New file.
* gdb.multi/watchpoint-multi.exp: New file.

12 years agogdb/
Jan Kratochvil [Tue, 24 Jan 2012 13:46:55 +0000 (13:46 +0000)]
gdb/
Fix watchpoints across inferior fork.
* amd64-linux-nat.c (update_debug_registers_callback): Update the
comment for linux_nat_iterate_watchpoint_lwps.
(amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
linux_nat_iterate_watchpoint_lwps.
(amd64_linux_prepare_to_resume): New comment on Linux kernel.
* i386-linux-nat.c (update_debug_registers_callback): Update the
comment for linux_nat_iterate_watchpoint_lwps.
(i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
linux_nat_iterate_watchpoint_lwps.
(i386_linux_prepare_to_resume): New comment on Linux kernel.
* i386-nat.c: Include inferior.h.
(dr_mirror): Remove.
(i386_inferior_data, struct i386_inferior_data)
(i386_inferior_data_get): New.
(i386_debug_reg_state): Use i386_inferior_data_get.
(i386_cleanup_dregs, i386_update_inferior_debug_regs)
(i386_insert_watchpoint, i386_remove_watchpoint)
(i386_stopped_data_address, i386_insert_hw_breakpoint)
(i386_remove_hw_breakpoint): New variable state, use
i386_debug_reg_state instead of DR_MIRROR.
* linux-nat.c (delete_lwp): New declaration.
(num_lwps): Move here from downwards.
(delete_lwp_cleanup): New.
(linux_child_follow_fork): Create new child_lp, call
linux_nat_new_thread and linux_nat_prepare_to_resume before calling
PTRACE_DETACH.
(num_lwps): Move upwards.
(linux_nat_iterate_watchpoint_lwps): New.
* linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
(linux_nat_iterate_watchpoint_lwps_ftype): New declaration.

gdb/testsuite/
Fix watchpoints across inferior fork.
* gdb.threads/watchpoint-fork-child.c: New file.
* gdb.threads/watchpoint-fork-mt.c: New file.
* gdb.threads/watchpoint-fork-parent.c: New file.
* gdb.threads/watchpoint-fork-st.c: New file.
* gdb.threads/watchpoint-fork.exp: New file.
* gdb.threads/watchpoint-fork.h: New file.

12 years agoGDB 7.4 released.
gdbadmin [Tue, 24 Jan 2012 11:35:39 +0000 (11:35 +0000)]
GDB 7.4 released.

12 years agoUse my google.com address.
Ian Lance Taylor [Tue, 24 Jan 2012 06:21:47 +0000 (06:21 +0000)]
Use my google.com address.

12 years ago PR gold/13617
Ian Lance Taylor [Tue, 24 Jan 2012 06:21:11 +0000 (06:21 +0000)]
PR gold/13617
* i386.cc (Target_i386::do_code_fill): When using a jmp
instruction, pad with nop instructions.
* x86_64.cc (Target_x86_64::do_code_fill): Likewise.

12 years agodaily update
Alan Modra [Tue, 24 Jan 2012 01:22:37 +0000 (01:22 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Tue, 24 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago* configure.tgt (i386-*-nacl*): Match it.
Roland McGrath [Mon, 23 Jan 2012 21:42:04 +0000 (21:42 +0000)]
* configure.tgt (i386-*-nacl*): Match it.
* config/te-nacl.h: New file.
* config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
* config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
Use TE_GNU et al case for TE_NACL too.

12 years ago2012-01-23 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 23 Jan 2012 17:12:30 +0000 (17:12 +0000)]
2012-01-23  Pedro Alves  <palves@redhat.com>

* top.c (caution): Rename to ...
(confirm): ... this.
(show_caution): Rename to ...
(show_confirm): ... this.
(quit_cover): Adjust.
(init_main): Adjust.
* top.h (caution): Rename to ...
(confirm): ... this.
* utils.c (internal_vproblem, defaulted_query): Adjust.

12 years agogdb/
Pedro Alves [Mon, 23 Jan 2012 17:11:50 +0000 (17:11 +0000)]
gdb/
2012-01-23  Pedro Alves  <palves@redhat.com>

* top.c (caution): Update comment.
(execute_command): Don't consider the current value of `caution'.

gdb/testsuite/
2012-01-23  Pedro Alves  <palves@redhat.com>

* gdb.base/call-signal-resume.exp: Allow output after "return".

12 years ago2012-01-23 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 23 Jan 2012 16:40:26 +0000 (16:40 +0000)]
2012-01-23  Pedro Alves  <palves@redhat.com>

* server.c (main): Avoid yet another case of infinite loop while
detaching/killing after a longjmp.

12 years agogdb/
Jan Kratochvil [Mon, 23 Jan 2012 16:37:03 +0000 (16:37 +0000)]
gdb/
* cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.

12 years ago * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
Ulrich Weigand [Mon, 23 Jan 2012 13:35:22 +0000 (13:35 +0000)]
* inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
* linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
* target.c (target_fileio_pwrite): Remove buffer address from
debug output.
(target_fileio_pread): Likewise.

12 years agomerge from gcc
DJ Delorie [Mon, 23 Jan 2012 07:01:21 +0000 (07:01 +0000)]
merge from gcc

12 years ago * elf-bfd.h: Formatting.
Alan Modra [Mon, 23 Jan 2012 06:16:38 +0000 (06:16 +0000)]
* elf-bfd.h: Formatting.
(struct elf_backend_data): Add "maybe_function_sym".
(_bfd_elf_maybe_function_sym): Declare.
* elfxx-target.h (elf_backend_maybe_function_sym): Define.
(elfNN_bed): Init new field.
* elf.c (elf_find_function): Use maybe_function_sym.
(_bfd_elf_maybe_function_sym): New function.
* elf64-ppc.c (elf_backend_maybe_function_sym): Define.
(ppc64_elf_maybe_function_sym): New function.

12 years ago*** empty log message ***
gdbadmin [Mon, 23 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 22 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 22 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 21 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 21 Jan 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 20 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agoAdd .d8 suffix support to x86 assembler
H.J. Lu [Fri, 20 Jan 2012 20:53:50 +0000 (20:53 +0000)]
Add .d8 suffix support to x86 assembler

gas/

2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (_i386_insn): Replace disp32_encoding with
disp_encoding.
(md_assemble): Updated.
(output_branch): Likewise.
(parse_insn): Support .d8 suffix.
(build_modrm_byte): Fake zero displacement for .d8 and .d32
suffixes.

* doc/c-i386.texi: Document .d8 suffix.

gas/testsuite/

2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/disp32.s: Add tests for .d8 suffix.
* gas/i386/x86-64-disp32.s: Likewise.

* gas/i386/disp32.d: Updated.
* gas/i386/x86-64-disp32.d: Likewise.

12 years agogdb/gdbserver/
Jan Kratochvil [Fri, 20 Jan 2012 20:02:25 +0000 (20:02 +0000)]
gdb/gdbserver/
Code cleanup.
* linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.

12 years ago2012-01-20 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 20 Jan 2012 20:00:14 +0000 (20:00 +0000)]
2012-01-20  Pedro Alves  <palves@redhat.com>

* gdb.python/py-finish-breakpoint.py: Fix typo.

12 years ago PR binutils/13534
Nick Clifton [Fri, 20 Jan 2012 14:42:57 +0000 (14:42 +0000)]
PR binutils/13534
* archive.c (_bfd_ar_sizepad): New function. Correctly install and
pad the size field in an archive header.
(_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
function for the archive size field.
(bfd_generic_openr_next_archived_file): Likewise.
(do_slurp_coff_armap): Likewise.
(_bfd_write_archive_contents): Likewise.
(_bfd_bsd44_write_ar_hdr): Use the new function.
(bfd_ar_hdr_from_filesystem): Likewise.
(_bfd_write_archive_contents): Likewise.
(bsd_write_armap): Likewise.
(coff_write_armap): Likewise.
* archive64.c (bfd_elf64_archive_write_armap): Likewise.
* bfdio.c (bfd_bread): Use correct type for archive element
sizes.
* ar.c (open_inarch): Likewise.
(extract_file): Likewise.
* libbfd-in.h (struct areltdata): Use correct types for
parsed_size and extra_size fields.
Prototype _bfd_ar_sizepad function.
* libbfd.h: Regenerate.

12 years ago2012-01-20 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 20 Jan 2012 10:40:53 +0000 (10:40 +0000)]
2012-01-20  Tristan Gingold  <gingold@adacore.com>

* od-macho.c (OPT_SEG_SPLIT_INFO): New macro.
(options): Add an entry for seg_split_info.
(mach_o_help): Document it.
(dump_segment_split_info): New function.
(dump_load_command): Handle seg_split_info.

12 years ago * NEWS: Document remote "info proc" and "generate-core-file".
Ulrich Weigand [Fri, 20 Jan 2012 10:31:26 +0000 (10:31 +0000)]
* NEWS: Document remote "info proc" and "generate-core-file".

12 years ago * gdbarch.sh (find_memory_regions): New callback.
Ulrich Weigand [Fri, 20 Jan 2012 09:59:15 +0000 (09:59 +0000)]
* gdbarch.sh (find_memory_regions): New callback.
* gdbarch.c, gdbarch.h: Regenerate.

* gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
callback before falling back to target method.

* linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
(linux_target_install_ops): No longer install it.

* linux-tdep.c (linux_find_memory_regions): New function.
(linux_init_abi): Install it.

12 years ago * gdbarch.sh (make_corefile_notes): New architecture callback.
Ulrich Weigand [Fri, 20 Jan 2012 09:56:56 +0000 (09:56 +0000)]
* gdbarch.sh (make_corefile_notes): New architecture callback.
* gdbarch.c: Regenerate.
* gdbarch.h: Likewise.

* gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
before target_make_corefile_notes.  If NULL is returned, the
target does not support core file generation.

* linux-nat.c: Include "linux-tdep.h".
(find_signalled_thread, find_stop_signal): Remove.
(linux_nat_do_thread_registers): Likewise.
(struct linux_nat_corefile_thread_data): Likewise.
(linux_nat_corefile_thread_callback): Likewise.
(iterate_over_spus): Likewise.
(struct linux_spu_corefile_data): Likewise.
(linux_spu_corefile_callback): Likewise.
(linux_spu_make_corefile_notes): Likewise.
(linux_nat_collect_thread_registers): New function.
(linux_nat_make_corefile_notes): Replace contents by call to
linux_make_corefile_notes passing linux_nat_collect_thread_registers
as native-only callback.

* linux-tdep.h: Include "bfd.h".
(struct regcache): Add forward declaration.
(linux_collect_thread_registers_ftype): New typedef.
(linux_make_corefile_notes): Add prototype.
* linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
"regset.h", and "elf-bfd.h".
(find_signalled_thread, find_stop_signal): New functions.
(linux_spu_make_corefile_notes): Likewise.
(linux_collect_thread_registers): Likewise.
(struct linux_corefile_thread_data): New data structure.
(linux_corefile_thread_callback): New funcion.
(linux_make_corefile_notes): Likewise.
(linux_make_corefile_notes_1): Likewise.
(linux_init_abi): Install it.

12 years ago * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
Ulrich Weigand [Fri, 20 Jan 2012 09:52:43 +0000 (09:52 +0000)]
* elf.c (elfcore_write_prpsinfo): Provide unconditionally.
Return NULL if core file generation is unsupported.
(elfcore_write_prstatus): Likewise.
* elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
(elf_backend_write_core_note): Define.