binutils-gdb.git
12 years agodaily update
Alan Modra [Thu, 15 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update

12 years ago * gdb.texinfo (Signaling): Fix typo.
Tom Tromey [Thu, 15 Nov 2012 21:25:43 +0000 (21:25 +0000)]
* gdb.texinfo (Signaling): Fix typo.

12 years ago2012-11-15 Pierre Muller <muller@sourceware.org>
Pierre Muller [Thu, 15 Nov 2012 16:12:19 +0000 (16:12 +0000)]
2012-11-15  Pierre Muller  <muller@sourceware.org>

ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
* gdb_stat.h: Delete. Moved to common directory.
* common/gdb_stat.h: New file.
* gdb_wait.h: Delete. Moved to common directory.
* common/gdb_wait.h: New file.
* Makefile.in (H_FILES_NO_SRC): Adapt to new header
location.
* contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
location.
(stat.h rule): Adapt to new gdb_stat.h location.
* common/linux-osdata.c: Include "gdb_stat.h" header instead of
<sys/stat.h> header.
* common/linux-ptrace.c: Include "gdb_wait.h" header instead of
<sys/wait.h> header.

gdbserver ChangeLog entry:

2012-11-15  Pierre Muller  <muller@sourceware.org>

* configure.ac (AC_CHECK_HEADERS): Add wait.h header.
* config.in: Regenerate.
* configure: Regenerate.
* linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
Use "gdb_wait.h" header instead of <sys/wait.h> header.
* lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
* remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
header.
* server.c: Remove HAVE_WAIT_H conditional.  Use "gdb_wait.h" header
instead of <sys/wait.h> header.
* spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.

12 years ago * configure.ac (AC_HEADER_STAT): Remove.
Pierre Muller [Thu, 15 Nov 2012 14:48:26 +0000 (14:48 +0000)]
* configure.ac (AC_HEADER_STAT): Remove.
* gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
and corresponding code.
* configure: Regenerate.
* config.in: Regenerate.

12 years agoRestore "Consider *-*-nacl* targets ELF for gold"
H.J. Lu [Thu, 15 Nov 2012 14:10:39 +0000 (14:10 +0000)]
Restore "Consider *-*-nacl* targets ELF for gold"

* configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF.
* configure: Regenerate.

12 years ago Rectify commit date for MAINTAINERS commit
Pierre Muller [Thu, 15 Nov 2012 11:49:11 +0000 (11:49 +0000)]
 Rectify commit date for MAINTAINERS commit

12 years ago * ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
Simon Baldwin [Thu, 15 Nov 2012 10:49:02 +0000 (10:49 +0000)]
* ldmain.c (main): Add start_sbrk set to sbrk(0) on entry.
On exit, compute data size as the delta between current
sbrk(0) and start_sbrk.

12 years ago ARI xasprintf rule fixes.
Pierre Muller [Thu, 15 Nov 2012 08:31:23 +0000 (08:31 +0000)]
ARI xasprintf rule fixes.
* dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
instead of xasprintf.
(open_and_init_dwp_file): Ditto.

12 years agobfd/
Roland McGrath [Thu, 15 Nov 2012 00:30:11 +0000 (00:30 +0000)]
bfd/
* elf32-arm.c (elf32_arm_nacl_plt0_entry): Use bic rather than bfc
instruction for data sandboxing.

gold/
* arm.cc (Output_data_plt_arm_nacl::first_plt_entry): Use bic rather
than bfc instruction for data sandboxing.

12 years agoSync toplevel files with GCC
H.J. Lu [Thu, 15 Nov 2012 00:16:49 +0000 (00:16 +0000)]
Sync toplevel files with GCC

2012-11-13  Richard Henderson  <rth@redhat.com>

* configure.ac: Move libsanitizer logic to subdirectory.
* configure: Regenerate.

2012-11-13  Dodji Seketeli  <dodji@redhat.com>

* configure.ac: Enable libsanitizer just on x86 linux for now.
* configure: Re-generate.

2012-11-13  David Edelsohn  <dje.gcc@gmail.com>

* configure.ac: Merge libquadmath sections.
* configure: Regenerate.

2012-11-12  Wei Mi <wmi@google.com>

* configure.ac: Add libsanitizer to target_libraries.
* Makefile.def: Ditto.
* configure: Regenerate.
* Makefile.in: Regenerate.

12 years ago*** empty log message ***
gdbadmin [Thu, 15 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 14 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update

12 years ago2012-11-14 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Wed, 14 Nov 2012 19:21:01 +0000 (19:21 +0000)]
2012-11-14  Luis Machado  <lgustavo@codesourcery.com>

gdb/
* value.c (value_actual_type): Check for TYPE_CODE_STRUCT
target types.

gdb/testsuite/
* gdb.mi/mi-var-create-rtti.c: New file.
* gdb.mi/mi-var-create-rtti.exp: New file.

12 years ago * configure, config.in: Rebuild.
Tom Tromey [Wed, 14 Nov 2012 19:16:04 +0000 (19:16 +0000)]
* configure, config.in: Rebuild.
* configure.ac: Don't check for ctype.h, time.h.
* expprint.c: Don't use HAVE_CTYPE_H.

12 years ago2012-11-14 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Wed, 14 Nov 2012 19:10:33 +0000 (19:10 +0000)]
2012-11-14  Luis Machado  <lgustavo@codesourcery.com>

* gdb.base/structs3.exp: Run to main before doing any tests.

12 years agoopcodes/
Michael Eager [Wed, 14 Nov 2012 17:05:24 +0000 (17:05 +0000)]
opcodes/
* microblaze-opc.h: Define new instruction type INST_TYPE_IMM5,
update OPCODE_MASK_H13S, add OPCODE_MASK_HN, define MIN_IMM5 / MAX_IMM5,
and increase MAX_OPCODES.
(op_code_struct):  add mbar and sleep
* microblaze-opcm.h (microblaze_instr): add mbar
Define IMM_MBAR and IMM5_MBAR_MASK
* microblaze-dis.c: Add get_field_imm5_mbar
(print_insn_microblaze): Add support for INST_TYPE_IMM5 and INST_TYPE_NONE

gas/
* config/tc-microblaze.c (md_assemble): Add support for INST_TYPE_IMM5

gas/testsuite/
* gas/microblaze/allinsn.s: Add mbar and sleep
* gas/microblaze/allinsn.d: Likewise

12 years agoAdd clz opcode.
Michael Eager [Wed, 14 Nov 2012 16:45:01 +0000 (16:45 +0000)]
Add clz opcode.

opcodes/
* microblaze-opc.h: Increase MAX_OPCODES (op_code_struct):  add clz insn
* microblaze-opcm.h (microblaze_instr): add clz

gas/testsuite/
* gas/microblaze/allinsn.s: Add clz insn
* gas/microblaze/allinsn.d: Likewise

12 years agoAdd the endian reversing versions of load/store instructions;
Michael Eager [Wed, 14 Nov 2012 16:19:30 +0000 (16:19 +0000)]
Add the endian reversing versions of load/store instructions;

