binutils-gdb.git
13 years ago[ia64] Add a big-endian version of the ia64-ext floatformat
Joel Brobecker [Thu, 13 Jan 2011 16:22:48 +0000 (16:22 +0000)]
[ia64] Add a big-endian version of the ia64-ext floatformat

ia64-tdep.c defines a floatformats_ia64_ext that should contain
both the little-endian and the big-endian version of the float
format used in the ia64 registers (an 82bit float format).
Right now, both entries point to the same little-endian definition.

A big-endian definition is now necessary for the ia64-hpux port.

gdb/ChangeLog:

        * ia64-tdep.c (floatformat_ia64_ext_little): Renames
        floatformat_ia64_ext.
        (floatformat_ia64_ext_big): New static const.
        (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.

13 years agoAdd xfail and notarget.
H.J. Lu [Thu, 13 Jan 2011 15:23:59 +0000 (15:23 +0000)]
Add xfail and notarget.

2011-01-13  H.J. Lu  <hongjiu.lu@intel.com>

* ld-scripts/defined4.d: Xfail rs6000-*-aix*.  Skip mips*-*-*
and mmix-*-*.

* ld-scripts/expr2.d: Xfail rs6000-*-aix* and arm-*-*aout.

13 years agoUpdate copyright dates.
Alan Modra [Thu, 13 Jan 2011 13:34:54 +0000 (13:34 +0000)]
Update copyright dates.

13 years ago PR ld/12356
Alan Modra [Thu, 13 Jan 2011 13:29:55 +0000 (13:29 +0000)]
PR ld/12356
* ld.texinfo (Miscellaneous Commands): Describe LD_FEATURE.
(Expression Section): Update.
* ld.h (ld_config_type): Add sane_expr.
* ldgram.y (ifile_p1): Add LD_FEATURE.
* ldlex.l (LD_FEATYRE): New.
* ldemul.c (after_parse_default): Delete code handling ld_compatibility.
* ldexp.h (struct ldexp_control): Delete uses_defined.
* ldexp.c: Remove all uses of uses_defined.
(fold_name): Test config.sane_expr rather than ld_compatibility.
(exp_fold_tree_1): Likewise.  Adjust handling of assignments
during first phase.
* ldlang.h (ld_compatibility): Delete.
(lang_ld_feature): Declare.
* ldlang.c (ld_compatibility): Delete.
(open_input_bfds): Only handle assignments for --defsym.
(lang_ld_feature): New function.

13 years ago PR ld/12356
Alan Modra [Thu, 13 Jan 2011 13:06:22 +0000 (13:06 +0000)]
PR ld/12356
* ldexp.h (exp_assop): Delete.
(exp_assign, exp_defsym): Declare.
* ldexp.c (exp_assop): Make static, handle all assignment variations.
(exp_assign, exp_defsym): New functions.
(exp_provide): Use exp_assop.
* ldgram.y (defsym_expr): Use exp_defsym.
* ldctor.c, * ldgram.y, * ldlang.c, * mri.c, * emultempl/beos.em,
* emultempl/pe.em, * emultempl/pep.em, * emultempl/spuelf.em,
* emultempl/xtensaelf.em: Update exp_assop -> exp_assign.

13 years ago*** empty log message ***
gdbadmin [Thu, 13 Jan 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Wed, 12 Jan 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agosim: enable hw_tree_delete in sim_hw_uninstall
Mike Frysinger [Wed, 12 Jan 2011 22:10:46 +0000 (22:10 +0000)]
sim: enable hw_tree_delete in sim_hw_uninstall

I can't find any history for why the call to hw_tree_delete is commented
out, and the VCS history shows that this goes back to the original import
in 2009.  I did find some vague reference to it from 2000 (pretty close
to the original import of code), but no actual details.

Without this call, every new instance of the sim results in all old
previously allocated resources being leaked.  With some devices, this
isn't just memory, it's things like open file descriptors or mmaps.

So if there are pending issues with this, I'd rather we get the sims
sorted out rather than continuing to leak this stuff.  Especially since
the "let's wait for the sims to fix themselves" hasn't actually happened
in the last 10+ years.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: check asprintf return values
Mike Frysinger [Wed, 12 Jan 2011 21:58:08 +0000 (21:58 +0000)]
sim: check asprintf return values

These are the last sources of build warnings (asprintf usage) that I see.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogdb
Tom Tromey [Wed, 12 Jan 2011 21:09:39 +0000 (21:09 +0000)]
gdb
* mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
messages.
* mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
(mi_cmd_thread_list_ids): Likewise.
(mi_cmd_data_list_changed_registers): Likewise.
(mi_cmd_data_list_register_values): Likewise.
(mi_cmd_data_write_register_values): Likewise.
(mi_cmd_data_evaluate_expression): Likewise.
(mi_cmd_data_read_memory): Likewise.
(mi_cmd_data_read_memory_bytes): Likewise.
(mi_cmd_data_write_memory): Likewise.
(mi_cmd_enable_timings): Likewise.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
* mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
(mi_cmd_var_delete): Likewise.
(mi_cmd_var_set_format): Likewise.
(mi_cmd_var_show_format): Likewise.
(mi_cmd_var_info_num_children): Likewise.
(mi_cmd_var_list_children): Likewise.
(mi_cmd_var_info_type): Likewise.
(mi_cmd_var_info_expression): Likewise.
(mi_cmd_var_show_attributes): Likewise.
(mi_cmd_var_assign): Likewise.
(mi_cmd_var_update): Likewise.
(mi_cmd_enable_pretty_printing): Likewise.
(mi_cmd_var_set_update_range): Likewise.
* mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
messages.
(mi_cmd_target_file_put): Likewise.
(mi_cmd_target_file_delete): Likewise.
* mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
messages.
(mi_cmd_stack_info_depth): Likewise.
(mi_cmd_stack_list_locals): Likewise.
(mi_cmd_stack_list_args): Likewise.
(mi_cmd_stack_select_frame): Likewise.
(mi_cmd_stack_select_frame): Likewise.
(mi_cmd_stack_info_frame): Likewise.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
messages.
(mi_cmd_file_list_exec_source_files): Likewise.
* mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
(mi_cmd_env_cd): Likewise.
(mi_cmd_env_path): Likewise.
(mi_cmd_env_dir): Likewise.
(mi_cmd_inferior_tty_show): Likewise.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
(mi_cmd_break_watch): Likewise.
gdb/testsuite
* gdb.mi/gdb2549.exp: Update for error message changes.
* gdb.mi/mi-cli.exp: Likewise.
* gdb.mi/mi-disassemble.exp: Likewise.
* gdb.mi/mi-pthreads.exp: Likewise.
* gdb.mi/mi-regs.exp: Likewise.
* gdb.mi/mi-stack.exp: Likewise.
* gdb.mi/mi-var-block.exp: Likewise.
* gdb.mi/mi-var-cmd.exp: Likewise.
* gdb.mi/mi2-cli.exp: Likewise.
* gdb.mi/mi2-disassemble.exp: Likewise.
* gdb.mi/mi2-pthreads.exp: Likewise.
* gdb.mi/mi2-regs.exp: Likewise.
* gdb.mi/mi2-stack.exp: Likewise.
* gdb.mi/mi2-var-block.exp: Likewise.
* gdb.mi/mi2-var-cmd.exp: Likewise.

13 years ago2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
Thiago Jung Bauermann [Wed, 12 Jan 2011 20:09:53 +0000 (20:09 +0000)]
2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
(ppc_linux_insert_hw_breakpoint): Likewise.
(ppc_linux_remove_hw_breakpoint): Likewise.
(ppc_linux_insert_watchpoint): Likewise.

13 years agomerge from gcc
DJ Delorie [Wed, 12 Jan 2011 19:04:47 +0000 (19:04 +0000)]
merge from gcc

13 years agogdb/
Jan Kratochvil [Wed, 12 Jan 2011 16:16:24 +0000 (16:16 +0000)]
gdb/
PR fortran/11104 and DWARF unbound arrays detection.
* dwarf2read.c (read_subrange_type): Set zero length on unspecified
upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
unspecified upper bound.
* eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
variables array_size_array, tmp_type and offset_item.  New variable
array.  Remove call to f77_get_upperbound.  New variables array_type
and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
the final call to deprecated_set_value_type.

gdb/testsuite/
PR fortran/11104 and DWARF unbound arrays detection.
* gdb.fortran/multi-dim.exp: New file.
* gdb.fortran/multi-dim.f90: New file.

13 years agogdb/
Jan Kratochvil [Wed, 12 Jan 2011 16:10:05 +0000 (16:10 +0000)]
gdb/
Make value allocations more lazy.
* ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
instead of allocate_value and set_value_lazy when possible.
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
instead of allocate_value and set_value_lazy.
* findvar.c (value_of_register_lazy): Likewise.
(read_var_value): Remove V preallocation, call just check_typedef in
advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
the end, remove set_value_lazy there.
* valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
instead of allocate_value and set_value_lazy when possible.
* valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
* value.c (allocate_computed_value): Use allocate_value_lazy instead
of allocate_value and set_value_lazy.
(value_from_contents_and_address): Use allocate_value_lazy instead of
allocate_value and set_value_lazy when possible.

13 years agohttp://sourceware.org/ml/gdb-patches/2010-12/msg00299.html
Andrew Burgess [Wed, 12 Jan 2011 15:02:12 +0000 (15:02 +0000)]
sourceware.org/ml/gdb-patches/2010-12/msg00299.html
gdb/
        * disasm.c (dump_insns): Support dumping opcodes for MI.
        * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
        dumping of instruction opcodes.

gdb/doc/
        * gdb.texinfo (GDB/MI Data Manipulation): Update to reflect
        changes in mi/mi-cmd-disas.c

gdb/testsuite/
        * gdb.mi/mi-disassemble.exp, gdb.mi/mi2-disassemble.exp: Update
        expected output to reflect changes in gdb/mi/mi-cmd-disas.c and
        add new tests for opcode dumping.

13 years ago * gdb.texinfo (Threads): Remove duplicate text. Update examples.
Tom Tromey [Wed, 12 Jan 2011 14:30:45 +0000 (14:30 +0000)]
* gdb.texinfo (Threads): Remove duplicate text.  Update examples.
Fix "thread apply" text.

13 years ago PR ld/12380
Alan Modra [Wed, 12 Jan 2011 12:07:19 +0000 (12:07 +0000)]
PR ld/12380
* ldexp.h (enum phase_enum): Comment.  Add exp_dataseg_done.
* ldexp.c (fold_unary <DATA_SEGMENT_END>): Rearrange code.  Test
for exp_dataseg_done rather than expld.phase == lang_final_phase_enum
to detect when we've finished sizing sections.
(fold_binary <DATA_SEGMENT_ALIGN>): Likewise.
(fold_binary <DATA_SEGMENT_RELRO_END>): Likewise.  Also test
that we are not inside an output section statement.
* ldlang.c (lang_size_sections): Set exp_dataseg_done on exit if
not exp_dataseg_relro_adjust or exp_dataseg_adjust.  Don't set
lang_final_phase_enum here.
(lang_process): Set lang_final_phase_enum here.

13 years agoDetect GNU/kFreeBSD and set `gdb_osabi' appropiately
Joel Brobecker [Wed, 12 Jan 2011 10:48:14 +0000 (10:48 +0000)]
Detect GNU/kFreeBSD and set `gdb_osabi' appropiately

2011-01-09  Robert Millan  <rmh@gnu.org>

        * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
        appropiately.

13 years ago* rx-dis.c (print_insn_rx): Support RX_Operand_TwoReg.
DJ Delorie [Wed, 12 Jan 2011 07:06:29 +0000 (07:06 +0000)]
* rx-dis.c (print_insn_rx): Support RX_Operand_TwoReg.

13 years agoRevert erroneous commit
Tom Tromey [Wed, 12 Jan 2011 02:51:38 +0000 (02:51 +0000)]
Revert erroneous commit

13 years ago * thread.c (do_captured_thread_select): Emit newline before
Tom Tromey [Wed, 12 Jan 2011 02:44:48 +0000 (02:44 +0000)]
* thread.c (do_captured_thread_select): Emit newline before
printing frame.

13 years ago2011-01-11 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 12 Jan 2011 01:23:29 +0000 (01:23 +0000)]
2011-01-11  Michael Snyder  <msnyder@vmware.com>

* ui-file.c: Comment cleanup, mostly periods and spaces.
* ui-file.h: Ditto.
* ui-out.c: Ditto.
* ui-out.h: Ditto.
* utils.c: Ditto.
* v850-tdep.c: Ditto.
* valarith.c: Ditto.
* valops.c: Ditto.
* valprint.c: Ditto.
* valprint.h: Ditto.
* value.c: Ditto.
* value.h: Ditto.
* varobj.c: Ditto.
* varobj.h: Ditto.
* vax-tdep.c: Ditto.
* vec.c: Ditto.
* vec.h: Ditto.
* version.h: Ditto.
* windows-nat.c: Ditto.
* windows-tdep.c: Ditto.
* xcoffread.c: Ditto.
* xcoffsolib.c: Ditto.
* xml-support.c: Ditto.
* xstormy16-tdep.c: Ditto.
* xtensa-tdep.c: Ditto.
* xtensa-tdep.h: Ditto.

13 years ago*** empty log message ***
gdbadmin [Wed, 12 Jan 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Tue, 11 Jan 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago2011-01-11 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Tue, 11 Jan 2011 21:53:25 +0000 (21:53 +0000)]
2011-01-11  Michael Snyder  <msnyder@vmware.com>

* s390-tdep.c: Comment cleanup, mostly periods and spaces.
* score-tdep.c: Ditto.
* score-tdep.h: Ditto.
* ser-base.c: Ditto.
* ser-go32.c: Ditto.
* serial.c: Ditto.
* serial.h: Ditto.
* ser-mingw.c: Ditto.
* ser-pipe.c: Ditto.
* ser-tcp.c: Ditto.
* ser-unix.c: Ditto.
* sh64-tdep.c: Ditto.
* shnbsd-nat.c: Ditto.
* sh-tdep.c: Ditto.
* sh-tdep.h: Ditto.
* solib.c: Ditto.
* solib-darwin.c: Ditto.
* solib-frv.c: Ditto.
* solib.h: Ditto.
* solib-irix.c: Ditto.
* solib-osf.c: Ditto.
* solib-pa64.c: Ditto.
* solib-som.c: Ditto.
* solib-spu.c: Ditto.
* solib-sunos.c: Ditto.
* solib-svr4.c: Ditto.
* solist.h: Ditto.
* sol-thread.c: Ditto.
* somread.c: Ditto.
* source.c: Ditto.
* source.h: Ditto.
* sparc64-linux-tdep.c: Ditto.
* sparc64-tdep.c: Ditto.
* sparc-linux-nat.c: Ditto.
* sparc-linux-tdep.c: Ditto.
* sparc-sol2-nat.c: Ditto.
* sparc-sol2-tdep.c: Ditto.
* sparc-tdep.c: Ditto.
* sparc-tdep.h: Ditto.
* spu-tdep.c: Ditto.
* stabsread.c: Ditto.
* stabsread.h: Ditto.
* stack.c: Ditto.
* symfile.c: Ditto.
* symfile.h: Ditto.
* symmisc.c: Ditto.
* symtab.c: Ditto.
* symtab.h: Ditto.
* target.c: Ditto.
* target-descriptions.c: Ditto.
* target-descriptions.h: Ditto.
* target.h: Ditto.
* target-memory.c: Ditto.
* terminal.h: Ditto.
* thread.c: Ditto.
* top.c: Ditto.
* tracepoint.c: Ditto.
* tracepoint.h: Ditto.
* trad-frame.h: Ditto.
* typeprint.c: Ditto.

13 years ago * gdb.python/py-infthread.exp: Load gdb-python.exp.
Tom Tromey [Tue, 11 Jan 2011 21:22:35 +0000 (21:22 +0000)]
* gdb.python/py-infthread.exp: Load gdb-python.exp.

13 years ago2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
Thiago Jung Bauermann [Tue, 11 Jan 2011 19:39:35 +0000 (19:39 +0000)]
2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* breakpoint.c (resources_needed_watchpoint): Fix indentation.
* gdbtypes.c (is_scalar_type_recursive): Fix formatting.

13 years ago2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
Thiago Jung Bauermann [Tue, 11 Jan 2011 19:23:03 +0000 (19:23 +0000)]
2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
    Thiago Jung Bauermann  <bauerman@br.ibm.com>

Implement support for PowerPC BookE ranged watchpoints.

gdb/
* breakpoint.h
(struct breakpoint_ops) <resources_needed>: New method.
Initialize to NULL in all existing breakpoint_ops instances.
(struct breakpoint) <exact>: New field.
(target_exact_watchpoints): Declare external global.
* breakpoint.c (target_exact_watchpoints): New global flag.
(update_watchpoint): Set b->type to bp_hardware_watchpoint and
b->enable_state to bp_enabled before calling
hw_watchpoint_used_count.
(hw_watchpoint_used_count): Iterate over all bp_locations in a
watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
if available.
(insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
if the watchpoint is exact.
(resources_needed_watchpoint): New function.
(watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
(watch_command_1): Set b->exact if the user asked for an exact
watchpoint and one can be set.
(can_use_hardware_watchpoint): Add exact_watchpoints argument.
Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
the user asks for an exact watchpoint and one can be set.  Return
number of needed debug registers to watch the expression.
* gdbtypes.c (is_scalar_type): New function, based on
valprint.c:scalar_type_p.
(is_scalar_type_recursive): New function.
* gdbtypes.h (is_scalar_type_recursive): Declare.
* ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
handle regions when ranged watchpoints are available.
(create_watchpoint_request): New function.
(ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
create_watchpoint_request.
* rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
(_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
`set powerpc' and `show powerpc' commands.
* target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
Mention documentation comment in the target macro.
(target_region_ok_for_hw_watchpoint): Document return value.

gdb/doc/
* gdb.texinfo (PowerPC Embedded): Document ranged watchpoints and
the "set powerpc exact-watchpoints" flag.

13 years ago2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
Thiago Jung Bauermann [Tue, 11 Jan 2011 19:18:31 +0000 (19:18 +0000)]
2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>

* breakpoint.c (update_watchpoint): Decide on using a software or
hardware watchpoint after the bp_locations are created.

13 years ago2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
Thiago Jung Bauermann [Tue, 11 Jan 2011 19:16:23 +0000 (19:16 +0000)]
2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>

Convert hardware watchpoints to use breakpoint_ops.

gdb/
* breakpoint.h (breakpoint_ops) <insert>: Rename to...
<insert_location>: ... this.  Return int instead of void.
Accept pointer to struct bp_location instead of pointer to
struct breakpoint.  Adapt all implementations.
(breakpoint_ops) <remove>: Rename to...
<remove_location>: ... this.  Accept pointer to struct bp_location
instead of pointer to struct breakpoint.  Adapt all implementations.
* breakpoint.c (insert_catchpoint): Delete function.
(insert_bp_location): Call the watchpoint or catchpoint's
breakpoint_ops.insert method.
(remove_breakpoint_1): Call the watchpoint or catchpoint's
breakpoint_ops.remove method.
(insert_watchpoint, remove_watchpoint): New functions.
(watchpoint_breakpoint_ops): New structure.
(watch_command_1): Initialize the OPS field.
* inf-child.c (inf_child_insert_fork_catchpoint)
(inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
(inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
(inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
Delete functions.
(inf_child_target): Remove initialization of to_insert_fork_catchpoint,
to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
to_remove_exec_catchpoint and to_set_syscall_catchpoint.
* target.c (update_current_target): Change default implementation of
to_insert_fork_catchpoint, to_remove_fork_catchpoint,
to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
to_insert_exec_catchpoint, to_remove_exec_catchpoint and
to_set_syscall_catchpoint to return_one.
(debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
(debug_to_insert_exec_catchpoint): Report return value.
* target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
(to_insert_exec_catchpoint): Change declaration to return int instead
of void.

gdb/testsuite/
* gdb.base/foll-exec.exp: Adapt to new error string when the catchpoint
type is not supported.
* gdb.base/foll-fork.exp: Likewise.
* gdb.base/foll-vfork.exp: Likewise.

13 years agosim: allow memory maps to default to mapped files
Mike Frysinger [Tue, 11 Jan 2011 17:58:56 +0000 (17:58 +0000)]
sim: allow memory maps to default to mapped files

I find it annoying when using --memory-mapfile that I also need to look
up and manually specify the file size to the following --memory-region
option.  So make a length of 0 in the following --memory-region trigger
an auto-sizing of the map to the length of the file being mapped.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2011-01-11 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Tue, 11 Jan 2011 15:10:03 +0000 (15:10 +0000)]
2011-01-11  Michael Snyder  <msnyder@vmware.com>

* arm-tdep.c: Internationalization.
* c-lang.c: Ditto.
* charset.c: Ditto.
* fork-child.c: Ditto.
* nto-procfs.c: Ditto.
* ppc-sysv-tdep.c: Ditto.
* procfs.c: Ditto.
* remote-mips.c: Ditto.
* remote.c: Ditto.
* rs6000-nat.c: Ditto.
* rs6000-tdep.c: Ditto.
* target.c: Ditto.
* valops.c: Ditto.
* value.c: Ditto.
* xml-support.c: Ditto.
* mi/mi-cmd-break.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.

13 years agohttp://sourceware.org/ml/gdb-patches/2010-11/msg00112.html
Andrew Burgess [Tue, 11 Jan 2011 14:19:34 +0000 (14:19 +0000)]
sourceware.org/ml/gdb-patches/2010-11/msg00112.html
gdb/ChangeLog
* remote-sim.c (gdbsim_store_register): Update API to
sim_store_register to check more error conditions.
include/gdb/ChangeLog
* remote-sim.h (sim_store_register): Update the API
documentation for this function.
sim/erc32/ChangeLog
sim/h8300/ChangeLog
sim/m32c/ChangeLog
sim/mn10300/ChangeLog
sim/ppc/ChangeLog
sim/rx/ChangeLog
sim/v850/ChangeLog
* ???.c (sim_store_register): Update return value to
match new API.

13 years ago* readelf.c (print_symbol): Handle symbol characters as unsigned.
Andreas Schwab [Tue, 11 Jan 2011 10:46:55 +0000 (10:46 +0000)]
* readelf.c (print_symbol): Handle symbol characters as unsigned.
Whitespace fixes.

13 years agoelf32-arm.c (elf32_arm_tls_relax): Note fixme pointed out by AlanM
Nathan Sidwell [Tue, 11 Jan 2011 09:06:04 +0000 (09:06 +0000)]
elf32-arm.c (elf32_arm_tls_relax): Note fixme pointed out by AlanM

13 years agoTake unadjusted offset for loongson3a specific instructions.
Mingjie Xing [Tue, 11 Jan 2011 07:22:09 +0000 (07:22 +0000)]
Take unadjusted offset for loongson3a specific instructions.

13 years agoFix change log omission.
Michael Snyder [Tue, 11 Jan 2011 03:01:33 +0000 (03:01 +0000)]
Fix change log omission.

13 years ago*** empty log message ***
gdbadmin [Tue, 11 Jan 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * layout.cc (Layout::layout_eh_frame): Mark a writable .eh_frame
Ian Lance Taylor [Mon, 10 Jan 2011 21:57:31 +0000 (21:57 +0000)]
* layout.cc (Layout::layout_eh_frame): Mark a writable .eh_frame
section as relro.
(Layout::set_segment_offsets): Reset increase_relro before calling
set_section_addresses a second time.

13 years agosim: fix handling of 2nd arg to SIM_AC_OPTION_HARDWARE
Mike Frysinger [Mon, 10 Jan 2011 21:53:27 +0000 (21:53 +0000)]
sim: fix handling of 2nd arg to SIM_AC_OPTION_HARDWARE

The 2nd arg to SIM_AC_OPTION_HARDWARE is described as "a space separated
list of devices that override the defaults" while the 3rd arg is "a space
separated list of extra target specific devices".  But the macro doesn't
seem to treat the 2nd arg this way.

Instead, it will always add the default list of devices, and only add the
extra target specific devices if the 2nd arg is not specified.  So rework
the logic slightly to handle the 2nd arg as documented.

This shouldn't affect any targets in the tree as no one passes in a non-
empty value as the 2nd arg.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: add noreturn markings to more hw abort/halt funcs
Mike Frysinger [Mon, 10 Jan 2011 21:52:08 +0000 (21:52 +0000)]
sim: add noreturn markings to more hw abort/halt funcs

These functions either call abort() themselves, or call functions which
are already marked noreturn.  Either way, they don't return, so mark them
as such so calling code can assume this.  This fixes some uninitialized
warnings due to code paths that end in an abort function.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2011-01-10 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 10 Jan 2011 20:38:51 +0000 (20:38 +0000)]
2011-01-10  Michael Snyder  <msnyder@vmware.com>

* nto-procfs.c: Comment cleanup, mostly periods and spaces.
* nto-tdep.c: Ditto.
* nto-tdep.h: Ditto.
* objc-exp.y: Ditto.
* objc-lang.c: Ditto.
* objfiles.c: Ditto.
* objfiles.h: Ditto.
* observer.c: Ditto.
* opencl-lang.c: Ditto.
* osabi.c: Ditto.
* parse.c: Ditto.
* parser-defs.h: Ditto.
* p-exp.y: Ditto.
* p-lang.c: Ditto.
* posix-hdep.c: Ditto.
* ppcbug-rom.c: Ditto.
* ppc-linux-nat.c: Ditto.
* ppc-linux-tdep.c: Ditto.
* ppc-linux-tdep.h: Ditto.
* ppcnbsd-tdep.c: Ditto.
* ppcobsd-tdep.c: Ditto.
* ppcobsd-tdep.h: Ditto.
* ppc-sysv-tdep.c: Ditto.
* ppc-tdep.h: Ditto.
* printcmd.c: Ditto.
* proc-abi.c: Ditto.
* proc-flags.c: Ditto.
* procfs.c: Ditto.
* proc-utils.h: Ditto.
* progspace.h: Ditto.
* prologue-value.c: Ditto.
* prologue-value.h: Ditto.
* psympriv.h: Ditto.
* psymtab.c: Ditto.
* p-typeprint.c: Ditto.
* p-valprint.c: Ditto.
* ravenscar-sparc-thread.c: Ditto.
* ravenscar-thread.c: Ditto.
* ravenscar-thread.h: Ditto.
* record.c: Ditto.
* regcache.c: Ditto.
* regcache.h: Ditto.
* remote.c: Ditto.
* remote-fileio.c: Ditto.
* remote-fileio.h: Ditto.
* remote.h: Ditto.
* remote-m32r-sdi.c: Ditto.
* remote-mips.c: Ditto.
* remote-sim.c: Ditto.
* rs6000-aix-tdep.c: Ditto.
* rs6000-nat.c: Ditto.
* rs6000-tdep.c: Ditto.

13 years ago2011-01-10 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 10 Jan 2011 17:14:13 +0000 (17:14 +0000)]
2011-01-10  Michael Snyder  <msnyder@vmware.com>

* charset.c (validate): Internationalization.
* coffread.c (read_one_sym): Ditto.
* dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
* h8300-tdep.c (H8300_extract_return_value): Ditto.
* inflow.c (new_tty): Ditto.
* iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
* m32c-tdep.c (m32c_return_value): Ditto.
* mep-tdep.c (mep_store_return_value): Ditto.
* score-tdep.c (score7_fetch_insn): Ditto.
* ser-mingw.c (pipe_windows_open): Ditto.
* sh64-tdep.c (sh64_extract_return_value): Ditto.
* spu-tdep.c (spu_register_type): Ditto.
* tracepoint.c (trace_find_command): Ditto.
* valarith.c (value_pos): Ditto.

13 years agoRemove the extra `.'.
H.J. Lu [Mon, 10 Jan 2011 15:03:15 +0000 (15:03 +0000)]
Remove the extra `.'.

13 years agoAdd a test for linker ASSERT.
H.J. Lu [Mon, 10 Jan 2011 14:37:40 +0000 (14:37 +0000)]
Add a test for linker ASSERT.

2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-scripts/assert.exp: Run assert2.

* ld-scripts/assert2.d: New.
* ld-scripts/assert2.t: Likewise.

13 years ago * po/da.po: Updated Danish translation.
Nick Clifton [Mon, 10 Jan 2011 13:51:10 +0000 (13:51 +0000)]
* po/da.po: Updated Danish translation.

13 years agoRemove startup_file from ldlang.c.
H.J. Lu [Mon, 10 Jan 2011 13:13:32 +0000 (13:13 +0000)]
Remove startup_file from ldlang.c.

2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>

* ldlang.c (startup_file): Removed.
(lang_startup): Updated.

13 years ago2011-01-10 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Mon, 10 Jan 2011 11:00:24 +0000 (11:00 +0000)]
2011-01-10  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/py-cmd.exp: Remove gdb_py_test_multiple function.
Use load_lib gdb-python.exp.
* gdb.python/python.exp: Ditto.
* gdb.python/py-function.exp: Ditto.

13 years ago* config/tc-i386.c (x86_elf_abi): Only define for targets that use
Nick Clifton [Mon, 10 Jan 2011 10:10:06 +0000 (10:10 +0000)]
* config/tc-i386.c (x86_elf_abi): Only define for targets that use
it.

13 years ago * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
Nick Clifton [Mon, 10 Jan 2011 09:50:02 +0000 (09:50 +0000)]
* config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
part of the file.

13 years ago bfd/
Nathan Sidwell [Mon, 10 Jan 2011 08:40:19 +0000 (08:40 +0000)]
bfd/
* reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
relocations.
* libbfd.h: Rebuilt.
* bfd-in2.h: Rebuilt.
* elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
(elf32_arm_reloc_map): Likewise.
(tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
(elf32_arm_stub_long_branch_any_tls_pic,
elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
(DEF_STUBS): Add new stubs.
(struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
(elf32_arm_local_tlsdesc_gotent): New.
(GOT_TLS_GDESC): New mask.
(GOT_TLS_GD_ANY): Define.
(struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
(elf32_arm_compute_jump_table_size): New.
(struct elf32_arm_link_hash_table): Add next_tls_desc_index,
num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
sgotplt_jump_table_size fields.
(elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
(elf32_arm_link_hash_table_create): Initialize new fields.
(arm_type_of_stub): Check TLS desc relocs too.
(elf32_arm_stub_name): TLS desc relocs can be shared.
(elf32_arm_tls_transition): Determine relaxation.
(arm_stub_required_alignment): Add tls stubs.
(elf32_arm_size_stubs): Likewise.
(elf32_arm_tls_relax): Perform TLS relaxing.
(elf32_arm_final_link_relocate): Process TLS DESC relocations.
(IS_ARM_TLS_GNU_RELOC): New.
(IS_ARM_TLS_RELOC): Use it.
(elf32_arm_relocate_section): Perform TLS relaxing.
(elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
desc relocations.
(allocate_dynrelocs): Allocate tls desc relcoations.
(elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
symbols.
(elf32_arm_size_dynamic_sections): Allocate tls trampolines and
got slots.
(elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
symbol.
(elf32_arm_finish_dynamic_symbol): Adjust.
(arm_put_trampoline): New.
(elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
trampolines.
(elf_backend_always_size_sections): Define.

include/elf/
* arm.h (R_ARM_TLS_DESC, R_ARM_TLS_GOTDESC, R_ARM_TLS_CALL,
R_ARM_TLS_DESCSEQ, T_ARM_THM_TLS_CALL, R_ARM_THM_TLS_DESCSEQ): New
relocations.

gas/
* doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
.tlsdescseq directive.
* config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
following a symbol.
(s_arm_tls_descseq): New directive.
(md_pseudo_table): Add it.
(encode_branch): Allow TLS_CALL relocs too.
(do_t_blx, do_t_branch23): Use encode_branch.
(reloc_names): Add tlsdesc and tlscall.
(md_apply_fix): Process tls desc relocations.
(tc_gen_reloc): Likewise.
(arm_fix_adjustable): Likewise.

gas/testsuite/
* gas/arm/tls.s: Add tlsdesc tests.
* gas/arm/tls.d: Adjust.

ld/testsuite/
* ld-arm/arm-elf.exp: Added tests for new TLS handling
relocations.
* ld-arm/tls-descrelax-be32.d: New.
* ld-arm/tls-descrelax-be32.s: New.
* ld-arm/tls-descrelax-be8.d: New.
* ld-arm/tls-descrelax-be8.s: New.
* ld-arm/tls-descrelax-v7.d: New.
* ld-arm/tls-descrelax-v7.s: New.
* ld-arm/tls-descrelax.d: New.
* ld-arm/tls-descrelax.s: New.
* ld-arm/tls-descseq.d: New.
* ld-arm/tls-descseq.r: New.
* ld-arm/tls-descseq.s: New.
* ld-arm/tls-gdesc-got.d: New.
* ld-arm/tls-gdesc-got.s: New.
* ld-arm/tls-gdesc-nlazy.g: New.
* ld-arm/tls-gdesc-nlazy.s: New.
* ld-arm/tls-gdesc.d: New.
* ld-arm/tls-gdesc.r: New.
* ld-arm/tls-gdesc.s: New.
* ld-arm/tls-gdierelax.d: New.
* ld-arm/tls-gdierelax.s: New.
* ld-arm/tls-gdierelax2.d: New.
* ld-arm/tls-gdierelax2.s: New.
* ld-arm/tls-gdlerelax.d: New.
* ld-arm/tls-gdlerelax.s: New.
* ld-arm/tls-lib-loc.d: New.
* ld-arm/tls-lib-loc.r: New.
* ld-arm/tls-lib-loc.s: New.
* ld-arm/tls-longplt-lib.d: New.
* ld-arm/tls-longplt-lib.s: New.
* ld-arm/tls-longplt.d: New.
* ld-arm/tls-longplt.s: New.
* ld-arm/tls-mixed.r: New.
* ld-arm/tls-mixed.s: New.
* ld-arm/tls-thumb1.d: New.
* ld-arm/tls-thumb1.s: New.
* ld-arm/arm-elf.exp: New.

13 years agominor comment reformatting (ada-valprint.c:printstr)
Joel Brobecker [Mon, 10 Jan 2011 06:07:10 +0000 (06:07 +0000)]
minor comment reformatting (ada-valprint.c:printstr)

Just to make the length of each line a little more balanced.

gdb/ChangeLog:

        * ada-valprint.c (printstr): Minor comment reformatting.

13 years ago2011-01-08 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Mon, 10 Jan 2011 02:43:30 +0000 (02:43 +0000)]
2011-01-08  Michael Snyder  <msnyder@vmware.com>

* m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
markup.

13 years ago*** empty log message ***
gdbadmin [Mon, 10 Jan 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sun, 9 Jan 2011 23:00:06 +0000 (23:00 +0000)]
daily update

13 years ago* gdb.threads/tls.exp ("info address me"): Fix expected output.
Andreas Schwab [Sun, 9 Jan 2011 15:22:49 +0000 (15:22 +0000)]
* gdb.threads/tls.exp ("info address me"): Fix expected output.

13 years ago2011-01-08 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sun, 9 Jan 2011 03:20:33 +0000 (03:20 +0000)]
2011-01-08  Michael Snyder  <msnyder@vmware.com>

* m2-exp.y: Comment cleanup, mostly periods and spaces.
* m2-lang.c: Ditto.
* m2-typeprint.c: Ditto.
* m2-valprint.c: Ditto.
* m32c-tdep.c: Ditto.
* m32r-linux-nat.c: Ditto.
* m32r-rom.c: Ditto.
* m32r-tdep.c: Ditto.
* m32r-tdep.h: Ditto.
* m68hc11-tdep.c: Ditto.
* m58klinux-nat.c: Ditto.
* m68k-tdep.c: Ditto.
* m88k-tdep.c: Ditto.
* m88k-tdep.h: Ditto.
* machoread.c: Ditto.
* macrocmd.c: Ditto.
* macroexp.c: Ditto.
* macrotab.c: Ditto.
* main.c: Ditto.
* maint.c: Ditto.
* mdebugread.c: Ditto.
* mdebugread.h: Ditto.
* memattr.c: Ditto.
* memattr.h: Ditto.
* memory-map.h: Ditto.
* mep-tdep.c: Ditto.
* microblaze-rom.c: Ditto.
* microblaze-tdep.c: Ditto.
* minsyms.c: Ditto.
* mips-irix-tdep.c: Ditto.
* mips-linux-nat.c: Ditto.
* mips-linux-tdep.c: Ditto.
* mips-linux-tdep.h: Ditto.
* mipsnbsd-nat.c: Ditto.
* mipsnbsd-tdep.c: Ditto.
* mipsread.c: Ditto.
* mips-tdep.c: Ditto.
* mips-tdep.h: Ditto.
* mn10300-linux-tdep.c: Ditto.
* mn10300-tdep.c: Ditto.
* mn10300-tdep.h: Ditto.
* monitor.c: Ditto.
* monitor.h: Ditto.
* moxie-tdep.c: Ditto.
* moxie-tdep.h: Ditto.
* mt-tdep.c: Ditto.

13 years ago2011-01-08 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sun, 9 Jan 2011 03:08:57 +0000 (03:08 +0000)]
2011-01-08  Michael Snyder  <msnyder@vmware.com>

* h8300-tdep.c: Comment cleanup, mostly periods and spaces.
* hppa-hpux-tdep.c: Ditto.
* hppa-linux-nat.c: Ditto.
* hppa-linux-tdep.c: Ditto.
* hppanbsd-tdep.c: Ditto.
* hppa-tdep.c: Ditto.
* hppa-tdep.h: Ditto.
* hpux-thread.c: Ditto.
* i386-cygwin-tdep.c: Ditto.
* i386-darwin-nat.c: Ditto.
* i386gnu-nat.c: Ditto.
* i386-linux-nat.c: Ditto.
* i386-linux-tdep.c: Ditto.
* i386-nat.c: Ditto.
* i386-nat.h: Ditto.
* i386nbsd-tdep.c: Ditto.
* i386-sol2-nat.c: Ditto.
* i386-stub.c: Ditto.
* i386-tdep.c: Ditto.
* i386-tdep.h: Ditto.
* i387-tdep.c: Ditto.
* ia64-linux-nat.c: Ditto.
* ia64-linux-tdep.c: Ditto.
* ia64-tdep.c: Ditto.
* infcall.c: Ditto.
* infcall.h: Ditto.
* infcmd.c: Ditto.
* inferior.c: Ditto.
* inferior.h: Ditto.
* infloop.c: Ditto.
* inflow.c: Ditto.
* infrun.c: Ditto.
* interps.c: Ditto.
* interps.h: Ditto.
* iq2000-tdep.c: Ditto.
* irix5-nat.c: Ditto.
* jit.c: Ditto.
* jit.h: Ditto.
* jv-exp.y: Ditto.
* jv-lang.c: Ditto.
* jv-lang.h: Ditto.
* jv-typeprint.c: Ditto.
* jv-valprint.c: Ditto.
* language.c: Ditto.
* language.h: Ditto.
* linespec.c: Ditto.
* linux-fork.c: Ditto.
* linux-nat.c: Ditto.
* linux-thread-db.c: Ditto.
* lm32-tdep.c: Ditto.

13 years ago*** empty log message ***
gdbadmin [Sun, 9 Jan 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Sat, 8 Jan 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agogdb: bfin: tix typo in register name
Mike Frysinger [Sat, 8 Jan 2011 20:45:11 +0000 (20:45 +0000)]
gdb: bfin: tix typo in register name

Looks like we've long been using "AO" instead of "A0" in the enum for the
A0.W.  But no one noticed since we aren't using it directly (we assume the
position in the reverse).  I've committed this simple fix.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoFix typo in fbsd-nat.c.
Joel Brobecker [Sat, 8 Jan 2011 12:36:27 +0000 (12:36 +0000)]
Fix typo in fbsd-nat.c.

        * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.

13 years ago * ld-misc/defsym1.d: Add a -e linker command line option.
Nick Clifton [Sat, 8 Jan 2011 09:52:57 +0000 (09:52 +0000)]
* ld-misc/defsym1.d: Add a -e linker command line option.
* ld-misc/dummy.s: Remove text.

13 years agocorrect PR citation in previous delta
Nick Clifton [Sat, 8 Jan 2011 09:40:40 +0000 (09:40 +0000)]
correct PR citation in previous delta

13 years ago PR ld/13258
Nick Clifton [Sat, 8 Jan 2011 09:38:17 +0000 (09:38 +0000)]
PR ld/13258
PR ld/13259
* ld-elf/textaddr2.d: Fix regexp to work with hppa64 targets.
* ld-elf/textaddr6.d: Fix regexp to work with hppa64 targets.

13 years ago2011-01-07 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sat, 8 Jan 2011 04:01:11 +0000 (04:01 +0000)]
2011-01-07  Michael Snyder  <msnyder@vmware.com>

* charset.c (_initialize_charset): Fix typo in string.

13 years ago*** empty log message ***
gdbadmin [Sat, 8 Jan 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoUpdate gas/i386/ilp32/x86-64-arch-2.d.
H.J. Lu [Fri, 7 Jan 2011 23:26:59 +0000 (23:26 +0000)]
Update gas/i386/ilp32/x86-64-arch-2.d.

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

* gas/i386/ilp32/x86-64-arch-2.d: Add bmi flag and BMI instruction
pattern.

13 years agodaily update
Alan Modra [Fri, 7 Jan 2011 23:00:04 +0000 (23:00 +0000)]
daily update

13 years ago2011-01-07 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Fri, 7 Jan 2011 20:24:18 +0000 (20:24 +0000)]
2011-01-07  Michael Snyder  <msnyder@vmware.com>

* mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
for i18n.
* tui/tui-layout.c (tui_set_layout_for_display_command):
Split line so that operator goes to beginning of line.
* tui/tui-winsource.c (tui_horizontal_source_scroll): Move
assignment out of if statement.

13 years ago2011-01-07 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Fri, 7 Jan 2011 19:36:19 +0000 (19:36 +0000)]
2011-01-07  Michael Snyder  <msnyder@vmware.com>

* ada-lang.c: Comment cleanup, mostly periods and spaces.
* ada-lang.h: Ditto.
* ada-tasks.c: Ditto.
* ada-valprint.c: Ditto.
* aix-threads.c: Ditto.
* alpha-linux-nat.c: Ditto.
* alpha-linux-tdep.c: Ditto.
* alpha-mdebug-tdep.c: Ditto.
* alpha-nat.c: Ditto.
* alpha-osf1-tdep.c: Ditto.
* alpha-tdep.c: Ditto.
* alphabsd-nat.c: Ditto.
* alphabsd-tdep.c: Ditto.
* amd64-darwin-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* amd64-sol2-tdep.c: Ditto.
* amd64-tdep.c: Ditto.
* amd64-fbsd-tdep.c: Ditto.
* amd64-nbsd-tdep.c: Ditto.
* amd64-obsd-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* arm-tdep.c: Ditto.
* arm-tdep.h: Ditto.
* armnbsd-nat.c: Ditto.
* avr-tdep.c: Ditto.
* bfin-tdep.c: Ditto.
* bsd-kvm.c: Ditto.
* c-typeprintc: Ditto.
* c-valprint.c: Ditto.
* coff-pe-read.h: Ditto.
* coffreead.c: Ditto.
* cris-tdep.c: Ditto.
* d-lang.c: Ditto.
* darwin-nat-info.c: Ditto.
* darwin-nat.c: Ditto.
* dbug-rom.c: Ditto.
* dbxread.c: Ditto.
* dcache.c: Ditto.
* dcache.h: Ditto.
* dec-thread.c: Ditto.
* defs.h: Ditto.
* demangle.c: Ditto.
* dicos-tdep.c: Ditto.
* dictionary.c: Ditto.
* dictionary.h: Ditto.
* dink32-rom.c: Ditto.
* disasm.c: Ditto.
* doublest.c: Ditto.
* dsrec.c: Ditto.
* dummy-frame.c: Ditto.
* dwarf2-frame.c: Ditto.
* dwarf2expr.c: Ditto.
* dwarf2loc.c: Ditto.
* dwarf2read.c: Ditto.
* elfread.c: Ditto.
* environ.c: Ditto.
* eval.c: Ditto.
* event-top.h: Ditto.
* exceptions.c: Ditto.
* exceptions.h: Ditto.
* exec.c: Ditto.
* expprint.c: Ditto.
* expression.h: Ditto.
* f-exp.y: Ditto.
* f-lang.c: Ditto.
* f-lang.h: Ditto.
* f-typeprint.c: Ditto.
* f-valprint.c: Ditto.
* fbsd-nat.c: Ditto.
* findvar.c: Ditto.
* fork-child.c: Ditto.
* frame.c: Ditto.
* frame.h: Ditto.
* frv-linux-tdep.c: Ditto.
* frv-tdep.c: Ditto.
* gcore.c: Ditto.
* gdb-stabs.h: Ditto.
* gdb_assert.h: Ditto.
* gdb_string.h: Ditto.
* gdb_thread_db.h: Ditto.
* gdb_wait.h: Ditto.
* gdbarch.sh: Ditto.
* gdbcore.h: Ditto.
* gdbthread.h: Ditto.
* gdbtypes.c: Ditto.
* gdbtypes.h: Ditto.
* gnu-nat.c: Ditto.
* gnu-nat.h: Ditto.
* gnu-v2-abi.c: Ditto.
* gnu-v3-abi.c: Ditto.
* go32-nat.c: Ditto.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.

13 years agoAdd docs and arch tests to BMI.
Quentin Neill [Fri, 7 Jan 2011 17:44:30 +0000 (17:44 +0000)]
Add docs and arch tests to BMI.

gas/
2011-01-07  Quentin Neill  <quentin.neill@amd.com>

* config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.

* doc/c-i386.texi (i386-BMI): New section.

gas/testsuite/
2011-01-07  Quentin Neill  <quentin.neill@amd.com>

* gas/i386/arch-10.s: Add a BMI instruction.
* gas/i386/x86-64-arch-2.s: Likewise.
* gas/i386/arch-10.d: Add bmi flag and BMI instruction pattern.
* gas/i386/x86-64-arch-2.d: Likewise.
* gas/i386/arch-10-1.l: Add BMI instruction pattern.
* gas/i386/arch-10-2.l: Likewise.
* gas/i386/arch-10-3.l: Likewise.
* gas/i386/arch-10-4.l: Likewise.

13 years ago2011-01-07 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Fri, 7 Jan 2011 17:35:27 +0000 (17:35 +0000)]
2011-01-07  Michael Snyder  <msnyder@vmware.com>

* ax-gdb.c: Adjust some long output strings.
* breakpoint.c: Ditto.
* charset.c: Ditto.
* cp-abi.c: Ditto.
* infcall.c: Ditto.
* infrun.c: Ditto.
* linux-nat.c: Ditto.
* solib-pa64.c: Ditto.
* solib-som.c: Ditto.

13 years ago * gdb.texinfo (Python API): Add descriptions to @menu items.
Tom Tromey [Fri, 7 Jan 2011 15:47:21 +0000 (15:47 +0000)]
* gdb.texinfo (Python API): Add descriptions to @menu items.

13 years agoOptimize _bfd_elf_allocate_ifunc_dyn_relocs.
H.J. Lu [Fri, 7 Jan 2011 03:34:23 +0000 (03:34 +0000)]
Optimize _bfd_elf_allocate_ifunc_dyn_relocs.

2011-01-06  H.J. Lu  <hongjiu.lu@intel.com>

* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.

13 years agogdb/testsuite/
Jan Kratochvil [Fri, 7 Jan 2011 02:51:09 +0000 (02:51 +0000)]
gdb/testsuite/
* configure: Regenerate.

13 years ago* gas/pdp11/pdp11.exp: Add run of absreloc.
Paul Koning [Fri, 7 Jan 2011 01:51:45 +0000 (01:51 +0000)]
* gas/pdp11/pdp11.exp: Add run of absreloc.

13 years ago*** empty log message ***
gdbadmin [Fri, 7 Jan 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
Alan Modra [Thu, 6 Jan 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agogdb
Tom Tromey [Thu, 6 Jan 2011 21:10:53 +0000 (21:10 +0000)]
gdb
PR python/12367:
* NEWS: Add item.
* python/python.c (GdbMethods): Add "newest_frame" method.
* python/python-internal.h (gdbpy_newest_frame): Declare.
* python/py-frame.c (gdbpy_newest_frame): New function.
gdb/doc
* gdb.texinfo (Frames In Python): Document gdb.newest_thread.
gdb/testsuite
* gdb.python/py-frame.exp: Test gdb.newest_frame.

13 years agoChangeLog:
Paul Pluzhnikov [Thu, 6 Jan 2011 19:56:44 +0000 (19:56 +0000)]
ChangeLog:
2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

* jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
* jit.c (jit_debug): New variable.
(show_jit_debug): New function.
(struct target_buffer): Use ULONGEST.
(bfd_open_from_target_memory): Likewise.
(jit_register_code, jit_inferior_init): Add debug output.
(_initialize_jit): Register "debug jit" command.

doc/ChangeLog:
2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

       * gdb.texinfo (Debugging Output): Document "set debug jit".

13 years agoCorrect year.
H.J. Lu [Thu, 6 Jan 2011 19:05:48 +0000 (19:05 +0000)]
Correct year.

13 years agoHandle STT_GNU_IFUNC symols when building shared library.
H.J. Lu [Thu, 6 Jan 2011 18:45:05 +0000 (18:45 +0000)]
Handle STT_GNU_IFUNC symols when building shared library.

bfd/

2012-01-06  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12366
PR ld/12371
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
handle symbols marked with regular reference, but not non-GOT
reference when building shared library.

* elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
local and global STT_GNU_IFUNC symols when building shared
library.
* elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.

ld/testsuite/

2012-01-06  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12366
PR ld/12371
* ld-ifunc/ifunc-10-i386.s: Add more tests.
* ld-ifunc/ifunc-10-x86-64.s: Likewise.
* ld-ifunc/ifunc-11-i386.s: Likewise.
* ld-ifunc/ifunc-11-x86-64.s: Likewise.

* ld-ifunc/ifunc-12-i386.d: New.
* ld-ifunc/ifunc-12-i386.s: Likewise.
* ld-ifunc/ifunc-12-x86-64.d: Likewise.
* ld-ifunc/ifunc-12-x86-64.s: Likewise.
* ld-ifunc/ifunc-13-i386.d: Likewise.
* ld-ifunc/ifunc-13-x86-64.d: Likewise.
* ld-ifunc/ifunc-13a-i386.s: Likewise.
* ld-ifunc/ifunc-13a-x86-64.s: Likewise.
* ld-ifunc/ifunc-13b-i386.s: Likewise.
* ld-ifunc/ifunc-13b-x86-64.s: Likewise.

13 years agogdb
Tom Tromey [Thu, 6 Jan 2011 18:34:16 +0000 (18:34 +0000)]
gdb
* frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
* python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
and ARCH_FRAME.
gdb/doc
PR python/12133:
* gdb.texinfo (Frames In Python): Document various frame
constants.

13 years ago * python/py-frame.c (frapy_block): Use get_frame_block.
Tom Tromey [Thu, 6 Jan 2011 17:16:58 +0000 (17:16 +0000)]
* python/py-frame.c (frapy_block): Use get_frame_block.

13 years ago* config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
Paul Koning [Thu, 6 Jan 2011 16:41:35 +0000 (16:41 +0000)]
* config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
references to absolute addresses.

13 years ago* gas/pdp11/opcode.d: Fix expected output for sec instruction.
Paul Koning [Thu, 6 Jan 2011 16:31:39 +0000 (16:31 +0000)]
* gas/pdp11/opcode.d: Fix expected output for sec instruction.

13 years agoDo not stop on SIGPRIO signals by default
Joel Brobecker [Thu, 6 Jan 2011 14:58:58 +0000 (14:58 +0000)]
Do not stop on SIGPRIO signals by default

This signal does not indicate an error condition, so the default
behavior when receiving this signal should be to resume execution
silently.

gdb/ChangeLog:

        Do not stop on SIGPRIO signals by default
        * infrun.c (_initialize_infrun): Unset signal_stop and
        signal_print for TARGET_SIGNAL_PRIO.

13 years agofix style violation in ada-tasks.c comment
Joel Brobecker [Thu, 6 Jan 2011 14:43:37 +0000 (14:43 +0000)]
fix style violation in ada-tasks.c comment

gdb/ChangeLog:

       * ada-tasks.c: Fix style violation in comment.

13 years ago gas/testsuite/
Nathan Sidwell [Thu, 6 Jan 2011 14:30:43 +0000 (14:30 +0000)]
gas/testsuite/
* gas/arm/blx-bad.s: New.
* gas/arm/blx-bad.d: New.

opcodes/
* arm-dis.c (thumb32_opcodes): BLX must have bit zero clear.

13 years ago * bucomm.c (get_file_size): Check for negative sizes and issue a
Nick Clifton [Thu, 6 Jan 2011 11:34:28 +0000 (11:34 +0000)]
* bucomm.c (get_file_size): Check for negative sizes and issue a
warning message if encountered.

13 years ago[testsuite/gdb.ada] simplify some testcases by using clean_restart.
Joel Brobecker [Thu, 6 Jan 2011 10:35:00 +0000 (10:35 +0000)]
[testsuite/gdb.ada] simplify some testcases by using clean_restart.

gdb/testsuite/ChangeLog:

        * gdb.ada/array_bounds.exp, gdb.ada/array_return.exp,
        gdb.ada/array_subscript_addr.exp, gdb.ada/arrayidx.exp,
        gdb.ada/arrayparam.exp, gdb.ada/arrayptr.exp,
        gdb.ada/atomic_enum.exp, gdb.ada/call_pn.exp,
        gdb.ada/catch_ex.exp, gdb.ada/char_param.exp,
        gdb.ada/complete.exp, gdb.ada/exprs.exp, gdb.ada/fixed_cmp.exp,
        gdb.ada/fixed_points.exp, gdb.ada/formatted_ref.exp,
        gdb.ada/frame_args.exp, gdb.ada/fun_addr.exp,
        gdb.ada/fun_in_declare.exp, gdb.ada/funcall_param.exp,
        gdb.ada/homonym.exp, gdb.ada/int_deref.exp,
        gdb.ada/interface.exp, gdb.ada/lang_switch.exp,
        gdb.ada/mod_from_name.exp, gdb.ada/nested.exp,
        gdb.ada/null_array.exp, gdb.ada/null_record.exp,
        gdb.ada/packed_array.exp, gdb.ada/packed_tagged.exp,
        gdb.ada/print_chars.exp, gdb.ada/print_pc.exp,
        gdb.ada/ptype_field.exp, gdb.ada/ptype_tagged_param.exp,
        gdb.ada/rec_return.exp, gdb.ada/ref_param.exp,
        gdb.ada/ref_tick_size.exp, gdb.ada/start.exp,
        gdb.ada/str_ref_cmp.exp, gdb.ada/sym_print_name.exp,
        gdb.ada/taft_type.exp, gdb.ada/tagged.exp, gdb.ada/tasks.exp,
        gdb.ada/tick_last_segv.exp, gdb.ada/type_coercion.exp,
        gdb.ada/uninitialized_vars.exp,
        gdb.ada/variant_record_packed_array.exp, gdb.ada/watch_arg.exp:
        Simplify by using clean_restart.

13 years agoAvoid the use of gdb_start_cmd in gdb.ada/*.exp testcases.
Joel Brobecker [Thu, 6 Jan 2011 10:33:38 +0000 (10:33 +0000)]
Avoid the use of gdb_start_cmd in gdb.ada/*.exp testcases.

This command does not work when testing with GDBserver.  So this patch
changes the few tests that do not specifically test the `start' command,
and replace calls to gdb_start_cmd with the usual `run LOC' approach.

For the couple of testcases that do really test the `start' command,
do an early return as UNTESTED instead of running this testcase.

gdb/testsuite/ChangeLog:

Add marker to be used as anchor for inserting breakpoints.
* gdb.ada/null_record/null_record.adb: Add "-- START" comment.
* gdb.ada/start/dummy.adb, gdb.ada/uninitialized_vars/parse.adb:
Likewise.

Remove uses of gdb_start_cmd.
* gdb.ada/null_record.exp: Remove use of gdb_start_cmd.
* gdb.ada/print_pc.exp, gdb.ada/uninitialized_vars.exp: Ditto.

Do not run testcase if testing with GDBserver.
* gdb.ada/exec_changed.exp, gdb.ada/start.exp: Abort as untested
if testing with GDBserver.

13 years agoRemove trailing new-line at end of error string
Joel Brobecker [Thu, 6 Jan 2011 09:30:35 +0000 (09:30 +0000)]
Remove trailing new-line at end of error string

gdb/ChangeLog:

* linespec.c (decode_compound, find_method): Remove trailing \n
at end of error string.
* solib-irix.c (irix_current_sos): Likewise.
* varobj.c (uninstall_variable): Likewise.

13 years agoNew script copyright.py
Joel Brobecker [Thu, 6 Jan 2011 06:28:39 +0000 (06:28 +0000)]
New script copyright.py

gdb/ChangeLog:

        * copyright.py: New script.
        * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
        Launch emacs without exec'ing. Call copyright.py afterwards.

13 years agoAdd copyright header to some Ada files (testsuite)
Joel Brobecker [Thu, 6 Jan 2011 06:27:44 +0000 (06:27 +0000)]
Add copyright header to some Ada files (testsuite)

gdb/testsuite/ChangeLog:

  * gdb.ada/complete/foo.adb, gdb.ada/complete/pck.adb,
  gdb.ada/complete/pck.ads, gdb.ada/print_chars/foo.adb: Add
  copyright header.

13 years ago2011-01-05 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Thu, 6 Jan 2011 00:57:05 +0000 (00:57 +0000)]
2011-01-05  Michael Snyder  <msnyder@vmware.com>

* cli/cli-cmds.c: Shorten lines of >= 80 columns.
* cli/cli-decode.c: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* common/signals.c: Ditto.
* mi/mi-cmd-break.c: Ditto.
* mi/mi-cmd-disas.c: Ditto.
* mi/mi-cmd-stack.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-common.h: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
* osf-share/cma_attr.c: Ditto.
* osf-share/cma_deb_core.h: Ditto.
* osf-share/cma_debug_client.h: Ditto.
* osf-share/cma_handle.h: Ditto.
* osf-share/cma_mutex.h: Ditto.
* osf-share/cma_stack_int.h: Ditto.
* osf-share/cma_tcb_defs.h: Ditto.
* python/py-auto-load.c: Ditto.
* python/py-breakpoint.c: Ditto.
* python/py-cmd.c: Ditto.
* python/py-frame.c: Ditto.
* python/py-objfile.c: Ditto.
* python/py-param.c: Ditto.
* python/py-progspace.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-value.c: Ditto.
* python/python-internal.h: Ditto.
* python/python.c: Ditto.
* tui/tui-data.c: Ditto.
* tui/tui-disasm.c: Ditto.
* tui/tui-hooks.c: Ditto.
* tui/tui-io.c: Ditto.
* tui/tui-layout.c: Ditto.
* tui/tui-regs.c: Ditto.
* tui/tui-source.c: Ditto.
* tui/tui-stack.c: Ditto.
* tui/tui-win.c: Ditto.
* tui/tui-windata.c: Ditto.
* tui/tui-winsource.c: Ditto.

13 years ago2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
Michael Snyder [Thu, 6 Jan 2011 00:14:09 +0000 (00:14 +0000)]
2011-01-05  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>

* gdbreplay.c: Shorten lines of >= 80 columns.
* linux-low.c: Ditto.
* linux-ppc-low.c: Ditto.
* linux-s390-low.c: Ditto.
* linux-sparc-low.c: Ditto.
* linux-x86-low.c: Ditto.
* linux-xtensa-low.c: Ditto.
* mem-break.c: Ditto.
* nto-low.c: Ditto.
* regcache.h: Ditto.
* remote-utils.c: Ditto.
* server.c: Ditto.
* server.h: Ditto.
* thread-db.c: Ditto.
* tracepoint.c: Ditto.
* utils.c: Ditto.
* win32-low.h: Ditto.

13 years ago*** empty log message ***
gdbadmin [Thu, 6 Jan 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * testutils.inc: Correct comment syntax fallout from
Hans-Peter Nilsson [Wed, 5 Jan 2011 23:12:37 +0000 (23:12 +0000)]
* testutils.inc: Correct comment syntax fallout from
copyright update.
* utils-dsp.inc, utils-fpu.inc, utils-mdmx.inc: Ditto.