deliverable/binutils-gdb.git
11 years agogdb/
Yao Qi [Mon, 26 Nov 2012 13:26:57 +0000 (13:26 +0000)] 
gdb/
2012-11-26  Yao Qi  <yao@codesourcery.com>

* f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
extraneous parentheses.

11 years agogdb/
Yao Qi [Mon, 26 Nov 2012 13:19:18 +0000 (13:19 +0000)] 
gdb/
2012-11-26  Yao Qi  <yao@codesourcery.com>

* remote.c (remote_start_remote): Typo fix.

11 years ago*** empty log message ***
gdbadmin [Mon, 26 Nov 2012 00:00:37 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Sun, 25 Nov 2012 23:00:05 +0000 (23:00 +0000)] 
daily update

11 years ago*** empty log message ***
gdbadmin [Sun, 25 Nov 2012 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Sat, 24 Nov 2012 23:00:04 +0000 (23:00 +0000)] 
daily update

11 years ago*** empty log message ***
gdbadmin [Sat, 24 Nov 2012 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Fri, 23 Nov 2012 23:00:05 +0000 (23:00 +0000)] 
daily update

11 years agoFix Sparc %fsr regset offset for BSD and Linux.
David S. Miller [Fri, 23 Nov 2012 20:30:23 +0000 (20:30 +0000)] 
Fix Sparc %fsr regset offset for BSD and Linux.

gdb/

