OSDN Git Service
Joel Brobecker [Thu, 3 Jan 2008 12:30:38 +0000 (12:30 +0000)]
* ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
(to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
Update calls to ada_to_fixed_type.
(ada_template_to_fixed_record_type_1): Ditto, but without looking
for the tag.
(ada_to_fixed_type): Add check_tag parameter; do not look for
tag if null. When looking for a tag, use a fixed record type.
* ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
* ada-valprint.c (printable_val_type, ada_value_print): Update
calls to ada_to_fixed_type.
Luis Machado [Thu, 3 Jan 2008 11:39:35 +0000 (11:39 +0000)]
* doublest.c (convert_floatformat_to_doublest): Call
floatformat_to_doublest instead of floatformat_to_double and use
DOUBLEST variables.
(convert_doublest_to_floatformat): Call floatformat_from_doublest
instead of floatformat_from_double and use DOUBLEST variables.
Nick Hudson [Thu, 3 Jan 2008 10:33:10 +0000 (10:33 +0000)]
2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
* MAINTAINERS (Write After Approval): Add self.
H.J. Lu [Thu, 3 Jan 2008 05:29:53 +0000 (05:29 +0000)]
gas/testsuite/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/arch-5.d: New file.
* gas/i386/arch-5.s: Likewise.
* gas/i386/arch-6.d: Likewise.
* gas/i386/arch-6.s: Likewise.
* gas/i386/arch-7.d: Likewise.
* gas/i386/arch-7.s: Likewise.
* gas/i386/arch-8.d: Likewise.
* gas/i386/arch-8.s: Likewise.
* gas/i386/i386.exp: Run arch-5, arch-6, arch-7 and arch-8.
opcodes/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (cpu_flag_init): Add CpuSSE4_2_Or_ABM to
CPU_AMDFAM10_FLAGS, CPU_SSE4_2_FLAGS, CpuABM and
CPU_SSE5_FLAGS.
(cpu_flags): Add CpuSSE4_2_Or_ABM.
* i386-opc.h (CpuSSE4_2_Or_ABM): New.
(CpuLM): Updated.
(i386_cpu_flags): Add cpusse4_2_or_abm.
* i386-opc.tbl: Use CpuSSE4_2_Or_ABM instead of
CpuABM|CpuSSE4_2 on popcnt.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
H.J. Lu [Thu, 3 Jan 2008 05:27:55 +0000 (05:27 +0000)]
Add a missing ','.
Joel Brobecker [Thu, 3 Jan 2008 04:26:57 +0000 (04:26 +0000)]
* gdb.base/set-lang-auto.exp: New testcase.
Joel Brobecker [Thu, 3 Jan 2008 04:23:46 +0000 (04:23 +0000)]
* symfile.c (set_initial_language): Make non-static.
* symfile.h (set_initial_language): Add declaration.
* language.c: #include "symfile.h".
(set_language): Call set_initial_language if the frame language
could not be determined.
Joel Brobecker [Thu, 3 Jan 2008 04:12:24 +0000 (04:12 +0000)]
* gdb.ada/fun_addr/foo.adb: New file.
* gdb.ada/fun_addr.exp: New testcase.
Joel Brobecker [Thu, 3 Jan 2008 04:11:16 +0000 (04:11 +0000)]
* eval.c (evaluate_subexp_for_address): Provide frame address to
locate_var_value only if it will be needed.
H.J. Lu [Thu, 3 Jan 2008 03:28:35 +0000 (03:28 +0000)]
gas/testsuite/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.s: Add tests for movq.
* gas/i386/x86_64.s: Likewise.
* gas/i386/i386.d Updated.
* gas/i386/x86_64.d: Likewise.
opcodes/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
* i386-opc.h: Update comments.
H.J. Lu [Thu, 3 Jan 2008 00:02:26 +0000 (00:02 +0000)]
Fix a typo.
gdbadmin [Thu, 3 Jan 2008 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***
H.J. Lu [Wed, 2 Jan 2008 23:54:47 +0000 (23:54 +0000)]
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Use Qword instead of QWord.
* i386-opc.h: Likewise.
* i386-opc.tbl: Likewise.
Alan Modra [Wed, 2 Jan 2008 23:00:06 +0000 (23:00 +0000)]
daily update
H.J. Lu [Wed, 2 Jan 2008 21:43:34 +0000 (21:43 +0000)]
gas/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5534
* config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
Check memory size in Intel mode.
(process_suffix): Handle XMMWORD_MNEM_SUFFIX.
(intel_e09): Likewise.
* config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
gas/testsuite/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5534
* gas/i386/intel.s: Use QWORD on movq instead of DWORD.
* gas/i386/inval.s: Add tests for movq.
* gas/i386/x86-64-inval.s: Likewise.
* gas/i386/inval.l: Updated.
* gas/i386/x86-64-inval.l: Likewise.
opcodes/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
PR gas/5534
* i386-gen.c (opcode_modifiers): Add No_xSuf, CheckSize,
Byte, Word, Dword, QWord and Xmmword.
* i386-opc.h (No_xSuf): New.
(CheckSize): Likewise.
(Byte): Likewise.
(Word): Likewise.
(Dword): Likewise.
(QWord): Likewise.
(Xmmword): Likewise.
(FWait): Updated.
(i386_opcode_modifier): Add No_xSuf, CheckSize, Byte, Word,
Dword, QWord and Xmmword.
* i386-opc.tbl: Add CheckSize|QWord to movq if IgnoreSize is
used.
* i386-tbl.h: Regenerated.
H.J. Lu [Wed, 2 Jan 2008 21:41:02 +0000 (21:41 +0000)]
Move 2007 ChangeLog entries to ChangeLog-2007.
Jan Kratochvil [Wed, 2 Jan 2008 13:36:38 +0000 (13:36 +0000)]
* linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
* gdb.threads/fork-child-threads.exp, gdb.threads/fork-child-threads.c:
New files
Joel Brobecker [Wed, 2 Jan 2008 12:06:38 +0000 (12:06 +0000)]
* array_subscript_addr/p.adb: New file.
* array_subscript_addr.exp: New testcase.
Joel Brobecker [Wed, 2 Jan 2008 12:03:06 +0000 (12:03 +0000)]
* ada-lang.c (ada_evaluate_subexp): Modify the value returned
when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
This is needed to make sure that any other treatment applied
to the resulting value does not fail for spurious reason,
such as trying to take the address of this value.
Joel Brobecker [Wed, 2 Jan 2008 11:25:01 +0000 (11:25 +0000)]
* gdb.ada/str_cmp_ref/pck.ads, gdb.ada/str_cmp_ref/foo.adb:
New files.
* gdb.ada/str_cmp_ref.exp: New testcase.
Joel Brobecker [Wed, 2 Jan 2008 11:18:03 +0000 (11:18 +0000)]
* ada-lang.c (ada_value_equal): Dereference reference types when
comparing arrays.
Mark Kettenis [Wed, 2 Jan 2008 00:37:44 +0000 (00:37 +0000)]
* m88k-dis.c (instructions): Fix fcvt.* instructions.
From Miod Vallat.
gdbadmin [Wed, 2 Jan 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 1 Jan 2008 23:00:06 +0000 (23:00 +0000)]
daily update
Daniel Jacobowitz [Tue, 1 Jan 2008 22:53:26 +0000 (22:53 +0000)]
Updated copyright notices for most files.
Christopher Faylor [Tue, 1 Jan 2008 18:42:08 +0000 (18:42 +0000)]
* win32-nat.c (psapi_module_handle): Remove static.
(get_module_name): Rename from psapi_get_dll_name. Revamp slightly to return
first module found if base_address is zero. Don't initialize psapi function
pointers here. Convert to cygwin paths when appropriate.
(win32_pid_to_exec_file): Use Cygwin's /proc interface to determine executable
name. Use get_module_name when that fails or when !__CYGWIN__.
(_initialize_psapi): New function. Initialize psapi stuff before it is needed
or issue a warning if it is not found. Move psapi_module_handle here.
Joel Brobecker [Tue, 1 Jan 2008 12:43:41 +0000 (12:43 +0000)]
* gdb.ada/fun_in_declare/pck.ads, gdb.ada/fun_in_declare/pck.adb,
gdb.ada/fun_in_declare/foo.adb: New files.
* gdb.ada/fun_in_declare.exp: New testcase.
Joel Brobecker [Tue, 1 Jan 2008 12:39:49 +0000 (12:39 +0000)]
* ada-lang.c (ada_remove_trailing_digits): New function.
(ada_remove_po_subprogram_suffix): New function.
(ada_decode): Improve. Move the description of the algorithm
directly inside the code, instead of in the function global
description.
Joel Brobecker [Tue, 1 Jan 2008 11:42:53 +0000 (11:42 +0000)]
* gdb.ada/ref_param/foo.adb, gdb.ada/ref_param/pck.adb,
gdb.ada/ref_param/pck.ads: New files.
* gdb.ada/ref_param.exp: New testcase.
Joel Brobecker [Tue, 1 Jan 2008 11:39:07 +0000 (11:39 +0000)]
* ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
and always print the dereferenced value.
Joel Brobecker [Tue, 1 Jan 2008 07:38:37 +0000 (07:38 +0000)]
* ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
of the case where the first argument is a reference.
(ada_evaluate_subexp, case BINOP_ADD): Likewise.
Joel Brobecker [Tue, 1 Jan 2008 07:25:45 +0000 (07:25 +0000)]
* gdb.ada/interface/types.ads, gdb.ada/interface/types.adb,
gdb.ada/interface/foo.adb: New files.
* gdb.ada/interface.exp: New testcase.
Joel Brobecker [Tue, 1 Jan 2008 07:21:59 +0000 (07:21 +0000)]
Implement support for Ada interface types.
* ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
(ada_is_ignored_field): Ignore fields that are a dispatch table
of a tagged type.
Joel Brobecker [Tue, 1 Jan 2008 04:27:43 +0000 (04:27 +0000)]
* top.c (print_gdb_version): Update copyright year.
Joel Brobecker [Tue, 1 Jan 2008 04:20:42 +0000 (04:20 +0000)]
* ChangeLog-2007: New ChangeLog rotation.
* ChangeLog: Reset for 2008.
* config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
ChangeLog-2007.
gdbadmin [Tue, 1 Jan 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 31 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update
Jim Blandy [Mon, 31 Dec 2007 21:34:48 +0000 (21:34 +0000)]
* gdb.base/multi-forks.exp: Consume all output from child
processes before proceeding to next test.
H.J. Lu [Mon, 31 Dec 2007 19:23:07 +0000 (19:23 +0000)]
2007-12-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/5530
* elfxx-ia64.c (elfNN_ia64_relocate_section): Call
_bfd_elf_find_segment_containing_section with output_bfd,
instead of input_bfd.
Daniel Jacobowitz [Mon, 31 Dec 2007 18:38:43 +0000 (18:38 +0000)]
* remote.c (unpack_nibble): Use fromhex.
* symtab.c (find_line_common): Always set exact_match.
H.J. Lu [Mon, 31 Dec 2007 16:17:43 +0000 (16:17 +0000)]
Fix a typo in ChangeLog.
Daniel Jacobowitz [Mon, 31 Dec 2007 15:49:44 +0000 (15:49 +0000)]
* hppa-linux-nat.c: Use hppa-linux-offsets.h.
* hppa-linux-offsets.h: New file.
H.J. Lu [Mon, 31 Dec 2007 15:42:22 +0000 (15:42 +0000)]
gas/testsuite/
2007-12-31 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/inval.s: Add test for cvtsi2ss/cvtsi2sd.
* gas/i386/simd.s: Likewise.
* gas/i386/x86-64-simd.s: Likewise.
* gas/i386/inval.l: Updated.
* gas/i386/simd-intel.d: Likewise.
* gas/i386/simd-suffix.d: Likewise.
* gas/i386/simd.d: Likewise.
* gas/i386/sse2.d: Likewise.
* gas/i386/x86-64-opcode.d: Likewise.
* gas/i386/x86-64-simd-intel.d: Likewise.
* gas/i386/x86-64-simd-suffix.d: Likewise.
* gas/i386/x86-64-simd.d: Likewise.
opcodes/
2007-12-31 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (prefix_table): Use "%LQ" on cvtpi2ps/cvtsi2sd.
(putop): Handle '%' and "LQ".
* i386-opc.tbl: Remove IgnoreSize from cvtpi2ps/cvtsi2sd.
* i386-tbl.h: Regenerated.
Nick Clifton [Mon, 31 Dec 2007 11:29:31 +0000 (11:29 +0000)]
* elf-m10300.c (mn10300_elf_relax_section): Use _bfd_merged_section_offset
to compute the offset of a symbol in a merged section.
Nick Clifton [Mon, 31 Dec 2007 11:01:54 +0000 (11:01 +0000)]
* elf.c (_bfd_elf_find_segment_containing_section): New function:
Scan the segment map looking for the segment containing a
specified function.
* elf-bfd.h: Prototype the new function.
* elf-hppa.h (elf_hppa_osec_to_segment): Delete.
(elf_hppa_record_segment_addrs): Use new function.
* elf32-bfin.c (_bfdfdpic_osec_to_segment): Use new function.
* elf32-frv.c (_frvfdpic_osec_to_segment): Use new function.
* elf32-hppa.c (hppa_record_segment_addr): Use new function.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Use new function.
gdbadmin [Mon, 31 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 30 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update
Pedro Alves [Sun, 30 Dec 2007 22:13:55 +0000 (22:13 +0000)]
* configure.tgt (*-*-mingw32ce*): Set gdb_osabi to
GDB_OSABI_WINCE.
(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.
gdbadmin [Sun, 30 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 29 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update
Mark Kettenis [Sat, 29 Dec 2007 17:01:41 +0000 (17:01 +0000)]
* i386nbsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h"
(sigtramp_retcode, i386nbsd_sigtramp_offset, i386nbsd_sigtramp_p):
Remove
(i386nbsd_mc_reg_offset): New array.
(i386nbsd_sigtramp_cache_init): New function.
(i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2, i386nbsd_sigtramp_si2)
(i386nbsd_sigtramp_si31, i386nbsd_sigtramp_si4): New signal trampoline
frame descriptions.
(i386nbsd_init_abi): Override ABI sigcontext defaults and register
new signal frame unwinders
* Makefile.in (i386nbsd-tdep.o): Update dependencies.
* tramp-frame.h (struct tramp_frame): Allow for 48 instructions
Jim Blandy [Sat, 29 Dec 2007 14:01:30 +0000 (14:01 +0000)]
* configure: Regenerated.
Joel Brobecker [Sat, 29 Dec 2007 05:37:25 +0000 (05:37 +0000)]
* ada-lang.c (_initialize_ada_language): Attach executable_changed
observer.
Dave Anglin [Sat, 29 Dec 2007 01:36:40 +0000 (01:36 +0000)]
PR binutils/5146
* elf64-hppa.c: Declare alloca when __GNUC__ is defined.
* som.c: Likewise.
gdbadmin [Sat, 29 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Dave Anglin [Fri, 28 Dec 2007 23:43:45 +0000 (23:43 +0000)]
* elf-hppa.h (elf_hppa_osec_to_segment): New function.
(elf_hppa_record_segment_addrs): Use elf_hppa_osec_to_segment.
Remove ATTRIBUTE_UNUSED from abfd argument.
* elf32-hppa.c (hppa_record_segment_addr): Likewise.
Alan Modra [Fri, 28 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update
H.J. Lu [Fri, 28 Dec 2007 19:42:53 +0000 (19:42 +0000)]
Add ',' at the end of cpu_flag_init.
H.J. Lu [Fri, 28 Dec 2007 16:04:40 +0000 (16:04 +0000)]
gas/testsuite/
2007-12-28 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/arch-1.d: New file.
* gas/i386/arch-1.s: Likewise.
* gas/i386/arch-2.d: Likewise.
* gas/i386/arch-2.s: Likewise.
* gas/i386/arch-3.d: Likewise.
* gas/i386/arch-3.s: Likewise.
* gas/i386/arch-4.d: Likewise.
* gas/i386/arch-4.s: Likewise.
* gas/i386/i386.exp: Run arch-1, arch-2, arch-3 and arch-4.
opcodes/
2007-12-28 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (cpu_flag_init): Add CpuSSE4_1_Or_5 to
CPU_SSE4_1_FLAGS, CPU_SSE4_2_FLAGS and CPU_SSE5_FLAGS.
(cpu_flags): Add CpuSSE4_1_Or_5.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
* i386-opc.h (CpuSSE4_1_Or_5): New.
(CpuLM): Updated.
(i386_cpu_flags): Add cpusse4_1_or_5.
* i386-opc.tbl: Use CpuSSE4_1_Or_5 instead of CpuSSE4_1|CpuSSE5
on ptest roundpd, roundps, roundsd and roundss.
Nick Clifton [Fri, 28 Dec 2007 14:45:34 +0000 (14:45 +0000)]
* elf32-hppa.c (hppa_record_segment_addr): Locate the segment
containing the section using the segment map, rather than guessing
based upon the section's vma and file position.
Joel Brobecker [Fri, 28 Dec 2007 13:06:17 +0000 (13:06 +0000)]
* ada-lang.c (ada_evaluate_subexp): Break two large expressions
using temporary variables.
Joel Brobecker [Fri, 28 Dec 2007 06:32:46 +0000 (06:32 +0000)]
* gdb.ada/fixed_cmp/pck.ads, gdb.ada/fixed_cmp/pck.adb,
gdb.ada/fixed_cmp/fixed.adb: New files.
* gdb.ada/fixed_cmp.exp: New testcase.
Joel Brobecker [Fri, 28 Dec 2007 06:25:56 +0000 (06:25 +0000)]
* ada-lang.c (ada_value_cast): New function, extracted out from
the code in ada_evaluate_subexp, case UNOP_CAST. The code handling
the obscure case has been removed as we think that it is actually
unnecessary.
(ada_evaluate_subexp): Add type case when evaluating an OP_DOUBLE
or an OP_LONG with a non-null expect_type. Replace extracted-out
code with call to new ada_value_cast function.
Joel Brobecker [Fri, 28 Dec 2007 06:17:49 +0000 (06:17 +0000)]
* gdb.ada/boolean_expr.exp: New testcase.
Joel Brobecker [Fri, 28 Dec 2007 06:13:51 +0000 (06:13 +0000)]
* ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
* language.c (lang_bool_type): Add Ada case.
gdbadmin [Fri, 28 Dec 2007 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 27 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Thu, 27 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 26 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update
Jim Blandy [Wed, 26 Dec 2007 17:11:16 +0000 (17:11 +0000)]
* gdb.base/multi-forks.exp: Doc fix.
Joel Brobecker [Wed, 26 Dec 2007 14:21:53 +0000 (14:21 +0000)]
* gdb.ada/Makefile.in (EXECUTABLES): Update list.
* gdb.ada/char_param.exp: Do not compile our test program with
-gnata, this is unnecessary.
* gdb.ada/char_param/pck.ads: Remove unnecessary "with".
Joel Brobecker [Wed, 26 Dec 2007 12:36:18 +0000 (12:36 +0000)]
* dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
Luis Machado [Wed, 26 Dec 2007 10:57:50 +0000 (10:57 +0000)]
* dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
function to handle required actions for the DW_CFA_restore and
DW_CFA_restore_extended instructions.
(dwarf2_restore_rule): New function.
gdbadmin [Wed, 26 Dec 2007 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 25 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Tue, 25 Dec 2007 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 24 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update
Joel Brobecker [Mon, 24 Dec 2007 17:13:32 +0000 (17:13 +0000)]
* gdb.ada/print_chars/pck.ads, gdb.ada/print_chars/pck.adb,
gdb.ada/print_chars/foo.adb: New files.
* gdb.ada/print_chars.exp: New testcase.
H.J. Lu [Mon, 24 Dec 2007 16:58:23 +0000 (16:58 +0000)]
bfd/
2007-12-24 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/5488
* elf.c (IS_NOTE): New.
(IS_COREFILE_NOTE): Use IS_NOTE.
(IS_SECTION_IN_INPUT_SEGMENT): Use IS_NOTE instead of
IS_COREFILE_NOTE.
ld/testsuite/
2007-12-24 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/5488
* ld-elf/note-2.d: New.
* ld-elf/note-2.s: Likewise.
* ld-elf/note-2.t: Likewise.
H.J. Lu [Mon, 24 Dec 2007 16:55:39 +0000 (16:55 +0000)]
2007-12-24 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/5449
* elf.c (rewrite_elf_program_header): Don't adjust p_paddr if
p_paddr is set to 0.
(copy_private_bfd_data): Call rewrite_elf_program_header if
p_paddr is set to 0.
* elfcode.h (elf_swap_phdr_out): Set p_paddr to 0 if needed.
* elfxx-ia64.c (ELF_MAXPAGESIZE): Don't redefine it for HPUX.
Joel Brobecker [Mon, 24 Dec 2007 16:52:24 +0000 (16:52 +0000)]
* ada-lang.c (ada_is_character_type): Add recognition of type
"Wide_Wide_Character".
Joel Brobecker [Mon, 24 Dec 2007 07:57:00 +0000 (07:57 +0000)]
* gdb.ada/char_param/pck.ads, gdb.ada/char_param/pck.adb,
gdb.ada/char_param/foo.adb: New files.
* gdb.ada/char_param.exp: New testcase.
Joel Brobecker [Mon, 24 Dec 2007 06:29:27 +0000 (06:29 +0000)]
* dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
for char and unsigned char types of Ada compilation units.
* ada-lang.c (ada_is_character_type): Always return true if
the type code is TYPE_CODE_CHAR.
H.J. Lu [Mon, 24 Dec 2007 05:27:39 +0000 (05:27 +0000)]
gas/
2007-12-23 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (set_intel_mnemonic): New.
(intel_mnemonic): Likewise.
(old_gcc): Likewise.
(OPTION_MMNEMONIC): Likewise.
(OPTION_MSYNTAX): Likewise.
(OPTION_MINDEX_REG): Likewise.
(OPTION_MNAKED_REG): Likewise.
(OPTION_MOLD_GCC): Likewise.
(md_pseudo_table): Add .intel_mnemonic and .att_mnemonic.
(match_template): Don't allow AT&T/Intel mnemonic if Intel/AT&T
mnemonic is specified. Don't allow old gcc support if old_gcc
is 0.
(md_longopts): Add -mmnemonic, -msyntax, -mindex-reg,
-mmnaked-reg and -mold-gcc.
(md_parse_option): Handle OPTION_MMNEMONIC, OPTION_MSYNTAX,
OPTION_MINDEX_REG, OPTION_MNAKED_REG and OPTION_MOLD_GCC.
* doc/c-i386.texi: Docoument -mmnemonic, -msyntax, --mnaked-reg
and AT&T mnemonic vs. Intel mnemonic.
gas/testsuite/
2007-12-23 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/compat-intel.d: Pass -mmnemonic=att to assembler.
* gas/i386/compat.d: Likewise.
* gas/i386/i386.exp: Pass -mmnemonic=att to assembler for
"float". Pass -mold-gcc to assembler for "general".
opcodes/
2007-12-23 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Add OldGcc, ATTMnemonic and
IntelMnemonic.
* i386-opc.h (OldGcc): New.
(ATTMnemonic): Likewise.
(IntelMnemonic): Likewise.
(Opcode_Modifier_Max): Updated.
(i386_opcode_modifier): Add oldgcc, attmnemonic and
intelmnemonic.
* i386-opc.tbl: Update fadd, fdiv, fdivp, fdivr, fdivrp, fmul,
fsub, fsubp, fsubr and fsubrp with OldGcc, ATTMnemonic and
IntelMnemonic.
* i386-tbl.h: Regeneratd.
gdbadmin [Mon, 24 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 23 Dec 2007 23:00:06 +0000 (23:00 +0000)]
daily update
Joel Brobecker [Sun, 23 Dec 2007 05:34:38 +0000 (05:34 +0000)]
* infrun.c (handle_inferior_event): Remove code that made us
stop when stepping into the last line of the current function.
gdbadmin [Sun, 23 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 22 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update
Pierre Muller [Sat, 22 Dec 2007 22:09:56 +0000 (22:09 +0000)]
2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c: Fix PR/2388.
(do_win32_fetch_inferior_registers): Do not overwrite debug register
array dr if debug_registers_changed variable is set.
Jan Kratochvil [Sat, 22 Dec 2007 20:58:30 +0000 (20:58 +0000)]
* dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
(add_partial_symbol, pdi_needs_namespace, process_die)
(is_type_tag_for_partial, load_partial_dies, new_symbol)
(read_type_die, determine_prefix): Extend the current code of
`DW_TAG_class_type' also for `DW_TAG_interface_type'.
H.J. Lu [Sat, 22 Dec 2007 14:06:31 +0000 (14:06 +0000)]
binutils/
2007-12-22 H.J. Lu <hongjiu.lu@intel.com>
* doc/binutils.texi: Document the new intel-mnemonic and
intel-mnemonic options for i386 disassembler.
gas/testsuite/
2007-12-22 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/compat-intel.d: New file.
* gas/i386/compat.d: Likewise.
* gas/i386/compat.s: Likewise.
* gas/i386/i386.exp: Run compat.
opcodes/
2007-12-22 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (intel_mnemonic): New.
(print_i386_disassembler_options): Display att-mnemonic and
intel-mnemonic options.
(print_insn): Handle att-mnemonic and intel-mnemonic.
(float_reg): Replace SYSV386_COMPAT with "!M" and "M".
(putop): Handle "!M" and "M".
Jim Blandy [Sat, 22 Dec 2007 06:44:28 +0000 (06:44 +0000)]
* gdb.asm/asm-source.exp: Use gdb_get_line_number, instead of
hard-coding source line numbers into the test.
* gdb.asm/asmsrc1.s, gdb.asm/asmsrc2.s: Add comments for
gdb_get_line_number to find.
Joel Brobecker [Sat, 22 Dec 2007 05:28:19 +0000 (05:28 +0000)]
* gdb.base/ptype.c (highest): New struct type.
(the_highest): New variable of that type.
(main): Add dummy assignment to a field of variable the_highest.
* gdb.base/ptype.exp: Test type printing of our new variable.
gdbadmin [Sat, 22 Dec 2007 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Bob Wilson [Fri, 21 Dec 2007 23:11:28 +0000 (23:11 +0000)]
* elf32-xtensa.c (relax_section): Update DIFF relocations in the
same way as other relocations.
Alan Modra [Fri, 21 Dec 2007 23:00:05 +0000 (23:00 +0000)]
daily update
H.J. Lu [Fri, 21 Dec 2007 17:04:04 +0000 (17:04 +0000)]
2007-12-21 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (i386-gen.o): Also depend on
$(srcdir)/../include/opcode/i386.h.
* Makefile.in: Regenerated.
Andreas Schwab [Fri, 21 Dec 2007 16:04:27 +0000 (16:04 +0000)]
* linux-low.c (STACK_SIZE): Define.
(linux_tracefork_child): Use it. Use __clone2 on ia64.
(linux_test_for_tracefork): Likewise.
Joel Brobecker [Fri, 21 Dec 2007 11:50:11 +0000 (11:50 +0000)]
* ada-lang.h (ada_renaming_category): New enumerated type.
(ada_lookup_encoded_symbol): Declare.
(ada_parse_renaming): Declare.
(ada_renaming_type,ada_is_object_renaming)
(ada_simple_renamed_entity): Delete declarations.
* ada-lang.c (ada_parse_renaming): New function to concentrate
extraction of information from renaming symbols.
(parse_old_style_renaming): New function to concentrate
extraction of old-style (purely type-based) renaming information.
(renaming_is_visible): Rename to...
(old_renaming_is_invisible): Rename and change sense of
renaming_is_visible.
(remove_out_of_scope_renamings): Rename to...
(remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
and augments with additional logic to handle cases where the same
object renaming is encoded both as a reference variable and an
encoded renaming.
(ada_renaming_type,ada_is_object_renaming)
(ada_simple_renamed_entity): Delete definitions.
(ada_lookup_encoded_symbol): New function factored out of
ada_lookup_symbol.
(ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
(wild_match): Don't reject perfect match of prefix.
(ada_find_renaming_symbol): Factor old-style renaming logic into
find_old_style_renaming_symbol.
(find_old_style_renaming_symbol): New name for content of old
ada_find_renaming_symbol.
(ada_prefer_type): Reimplement not to use ada_renaming_type.
* ada-exp.y (write_object_renaming): Change interface. Reimplement
to use new arguments and ada_parse_renaming.
Correct blocks used to find array index.
(write_var_or_type): Reimplement to use ada_parse_renaming.