external/binutils.git
14 years agoinclude/opcode/
Alan Modra [Sat, 3 Jul 2010 06:51:56 +0000 (06:51 +0000)]
include/opcode/
* ppc.h (PPC_OPCODE_32, PPC_OPCODE_BOOKE64, PPC_OPCODE_CLASSIC): Delete.
Renumber other PPC_OPCODE defines.
gas/
* config/tc-ppc.c (ppc_set_cpu): Remove old opcode flags.
(ppc_setup_opcodes): Likewise.  Simplify opcode selection.
opcodes/
* ppc-dis.c (ppc_opts, powerpc_init_dialect): Remove old opcode flags.
* ppc-opc.c (PPC32, POWER32, COM32, CLASSIC): Delete.
(PPC64, MFDEC2): Update.
(NON32, NO371): Define.
(powerpc_opcode): Update to not use old opcode flags, and avoid
-m601 duplicates.

14 years ago* m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it.
DJ Delorie [Sat, 3 Jul 2010 04:09:56 +0000 (04:09 +0000)]
* m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it.

* m32c-ibld.c: Regenerate.

14 years ago * ppc-opc.c (PWR2COM): Define.
Alan Modra [Sat, 3 Jul 2010 03:33:17 +0000 (03:33 +0000)]
* ppc-opc.c (PWR2COM): Define.
(PPCPWR2): Add PPC_OPCODE_COMMON.
(powerpc_opcodes): Add "subc", "subco", "subco.", "fcir", "fcir.",
"fcirz", "fcirz." to -mcom opcodes.  Remove "mfsri", "dclst",
"rac" from -mcom.

14 years ago * ppc.h (PPC_OPCODE_COMMON): Expand comment.
Alan Modra [Sat, 3 Jul 2010 03:32:50 +0000 (03:32 +0000)]
* ppc.h (PPC_OPCODE_COMMON): Expand comment.

