Andrey Smirnov [Mon, 5 Dec 2011 03:48:29 +0000 (03:48 +0000)]
* amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
of `tdep'(-Wshadow).
gdbadmin [Mon, 5 Dec 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 4 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 4 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 3 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
Jan Kratochvil [Sat, 3 Dec 2011 20:20:29 +0000 (20:20 +0000)]
gdb/testsuite/
* gdb.base/break-entry.exp: Move the target use_gdb_stub test before
starting GDB.
* gdb.base/default.exp: Replace target use_gdb_stub checks by global
$use_gdb_stub.
* gdb.base/display.exp: Likewise.
* gdb.base/ending-run.exp: Likewise.
* gdb.base/list.exp (test_listsize): Likewise.
* gdb.base/setshow.exp: Likewise.
* gdb.base/valgrind-db-attach.exp: Set global use_gdb_stub to 1.
* lib/gdb.exp (gdb_run_cmd, gdb_start_cmd): Replace target use_gdb_stub
check by global $use_gdb_stub.
(gdb_test_multiple): Forbid run, start or attach for !$use_gdb_stub.
(default_gdb_start): Set global use_gdb_stub from target use_gdb_stub.
(default_gdb_init): Unset global $use_gdb_stub.
(gdb_continue_to_end, rerun_to_main): Replace target use_gdb_stub check
by global $use_gdb_stub.
* lib/gdbserver-support.exp: Extend comments for set_board_info
gdb_protocol and gdb,socketport.
(gdbserver_start_extended): Set global gdbserver_protocol and
gdbserver_gdbport. Clear global use_gdb_stub.
* lib/mi-support.exp (default_mi_gdb_start): Set global use_gdb_stub
from target use_gdb_stub.
(mi_run_cmd): Replace target use_gdb_stub check by global $use_gdb_stub.
Mike Frysinger [Sat, 3 Dec 2011 19:05:15 +0000 (19:05 +0000)]
sim: bfin: lookup target strings when tracing system calls
Parsing target addresses is hard if not generally useless, so use the new
cb_get_string function to lookup the associated strings as well. Now the
trace output is quickly useful instead of just marginally so.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sat, 3 Dec 2011 18:39:43 +0000 (18:39 +0000)]
sim: export cb_get_string for people to use
The common sim code provides a useful "get_string" function which reads
a C string out of the target's memory space. So rename and export it
for other people to use.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Jan Kratochvil [Sat, 3 Dec 2011 18:32:29 +0000 (18:32 +0000)]
gdb/
Fix compilation --without-expat.
* solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
from ...
[HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
Mike Frysinger [Sat, 3 Dec 2011 18:23:51 +0000 (18:23 +0000)]
sim: generate build dependencies on the fly
Lift the code that GDB is using to generate dependencies on the fly and
port it over to the sim. Now people shouldn't have to manually maintain
these in their Makefile's.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Doug Evans [Sat, 3 Dec 2011 18:01:50 +0000 (18:01 +0000)]
* lib/gdb.exp (gdb_run_cmd, gdb_start_cmd, run_to_main): Add comments.
(gdb_step_for_stub): Add comments.
David Daney [Sat, 3 Dec 2011 17:13:02 +0000 (17:13 +0000)]
2011-12-03 David Daney <david.daney@cavium.com>
* ld-bootstrap/bootstrap.exp: Use consistent flags for final link
in ia64 and mips cases.
Richard Sandiford [Sat, 3 Dec 2011 10:29:53 +0000 (10:29 +0000)]
gas/testsuite/
* gas/mips/mips.exp (run_dump_test_arch): Add an opts parameter.
(run_dump_test_arches): Allow additional options to be passed.
(run_list_test_arch): Add opts to the name.
(run_list_test_arches): Allow the options to be elided.
(mips4-fp, mips5-fp): Run twice, one with -32 and once with -mabi=o64.
(mips64r2-ill, octeon-ill): Remove empty options string.
Alan Modra [Sat, 3 Dec 2011 10:29:01 +0000 (10:29 +0000)]
PR ld/13468
* elflink.c (bfd_elf_final_link): Don't segfault when checking
for DT_TEXTREL and .dynamic does not exist.
Alan Modra [Sat, 3 Dec 2011 00:55:50 +0000 (00:55 +0000)]
PR ld/13470
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Revert substantive
change in 2011-07-01 commit. Comment.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
gdbadmin [Sat, 3 Dec 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Maciej W. Rozycki [Fri, 2 Dec 2011 23:58:01 +0000 (23:58 +0000)]
* lib/gdb.exp (gdb_expect): Pass all the exception conditions up
to the caller.
(gdb_test_multiple): Likewise.
Alan Modra [Fri, 2 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
Jan Kratochvil [Fri, 2 Dec 2011 22:35:17 +0000 (22:35 +0000)]
gdb/testsuite/
Fix gdb.mi/mi-solib.exp without system debug info installed.
* lib/mi-support.exp (mi_expect_stop): Accept FILE also for `from'
expect attribute, return 0 for it. Update comments.
Jan Kratochvil [Fri, 2 Dec 2011 22:26:54 +0000 (22:26 +0000)]
gdb/
* Makefile.in (XMLFILES): Add library-list-svr4.dtd.
* features/library-list-svr4.dtd: New file.
* remote.c (PACKET_qXfer_libraries_svr4): New.
(remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
(remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
* solib-svr4.c (struct svr4_library_list): New.
[HAVE_LIBEXPAT]: Include xml-support.h.
[HAVE_LIBEXPAT] (svr4_library_list_start_library)
[HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
[HAVE_LIBEXPAT] (svr4_library_list_children)
[HAVE_LIBEXPAT] (svr4_library_list_attributes)
[HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
[HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
[!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
(svr4_read_so_list): Extend the corruption message by addresses.
(svr4_current_sos): New variable library_list, call
svr4_current_sos_via_xfer_libraries.
* target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
gdb/gdbserver/
* linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
(read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
New.
(struct linux_target_ops): Install linux_qxfer_libraries_svr4.
* linux-low.h (struct process_info_private): New member r_debug.
* server.c (handle_qxfer_libraries): Call
the_target->qxfer_libraries_svr4.
(handle_qxfer_libraries_svr4): New function.
(qxfer_packets): New entry "libraries-svr4".
(handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
* target.h (struct target_ops): New member qxfer_libraries_svr4.
* remote.c (remote_xfer_partial): Call add_packet_config_cmd for
PACKET_qXfer_libraries_svr4.
gdb/doc/
* gdb.texinfo (Requirements, Remote Protocol): Reference also `Library
List Format for SVR4 Targets'.
(General Query Packets): New item qXfer:libraries-svr4:read.
(Library List Format for SVR4 Targets): New node.
gdb/testsuite/
* gdb.base/solib-corrupted.exp: Suppress test on is_remote target.
(corrupted list): Adjust the expectation.
Nick Clifton [Fri, 2 Dec 2011 17:04:33 +0000 (17:04 +0000)]
* readelf.c (ia64_process_unwind): Turn into a void funtion.
(hppa_process_unwind): Likewise.
(arm_process_unwind): Likewise.
(process_unwind): Likewise.
(arm_get_section_word): Rename to get_unwind_section_word.
Add sym_name parameter to return the offset into the string table
of the symbol associated with the reloc applied to the word.
(decode_tic6x_unwind_regmask): Add NULL argument to invocation of
get_unwind_section_word.
(dump_arm_unwind): Likewise.
(decode_arm_unwind_bytecode): Prepend a comma when *not* the first
register in a list.
(decode_arm_unwind): If the returned function address is 0 and a
valid symname offset is provided use that to compute the name
associated with the entry.
Add extra checks of the compact model index entry.
Jan Kratochvil [Fri, 2 Dec 2011 17:01:20 +0000 (17:01 +0000)]
gdb/
PR threads/13448
* dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
For DW_OP_GNU_push_tls_address increment the value, new comment for it.
gdb/testsuite/
PR threads/13448
* gdb.dwarf2/dw2-var-zero-addr.S: New file.
* gdb.dwarf2/dw2-var-zero-addr.exp: New file.
* gdb.threads/tls-var-main.c: New file.
* gdb.threads/tls-var.c: New file.
* gdb.threads/tls-var.exp: New file.
Jan Kratochvil [Fri, 2 Dec 2011 12:43:29 +0000 (12:43 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.trace/collection.exp (gdb_collect_return_test): Import gdb_prompt.
Protect gdb_test_multiple by final $gdb_prompt match.
* gdb.trace/tspeed.exp (gdb_fast_trace_speed_test): Likewise.
* gdb.trace/tstatus.exp (run_trace_experiment): Likewise.
(test_tracepoints): Likewise.
Jan Kratochvil [Fri, 2 Dec 2011 01:28:55 +0000 (01:28 +0000)]
gdb/
PR breakpoints/13346
* dwarf2read.c (process_psymtab_comp_unit): Set
PSYMTABS_ADDRMAP_SUPPORTED.
* psympriv.h (struct partial_symtab): Comment textlow and texthigh
validity. New field psymtabs_addrmap_supported.
* psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
psymtabs_addrmap_supported.
(find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
!PSYMTABS_ADDRMAP_SUPPORTED.
(dump_psymtab, maintenance_info_psymtabs): Print also
psymtabs_addrmap_supported.
gdb/testsuite/
PR breakpoints/13346
* gdb.dwarf2/dw2-objfile-overlap-inner.S: New file.
* gdb.dwarf2/dw2-objfile-overlap-outer.S: New file.
* gdb.dwarf2/dw2-objfile-overlap.exp: New file.
Doug Evans [Fri, 2 Dec 2011 00:27:48 +0000 (00:27 +0000)]
* python/py-type.c (type_object_methods): Fix "array" doc string.
gdbadmin [Fri, 2 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Joel Brobecker [Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)]
Make sure all types in gdb.ada/homonym testcase are used...
Otherwise, the compiler does not generate any debug info for them.
This fixes 3 FAILs:
FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_1
FAIL: gdb.ada/homonym.exp: ptype int_type at BREAK_1
FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_2
gdb/testsuite/ChangeLog:
* gdb.ada/homonym/pck.ads, gdb.ada/homonym/pck.adb: New files.
* gdb.ada/homonym/homonym.adb: For use of all types defined
locally inside both Get_Value subprograms.
Alan Modra [Thu, 1 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update
Jan Kratochvil [Thu, 1 Dec 2011 22:06:45 +0000 (22:06 +0000)]
gdb/testsuite/
Fix racy FAILs.
* gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead
of send_gdb.
Tom Tromey [Thu, 1 Dec 2011 20:27:28 +0000 (20:27 +0000)]
* gdb.texinfo (Writing a Pretty-Printer): Use append method, not
add.
Nick Clifton [Thu, 1 Dec 2011 15:50:58 +0000 (15:50 +0000)]
* elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
non-SEC_ALLOC sections break before GOT and PLT accounting.
Nick Clifton [Thu, 1 Dec 2011 11:38:32 +0000 (11:38 +0000)]
* emultempl/spuelf.em (spu_elf_relink): Use pex_one in place
of execvp.
Andrew Burgess [Thu, 1 Dec 2011 10:37:06 +0000 (10:37 +0000)]
sourceware.org/ml/gdb-patches/2011-11/msg00778.html
* source.c (print_source_lines_base): Fix missing braces on else clause
leading to additional output.
Hans-Peter Nilsson [Thu, 1 Dec 2011 02:51:14 +0000 (02:51 +0000)]
* elf32-cris.c (cris_elf_check_relocs) <plt accounting for
R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
non-SEC_ALLOC sections before GOT and PLT accounting.
gdbadmin [Thu, 1 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 30 Nov 2011 23:00:07 +0000 (23:00 +0000)]
daily update
Ulrich Weigand [Wed, 30 Nov 2011 16:06:55 +0000 (16:06 +0000)]
ChangeLog:
* s390-nat.c (SUBOFF): Remove.
(s390_native_supply, s390_native_collect): New functions.
(supply_gregset, supply_fpregset): Use s390_native_supply.
(fill_gregset, fill_fpregset): Use s390_native_collect.
* s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
(s390_unwind_pseudo_register): New function.
(s390_prologue_frame_unwind_cache): Unwind PSW address and mask
registers instead of PC and CC.
(s390_backchain_frame_unwind_cache): Likewise.
(s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
full GPR pseudos.
(s390_trad_frame_prev_register): New function.
(s390_frame_prev_register): Use it.
(s390_sigtramp_frame_prev_register): Likewise.
(s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
(s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
special callback to unwind any pseudo.
* features/s390-core32.xml: Add pswm/pswa to save/restore group.
* features/s390-core64.xml: Likewise.
* features/s390x-core64.xml: Likewise.
* features/s390-linux32.c: Regenerate.
* features/s390-linux64.c: Likewise.
* features/s390x-linux64.c: Likewise.
gdbserver/ChangeLog:
* linux-s390-low.c (s390_collect_ptrace_register): Fully convert
PSW address/mask between 8-byte and 16-byte formats.
(s390_supply_ptrace_register): Likewise.
(s390_get_pc, s390_set_pc): 4-byte PSW address always includes
basic addressing mode bit.
Ulrich Weigand [Wed, 30 Nov 2011 08:26:46 +0000 (08:26 +0000)]
* s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
Ulrich Weigand [Wed, 30 Nov 2011 08:26:06 +0000 (08:26 +0000)]
* s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
instruction. Add more diagnostic output.
Ulrich Weigand [Wed, 30 Nov 2011 08:25:17 +0000 (08:25 +0000)]
* gdb.base/testenv.exp: Skip on remote targets. Unset global
environment variable after test completed.
Ulrich Weigand [Wed, 30 Nov 2011 08:24:32 +0000 (08:24 +0000)]
* gdb.base/solib-nodir.exp: Skip if remote target.
* gdb.base/gdb.fortran.exp: Use shlib= flag when linking main
application. Call gdb_load_shlibs.
* gdb.mi/mi-solib.exp: Use mi_load_shlibs instead of gdb_load_shlibs.
gdbadmin [Wed, 30 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 29 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
Andrew Pinski [Tue, 29 Nov 2011 20:28:55 +0000 (20:28 +0000)]
opcode/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* mips-dis.c (mips_arch_choices): Add Octeon+.
* mips-opc.c (IOCT): Include Octeon+.
(IOCTP): New macro.
(mips_builtin_opcodes): Add "saa" and "saad".
bfd/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* archures.c (bfd_mach_mips_octeonp): New macro.
* bfd-in2.h: Regenerate.
* bfd/cpu-mips.c (I_mipsocteonp): New enum value.
(arch_info_struct): Add bfd_mach_mips_octeonp.
* elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
(mips_mach_extensions): Add bfd_mach_mips_octeonp.
include/opcodes/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP.
(INSN_OCTEONP): New macro.
(CPU_OCTEONP): New macro.
(OPCODE_IS_MEMBER): Add Octeon+.
(M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values.
gas/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* config/tc-mips.c (CPU_IS_OCTEON): New macro function.
(CPU_HAS_SEQ): Change to use CPU_IS_OCTEON.
(NO_ISA_COP): Likewise.
(macro) <ld_st>: Add support when off0 is true.
Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB.
(mips_cpu_info_table): Add octeon+.
* doc/c-mips.texi: Document octeon+ as an acceptable value for -march=.
gas/testsuite/
2011-11-29 Andrew Pinski <apinski@cavium.com>
* gas/mips/mips.exp: Add octeon+ for an architecture.
Run octeon-saa-saad test.
(run_dump_test_arch): For Octeon architectures, also try octeon@.
* gas/mips/octeon-pref.d: Remove -march=octeon from command line.
* gas/mips/octeon.d: Likewise.
* gas/mips/octeon-saa-saad.d: New file.
* gas/mips/octeon-saa-saad.s: New file
Roland McGrath [Tue, 29 Nov 2011 18:07:41 +0000 (18:07 +0000)]
* ar.c (ranlib_usage): Describe -D.
(ranlib_main): Parse -D.
(ranlib_touch): Set BFD_DETERMINISTIC_OUTPUT under -D.
* doc/binutils.texi (ranlib): Describe -D, and also --help/-h/-H.
Joel Brobecker [Tue, 29 Nov 2011 16:59:45 +0000 (16:59 +0000)]
New gdb.base/infoline.exp testcase.
gdb/testsuite/ChangeLog:
* gdb.base/infoline.c, gdb.base/infoline.exp: New files.
Maciej W. Rozycki [Tue, 29 Nov 2011 12:42:10 +0000 (12:42 +0000)]
PR ld/10144
* lib/ld-lib.exp (run_ld_link_tests): Handle sources from other
directories.
(run_ld_link_exec_tests): Likewise.
(run_cc_link_tests): Likewise.
* ld-elf/comm-data1.sd: New test.
* ld-elf/comm-data1.s: Source for the new test.
* ld-elf/comm-data2.sd: New test.
* ld-elf/comm-data2.rd: Likewise.
* ld-elf/comm-data2.xd: Likewise.
* ld-elf/comm-data2.s: Source for the new tests.
* ld-elf/comm-data.exp: New file.
* ld-mips-elf/comm-data.exp: Likewise.
Andrey Smirnov [Tue, 29 Nov 2011 10:26:23 +0000 (10:26 +0000)]
* MAINTAINERS (Write After Approval): Add myself to the list.
Sanjoy Das [Tue, 29 Nov 2011 08:30:29 +0000 (08:30 +0000)]
gdb/
* jit.c (add_objfile_entry, jit_reader_try_read_symtab)
(jit_bfd_try_read_symtab): Fix comments.
Joel Brobecker [Tue, 29 Nov 2011 06:25:05 +0000 (06:25 +0000)]
Record Mike Frysinger as a sim Global Maintainer.
sim/ChangeLog:
* maintainers (global maintainers): new section. add mike
frysinger.
DJ Delorie [Tue, 29 Nov 2011 03:49:09 +0000 (03:49 +0000)]
[sim]
* configure.tgt: Add rl78 support.
* configure: Regenerate.
* rl78: New directory.
* MAINTAINERS: Add myself as RL78 maintainer.
[gdb]
* NEWS: Mention RL78 simulator.
Joel Brobecker [Tue, 29 Nov 2011 01:09:23 +0000 (01:09 +0000)]
Further fix the documentation in struct quick_symbol_functions
gdb/ChangeLog:
* symfile.h (struct quick_symbol_functions): Fix the documentation
of field map_matching_symbols, as symbols are sorted using
strcmp_iw_ordered, not strcmp_iw.
Joel Brobecker [Tue, 29 Nov 2011 01:01:02 +0000 (01:01 +0000)]
Update documentation in struct quick_symbol_functions
Paul sent me this documentiion update when I asked him a question
about compare_names in ada-lang.c.
gdb/ChangeLog:
* symfile.h (struct quick_symbol_functions): Update the
documentation for field map_matching_symbols.
Joel Brobecker [Tue, 29 Nov 2011 01:00:52 +0000 (01:00 +0000)]
wrong value returned by ada-lang.c:compare_names
The ada-lang.c:compare_names function returns the wrong value
when the first string starts with the same contents as the second
string, followed by '_' and then some characters that do not make
a symbol name suffix. For instance:
string1 = "generics__test_generics__instance__print"
string2 = "generics__test_generics"
In that case, compare_names (string1, string2) return -1, when
clearly, string1 is greater than string2.
A consequence of this problem is that GDB may fail to lookup
"generics.test_generics" from our partial symtabs, because
partial symbols are ordered by strcmp_iw_ordered:
(gdb) b generics.test_generics
Function "generics.test_generics" not defined.
Make breakpoint pending on future shared library load? (y or [n])
gdb/ChangeLog:
* ada-lang.c (compare_names): Fix wrong return value in case
string1 starts with the same contents as string2, followed
by an underscore that do not start a symbol name suffix.
gdb/testsuite/ChangeLog:
* gdb.ada/fullname_bp: New testcase.
gdbadmin [Tue, 29 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 28 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
Nick Clifton [Mon, 28 Nov 2011 16:51:09 +0000 (16:51 +0000)]
PR binutils/13421
* readelf.c (arm_section_get_word): Add descriptive comments.
Initliase the rel_type field of the arm_sec structure.
(expand_prel31): Rename to arm_expand_prel31.
(dump_arm_unwind): Use new name.
Print the function name based on the function address entry.
Phil Muldoon [Mon, 28 Nov 2011 15:49:43 +0000 (15:49 +0000)]
2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
PR python/13369
PR python/13374
* python/python.c (gdbpy_decode_line): Do not acquire GIL.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
exceptions.
* python/py-type.c (typy_strip_typedefs): Ditto.
(typy_legacy_template_argument): Ditto.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
gdbadmin [Mon, 28 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 27 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update
Joel Brobecker [Sun, 27 Nov 2011 17:39:30 +0000 (17:39 +0000)]
remove use of sprintf_vma in remote_get_tracepoint_status
This function takes a VMA and was forcing us to perform a cast to
compile without warning on one platform. Except that the cast caused
a warning on sparc-solaris. This patch fixes the problem by using
phex_nz instead.
gdb/ChangeLog:
* remote.c (remote_get_tracepoint_status): Delete addrbuf
local variable. Avoid use of sprintf_vma.
Sanjoy Das [Sun, 27 Nov 2011 14:26:09 +0000 (14:26 +0000)]
gdb/
Fix regression in jit.exp.
* jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
(jit_register_code): Set the jit_objfile_data field to the correct
value.
gdbadmin [Sun, 27 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 26 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Sat, 26 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Jan Kratochvil [Fri, 25 Nov 2011 23:53:45 +0000 (23:53 +0000)]
gdb/testsuite/
Code cleanup.
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse4_test):
Convert send_gdb and gdb_expect to gdb_test_multiple.
Jan Kratochvil [Fri, 25 Nov 2011 23:50:15 +0000 (23:50 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test #2):
Wrap send_gdb into a new gdb_test.
Jan Kratochvil [Fri, 25 Nov 2011 23:26:15 +0000 (23:26 +0000)]
gdb/testsuite/
* gdb.base/jit-so.exp (one_jit_test): Add testcase name to log message.
Alan Modra [Fri, 25 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update
Ulrich Weigand [Fri, 25 Nov 2011 17:05:42 +0000 (17:05 +0000)]
2011-11-25 Uros Bizjak <ubizjak@gmail.com>
* alpha-tdep.c (br_opcode): New.
(ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
(alpha_deal_with_atomic_sequence): New function.
(alpha_gdbarch_init): Handle single stepping of atomic sequences
with alpha_deal_with_atomic_sequence.
Pierre Muller [Fri, 25 Nov 2011 15:21:29 +0000 (15:21 +0000)]
* mips-dis.c (print_insn_micromips): Rename local variable iprintf
to infprintf to avoid shadow warning.
Matthew Gretton-Dann [Fri, 25 Nov 2011 15:17:36 +0000 (15:17 +0000)]
* gas/config/tc-arm.c (do_t_mov_cmp): Allow MOV lowreg, lowreg when no CPU
is specified.
* gas/testsuite/gas/arm/mov-highregs-any.d: New testcase.
* gas/testsuite/gas/arm/mov-highregs-any.s: Likewise.
* gas/testsuite/gas/arm/mov-lowregs-any.d: Likewise.
* gas/testsuite/gas/arm/mov-lowregs-any.s: Likewise.
Nick Clifton [Fri, 25 Nov 2011 15:04:09 +0000 (15:04 +0000)]
* emultempl/armelf.em: Update copyright to 2010 and 2011.
(PARSE_AND_LIST_OPTIONS): Fix formatting.
Nick Clifton [Fri, 25 Nov 2011 14:47:48 +0000 (14:47 +0000)]
* binutils-all/objdump.exp (cpus): Add MicroBlaze.
(objdump -WL): Skip this test on MCore, Moxie and OpenRisc
targets.
* binutils-all/objcopy.exp (localize-hidden-1): Expect this test
to fail on MIPS based targets.
Nick Clifton [Fri, 25 Nov 2011 09:19:07 +0000 (09:19 +0000)]
* po/it.po: Updated Italian translation.
Nick Clifton [Fri, 25 Nov 2011 09:15:26 +0000 (09:15 +0000)]
* po/it.po: New Italian translation.
Stan Shebs [Fri, 25 Nov 2011 04:41:15 +0000 (04:41 +0000)]
2011-11-24 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
gdbadmin [Fri, 25 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 24 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update
Tristan Gingold [Thu, 24 Nov 2011 16:26:25 +0000 (16:26 +0000)]
2011-11-24 Tristan Gingold <gingold@adacore.com>
* machoread.c (oso_el): Remove num_Sections, symbols, offsets
fields. Add oso_sym, end_sym and nbr_syms.
(macho_register_oso): Change interface.
(macho_symtab_add_minsym): New function.
(macho_symtab_read): Rewritten.
(get_archive_prefix_len): Remove trailing blanks.
(oso_el_compare_name): Add comment.
(struct macho_sym_hash_entry): New structure.
(macho_relocate_common_syms): Remove.
(macho_sym_hash_newfunc): New function.
(macho_resolve_oso_sym_with_minsym): Likewise.
(macho_add_oso_symfile): Rewritten.
(macho_symfile_read_all_oso): Remove trailing blanks.
Adjust code to free oso vector.
(macho_symfile_read): Likewise.
Move code to initialize minimal symbol
Maciej W. Rozycki [Thu, 24 Nov 2011 15:56:25 +0000 (15:56 +0000)]
* mips-tdep.c (extended_offset): Fix formatting.
gdbadmin [Thu, 24 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 23 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update
Keith Seitz [Wed, 23 Nov 2011 21:02:55 +0000 (21:02 +0000)]
* lib/mi-support.exp (varobj_tree): New namespace and procs.
(mi_varobj_tree_test_children_callback): New proc.
(mi_walk_varobj_tree): New proc.
Doug Evans [Wed, 23 Nov 2011 19:55:42 +0000 (19:55 +0000)]
* dwarf2read.c (dw2_lookup_symtab): Add comment.
(dw2_expand_symtabs_with_filename): Ditto.
(dw2_expand_symtabs_matching): Ditto.
(dw2_map_symbol_filenames): Ditto.
Joel Brobecker [Wed, 23 Nov 2011 19:54:18 +0000 (19:54 +0000)]
Minor reformatting in ada-lang.c:assign_aggregate
No code change.
gdb/ChangeLog:
From Andrey Smirnov <andrew.smirnov@gmail.com>:
* ada-lang.c (assign_aggregate): Minor reformatting.
Joel Brobecker [Wed, 23 Nov 2011 19:54:08 +0000 (19:54 +0000)]
fix -Wshadow warning inside ada-lang.c:assign_aggregate
gdb/ChangeLog:
From Andrey Smirnov <andrew.smirnov@gmail.com>:
* ada-lang.c (assign_aggregate): Remove declaration of local
variable `i' which is shadowing another variable with the same
name declared in the outer scope.
Joel Brobecker [Wed, 23 Nov 2011 19:21:12 +0000 (19:21 +0000)]
ada-lang.c: Rename function base_type into get_base_type
This avoids shadowing issues with variables named base_type.
gdb/ChangeLog:
* ada-lang.c (get_base_type): Renames base_type. Adjust all
calls throughout this file.
Joel Brobecker [Wed, 23 Nov 2011 17:24:03 +0000 (17:24 +0000)]
Fix compilation error in gdb-dlfcn.c (on Windows)
gdb/ChangeLog:
* gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
FormatMessage.
Tristan Gingold [Wed, 23 Nov 2011 11:32:42 +0000 (11:32 +0000)]
2011-11-23 Tristan Gingold <gingold@adacore.com>
* config/tc-alpha.c (s_alpha_prologue): Requires empty line.
Tristan Gingold [Wed, 23 Nov 2011 11:27:51 +0000 (11:27 +0000)]
2011-11-23 Tristan Gingold <gingold@adacore.com>
* config/tc-alpha.c (s_alpha_frame): Emit a warning if bad value
of RA.
(s_alpha_pdesc): Adjust comment.
Tristan Gingold [Wed, 23 Nov 2011 11:22:22 +0000 (11:22 +0000)]
2011-11-23 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (get_idxlen): Add comments. Fix type in sizeof.
(vms_write_index): Add comments.
Richard Earnshaw [Wed, 23 Nov 2011 10:50:53 +0000 (10:50 +0000)]
2011-11-23 Thomas Klein <th.r.klein@web.de>
* config/tc-arm.c (do_t_mov_cmp): Prevent emitting code for MOV
with two low register at arch v4t or v5t when assember using
unified syntax.
gdbadmin [Wed, 23 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 22 Nov 2011 23:00:04 +0000 (23:00 +0000)]
daily update
Tom Tromey [Tue, 22 Nov 2011 21:25:19 +0000 (21:25 +0000)]
gdb
PR mi/8444:
* mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
(EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
(EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
* mi/mi-common.c (async_reason_string_lookup): Add new reasons.
* breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
(print_it_catch_syscall, print_it_catch_exec)
(internal_bkpt_print_it): Use ui_out. Emit stop reason.
(bpstat_print): Add 'kind' argument. Handle
TARGET_WAITKIND_LOADED.
* infrun.c (normal_stop): Update for bpstat_print change. Don't
handle TARGET_WAITKIND_LOADED here.
* breakpoint.h (bpstat_print): Update.
gdb/testsuite
* lib/mi-support.exp (mi_run_cmd_full): Rename from mi_run_cmd.
Add "use_mi_command" argument.
(mi_run_cmd, mi_run_with_cli): New procs.
* gdb.mi/solib-lib.c: New file.
* gdb.mi/solib-main.c: New file.
* gdb.mi/mi-solib.exp: New file.
gdb/doc
* gdb.texinfo (GDB/MI Async Records): Document new *stopped
reasons.
Tom Tromey [Tue, 22 Nov 2011 21:21:54 +0000 (21:21 +0000)]
* mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
Tom Tromey [Tue, 22 Nov 2011 21:18:38 +0000 (21:18 +0000)]
* mi/mi-common.c (_initialize_gdb_mi_common): Remove.
Use static_assert to check the size of
async_reason_string_lookup.
* common/gdb_assert.h (static_assert): New macro.
DJ Delorie [Tue, 22 Nov 2011 19:50:36 +0000 (19:50 +0000)]
* elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
avoid using the special non-swapping target when not explicitly
requested.
DJ Delorie [Tue, 22 Nov 2011 19:46:20 +0000 (19:46 +0000)]
* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.