Jan Kratochvil
01a8f077ed
binutils/
...
Support unordered .debug_info references to .debug_ranges.
* dwarf.c (struct range_entry, range_entry_compar): New.
(display_debug_ranges): Remove variables last_offset, first, j,
seen_first_offset, use_debug_info and next. New variables
range_entries and range_entry_fill. Create the sorted copy
range_entries. Remove the FIXME error on detected unordered references.
* dwarf.h (debug_info <range_lists>): New comment.
binutils/testsuite/
* binutils-all/objcopy.exp (testranges): New test.
* binutils-all/testranges.d, binutils-all/testranges.s: New files.
2009-07-14 16:57:18 +00:00
Nick Clifton
140033b391
* config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
...
(MAX_MEM_FOR_RS_ALIGN_CODE): Define in terms of
MAX_MEM_ALIGNMENT_BYTES.
* config/tc-arm.c (arm_frag_align_code): Replace hard coded
constant with MAX_MEM_FOR_RS_ALIGN_CODE.
* gas/arm/align64.s: New test case.
* gas/arm/align64.d: Expected disassembly.
2009-07-14 15:47:13 +00:00
Nick Clifton
63b33ceb0b
PR 10387
...
* config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer.
(ARM_IS_FUNC): Likewise.
2009-07-14 15:38:20 +00:00
Ulrich Weigand
b101f7a125
* objfiles.c (objfile_relocate): Do not relocate the same
...
BLOCKVECTOR_MAP address map multiple times.
2009-07-14 14:55:06 +00:00
Ulrich Weigand
217f1f7954
* remote.c (process_stop_reply): Access expedited target registers
...
in target_gdbarch.
2009-07-14 14:53:41 +00:00
Nick Clifton
74bdfecf08
PR 10288
...
* arm-dis.c (arm_opcodes): Catch illegal Addressing Mode 1
patterns.
(arm_decode_shift): Catch illegal register based shifts.
(print_insn_arm): Properly handle negative register r0
post-indexed addressing.
2009-07-14 14:16:34 +00:00
Nick Clifton
752d5da452
gas/
...
* config/tc-arm.c (md_assemble): Added validation.
gas/testsuite
* gas/arm/thumb-w-bad.d: New test case.
* gas/arm/thumb-w-bad.l: New file.
* gas/arm/thumb-w-bad.s: New file.
* gas/arm/thumb-w-good.d: New test case.
* gas/arm/thumb-w-good.s: New file.
2009-07-14 12:54:47 +00:00
Nick Clifton
1aa604e175
PR 10380
...
* README: Document use of LDFLAGS="--static".
2009-07-14 07:43:18 +00:00
Alan Modra
650b89be7e
daily update
2009-07-14 00:00:05 +00:00
gdbadmin
f9930c508d
*** empty log message ***
2009-07-14 00:00:03 +00:00
Jan Kratochvil
8f31392312
gdb/
...
Fix memory access from signed 32bit inferior registers on 64bit GDB.
* linux-nat.c (linux_xfer_partial <TARGET_OBJECT_MEMORY>): New variable
addr_bit. Mask OFFSET by the ADDR_BIT width.
gdb/testsuite/
* gdb.arch/amd64-i386-address.exp, gdb.arch/amd64-i386-address.S: New.
2009-07-13 20:16:48 +00:00
Jan Kratochvil
4662c76e91
gdb/testsuite/
...
Fix gdb.base/macscp.exp when using custom inputrc.
* gdb.base/completion.exp: Remove env(INPUTRC) set and restore.
* gdb.base/readline.exp: Remove env(INPUTRC) set and restore. Remove
env(TERM) set.
* gdb.cp/cpcompletion.exp: Remove env(INPUTRC) set.
* lib/gdb.exp (default_gdb_start): Add env(INPUTRC) and env(TERM) set.
2009-07-13 19:24:18 +00:00
Jan Kratochvil
aa81e255f3
gdb/testsuite/
...
Fix racy clashing of output files for gdb.base{1,2}/ parallel run.
* gdb.base/annota1.exp (thread_test): Import global $testfile.
Change the compilation target to match the testcase name.
* gdb.base/sect-cmd.exp: Change the compilation target to match the
testcase name.
* a2-run.exp: Use for setup prepare_for_testing. Change the
compilation target to match the testcase name.
* gdb.base/commands.exp: Likewise.
* gdb.base/finish.exp: Likewise.
* gdb.base/float.exp: Likewise.
* gdb.base/info-target.exp: Likewise.
* gdb.base/relational.exp: Likewise.
* gdb.base/term.exp: Likewise.
* gdb.base/until.exp: Likewise.
* gdb.base/volatile.exp: Likewise.
* gdb.base/whatis-exp.exp: Likewise.
2009-07-13 19:20:39 +00:00
H.J. Lu
37bbf52bcd
Fix a typo.
2009-07-13 16:55:09 +00:00
H.J. Lu
be19bd519b
2009-07-13 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-ifunc/ifunc.exp: Don't use -shared/-static to build object
files. Use ld_simple_link to build static non-ifunc-using
executable. Re-enable static non-ifunc-using executable check.
2009-07-13 16:52:37 +00:00
Anthony Green
451fa05e5d
Add process recording support to the moxie gdb port.
2009-07-13 04:56:14 +00:00
Alan Modra
d990c8ab76
daily update
2009-07-13 00:00:05 +00:00
gdbadmin
93466eda94
*** empty log message ***
2009-07-13 00:00:02 +00:00
Michael Snyder
06da04c610
2009-07-12 Michael Snyder <msnyder@vmware.com>
...
* i386-tdep.c: Add a frame unwinder for function epilogues.
(i386_in_function_epilogue_p): New function.
(i386_epilogue_frame_sniffer): New function.
(i386_epilogue_frame_cache): New function.
(i386_epilogue_frame_this_id): New function.
(i386_epilogue_frame_unwind): New struct frame_unwind.
(i386_gdbarch_init): Hook the new unwinder.
2009-07-12 17:46:21 +00:00
Doug Evans
6a8b86150e
* common/Make-common.in (CPU_DIR): Define.
...
* iq2000/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu): Ditto.
* m32r/Makefile.in (stamp-arch): Use $(CPU_DIR) instead of $(CGEN_CPU_DIR).
(stamp-cpu, stamp-xcpu, stamp-2cpu): Ditto.
2009-07-12 16:59:34 +00:00
Alan Modra
5a12aa1e46
daily update
2009-07-12 00:00:05 +00:00
gdbadmin
ffbb1eb245
*** empty log message ***
2009-07-12 00:00:03 +00:00
Hui Zhu
858031d911
This is the part of prev commit.
2009-07-11 14:41:38 +00:00
Hui Zhu
4c93b1d7e3
2009-07-11 Hui Zhu <teawater@gmail.com>
...
* gdb.base/help.exp (disassemble): Update expected help text.
2009-07-11 14:11:25 +00:00
Hui Zhu
9b117ef31f
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.
2009-07-11 14:09:16 +00:00
Hui Zhu
e6158f167b
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.
2009-07-11 14:04:23 +00:00
Alan Modra
0fa4d7cf2d
* ldlang.c (insert_os_after): Don't tie assignments to non-alloc
...
output sections.
2009-07-11 00:10:29 +00:00
Alan Modra
43dd447d91
daily update
2009-07-11 00:00:05 +00:00
gdbadmin
44e0e2ae2a
*** empty log message ***
2009-07-11 00:00:03 +00:00
Tom Tromey
f5a3328452
* gdbint.texinfo (Testsuite): Document parallel make check.
2009-07-10 19:38:00 +00:00
H.J. Lu
552deff831
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-ifunc/ifunc.exp: Don't chck static non-ifunc-using
executable.
2009-07-10 19:31:54 +00:00
Tom Tromey
812f734247
gdb/doc
...
* gdbint.texinfo (Testsuite): Document test transcripts.
gdb/testsuite
* lib/gdb.exp: Handle TRANSCRIPT.
(remote_spawn, remote_close, send_gdb): New procs.
2009-07-10 18:48:41 +00:00
H.J. Lu
f07749bbae
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
...
* bfdio.c (bfd_iovec): Add comments for bmmap.
* bfd-in2.h: Regenerated.
2009-07-10 18:38:27 +00:00
H.J. Lu
8455dd2cf7
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.
2009-07-10 18:27:01 +00:00
Doug Kwan
d1aaab3c71
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.
2009-07-10 16:58:54 +00:00
Doug Kwan
cedfb17907
2009-07-10 Doug Kwan <dougkwan@google.com>
...
* elf32-arm.c (stub_hash_newfunc): Initialize fields
target_addend and orig_insn.
2009-07-10 16:56:15 +00:00
Tom Tromey
fa8f86ff3b
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 `..'.
2009-07-10 15:27:04 +00:00
Julian Brown
33c6a8fcd6
* 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.
2009-07-10 14:57:00 +00:00
H.J. Lu
1bffd25b50
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
...
* dwarf2.h: Just include ../dwarf2.h.
2009-07-10 14:47:16 +00:00
H.J. Lu
e697f5a267
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.
2009-07-10 14:30:21 +00:00
Alan Modra
87337981d9
Regenerate.
2009-07-10 14:20:41 +00:00
Jan Kratochvil
6e9ef2a82d
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.
2009-07-10 14:18:14 +00:00
H.J. Lu
1d77084592
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.
2009-07-10 14:03:03 +00:00
Alan Modra
52cfded73c
* 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.
2009-07-10 14:00:38 +00:00
Alan Modra
4135c73ba2
* emultempl/ppc32elf.em (ppc_before_allocation): Turn on
...
linker relaxation if it might be necessary.
2009-07-10 12:29:40 +00:00
Alan Modra
e054468f6c
STT_GNU_IFUNC support for PowerPC.
2009-07-10 12:19:58 +00:00
Phil Muldoon
fbb8f2990c
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.
2009-07-10 10:35:17 +00:00
Alan Modra
041de40dc8
* elf.c (_bfd_elf_get_synthetic_symtab): Report addends.
2009-07-10 10:33:19 +00:00
Alan Modra
7ae26bc141
* 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.
2009-07-10 10:04:20 +00:00
Alan Modra
af7b385cb9
daily update
2009-07-10 00:00:05 +00:00