* sparc-tdep.h (struct sparc_fpregset): New data structure.
(sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
sparc32_sol2_fpregset): Declare new globals.
(sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
'fpregset' argument.
* sparc64-tdep.h (sparc64_supply_fpregset,
sparc64_collect_fpregset): Likewise.
(sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
globals.
* sparc-nat.h (struct sparc_fpregset): Add forward declaration.
(sparc_fpregset): Declare new global.
(sparc_supply_fpregset, sparc_collect_fpregset): Add new
'fpregset' argument.
* sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
into handler.
(fill_fpregset): Likewise.
(_initialize_sparc_linux_nat): Set sparc_fpregset to
sparc32_bsd_fpregset.
* sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
sparc32_bsd_fpregset down into handler.
(sparc32_linux_collect_core_fpregset): Likewise.
* sparc-nat.c (sparc_fpregset): Define.
(sparc_supply_fpregset): Add 'fpregset' argument.
(sparc_collect_fpregset): Likewise.
(sparc_fetch_inferior_registers): Pass sparc_fpregset down
into fpregset handler.
(sparc_store_inferior_registers): Likewise.
(_initialize_sparc_nat): Set sparc_fpregset to
sparc32_sunos4_fpregset if NULL.
* sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
down into handler.
(fill_fpregset): Likewise.
* sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
* sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
use it to compute offsets.
(sparc32_collect_fpregset): Likewise.
(sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
* sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
down into handler.
(fill_fpregset): Likewise.
* sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
Likewise.
(sparc64_linux_collect_core_fpregset): Likewise.
* sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
* sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
use it to compute offsets.
(sparc64_collect_fpregset): Likewise.
(sparc64_bsd_fpregset): Define.
* sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
sparc64_bsd_fpregset down into handler.
(sparc64fbsd_collect_fpregset): Likewise.
* sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
and pass sparc{32,64}_bsd_fpregset down into handler.
(sparc64nbsd_collect_fpregset): Likewise.
* sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
sparc64_bsd_fpregset down into handler.
* sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
* sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
to sparc32_bsd_fpregset.
* sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
sparc32_bsd_fpregset down into sparc32_supply_fpregset.
(sparc32nbsd_supply_fpregset): Likewise.

11 years agoinclude/opcode/
Alan Modra [Fri, 23 Nov 2012 03:28:13 +0000 (03:28 +0000)] 
include/opcode/
* ppc.h (ppc_parse_cpu): Update prototype.
opcodes/
* ppc-dis.c (ppc_parse_cpu): Add "sticky" param.  Track bits
set from ppc_opts.sticky in it.  Delete "retain_mask".
(powerpc_init_dialect): Choose default dialect from info->mach
before parsing -M options.  Handle more bfd_mach_ppc variants.
Update common default to power7.
gas/
* config/tc-ppc.c (sticky): New var.
(md_parse_option, ppc_machine): Update ppc_parse_cpu calls.
gas/testsuite/
* gas/ppc/astest2.d: Pass -Mppc to objdump.
ld/testsuite/
* ld-powerpc/plt1.d: Update for default "at" branch hints.
* ld-powerpc/tlsexe.d: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsopt1.d: Likewise.
* ld-powerpc/tlsopt1_32.d: Likewise.
* ld-powerpc/tlsopt2.d: Likewise.
* ld-powerpc/tlsopt2_32.d: Likewise.
* ld-powerpc/tlsopt4.d: Likewise.
* ld-powerpc/tlsopt4_32.d: Likewise.
* ld-powerpc/tlsso.d: Likewise.
* ld-powerpc/tlstocso.d: Likewise.

11 years ago*** empty log message ***
gdbadmin [Fri, 23 Nov 2012 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Thu, 22 Nov 2012 23:00:04 +0000 (23:00 +0000)] 
daily update

11 years ago*** empty log message ***
gdbadmin [Thu, 22 Nov 2012 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Wed, 21 Nov 2012 23:00:04 +0000 (23:00 +0000)] 
daily update

11 years agoSet output maxpagesize when rewriting program header
H.J. Lu [Wed, 21 Nov 2012 21:31:18 +0000 (21:31 +0000)] 
Set output maxpagesize when rewriting program header

bfd/

PR binutils/14493
* elf.c (copy_elf_program_header): When rewriting program
header, set the output maxpagesize to the maximum alignment
of input PT_LOAD segments.

2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/14493
* ld-elf/maxpage5.d: New file.
* ld-elf/maxpage5.s: Likewise.
* ld-elf/maxpage5.t: Likewise.

11 years agobfd/
Roland McGrath [Wed, 21 Nov 2012 20:13:04 +0000 (20:13 +0000)] 
bfd/
* elf-nacl.c (segment_nonexecutable_and_has_contents): Renamed to ...
(segment_eligible_for_headers): ... this.  Take new arguments
MAXPAGESIZE and SIZEOF_HEADERS.  Return false if the first section's
start address doesn't leave space for the headers.
(nacl_modify_segment_map): Update caller.

11 years agold/
Roland McGrath [Wed, 21 Nov 2012 19:56:38 +0000 (19:56 +0000)] 
ld/
* ld.h (ld_config_type): New flag member separate_code.
* emultempl/elf32.em
(gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE.
* ldlang.c (ldlang_override_segment_assignment): If it's set, then
always return TRUE when SEC_CODE differs between the sections.

11 years ago* ld-elf/comm-data.exp: Add XFAIL for arm*-*-* targets, referring
Roland McGrath [Wed, 21 Nov 2012 19:31:24 +0000 (19:31 +0000)] 
* ld-elf/comm-data.exp: Add XFAIL for arm*-*-* targets, referring
to PR ld/13802.

11 years ago * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
Tom Tromey [Wed, 21 Nov 2012 18:07:17 +0000 (18:07 +0000)] 
* gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
field.
(TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
Remove.
* c-typeprint.c (c_type_print_base): Update.

11 years agoAdd swap byte (swapb) and swap halfword (swaph) opcodes.
Michael Eager [Wed, 21 Nov 2012 17:54:11 +0000 (17:54 +0000)] 
Add swap byte (swapb) and swap halfword (swaph) opcodes.

binutils/opcodes
          * microblaze-opc.h (op_code_struct): Add swapb, swaph Increase MAX_OPCODES.
          * microblaze-opcm.h (microblaze_instr): Likewise
binutils/gas/testsuite
          * gas/microblaze/allinsn.s: Add swapb, swaph
          * gas/microblaze/allinsn.d: Likewise

11 years agoAdd stack high register and stack low register for MicroBlaze
Michael Eager [Wed, 21 Nov 2012 17:34:14 +0000 (17:34 +0000)] 
Add stack high register and stack low register for MicroBlaze
hardware assisted stack protection, stores stack low / stack high limits
for detecting stack overflow / underflow

binutils/opcodes
          * microblaze-opcm.h: Add REG_SLR_MASK, REG_SHR_MASK, REG_SHR and REG_SLR
          * microblaze-dis.c (get_field_special): Handle REG_SLR_MASK and REG_SHR_MASK
binutils/gas
          * config/tc-microblaze.c (parse_reg): Parse REG_SLR, REG_SHR
binutils/gas
          * gas/microblaze/allinsn.s: Test use of SHR, SLR
          * gas/microblaze/allinsn.d: Likewise

11 years agoRevert previous change to i386-tdep.c.
Pedro Alves [Wed, 21 Nov 2012 14:09:10 +0000 (14:09 +0000)] 
Revert previous change to i386-tdep.c.

11 years agoRun more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu
H.J. Lu [Wed, 21 Nov 2012 13:53:23 +0000 (13:53 +0000)] 
Run more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu

* ld-elf/discard1.d: Run on x86_64-*-linux-gnu*.
* ld-elf/discard2.d: Likewise.
* ld-elf/discard3.d: Likewise.
* ld-elf/eh6.d: Likewise.
* ld-elf/maxpage3c.d: Run on i?86-*-linux-gnu.
* ld-elf/maxpage4.d: Likewise.

11 years agoAdded forgotton ChangeLog for previous fix i.e. breakpoint not set properly in case...
Karthik Bhat [Wed, 21 Nov 2012 08:02:13 +0000 (08:02 +0000)] 
Added forgotton ChangeLog for previous fix i.e. breakpoint not set properly  in case of clang compiled binary commit

11 years agoFix for incorrect breakpoint set in case of clang compiled binary
Karthik Bhat [Wed, 21 Nov 2012 07:39:02 +0000 (07:39 +0000)] 
Fix for incorrect breakpoint set in case of clang compiled binary

11 years agogdb/
Yao Qi [Wed, 21 Nov 2012 00:29:55 +0000 (00:29 +0000)] 
gdb/
2012-11-21  Yao Qi  <yao@codesourcery.com>

PR tdep/7438
* gdbarch.sh (smash_text_address): Remove.
* gdbarch.c, gdbarch.h: Regenerate.
* arm-tdep.c (arm_smash_text_address): Remove.
(arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
* hppa-tdep.c (hppa_smash_text_address): Remove.
(hppa_addr_bits_remove): Rename from hppa_smash_text_address.
(hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
Caller update.
* coffread.c (coff_symtab_read): Caller update.
* dbxread.c (process_one_symbol): Likewise.
* elfread.c (record_minimal_symbol): Likewise.
* somread.c (som_symtab_read): Likewise.

11 years ago*** empty log message ***
gdbadmin [Wed, 21 Nov 2012 00:00:36 +0000 (00:00 +0000)] 
*** empty log message ***

11 years ago Add forgotten ChangeLog for previous ARI fixes commit
Pierre Muller [Tue, 20 Nov 2012 23:02:29 +0000 (23:02 +0000)] 
 Add forgotten ChangeLog for previous ARI fixes commit

11 years agodaily update
Alan Modra [Tue, 20 Nov 2012 23:00:03 +0000 (23:00 +0000)] 
daily update

11 years ago ARI fixes: sprintf rule.
Pierre Muller [Tue, 20 Nov 2012 22:51:05 +0000 (22:51 +0000)] 
ARI fixes: sprintf rule.
Replace sprintf function calls for char arrays by
calls to xsnprintf calls.
* arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
(arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
(arm_neon_quad_read, arm_pseudo_read): Ditto.
(arm_neon_quad_write, arm_pseudo_write): Ditto.
* breakpoint.c (condition_completer): Ditto.
(create_tracepoint_from_upload): Ditto.
* dwarf2read.c (file_full_name): Ditto.
* gcore.c (gcore_command): Ditto.
* gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
* go32-nat.c (go32_sysinfo): Ditto.
* interps.c (interp_set): Ditto.
* m32c-tdep.c (make_types): Ditto.
* ppc-linux-nat.c (fetch_register, store_register): Ditto.
* remote-m32r-sdi.c (m32r_open): Ditto.
* sol-thread.c (td_err_string): Ditto.
(td_state_string, solaris_pid_to_str): Ditto.
* symtab.c (gdb_mangle_name): Ditto.
* cli/cli-script.c (execute_control_command): Ditto.
(define_command, document_command): Ditto.
* tui/tui-io.c (tui_rl_display_match_list): Ditto.
* tui/tui-stack.c (tui_make_status_line): Ditto.
* tui/tui-win.c (tui_update_gdb_sizes): Ditto.

11 years agoRemove ref_dynamic_nonweak added by accident
H.J. Lu [Tue, 20 Nov 2012 22:17:27 +0000 (22:17 +0000)] 
Remove ref_dynamic_nonweak added by accident

bfd/

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

PR ld/14862
* elf-bfd.h (elf_link_hash_entry): Remove ref_dynamic_nonweak
added by accident.
(elf_link_add_object_symbols): Don't set nor check
ref_dynamic_nonweak.

ld/testsuite/

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

PR ld/14862
* ld-elf/shared.exp (build_tests): Build libpr14862-1.o and
libpr14862.so.
(run_tests): Test pr14862.

* ld-elf/pr14862-1.c: New file.
* ld-elf/pr14862-2.c: Likewise.
* ld-elf/pr14862.map: Likewise.
* ld-elf/pr14862.out: Likewise.

11 years agoImplement ELF linker -z global option
H.J. Lu [Tue, 20 Nov 2012 22:16:05 +0000 (22:16 +0000)] 
Implement ELF linker -z global option

ld/

* ld.texinfo: Document "-z global".

* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support
"-z global".
(gld${EMULATION_NAME}_list_options): Likewise.

ld/testsuite/

* ld-elf/global1.d: New file.

11 years agogdb: include help aliases in help command completion
Mike Frysinger [Tue, 20 Nov 2012 21:02:36 +0000 (21:02 +0000)] 
gdb: include help aliases in help command completion

There are a bunch of aliases that get used with help, but the current
command completion logic does not include those when doing completions.

Since the framework is already mostly in place, extend complete_on_cmdlist
slightly to pass down the ignore_help_classes flag like is done with the
existing lookup command logic.

Now you can do:
(gdb) help use<tab>
and get back:
(gdb) help user-defined

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years ago * completer.c (count_struct_fields): Remove.
Tom Tromey [Tue, 20 Nov 2012 18:18:39 +0000 (18:18 +0000)] 
* completer.c (count_struct_fields): Remove.
(expression_completer): Don't call count_struct_fields.

11 years agogas/
Roland McGrath [Tue, 20 Nov 2012 17:53:46 +0000 (17:53 +0000)] 
gas/
* config/tc-arm.c (arm_symbol_chars): New variable.
* config/tc-arm.h (tc_symbol_chars): New macro, defined to that.

gas/testsuite/
* gas/arm/macro-pld.s: New file.
* gas/arm/macro-pld.d: New file.

11 years ago2012-11-20 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 20 Nov 2012 17:49:02 +0000 (17:49 +0000)] 
2012-11-20  Pedro Alves  <palves@redhat.com>

* annotate.c (breakpoints_changed): Rename to ...
(annotate_breakpoints_changed): ... this.
(annotate_stopped, breakpoint_changed): Adjust caller.
* annotate.h (breakpoints_changed): Rename to ...
(annotate_breakpoints_changed): ... this.
* breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
(do_map_commands_command, init_raw_breakpoint, clear_command)
(set_ignore_count, enable_breakpoint_disp): Adjust callers.

11 years agoFix 'info os' crashes on sparc.
David S. Miller [Tue, 20 Nov 2012 17:40:28 +0000 (17:40 +0000)] 
Fix 'info os' crashes on sparc.

* common/linux-osdata.c (get_number_of_cpu_cores): Delete.
(linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
sysconf.
(get_cores_used_by_process): Update comment.

11 years agoFix sim build when configured with --enable-plugins
H.J. Lu [Tue, 20 Nov 2012 14:41:26 +0000 (14:41 +0000)] 
Fix sim build when configured with --enable-plugins

* common/Make-common.in: Use lt_cv_dlopen_libs under PLUGINS
condition.
* common/acinclude.m4: Define lt_cv_dlopen_libs.
* arm/configure: Regenerate.
* avr/configure: Regenerate.
* bfin/configure: Regenerate.
* common/configure: Regenerate.
* cr16/configure: Regenerate.
* cris/configure: Regenerate.
* d10v/configure: Regenerate.
* erc32/configure: Regenerate.
* frv/configure: Regenerate.
* h8300/configure: Regenerate.
* igen/configure: Regenerate.
* iq2000/configure: Regenerate.
* lm32/configure: Regenerate.
* m32c/configure: Regenerate.
* m32r/configure: Regenerate.
* m68hc11/configure: Regenerate.
* mcore/configure: Regenerate.
* microblaze/configure: Regenerate.
* mips/configure: Regenerate.
* mn10300/configure: Regenerate.
* moxie/configure: Regenerate.
* ppc/configure: Regenerate.
* rl78/configure: Regenerate.
* rx/configure: Regenerate.
* sh/configure: Regenerate.
* sh64/configure: Regenerate.
* testsuite/configure: Regenerate.
* v850/configure: Regenerate.

11 years agoFix opcode for 64-bit jecxz
H.J. Lu [Tue, 20 Nov 2012 14:21:33 +0000 (14:21 +0000)] 
Fix opcode for 64-bit jecxz

gas/testsuite/

PR gas/14859
* gas/i386/x86-64-opcode.s: Add jecxz.
* gas/i386/x86-64-opcode.d: Updated.

opcodes/

PR gas/14859
* i386-opc.tbl: Fix opcode for 64-bit jecxz.
* i386-tbl.h: Regenerated.

11 years ago2012-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Tue, 20 Nov 2012 11:58:30 +0000 (11:58 +0000)] 
2012-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-opc.txt: Fix srstu and strag opcodes.

2012-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/zarch-z9-109.d: Fix srstu opcode.
* gas/s390/zarch-z900.d: Replace lasp with strag.

11 years agogas/ChangeLog
Yufeng Zhang [Tue, 20 Nov 2012 10:29:00 +0000 (10:29 +0000)] 
gas/ChangeLog

2012-11-20  Yufeng Zhang  <yufeng.zhang@arm.com>

* config/tc-aarch64.c (first_error_fmt): Add ATTRIBUTE_UNUSED to the
local variable "ret".

11 years agoFix sparc bitness overrides in GAS. Noticed by Eric Botcazou.
David S. Miller [Tue, 20 Nov 2012 08:37:52 +0000 (08:37 +0000)] 
Fix sparc bitness overrides in GAS.  Noticed by Eric Botcazou.

gas/

* config/tc-sparc.c (md_parse_option): Only certain arch
specifications should override the object to be 32-bit
or 64-bit.

11 years agogdb/
Yao Qi [Tue, 20 Nov 2012 06:47:25 +0000 (06:47 +0000)] 
gdb/
2012-11-20  Yao Qi  <yao@codesourcery.com>

* objfiles.c (init_entry_point_info): Remove trailing spaces.

11 years agoFix TLS to LE optimization for x32
H.J. Lu [Tue, 20 Nov 2012 05:56:06 +0000 (05:56 +0000)] 
Fix TLS to LE optimization for x32

PR gold/14858
* x86_64.cc (Relocate::tls_ld_to_le): Support x32.

11 years agogdb/
Yao Qi [Tue, 20 Nov 2012 03:10:24 +0000 (03:10 +0000)] 
gdb/
2012-11-20  Yao Qi  <yao@codesourcery.com>

* infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
to deprecated_context_hook.

11 years agogdb/testsuite/
Yao Qi [Tue, 20 Nov 2012 02:55:10 +0000 (02:55 +0000)] 
gdb/testsuite/
2012-11-20  Yao Qi  <yao@codesourcery.com>

* gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
Don't test 'maint set show-debug-regs'.
Use command 'set remotecache' instead of
'set circular-trace-buffer'.

11 years ago * elf32-rx.c (rx_elf_print_private_bfd_data): Warning fix.
Alan Modra [Tue, 20 Nov 2012 01:40:00 +0000 (01:40 +0000)] 
* elf32-rx.c (rx_elf_print_private_bfd_data): Warning fix.

11 years ago*** empty log message ***
gdbadmin [Tue, 20 Nov 2012 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Mon, 19 Nov 2012 23:00:03 +0000 (23:00 +0000)] 
daily update

11 years ago2012-11-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
Jan-Benedict Glaw [Mon, 19 Nov 2012 22:03:01 +0000 (22:03 +0000)] 
2012-11-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config.sub (arm): Merge from upstream: Handle armv[6-8] targets.

11 years agogdb/
Yao Qi [Mon, 19 Nov 2012 06:56:52 +0000 (06:56 +0000)] 
gdb/
2012-11-19  Yao Qi  <yao@codesourcery.com>

* infrun.c (infwait_state): Add static.

11 years ago*** empty log message ***
gdbadmin [Mon, 19 Nov 2012 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Sun, 18 Nov 2012 23:00:02 +0000 (23:00 +0000)] 
daily update

11 years ago*** empty log message ***
gdbadmin [Sun, 18 Nov 2012 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

11 years ago*** empty log message ***
gdbadmin [Sat, 17 Nov 2012 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Fri, 16 Nov 2012 23:00:04 +0000 (23:00 +0000)] 
daily update

11 years ago PR c++/13615
Keith Seitz [Fri, 16 Nov 2012 20:54:30 +0000 (20:54 +0000)] 
PR c++/13615
* cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
parameter and pass it to lookup_symbol_file.
(cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
to search base classes.
(cp_lookup_symbol_namespace): Likewise.
(lookup_namespace_scope): Likewise.
(lookup_symbol_file): Add SEARCH parameter.
If SEARCH is non-zero and no symbol is found, lookup the class
and call cp_lookup_nested_symbol.
(find_symbol_in_baseclass): New function.
(cp_lookup_nested_symbol): Do not let
cp_lookup_symbol_in_namespace search through base classes.
Do that later when there is no global symbol match.

PR c++/13615
* gdb.cp/baseenum.cc: New file.
* gdb.cp/baseenum.exp: New file.
* gdb.cp/derivation.cc (A): Add copyright.
Add a typedef.
(B): Use A::value_type instead of int.  Change all references.
(D): Use value_type instead of int.  Change all references.
(E): Likewise.
(F); Likewise.
(Z): New class.
(ZZ): New class.
  (N, Base, Derived): New namespace and classes.
(main): Add instances of Z and ZZ.
Make sure all symbols from N are kept.
* gdb.cp/derivation.exp: Update typedef changes in tests.
Add tests for class typedefs both before and after starting
the inferior.
Add tests for searching for a typedef while stopped in a
method.

11 years ago * main.c (gdb_datadir_provided): New static global.
Doug Evans [Fri, 16 Nov 2012 19:43:39 +0000 (19:43 +0000)] 
* main.c (gdb_datadir_provided): New static global.
(get_init_files): If --data-directory is provided,
and SYSTEM_GDBINIT lives in data-directory, look for it there.
* NEWS: Mention it.

doc/
* gdb.texinfo (System-wide configuration): If the system-wide init
file lives in the data-directory, and --data-directory is provided,
look for it there.

11 years agobfd/ChangeLog
Yufeng Zhang [Fri, 16 Nov 2012 18:33:00 +0000 (18:33 +0000)] 
bfd/ChangeLog

2012-11-16  Joey Ye  <joey.ye@arm.com>

* elf32-arm.c (elf32_arm_final_link_relocate,
case R_ARM_THM_ALU_PREL_11_0, case R_ARM_THM_PC12): Align address of
the place being relocated.
(elf32_arm_final_link_relocate, case R_ARM_THM_PC8): Align address
of the place being relocated and truncate addend.
(Pa): New macro.

11 years agoUpdate DF_1_XXX from Solaris
H.J. Lu [Fri, 16 Nov 2012 12:49:20 +0000 (12:49 +0000)] 
Update DF_1_XXX from Solaris

binutils/

* readelf.c (process_dynamic_section): Correct DF_1_CONFALT.
Also dump DF_1_ENDFILTEE, DF_1_DISPRELDNE, DF_1_NODIRECT,
DF_1_IGNMULDEF, DF_1_NOKSYMS, DF_1_NOHDR, DF_1_EDITED,
DF_1_NORELOC, DF_1_SYMINTPOSE, DF_1_GLOBAUDIT and DF_1_SINGLETON.

include/elf/

* common.h (DF_1_CONLFAT): Renamed to ...
(DF_1_CONFALT): This.
(DF_1_ENDFILTEE): New.
(DF_1_DISPRELDNE): Likewise.
(DF_1_DISPRELPND): Likewise.
(DF_1_NODIRECT): Likewise.
(DF_1_IGNMULDEF): Likewise.
(DF_1_NOKSYMS): Likewise.
(DF_1_NOHDR): Likewise.
(DF_1_EDITED): Likewise.
(DF_1_NORELOC): Likewise.
(DF_1_SYMINTPOSE): Likewise.
(DF_1_GLOBAUDIT): Likewise.
(DF_1_SINGLETON): Likewise.

11 years agoFix typo.
Maxim Kuvyrkov [Fri, 16 Nov 2012 04:01:14 +0000 (04:01 +0000)] 
Fix typo.

11 years ago Port lib32 arangement from Debian.
Maxim Kuvyrkov [Fri, 16 Nov 2012 04:00:41 +0000 (04:00 +0000)] 
Port lib32 arangement from Debian.
* emulparams/elf_i386.sh: Include lib32 directories in library search
path.

11 years ago*** empty log message ***
gdbadmin [Fri, 16 Nov 2012 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Thu, 15 Nov 2012 23:00:03 +0000 (23:00 +0000)] 
daily update

11 years ago * gdb.texinfo (Signaling): Fix typo.
Tom Tromey [Thu, 15 Nov 2012 21:25:43 +0000 (21:25 +0000)] 
* gdb.texinfo (Signaling): Fix typo.

11 years ago2012-11-15 Pierre Muller <muller@sourceware.org>
Pierre Muller [Thu, 15 Nov 2012 16:12:19 +0000 (16:12 +0000)] 
2012-11-15  Pierre Muller  <muller@sourceware.org>

ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
* gdb_stat.h: Delete. Moved to common directory.
* common/gdb_stat.h: New file.
* gdb_wait.h: Delete. Moved to common directory.
* common/gdb_wait.h: New file.
* Makefile.in (H_FILES_NO_SRC): Adapt to new header
location.
* contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
location.
(stat.h rule): Adapt to new gdb_stat.h location.
* common/linux-osdata.c: Include "gdb_stat.h" header instead of
<sys/stat.h> header.
* common/linux-ptrace.c: Include "gdb_wait.h" header instead of
<sys/wait.h> header.

gdbserver ChangeLog entry:

2012-11-15  Pierre Muller  <muller@sourceware.org>

* configure.ac (AC_CHECK_HEADERS): Add wait.h header.
* config.in: Regenerate.
* configure: Regenerate.
* linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
Use "gdb_wait.h" header instead of <sys/wait.h> header.
* lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
* remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
header.
* server.c: Remove HAVE_WAIT_H conditional.  Use "gdb_wait.h" header
instead of <sys/wait.h> header.
* spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.

11 years ago * configure.ac (AC_HEADER_STAT): Remove.
Pierre Muller [Thu, 15 Nov 2012 14:48:26 +0000 (14:48 +0000)] 
* configure.ac (AC_HEADER_STAT): Remove.
* gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
and corresponding code.
* configure: Regenerate.
* config.in: Regenerate.

11 years agoRestore "Consider *-*-nacl* targets ELF for gold"
H.J. Lu [Thu, 15 Nov 2012 14:10:39 +0000 (14:10 +0000)] 
Restore "Consider *-*-nacl* targets ELF for gold"

* configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF.
* configure: Regenerate.

11 years ago Rectify commit date for MAINTAINERS commit
Pierre Muller [Thu, 15 Nov 2012 11:49:11 +0000 (11:49 +0000)] 
 Rectify commit date for MAINTAINERS commit

11 years ago * ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
Simon Baldwin [Thu, 15 Nov 2012 10:49:02 +0000 (10:49 +0000)] 
* ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
On exit, compute data size as the delta between current
sbrk(0) and start_sbrk.

11 years ago ARI xasprintf rule fixes.
Pierre Muller [Thu, 15 Nov 2012 08:31:23 +0000 (08:31 +0000)] 
ARI xasprintf rule fixes.
* dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
instead of xasprintf.
(open_and_init_dwp_file): Ditto.

11 years agobfd/
Roland McGrath [Thu, 15 Nov 2012 00:30:11 +0000 (00:30 +0000)] 
bfd/
* elf32-arm.c (elf32_arm_nacl_plt0_entry): Use bic rather than bfc
instruction for data sandboxing.

gold/
* arm.cc (Output_data_plt_arm_nacl::first_plt_entry): Use bic rather
than bfc instruction for data sandboxing.

11 years agoSync toplevel files with GCC
H.J. Lu [Thu, 15 Nov 2012 00:16:49 +0000 (00:16 +0000)] 
Sync toplevel files with GCC

2012-11-13  Richard Henderson  <rth@redhat.com>

* configure.ac: Move libsanitizer logic to subdirectory.
* configure: Regenerate.

2012-11-13  Dodji Seketeli  <dodji@redhat.com>

* configure.ac: Enable libsanitizer just on x86 linux for now.
* configure: Re-generate.

2012-11-13  David Edelsohn  <dje.gcc@gmail.com>

* configure.ac: Merge libquadmath sections.
* configure: Regenerate.

2012-11-12  Wei Mi <wmi@google.com>

* configure.ac: Add libsanitizer to target_libraries.
* Makefile.def: Ditto.
* configure: Regenerate.
* Makefile.in: Regenerate.

11 years ago*** empty log message ***
gdbadmin [Thu, 15 Nov 2012 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Wed, 14 Nov 2012 23:00:03 +0000 (23:00 +0000)] 
daily update

11 years ago2012-11-14 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Wed, 14 Nov 2012 19:21:01 +0000 (19:21 +0000)] 
2012-11-14  Luis Machado  <lgustavo@codesourcery.com>

gdb/
* value.c (value_actual_type): Check for TYPE_CODE_STRUCT
target types.

gdb/testsuite/
* gdb.mi/mi-var-create-rtti.c: New file.
* gdb.mi/mi-var-create-rtti.exp: New file.

11 years ago * configure, config.in: Rebuild.
Tom Tromey [Wed, 14 Nov 2012 19:16:04 +0000 (19:16 +0000)] 
* configure, config.in: Rebuild.
* configure.ac: Don't check for ctype.h, time.h.
* expprint.c: Don't use HAVE_CTYPE_H.

11 years ago2012-11-14 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Wed, 14 Nov 2012 19:10:33 +0000 (19:10 +0000)] 
2012-11-14  Luis Machado  <lgustavo@codesourcery.com>

* gdb.base/structs3.exp: Run to main before doing any tests.

11 years agoopcodes/
Michael Eager [Wed, 14 Nov 2012 17:05:24 +0000 (17:05 +0000)] 
opcodes/
* microblaze-opc.h: Define new instruction type INST_TYPE_IMM5,
update OPCODE_MASK_H13S, add OPCODE_MASK_HN, define MIN_IMM5 / MAX_IMM5,
and increase MAX_OPCODES.
(op_code_struct):  add mbar and sleep
* microblaze-opcm.h (microblaze_instr): add mbar
Define IMM_MBAR and IMM5_MBAR_MASK
* microblaze-dis.c: Add get_field_imm5_mbar
(print_insn_microblaze): Add support for INST_TYPE_IMM5 and INST_TYPE_NONE

gas/
* config/tc-microblaze.c (md_assemble): Add support for INST_TYPE_IMM5

gas/testsuite/
* gas/microblaze/allinsn.s: Add mbar and sleep
* gas/microblaze/allinsn.d: Likewise

11 years agoAdd clz opcode.
Michael Eager [Wed, 14 Nov 2012 16:45:01 +0000 (16:45 +0000)] 
Add clz opcode.

opcodes/
* microblaze-opc.h: Increase MAX_OPCODES (op_code_struct):  add clz insn
* microblaze-opcm.h (microblaze_instr): add clz

gas/testsuite/
* gas/microblaze/allinsn.s: Add clz insn
* gas/microblaze/allinsn.d: Likewise

11 years agoAdd the endian reversing versions of load/store instructions;
Michael Eager [Wed, 14 Nov 2012 16:19:30 +0000 (16:19 +0000)] 
Add the endian reversing versions of load/store instructions;

2012-11-14  Edgar E. Iglesias <edgar.iglesias@gmail.com>

* microblaze-opc.h: Increase MAX_OPCODES (op_code_struct):  add lbur,
lhur, lwr, sbr, shr, swr
* microblaze-opcm.h (microblaze_instr): add lbur, lhur, lwr, sbr, shr,
swr

2012-11-14  David Holsgrove  <david.holsgrove@xilinx.com>

* gas/microblaze/allinsn.exp: New file - test newly added opcodes
* gas/microblaze/allinsn.s: Likewise
* gas/microblaze/allinsn.d: Likewise

11 years ago * gdbarch.h, gdbarch.c: Rebuild.
Tom Tromey [Wed, 14 Nov 2012 15:40:35 +0000 (15:40 +0000)] 
* gdbarch.h, gdbarch.c: Rebuild.
* gdbarch.sh (set_target_gdbarch): Rename from
deprecated_target_gdbarch_select_hack.
* arch-utils.c (gdbarch_update_p): Update.
(set_gdbarch_from_file): Update.

11 years ago * MAINTAINERS (Responsible Maintainers/misc): Add myself
Pierre Muller [Wed, 14 Nov 2012 15:18:06 +0000 (15:18 +0000)] 
* MAINTAINERS (Responsible Maintainers/misc): Add myself
as responsible of contrib/ari directory.

11 years agogas/ChangeLog:
Ulrich Weigand [Wed, 14 Nov 2012 13:44:45 +0000 (13:44 +0000)] 
gas/ChangeLog:

* config/tc-ppc.c (md_apply_fix): Leave field zero when emitting
an ELF reloc on data as well.

gas/testsuite/ChangeLog:

* gas/ppc/astest.d: Update for fixup changes.
* gas/ppc/astest64.d: Likewise.
* gas/ppc/astest2.d: Likewise.
* gas/ppc/astest2_64.d: Likewise.
* gas/ppc/test1elf32.d: Likewise.
* gas/ppc/test1elf64.d: Likewise.

11 years agobfd/
Tristan Gingold [Wed, 14 Nov 2012 11:03:27 +0000 (11:03 +0000)] 
bfd/
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_main)
(bfd_mach_o_read_source_version): New functions.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DATA_IN_CODE,
BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS, BFD_MACH_O_LC_MAIN,
BFD_MACH_O_LC_SOURCE_VERSION.
* mach-o.h (bfd_mach_o_main_command)
(bfd_mach_o_source_version_command): New types.
(bfd_mach_o_load_command): Add fields for these new types.

binutils/
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* od-macho.c (bfd_mach_o_load_command_name): Add new definitions.
(dump_load_command): Handle BFD_MACH_O_LC_SOURCE_VERSION
and BFD_MACH_O_LC_MAIN.

11 years ago2012-11-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Nov 2012 10:45:39 +0000 (10:45 +0000)] 
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* external.h (mach_o_entry_point_command_external)
(mach_o_source_version_command_external)
(mach_o_data_in_code_entry_external): New structures.

* loader.h (bfd_mach_o_load_command_type): Add
BFD_MACH_O_LC_MAIN, BFD_MACH_O_LC_DATA_IN_CODE,
BFD_MACH_O_LC_SOURCE_VERSION and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
(BFD_MACH_O_REFERENCE_MASK): Adjust value.
(BFD_MACH_O_N_REF_TO_WEAK): New definition.
(BFD_MACH_O_N_ARM_THUMB_DEF, BFD_MACH_O_N_SYMBOL_RESOLVER): Likewise.
(bfd_mach_o_data_in_code_entry_kind): New enum.

11 years ago2012-11-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Nov 2012 10:29:46 +0000 (10:29 +0000)] 
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Add a special
handling for non-scattered pairs.  Update comments.

11 years ago2012-11-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Nov 2012 10:22:27 +0000 (10:22 +0000)] 
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* arm.h: New file.

11 years agohttp://sourceware.org/ml/gdb-patches/2012-11/msg00308.html
Andrew Burgess [Wed, 14 Nov 2012 10:16:46 +0000 (10:16 +0000)] 
sourceware.org/ml/gdb-patches/2012-11/msg00308.html

gdb/testsuite/ChangeLog

        * gdb.python/py-type.exp: Uniquify test names.

11 years agogdb/testsuite/
Yao Qi [Wed, 14 Nov 2012 05:52:32 +0000 (05:52 +0000)] 
gdb/testsuite/
2012-11-14  Yao Qi  <yao@codesourcery.com>

* gdb.threads/manythreads.c [DEBUG]: Include "stdio.h".
(thread_function) [DEBUG]: Call 'printf'.
* gdb.threads/manythreads.exp: Pass '-DDEBUG' to compilation
command line if 'DEBUG=1' is passed to test.
Remove a pattern to match inferior's output.

11 years agogdb/
Yao Qi [Wed, 14 Nov 2012 03:49:12 +0000 (03:49 +0000)] 
gdb/
2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
    Yao Qi  <yao@codesourcery.com>

* arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
bit of EXC_RETURN.
(arm_m_exception_cache, arm_m_exception_this_id)
(arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
(arm_m_exception_unwind): New.
(arm_gdbarch_init): Register arm_m_exception_unwind.

11 years ago*** empty log message ***
gdbadmin [Wed, 14 Nov 2012 00:00:36 +0000 (00:00 +0000)] 
*** empty log message ***

11 years agodaily update
Alan Modra [Tue, 13 Nov 2012 23:00:04 +0000 (23:00 +0000)] 
daily update

11 years agoAllocate elf_segment_map with bfd_zalloc
H.J. Lu [Tue, 13 Nov 2012 22:54:21 +0000 (22:54 +0000)] 
Allocate elf_segment_map with bfd_zalloc

* elf.c (rewrite_elf_program_header): Allocate elf_segment_map
with bfd_zalloc, instead of bfd_alloc.

11 years ago2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
Tom Tromey [Tue, 13 Nov 2012 21:19:11 +0000 (21:19 +0000)] 
2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>

* mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
parameter COUNT, for pattern filling of memory regions.
* NEWS: Mention it.
doc
* gdb.texinfo (GDB/MI Data Manipulation): Document new optional
parameter "count" of -data-write-memory-bytes, and add an example.
testsuite
* gdb.mi/mi-fill-memory.exp: New test.

11 years ago * disasm.h (DISASSEMBLY_FILENAME): New macro.
Markus Metzger [Tue, 13 Nov 2012 15:35:43 +0000 (15:35 +0000)] 
* disasm.h (DISASSEMBLY_FILENAME): New macro.
* disasm.c (do_mixed_source_and_assembly): Pass filename flag on
to print_source_lines ().
* symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
flag.
* source.c (print_source_lines_base): Prefix source line with
filename if PRINT_SOURCE_LINES_FILENAME flag is set.

11 years ago * symtab.h (print_source_lines_flags): New enum.
Markus Metzger [Tue, 13 Nov 2012 15:19:56 +0000 (15:19 +0000)] 
* symtab.h (print_source_lines_flags): New enum.
* source.c (print_source_lines_base): Change noerror to flags.
(print_source_lines): Change noerror to flags.

11 years ago * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
Markus Metzger [Tue, 13 Nov 2012 15:01:44 +0000 (15:01 +0000)] 
* Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
(various make rules): Remove -DGDBSERVER

11 years ago ARI fixes: Avoid sprintf function use rule.
Pierre Muller [Tue, 13 Nov 2012 09:46:11 +0000 (09:46 +0000)] 
ARI fixes: Avoid sprintf function use rule.
* charset.c (convert_between_encodings): Use xsnprintf.
* cli-out.c (cli_field_int): Likewise.
* cp-namespace.c (cp_lookup_nested_symbol): Likewise.
* expprint.c (op_name_standard): Likewise.
* frv-tdep.c (set_variant_num_gprs): Likewise.
(set_variant_num_fprs): Likewise.
* m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
* nto-tdep.c (nto_find_and_open_solib): Likewise.
(nto_init_solib_absolute_prefix): Likewise.
* source.c (init_source_path): Likewise.
(print_source_lines_base): Likewise.
* valprint.c (print_wchar): Likewise.
* mi/mi-out.c (mi_field_int): Likewise.
windows-nat.c (windows_pid_to_exec_file): Likewise.
(windows_create_inferior): Likewise.
(_initialize_check_for_gdb_ini): Likewise.

11 years ago * readelf.c (get_machine_flags) <EM_MIPS, EM_MIPS_RS3_LE>: Move
Maciej W. Rozycki [Tue, 13 Nov 2012 00:54:56 +0000 (00:54 +0000)] 
* readelf.c (get_machine_flags) <EM_MIPS, EM_MIPS_RS3_LE>: Move
code to handle EF_SH_PIC and EF_SH_FDPIC...
<EM_SH>: ... here.

This page took 0.0441 seconds and 4 git commands to generate.