OSDN Git Service
corinna [Sun, 13 Jan 2008 13:41:45 +0000 (13:41 +0000)]
* cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
first. Load kernel32.dll earlier. Make osname a buffer. Simplify
Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up
non-Vista version info. Exit early if not on NT.
skrll [Sun, 13 Jan 2008 12:23:04 +0000 (12:23 +0000)]
* configure.ac: Check for void * as 3 argument of ptrace.
* configure: regenerate.
gdbadmin [Sun, 13 Jan 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 12 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update
hjl [Sat, 12 Jan 2008 16:05:41 +0000 (16:05 +0000)]
gas/testsuite/
2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5534
* gas/i386/i386.s: Add tests for fnstsw and fstsw.
* gas/i386/inval.s: Likewise.
* gas/i386/x86_64.s: Likewise.
* gas/i386/intel.s: Use word instead of dword on ss.
* gas/i386/x86-64-inval.s: Add tests for fnstsw, fstsw, in
and out.
* gas/i386/prefix.s: Remove invalid fstsw.
* gas/i386/inval.l: Updated.
* gas/i386/intelbad.l: Likewise.
* gas/i386/i386.d: Likewise.
* gas/i386/x86_64.d: Likewise.
* gas/i386/x86-64-inval.l: Likewise.
* gas/i386/prefix.d: Updated.
gas/
2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5534
* config/tc-i386.c (_i386_insn): Update comment.
(operand_type_match): Also clear unspecified.
(operand_type_register_match): Likewise.
(parse_operands): Initialize unspecified.
(i386_intel_operand): Likewise.
(match_template): Check memory and accumulator operand size.
(i386_att_operand): Clear unspecified on register operand.
(intel_e11): Likewise.
(intel_e09): Set operand size and clean unspecified for
"XXX PTR".
opcodes/
2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5534
* i386-gen.c (operand_type_init): Add Dword to
OPERAND_TYPE_ACC32. Add Qword to OPERAND_TYPE_ACC64.
(opcode_modifiers): Remove CheckSize, Byte, Word, Dword,
Qword and Xmmword.
(operand_types): Add Byte, Word, Dword, Fword, Qword, Tbyte,
Xmmword, Unspecified and Anysize.
(set_bitfield): Make Mmword an alias of Qword. Make Oword
an alias of Xmmword.
* i386-opc.h (CheckSize): Removed.
(Byte): Updated.
(Word): Likewise.
(Dword): Likewise.
(Qword): Likewise.
(Xmmword): Likewise.
(FWait): Updated.
(OTMax): Likewise.
(i386_opcode_modifier): Remove checksize, byte, word, dword,
qword and xmmword.
(Fword): New.
(TBYTE): Likewise.
(Unspecified): Likewise.
(Anysize): Likewise.
(i386_operand_type): Add byte, word, dword, fword, qword,
tbyte xmmword, unspecified and anysize.
* i386-opc.tbl: Updated to use Byte, Word, Dword, Fword, Qword,
Tbyte, Xmmword, Unspecified and Anysize.
* i386-reg.tbl: Add size for accumulator.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
brobecke [Sat, 12 Jan 2008 08:36:09 +0000 (08:36 +0000)]
* gdb.texinfo (C Operators): Remove incorrect parenthetical comment
about &&var, which is rejected by the expression parser.
ericb [Sat, 12 Jan 2008 04:25:55 +0000 (04:25 +0000)]
Make strstr and strcasestr O(n), not O(n^2); add memmem.
* libc/string/str-two-way.h: New file.
* libc/string/memmem.c (memmem): New file.
* libc/include/string.h (memmem): Declare for all platforms.
* libc/string/strstr.c (strstr): Provide O(n) implementation when
not optimizing for space.
* libc/string/strcasestr.c (strcasestr): Likewise.
* libc/string/Makefile.am (ELIX_SOURCES): Rename to...
(ELIX_2_SOURCES): ...this.
(ELIX_4_SOURCES): New category, for memmem.
(lib_a_SOURCES, libstring_la_SOURCES): Build new file.
(CHEWOUT_FILES): Build documentation for memmem.
* libc/string/strings.tex: Include new docs.
gdbadmin [Sat, 12 Jan 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 11 Jan 2008 23:00:10 +0000 (23:00 +0000)]
daily update
schwab [Fri, 11 Jan 2008 16:18:43 +0000 (16:18 +0000)]
* read.c (s_space): Declare `repeat' as offsetT.
deuling [Fri, 11 Jan 2008 14:43:13 +0000 (14:43 +0000)]
* alpha-tdep.c (alpha_heuristic_proc_start)
(alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
current_gdbarch by gdbarch.
(alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
current architecture by frame_info. Update alpha_heuristic_proc_start
call.
(alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
get_frame_arch to get at the current architecture by frame_info. Update
alpha_sigtramp_register_address call.
* arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
current_gdbarch by gdbarch. Update caller.
(convert_to_extended, convert_from_extended): Add endianess parameter
for comparison. Update caller.
(arm_extract_return_value, arm_store_return_value): Use
get_regcache_arch to get at the current architecture.
* cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
current_gdbarch by gdbarch. Update caller.
(cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
* h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
gdbarch as parameter. Update caller.
(h8300_init_frame_cache): Add gdbarch as parameter. Replace
current_gdbarch by gdbarch. Update caller.
* hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
update caller. Replace current_gdbarch by gdbarch.
* m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
the current architecture. Replace current_gdbarch by gdbarch.
* m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
(STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
expression. Add gdbarch as parameter and replace current_gdbarch with
it. Update caller.
(M6811_TDEP): Remove.
(m68hc11_frame_prev_register): Use get_frame_arch to get at the current
architecture.
(m68hc11_scan_prologue): Add gdbarch as parameter. Replace
current_gdbarch by gdbarch. Update caller.
* m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
update caller.
(m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
by gdbarch.
* rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
caller. Relace current_gdbarch by gdbarch.
(altivec_register_p, spe_register_p): Likewise.
* ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
parameter.
* ppc-linux-nat.c (fetch_register, store_register): Update caller of
altivec_register_p and spe_register_p.
* score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
caller. Replace current_gdbarch by gdbarch.
(score_analyze_prologue): use get_frame_arch to get at the current
architecture.
* sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
* sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
current_gdbarch by gdbarch. Update caller.
(sparc_frame_cache): Use get_frame_arch to get at the current
architecture.
* sparce64-tdep.c (sparc64_skip_prologue): Update call of
sparc_analyze_prologue.
* mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
parameter.
deuling [Fri, 11 Jan 2008 13:34:14 +0000 (13:34 +0000)]
* exec.c: #include "arch-utils.h"
(print_section_info): Use gdbarch_from_bfd to get at the
current architecture. Replace current_gdbarch. Fix indention.
Replace deprecated_print_address_numeric by paddress.
* Makefile.in (exec.o) Add dependency to arch-utils.h.
* valprint.c (val_print_string): Replace
deprecated_print_address_numeric.
* tracepoint.c (trace_mention, scope_info): Likewise.
* symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
(print_symbol, print_partial_symbols, maintenance_info_psymtabs)
(maintenance_check_symtabs): Likewise.
* symfile.c (list_overlays_command): Likewise.
* stack.c (frame_info, print_block_frame_labels): Likewise.
* printcmd.c (print_address, print_address_demangle)
(address_info): Likewise.
* corefile.c (memory_error): Likewise.
* infcmd.c (jump_command): Likewise.
* breakpoint.c (insert_bp_location, describe_other_breakpoints)
(mention, delete_breakpoint): Likewise.
* c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
* dwarf2read.c (dump_die): Likewise.
* ada-valprint.c (ada_val_print_1): Likewise.
* f-valprint.c (f_val_print): Likewise.
* linux-fork.c (info_forks_command): Likewise.
* m32r-com.c (m32r_load_section, m32r_load)
(m32r_upload_command): Likewise.
* ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
deuling [Fri, 11 Jan 2008 13:19:58 +0000 (13:19 +0000)]
* gdbarch.sh (skip_prologue): Add gdbarch
as parameter.
* gdbarch.{c,h}: Regenerate.
* alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
* amd64-tdep.c (amd64_skip_prologue): Likewise.
* avr-tdep.c (avr_skip_prologue): Likewise.
* cris-tdep.c (cris_skip_prologue): Likewise.
* frv-tdep.c (frv_skip_prologue): Likewise.
* h8300-tdep.c (h8300_skip_prologue): Likewise.
* hppa-tdep.c (hppa_skip_prologue): Likewise.
* i386-tdep.c (i386_skip_prologue): Likewise.
* ia64-tdep.c (ia64_skip_prologue): Likewise.
* iq2000-tdep.c (iq2000_skip_prologue): Likewise.
* m32r-tdep.c (m32r_skip_prologue): Likewise.
* m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
* m68k-tdep.c (m68k_skip_prologue): Likewise.
* m88k-tdep.c (m88k_skip_prologue): Likewise.
* mep-tdep.c (mep_skip_prologue): Likewise.
* mips-tdep.c (mips_skip_prologue): Likewise.
* mn10300-tdep.c (mn10300_skip_prologue): Likewise.
* mt-tdep.c (mt_skip_prologue): Likewise.
* rs6000-tdep.c (rs6000_skip_prologue): Likewise.
* score-tdep.c (score_skip_prologue): Likewise.
* sh64-tdep.c (sh64_skip_prologue): Likewise.
* sh-tdep.c (sh_skip_prologue): Likewise.
* sparc64-tdep.c (sparc64_skip_prologue): Likewise.
* sparc-tdep.c (sparc32_skip_prologue): Likewise.
* spu-tdep.c (spu_skip_prologue): Likewise.
* v850-tdep.c (v850_skip_prologue): Likewise.
* vax-tdep.c (vax_skip_prologue): Likewise.
* xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
* xtensa-tdep.c (xtensa_skip_prologue): Likewise.
* arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
current_gdbarch by gdbarch.
* m32c-tdep.c (m32c_skip_prologue): Likewise.
* s390-tdep.c (s390_skip_prologue): Likewise.
gingold [Fri, 11 Jan 2008 09:11:17 +0000 (09:11 +0000)]
ld:
2008-01-11 Tristan Gingold <gingold@adacore.com>
Eric Botcazou <ebotcazou@adacore.com>
* ldlang.c (lang_end): Warns if the entry point is not found when
--gc-sections.
Emit an error if no root is specified when --gc-sections -r.
* ld.texinfo (Options): Document that --gc-sections is compatible
with -r and -q.
* ldmain.c (main): Do not error out if -r and --gc-sections.
* scripttempl/elf.sc: Emit ENTRY command only if relocating.
ld/testsuite:
2008-01-11 Tristan Gingold <gingold@adacore.com>
* lib/ld-lib.exp (check_gc_sections_available): Now available on
VxWorks.
* ld-gc: New directory for testing --gc-sections.
* ld-gc/gc.c: New file.
* ld-gc/gc.exp: New file.
* ld-gc/noent.s: New file.
* ld-gc/noent.d: New file.
gingold [Fri, 11 Jan 2008 09:07:03 +0000 (09:07 +0000)]
2008-01-11 Tristan Gingold <gingold@adacore.com>
Eric Botcazou <ebotcazou@adacore.com>
* elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
relocatable.
* elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
* elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
* elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
* elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
* elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
* elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
* elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
* elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
* elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
* elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
* elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
* elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
* elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
or executable output with relocations.
dj [Fri, 11 Jan 2008 02:21:44 +0000 (02:21 +0000)]
* m32c/exit.S (__exit): preserve both argument registers.
devans [Fri, 11 Jan 2008 00:12:42 +0000 (00:12 +0000)]
* defs.h (struct continuation_arg): Fix typo in comment.
* target.c (target_translate_tls_address): Fix comment spelling error.
gdbadmin [Fri, 11 Jan 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Thu, 10 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update
hjl [Thu, 10 Jan 2008 21:59:45 +0000 (21:59 +0000)]
2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Check processor support
first.
hjl [Thu, 10 Jan 2008 20:53:26 +0000 (20:53 +0000)]
2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Continue if processor
doesn't match.
hjl [Thu, 10 Jan 2008 14:52:34 +0000 (14:52 +0000)]
gas/testsuite/
2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/nops.s: Add more tests with opcodes from 0x0f19
to 0x0f1f.
* gas/i386/x86-64-nops.s: Likewise.
* gas/i386/nops.d: Updated.
* gas/i386/x86-64-nops.d: Likewise.
opcodes/
2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (REG_0F0E): Renamed to REG_0F0D.
(REG_0F18): Updated.
(reg_table): Updated.
(dis386_twobyte): Updated. Use "nopQ" on 0x19 to 0x1e.
(twobyte_has_modrm): Set 1 for 0x19 to 0x1e.
nickc [Thu, 10 Jan 2008 14:28:49 +0000 (14:28 +0000)]
PR ld/5533
* ldlang.c (lang_end): Issue a warning for a missing start symbol
of a shared library if the symbol was specified on the command
line.
schwab [Thu, 10 Jan 2008 13:09:36 +0000 (13:09 +0000)]
* readelf.c (is_64bit_abs_reloc): Handle R_S390_64.
amodra [Thu, 10 Jan 2008 01:12:56 +0000 (01:12 +0000)]
* ld.texinfo (--gc-sections): Describe linker behaviour.
gdbadmin [Thu, 10 Jan 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 9 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update
aoliva [Wed, 9 Jan 2008 22:36:06 +0000 (22:36 +0000)]
* config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
unwind personality function address.
iant [Wed, 9 Jan 2008 19:57:45 +0000 (19:57 +0000)]
Support assignments and expressions in linker scripts.
iant [Wed, 9 Jan 2008 19:40:24 +0000 (19:40 +0000)]
Remove Andrew's e-mail address.
bauermann [Wed, 9 Jan 2008 19:27:14 +0000 (19:27 +0000)]
* doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
(DOUBLEST_SCAN_FORMAT): Likewise.
* dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
* ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
* c-exp.y (parse_number): Likewise.
* jv-exp.y (parse_number): Likewise.
* objc-exp.y (parse_number): Likewise.
* p-exp.y (parse_number): Likewise.
bwilson [Wed, 9 Jan 2008 17:30:58 +0000 (17:30 +0000)]
gas/
* dwarf2dbg.c (out_sleb128): Delete.
(size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
(out_fixed_inc_line_addr): Delete.
(relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
(dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
(process_entries): Remove calls to out_fixed_inc_line_addr. When
DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
* read.h (emit_expr_fix): New prototype.
* read.c (emit_expr): Move code to emit_expr_fix and use it here.
(emit_expr_fix): New.
testsuite/
* gas/lns/lns.exp: Run new lns-big-delta test for targets that set
DWARF2_USE_FIXED_ADVANCE_PC.
* gas/lns/lns-big-delta.s: New.
* gas/lns/lns-big-delta.d: New.
brobecke [Wed, 9 Jan 2008 17:05:26 +0000 (17:05 +0000)]
* gdb.ada/null_array: New test program.
* gdb.ada/null_array.exp: New testcase.
brobecke [Wed, 9 Jan 2008 17:01:54 +0000 (17:01 +0000)]
* gdbtypes.c (create_array_type): Add handling of null Ada arrays.
(check_typedef): Likewise.
hjl [Wed, 9 Jan 2008 16:55:14 +0000 (16:55 +0000)]
2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Check register size
only when size of operands can be encoded the canonical way.
luisgpm [Wed, 9 Jan 2008 13:47:57 +0000 (13:47 +0000)]
* printcmd.c (printf_command): Add seen_big_h, seen_big_d and
seen_double_big_d, treat the new H, D, and DD modifiers as length
modifiers.
* doc/gdb.texinfo (Output): Update documentation on using printf with DFP
types.
* testsuite/gdb.base/printcmds.exp (test_printf_with_dfp): Update
printf calls with required float modifiers.
nickc [Wed, 9 Jan 2008 12:29:08 +0000 (12:29 +0000)]
PR gas/5552
* elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field to FALSE for all relocs.
nickc [Wed, 9 Jan 2008 10:40:32 +0000 (10:40 +0000)]
PR binutils/55326
* bucomm.c (list_supported_architectures): Free architecture list after use.
* windres.c (set_endianess): Likewise.
* windmc.c (set_endianess): Likewise.
rsandifo [Wed, 9 Jan 2008 09:36:10 +0000 (09:36 +0000)]
bfd/
PR ld/5526
* elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
fields. Rename u.cie.u.merged to u.cie.u.merged_with.
(eh_frame_sec_info): Add a cies field.
(eh_frame_hdr_info): Add a merge_cies field.
* elf-eh-frame.c (cie): Add a reloc_index member to the personality
union.
(_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
of hdr_info->cies.
(_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of
cie structures in all cases and use it instead of extended_cies.
If merging, store the cie array in sec_info->cies and point each
CIE's eh_fde_cie at the associated element. Do not try to
calculate the value of the personality routine here; record the
offset of the relocation instead. Do not merge CIEs here.
(_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
(_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
(_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
(find_merged_cie): New function.
(_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies.
ld/testsuite/
PR ld/5526
* ld-elf/eh6.s, ld-elf/eh6.d: New test.
brobecke [Wed, 9 Jan 2008 04:28:11 +0000 (04:28 +0000)]
* dwarf2read.c (read_enumeration_type): Add comment.
hjl [Wed, 9 Jan 2008 01:24:06 +0000 (01:24 +0000)]
2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (set_bitfield): Use fail () on error.
gdbadmin [Wed, 9 Jan 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 8 Jan 2008 23:00:06 +0000 (23:00 +0000)]
daily update
jjohnstn [Tue, 8 Jan 2008 21:48:06 +0000 (21:48 +0000)]
2008-01-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/machine/m68k/memcpy.S: Remove % from register references
as this is already handled by m68kasm.h.
* libc/machine/m68k/memset.S: Ditto.
hjl [Tue, 8 Jan 2008 21:24:15 +0000 (21:24 +0000)]
2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (lineno): New.
(filename): Likewise.
(set_bitfield): Report filename and line numer on error.
(process_i386_opcodes): Set filename and update lineno.
(process_i386_registers): Likewise.
hjl [Tue, 8 Jan 2008 19:51:24 +0000 (19:51 +0000)]
2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (i386_operand): Renamed to ...
(i386_att_operand): This.
(parse_operands): Updated.
brobecke [Tue, 8 Jan 2008 19:39:34 +0000 (19:39 +0000)]
* gdb.ada/funcall_param: New test program.
* gdb.ada/funcall_param.exp: New testcase.
bauermann [Tue, 8 Jan 2008 19:38:33 +0000 (19:38 +0000)]
* config.in: Regenerate.
brobecke [Tue, 8 Jan 2008 19:31:36 +0000 (19:31 +0000)]
* gdb.ada/arrayparam: New test program.
* gdb.ada/arrayparam.exp: New testcase.
brobecke [Tue, 8 Jan 2008 19:28:08 +0000 (19:28 +0000)]
* ada-lang.c (ada_convert_actual): Renames convert_actual.
Make non-static.
(ada_convert_actuals): Delete.
* ada-lang.h (ada_convert_actual): Add declaration.
(ada_convert_actuals): Remove declaration.
* infcall.c: #include "ada-lang.h".
(value_arg_coerce): Add new parameter sp. Update function
documetnation. Add handling of Ada function call parameters.
* Makefile.in (infcall.o): Update dependencies.
brobecke [Tue, 8 Jan 2008 18:17:30 +0000 (18:17 +0000)]
* gdb.ada/print_pc.exp: Add verification of where gdb_start_cmd
landed. Should also fix random failures in the test following it.
brobecke [Tue, 8 Jan 2008 17:40:09 +0000 (17:40 +0000)]
* ada-lang.c (ensure_lval): Fix value lval kind.
(convert_actual): Add handling for arguments passed by reference.
jakub [Tue, 8 Jan 2008 17:29:24 +0000 (17:29 +0000)]
* futex.m4: New file.
devans [Tue, 8 Jan 2008 17:14:28 +0000 (17:14 +0000)]
* dbxread.c (read_dbx_symtab): Fix indentation.
ktietz [Tue, 8 Jan 2008 09:10:47 +0000 (09:10 +0000)]
binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post characters
for name tokens. PR/5529.
nickc [Tue, 8 Jan 2008 08:37:13 +0000 (08:37 +0000)]
PR gas/5322
* lib/gas-defs.exp (gas_host_run): Add fourth argument to regsub command.
gdbadmin [Tue, 8 Jan 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
bje [Mon, 7 Jan 2008 23:25:47 +0000 (23:25 +0000)]
* config.sub, config.guess: Update from upstream sources.
gkm [Mon, 7 Jan 2008 23:17:48 +0000 (23:17 +0000)]
* prdbg.c (print_vma): Print as long long, if host supports it.
amodra [Mon, 7 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update
bauermann [Mon, 7 Jan 2008 22:35:36 +0000 (22:35 +0000)]
* gdb.texinfo (C and C++): Add Decimal Floating Point format
subsubsection.
(Decimal Floating Point format): New subsubsection.
bauermann [Mon, 7 Jan 2008 22:34:48 +0000 (22:34 +0000)]
* gdb.base/dfp-exprs.exp (test_dfp_arithmetic_expressions): Add tests
for expressions with decimal float values.
(test_dfp_conversions): New function to test casts to and from
decimal float types.
Call test_dfp_conversions.
* gdb.base/dfp-test.c (struct decstruct): Add float4 and double8
elements.
(main): Initialize ds.float4 and ds.double8 elements.
* gdb.base/dfp-test.exp (d32_set_tests): Fix typo. Adjust expect
string to new error message.
(d64_set_tests): Likewise.
(d128_set_tests): Likewise.
Add tests for expressions with decimal float variables. Add tests for
conversions to and from decimal float types.
bauermann [Mon, 7 Jan 2008 22:33:56 +0000 (22:33 +0000)]
* Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
(valarith.o): Depend on dfp.h.
(valops.o): Likewise.
* dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
(set_decnumber_context): New function.
(decimal_check_errors): Likewise.
(decimal_from_number): Likewise.
(decimal_to_number): Likewise.
(decimal_from_string): Use set_decnumber_context and
decimal_check_errors.
(decimal_from_integral): New function.
(decimal_from_floating): Likewise.
(decimal_to_double): Likewise.
(promote_decimal): Likewise.
(decimal_binop): Likewise.
(decimal_is_zero): Likewise.
(decimal_compare): Likewise.
(decimal_convert): Likewise.
* dfp.h (decimal_from_integral): New prototype.
(decimal_from_floating): Likewise.
(decimal_to_double): Likewise.
(decimal_binop): Likewise.
(decimal_is_zero): Likewise.
(decimal_compare): Likewise.
(decimal_convert): Likewise.
* eval.c (evaluate_subexp_standard): Remove expect_type argument from
call to value_from_decfloat.
* valarith.c: Include dfp.h.
(value_args_as_decimal): New function.
(value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
(value_logical_not): Likewise.
(value_equal): Likewise.
(value_less): Likewise.
(value_pos): Likewise.
(value_neg): Formatting fix.
* valops.c: Include dfp.h.
(value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
* value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
(unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
(value_from_decfloat): Remove expect_type argument.
* value.h (value_from_decfloat): Update prototype.
jjohnstn [Mon, 7 Jan 2008 18:59:45 +0000 (18:59 +0000)]
2008-01-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/machine/m68k/m68kasm.h: New file.
* libc/machine/m68k/setjmp.S: Remove common definitions and
place in m68kasm.h. Include "m68kasm.h".
* libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use
SYM() macro when referencing function name.
* libc/machine/m68k/memset.S: Ditto.
nickc [Mon, 7 Jan 2008 17:53:03 +0000 (17:53 +0000)]
PR binutils/5535
* vms.c (vms_close_and_cleanup): Check for the presence of a
vms_private_data_struct before examining any of its fields.
corinna [Mon, 7 Jan 2008 16:51:53 +0000 (16:51 +0000)]
* fhandler.h: Update copyright.
* include/limits.h: Ditto.
hjl [Mon, 7 Jan 2008 16:45:34 +0000 (16:45 +0000)]
bfd/
2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/5522
* elflink.c (elf_link_input_bfd): Don't write out a section if
its output section is marked with SEC_NEVER_LOAD.
ld/testsuite/
2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/5522
* ld-elf/noload-3.d: New file.
* ld-elf/noload-3.s: Likewise.
* ld-elf/noload-3.t: Likewise.
vprus [Mon, 7 Jan 2008 15:19:57 +0000 (15:19 +0000)]
Ignore change in name of dynamic linker during
execution, on Solaris. This also unbreaks pending breakpoints.
* solist.h (struct target_so_ops): New field same.
* solib-svr4.c (svr4_same): New.
(_initialize_svr4_solib): Register svr4_same.
* solib.c (update_solib_list): Use ops->same, if available.
iant [Mon, 7 Jan 2008 05:19:02 +0000 (05:19 +0000)]
Report linker script errors with line numbers. Ignore OUTPUT_FORMAT
with three arguments, and ignore OUTPUT_ARCH.
gdbadmin [Mon, 7 Jan 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 6 Jan 2008 23:00:04 +0000 (23:00 +0000)]
daily update
cgf [Sun, 6 Jan 2008 18:37:20 +0000 (18:37 +0000)]
* fhandler.h (fhandler_base::is_tty): Make bool.
(fhandler_serial::is_tty): Ditto.
(fhandler_termios::is_tty): Ditto.
(fhandler_base::is_slow): Return bool value.
(fhandler_socket::is_slow): Ditto.
(fhandler_serial::is_slow): Ditto.
(fhandler_console::is_slow): Ditto.
(fhandler_tty_common::is_slow): Ditto.
(fhandler_tty_master::is_slow): Ditto.
(fhandler_dev_null::is_slow): Ditto.
cgf [Sun, 6 Jan 2008 18:31:34 +0000 (18:31 +0000)]
* include/limits.h (TTY_NAME_MAX): Increase size to same as linux to allow for
(at least) null terminating byte for "/dev/console".
cgf [Sun, 6 Jan 2008 06:59:14 +0000 (06:59 +0000)]
* win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings when
using MS-DOS paths.
iant [Sun, 6 Jan 2008 00:47:10 +0000 (00:47 +0000)]
Add support for -e and for ENTRY in linker scripts.
gdbadmin [Sun, 6 Jan 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 5 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update
palves [Sat, 5 Jan 2008 21:50:43 +0000 (21:50 +0000)]
gdb/
* NEWS: Mention --pid and --core command line behaviour changes.
gdb/doc/
* gdb.texinfo (File Options): Remove mention of the attempt to
open a core file with the -p option. Don't list -c as a valid
option to attach to a process.
hjl [Sat, 5 Jan 2008 17:07:24 +0000 (17:07 +0000)]
gas/
2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
* doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
* config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
only.
(md_assemble): Remove Intel mode workaround.
(match_template): Check support for old gcc, AT&T mnemonic
and Intel Syntax.
(md_parse_option): Don't set intel_mnemonic to 0 for
OPTION_MOLD_GCC.
gas/testsuite/
2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/intel.s: Add tests for fadd, faddp, fdiv, fdivp,
fdivr, fdivrp, fmul, fmulp, fsub, fsubp, fsubr and fsubrp.
* gas/i386/intel.d: Updated.
* gas/i386/intel.e: Likewise.
opcodes/
2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Rename IntelMnemonic to
ATTSyntax.
* i386-opc.h (IntelMnemonic): Renamed to ..
(ATTSyntax): This
(Opcode_Modifier_Max): Updated.
(i386_opcode_modifier): Remove intelmnemonic. Add attsyntax
and intelsyntax.
* i386-opc.tbl: Remove IntelMnemonic and update with ATTSyntax
on fsub, fubp, fsubr, fsubrp, div, fdivp, fdivr and fdivrp.
* i386-tbl.h: Regenerated.
palves [Sat, 5 Jan 2008 16:49:52 +0000 (16:49 +0000)]
gdb/
* main.c (captured_main): Remove 'count' varible and the
ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
--pid options were issued simultaneously. If an explicit pid
option was passed, don't fallback to core file. Detect extra
arguments better in the presence of explicit pid or core
arguments.
gdb/doc/
* gdbint.texinfo (Host Conditionals): Remove mention of
ALIGN_STACK_ON_ENTRY.
brobecke [Sat, 5 Jan 2008 15:48:08 +0000 (15:48 +0000)]
* gdb.ada/packed_tagged/comp_bug.adb: New file.
* gdb.ada/packed_tagged.exp: New testcase.
brobecke [Sat, 5 Jan 2008 15:44:53 +0000 (15:44 +0000)]
* ada-lang.c (ada_which_variant_applies): Correctly compute
the value of the discriminant when the variant record is packed.
brobecke [Sat, 5 Jan 2008 15:12:56 +0000 (15:12 +0000)]
* gdbint.texinfo (Start of New Year Procedure): Add item
describing how to update the source and documentation copyright
notices.
gdbadmin [Sat, 5 Jan 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 4 Jan 2008 23:00:05 +0000 (23:00 +0000)]
daily update
brobecke [Fri, 4 Jan 2008 21:40:33 +0000 (21:40 +0000)]
* gdb.ada/homonym/homonym.ads, gdb.ada/homonym/homonym.adb,
gdb.ada/homonym/homonym_main.adb: New files.
* gdb.ada/homonym.exp: New testcase.
brobecke [Fri, 4 Jan 2008 21:36:25 +0000 (21:36 +0000)]
* ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
that are used to differentiate homonyms.
brobecke [Fri, 4 Jan 2008 20:47:16 +0000 (20:47 +0000)]
* gdb.ada/packed_array.exp: Add testing of references to
a packed array.
brobecke [Fri, 4 Jan 2008 20:45:05 +0000 (20:45 +0000)]
* ada-lang.c (decode_packed_array_type): Avoid a seg fault
when the type is an anonymous pointer type.
(ada_check_typedef): Avoid a seg fault when the type is null.
* ada-typeprint.c (print_array_type): Add support for pointer
to packed arrays.
brobecke [Fri, 4 Jan 2008 20:07:39 +0000 (20:07 +0000)]
* gdb.ada/type_coercion/ident.adb, gdb.ada/type_coercion/assign.adb:
New files.
* gdb.ada/type_coercion.exp: New testcase.
brobecke [Fri, 4 Jan 2008 20:02:29 +0000 (20:02 +0000)]
* gdb.ada/tagged/pck.ads, gdb.ada/tagged/pck.adb,
gdb.ada/tagged/foo.adb: New file.
* gdb.ada/tagged.exp: New testcase.
brobecke [Fri, 4 Jan 2008 19:46:28 +0000 (19:46 +0000)]
* ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
brobecke [Fri, 4 Jan 2008 19:01:30 +0000 (19:01 +0000)]
* ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
hjl [Fri, 4 Jan 2008 18:19:11 +0000 (18:19 +0000)]
2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.h: Update copyright to 2008.
hjl [Fri, 4 Jan 2008 18:10:08 +0000 (18:10 +0000)]
2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c: Update copyright to 2008.
* i386-opc.h: Likewise.
* i386-opc.tbl: Likewise.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
hjl [Fri, 4 Jan 2008 18:03:02 +0000 (18:03 +0000)]
gas/testsuite/
2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/rexw.d: New.
* gas/i386/rexw.s: Likewise.
* gas/i386/x86-64-sse4_1-intel.d: Updated.
* gas/i386/x86-64-sse4_1.d: Likewise.
opcodes/
2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.tbl: Add NoRex64 to extractps, movmskpd, movmskps,
pextrb, pextrw, pinsrb, pinsrw and pmovmskb.
* i386-tbl.h: Regenerated.
brobecke [Fri, 4 Jan 2008 15:10:10 +0000 (15:10 +0000)]
* gdb.ada/ptype_field/pck.ads, gdb.ada/ptype_field/pck.adb,
gdb.ada/ptype_field/foo.adb: New files.
* gdb.ada/ptype_field.exp: New testcase.
brobecke [Fri, 4 Jan 2008 15:04:10 +0000 (15:04 +0000)]
* ada-exp.y (chop_separator): New function.
(write_selectors): Rewrite to re-use chop_separator.
(ada_nget_field_index, get_symbol_field_type): New functions.
(write_var_or_type): Add support for "ptype TYPENAME.FIELD"
expressions.
nickc [Fri, 4 Jan 2008 14:53:50 +0000 (14:53 +0000)]
* config/tc-ppc.c (parse_cpu): Preserve the settings of the
PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
* gas/ppc/altivec_and_spe.s: New test - checks that ISA extension
command line options (-maltivec, -mspe) can be specified before
CPU selection command line options.
* gas/ppc/altivec_and_spe.d: Expected disassembly.
* gas/ppc/ppc.exp: Run the new test
nickc [Fri, 4 Jan 2008 09:53:41 +0000 (09:53 +0000)]
* dwarf.c (read_and_display_attr_value): Prefix values that are
displayed in hexadecimal with 0x.
For the DW_AT_import attribute display the abbreviation number and
tag of the imported DIE.
(process_debug_info): Warn about lengths that reserved by the
DWARF3 specification.
Provide more information when corrupted DIEs are detected.
Warn if DIE corruption makes the sibling level negative.