binutils-gdb.git
15 years ago2009-07-11 Hui Zhu <teawater@gmail.com>
Hui Zhu [Sat, 11 Jul 2009 14:11:25 +0000 (14:11 +0000)]
2009-07-11  Hui Zhu  <teawater@gmail.com>

* gdb.base/help.exp (disassemble): Update expected help text.

15 years ago2009-07-11 Hui Zhu <teawater@gmail.com>
Hui Zhu [Sat, 11 Jul 2009 14:09:16 +0000 (14:09 +0000)]
2009-07-11  Hui Zhu  <teawater@gmail.com>

* gdb.texinfo (disassemble): Add a new modifier /r
to "disassemble" command to make it print the raw instructions
in hex as well as in symbolic form.

15 years ago2009-07-11 Hui Zhu <teawater@gmail.com>
Hui Zhu [Sat, 11 Jul 2009 14:04:23 +0000 (14:04 +0000)]
2009-07-11  Hui Zhu  <teawater@gmail.com>

* cli/cli-cmds.c (disassemble_command): Add a new modifier /r
to "disassemble" command to print the raw instructions in hex as
well as in symbolic form.
(init_cli_cmds): Ditto.
(print_disassembly): Change "mixed" to "flags" to translate
the behavior of disassemble.
(disassemble_current_function): Ditto.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
* stack.c (gdb_disassembly_stub): Ditto.
* disasm.c (do_mixed_source_and_assembly): Ditto.
(do_mixed_source_and_assembly): Ditto.
(do_assembly_only): Ditto.
(gdb_disassembly): Ditto.
(dump_insns): print the raw instructions in hex as well as in
symbolic form if DISASSEMBLY_RAW_INSN and flags is true.
* disasm.h (DISASSEMBLY_SOURCE): Include source code with the
assembly if it and flags is true.
(DISASSEMBLY_RAW_INSN): Include the raw instructions in hex with
the assembly if it and flags is true.
(gdb_disassembly): Update extern.
* NEWS: Document disassemble/r support.

15 years ago * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
Alan Modra [Sat, 11 Jul 2009 00:10:29 +0000 (00:10 +0000)]
* ldlang.c (insert_os_after): Don't tie assignments to non-alloc
output sections.