14 years ago*** empty log message ***
gdbadmin [Sat, 3 Jul 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sat, 3 Jul 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago PR exp/11780:
Tom Tromey [Fri, 2 Jul 2010 21:22:30 +0000 (21:22 +0000)]
PR exp/11780:
* libunwind-frame.c (libunwind_frame_prev_register): Don't set
value as optimized-out.

14 years ago* config/tc-rx.h (md_do_align): New.
DJ Delorie [Fri, 2 Jul 2010 20:40:28 +0000 (20:40 +0000)]
* config/tc-rx.h (md_do_align): New.
(MAX_MEM_FOR_RS_ALIGN_CODE): New.
* config/tc-rx.c (nops): New.
(rx_handle_align): Use various sized nops to align code.

14 years ago* config/tc-rx.c (rx_bytesT): Add grown/shrank counters for
DJ Delorie [Fri, 2 Jul 2010 20:24:23 +0000 (20:24 +0000)]
* config/tc-rx.c (rx_bytesT): Add grown/shrank counters for
relaxation.
(rx_relax_frag): Prevent infinite loops of grow/shrink/grow/etc.

14 years ago2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
Thiago Jung Bauermann [Fri, 2 Jul 2010 19:45:49 +0000 (19:45 +0000)]
2010-07-02  Ulrich Weigand  <uweigand@de.ibm.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
represent?" question in comment.  Change comment to a proper sentence.

14 years ago * gdb.base/bitops.exp: Remove extraneous "pass".
Tom Tromey [Fri, 2 Jul 2010 19:11:55 +0000 (19:11 +0000)]
* gdb.base/bitops.exp: Remove extraneous "pass".

14 years ago2010-07-02 Ken Werner <ken.werner@de.ibm.com>
Tom Tromey [Fri, 2 Jul 2010 18:02:19 +0000 (18:02 +0000)]
2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
gdb
* c-valprint.c (c_val_print): Fix printing of character vectors.
gdb/testsuite
* gdb.arch/altivec-abi.exp: Fix expect pattern of character vectors.

14 years agosync config/ChangeLog with gcc
Paolo Bonzini [Fri, 2 Jul 2010 12:15:53 +0000 (12:15 +0000)]
sync config/ChangeLog with gcc

14 years ago * gc++filt.m4: New file.
Rainer Orth [Fri, 2 Jul 2010 11:58:19 +0000 (11:58 +0000)]
* gc++filt.m4: New file.

14 years agogdb/
Jan Kratochvil [Fri, 2 Jul 2010 08:04:03 +0000 (08:04 +0000)]
gdb/
* spu-tdep.c (spu_catch_start): Adjust the caller of changed
create_breakpoint prototype.

14 years ago*** empty log message ***
gdbadmin [Fri, 2 Jul 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 2 Jul 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agoUpdate ChangeLog entry.
H.J. Lu [Thu, 1 Jul 2010 21:57:04 +0000 (21:57 +0000)]
Update ChangeLog entry.

14 years agoSupport AVX Programming Reference (June, 2010)
H.J. Lu [Thu, 1 Jul 2010 21:55:02 +0000 (21:55 +0000)]
Support AVX Programming Reference (June, 2010)

gas/

2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (June, 2010)
* config/tc-i386.c (cpu_arch): Add .xsaveopt, .fsgsbase, .rdrnd
and .f16c.

* doc/c-i386.texi: Document xsaveopt, fsgsbase, rdrnd and f16c.

gas/testsuite/

2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (June, 2010)
* gas/i386/arch-10.s: Add xsaveopt.
* gas/i386/x86-64-arch-2.s: Likwise.

* gas/i386/arch-10.d: Updated.
* gas/i386/arch-10-1.l: Likewise.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.
* gas/i386/x86-64-arch-2.d: Likewise.

* gas/i386/f16c-intel.d: New.
* gas/i386/f16c.d: Likewise.
* gas/i386/f16c.s: Likewise.
* gas/i386/fsgs-intel.d: Likewise.
* gas/i386/fsgs.d: Likewise.
* gas/i386/fsgs.s: Likewise.
* gas/i386/rdrnd-intel.d: Likewise.
* gas/i386/rdrnd.d: Likewise.
* gas/i386/rdrnd.s: Likewise.
* gas/i386/x86-64-f16c-intel.d: Likewise.
* gas/i386/x86-64-f16c.d: Likewise.
* gas/i386/x86-64-f16c.s: Likewise.
* gas/i386/x86-64-fsgs-intel.d: Likewise.
* gas/i386/x86-64-fsgs.d: Likewise.
* gas/i386/x86-64-fsgs.s: Likewise.
* gas/i386/x86-64-rdrnd-intel.d: Likewise.
* gas/i386/x86-64-rdrnd.d: Likewise.
* gas/i386/x86-64-rdrnd.s: Likewise.

* gas/i386/i386.exp: Run f16c, f16c-intel, fsgs, fsgs-intel,
rdrnd, rdrnd-intel, x86-64-f16c, x86-64-f16c-intel, x86-64-fsgs,
x86-64-fsgs-intel, x86-64-rdrnd, x86-64-rdrnd-intel.

* gas/i386/x86-64-xsave.s: Add tests for xsaveopt64.

* gas/i386/x86-64-xsave-intel.d: Updated.
* gas/i386/x86-64-xsave.d: Likewise.

opcodes/

2010-07-01  H.J. Lu  <hongjiu.lu@intel.com>

AVX Programming Reference (June, 2010)
* i386-dis.c (PREFIX_0FAE_REG_0): New.
(PREFIX_0FAE_REG_1): Likewise.
(PREFIX_0FAE_REG_2): Likewise.
(PREFIX_0FAE_REG_3): Likewise.
(PREFIX_VEX_3813): Likewise.
(PREFIX_VEX_3A1D): Likewise.
(prefix_table): Add PREFIX_0FAE_REG_0, PREFIX_0FAE_REG_1,
PREFIX_0FAE_REG_2, PREFIX_0FAE_REG_3, PREFIX_VEX_3813 and
PREFIX_VEX_3A1D.
(vex_table): Add PREFIX_VEX_3813 and PREFIX_VEX_3A1D.
(mod_table): Add PREFIX_0FAE_REG_0, PREFIX_0FAE_REG_1,
PREFIX_0FAE_REG_2, PREFIX_0FAE_REG_3 xsaveopt and rdrnd.

* i386-gen.c (cpu_flag_init): Add CPU_XSAVEOPT_FLAGS,
CPU_FSGSBASE_FLAGS, CPU_RDRND_FLAGS and CPU_F16C_FLAGS.
(cpu_flags): Add CpuXsaveopt, CpuFSGSBase, CpuRdRnd and CpuF16C.

* i386-opc.h (CpuXsaveopt): New.
(CpuFSGSBase):Likewise.
(CpuRdRnd): Likewise.
(CpuF16C): Likewise.
(i386_cpu_flags): Add cpuxsaveopt, cpufsgsbase, cpurdrnd and
cpuf16c.

* i386-opc.tbl: Add xsaveopt, rdfsbase, rdgsbase, rdrnd,
wrfsbase, wrgsbase, vcvtph2ps and vcvtps2ph.

14 years ago gdb/
Pedro Alves [Thu, 1 Jul 2010 18:03:48 +0000 (18:03 +0000)]
gdb/
* breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
usefulness suggestion of multiple breakpoints at same location.

gdb/testsuite/
* gdb.base/help.exp: Adjust expected output.

14 years ago gdb/
Pedro Alves [Thu, 1 Jul 2010 17:42:41 +0000 (17:42 +0000)]
gdb/
* breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.

gdb/testsuite/
* gdb.base/help: Adjust expected output.

14 years ago * gdb.texinfo (Create and Delete Tracepoints): Add more index
Pedro Alves [Thu, 1 Jul 2010 17:40:04 +0000 (17:40 +0000)]
* gdb.texinfo (Create and Delete Tracepoints): Add more index
entries for fast tracepoints and static tracepoints.

14 years ago * gdb.texinfo (General Query Packets) <qfThreadInfo,
Pedro Alves [Thu, 1 Jul 2010 17:22:52 +0000 (17:22 +0000)]
* gdb.texinfo (General Query Packets) <qfThreadInfo,
qsThreadInfo>: Spell out `l' as ell.

14 years ago * dwarf2loc.c (locexpr_tracepoint_var_ref)
Pedro Alves [Thu, 1 Jul 2010 15:45:31 +0000 (15:45 +0000)]
* dwarf2loc.c (locexpr_tracepoint_var_ref)
(loclist_tracepoint_var_ref): Handle optimized out values.

14 years ago * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
Pedro Alves [Thu, 1 Jul 2010 15:36:18 +0000 (15:36 +0000)]
* breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
unnecessary space in string.
* filesystem.c (_initialize_filesystem): Ditto.
* frame.c (_initialize_frame): Ditto.
* infcmd.c (step_once): Ditto.
* infrun.c (_initialize_infrun): Ditto.
* linux-nat.c (linux_child_follow_fork): Ditto.
* maint.c (maintenance_deprecate): Ditto.
* memattr.c (_initialize_mem): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* monitor.c (monitor_open): Ditto.
* procfs.c (procfs_xfer_memory): Ditto.
* reverse.c (bookmarks_info): Ditto.
* sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
* stack.c (_initialize_stack): Ditto.
* tracepoint.c (_initialize_tracepoint): Ditto.
* xtensa-tdep.c (xtensa_supply_gregset,
xtensa_regset_from_core_section): Ditto.

14 years ago * value.h (struct lval_funcs) <check_any_valid>: Rename from
Tom Tromey [Thu, 1 Jul 2010 15:21:11 +0000 (15:21 +0000)]
* value.h (struct lval_funcs) <check_any_valid>: Rename from
check_all_valid.
* value.c (value_entirely_optimized_out): Invert result.  Update
for new function name.

14 years ago * lib/ld-lib.exp (default_ld_simple_link): Add $gcc_ld_flag before
Alan Modra [Thu, 1 Jul 2010 13:15:47 +0000 (13:15 +0000)]
* lib/ld-lib.exp (default_ld_simple_link): Add $gcc_ld_flag before
any other options in $ld.

14 years ago Static tracepoints support, and UST integration.
Pedro Alves [Thu, 1 Jul 2010 10:36:12 +0000 (10:36 +0000)]
Static tracepoints support, and UST integration.

gdb/gdbserver/
* configure.ac: Handle --with-ust.  substitute ustlibs and ustinc.
* mem-break.c (uninsert_all_breakpoints)
(reinsert_all_breakpoints): New.
* mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
* tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
(gdb_agent_ust_loaded, helper_thread_id)
(gdb_agent_helper_thread_id): New macros.
(struct ipa_sym_addresses): Add addr_ust_loaded,
addr_helper_thread_id, addr_cmd_buf.
(symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
(in_process_agent_loaded_ust): New.
(write_e_ust_not_loaded): New.
(maybe_write_ipa_ust_not_loaded): New.
(struct collect_static_trace_data_action): New.
(enum tracepoint_type) <static_tracepoint>: New.
(struct tracepoint) <handle>: Mention static tracepoints.
(struct static_tracepoint_ctx): New.
(CMD_BUF_SIZE): New.
(add_tracepoint_action): Handle static tracepoint actions.
(unprobe_marker_at): New.
(clear_installed_tracepoints): Handle static tracepoints.
(cmd_qtdp): Handle static tracepoints.
(probe_marker_at): New.
(cmd_qtstart): Handle static tracepoints.
(response_tracepoint): Handle static tracepoints.
(cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
(handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
(get_context_regcache): Handle static tracepoints.
(do_action_at_tracepoint): Handle static tracepoint actions.
(traceframe_find_block_type): Handle static trace data blocks.
(traceframe_read_sdata): New.
(download_tracepoints): Download static tracepoint actions.
[HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
(GDB_PROBE_NAME): New.
(ust_ops): New.
(GET_UST_SYM): New.
(USTF): New.
(dlsym_ust): New.
(ust_marker_to_static_tracepoint): New.
(gdb_probe): New.
(collect_ust_data_at_tracepoint): New.
(gdb_ust_probe): New.
(UNIX_PATH_MAX, SOCK_DIR): New.
(gdb_ust_connect_sync_socket): New.
(resume_thread, stop_thread): New.
(run_inferior_command): New.
(init_named_socket): New.
(gdb_ust_socket_init): New.
(cstr_to_hexstr): New.
(next_st): New.
(first_marker, next_marker): New.
(response_ust_marker): New.
(cmd_qtfstm, cmd_qtsstm): New.
(unprobe_marker_at, probe_marker_at): New.
(cmd_qtstmat, gdb_ust_thread): New.
(gdb_ust_init): New.
(initialize_tracepoint_ftlib): Call gdb_ust_init.
* linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
(ST_REGENTRY): New.
(x86_64_st_collect_regmap): New.
(X86_64_NUM_ST_COLLECT_GREGS): New.
(AMD64_RIP_REGNUM): New.
(supply_static_tracepoint_registers): New.
* linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
(ST_REGENTRY): New.
(i386_st_collect_regmap): New.
(i386_NUM_ST_COLLECT_GREGS): New.
(supply_static_tracepoint_registers): New.
* server.c (handle_query): Handle qXfer:statictrace:read.
<qSupported>: Report support for StaticTracepoints, and
qXfer:statictrace:read features.
* server.h (traceframe_read_sdata)
(supply_static_tracepoint_registers): Declare.
* remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
(unpack_varlen_hex): Include in IPA build.
* Makefile.in (ustlibs, ustinc): New.
(IPA_OBJS): Add remote-utils-ipa.o.
($(IPA_LIB)): Link -ldl and -lpthread.
(UST_CFLAGS): New.
(IPAGENT_CFLAGS): Add UST_CFLAGS.
* config.in, configure: Regenerate.

gdb/
* NEWS: Mention new support for static tracepoints.
(New packets): Mention qTfSTM, qTsSTM, qTSTMat and
qXfer:statictrace:read.
(New features in the GDB remote stub, GDBserver): Mention static
tracepoints support using an UST based backend.
(New commands): Mention "info static-tracepoint-markers" and
"strace".
* breakpoint.c (is_marker_spec): New.
(is_tracepoint): Handle static tracepoints.
(validate_commands_for_breakpoint): Static tracepoints can't do
while-stepping.
(static_tracepoints_here): New.
(bpstat_what): Handle static tracepoints.
(print_one_breakpoint_location, allocate_bp_location, mention):
Ditto.
(create_breakpoint_sal): Ditto.
(decode_static_tracepoint_spec): New.
(create_breakpoint): Replace `hardwareflag', and `traceflag' with
`type_wanted'.  Adjust.  Handle static tracepoint marker
locations.
(break_command_1): Adjust.
(update_static_tracepoint): New.
(update_breakpoint_locations): Handle static tracepoints.
(breakpoint_re_set_one): Handle static tracepoint marker
locations.
(disable_command, enable_command): Handle static tracepoints.
(trace_command, ftrace_command): Adjust.
(strace_command): New.
(create_tracepoint_from_upload): Adjust.
(save_breakpoints): Handle static tracepoints.
(_initialize_breakpoint): Install the "strace" command.
* breakpoint.h (enum bptype): New bp_static_tracepoint type.
(struct breakpoint): New fields static_trace_marker_id and
static_trace_marker_id_idx.
(breakpoints_here_p): Declare.
(create_breakpoint): Adjust.
(static_tracepoints_here): Declare.
* remote.c (struct remote_state) <static_tracepoints>: New field.
(PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
(remote_static_tracepoint_marker_at): New.
(remote_static_tracepoint_markers_by_strid): New.
(remote_static_tracepoint_feature): New.
(remote_disconnected_tracing_feature): Handle "StaticTracepoints".
(remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
(remote_supports_static_tracepoints): New.
(remote_download_tracepoint): Download static tracepoints.
(init_remote_ops): Install remote_static_tracepoint_marker_at and
remote_static_tracepoint_markers_by_strid.
(_initialize_remote): Install set|show remote static-tracepoints,
and set|show remote read-sdata-object commands.
* target.c (update_current_target): Inherit and default
to_static_tracepoint_marker_at, and
to_static_tracepoint_markers_by_strid.
* target.h (static_tracepoint_marker): Forward declare.
(enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
(static_tracepoint_marker_p): New typedef.
(DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
(struct target_ops): New fields to_static_tracepoint_marker_at and
to_static_tracepoint_markers_by_strid.
(target_static_tracepoint_marker_at)
(target_static_tracepoint_markers_by_strid): New.
* tracepoint.c: Include source.h.
(validate_actionline): Handle $_sdata.
(struct collection_list): New field strace_data.
(add_static_trace_data): New.
(clear_collection_list): Clear strace_data.
(stringify_collection_list): Account for a possible static trace
data collection.
(encode_actions_1): Encode an $_sdata collection.
(parse_tracepoint_definition): Handle static tracepoints.
(parse_static_tracepoint_marker_definition): New.
(release_static_tracepoint_marker): New.
(print_one_static_tracepoint_marker): New.
(info_static_tracepoint_markers_command): New.
(sdata_make_value): New.
(_initialize_tracepoint): Create the $_sdata convenience variable.
Add the "info static-tracepoint-markers" command.
Mention $_sdata in the "collect" command's help output.
* tracepoint.h (struct static_tracepoint_marker): New.
(parse_static_tracepoint_marker_definition)
(release_static_tracepoint_marker): Declare.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
* python/py-breakpoint.c (bppy_new): Adjust.

doc/
* gdb.texinfo (Convenience Variables): Document $_sdata.
(Commands to Set Tracepoints): Describe static tracepoints.  Add
`Listing Static Tracepoint Markers' menu entry.  Document
"strace".
(Tracepoint Action Lists): Document collecting $_sdata.
(Listing Static Tracepoint Markers): New subsection.
(Tracepoints support in gdbserver): Mention static tracepoints.
(remote packets, enabling and disabling): Mention
read-sdata-object.
(General Query Packets) <qSupported>: Document qXfer:sdata:read
and StaticTracepoint.
Mention qTfSTM, qTsSTM and qTSTMat as tracepoint packets.
Document qXfer:sdata:read.
(Tracepoint packets): Document qTfSTM, qTsSTM and qTSTMat.

14 years ago * gas/config/tc-arm.c (do_t_mov_cmp): Fix reporting of unpredictable and
Matthew Gretton-Dann [Thu, 1 Jul 2010 10:02:46 +0000 (10:02 +0000)]
* gas/config/tc-arm.c (do_t_mov_cmp): Fix reporting of unpredictable and
deprecated mov register instructions.
* gas/testsuite/gas/arm/thumb2_bad_reg.s: Update mov register tests.
* gas/testsuite/gas/arm/thumb2_bad_reg.l: Likewise.

14 years ago * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
Alan Modra [Thu, 1 Jul 2010 09:48:26 +0000 (09:48 +0000)]
* elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
than SYMBOL_REFERENCES_LOCAL.
(ppc64_elf_relocate_section): Likewise.

14 years ago * config/tc-ppc.c (toc_reloc_types): New variable.
Alan Modra [Thu, 1 Jul 2010 04:50:21 +0000 (04:50 +0000)]
* config/tc-ppc.c (toc_reloc_types): New variable.
(md_assemble): Set it.
(ppc_frob_file_before_adjust): Don't warn about toc section size
if we have large toc relocs and no small toc relocs.

14 years ago * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
Alan Modra [Thu, 1 Jul 2010 04:12:29 +0000 (04:12 +0000)]
* elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.

14 years ago * ppc-opc.c (powerpc_opcodes): Revert deprecation of mfocrf, mtcrf
Alan Modra [Thu, 1 Jul 2010 02:29:12 +0000 (02:29 +0000)]
* ppc-opc.c (powerpc_opcodes): Revert deprecation of mfocrf, mtcrf
and mtocrf on EFS.

14 years ago*** empty log message ***
gdbadmin [Thu, 1 Jul 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 1 Jul 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agoFix build failure with Python installed in non-system location.
Joel Brobecker [Wed, 30 Jun 2010 23:12:04 +0000 (23:12 +0000)]
Fix build failure with Python installed in non-system location.

The debugger fails to build when configure with --python-python=<path>
where <path> is a non-system location.  The reason is a warning made
fatal due to the definition of _XOPEN_SOURCE inside pyconfig.h.  This
is exactly the same problem as with _POSIX_C_SOURCE, handled in
python-internal.h as follow:

| /* /usr/include/features.h on linux systems will define _POSIX_C_SOURCE
|    if it sees _GNU_SOURCE (which config.h will define).
|    pyconfig.h defines _POSIX_C_SOURCE to a different value than
|    /usr/include/features.h does causing compilation to fail.
|    To work around this, undef _POSIX_C_SOURCE before we include Python.h.  */
| #undef _POSIX_C_SOURCE

This patch fixes this problem the same way.

2010-06-30  Joel Brobecker  <brobecker@adacore.com>

        * python/python-internal.h (_XOPEN_SOURCE): Undefine before
        including Python.h.

14 years agogdb/testsuite/
Jan Kratochvil [Wed, 30 Jun 2010 15:58:47 +0000 (15:58 +0000)]
gdb/testsuite/
* gdb.cp/namespace.exp (print C::OtherFileClass::cOtherFileClassVar)
(print ::C::OtherFileClass::cOtherFileClassVar): Remove KFAIL for
c++/11702.

14 years ago2010-06-29 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 30 Jun 2010 06:41:09 +0000 (06:41 +0000)]
2010-06-29  Doug Kwan  <dougkwan@google.com>

* arm-reloc-property.cc (Arm_reloc_property::Arm_reloc_property):
Initialize USE_SYMBOL_.
* arm-reloc-property.h (Arm_reloc_property::uses_symbol): New method
definition.
(Arm_reloc_property::uses_symbol_): New data member declaration.
* arm.cc (Target_arm::Relocate::relocate): Exit early if relocation
uses symbol value and symbol is undefined but not weakly undefined.

14 years ago PR gdb/11702
Doug Evans [Wed, 30 Jun 2010 05:39:23 +0000 (05:39 +0000)]
PR gdb/11702
* dwarf2read.c (dwarf2_add_field): Only create a symbol if
DW_AT_external is present.

14 years agodaily update
Alan Modra [Wed, 30 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Wed, 30 Jun 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agogdb/testsuite/
Jan Kratochvil [Tue, 29 Jun 2010 21:48:10 +0000 (21:48 +0000)]
gdb/testsuite/
* gdb.base/break-interp.exp (prelinkYES): XFAIL on `Not enough room to
add .dynamic entry'.

14 years ago PR c++/11702
Doug Evans [Tue, 29 Jun 2010 16:53:10 +0000 (16:53 +0000)]
PR c++/11702
* NEWS: Add entry.
* dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
create a symbol for the field and record the value.
(new_symbol): Handle DW_TAG_member.
* gdbtypes.c (field_is_static): Remove FIXME.
* symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
only ignore LOC_CONST symbols that are enums.

testsuite/
Test PR c++/11702.
* gdb.cp/m-static.exp: Add testcase.
* gdb.cp/m-static.h (gnu_obj_4): Add initialized static const member.

14 years ago * dwarf2read.c: Remove trailing whitespace.
Doug Evans [Tue, 29 Jun 2010 16:35:28 +0000 (16:35 +0000)]
* dwarf2read.c: Remove trailing whitespace.

14 years ago Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
Doug Evans [Tue, 29 Jun 2010 16:17:58 +0000 (16:17 +0000)]
Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
* gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
(struct main_type, field loc): Delete dwarf_block.
(FIELD_DWARF_BLOCK): Delete.
(SET_FIELD_DWARF_BLOCK): Delete.
(TYPE_FIELD_DWARF_BLOCK): Delete.
* gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
Update.

14 years ago * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
Nick Clifton [Tue, 29 Jun 2010 09:43:04 +0000 (09:43 +0000)]
    * scripttempl/xstormy16.sc (.gcc_except_table): Include sections
        with the .gcc_except_table. prefix.

14 years ago PR binutils/3166
Alan Modra [Tue, 29 Jun 2010 08:47:40 +0000 (08:47 +0000)]
    PR binutils/3166
* objcopy.c (is_strip_section): Revert 2006-09-05.
(setup_section): Make SHT_GROUP section nobits.

14 years ago2010-06-29 Hui Zhu <teawater@gmail.com>
Hui Zhu [Tue, 29 Jun 2010 05:52:17 +0000 (05:52 +0000)]
2010-06-29  Hui Zhu  <teawater@gmail.com>

* record.c (set_record_pic_cmdlist,
show_record_pic_cmdlist): New variables.
(set_record_pic_command,
show_record_pic_command): New functions.
(record_pic_function, record_pic_line, record_pic_enum,
set_record_pic_type, record_pic_hide_nofunction,
record_pic_hide_nosource, record_pic_hide_same): New variables.
(record_pic_fputs): New function.
(function_list, node_list, edge_list): New struct.
(function_list, node_list, edge_list): New variables.
(record_pic_cleanups, record_pic_node,
record_pic_edge, cmd_record_pic): New functions.
(_initialize_record): Add new commands for record pic.

14 years agoFix unmatched @end table in gdb.texinfo.
Joel Brobecker [Tue, 29 Jun 2010 04:32:35 +0000 (04:32 +0000)]
Fix unmatched @end table in gdb.texinfo.

2010-06-29  Joel Brobecker  <brobecker@adacore.com>

* gdb.texinfo (Threads In Python): Fix unmatched @end table.

14 years agoremove maxq-coff port
Alan Modra [Tue, 29 Jun 2010 04:32:29 +0000 (04:32 +0000)]
remove maxq-coff port

14 years agoremove maxq-coff port
Alan Modra [Tue, 29 Jun 2010 04:17:34 +0000 (04:17 +0000)]
remove maxq-coff port

14 years ago*** empty log message ***
gdbadmin [Tue, 29 Jun 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 29 Jun 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years agogdb/
Jan Kratochvil [Mon, 28 Jun 2010 22:03:31 +0000 (22:03 +0000)]
gdb/
* dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
ALLOCATE_CPLUS_STRUCT_TYPE.

14 years ago2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Mon, 28 Jun 2010 21:16:04 +0000 (21:16 +0000)]
2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
            Tom Tromey  <tromey@redhat.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>

* value.c (pack_unsigned_long): New function.
(value_from_ulongest): New function.
* value.h (value_from_ulongest): Declare.
* python/python.c (_initialize_python): Call
gdbpy_initialize_thread and gdbpy_initialize_inferior.
* python/python-internal.h: Define thread_object.
(gdbpy_inferiors, gdbpy_selected_thread)
(frame_info_to_frame_object, create_thread_object)
(find_thread_object, find_inferior_object)
(gdbpy_initialize_thread, gdbpy_initialize_inferiors)
(gdbpy_is_value_object, get_addr_from_python): Declare.
* python/py-value.c (builtin_type_upylong): Define.
(convert_value_from_python): Add logic for ulongest.
(gdbpy_is_value_object): New function.
* python/py-utils.c (get_addr_from_python): New function.
* python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
(gdbpy_selected_frame): Use PyObject over frame_info.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
py-infthread.
(SUBDIR_PYTHON_SRCS): Likewise.
(py-inferior.o): New Rule.
(py-infthread.o): New Rule.
* python/py-inferior.c: New File.
* python/py-infthread.c: New File.

2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
    Tom Tromey  <tromey@redhat.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

* gdb.texinfo (Inferiors In Python): New node.
* gdb.texinfo (Threads In Python): New node.

2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
            Tom Tromey  <tromey@redhat.com>
            Thiago Jung Bauermann  <bauerman@br.ibm.com>

* gdb.python/py-inferior.c: New File.
* gdb.python/py-infthread.c: New File.
* gdb.python/py-inferior.exp: New File.
* gdb.python/py-infthread.exp: New File.

14 years ago2010-06-28 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Mon, 28 Jun 2010 21:03:49 +0000 (21:03 +0000)]
2010-06-28  Rafael Espindola  <espindola@google.com>

* plugin.cc (Plugin::load): Use dlerror.

14 years agogdb/
Jan Kratochvil [Mon, 28 Jun 2010 20:39:30 +0000 (20:39 +0000)]
gdb/
* c-typeprint.c (c_type_print_base): For no fields check include also
TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
* dwarf2read.c (struct typedef_field_list)
(struct field_info) <typedef_field_list, typedef_field_list_count>: New.
(dwarf2_add_typedef): New.
(read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
Copy also FI.TYPEDEF_FIELD_LIST.
* gdbtypes.h (struct typedef_field)
(struct cplus_struct_type) <typedef_field, typedef_field_count>
(TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
(TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.

gdb/testsuite/
* gdb.cp/namespace.exp (ptype OtherFileClass typedefs)
(ptype ::C::OtherFileClass typedefs): New.
* gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType2)
(C::OtherFileClass::cOtherFileClassVar2): New.
(C::OtherFileClass::cOtherFileClassVar_use): Use also
cOtherFileClassVar2.
(C::cOtherFileType2, C::cOtherFileVar2): New.
(C::cOtherFileVar_use): use also cOtherFileVar2.
* gdb.cp/userdef.exp (ptype &*c): Permit arbitrary trailing text.

14 years agogdb/
Jan Kratochvil [Mon, 28 Jun 2010 20:35:52 +0000 (20:35 +0000)]
gdb/
* cp-namespace.c (cp_lookup_nested_type): New variable
concatenated_name.  Turn the current return condition into a reverse
one.  Call also lookup_static_symbol_aux on the constructed qualified
name.
* symtab.c (lookup_symbol_aux): Move variable objfile and searching in
other files into a called ...
(lookup_static_symbol_aux): ... new function here.
* symtab.h (lookup_static_symbol_aux): New prototype.
* valops.c (value_maybe_namespace_elt): Call also
lookup_static_symbol_aux if we failed otherwise.

gdb/testsuite/
* gdb.cp/namespace.exp (whatis C::cOtherFileType)
(whatis ::C::cOtherFileType, whatis C::cOtherFileVar)
(whatis ::C::cOtherFileVar, print C::cOtherFileVar)
(print ::C::cOtherFileVar)
(whatis C::OtherFileClass::cOtherFileClassType)
(whatis ::C::OtherFileClass::cOtherFileClassType)
(print C::OtherFileClass::cOtherFileClassVar)
(print ::cOtherFileClassVar)
(print ::C::OtherFileClass::cOtherFileClassVar): New tests.
(ptype OtherFileClass, ptype ::C::OtherFileClass): Permit arbitrary
trailing content.
* gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType)
(C::OtherFileClass::cOtherFileClassVar)
(C::OtherFileClass::cOtherFileClassVar_use, C::cOtherFileType)
(C::cOtherFileVar, C::cOtherFileVar_use): New.

14 years agogdb/
Jan Kratochvil [Mon, 28 Jun 2010 20:18:27 +0000 (20:18 +0000)]
gdb/
Fix PR c++/11703 and PR gdb/1448.
* c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
FIRST_ITER check.

gdb/testsuite/
Test PR c++/11703 and PR gdb/1448.
* gdb.cp/namespace.exp (ptype ::C::NestedClass): Remove KFAIL for
gdb/1448.

14 years agogdb/
Jan Kratochvil [Mon, 28 Jun 2010 20:12:53 +0000 (20:12 +0000)]
gdb/
Fix modification of cplus_struct_default.
* dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
Call ALLOCATE_CPLUS_STRUCT_TYPE.
* gdbtypes.c (cplus_struct_default): New empty initializer, comment it.

gdb/testsuite/
* gdb.cp/virtbase.cc (class RTTI_base, class RTTI_data)
(main) <rtti_data>: New.
* gdb.cp/virtbase.exp (print rtti_data): New.

14 years agogdb/testsuite/
Jan Kratochvil [Mon, 28 Jun 2010 20:09:59 +0000 (20:09 +0000)]
gdb/testsuite/
* lib/gdb.exp (gdb_test_multiple): Error on trailing newlines.

14 years agoDocument the GDB python directory.
Joel Brobecker [Mon, 28 Jun 2010 19:54:04 +0000 (19:54 +0000)]
Document the GDB python directory.

2010-06-27  Joel Brobecker  <brobecker@adacore.com>

        * NEWS: Add entry announcing the python directory.

2010-06-27  Joel Brobecker  <brobecker@adacore.com>

        * gdb.texinfo (Python): Document what the python directory is
        and what its location is.
        (Basic Python): Document the gdb.PYTHONDIR constant.

14 years ago * dwarf2read.c (read_structure_type): Allocate null cleanup later.
Tom Tromey [Mon, 28 Jun 2010 19:05:42 +0000 (19:05 +0000)]
* dwarf2read.c (read_structure_type): Allocate null cleanup later.

14 years ago * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
Doug Evans [Mon, 28 Jun 2010 18:56:38 +0000 (18:56 +0000)]
* breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
All callers updated.

14 years agogdb/
Jan Kratochvil [Mon, 28 Jun 2010 16:59:47 +0000 (16:59 +0000)]
gdb/
* cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
obstack_begin after each obstack_free.

gdb/testsuite/
* gdb.cp/static-print-quit.exp, gdb.cp/static-print-quit.cc: New.

14 years ago * gdb.base/break-interp.exp (reach): Relax expected output a bit.
Doug Evans [Mon, 28 Jun 2010 16:54:11 +0000 (16:54 +0000)]
* gdb.base/break-interp.exp (reach): Relax expected output a bit.

14 years agocgen/
Alan Modra [Mon, 28 Jun 2010 14:41:59 +0000 (14:41 +0000)]
cgen/
* cpu/mep.opc (mep_examine_ivc2_insns): Delete set but unused var.
opcodes/
* mep-dis.c: Regenerate.

14 years ago * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
Alan Modra [Mon, 28 Jun 2010 14:41:11 +0000 (14:41 +0000)]
* compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
to silence gcc warning.

14 years ago * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define.
Alan Modra [Mon, 28 Jun 2010 14:06:57 +0000 (14:06 +0000)]
* config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define.
* config/tc-crx.c (gettrap): Constify arg.
(handle_LoadStor, get_cinv_parameters): Likewise.
(getreg_image): Fix enum warning
(md_assemble): Restore input line char.
* config/tc-hppa.c (tc_gen_reloc): Fix enum warning.
* config/tc-i960.c (mem_fmt): Rename var to fix shadow warning.
* config/tc-sh.c (sh_fdpic): Only define when OBJ_ELF.
(build_Mytes): Fix build failure for non-elf targets.
* config/tc-tic4x.c (tic4x_eval): Restore terminator char.
* config/tc-xtensa.c (xtensa_end_directive): Fix switch enum warning.

* cgen.c (gas_cgen_md_apply_fix): Avoid set but unused warning.
* ecoff.c (add_ecoff_symbol): Likewise.
* itbl-ops.c (append_insns_as_macros): Likewise.
* listing.c (debugging_pseudo): Likewise.
* read.c (s_mri_common, stringer): Likewise.
* config/obj-coff.c (coff_frob_section): Likewise.
* config/tc-alpha.c (emit_ldgp, s_alpha_proc): Likewise.
* config/tc-arm.c (my_get_expression): Likewise.
* config/tc-hppa.c (process_exit, pa_type_args): Likewise.
* config/tc-m32c.c (md_assemble): Likewise.
* config/tc-microblaze.c (md_convert_frag): Likewise.
* config/tc-mips.c (s_change_section): Likewise.
* config/tc-mt.c (mt_fix_adjustable): Likewise.
* config/tc-xtensa.c (xtensa_literal_pseudo): Likewise.

* config/obj-aout.c (obj_aout_frob_symbol): Delete set but otherwise
unused vars.
* config/tc-alpha.c (load_expression): Likewise.
(s_alpha_rdata, s_alpha_section, s_alpha_prologue): Likewise.
* config/tc-arm.c (parse_neon_el_struct_list): Likewise.
* config/tc-avr.c (extract_word): Likewise.
* config/tc-cris.c (cris_get_expression): Likewise.
* config/tc-d30v.c (build_insn, find_format): Likewise.
* config/tc-dlx.c (machine_ip): Likewise.
* config/tc-hppa.c (pa_get_absolute_expression): Likewise.
* config/tc-i370.c (md_assemble): Likewise.
* config/tc-i960.c (brtab_emit): Likewise.
* config/tc-iq2000.c (s_iq2000_ent): Likewise.
* config/tc-m32c.c (md_convert_frag): Likewise.
* config/tc-m68hc11.c (fixup24, build_jump_insn): Likewise.
(md_estimate_size_before_relax, md_apply_fix): Likewise.
* config/tc-m68k.c (md_show_usage): Likewise.
* config/tc-microblaze.c (microblaze_s_lcomm): Likewise.
* config/tc-mips.c (s_mips_end): Likewise.
* config/tc-mmix.c (mmix_byte, mmix_cons): Likewise.
* config/tc-mn10300.c (md_assemble): Likewise.
* config/tc-msp430.c (extract_word): Likewise.
* config/tc-mt.c (md_assemble): Likewise.
* config/tc-or32.c (machine_ip): Likewise.
* config/tc-pj.c (md_apply_fix): Likewise.
* config/tc-s390.c (md_gather_operands): Likewise.
* config/tc-sh.c (sh_cons_align): Likewise.
* config/tc-sparc.c (sparc_cons_align): Likewise.
* config/tc-tic4x.c (tic4x_sect): Likewise.
* config/tc-tic54x.c (tic54x_stringer): Likewise.
* config/tc-vax.c (vip_op): Likewise.
* config/tc-xstormy16.c (xstormy16_cons_fix_new): Likewise.
* config/tc-xtensa.c (md_assemble): Likewise.
(xtensa_fix_short_loop_frags, convert_frag_immed): Likewise.
(xtensa_move_literals): Likewise.

14 years ago * gas/config/tc-arm.c (parse_neon_alignment): New function.
Matthew Gretton-Dann [Mon, 28 Jun 2010 09:10:25 +0000 (09:10 +0000)]
* gas/config/tc-arm.c (parse_neon_alignment): New function.
(parse_address_main): Fix Neon load/store alignment parsing.
* gas/testsuite/gas/arm/neon-ldst-align-bad.l: Update for Neon alignment syntax fix.
* gas/testsuite/gas/arm/neon-ldst-align-bad.s: Likewise.
* gas/testsuite/gas/arm/neon-ldst-es.d: Likewise.
* gas/testsuite/gas/arm/neon-ldst-es.s: Likewise.
* opcodes/arm-disc.c (parse_insn_neon):  Fix Neon alignment syntax.

14 years agodaily update
Alan Modra [Mon, 28 Jun 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Mon, 28 Jun 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * gdb.cp/m-static.exp: Update expected test output.
Doug Evans [Sun, 27 Jun 2010 17:19:54 +0000 (17:19 +0000)]
* gdb.cp/m-static.exp: Update expected test output.

14 years ago * value.c (value_static_field): Use `switch' instead of `if'.
Doug Evans [Sun, 27 Jun 2010 16:40:14 +0000 (16:40 +0000)]
* value.c (value_static_field): Use `switch' instead of `if'.
Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.

14 years ago * valops.c (search_struct_field): Fix typo in error message.
Doug Evans [Sun, 27 Jun 2010 16:26:41 +0000 (16:26 +0000)]
* valops.c (search_struct_field): Fix typo in error message.

14 years ago * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
Alan Modra [Sun, 27 Jun 2010 08:37:22 +0000 (08:37 +0000)]
* elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
(group_sections): Likewise.

14 years ago * symtab.cc (detect_odr_violations): When reporting an ODR
Ian Lance Taylor [Sun, 27 Jun 2010 06:17:36 +0000 (06:17 +0000)]
* symtab.cc (detect_odr_violations): When reporting an ODR
violation, report an object where the symbol is defined.

14 years agofix set but unused variable warnings
Alan Modra [Sun, 27 Jun 2010 04:07:55 +0000 (04:07 +0000)]
fix set but unused variable warnings

14 years agodaily update
Alan Modra [Sun, 27 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sun, 27 Jun 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * dwarf2expr.c (execute_stack_op): Place preprocessor
Ulrich Weigand [Sat, 26 Jun 2010 14:05:29 +0000 (14:05 +0000)]
* dwarf2expr.c (execute_stack_op): Place preprocessor
directives at the start of the source line.

14 years agoRefactor 'maint time' command statistics.
Paul N. Hilfinger [Sat, 26 Jun 2010 06:44:47 +0000 (06:44 +0000)]
Refactor 'maint time' command statistics.

Consolidate code for displaying per-command time and space statistics to avoid
duplication.  Piggyback on cleanups so that statistics get printed even when
commands terminate as a result of an error.

Changelog

    * gdb/defs.h (make_command_stats_cleanup): Declare.
    (set_display_time): Declare.
    (set_display_space): Declare.
    * gdb/event-top.c (command_handler): Use make_command_stats_cleanup.
    * gdb/main.c (display_time, display_space): Move definitions to utils.c.
    (captured_main): Use make_command_stats_cleanup to get start-up
    statistics.
    Use set_display_time and set_display_space for processing OPT_STATISTICS
    case.
    * gdb/maint.c (maintenance_time_display): Use set_display_time.
    (maintenance_space_display): Use set_display_space.
    * gdb/top.c (execute_command): Remove obsolete 'maint time' code.
    (command_loop): Use make_command_stats_cleanup.
    * gdb/utils.c (struct cmd_stats): Structure for storing initial time
    and space usage.
    (display_time, display_space): Move definitions here from utils.c.
    (set_display_time): New function.
    (set_display_space): New function.
    (make_command_stats_cleanup): New function.
    (report_command_stats): New auxiliary function for
    make_command_stats_cleanup.
    * gdb/testsuite/gdb.gdb/selftest.exp: Adjust expected message for
    capturing start-up runtime.

14 years agodaily update
Alan Modra [Sat, 26 Jun 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 26 Jun 2010 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
Ulrich Weigand [Fri, 25 Jun 2010 22:00:59 +0000 (22:00 +0000)]
* solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
hosts where CORE_ADDR is long long.

14 years agoAdded NEWS entry about C++ improvements.
Sami Wagiaalla [Fri, 25 Jun 2010 18:19:31 +0000 (18:19 +0000)]
Added NEWS entry about C++ improvements.

14 years agogdb
Tom Tromey [Fri, 25 Jun 2010 18:15:18 +0000 (18:15 +0000)]
gdb
PR python/10808:
* python/python.c (execute_gdb_command): Add keywords.  Accept
"to_string" argument.
(struct restore_ui_file_closure): New.
(restore_ui_file): New function.
(make_cleanup_restore_ui_file): Likewise.
(GdbMethods) <execute>: Update.
gdb/doc
PR python/10808:
* gdb.texinfo (Basic Python): Document new gdb.execute argument.
gdb/testsuite
PR python/10808:
* gdb.python/python.exp: Add new tests.

14 years agoAdded import loop test.
Sami Wagiaalla [Fri, 25 Jun 2010 18:05:30 +0000 (18:05 +0000)]
Added import loop test.

2010-06-25  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/operator.cc: Created an import loop.
* gdb.cp/operator.exp: Added testcase for import loop.

14 years ago * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
Ulrich Weigand [Fri, 25 Jun 2010 17:47:29 +0000 (17:47 +0000)]
* s390-tdep.c (s390_push_dummy_call): Error on stack overflow
during inferior call stack frame setup.

14 years ago2010-06-25 Ken Werner <ken.werner@de.ibm.com>
Ulrich Weigand [Fri, 25 Jun 2010 17:39:56 +0000 (17:39 +0000)]
2010-06-25  Ken Werner  <ken.werner@de.ibm.com>

* solib-spu.c: Include "exception.h".
(ocl_program_data_key): New variable.
        (append_ocl_sos): New function.
        (ocl_enable_break): Likewise.
(spu_current_sos): Call append_ocl_sos.
(spu_solib_loaded): Call ocl_enable_break.
(_initialize_spu_solib): Register ocl_program_data_key.

14 years ago * cp-support.c (reset_directive_searched): New function.
Ulrich Weigand [Fri, 25 Jun 2010 16:16:44 +0000 (16:16 +0000)]
* cp-support.c (reset_directive_searched): New function.
(make_symbol_overload_list_using): Prevent recursive calls.

14 years ago2010-06-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 25 Jun 2010 15:37:43 +0000 (15:37 +0000)]
2010-06-25  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
its flags.  Create an absolute section if needed.

14 years agogdb/testsuite/
Jan Kratochvil [Fri, 25 Jun 2010 15:34:46 +0000 (15:34 +0000)]
gdb/testsuite/
Test PR python/11407.
* gdb.dwarf2/dw2-ref-missing-frame-func.c: New file.
* gdb.dwarf2/dw2-ref-missing-frame.S: Use cu_text_start and cu_text_end.
Split main into func_nofb and func_loopfb dropping NO_FRAME_BASE.
* gdb.dwarf2/dw2-ref-missing-frame.exp: Remove variables sources,
executable_nofb and executable_fb.  New variables srcsfile, objsfile,
srcfuncfile, objfuncfile, srcmainfile, objmainfile, executable and
binfile.  Call gdb_compile with clean_restart twice.
(func_nofb print, func_nofb backtrace, func_loopfb print)
(func_loopfb backtrace): New.

14 years agogdb/testsuite/
Jan Kratochvil [Fri, 25 Jun 2010 15:32:49 +0000 (15:32 +0000)]
gdb/testsuite/
* gdb.dwarf2/dw2-ref-missing-frame-main.c: New.
* gdb.dwarf2/dw2-ref-missing-frame.S: Replace compiler generated output
by a hand made one.
* gdb.dwarf2/dw2-ref-missing-frame.exp: Remove invalid comment.  Remove
i?86 requirement.  Remove variables srcfile and binfile.  New variable
sources, executable_nofb and executable_fb.  Call prepare_for_testing.

14 years ago2010-06-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 25 Jun 2010 15:21:48 +0000 (15:21 +0000)]
2010-06-25  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
sections.  Mark .vmsdebug section as SEC_DEBUGGING.  Do not create
dummy psect anymore.  Adjust.
(_bfd_vms_write_eeom): Adjust (use target_index instead of index)
(_bfd_vms_write_etir): Ditto.
(start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
section name.  Adjust.

14 years ago2010-06-24 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Fri, 25 Jun 2010 15:13:52 +0000 (15:13 +0000)]
2010-06-24  Phil Muldoon  <pmuldoon@redhat.com>

* printcmd.c (print_variable_and_value): Print error message on
caught exception.

14 years ago2010-06-25 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 25 Jun 2010 14:54:19 +0000 (14:54 +0000)]
2010-06-25  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (alpha_vms_write_exec): Set linktime field.

14 years agoChangeLog:
Ulrich Weigand [Fri, 25 Jun 2010 13:00:33 +0000 (13:00 +0000)]
ChangeLog:

* dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
of stack values.
(struct dwarf_expr_piece): Rename "expr" member to "mem".  Add new
"value" member.
(dwarf_expr_push): Change input type to ULONGEST.
(dwarf_expr_fetch): Change return type to ULONGEST.
(dwarf_expr_fetch_address): Add prototype.
(dwarf2_read_address): Remove prototype.
* dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
Truncate stack values to ctx->addr_size bytes.
(dwarf_expr_fetch): Change return value to ULONGEST.
(dwarf_expr_fetch_address): New function.
(add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
when appropriate.  Update for struct dwarf_expr_piece changes.
(dwarf2_read_address): Remove.
(unsigned_address_type): Remove.
(signed_address_type): Remove.
(execute_stack_op): Use dwarf_expr_fetch_address instead of
dwarf_expr_fetch when appropriate.  Use ULONGEST as type of stack
values.  Perform operations on ULONGEST instead of on GDB values,
sign-extending from ctx->addr_size bytes as needed.  Read DW_OP_addr
values and DW_OP_deref results as unsigned integers.
* dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
changes.
(write_pieced_value): Likewise.
(dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
dwarf_expr_fetch when appropriate.
(compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
* dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
instead of dwarf_expr_fetch when appropriate.

testsuite/ChangeLog:

* gdb.cell/dwarfaddr.exp: New file.
* gdb.cell/dwarfaddr.S: New file.

14 years ago * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
Pierre Muller [Fri, 25 Jun 2010 07:32:25 +0000 (07:32 +0000)]
* c-typeprint.c (c_print_typedef): Append new type name for typedefs.

14 years agoinclude/elf/
Alan Modra [Fri, 25 Jun 2010 05:20:57 +0000 (05:20 +0000)]
include/elf/
* ppc64.h (R_PPC64_LO_DS_OPT): Define.
bfd/
* elf64-ppc.c (toc_skip_enum): Define.
(ppc64_elf_edit_toc): Use two low bits of skip array as markers.
Optimize largetoc sequences.
(adjust_toc_syms): Update for skip array change.
(ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
ld/
* emultempl/ppc64elf.em (prelim_size_sections): New function.
(ppc_before_allocation): Use it.  Size sections before toc edit too.