2012-11-14  Edgar E. Iglesias <edgar.iglesias@gmail.com>

* microblaze-opc.h: Increase MAX_OPCODES (op_code_struct):  add lbur,
lhur, lwr, sbr, shr, swr
* microblaze-opcm.h (microblaze_instr): add lbur, lhur, lwr, sbr, shr,
swr

2012-11-14  David Holsgrove  <david.holsgrove@xilinx.com>

* gas/microblaze/allinsn.exp: New file - test newly added opcodes
* gas/microblaze/allinsn.s: Likewise
* gas/microblaze/allinsn.d: Likewise

12 years ago * gdbarch.h, gdbarch.c: Rebuild.
Tom Tromey [Wed, 14 Nov 2012 15:40:35 +0000 (15:40 +0000)]
* gdbarch.h, gdbarch.c: Rebuild.
* gdbarch.sh (set_target_gdbarch): Rename from
deprecated_target_gdbarch_select_hack.
* arch-utils.c (gdbarch_update_p): Update.
(set_gdbarch_from_file): Update.

12 years ago * MAINTAINERS (Responsible Maintainers/misc): Add myself
Pierre Muller [Wed, 14 Nov 2012 15:18:06 +0000 (15:18 +0000)]
* MAINTAINERS (Responsible Maintainers/misc): Add myself
as responsible of contrib/ari directory.

12 years agogas/ChangeLog:
Ulrich Weigand [Wed, 14 Nov 2012 13:44:45 +0000 (13:44 +0000)]
gas/ChangeLog:

* config/tc-ppc.c (md_apply_fix): Leave field zero when emitting
an ELF reloc on data as well.

gas/testsuite/ChangeLog:

* gas/ppc/astest.d: Update for fixup changes.
* gas/ppc/astest64.d: Likewise.
* gas/ppc/astest2.d: Likewise.
* gas/ppc/astest2_64.d: Likewise.
* gas/ppc/test1elf32.d: Likewise.
* gas/ppc/test1elf64.d: Likewise.

12 years agobfd/
Tristan Gingold [Wed, 14 Nov 2012 11:03:27 +0000 (11:03 +0000)]
bfd/
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_main)
(bfd_mach_o_read_source_version): New functions.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DATA_IN_CODE,
BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS, BFD_MACH_O_LC_MAIN,
BFD_MACH_O_LC_SOURCE_VERSION.
* mach-o.h (bfd_mach_o_main_command)
(bfd_mach_o_source_version_command): New types.
(bfd_mach_o_load_command): Add fields for these new types.

binutils/
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* od-macho.c (bfd_mach_o_load_command_name): Add new definitions.
(dump_load_command): Handle BFD_MACH_O_LC_SOURCE_VERSION
and BFD_MACH_O_LC_MAIN.

12 years ago2012-11-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Nov 2012 10:45:39 +0000 (10:45 +0000)]
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* external.h (mach_o_entry_point_command_external)
(mach_o_source_version_command_external)
(mach_o_data_in_code_entry_external): New structures.

* loader.h (bfd_mach_o_load_command_type): Add
BFD_MACH_O_LC_MAIN, BFD_MACH_O_LC_DATA_IN_CODE,
BFD_MACH_O_LC_SOURCE_VERSION and BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS.
(BFD_MACH_O_REFERENCE_MASK): Adjust value.
(BFD_MACH_O_N_REF_TO_WEAK): New definition.
(BFD_MACH_O_N_ARM_THUMB_DEF, BFD_MACH_O_N_SYMBOL_RESOLVER): Likewise.
(bfd_mach_o_data_in_code_entry_kind): New enum.

12 years ago2012-11-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Nov 2012 10:29:46 +0000 (10:29 +0000)]
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Add a special
handling for non-scattered pairs.  Update comments.

12 years ago2012-11-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Nov 2012 10:22:27 +0000 (10:22 +0000)]
2012-11-14  Tristan Gingold  <gingold@adacore.com>

* arm.h: New file.

12 years agohttp://sourceware.org/ml/gdb-patches/2012-11/msg00308.html
Andrew Burgess [Wed, 14 Nov 2012 10:16:46 +0000 (10:16 +0000)]
sourceware.org/ml/gdb-patches/2012-11/msg00308.html

gdb/testsuite/ChangeLog

        * gdb.python/py-type.exp: Uniquify test names.

12 years agogdb/testsuite/
Yao Qi [Wed, 14 Nov 2012 05:52:32 +0000 (05:52 +0000)]
gdb/testsuite/
2012-11-14  Yao Qi  <yao@codesourcery.com>

* gdb.threads/manythreads.c [DEBUG]: Include "stdio.h".
(thread_function) [DEBUG]: Call 'printf'.
* gdb.threads/manythreads.exp: Pass '-DDEBUG' to compilation
command line if 'DEBUG=1' is passed to test.
Remove a pattern to match inferior's output.

12 years agogdb/
Yao Qi [Wed, 14 Nov 2012 03:49:12 +0000 (03:49 +0000)]
gdb/
2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
    Yao Qi  <yao@codesourcery.com>

* arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
bit of EXC_RETURN.
(arm_m_exception_cache, arm_m_exception_this_id)
(arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
(arm_m_exception_unwind): New.
(arm_gdbarch_init): Register arm_m_exception_unwind.

12 years ago*** empty log message ***
gdbadmin [Wed, 14 Nov 2012 00:00:36 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 13 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agoAllocate elf_segment_map with bfd_zalloc
H.J. Lu [Tue, 13 Nov 2012 22:54:21 +0000 (22:54 +0000)]
Allocate elf_segment_map with bfd_zalloc

* elf.c (rewrite_elf_program_header): Allocate elf_segment_map
with bfd_zalloc, instead of bfd_alloc.

12 years ago2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
Tom Tromey [Tue, 13 Nov 2012 21:19:11 +0000 (21:19 +0000)]
2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>

* mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
parameter COUNT, for pattern filling of memory regions.
* NEWS: Mention it.
doc
* gdb.texinfo (GDB/MI Data Manipulation): Document new optional
parameter "count" of -data-write-memory-bytes, and add an example.
testsuite
* gdb.mi/mi-fill-memory.exp: New test.

12 years ago * disasm.h (DISASSEMBLY_FILENAME): New macro.
Markus Metzger [Tue, 13 Nov 2012 15:35:43 +0000 (15:35 +0000)]
* disasm.h (DISASSEMBLY_FILENAME): New macro.
* disasm.c (do_mixed_source_and_assembly): Pass filename flag on
to print_source_lines ().
* symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
flag.
* source.c (print_source_lines_base): Prefix source line with
filename if PRINT_SOURCE_LINES_FILENAME flag is set.

12 years ago * symtab.h (print_source_lines_flags): New enum.
Markus Metzger [Tue, 13 Nov 2012 15:19:56 +0000 (15:19 +0000)]
* symtab.h (print_source_lines_flags): New enum.
* source.c (print_source_lines_base): Change noerror to flags.
(print_source_lines): Change noerror to flags.

12 years ago * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
Markus Metzger [Tue, 13 Nov 2012 15:01:44 +0000 (15:01 +0000)]
* Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
(various make rules): Remove -DGDBSERVER

12 years ago ARI fixes: Avoid sprintf function use rule.
Pierre Muller [Tue, 13 Nov 2012 09:46:11 +0000 (09:46 +0000)]
ARI fixes: Avoid sprintf function use rule.
* charset.c (convert_between_encodings): Use xsnprintf.
* cli-out.c (cli_field_int): Likewise.
* cp-namespace.c (cp_lookup_nested_symbol): Likewise.
* expprint.c (op_name_standard): Likewise.
* frv-tdep.c (set_variant_num_gprs): Likewise.
(set_variant_num_fprs): Likewise.
* m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
* nto-tdep.c (nto_find_and_open_solib): Likewise.
(nto_init_solib_absolute_prefix): Likewise.
* source.c (init_source_path): Likewise.
(print_source_lines_base): Likewise.
* valprint.c (print_wchar): Likewise.
* mi/mi-out.c (mi_field_int): Likewise.
windows-nat.c (windows_pid_to_exec_file): Likewise.
(windows_create_inferior): Likewise.
(_initialize_check_for_gdb_ini): Likewise.

12 years ago * readelf.c (get_machine_flags) <EM_MIPS, EM_MIPS_RS3_LE>: Move
Maciej W. Rozycki [Tue, 13 Nov 2012 00:54:56 +0000 (00:54 +0000)]
* readelf.c (get_machine_flags) <EM_MIPS, EM_MIPS_RS3_LE>: Move
code to handle EF_SH_PIC and EF_SH_FDPIC...
<EM_SH>: ... here.

12 years ago*** empty log message ***
gdbadmin [Tue, 13 Nov 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 12 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update

12 years agorename frame_register_read into deprecated_frame_register_read.
Joel Brobecker [Mon, 12 Nov 2012 21:59:07 +0000 (21:59 +0000)]
rename frame_register_read into deprecated_frame_register_read.

gdb/ChangeLog:

        * frame.h (deprecated_frame_register_read): Renames
        frame_register_read.
        * frame.c (deprecated_frame_register_read): Renames
        frame_register_read.  Update all callers.
        * i386-tdep.c: Update all callers of frame_register_read.
        * infcmd.c: Likewise.
        * jit.c: Likewise.
        * mips-tdep.c: Likewise.
        * mt-tdep.c: Likewise.
        * sh64-tdep.c: Likewise.

12 years agoDocument replacement for frame_register_read (deprecated).
Joel Brobecker [Mon, 12 Nov 2012 21:28:51 +0000 (21:28 +0000)]
Document replacement for frame_register_read (deprecated).

gdb/ChangeLog:

        * frame.h (frame_register_read): Remove FIXME comment.
        * frame.c (frame_register_read): Add suggestion explaining
        which function to use in place of this one.

12 years ago * python/python.c (start_type_printers): Initialize 'result_obj'.
Tom Tromey [Mon, 12 Nov 2012 19:24:14 +0000 (19:24 +0000)]
* python/python.c (start_type_printers): Initialize 'result_obj'.

12 years ago * NEWS: Update.
Tom Tromey [Mon, 12 Nov 2012 17:41:59 +0000 (17:41 +0000)]
* NEWS: Update.
* data-directory/Makefile.in (PYTHON_FILES): Add
type_printers.py.
* python/lib/gdb/command/type_printers.py: New file.
* python/lib/gdb/command/types.py (TypePrinter): New class.
(_get_some_type_recognizers, get_type_recognizers,
apply_type_recognizers, register_type_printer): New
functions.
* python/py-objfile.c (objfile_object) <type_printers>: New
field.
(objfpy_dealloc): Decref new field.
(objfpy_new): Set new field.
(objfpy_get_type_printers, objfpy_set_type_printers): New
functions.
(objfile_to_objfile_object): Set new field.
(objfile_getset): Add "type_printers".
* python/py-progspace.c (pspace_object) <type_printers>: New
field.
(pspy_dealloc): Decref new field.
(pspy_new): Set new field.
(pspy_get_type_printers, pspy_set_type_printers): New functions.
(pspace_to_pspace_object): Set new field.
(pspace_getset): Add "type_printers".
* python/python.c (start_type_printers, apply_type_printers,
free_type_printers): New functions.
(_initialize_python): Set gdb.type_printers.
* python/python.h (start_type_printers, apply_type_printers,
free_type_printers): Declare.
* typeprint.c (type_print_raw_options, default_ptype_flags):
Update for new fields.
(do_free_global_table, create_global_typedef_table,
find_global_typedef): New functions.
(find_typedef_in_hash): Use find_global_typedef.
(whatis_exp): Use create_global_typedef_table.  Change cleanup
handling.
* typeprint.h (struct type_print_options) <global_typedefs,
global_printers>: New fields.
doc
* gdb.texinfo (Symbols): Document "info type-printers",
"enable type-printer" and "disable type-printer".
(Python API): Add new node to menu.
(Type Printing API): New node.
(Progspaces In Python): Document type_printers field.
(Objfiles In Python): Likewise.
(gdb.types) <get_type_recognizers, apply_type_recognizers,
register_type_printer, TypePrinter>: Document.
testsuite
* gdb.base/completion.exp: Update for "info type-printers".
* gdb.python/py-typeprint.cc: New file.
* gdb.python/py-typeprint.exp: New file.
* gdb.python/py-typeprint.py: New file.

12 years ago * c-typeprint.c (find_typedef_for_canonicalize,
Tom Tromey [Mon, 12 Nov 2012 17:37:38 +0000 (17:37 +0000)]
* c-typeprint.c (find_typedef_for_canonicalize,
print_name_maybe_canonical): New functions.
(c_print_type): Look up type name.
(cp_type_print_derivation_info): Add flags argument.  Use
print_name_maybe_canonical.
(cp_type_print_method_args): Add wrapping.
(c_type_print_varspec_prefix): Use print_name_maybe_canonical.
(c_type_print_template_args): New function.
(c_type_print_base): Change wrapping.  Use
print_name_maybe_canonical.
<TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
type name lookups.
* gdbtypes.c (types_equal): No longer static.
* gdbtypes.h (types_equal): Declare.
* typeprint.c (type_print_raw_options, default_ptype_flags):
Update.
(struct typedef_hash_table): New.
(hash_typedef_field, eq_typedef_field,
recursively_update_typedef_hash, add_template_parameters,
create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
make_cleanup_free_typedef_hash, copy_typedef_hash_element,
copy_typedef_hash, find_typedef_in_hash): New functions.
* typeprint.h (struct type_print_options) <local_typedefs>:
New field.
(recursively_update_typedef_hash, add_template_parameters,
create_typedef_hash, free_typedef_hash,
make_cleanup_free_typedef_hash, copy_typedef_hash,
find_typedef_in_hash): Declare.
testsuite
* gdb.base/call-sc.exp: Use "ptype/r".
* gdb.base/volatile.exp: Don't expect "int".
* gdb.cp/ptype-flags.cc: New file.
* gdb.cp/ptype-flags.exp: New file.
* gdb.cp/templates.exp: Use ptype/r.
(test_ptype_of_templates, test_template_typedef): Likewise.
* lib/cp-support.exp (cp_test_ptype_class): Add in_ptype_arg
argument.  Handle template names and template parameters.
* gdb.mi/mi-var-cmd.exp: Accept "long".
* gdb.mi/mi-var-child.exp: Accept "long".
* gdb.mi/mi-var-display.exp: Accept "long".
* gdb.mi/mi2-var-child.exp: Accept "long".

12 years ago * cp-support.c (inspect_type,
Tom Tromey [Mon, 12 Nov 2012 17:30:06 +0000 (17:30 +0000)]
* cp-support.c (inspect_type,
replace_typedefs_qualified_name, replace_typedefs): Add
finder, data arguments.  Call as needed.
(cp_canonicalize_string_full): New function.
(cp_canonicalize_string_no_typedefs): Rewrite.
* cp-support.h (canonicalization_ftype): New typedef.
(cp_canonicalize_string_full): Declare.

12 years ago * NEWS: Update.
Tom Tromey [Mon, 12 Nov 2012 17:26:21 +0000 (17:26 +0000)]
* NEWS: Update.
* c-typeprint.c (c_type_print_base): Handle print_method and
print_typedefs flags.
* gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
* python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
options.
* typeprint.c (type_print_raw_options, default_ptype_flags):
Update for new field.s
(whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
(setprinttypelist, showprinttypelist, print_methods,
print_typedefs): New globals.
(set_print_type, show_print_type, set_print_type_methods,
show_print_type_methods, set_print_type_typedefs,
show_print_type_typedefs): New functions.
(_initialize_typeprint): Update documentation.  Add "print
type methods" and "print type typedefs" parameters.
* typeprint.h (struct type_print_options) <print_methods,
print_typedefs>: New fields.
doc
* gdb.texinfo (Symbols): Document "set print type methods",
"set print type typedefs", and flags to ptype and whatis.

12 years ago * c-typeprint.c (cp_type_print_method_args): Add flags
Tom Tromey [Mon, 12 Nov 2012 17:20:39 +0000 (17:20 +0000)]
* c-typeprint.c (cp_type_print_method_args): Add flags
argument.  Call c_print_type, not type_print.
(c_type_print_base): Call c_print_type, not type_print.
Update.

12 years ago * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
Tom Tromey [Mon, 12 Nov 2012 17:14:55 +0000 (17:14 +0000)]
* ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
to type-printing functions.
* ada-lang.h (ada_print_type): Add argument.
* ada-typeprint.c (print_array_type, print_variant_clauses,
print_variant_part, print_selected_record_field_types,
print_record_field_types, print_unchecked_union_type,
print_func_type, ada_print_type): Add flags argument.
(ada_print_typedef): Update.
* c-exp.y (OPERATOR conversion_type_id): Update.
* c-lang.h (c_print_type, c_type_print_base): Update.
* c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
c_type_print_modifier, c_type_print_args,
c_type_print_varspec_suffix, c_type_print_base): Add flags
argument.
* cp-valprint.c (cp_print_class_member): Update.
* dwarf2read.c (dwarf2_compute_name): Update.
* f-lang.h (f_print_type): Add argument.
* f-typeprint.c (f_print_type): Add flags argument.
* gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
* go-lang.h (go_print_type): Add argument.
* go-typeprint.c (go_print_type): Add flags argument.
* jv-lang.h (java_print_type): Add argument.
* jv-typeprint.c (java_type_print_base, java_print_type): Add
flags argument.
* language.c (unk_lang_print_type): Add flags argument.
* language.h (struct language_defn) <la_print_type>: Add flags
argument.
(LA_PRINT_TYPE): Likewise.
* m2-lang.h (m2_print_type): Add argument.
* m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
m2_unbounded_array, m2_record_fields): Add flags argument.
* p-lang.h (pascal_print_type, pascal_type_print_base,
pascal_type_print_varspec_prefix): Add argument.
* p-typeprint.c (pascal_print_type,
pascal_type_print_varspec_prefix, pascal_print_func_args,
pascal_type_print_varspec_suffix, pascal_type_print_base): Add
flags argument.
* symmisc.c (print_symbol): Update.
* typeprint.c (type_print_raw_options, default_ptype_flags):
New globals.
(type_print): Update.
* typeprint.h (struct type_print_options): New.
(type_print_raw_options): Declare.
(c_type_print_varspec_suffix, c_type_print_args): Add argument.

12 years ago * gdb.cp/classes.exp (test_ptype_class_objects): Remove
Tom Tromey [Mon, 12 Nov 2012 17:08:09 +0000 (17:08 +0000)]
* gdb.cp/classes.exp (test_ptype_class_objects): Remove
"ptype" from calls to cp_test_ptype_class.
(test_enums): Likewise.
* gdb.cp/derivation.exp: Remove "ptype" from calls to
cp_test_ptype_class.
* gdb.cp/inherit.exp (test_ptype_si): Remove "ptype" from
calls to cp_test_ptype_class.
(test_ptype_mi, test_ptype_vi, test_ptype_mvi): Likewise.
* gdb.cp/virtfunc.exp (test_ptype_of_classes): Remove "ptype"
from calls to cp_test_ptype_class.
* lib/cp-support.exp (cp_test_ptype_class): Supply "ptype"
command here.  Change "in_command" argument to "in_exp".

12 years agoCorrect gas microblaze ChangeLog entry
H.J. Lu [Mon, 12 Nov 2012 16:39:48 +0000 (16:39 +0000)]
Correct gas microblaze ChangeLog entry

12 years agoAdd missing test cases.
Michael Eager [Mon, 12 Nov 2012 00:23:25 +0000 (00:23 +0000)]
Add missing test cases.
* gas/microblaze/endian.exp: New file - endian testcase for microblaze / microblazeel.
* gas/microblaze/endian.s: Likewise.
* gas/microblaze/endian_be.d: Likewise.
* gas/microblaze/endian_le.d: Likewise.
* gas/microblaze/endian_le_elf.d: Likewise.

12 years ago*** empty log message ***
gdbadmin [Mon, 12 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 11 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agomerge from gcc
DJ Delorie [Sun, 11 Nov 2012 22:37:30 +0000 (22:37 +0000)]
merge from gcc

12 years agoMerge from GCC.
Thomas Schwinge [Sun, 11 Nov 2012 10:59:50 +0000 (10:59 +0000)]
Merge from GCC.

config/
* dfp.m4 (enable_decimal_float): Enable for i?86*-*-gnu*.

libdecnumber/
* configure: Regenerate.

12 years ago*** empty log message ***
gdbadmin [Sun, 11 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 10 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years ago * breakpoint.c (clear_command): Add cleanup for
Keith Seitz [Sat, 10 Nov 2012 20:25:56 +0000 (20:25 +0000)]
* breakpoint.c (clear_command): Add cleanup for
sals.sals if an argument is given.

* linespec.c (parse_linespec): Do cleanups after
parsing a convenience variable.

12 years ago PR gdb/14288
Keith Seitz [Sat, 10 Nov 2012 20:19:01 +0000 (20:19 +0000)]
    PR gdb/14288
        * c-valprint.c (c_val_print): For character arrays
        with "print null" option on, print ellipses if
        the output is truncated and the next character is not \000.
        * valprint.c (MAX_WCHARS): Define.
        (WCHAR_BUFLEN): Likewise.
        (WCHAR_BUFLEN_MAX): Likewise.
        (struct converted_character): New structure.
        (count_next_character): New function.
        (print_converted_chars_to_obstack): New function.
        (generic_printstr): Rewrite using count_next_character
        and print_converted_chars_to_obstack.

        * gdb.base/printcmds.c: Add invalid_XXX globals
        for repeated byte tests.
        * gdb.base/printcmds.exp (test_repeat_bytes): New procedure.
        * gdb.base/wchar.c (main): Add and construct a wchar_t
        array with repeated characters.
        * gdb.base/wchar.exp: Add repeated character tests.

12 years ago* tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
Stephane Carrez [Sat, 10 Nov 2012 13:12:18 +0000 (13:12 +0000)]
* tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
while executing the gdb command.
(tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
are called from prompt_for_continue.
* tui/tui-io.c (tui_redisplay_readline): Likewise.

12 years agoPR tui/9584
Stephane Carrez [Sat, 10 Nov 2012 12:25:07 +0000 (12:25 +0000)]
PR tui/9584

* tui/tui.c (tui_rl_command_key): Do not call execute_command
  but insert the command to execute in readline's buffer.

12 years ago*** empty log message ***
gdbadmin [Sat, 10 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 9 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update

12 years agoFiles missing from previous commit.
Michael Eager [Fri, 9 Nov 2012 22:43:28 +0000 (22:43 +0000)]
Files missing from previous commit.

12 years ago * gdbarch.sh (target_gdbarch): Remove macro.
Tom Tromey [Fri, 9 Nov 2012 19:58:03 +0000 (19:58 +0000)]
* gdbarch.sh (target_gdbarch): Remove macro.
(get_target_gdbarch): Rename to target_gdbarch.
* gdbarch.c, gdbarch.h: Rebuild.
* ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
procfs.c, progspace.c, ravenscar-thread.c, record.c,
remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
target-descriptions.c, target.c, target.h, tracepoint.c,
windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
python/py-inferior.c, python/python.c: Update.

12 years ago * read.h (s_vendor_attribute): Move to...
Maciej W. Rozycki [Fri, 9 Nov 2012 18:07:10 +0000 (18:07 +0000)]
* read.h (s_vendor_attribute): Move to...
* config/obj-elf.h (obj_elf_vendor_attribute): ... here.
* read.c (potable): Remove "gnu_attribute".
(skip_whitespace, skip_past_char, skip_past_comma): Delete, move
to config/obj-elf.c.
(s_vendor_attribute): Delete, move to obj_elf_vendor_attribute
in config/obj-elf.c.
(s_gnu_attribute): Delete, move to obj_elf_gnu_attribute in
config/obj-elf.c.
* config/obj-elf.c (elf_pseudo_table): Add "gnu_attribute".
(skip_whitespace, skip_past_char, skip_past_comma): New, moved
from read.c.
(obj_elf_vendor_attribute): New, moved from s_vendor_attribute
in read.c.
(obj_elf_gnu_attribute): New, moved from s_gnu_attribute in
read.c.
* config/tc-arm.c (s_arm_eabi_attribute): Rename
s_vendor_attribute to obj_elf_vendor_attribute.
* config/tc-tic6x.c (s_tic6x_c6xabi_attribute): Likewise.

12 years ago2012-11-09 Nick Clifton <nickc@redhat.com>
Nick Clifton [Fri, 9 Nov 2012 17:36:19 +0000 (17:36 +0000)]
2012-11-09  Nick Clifton  <nickc@redhat.com>

* Makefile.am (ALL_MACHINES): Add cpu-v850-rh850.lo.
(ALL_MACHINES_CFILES): Add cpu-v850-rh850.c.
* archures.c (bfd_arch_info): Add bfd_v850_rh850_arch.
* config.bfd: Likewise.
* configure.in: Add bfd_elf32_v850_rh850_vec.
* cpu-v850.c: Update printed description.
* cpu-v850_rh850.c: New file.
* elf32-v850.c (v850_elf_check_relocs): Add support for RH850 ABI
relocs.
(v850_elf_perform_relocation): Likewise.
(v850_elf_final_link_relocate): Likewise.
(v850_elf_relocate_section): Likewise.
(v850_elf_relax_section): Likewise.
(v800_elf_howto_table): New.
(v850_elf_object_p): Add support for RH850 ABI values.
(v850_elf_final_write_processing): Likewise.
(v850_elf_merge_private_bfd_data): Likewise.
(v850_elf_print_private_bfd_data): Likewise.
(v800_elf_reloc_map): New.
(v800_elf_reloc_type_lookup): New.
(v800_elf_reloc_name_lookup): New.
(v800_elf_info_to_howto): New.
(bfd_elf32_v850_rh850_vec): New.
(bfd_arch_v850_rh850): New.
* targets.c (_bfd_targets): Add bfd_elf32_v850_rh850_vec.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* configure: Regenerate.

* readelf.c (get_machine_flags): Add support for E_FLAG_RX_ABI.
(guess_is_rela): Add EM_V800.
(dump_relocations): Likewise.
(get_machine_name): Update EM_V800.
(get_machine_flags): Add support for RH850 ABI flags.
(is_32bit_abs_reloc): Add support for RH850 ABI reloc.

* config/tc-v850.c (v850_target_arch): New.
(v850_target_format): New.
(set_machine): Use v850_target_arch.
(md_begin): Likewise.
(md_show_usage): Document new switches.
(md_parse_option): Add -mgcc-abi, -mrh850-abi, -m8byte-align and
-m4byte-align.
* config/tc-v850.c (TARGET_ARCH) Use v850_target_arch.
(TARGET_FORMAT): Use v850_target_format.
* doc/c-v850.texi: Document new options.

* v850.h: Add RH850 ABI values.

* Makefile.am: (ALL_EMULATION_SOURCES): Add ev850_rh850.c.
* Makefile.in: Regenerate.
* configure.tgt (v850*-*-*): Make v850_rh850 the default
emulation. Add vanilla v850 as an extra emulation.
* emulparams/v850_rh850.sh: New file.
* scripttempl/v850_rh850.sc: New file.

* configure.in: Add bfd_v850_rh850_arch.
* configure: Regenerate.
* disassemble.c (disassembler): Likewise.

12 years ago2012-11-09 Nick Clifton <nickc@redhat.com>
Nick Clifton [Fri, 9 Nov 2012 17:00:44 +0000 (17:00 +0000)]
2012-11-09  Nick Clifton  <nickc@redhat.com>

* elf32-rx.c (describe_flags): New function.  Returns a buffer
containing a description of the E_FLAG_RX_... values set.
(rx_elf_merge_private_bfd_data): Use it.
(rx_elf_print_private_bfd_data): Likewise.
(elf32_rx_machine): Skip EF_RX_CPU_RX check.
(elf32_rx_special_sections): Define.
(elf_backend_special_sections): Define.

2012-11-09  Nick Clifton  <nickc@redhat.com>

* readelf.c (get_machine_flags): Add support for E_FLAG_RX_ABI.

2012-11-09  Nick Clifton  <nickc@redhat.com>

* config/obj-elf.c (obj_elf_change_section): Allow init array
sections to have the SHF_EXECINSTR attribute for the RX target.
* config/tc-rx.c (elf_flags): Initialise with E_FLAG_RX_ABI.
(enum options): Add OPTION_USES_GCC_ABI and OPTION_USES_RX_ABI.
(md_longopts): Add -mgcc-abi and -mrx-abi.
(md_parse_option): Add support for OPTION_USES_GCC_ABI and
OPTION_USES_RX_ABI.
* doc/as.texinfo (RX Options): Add mention of remaining RX
options.
* doc/c-rx.texi: Document -mgcc-abi and -mrx-abi.

2012-11-09  Nick Clifton  <nickc@redhat.com>

* rx.h (EF_RX_CPU_RX): Add comment.
(E_FLAG_RX_ABI): Define.

2012-11-09  Nick Clifton  <nickc@redhat.com>

* emultempl/rxelf.em (no_flag_mismatch_warnings): Initialise to
true.
(PARSE_AND_LIST_LONGOPTS): Add flag-mismatch-warnings.
(PARSE_AND_LIST_ARG_CASES): Add support for
--flag-mismatch-warnings.

12 years agoAdd microblazeel target support to bfd, gas and ld.
Michael Eager [Fri, 9 Nov 2012 16:25:12 +0000 (16:25 +0000)]
Add microblazeel target support to bfd, gas and ld.

binutils/bfd/Changelog

 2012-11-09  Edgar E. Iglesias <edgar.iglesias@gmail.com>

          * config.bfd: Add microblazeel-*-*
          * configure.in: Likewise.
          * configure: Regenerate.
          * elf32-microblaze.c (microblaze_elf_relocate_section):
            Add endian awareness.
            (microblaze_elf_merge_private_bfd_data): New.
            (microblaze_bfd_write_imm_value_32): New.
            (microblaze_bfd_write_imm_value_64): New.
            (microblaze_elf_relax_section): Add endian awareness.
            (microblaze_elf_add_symbol_hook): Define TARGET_LITTLE_NAME,
            TARGET_LITTLE_SYM and bfd_elf32_bfd_merge_private_bfd_data.
          * targets.c: Add bfd target bfd_elf32_microblazeel_vec.

binutils/gas/Changelog

 2012-11-09  Edgar E. Iglesias <edgar.iglesias@gmail.com>

          * tc-microblaze.c (md_longopts): Define OPTION_EB and
            OPTION_EL for target.
            (md_parse_option): Likewise.
          * tc-microblaze.h: Set elf32-microblazeel if not
            target_big_endian for TARGET_FORMAT.
          * configure.tgt: Add microblazeel and set endian per target.

binutils/gas/testsuite/Changelog

 2012-11-09  David Holsgrove  <david.holsgrove@xilinx.com>

          * gas/microblaze/endian.exp: New file - endian
            testcase for microblaze / microblazeel.
          * gas/microblaze/endian.s: Likewise.
          * gas/microblaze/endian_be.d: Likewise.
          * gas/microblaze/endian_le.d: Likewise.
          * gas/microblaze/endian_le_elf.d: Likewise.
          * gas/microblaze/reloc_sym.d: Update to accept targets
            other than elf32-microblaze.
          * gas/microblaze/special_reg.d: Likewise.

binutils/ld/Changelog

 2012-11-09  Edgar E. Iglesias <edgar.iglesias@gmail.com>

          * Makefile.am: Add eelf32microblazeel.c and eelf32mbel_linux.c.
          * Makefile.in: Regenerated.
          * configure.tgt: Add microblazeel and set endian per target.
          * emulparams/elf32mb_linux.sh: Add OUTPUT_FORMAT.
          * emulparams/elf32microblaze.sh: Likewise.
          * emulparams/elf32mbel_linux.sh: New file.
          * emulparams/elf32microblazeel.sh: Likewise.

12 years ago2012-11-07 James Murray <jsm@jsm-net.demon.co.uk>
Sean Keys [Fri, 9 Nov 2012 14:40:27 +0000 (14:40 +0000)]
2012-11-07  James Murray <jsm@jsm-net.demon.co.uk>

* config/tc-m68hc11.c: Fix R_M68HC12_16B relocation for movb/w

12 years agohttp://sourceware.org/ml/gdb-patches/2012-10/msg00083.html
Andrew Burgess [Fri, 9 Nov 2012 13:23:33 +0000 (13:23 +0000)]
sourceware.org/ml/gdb-patches/2012-10/msg00083.html

gdb/ChangeLog

        * source.c (print_source_lines_base): Add fullname field giving
        full path to file in mi output.
        * NEWS: Mention the new fullname field.

gdb/doc/ChangeLog

        * gdb.texinfo (GDB/MI Data Manipulation): Add fullname field to
        the example -data-disassemble output.  Extend the description of
        the -data-disassemble results to document all fields.  Document
        the cli disassemble command as being related to -data-disassemble.

gdb/testsuite/ChangeLog

        * gdb.mi/mi-disassemble.exp: Expect fullname field in mi
        disassembly output.

12 years ago2012-11-09 Yao Qi <yao@codesourcery.com>
Yao Qi [Fri, 9 Nov 2012 12:48:11 +0000 (12:48 +0000)]
2012-11-09  Yao Qi  <yao@codesourcery.com>

* NEWS: Mention the fix to the ambiguity of 'fo' command.

12 years ago2012-11-09 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 9 Nov 2012 12:20:24 +0000 (12:20 +0000)]
2012-11-09  Pedro Alves  <palves@redhat.com>

PR gdb/14306

* infrun.c: Include target-descriptions.h.
(follow_exec): Fetch new target description.

gdb/testsuite/
2012-11-09  Pedro Alves  <palves@redhat.com>

PR gdb/14306

* gdb.multi/multi-arch-exec.c: New file.
* gdb.multi/multi-arch-exec.exp: New file.

12 years agogdb:
Yao Qi [Fri, 9 Nov 2012 10:11:21 +0000 (10:11 +0000)]
gdb:
* i386-tdep.c (i386_analyze_frame_setup): Handle opcode
0x8d (lea).

12 years agoRemove trailing redundant `;'
H.J. Lu [Fri, 9 Nov 2012 08:29:34 +0000 (08:29 +0000)]
Remove trailing redundant `;'

bfd/

* aout-tic30.c (MY_final_link_callback): Remove trailing
redundant `;'.
* coff-h8500.c (extra_case): Likewise.
(bfd_coff_reloc16_get_value): Likewise.
* dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Likewise.
* elf.c (_bfd_elf_slurp_version_tables): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-v850.c (v850_elf_perform_relocation): Likewise.
* opncls.c (bfd_calc_gnu_debuglink_crc32): Likewise.
* plugin.c (add_symbols): Likewise.
* reloc.c (bfd_check_overflow): Likewise.
* vms-lib.c (_bfd_vms_lib_archive_p): Likewise.

binutils/

* coffgrok.c (coff_grok): Remove trailing redundant `;'.
* resrc.c (open_input_stream): Likewise.

gas/

* config/atof-ieee.c (gen_to_words): Remove trailing redundant
`;'.
* config/atof-vax.c (flonum_gen2vax): Likewise.
* config/tc-d10v.c (write_2_short): Likewise.
* config/tc-i386-intel.c (i386_intel_simplify): Likewise.
* config/tc-s390.c (tc_s390_force_relocation): Likewise.
* config/tc-v850.c (md_parse_option): Likewise.
* config/tc-xtensa.c (find_address_of_next_align_frag): Likewise.
* dwarf2dbg.c (out_header): Likewise.
* symbols.c (dollar_label_name): Likewise.
(fb_label_name): Likewise.

ld/

* testplug.c (record_add_file): Remove trailing redundant `;'.

opcodes/

* aarch64-opc.h (gen_mask): Remove trailing redundant `;'.
* ia64-gen.c (fetch_insn_class): Likewise.

12 years ago2012-11-09 Yao Qi <yao@codesourcery.com>
Yao Qi [Fri, 9 Nov 2012 07:21:03 +0000 (07:21 +0000)]
2012-11-09  Yao Qi  <yao@codesourcery.com>

        * breakpoint.c: Declare set_tracepoint_count.
        (install_breakpoint): Call set_tracepoint_count if B is a
        tracepoint.
        (trace_command): Don't call set_tracepoint_count.  Re-indent.
        (strace_command, ftrace_command):
        (create_tracepoint_from_upload): Likewise.

gdb/testsuite:

2012-11-09  Yao Qi  <yao@codesourcery.com>

        * gdb.mi/mi-break.exp (test_abreak_creation): New procedure.
        (top level): Call it

12 years agogdb/doc:
Yao Qi [Fri, 9 Nov 2012 03:06:29 +0000 (03:06 +0000)]
gdb/doc:
PR gdb/14777.
* gdb.texinfo (OS Information): Remove doc on command
'info udot'.

12 years agogdb/gdbserver:
Yao Qi [Fri, 9 Nov 2012 02:58:50 +0000 (02:58 +0000)]
gdb/gdbserver:
2012-11-09  Yao Qi  <yao@codesourcery.com>

* spu-low.c (current_ptid): Move it to ..
* gdbthread.h: ... here.  New.
* remote-utils.c (read_ptid): Use macro 'current_ptid'.
* server.c (myresume, process_serial_event): Likewise.
* thread-db.c (thread_db_find_new_threads): Likewise.
* tracepoint.c (run_inferior_command): Likewise.

12 years agogdb/testsuite:
Yao Qi [Fri, 9 Nov 2012 02:30:49 +0000 (02:30 +0000)]
gdb/testsuite:
* gdb.mi/mi-watch.exp (test_rwatch_creation_and_listing): Fix
typo.

12 years agogdb/
Pedro Alves [Fri, 9 Nov 2012 01:47:20 +0000 (01:47 +0000)]
gdb/
2012-11-09  Pedro Alves  <palves@redhat.com>

* gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
(get_target_gdbarch) <gdbarch.h>: New function.
(startup_gdbarch) <gdbarch.h>: Declare.
<gdbarch.c> (target_gdbarch): Delete.
<gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
current inferior's gdbarch.
<gdbarch.c> (get_target_gdbarch): New function.
* inferior.c: Include target-descriptions.h.
(free_inferior): Free target description info.
(add_inferior_with_spaces): Set the inferior's initial
architecture.
(clone_inferior_command): Copy the original inferior's target
description if it was user specified.
(initialize_inferiors): Add comment.
* inferior.h (struct target_desc_info): Forward declare.
(struct inferior) <gdbarch>: New field.
* linux-nat.c: Include target-descriptions.h.
(linux_child_follow_fork): Copy the parent's architecture and
target description to the child.
* target-descriptions.c: Include inferior.h.
(struct target_desc_info): New structure, holding the equivalents
of ...
(target_desc_fetched, current_target_desc)
(target_description_filename): ... these removed globals.
(get_tdesc_info, target_desc_info_from_user_p)
(copy_inferior_target_desc_info, target_desc_info_free): New.
(target_desc_fetched, current_target_desc)
(target_description_filename): Reimplemented as convenience
macros.
(tdesc_filename_cmd_string): New global.
(set_tdesc_filename_cmd): Copy the string manipulated by the "set
tdescs filename ..." commands to the per-inferior equivalent.
(show_tdesc_filename_cmd): Get the value to show from the
per-inferior description filename.
(_initilize_target_descriptions): Change the "set/show tdesc
filename" commands' variable.
* target-descriptions.h (struct target_desc, struct target_desc_info)
(struct inferior): Forward declare.
(target_find_description, target_clear_description)
(target_current_description): Adjust comments.
(copy_inferior_target_desc_info, target_desc_info_free)
(target_desc_info_from_user_p). Declare.

gdb/testsuite/
2012-11-09  Pedro Alves  <palves@redhat.com>

* gdb.multi/multi-arch.exp: New.

12 years ago*** empty log message ***
gdbadmin [Fri, 9 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 8 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years ago* tui/tui-hooks.c (tui_about_to_proceed): New function.
Stephane Carrez [Thu, 8 Nov 2012 22:54:11 +0000 (22:54 +0000)]
* tui/tui-hooks.c (tui_about_to_proceed): New function.
  (tui_target_wait_hook): Remove.
  (tui_install_hooks): Install the about_to_proceed observer.
  (tui_remove_hooks): And remove it here.

12 years agodocument gdb.init check only performed in home directory
Joel Brobecker [Thu, 8 Nov 2012 22:26:31 +0000 (22:26 +0000)]
document gdb.init check only performed in home directory

The documentation is a little ambiguous and might be suggesting that
GDB checks all locations where a gdbinit might be located for gdb.ini
files.  This clarifies the current situation.

gdb/doc/ChangeLog:

        * gdb.texinfo (Startup): Minor rewording, and clarify scope of
        gdb.ini warning for Windows port.

12 years agogdb
Tom Tromey [Thu, 8 Nov 2012 21:16:43 +0000 (21:16 +0000)]
gdb
* linux-tdep.c (linux_make_siginfo_note): New function.
(linux_make_corefile_notes): Use it.
* corelow.c (get_core_siginfo): New function.
(core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
gdb/testsuite
* gdb.base/siginfo-obj.exp: Create core file.  Test siginfo from
core files, if possible.
* gdb.base/siginfo-thread.c: New file
* gdb.base/siginfo-thread.exp: New file
bfd
* elf.c (elfcore_grok_note) <NT_SIGINFO>: New case; make
pseudosection.

12 years ago PR gdb/14704:
Tom Tromey [Thu, 8 Nov 2012 19:52:42 +0000 (19:52 +0000)]
PR gdb/14704:
* gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
(zlib_decompress_section): Remove.
(gdb_bfd_map_section): Only check for compressed section
in mmap case.  Use bfd_get_full_section_contents.
* osabi.c (check_note): Add 'sectsize' argument.  Read
section data.
(generic_elf_osabi_sniff_abi_tag_sections): Don't read
section data.  Update for check_note change.
* xcoffread.c (xcoff_initial_scan): Use
bfd_get_full_section_contents.
* py-auto-load.c (auto_load_section_scripts): Use
bfd_get_full_section_contents.
* contrib/cc-with-tweaks.sh: Add -Z option.
testsuite
* gdb.base/comprdebug.exp: New file.

12 years ago * python/py-bpevent.c: Include defs.h.
Tom Tromey [Thu, 8 Nov 2012 19:38:43 +0000 (19:38 +0000)]
* python/py-bpevent.c: Include defs.h.
* python/py-continueevent.c: Include defs.h.
* python/py-event.c: Include defs.h.
* python/py-event.h: Don't include defs.h.
* python/py-events.h: Don't include defs.h.
* python/py-evts.c: Include defs.h.
* python/py-exitedevent.c: Include defs.h.
* python/py-newobjfileevent.c: Include defs.h.
* python/py-signalevent.c: Include defs.h.
* python/py-stopevent.c: Include defs.h.
* python/py-threadevent.c: Include defs.h.

12 years ago * mips.h (EF_MIPS_32BITMODE): Move next to lower-order bits.
Maciej W. Rozycki [Thu, 8 Nov 2012 18:25:23 +0000 (18:25 +0000)]
* mips.h (EF_MIPS_32BITMODE): Move next to lower-order bits.

12 years ago gas/
Maciej W. Rozycki [Thu, 8 Nov 2012 18:21:25 +0000 (18:21 +0000)]
gas/
* config/tc-mips.c (mips_ip) <'u'>: Default to BFD_RELOC_LO16.

gas/testsuite/
* gas/mips/lui.d: New test.
* gas/mips/micromips@lui.d: New test.
* gas/mips/lui-1.l: New list test.
* gas/mips/lui-2.l: New list test.
* gas/mips/lui.s: New test source.
* gas/mips/lui-1.s: New test source.
* gas/mips/lui-2.s: New test source.
* gas/mips/mips.exp: Run the new tests.

12 years ago * update-web-ari.sh (print_heading): Add number of files
Pierre Muller [Thu, 8 Nov 2012 16:50:56 +0000 (16:50 +0000)]
* update-web-ari.sh (print_heading): Add number of files
checked.
(nb_files): New variable counting the number of sources
files found by gdb_find.sh script.
(debug_awk): New variable to allow extra debug output.
(indexes): Add more information if DEBUG_AWK is set.

12 years ago * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
Edjunior Barbosa Machado [Thu, 8 Nov 2012 14:16:33 +0000 (14:16 +0000)]
* ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
ppc64_standard_linkage3): Mark ld r11 instructions as optional,
following the change in PLT call stubs on linker.

12 years ago * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
Pierre Muller [Thu, 8 Nov 2012 09:04:27 +0000 (09:04 +0000)]
* contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
as default language.
(AWK): Use = instead of == for sh test to avoid warning.
(Linux rule): Correct [:digit] into [[:digit:]].
(__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
(vasprintf rule): Adapt to common subdirectory moves.
(xasprintf rule): Idem.
(xvasprintf rule): Idem.
(var_boolean rule): Accept occurence in == or != test.

* contrib/ari/gdb_find.sh: Also prune gdbtk directory.

12 years ago* tui/tui-hooks.c (tui_inferior_exit): New function.
Stephane Carrez [Thu, 8 Nov 2012 06:58:30 +0000 (06:58 +0000)]
* tui/tui-hooks.c (tui_inferior_exit): New function.
  (tui_detach_hook): Remove.
  (tui_install_hooks): Install the inferior exit observer.
  (tui_remove_hooks): Remove it.

12 years agogdb/doc:
Yao Qi [Thu, 8 Nov 2012 04:05:16 +0000 (04:05 +0000)]
gdb/doc:
2012-11-08  Yao Qi  <yao@codesourcery.com>

* gdb.texinfo (Search): Add kindex for 'fo'.
gdb:
2012-11-08  Yao Qi  <yao@codesourcery.com>

PR gdb/14777.
* source.c (_initialize_source): Call add_com_alias to abbreviate
'forward-search' as 'fo'.

12 years agoRegenerate.
Alan Modra [Thu, 8 Nov 2012 03:03:26 +0000 (03:03 +0000)]
Regenerate.

12 years ago*** empty log message ***
gdbadmin [Thu, 8 Nov 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 7 Nov 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2012-11-07 James Murray <jsm@jsm-net.demon.co.uk>
Sean Keys [Wed, 7 Nov 2012 20:36:33 +0000 (20:36 +0000)]
2012-11-07  James Murray <jsm@jsm-net.demon.co.uk>

* config/tc-m68hc11.c: Fix R_M68HC12_16B relocation for movb/w

12 years ago2012-11-07 James Murray <jsm@jsm-net.demon.co.uk>
Sean Keys [Wed, 7 Nov 2012 20:35:02 +0000 (20:35 +0000)]
2012-11-07  James Murray   <jsm@jsm-net.demon.co.uk>

* ld-m68hc11/movw.d: New test for 16bit relocate.
* ld-m68hc11/movw.s: Source for test.

12 years ago2012-11-07 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 7 Nov 2012 20:10:13 +0000 (20:10 +0000)]
2012-11-07  Pedro Alves  <palves@redhat.com>

* arm-tdep.c: Make defs.h be the first include.
* coff-pe-read.c: Ditto.
* gnu-nat.c: Ditto.
* go32-nat.c: Ditto.
* i386-nat.c: Ditto.
* ppcnbsd-nat.c: Ditto.
* ada-varobj.h: Don't include defs.h.
* i386-darwin-tdep.h: Ditto.
* i386-nat.h: Ditto.