15 years agodaily update
Alan Modra [Sat, 11 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sat, 11 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * gdbint.texinfo (Testsuite): Document parallel make check.
Tom Tromey [Fri, 10 Jul 2009 19:38:00 +0000 (19:38 +0000)]
* gdbint.texinfo (Testsuite): Document parallel make check.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 19:31:54 +0000 (19:31 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc.exp: Don't chck static non-ifunc-using
executable.

15 years agogdb/doc
Tom Tromey [Fri, 10 Jul 2009 18:48:41 +0000 (18:48 +0000)]
gdb/doc
* gdbint.texinfo (Testsuite): Document test transcripts.
gdb/testsuite
* lib/gdb.exp: Handle TRANSCRIPT.
(remote_spawn, remote_close, send_gdb): New procs.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 18:38:27 +0000 (18:38 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* bfdio.c (bfd_iovec): Add comments for bmmap.
* bfd-in2.h: Regenerated.

15 years agobfd/
H.J. Lu [Fri, 10 Jul 2009 18:27:01 +0000 (18:27 +0000)]
bfd/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

binutils/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

gas/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

15 years ago2009-07-10 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 10 Jul 2009 16:58:54 +0000 (16:58 +0000)]
2009-07-10  Doug Kwan  <dougkwan@google.com>

* arm-disc.c (print_insn_coprocessor, print_insn_arm):  Print only
lower 32 bits of long types to make hexadecimal output consistent
on both 32-bit and 64-bit hosts.

15 years ago2009-07-10 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 10 Jul 2009 16:56:15 +0000 (16:56 +0000)]
2009-07-10  Doug Kwan  <dougkwan@google.com>

* elf32-arm.c (stub_hash_newfunc): Initialize fields
target_addend and orig_insn.

15 years agobfd
Tom Tromey [Fri, 10 Jul 2009 15:27:04 +0000 (15:27 +0000)]
bfd
* Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
(elf-eh-frame.lo): Likewise.
(elf32-bfin.lo): Likewise.
(elf32-frv.lo): Likewise.
(elf32-xc16x.lo): Likewise.
* Makefile.in: Rebuild.
* dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
* elf-eh-frame.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-xc16x.c: Likewise.
binutils
* Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h.
* Makefile.in: Rebuild.
* dwarf.c: Include dwarf2.h, not elf/dwarf2.h.
gas
* Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
elf/dwarf2.h.
(DEPTC_alpha_elf): Likewise.
(DEPTC_alpha_evax): Likewise.
(DEPTC_arm_elf): Likewise.
(DEPTC_hppa_elf): Likewise.
(DEPTC_i386_aout): Likewise.
(DEPTC_i386_coff): Likewise.
(DEPTC_i386_elf): Likewise.
(DEPTC_m68k_aout): Likewise.
(DEPTC_m68k_coff): Likewise.
(DEPTC_m68k_elf): Likewise.
(DEPTC_mips_coff): Likewise.
(DEPTC_mips_ecoff): Likewise.
(DEPTC_mips_elf): Likewise.
(DEPTC_ppc_coff): Likewise.
(DEPTC_ppc_elf): Likewise.
(DEPTC_s390_elf): Likewise.
(DEPTC_sh_coff): Likewise.
(DEPTC_sh_elf): Likewise.
(DEPTC_sh64_elf): Likewise.
(DEPTC_sparc_aout): Likewise.
(DEPTC_sparc_coff): Likewise.
(DEPTC_sparc_elf): Likewise.
(as.o): Likewise.
(dwarf2dbg.o): Likewise.
(dw2gencfi.o): Likewise.
(ehopt.o): Likewise.
(read.o): Likewise.
* Makefile.in: Rebuild.
* dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2dbg.c: Likewise.
* ehopt.c: Likewise.
gdb
* dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2expr.c: Likewise.
* dwarf2loc.c: Likewise.
* dwarf2read.c: Likewise.
* sh-tdep.c: Likewise.
* xtensa-tdep.c: Likewise.
include
* dwarf2.h: New file, moved from elf/.
include/elf

* dwarf2.h: Move to `..'.

15 years ago * elf32-arm.c (arm_build_one_stub): Use the hash entry of the
Julian Brown [Fri, 10 Jul 2009 14:57:00 +0000 (14:57 +0000)]
* elf32-arm.c (arm_build_one_stub): Use the hash entry of the
symbol a stub entry is derived from, not the entry for the stub
itself, in call to elf32_arm_final_link_relocate.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 14:47:16 +0000 (14:47 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf2.h: Just include ../dwarf2.h.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 14:30:21 +0000 (14:30 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-1-local-x86.d: Updated.
* ld-ifunc/ifunc-1-x86.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.

15 years agoRegenerate.
Alan Modra [Fri, 10 Jul 2009 14:20:41 +0000 (14:20 +0000)]
Regenerate.

15 years agogdb/
Jan Kratochvil [Fri, 10 Jul 2009 14:18:14 +0000 (14:18 +0000)]
gdb/
Tidy up the code.
* mi/mi-cmd-var.c (mi_cmd_var_update): Remove variable nv.  Move
variables var, rootlist and cr to their local sub-block.  Move the
make_cleanup_ui_out_tuple_begin_end, make_cleanup_ui_out_list_begin_end
and do_cleanups calls to the common base block.  Remove the zero NV
check.

15 years agobfd/
H.J. Lu [Fri, 10 Jul 2009 14:03:03 +0000 (14:03 +0000)]
bfd/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
when reporting  addends.

ld/testsuite/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-1-local-x86.d: Updated.
* ld-ifunc/ifunc-1-x86.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-local-x86-64.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.Likewise.

15 years ago * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
Alan Modra [Fri, 10 Jul 2009 14:00:38 +0000 (14:00 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
data even when no stubs.
(spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust.

15 years ago * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
Alan Modra [Fri, 10 Jul 2009 12:29:40 +0000 (12:29 +0000)]
* emultempl/ppc32elf.em (ppc_before_allocation): Turn on
linker relaxation if it might be necessary.

15 years agoSTT_GNU_IFUNC support for PowerPC.
Alan Modra [Fri, 10 Jul 2009 12:19:58 +0000 (12:19 +0000)]
STT_GNU_IFUNC support for PowerPC.

15 years ago2009-07-10 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Fri, 10 Jul 2009 10:35:17 +0000 (10:35 +0000)]
2009-07-10 Phil Muldoon  <pmuldoon@redhat.com>

* python/python-internal.h (apply_varobj_pretty_printer): Update
definition.
(python_string_to_target_python_string): Add definition.
* python/python-utils.c (unicode_to_encoded_python_string)
(unicode_to_target_python_string)
(python_string_to_target_python_string): New Functions.
* python/python-prettyprint.c (pretty_print_one_value): Likewise.
(print_string_repr): Refactor to logic to account for PyObject
returned strings.
(apply_varobj_pretty_printer): Likewise.
* python/python-value.c (valpy_string): Parse length keyword. Use
length keyword in LA_GET_STRING.
* varobj.c (value_get_print_value): Refactor logic to account for
PyObject returned strings.
* c-lang.c (c_get_string): If the length parameter is specified,
use that. Return value in characters. Update comments.
* language.h: Update c_get_string prototype comments.

2009-07-10  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Values From Inferior): Add length parameter
description.

2009-07-10 Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/python-prettyprint.c: Add counted null string
structure.
* gdb.python/python-prettyprint.exp: Print null string. Test for
embedded nulls.
* gdb.python/python-prettyprint.py (pp_ns): New Function.
* gdb.python/python-value.exp (test_value_in_inferior): Add
variable length string fetch tests.
* gdb.python/python-value.c (main): Add strings for string fetch tests.

15 years ago * elf.c (_bfd_elf_get_synthetic_symtab): Report addends.
Alan Modra [Fri, 10 Jul 2009 10:33:19 +0000 (10:33 +0000)]
* elf.c (_bfd_elf_get_synthetic_symtab): Report addends.

15 years ago * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
Alan Modra [Fri, 10 Jul 2009 10:04:20 +0000 (10:04 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
and ref_regular_nonweak comment.
* elflink.c (elf_link_output_extsym): Special case ifunc syms
when def_regular, not ref_regular.
(elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,..
* elf32-i386.c (elf_i386_check_relocs): ..set it here instead..
* elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here.

15 years agodaily update
Alan Modra [Fri, 10 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 10 Jul 2009 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * merge.cc (Object_merge_map::initialize_input_to_output_map):
Ian Lance Taylor [Thu, 9 Jul 2009 23:29:55 +0000 (23:29 +0000)]
* merge.cc (Object_merge_map::initialize_input_to_output_map):
Reserve space in the hash table.

15 years ago * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
Doug Evans [Thu, 9 Jul 2009 23:27:07 +0000 (23:27 +0000)]
* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
to read_memory_unsigned_integer.

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 21:01:15 +0000 (21:01 +0000)]
merge from gcc

15 years agogdb/
Jan Kratochvil [Thu, 9 Jul 2009 20:30:59 +0000 (20:30 +0000)]
gdb/
Report error on inaccessible memory.
* cli/cli-dump.c: Include gdbcore.h.
(dump_memory_to_file): Call read_memory instead of target_read_memory.

gdb/testsuite/
* gdb.base/dump.exp (inaccessible memory is reported): New test.

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 20:02:41 +0000 (20:02 +0000)]
merge from gcc

15 years ago2009-07-09 Hui Zhu <teawater@gmail.com>
Hui Zhu [Thu, 9 Jul 2009 13:39:17 +0000 (13:39 +0000)]
2009-07-09  Hui Zhu  <teawater@gmail.com>

* solib.c (solib_bfd_open): Output a warning if solib's
architecture is not compatible with inferior's architecture.

15 years agogdb/
Jan Kratochvil [Thu, 9 Jul 2009 12:50:47 +0000 (12:50 +0000)]
gdb/
* target.h (struct target_ops <to_thread_architecture>): Describe it.
(target_thread_architecture): Refer to to_thread_architecture.

15 years ago * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
Alan Modra [Thu, 9 Jul 2009 10:58:06 +0000 (10:58 +0000)]
* elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
of malloc'd struct call_info.
(pasted_function): Likewise, priority too.

15 years ago * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
Nick Clifton [Thu, 9 Jul 2009 07:52:37 +0000 (07:52 +0000)]
    * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
        (set_it_insn_type_nonvoid): New macro.
        (emit_thumb32_expr): New function.
        (thumb_insn_size): New function.
        (emit_insn): New function.
        (s_arm_elf_inst): New function.
        (md_pseudo_table): New pseudo-opcode entries added.
        * doc/c-arm.texi: New directive added.

        * gas/arm/inst-po.d: New testcase.
        * gas/arm/inst-po.s: New file.
        * gas/arm/inst-po-2.d: New testcase.
        * gas/arm/inst-po-2.s: New file.
        * gas/arm/inst-po-2.l: New file.
        * gas/arm/inst-po-3.d: New testcase.
        * gas/arm/inst-po-3.s: New file.
        * gas/arm/inst-po-be.d: New testcase.

15 years ago * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.
Pierre Muller [Thu, 9 Jul 2009 07:23:33 +0000 (07:23 +0000)]
* cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command.

15 years ago*** empty log message ***
gdbadmin [Thu, 9 Jul 2009 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 9 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.
Ulrich Weigand [Wed, 8 Jul 2009 12:03:01 +0000 (12:03 +0000)]
* tui/tui-stack.c (tui_make_status_line): Display PC as ?? if unknown.

15 years ago * Makefile.in (traps.o): Add dependency on targ-vals.h to fix
Doug Evans [Wed, 8 Jul 2009 06:16:46 +0000 (06:16 +0000)]
* Makefile.in (traps.o): Add dependency on targ-vals.h to fix
parallel makes.

15 years ago * Makefile.in (stamp-arch): Pass archfile to cgen-arch.
Doug Evans [Wed, 8 Jul 2009 05:38:01 +0000 (05:38 +0000)]
* Makefile.in (stamp-arch): Pass archfile to cgen-arch.
(stamp-cpu): Pass archfile to cgen-cpu-decode.

15 years ago * ld-selective/selective.exp: Remove check that $CC contains the
Alan Modra [Wed, 8 Jul 2009 03:09:13 +0000 (03:09 +0000)]
* ld-selective/selective.exp: Remove check that $CC contains the
string "gcc".  Do -dumpversion for $CXX.

15 years agodaily update
Alan Modra [Wed, 8 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 8 Jul 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * breakpoint.c (set_raw_breakpoint): Remove static modifier.
Pierre Muller [Tue, 7 Jul 2009 22:21:09 +0000 (22:21 +0000)]
* breakpoint.c (set_raw_breakpoint): Remove static modifier.

15 years agogdb
Tom Tromey [Tue, 7 Jul 2009 21:33:50 +0000 (21:33 +0000)]
gdb
* c-lang.c (convert_octal): Only allow 3 octal digits.
(print_wchar): Prefer 3-digit octal form.  Fall back to hex if
needed.
* c-exp.y (c_parse_escape): Only allow 3 octal digits.
gdb/testsuite
* gdb.base/call-rt-st.exp: Update for change to escape output.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/charset.exp: Likewise.
* gdb.base/constvars.exp: Likewise.
* gdb.base/long_long.exp: Likewise.
* gdb.base/pointers.exp: Likewise.
* gdb.base/printcmds.exp: Likewise.
* gdb.base/setvar.exp: Likewise.
* gdb.base/store.exp: Likewise.
* gdb.cp/ref-types.exp: Likewise.
* gdb.mi/mi-var-child.exp: Likewise.
* gdb.mi/mi-var-display.exp: Likewise.
* gdb.mi/mi2-var-display.exp: Likewise.
* gdb.base/charset.exp: Test octal escape sequence length.
Update for change to escape output.

15 years ago* config/tc-mep.c (md_begin): Don't reset the coprocessor options
DJ Delorie [Tue, 7 Jul 2009 21:12:52 +0000 (21:12 +0000)]
* config/tc-mep.c (md_begin): Don't reset the coprocessor options
when enabling other options without a specific configuration.

15 years ago2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Tue, 7 Jul 2009 21:03:00 +0000 (21:03 +0000)]
2009-07-07  Paul Pluzhnikov  <ppluzhnikov@google.com>

* python/python-value.c (valpy_getitem): Remove incorrect assert.

15 years ago2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Tue, 7 Jul 2009 19:36:09 +0000 (19:36 +0000)]
2009-07-07  Paul Pluzhnikov  <ppluzhnikov@google.com>

* python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.

15 years ago2009-07-07 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Tue, 7 Jul 2009 17:25:11 +0000 (17:25 +0000)]
2009-07-07  Sami Wagiaalla  <swagiaal@redhat.com>

* cp-support.h (struct using_direct): Rename members inner and
outer to import_src, and import_dest respectively.
* cp-namespace.c (cp_add_using_directive): Update.
(cp_add_using): Update.
(cp_copy_usings): Update.
(cp_lookup_symbol_namespace): Update.
(cp_scan_for_anonymous_namespaces): Update.
* cp-support.c (make_symbol_overload_list_using): Update.
* cp-support.h (cp_add_using_directive, cp_add_using): Rename
arguments from inner and outer to src and dest respectively.
* cp-namespace.c (cp_add_using_directive): Ditto.
(cp_add_using): Ditto.

15 years agogas/
Nick Clifton [Tue, 7 Jul 2009 16:15:32 +0000 (16:15 +0000)]
gas/
    * config/tc-arm.c (insns): Fix encoding for torvsc.

gas/testsuite/
    * gas/arm/iwmmxt2.d: Fix insn pattern for torvsc,
    add patterns for waddsubhx.
    * gas/arm/iwmmxt2.s: Add tests for waddsubhx.

opcodes/
    * arm-dis.c (coprocessor_opcodes): Fix mask for waddbhus.

15 years ago PR 10288
Nick Clifton [Tue, 7 Jul 2009 14:46:14 +0000 (14:46 +0000)]
    PR 10288
        * arm-dis.c (arm_opcodes): Be more strict about decoding scaled
        addressing modes.

15 years ago2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 7 Jul 2009 13:57:46 +0000 (13:57 +0000)]
2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/fma4.d: Append "#pass".
* gas/i386/x86-64-fma4.d: Likewise.

15 years agogdb/
Jan Kratochvil [Tue, 7 Jul 2009 09:26:13 +0000 (09:26 +0000)]
gdb/
* mi/mi-cmd-var.c (mi_cmd_var_update): Replace a while loop by for loop.
* varobj.c (varobj_invalidate): Replace a while loop by for loop.

15 years agogdb/testsuite/
Jan Kratochvil [Tue, 7 Jul 2009 09:25:38 +0000 (09:25 +0000)]
gdb/testsuite/
* gdb.mi/mi2-var-cmd.exp (floating varobj invalidation): New test.

15 years ago Fix hang in floating varobjs.
Vladimir Prus [Tue, 7 Jul 2009 08:51:31 +0000 (08:51 +0000)]
Fix hang in floating varobjs.

* varob.c (varobj_invalidate): Advance to next
element when processing floating varobj.

15 years ago * varobj.c: Remove unnecessary include.
Vladimir Prus [Tue, 7 Jul 2009 08:47:10 +0000 (08:47 +0000)]
* varobj.c: Remove unnecessary include.

15 years ago2009-07-07 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 7 Jul 2009 08:29:58 +0000 (08:29 +0000)]
2009-07-07  Tristan Gingold  <gingold@adacore.com>

* gas/i386/jump.d: Adjust to be relocated offset for jump to external
symbol.

15 years ago * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
Doug Evans [Tue, 7 Jul 2009 08:09:19 +0000 (08:09 +0000)]
* Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
identifiers for file types rather than encoding internal
implementation details of cgen.sh.
(CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
* cgen.sh: Add support for parallel makes.
Rewrite cpu/decode handling to avoid generating "extrafiles" twice.

15 years ago2009-07-07 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 7 Jul 2009 07:47:22 +0000 (07:47 +0000)]
2009-07-07  Tristan Gingold  <gingold@adacore.com>

* config/i386/darwin.mh (NATDEPFILES): Remove excServer.o.
Remove excServer.c target.  Remove _all target.
* darwin.defs: Removed.

15 years ago * elf32-spu.c (spu_elf_auto_overlay): Take into account section
Alan Modra [Tue, 7 Jul 2009 03:26:47 +0000 (03:26 +0000)]
* elf32-spu.c (spu_elf_auto_overlay): Take into account section
alignment when packing sections into overlays.

15 years ago[cgen]
DJ Delorie [Tue, 7 Jul 2009 01:56:05 +0000 (01:56 +0000)]
[cgen]

* cpu/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
* cpu/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
unspecified accesses to control registers.

[sid/component/cgen-cpu/mep]

* mep-cop1-16-decode.cxx: Regenerate.
* mep-cop1-16-decode.h: Regenerate.
* mep-cop1-16-defs.h: Regenerate.
* mep-cop1-16-model.cxx: Regenerate.
* mep-cop1-16-model.h: Regenerate.
* mep-cop1-16-sem.cxx: Regenerate.
* mep-cop1-32-decode.cxx: Regenerate.
* mep-cop1-32-decode.h: Regenerate.
* mep-cop1-32-defs.h: Regenerate.
* mep-cop1-32-model.cxx: Regenerate.
* mep-cop1-32-model.h: Regenerate.
* mep-cop1-32-sem.cxx: Regenerate.
* mep-cop1-48-decode.cxx: Regenerate.
* mep-cop1-48-decode.h: Regenerate.
* mep-cop1-48-defs.h: Regenerate.
* mep-cop1-48-model.cxx: Regenerate.
* mep-cop1-48-model.h: Regenerate.
* mep-cop1-48-sem.cxx: Regenerate.
* mep-cop1-64-decode.cxx: Regenerate.
* mep-cop1-64-decode.h: Regenerate.
* mep-cop1-64-defs.h: Regenerate.
* mep-cop1-64-model.cxx: Regenerate.
* mep-cop1-64-model.h: Regenerate.
* mep-cop1-64-sem.cxx: Regenerate.
* mep-core1-decode.cxx: Regenerate.
* mep-core1-decode.h: Regenerate.
* mep-core1-defs.h: Regenerate.
* mep-core1-model.cxx: Regenerate.
* mep-core1-model.h: Regenerate.
* mep-core1-sem.cxx: Regenerate.
* mep-cpu.h: Regenerate.
* mep-decode.cxx: Regenerate.
* mep-decode.h: Regenerate.
* mep-defs.h: Regenerate.
* mep-desc.h: Regenerate.
* mep-model.cxx: Regenerate.
* mep-model.h: Regenerate.
* mep-sem.cxx: Regenerate.

[opcodes]

* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

15 years ago*** empty log message ***
gdbadmin [Tue, 7 Jul 2009 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Tue, 7 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * fileread.cc (File_read::get_mtime): New method.
Ian Lance Taylor [Mon, 6 Jul 2009 23:11:21 +0000 (23:11 +0000)]
* fileread.cc (File_read::get_mtime): New method.
* fileread.h (Timespec): New structure.
(File_read::get_mtime): New method.
* incremental.cc (Incremental_inputs_entry_data::timestamp_usec):
Renamed from timestamp_nsec.
(Incremental_inputs_entry_write::timestamp_sec): Fix argument to
Elf_Xword.
(Incremental_inputs_entry_write::timestamp_usec): Renamed from
timestamp_nsec.
(Incremental_inputs::report_archive): Save mtime; style fix.
(Incremental_inputs::report_obejct): Save mtime; style fix.
(Incremental_inputs::report_script): Save mtime; style fix.
(Incremental_inputs::finalize_inputs): Style fix.
(Incremental_inputs::finalize): Style fix.
(Incremental_inputs::create_input_section_data): Store inputs
mtime.
* incremental.h (Incremental_inputs::report_script): Add mtime
argument.
(Incremental_inputs::Input_info::Input_info): Intialize only one
union member.
(Incremental_inputs::Input_info::archive): Move to nameless
union.
(Incremental_inputs::Input_info::obejct): Move to nameless union.
(Incremental_inputs::Input_info::script): Move to nameless union.
(Incremental_inputs::mtime): New field.
* script.cc (read_input_script): Pass file mtime to
Incremental_input.
* script.h (Script_info::inputs): Style fix.

15 years ago<gas changes>
Dwarakanath Rajagopal [Mon, 6 Jul 2009 19:34:30 +0000 (19:34 +0000)]
<gas changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* config/tc-i386.c (cpu_arch): Add .fma4 and CPU_FMA4_FLAGS.
(build_modrm_byte): Add support to handle FMA4 instructions.
(md_show_usage): Add fma4.

<gas/testsuite changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* gas/i386/i386.exp: Add FMA4 tests.
* gas/i386/x86-64-fma4.d: Ditto.
* gas/i386/fma4.d: Ditto.
* gas/i386/x86-64-fma4.s: Ditto.
* gas/i386/fma4.s: Ditto.

<opcodes changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* i386-opc.h (CpuFMA4): Add CpuFMA4.
(i386_cpu_flags): New.
* i386-gen.c: Add CPU_FMA4_FLAGS.
* i386-opc.tbl: Add FMA4 instructions.
* i386-tbl.h: Regenerate.
* i386-init.h: Regenerate.
* i386-dis.c (OP_VEX_FMA): New. Handle FMA4.
(OP_XMM_VexW): Ditto.
(OP_EX_VexW): Ditto.
(VEXI4_Fixup): Ditto.
(VexI4, VexFMA, Vex128FMA, EXVexW, EXdVexW, XMVexW): New Macros.
(PREFIX_VEX_3A5C, PREFIX_VEX_3A5D, PREFIX_VEX_3A5E): New.
(PREFIX_VEX_3A5F, PREFIX_VEX_3A60): New.
(PREFIX_VEX_3A68, PREFIX_VEX_3A69, PREFIX_VEX_3A6A): New.
(PREFIX_VEX_3A6B, PREFIX_VEX_3A6C, PREFIX_VEX_3A6D): New.
(PREFIX_VEX_3A6E, PREFIX_VEX_3A6F, PREFIX_VEX_3A7A): New.
(PREFIX_VEX_3A7B, PREFIX_VEX_3A7C, PREFIX_VEX_3A7D): New.
(PREFIX_VEX_3A7E, PREFIX_VEX_3A7F): New.
(VEX_LEN_3A6A_P_2,VEX_LEN_3A6B_P_2, VEX_LEN_3A6E_P_2): New.
(VEX_LEN_3A6F_P_2,VEX_LEN_3A7A_P_2, VEX_LEN_3A7B_P_2): New.
(VEX_LEN_3A7E_P_2,VEX_LEN_3A7F_P_2): New.
(get_vex_imm8): New. handle FMA4.
(OP_EX_VexReg): Ditto.

15 years ago * lib/java.exp (java_init): Ignore $GCJ if it is empty.
Daniel Jacobowitz [Mon, 6 Jul 2009 19:14:01 +0000 (19:14 +0000)]
* lib/java.exp (java_init): Ignore $GCJ if it is empty.

15 years ago* configure.tgt (i[34567]86-*-nto*): Add build_gdbserver=yes.
Aleksandar Ristovski [Mon, 6 Jul 2009 18:52:14 +0000 (18:52 +0000)]
* configure.tgt (i[34567]86-*-nto*): Add build_gdbserver=yes.

15 years agogdb/testsuite/
Jan Kratochvil [Mon, 6 Jul 2009 18:51:10 +0000 (18:51 +0000)]
gdb/testsuite/
* lib/gdbserver-support.exp (gdbserver_start): Loop spawning
gdbserver increasing $portnum if "Can't bind address" has been seen.

15 years ago Adding Neutrino gdbserver.
Aleksandar Ristovski [Mon, 6 Jul 2009 18:31:20 +0000 (18:31 +0000)]
Adding Neutrino gdbserver.
* configure: Regenerated.
* configure.ac: Add case for srv_qnx and set LIBS accordingly.
* configure.srv (i[34567]86-*-nto*): New target.
* nto-low.c, nto-low.h, nto-x86-low.c: New files.
* remote-utils.c [__QNX__]: Include sys/iomgr.h
(nto_comctrl) [__QNX__]: New function.
(enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.

15 years agogdb/
Jan Kratochvil [Mon, 6 Jul 2009 18:23:47 +0000 (18:23 +0000)]
gdb/
* source.c (find_and_open_source): Remove the `objfile' parameter.
Update the function comment.
(open_source_file, symtab_to_fullname, psymtab_to_fullname): Update the
find_and_open_source callers.

15 years ago2009-07-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 6 Jul 2009 14:45:56 +0000 (14:45 +0000)]
2009-07-06  Tristan Gingold  <gingold@adacore.com>

