Tristan Gingold [Wed, 1 Feb 2012 16:22:37 +0000 (16:22 +0000)]
Remove spurious conflict indicators.
OVS: ----------------------------------------------------------------------
Tristan Gingold [Wed, 1 Feb 2012 16:20:51 +0000 (16:20 +0000)]
2012-02-01 Tristan Gingold <gingold@adacore.com>
* libunwind-frame.c (libunwind_load): Display message if dlopen
failed.
Nick Clifton [Wed, 1 Feb 2012 16:13:55 +0000 (16:13 +0000)]
oops - accidentally omitted from previous delta.
Gary Benson [Wed, 1 Feb 2012 16:10:31 +0000 (16:10 +0000)]
2012-02-01 Gary Benson <gbenson@redhat.com>
* symtab.h (symbol_name_match_p_ftype): New typedef.
(iterate_over_symbols): Use the above.
* symtab.c (iterate_over_symbols): Likewise.
* language.h (language_defn->la_iterate_over_symbols): Likewise.
* ada-lang.c (ada_iterate_over_symbols): Likewise.
* linespec.c (iterate_over_all_matching_symtabs): Likewise.
(iterate_name_matcher): Document return values.
(collect_one_symbol): Likewise.
(collect_function_symbols): Likewise.
(collect_symbols): Likewise.
Tom Tromey [Wed, 1 Feb 2012 15:49:34 +0000 (15:49 +0000)]
* ada-lang.c (resolve_subexp): Update.
(ada_lookup_symbol_list): Add 'full_search' argument.
(ada_iterate_over_symbols): Pass 0 as full_search argument to
ada_lookup_symbol_list.
(ada_lookup_encoded_symbol): Update.
(get_var_value): Update.
* ada-exp.y (block_lookup): Update.
(write_var_or_type): Update.
(write_name_assoc): Update.
* ada-lang.h (ada_lookup_symbol_list): Update.
Nick Clifton [Wed, 1 Feb 2012 15:44:30 +0000 (15:44 +0000)]
PR binutils/13482
* readelf.c (process_corefile_note_segment): Fix off-by-one errors
verifying the contents of a note.
* binutils-all/version.s: New test source file.
* binutils-all/readelf.n: New file: expected readelf output.
* binutils-all/readelf.exp: Add test of .note section contents.
Joel Brobecker [Wed, 1 Feb 2012 10:54:07 +0000 (10:54 +0000)]
Fix build error in Darwin port.
gdb/ChangeLog:
From: Josh Matthews <josh@joshmatthews.net> (tiny change)
Fix build error in Darwin port.
* i386-darwin-nat.c: Include i386-nat.h.
gdbadmin [Wed, 1 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 31 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update
H.J. Lu [Tue, 31 Jan 2012 20:00:16 +0000 (20:00 +0000)]
Move ELF header entries to elf/ChangeLog
Tom Tromey [Tue, 31 Jan 2012 18:26:47 +0000 (18:26 +0000)]
* language.h (struct language_defn) <la_iterate_over_symbols>: Fix
comment.
Doug Evans [Tue, 31 Jan 2012 18:19:49 +0000 (18:19 +0000)]
* symtab.h: (SYMBOL_MATCHES_NATURAL_NAME): Delete.
H.J. Lu [Tue, 31 Jan 2012 17:54:39 +0000 (17:54 +0000)]
Support arch-dependent fill
bfd/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* archures.c (bfd_arch_info): Add fill.
(bfd_default_arch_struct): Add bfd_arch_default_fill.
(bfd_arch_default_fill): New.
* configure.in: Set bfd version to 2.22.52.
* configure: Regenerated.
* cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
initializer.
* cpu-arc.c: Likewise.
* cpu-arm.c: Likewise.
* cpu-avr.c: Likewise.
* cpu-bfin.c: Likewise.
* cpu-cr16.c: Likewise.
* cpu-cr16c.c: Likewise.
* cpu-cris.c: Likewise.
* cpu-crx.c: Likewise.
* cpu-d10v.c: Likewise.
* cpu-d30v.c: Likewise.
* cpu-dlx.c: Likewise.
* cpu-epiphany.c: Likewise.
* cpu-fr30.c: Likewise.
* cpu-frv.c: Likewise.
* cpu-h8300.c: Likewise.
* cpu-h8500.c: Likewise.
* cpu-hppa.c: Likewise.
* cpu-i370.c: Likewise.
* cpu-i860.c: Likewise.
* cpu-i960.c: Likewise.
* cpu-ia64.c: Likewise.
* cpu-ip2k.c: Likewise.
* cpu-iq2000.c: Likewise.
* cpu-lm32.c: Likewise.
* cpu-m10200.c: Likewise.
* cpu-m10300.c: Likewise.
* cpu-m32c.c: Likewise.
* cpu-m32r.c: Likewise.
* cpu-m68hc11.c: Likewise.
* cpu-m68hc12.c: Likewise.
* cpu-m68k.c: Likewise.
* cpu-m88k.c: Likewise.
* cpu-mcore.c: Likewise.
* cpu-mep.c: Likewise.
* cpu-microblaze.c: Likewise.
* cpu-mips.c: Likewise.
* cpu-mmix.c: Likewise.
* cpu-moxie.c: Likewise.
* cpu-msp430.c: Likewise.
* cpu-mt.c: Likewise.
* cpu-ns32k.c: Likewise.
* cpu-openrisc.c: Likewise.
* cpu-or32.c: Likewise.
* cpu-pdp11.c: Likewise.
* cpu-pj.c: Likewise.
* cpu-plugin.c: Likewise.
* cpu-powerpc.c: Likewise.
* cpu-rl78.c: Likewise.
* cpu-rs6000.c: Likewise.
* cpu-rx.c: Likewise.
* cpu-s390.c: Likewise.
* cpu-score.c: Likewise.
* cpu-sh.c: Likewise.
* cpu-sparc.c: Likewise.
* cpu-spu.c: Likewise.
* cpu-tic30.c: Likewise.
* cpu-tic4x.c: Likewise.
* cpu-tic54x.c: Likewise.
* cpu-tic6x.c: Likewise.
* cpu-tic80.c: Likewise.
* cpu-tilegx.c: Likewise.
* cpu-tilepro.c: Likewise.
* cpu-v850.c: Likewise.
* cpu-vax.c: Likewise.
* cpu-w65.c: Likewise.
* cpu-we32k.c: Likewise.
* cpu-xc16x.c: Likewise.
* cpu-xstormy16.c: Likewise.
* cpu-xtensa.c: Likewise.
* cpu-z80.c: Likewise.
* cpu-z8k.c: Likewise.
* cpu-i386.c: Include "libiberty.h".
(bfd_arch_i386_fill): New.
Add bfd_arch_i386_fill to bfd_arch_info initializer.
* cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
* cpu-l1om.c: Likewise.
* linker.c (default_data_link_order): Call abfd->arch_info->fill
if fill size is 0.
* bfd-in2.h: Regenerated.
include/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* bfdlink.h (bfd_link_order): Update comments on data size.
ld/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* emulparams/elf32_x86_64.sh: Remove NOP.
* emulparams/elf_i386.sh: Likewise.
* emulparams/elf_i386_be.sh: Likewise.
* emulparams/elf_i386_ldso.sh: Likewise.
* emulparams/elf_i386_vxworks.sh: Likewise.
* emulparams/elf_k1om.sh: Likewise.
* emulparams/elf_l1om.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.
* ldlang.c (zero_fill): Initialized to 0.
* ldwrite.c (build_link_order): Set data size to linker odrder
size when they are the same.
* scripttempl/elf.sc: Don't specify fill if NOP is undefined.
ld/testsuite/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* ld-i386/tlsbindesc.dd: Update no-op padding.
* ld-i386/tlsnopic.dd: Likewise.
* ld-i386/tlspic.dd: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
Doug Evans [Tue, 31 Jan 2012 17:48:41 +0000 (17:48 +0000)]
* symtab.h: Remove outdated comment.
(SYMBOL_MATCHES_NATURAL_NAME): Tweak comment.
Paul Brook [Tue, 31 Jan 2012 15:01:56 +0000 (15:01 +0000)]
2012-01-31 Paul Brook <paul@codesourcery.com>
gas/
* doc/c-tic6x.c: Fix typo.
DJ Delorie [Tue, 31 Jan 2012 00:22:52 +0000 (00:22 +0000)]
* rl78-decode.opc (rl78_decode_opcode): Add NOT1.
* rl78-decode.c: Regenerate.
* config/rl78-parse.y (NOT1): Add.
Yao Qi [Tue, 31 Jan 2012 00:10:58 +0000 (00:10 +0000)]
gdb/testsuite/
* gdb.base/skip.exp: Make test result unique.
gdbadmin [Tue, 31 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 30 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update
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.
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.
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.
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.
gdbadmin [Mon, 30 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 29 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 29 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 28 Jan 2012 23:00:05 +0000 (23:00 +0000)]
daily update
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.
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.
Ian Lance Taylor [Sat, 28 Jan 2012 01:43:58 +0000 (01:43 +0000)]
Update copyright year.
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.
Ian Lance Taylor [Sat, 28 Jan 2012 00:59:27 +0000 (00:59 +0000)]
* elfcpp.h (STT_GNU_IFUNC): Add comment.
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.
gdbadmin [Sat, 28 Jan 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
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.
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.
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.
Alan Modra [Fri, 27 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update
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.
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.
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.
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.
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.
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.
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.
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.
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".
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.
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.
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.
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.
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.
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.
Thomas Schwinge [Fri, 27 Jan 2012 09:22:59 +0000 (09:22 +0000)]
* gdb.textinfo (Packets): Move vCont paragraph to the correct place.
gdbadmin [Fri, 27 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Doug Evans [Thu, 26 Jan 2012 23:41:54 +0000 (23:41 +0000)]
* symtab.c: Whitespace cleanup, no code changes.
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.
Alan Modra [Thu, 26 Jan 2012 23:00:04 +0000 (23:00 +0000)]
daily update
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.
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.
Doug Evans [Thu, 26 Jan 2012 22:01:36 +0000 (22:01 +0000)]
* dwarf2read.c (add_partial_symbol): Delete local psym, unused.
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.
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.
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.
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.
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.
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.
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.
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.
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.
gdbadmin [Thu, 26 Jan 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 25 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update
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.
Tom Tromey [Wed, 25 Jan 2012 16:20:31 +0000 (16:20 +0000)]
* gdb.base/solib-disc.exp: Fix regexps.
Tom Tromey [Wed, 25 Jan 2012 15:57:04 +0000 (15:57 +0000)]
* breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
dereferencing.
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.
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.
gdbadmin [Wed, 25 Jan 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 24 Jan 2012 23:00:06 +0000 (23:00 +0000)]
daily update
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
gdbadmin [Tue, 24 Jan 2012 11:35:39 +0000 (11:35 +0000)]
GDB 7.4 released.
Ian Lance Taylor [Tue, 24 Jan 2012 06:21:47 +0000 (06:21 +0000)]
Use my google.com address.
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.
Alan Modra [Tue, 24 Jan 2012 01:22:37 +0000 (01:22 +0000)]
daily update
gdbadmin [Tue, 24 Jan 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
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.
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.
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".
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.
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.