* objdump.c (dump_dwarf_section): Handle .eh_frame like other dwarf
sections.
* dwarf.h (struct dwarf_section_display): Remove eh_frame field.
* dwarf.c (debug_displays): Adjust for removed field.

15 years ago * ld.texinfo: Fix typo.
Nick Clifton [Mon, 6 Jul 2009 13:48:51 +0000 (13:48 +0000)]
    * ld.texinfo: Fix typo.

15 years ago*** empty log message ***
gdbadmin [Mon, 6 Jul 2009 00:01:05 +0000 (00:01 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 6 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years agoOoops. Fix date.
Pedro Alves [Sun, 5 Jul 2009 22:58:53 +0000 (22:58 +0000)]
Ooops.  Fix date.

15 years ago * gdb.base/ending-run.exp: Add "step out of main" pattern for
Pedro Alves [Sun, 5 Jul 2009 22:38:19 +0000 (22:38 +0000)]
* gdb.base/ending-run.exp: Add "step out of main" pattern for
mingw32ce.

15 years ago * gdb.base/long_long.exp: arm-mingw32ce defaults to natural-endian
Pedro Alves [Sun, 5 Jul 2009 22:21:40 +0000 (22:21 +0000)]
* gdb.base/long_long.exp: arm-mingw32ce defaults to natural-endian
VFP format.

15 years ago * coff-pe-read.c (read_pe_exported_syms): Recognize
Pedro Alves [Sun, 5 Jul 2009 22:02:39 +0000 (22:02 +0000)]
* coff-pe-read.c (read_pe_exported_syms): Recognize
"pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE
targets.

15 years ago * arm-wince-tdep.c (arm_wince_skip_main_prologue): New.
Pedro Alves [Sun, 5 Jul 2009 21:23:43 +0000 (21:23 +0000)]
* arm-wince-tdep.c (arm_wince_skip_main_prologue): New.
(arm_wince_init_abi): Register it as gdbarch_skip_main_prologue
callback.

15 years ago * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
Pedro Alves [Sun, 5 Jul 2009 19:30:09 +0000 (19:30 +0000)]
* configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
srv_tgtobj.

15 years ago*** empty log message ***
gdbadmin [Sun, 5 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sun, 5 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * win32-i386-low.c (i386_get_thread_context): Handle systems that
Pedro Alves [Sat, 4 Jul 2009 18:13:28 +0000 (18:13 +0000)]
* win32-i386-low.c (i386_get_thread_context): Handle systems that
don't support CONTEXT_EXTENDED_REGISTERS.
(i386_win32_breakpoint, i386_win32_breakpoint_len): New.
(the_low_target): Install them.
* win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
failing with ERROR_PIPE_NOT_CONNECTED.

15 years ago*** empty log message ***
Eli Zaretskii [Sat, 4 Jul 2009 12:12:20 +0000 (12:12 +0000)]
*** empty log message ***

15 years ago * gdb.texinfo (GDB/MI Variable Objects): Document child definition
Eli Zaretskii [Sat, 4 Jul 2009 12:12:04 +0000 (12:12 +0000)]
* gdb.texinfo (GDB/MI Variable Objects): Document child definition
in -var-list-children.  Fix example according to what the code
does.

15 years ago * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.
Alan Modra [Sat, 4 Jul 2009 01:50:44 +0000 (01:50 +0000)]
* config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.

15 years ago*** empty log message ***
gdbadmin [Sat, 4 Jul 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 4 Jul 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago2009-07-03 Cary Coutant <ccoutant@google.com>
Dave Korn [Fri, 3 Jul 2009 17:02:43 +0000 (17:02 +0000)]
2009-07-03  Cary Coutant  <ccoutant@google.com>

* dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator.

15 years ago2009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
Dave Korn [Fri, 3 Jul 2009 16:07:38 +0000 (16:07 +0000)]
2009-07-03  Dave Korn  <dave.korn.cygwin@gmail.com>

* coffcode.h (sec_to_styp_flags):  Partially revert (functional
changes only) earlier patch:-

  2009-06-25  Kai Tietz  <kai.tietz@onevision.com>

  * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
  give .debug and .reloc data characteristics.
  (DOT_RELOC): New define for .reloc section string.
  (coff_write_object_contents): Use DOT_RELOC instead of string.

15 years ago2009-06-29 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 3 Jul 2009 12:06:36 +0000 (12:06 +0000)]
2009-06-29  Tristan Gingold  <gingold@adacore.com>

* i386-darwin-tdep.c (amd64_darwin_thread_state_reg_offset)
(amd64_darwin_thread_state_num_regs)
(amd64_darwin_sigcontext_addr, x86_darwin_init_abi_64): Moved to
amd64-darwin-tdep.c
(_initialize_i386_darwin_tdep): Remove 64 bits parts.
(darwin_dwarf_signal_frame_p): Make public.
* amd64-darwin-tdep.c: New file with most chunks from
i386-darwin-tdep.c
* i386-darwin-tdep.h: Add a prototype for darwin_dwarf_signal_frame_p.
(amd64_darwin_thread_state_reg_offset)
(amd64_darwin_thread_state_num_regs): Moved to amd64-darwin-tdep.h
* amd64-darwin-tdep.h: New file.
* i386-darwin-nat.c: Only includes amd64-nat.h and amd64-darwin-tdep.h
if BFD64 is defined.
(i386_darwin_fetch_inferior_registers): Add #ifdef BFD64/#endif around
64 bits parts.
(i386_darwin_store_inferior_registers): Ditto.
(darwin_set_sstep): Ditto.
(darwin_complete_target): Ditto.
(amd64_darwin_sstep_at_sigreturn): Ditto.
* configure.tgt: Create a separate entry for x86_64-*-darwin.
Add 64 bits support for i386-*-darwin if --enable-64-bit-bfd.
* Makefile.in (ALLDEPFILES): Add amd64-darwin-tdep.c, darwin-nat.c,
i386-darwin-tdep.c i386-darwin-nat.c
(ALL_64_TARGET_OBS): Add amd64-darwin-tdep.o

15 years ago2009-07-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 3 Jul 2009 10:44:57 +0000 (10:44 +0000)]
2009-07-03  Tristan Gingold  <gingold@adacore.com>

* scripttempl/pep.sc: Put .eh_frame in its own section.
* scripttempl/pe.sc: Ditto.

15 years ago * dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value
Jakub Jelinek [Fri, 3 Jul 2009 08:53:50 +0000 (08:53 +0000)]
* dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value
and DW_OP_stack_value.

* dwarf.c (decode_location_expression): Handle DW_OP_stack_value
and DW_OP_implicit_value.

15 years agodaily update
Alan Modra [Fri, 3 Jul 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Fri, 3 Jul 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * linux-fork.c (forks_exist_p): Drop unnecessary extern.
Pedro Alves [Thu, 2 Jul 2009 22:24:07 +0000 (22:24 +0000)]
* linux-fork.c (forks_exist_p): Drop unnecessary extern.
(add_fork, linux_fork_killall, linux_fork_mourn_inferior)
(linux_fork_detach): Ditto.
(delete_fork_command): Rename to ...
(delete_checkpoint_command): ... this.
(detach_fork_command): Rename to ...
(detach_checkpoint_command): ... this.
(info_forks_command): Rename to ...
(info_checkpoints_command): ... this.
(_initialize_linux_fork): Remove stale comments.  Adjust.

15 years agogdb/
Pedro Alves [Thu, 2 Jul 2009 21:57:28 +0000 (21:57 +0000)]
gdb/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (linux_child_follow_fork): If we're staying attached
to the child process, enable event reporting on it.  Don't handle
checkpoints here.  Instead, add the child fork to the lwp thread
and inferior lists without clobbering the previous inferior.  Let
the thread_db layer learn about a new child process, even if
following the parent.
(linux_nat_switch_fork): Delete lwps of the current inferior only,
instead of clearing the whole list.  Use thread_change_ptid to
give the core the illusion the new checkpoint is still the same
inferior.  Clear the register cache.
(linux_handle_extended_wait): Handle checkpoints here.
(linux_multi_process): Turn on.
* linux-fork.c (struct fork_info) <pc>: Remove field.
(init_fork_list): Do not delete the checkpoint from the inferior
list (it is not there).
(fork_load_infrun_state): Don't switch inferior_ptid here.  Pass
the new checkpoint's ptid to linux_nat_switch_fork.
(fork_save_infrun_state): Make static.  Don't stop the pc field of
fork_info, it's gone.
(linux_fork_mourn_inferior): Don't delete the checkpoint from the
inferior list, it's not there.
(linux_fork_detach): Ditto.
(delete_fork_command): Replace mention of fork/checkpoint by
checkpoint only.
(detach_fork_command): Likewise.  Don't delete the checkpoint from
the inferior list.
(info_forks_command): Adjust.
(restore_detach_fork): Delete.
(checkpointing_pid): New.
(linux_fork_checkpointing_p): New.
(save_detach_fork): Delete.
(checkpoint_command): Delete temp_detach_fork.  Don't remove
breakpoints, that's a nop.  Store the pid of the process we're
checkpointing, and use make_cleanup_restore_integer to restore it.
Don't reinsert breakpoints here.
(process_command, fork_command): Delete.
(restart_command): Update comments to only mention checkpoints,
not forks.
(_initialize_linux_fork): Delete "fork", "process", "info forks"
commands.
* linux-fork.h (fork_save_infrun_state, fork_list): Delete
declarations.
(linux_fork_checkpointing_p): Declare.
* cli/cli-cmds.c (killlist): New.
* cli/cli-cmds.h (killlist): Declare.
* gdbcmd.h (killlist): Declare.
* inferior.c: Include "gdbthread.h".
(detach_inferior_command, kill_inferior_command)
(inferior_command): New.
(info_inferiors_command): Allow specifying a specific inferior id.
(_initialize_inferiors): Register "inferior", "kill inferior" and
"detach inferior" commands.
* infcmd.c (_initialize_infcmd): Make "kill" a prefix command.
* gdbthread.h (any_thread_of_process): Declare.
* thread.c (any_thread_of_process): New.

* NEWS: Mention multi-inferior debugging.  Mention 'info
inferiors', 'inferior', 'detach inferior' and 'kill inferior' as
new commands.
(Removed commands): New section, mentioning that 'info forks',
'fork', 'process', 'delete fork' and 'detach fork' are now gone.

gdb/testsuite/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/multi-forks.exp: Only run detach-on-fork tests on
linux.  Adjust to use "inferior", "info inferiors", "detach
inferior" and "kill inferior" instead of "restart", "info fork",
"detach fork" and "delete fork".
* gdb.base/ending-run.exp: Spell out "info".
* gdb.base/help.exp: Adjust to use test_prefix_command_help for
the "kill" command.

gdb/doc/
2009-07-02  Pedro Alves  <pedro@codesourcery.com>

* gdb.texinfo (Debugging multiple inferiors): Document the
"inferior", "detach inferior" and "kill inferior" commands.
(Debugging Programs with Multiple Processes): Adjust to mention
generic "inferior" commands.  Delete mention of "detach fork" and
"delete fork".  Cross reference to "Debugging multiple inferiors"
section.