platform/upstream/binutils.git
12 years ago * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
Roland McGrath [Thu, 15 Mar 2012 18:20:22 +0000 (18:20 +0000)]
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
elf_x86_64_backend_data parameters for plt_eh_frame.

Change-Id: I4e1a7c2787ed1276765e269f50fc8ba89bab41d5

12 years ago * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
Roland McGrath [Thu, 15 Mar 2012 16:37:25 +0000 (16:37 +0000)]
* elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
(get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
(elf_x86_64_arch_bed): New variable.
(elf_backend_arch_data): New macro.
(elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
(elf_x86_64_allocate_dynrelocs): Likewise.
(elf_x86_64_relocate_section): Likewise.
(elf_x86_64_plt_sym_val): Likewise.
(elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
parameters for PLT details.
(elf_x86_64_finish_dynamic_sections): Likewise.

12 years ago PR gold/13850
Ian Lance Taylor [Thu, 15 Mar 2012 16:32:22 +0000 (16:32 +0000)]
PR gold/13850
* layout.cc (Layout::make_output_section): Correctly mark
SHT_INIT_ARRAY, et. al., as relro.

12 years ago * NEWS: Mention "info vtbl", not "info vtable".
Tom Tromey [Thu, 15 Mar 2012 16:32:16 +0000 (16:32 +0000)]
* NEWS: Mention "info vtbl", not "info vtable".
* cp-support.c (info_vtbl_command): Fix comment.
(_initialize_cp_support): Fix text.

12 years ago * cp-valprint.c (cp_print_value_fields): Use
Tom Tromey [Thu, 15 Mar 2012 15:49:42 +0000 (15:49 +0000)]
* cp-valprint.c (cp_print_value_fields): Use
print_function_pointer_address for vtable slot.
gdb/testsuite
* gdb.cp/virtfunc2.exp: Update expected output.
* gdb.cp/pr9631.exp: Update expected output.
* gdb.cp/member-ptr.exp: Update expected output.
* gdb.cp/inherit.exp (test_print_mvi_classes): Update expected
output.
* gdb.cp/casts.exp: Update expected output.

12 years ago * gnu-v3-abi.c (struct value_and_voffset): New.
Tom Tromey [Thu, 15 Mar 2012 15:43:18 +0000 (15:43 +0000)]
* gnu-v3-abi.c (struct value_and_voffset): New.
(hash_value_and_voffset, eq_value_and_voffset)
(compare_value_and_voffset, compute_vtable_size)
(print_one_vtable, gnuv3_print_vtable): New functions.
(init_gnuv3_ops): Initialize 'print_vtable' field.
* cp-support.c (info_vtbl_command): New function.
(_initialize_cp_support): Add "info vtbl".
* cp-abi.h (cplus_print_vtable): Declare.
(struct cp_abi_ops) <print_vtable>: New field.
* cp-abi.c (cplus_print_vtable): New function.
* NEWS: Update.
gdb/testsuite
* gdb.cp/virtfunc.exp (make_one_vtable_result): New proc.
(test_info_vtbl): Likewise.
(do_tests): Call test_info_vtbl.
* gdb.cp/virtfunc.cc (va): New global.
gdb/doc
* gdb.texinfo (Debugging C Plus Plus): Document "info vtbl".

12 years ago * configure.ac (enable_libgomp): Remove *-*-irix6*.
Rainer Orth [Thu, 15 Mar 2012 14:13:32 +0000 (14:13 +0000)]
* configure.ac (enable_libgomp): Remove *-*-irix6*.
(unsupported_languages): Remove mips-sgi-irix6.*.
(noconfigdirs): Don't add ${libgcj} for mips*-*-irix6*.
(with_stabs): Remove.
* configure: Regenerate.

12 years ago * configure.ac (enable_libgomp): Remove *-*-osf*.
Rainer Orth [Thu, 15 Mar 2012 14:11:38 +0000 (14:11 +0000)]
* configure.ac (enable_libgomp): Remove *-*-osf*.
(with_stabs): Remove alpha*-*-osf*.
* configure: Regenerate.

12 years ago * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
Tom Tromey [Thu, 15 Mar 2012 14:06:20 +0000 (14:06 +0000)]
* d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
iterate_over_symbols.

12 years agoinclude/
Alan Modra [Thu, 15 Mar 2012 12:58:48 +0000 (12:58 +0000)]
include/
* dis-asm.h (disassemble_init_powerpc): Declare.
opcodes/
* disassemble.c (disassemble_init_for_target): Handle ppc init.
* ppc-dis.c (private): New var.
(powerpc_init_dialect): Don't return calloc failure, instead use
private.
(PPC_OPCD_SEGS, PPC_OP_TO_SEG): Define.
(powerpc_opcd_indices): New array.
(disassemble_init_powerpc): New function.
(print_insn_big_powerpc): Don't init dialect here.
(print_insn_little_powerpc): Likewise.
(print_insn_powerpc): Start search using powerpc_opcd_indices.

12 years agogdb/gdbserver/
Yao Qi [Thu, 15 Mar 2012 12:57:13 +0000 (12:57 +0000)]
gdb/gdbserver/

* tracepoint.c (install_tracepoint): Move duplicated tracepoint
handling to ...
(cmd_qtdp): ... here.

12 years agogas/
Thomas Schwinge [Thu, 15 Mar 2012 11:19:13 +0000 (11:19 +0000)]
gas/
* doc/as.texinfo (Bundle directives): Fix typo.

12 years agogdb/gdbserver/
Yao Qi [Thu, 15 Mar 2012 10:42:38 +0000 (10:42 +0000)]
gdb/gdbserver/

* tracepoint.c (struct tracepoint_action_ops): New.
(struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
(m_tracepoint_action_download): New.
(r_tracepoint_action_download): New.
(x_tracepoint_action_download): New.
(l_tracepoint_action_download): New.
(add_tracepoint_action): Install `action->ops' according type.
(download_tracepoint_1): Move code `download' function pointer
of various tracepoint_action_ops.

12 years agogdb/testsuite/
Thomas Schwinge [Thu, 15 Mar 2012 09:08:10 +0000 (09:08 +0000)]
gdb/testsuite/
* gdb.dwarf2/dw2-ada-ffffffff.S: Use .4byte instead of .long for
describing DWARF data structures.
* gdb.dwarf2/dw2-bad-parameter-type.S: Likewise.
* gdb.dwarf2/dw2-double-set-die-type.S: Likewise.
* gdb.dwarf2/dw2-empty-pc-range.S: Likewise.
* gdb.dwarf2/dw2-entry-value.S: Likewise.
* gdb.dwarf2/dw2-modula2-self-type.S: Likewise.
* gdb.dwarf2/dw2-param-error.S: Likewise.
* gdb.dwarf2/dw2-skip-prologue.S: Likewise.
* gdb.dwarf2/dw2-stack-boundary.S: Likewise.
* gdb.dwarf2/dw4-sig-type-unused.S: Likewise.
* gdb.dwarf2/implptr-optimized-out.S: Likewise.
* gdb.dwarf2/member-ptr-forwardref.S: Likewise.
* gdb.dwarf2/pr11465.S: Likewise.

12 years ago * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
Doug Evans [Thu, 15 Mar 2012 02:34:49 +0000 (02:34 +0000)]
* dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
DW_OP_GNU_parameter_ref.

12 years ago * config/default.exp: Update copyright date.
Alan Modra [Thu, 15 Mar 2012 01:57:57 +0000 (01:57 +0000)]
* config/default.exp: Update copyright date.
* ld-elf/shared.exp: Pass --no-as-needed to various tests linking
shared libs.
* ld-elfvers/vers.exp: Likewise.

12 years ago * gas/i386/bundle-lock.d: Ignore trailing nops.
Alan Modra [Thu, 15 Mar 2012 01:36:29 +0000 (01:36 +0000)]
* gas/i386/bundle-lock.d: Ignore trailing nops.
* gas/i386/bundle.d: Likewise.
* gas/i386/x86-64-bundle.d: Likewise.

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

12 years ago2012-03-14 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 14 Mar 2012 23:07:07 +0000 (23:07 +0000)]
2012-03-14  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (Target_arm::Scan::global): Generate R_ARM_GLOB_DAT
dynamic relocations for protected symbols in shared objects.

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

12 years ago * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
Roland McGrath [Wed, 14 Mar 2012 19:32:11 +0000 (19:32 +0000)]
* elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
to the full size, padding out with nop instructions.

12 years ago2012-03-14 Kai Tietz <ktietz@redhat.com>
Kai Tietz [Wed, 14 Mar 2012 19:00:03 +0000 (19:00 +0000)]
2012-03-14  Kai Tietz  <ktietz@redhat.com>
    Pascal Obry  <pascal@obry.net>

* pe-dll.c (found_sym): New static variable.
(undef_count): Likewise.
(key_value): New structure.
(undef_sort_cmp): Compare routine for qsort/bsearch.
(pe_find_cdecl_alias_match): Add new argument.
(pe_undef_alias_cdecl_match): Removed.
(pe_undef_count): New helper routine.
(pe_create_undef_table): Likewise.
(pe_process_import_defs): Use pe_create_undef_table and
new pe_undef_alias_cdecl_match function.

12 years agoReplace @defn with @dfn
H.J. Lu [Wed, 14 Mar 2012 17:51:16 +0000 (17:51 +0000)]
Replace @defn with @dfn

2012-03-14  Ryan Mansfield  <rmansfield@qnx.com>

* doc/as.texinfo (Bundle directives): Replace @defn with @dfn.

12 years agoAdd a testcase for PR ld/13839
H.J. Lu [Wed, 14 Mar 2012 15:56:13 +0000 (15:56 +0000)]
Add a testcase for PR ld/13839

2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13839
* ld-elf/pr13839.d: New.
* ld-elf/pr13839.s: Likewise.
* ld-elf/pr13839.t: Likewise.

12 years agogdb/
Jan Kratochvil [Wed, 14 Mar 2012 07:58:06 +0000 (07:58 +0000)]
gdb/
Fix double prompt of 'interpreter-exec mi'.
* mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
(mi_interpreter_resume): use it.
(mi_execute_command_input_handler): New function.
* mi/mi-main.c (mi_execute_command): Move prompt printing to
mi_execute_command_input_handler.

gdb/testsuite/
* gdb.mi/mi2-prompt.exp: New file.

12 years ago PR ld/13839
Alan Modra [Wed, 14 Mar 2012 05:24:02 +0000 (05:24 +0000)]
PR ld/13839
* ldexp.c (fold_name): Ignore undefined symbols when assigning to
dot in mark phase.
(exp_fold_tree_1): Evaluate assignment to dot expressions even when
discarding result, for side effects.  Fix typo in error message.

12 years agosim: ppc: fix compilation on AIX 7.1 due to st_pad name collisions
Mike Frysinger [Wed, 14 Mar 2012 05:04:18 +0000 (05:04 +0000)]
sim: ppc: fix compilation on AIX 7.1 due to st_pad name collisions

AIX 7.1 defines st_pad[123] to st_[amc]tim.tv_pad, respectively,
breaking declaration of st_pad[123] members in struct solaris_stat.
Undefine them as this is no less terrible than other solutions (like
renaming the fields and losing the binding to Solaris' names).

From: Michael Haubenwallner <haubi@s01en24.gentoo.org>

12 years agoMark latest entry in ChangeLog as "tiny change".
Joel Brobecker [Wed, 14 Mar 2012 01:47:45 +0000 (01:47 +0000)]
Mark latest entry in ChangeLog as "tiny change".

12 years agoFix -Wmissing-prototypes build warnings on Darwin.
Joel Brobecker [Wed, 14 Mar 2012 01:46:59 +0000 (01:46 +0000)]
Fix -Wmissing-prototypes build warnings on Darwin.

gdb/
2012-03-13  Josh Matthews  <josh@joshmatthews.net>

* darwin-nat-info.c (_initialize_darwin_info_commands): Add
prototype.
(darwin_debug_port_info): Make static.
* darwin-nat.c (_initialize_darwin_inferior): Add prototype.
* machoread.c (_initialize_machoread): Add prototype.
* i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
(i386_darwin_set_control, i386_darwin_get_control)
i386_darwin_dr_set_addr, i386_darwin_get_addr)
i386_darwin_get_status, i386_darwin_get_control):
Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.

12 years agoTestcase for: "ax-gdb: Do not treat enums and bools as integers".
Joel Brobecker [Wed, 14 Mar 2012 01:39:12 +0000 (01:39 +0000)]
Testcase for: "ax-gdb: Do not treat enums and bools as integers".

gdb/testsuite/ChangeLog:

        * gdb.base/enum_cond.c, gdb.base/enum_cond.exp: New testcase.

12 years agoax-gdb: Do not treat enums and bools as integers.
Joel Brobecker [Wed, 14 Mar 2012 01:38:58 +0000 (01:38 +0000)]
ax-gdb: Do not treat enums and bools as integers.

This patch fixes a problem when using gdb + gdbserver, and trying
to break on a function when one of the (enum) parameters is equal
to a certain value, and the size of that enum is 1 byte.

    (gdb) break mixed.adb:15 if light = green
    Breakpoint 2 at 0x402d5a: file mixed.adb, line 15.
    (gdb) cont
    Continuing.
    [Inferior 1 (process 9742) exited normally]

The debugger should have stopped once when our function was call
with light set to green.

Here is what happens: Because we're using a recent GDBserver,
GDB hands off the evaluation of the condition to GDBserver, by
providing it in the Z0 packet. This is what GDB sends:

    $Z0,402d5a,1;X13,26000622100223ff1c16100219162022011327#cf

I decoded the condition as follow:

    260006    reg 6 -> push
    2210      const8 0x10 -> push
    02        add (stack now has 1 element equal to reg6 + 16)
    23ff1c    const16 0xff1c
    1610      ext 16 (sign extend 16 bits)
    02        add (stack now has 1 element equal to reg6 + 16 - 228)
    19        ref32: Pop as addr, push 32bit value at addr.
    1620      ext 32 (sign extend 32 bits)
    2201      const8 0x01
    13        equal
    27        end

The beginning of the agent expression can be explained by the address
of symbol "light":

    (gdb) info addr light
    Symbol "light" is a variable at frame base reg $rbp offset 16+-228.

However, the mistake is the "ext 32" operation (extend 32 bits),
because our variable is *not* 32bits, only 8:

    (gdb) print light'size
    $5 = 8

But the reason why GDB decides to use a 32bit extension is because
it overrides the symbol's type with a plain integer type in
ax-gdb.c:gen_usual_unary...

      /* If the value is an enum or a bool, call it an integer.  */
    case TYPE_CODE_ENUM:
    case TYPE_CODE_BOOL:
      value->type = builtin_type (exp->gdbarch)->builtin_int;
      break;

... before calling require_rvalue. And of course, that causes the
generator to generate a sizeof(int) extension of the result.

One way to fix this would be to use an integer type of the correct
size, but I do not understand why this is necessary. The two routines
that use that information to generate the opcode down the line are
gen_fetch (for a memory value), or gen_extend (for a register value).
And they both have handling of enums and bools.

So the fix we elected to implement was simply to remove that code.

gdb/ChangeLog:

        * ax-gdb.c (gen_usual_unary): Remove special handling of
        enum and bool types.

12 years agotestcase for "gdb-ax.c: Add handling of TYPE_CODE_RANGE types"
Joel Brobecker [Wed, 14 Mar 2012 01:38:51 +0000 (01:38 +0000)]
testcase for "gdb-ax.c: Add handling of TYPE_CODE_RANGE types"

gdb/testsuite/ChangeLog:

        * gdb.ada/bp_range_type: New testcase.

12 years agoax-gdb.c: Add handling of TYPE_CODE_RANGE types.
Joel Brobecker [Wed, 14 Mar 2012 01:38:30 +0000 (01:38 +0000)]
ax-gdb.c: Add handling of TYPE_CODE_RANGE types.

This patch fixes an error that occurs with GDB + GDBserver when
trying to insert a breakpoint with a condition that involves
a range type. For instance:

    type INT_T  is range 0 .. 1000;
    INT_VAR : INT_T := 12;

And then trying to insert the breakpoint:

    (gdb) break foo.adb:18 if int_var > 15
    Breakpoint 1 at 0x4021eb: file foo.adb, line 18.
    (gdb) cont
    Continuing.
    /[...]/ax-gdb.c:560: internal-error: gen_fetch: bad type code
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n)

This patch fixes the problem by adding handling for range types
in gen_fetch.

gdb/ChangeLog:

        * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.

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

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

12 years agoMinor cleanup in aix-thread.c:supply_fprs.
Joel Brobecker [Tue, 13 Mar 2012 22:29:45 +0000 (22:29 +0000)]
Minor cleanup in aix-thread.c:supply_fprs.

This is a minor cleanup that makes supply_fprs more consistent with
how fill_fprs was written.

gdb/ChangeLog:

        * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.

12 years agoFix buffer overflow in aix-thread.c:fill_fprs
Joel Brobecker [Tue, 13 Mar 2012 22:27:12 +0000 (22:27 +0000)]
Fix buffer overflow in aix-thread.c:fill_fprs

gdb/
2012-03-08  Chris January  <chris.january@allinea.com>

* aix-thread.c (fill_sprs): Store the floating point registers
at the correct offsets into vals.

12 years ago * NEWS: Mention symbol-reloading has been deleted.
Doug Evans [Tue, 13 Mar 2012 21:02:40 +0000 (21:02 +0000)]
* NEWS: Mention symbol-reloading has been deleted.
* symfile.c (symbol_reloading): Delete.
(show_symbol_reloading): Delete.
(_initialize_symfile): Delete set/show symbol-reloading.

doc/
* gdb.texinfo (Help): Change apropos example to use "alias" instead
of "reload".
(Symbols): Delete docs for set/show symbol-reloading.
* gdbint.texinfo (Defining Other Architecture Features): Delete
SYMBOL_RELOADING_DEFAULT.
* refcard.tex: Delete reference to symbol-reloading.

testsuite/
* gdb.base/default.exp: Delete tests for symbol-reloading.
* gdb.base/help.exp: Ditto.
* gdb.base/setshow.exp: Ditto.
* gdb.base/gdb_history: Delete references to symbol-reloading.

12 years ago * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
Doug Evans [Tue, 13 Mar 2012 17:16:18 +0000 (17:16 +0000)]
* dwarf2read.c (load_partial_comp_unit): Defer adding cu to
read_in_chain until we have successfully read it in.
(load_full_comp_unit): Ditto.
(read_signatured_type): Add comment.

12 years agoFix up last commit.
Roland McGrath [Tue, 13 Mar 2012 17:01:34 +0000 (17:01 +0000)]
Fix up last commit.

12 years agogas/
Roland McGrath [Tue, 13 Mar 2012 16:59:57 +0000 (16:59 +0000)]
gas/
2012-03-12  Roland McGrath  <mcgrathr@google.com>

* config/tc-arm.c (arm_frag_max_var): New function.
* config/tc-arm.h: Declare it.
(md_frag_max_var): New macro.

* config/tc-i386.c (i386_frag_max_var): New function.
* config/tc-i386.h: Declare it.
(md_frag_max_var): New macro.

* doc/as.texinfo (Bundle directives): New node.
(Pseudo Ops): Add it to the menu.
* NEWS: Mention new feature.
* read.c [md_frag_max_var] (HANDLE_BUNDLE): New macro.
[HANDLE_BUNDLE] (bundle_align_p2): New variable.
[HANDLE_BUNDLE] (bundle_lock_frchain, bundle_lock_frag): New variables.
[HANDLE_BUNDLE] (start_bundle, pending_bundle_size, finish_bundle):
New functions.
(assemble_one): New function if [HANDLE_BUNDLE], #define directly
to md_assembly if not.
(read_a_source_file): Call assemble_one in place of md_assemble.
(read_a_source_file) [HANDLE_BUNDLE]: Check for unterminated
.bundle_lock at end of processing.
[HANDLE_BUNDLE] (s_bundle_align_mode, s_bundle_lock, s_bundle_unlock):
New functions.
[HANDLE_BUNDLE] (potable): Add their entries.
* read.h: Declare new functions.

gas/testsuite/
2012-03-12  Roland McGrath  <mcgrathr@google.com>

* gas/i386/bundle-bad.s: New file.
* gas/i386/bundle-bad.d: New file.
* gas/i386/bundle-bad.l: New file.
* gas/i386/i386.exp: Run it.

* gas/arm/bundle.s: New file.
* gas/arm/bundle.d: New file.
* gas/arm/bundle-lock.s: New file.
* gas/arm/bundle-lock.d: New file.

* gas/i386/bundle.s: New file.
* gas/i386/bundle.d: New file.
* gas/i386/x86-64-bundle.s: New file.
* gas/i386/x86-64-bundle.d: New file.
* gas/i386/bundle-lock.s: New file.
* gas/i386/bundle-lock.d: New file.
* gas/i386/i386.exp: Run them.

12 years ago[stabs] The address of Fortran common blocks may be > INT_MAX.
Joel Brobecker [Tue, 13 Mar 2012 16:29:16 +0000 (16:29 +0000)]
[stabs] The address of Fortran common blocks may be > INT_MAX.

gdb/
2012-03-08  Chris January  <chris.january@allinea.com>

        * stabsread.c (fix_common_block): Change type of valu argument
        to CORE_ADDR.

12 years ago[ppc/prologue] Support the "oril r29, r1, 0x0" insn.
Joel Brobecker [Tue, 13 Mar 2012 16:15:35 +0000 (16:15 +0000)]
[ppc/prologue] Support the "oril r29, r1, 0x0" insn.

gdb/
2012-03-13  Chris January  <chris.january@allinea.com>

* rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
instruction.

12 years ago * resolve.cc (Symbol_table::resolve): When merging common symbols,
Ian Lance Taylor [Tue, 13 Mar 2012 16:08:53 +0000 (16:08 +0000)]
* resolve.cc (Symbol_table::resolve): When merging common symbols,
keep the larger alignment.

12 years agogdb/
Jan Kratochvil [Tue, 13 Mar 2012 15:02:25 +0000 (15:02 +0000)]
gdb/
* common/linux-procfs.c (linux_proc_get_int): New, from
linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
field.
(linux_proc_get_tgid): Only call linux_proc_get_int.
(linux_proc_get_tracerpid): New.
(linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
(linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
linux_proc_pid_has_state.
* common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
* common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
(linux_ptrace_attach_warnings): New.
* common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
New declaration.
* linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
(linux_nat_attach): New variables ex, buffer, message and message_s.
Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.

gdb/gdbserver/
* linux-low.c (linux_attach_lwp_1): New variable buffer.  Call
linux_ptrace_attach_warnings.

gdb/testsuite/
* gdb.base/attach-twice.c: New files.
* gdb.base/attach-twice.exp: New files.

12 years agogdb/
Jan Kratochvil [Tue, 13 Mar 2012 15:00:37 +0000 (15:00 +0000)]
gdb/
* Makefile.in (linux-ptrace.o): New.
* common/linux-procfs.c (linux_proc_pid_is_zombie): New,
from linux-nat.c.
* common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
* common/linux-ptrace.c: New file.
* config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
* config/arm/linux.mh: Likewise.
* config/i386/linux.mh: Likewise.
* config/i386/linux64.mh: Likewise.
* config/ia64/linux.mh: Likewise.
* config/m32r/linux.mh: Likewise.
* config/m68k/linux.mh: Likewise.
* config/mips/linux.mh: Likewise.
* config/pa/linux.mh: Likewise.
* config/powerpc/linux.mh: Likewise.
* config/powerpc/ppc64-linux.mh: Likewise.
* config/powerpc/spu-linux.mh: Likewise.
* config/s390/s390.mh: Likewise.
* config/sparc/linux.mh: Likewise.
* config/sparc/linux64.mh: Likewise.
* config/xtensa/linux.mh: Likewise.
* linux-nat.c (linux_lwp_is_zombie): Remove, move it to
common/linux-procfs.c.
(wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.

gdb/gdbserver/
* Makefile.in (linux-ptrace.o): New.
* configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
(cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
(m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
(s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
(x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
of these targets.
* linux-low.c (linux_attach_lwp_1): Remove redundent else clause.

12 years ago2012-03-13 Hui Zhu <teawater@gmail.com>
Pedro Alves [Tue, 13 Mar 2012 13:30:42 +0000 (13:30 +0000)]
2012-03-13  Hui Zhu  <teawater@gmail.com>
    Pedro Alves  <palves@redhat.com>

* breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
CREATE_BREAKPOINT_FLAGS_INSERTED.
(create_breakpoint_sal, create_breakpoints_sal)
(base_breakpoint_create_breakpoints_sal)
(tracepoint_create_breakpoints_sal)
(strace_marker_create_breakpoints_sal): New flags parameter.  Pass
down.
(break_command_1, handle_gnu_v3_exceptions, trace_command)
(ftrace_command, strace_command): Adjust.
(create_tracepoint_from_upload): Pass
CREATE_BREAKPOINT_FLAGS_INSERTED.
* breakpoint.h (enum breakpoint_create_flags): New.
(create_breakpoint): New flags parameter.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
* python/py-breakpoint.c (bppy_init): Adjust.
* python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
* spu-tdep.c (spu_catch_start): Adjust.

12 years ago2012-03-13 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 13 Mar 2012 13:25:50 +0000 (13:25 +0000)]
2012-03-13  Pedro Alves  <palves@redhat.com>
    Hui Zhu  <teawater@gmail.com>
    Yao Qi  <yao@codesourcery.com>

* remote.c (struct remote_state): New field `starting_up'.
(remote_start_remote): Set and clear it.
(remote_can_download_tracepoint): If starting up, return false.

12 years ago * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't error
Alan Modra [Tue, 13 Mar 2012 06:04:37 +0000 (06:04 +0000)]
* elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't error
on zero size dynbss symbol.
* elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
* elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
* elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
* elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
* elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
* elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
* elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
* elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
* elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
* elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
* elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.

12 years agogdb:
Yao Qi [Tue, 13 Mar 2012 01:16:07 +0000 (01:16 +0000)]
gdb:

* inferior.h (struct inferior): Remove fields any_syscall_count,
syscalls_counts and total_syscalls_count.  Move them to new
struct catch_syscall_inferior_data in breakpoint.c.
* breakpoint.c: Call DEF_VEC_I(int).
(struct catch_syscall_inferior_data): New.
(get_catch_syscall_inferior_data): New.
(catch_syscall_inferior_data_cleanup): New.
(insert_catch_syscall): Update to access data in
struct catch_syscall_inferior_data.
(insert_catch_syscall): Likewise.
(remove_catch_syscall): Likewise.
(remove_catch_syscall): Likewise.
(is_syscall_catchpoint_enabled): Likewise.
(add_catch_command): Likewise.
(_initialize_breakpoint): Register cleanup.
* breakpoint.h: Removed DEF_VEC_I(int).
* dwarf2loc.c: Call DEF_VEC_I(int).
* mi/mi-main.c: Likewise.

12 years ago PR binutils/3807
Hans-Peter Nilsson [Tue, 13 Mar 2012 00:41:22 +0000 (00:41 +0000)]
PR binutils/3807
* binutils-all/objcopy.exp (localize-hidden-1): Correct xfailed
mips-targets.

12 years ago * dwarf_reader.cc (Sized_dwarf_line_info::process_one_opcode): Fix
Cary Coutant [Tue, 13 Mar 2012 00:25:58 +0000 (00:25 +0000)]
* dwarf_reader.cc (Sized_dwarf_line_info::process_one_opcode): Fix
handling of DW_LNE_define_file.

12 years agoelfcpp/
Cary Coutant [Tue, 13 Mar 2012 00:13:08 +0000 (00:13 +0000)]
elfcpp/

Update DWARF enums from ../include/dwarf2.h.
* dwarf.h (enum DW_TAG): Add new DWARF-4 tags.
(enum DW_FORM): Add new DWARF-4 and Fission extensions.
(enum DW_AT): New enum.
(enum DW_LINE_EXTENDED_OPS): Add new DWARF-4 opcode.
(enum DW_ENCODING): Add new DWARF-4 encoding.
(enum DW_OP): Add new DWARF-4 opcodes.
(enum DW_CHILDREN): New enum.
(enum DW_LANG): New enum.

gold/

* reduced_debug_output.cc
(Output_reduced_debug_info_section::get_die_end): Add new FORM
codes to switch.

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

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

12 years ago * inf-ptrace.c (inf_ptrace_post_attach): Make static.
Mark Kettenis [Mon, 12 Mar 2012 21:08:44 +0000 (21:08 +0000)]
    * inf-ptrace.c (inf_ptrace_post_attach): Make static.

12 years agoAdd missing prototypes for build in ppx-aix.
Joel Brobecker [Mon, 12 Mar 2012 15:57:19 +0000 (15:57 +0000)]
Add missing prototypes for build in ppx-aix.

gdb/ChangeLog:
2012-03-12  Chris January  <chris.january@allinea.com>

        * aix-thread.c (_initialize_aix_thread): Add prototype.
        * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
        * xcoffsolib.c (_initialize_xcoffsolib): Ditto.

12 years agoamd64bsd-nat.c: Move "amd64bsd-nat.h" include...
Joel Brobecker [Mon, 12 Mar 2012 15:21:19 +0000 (15:21 +0000)]
amd64bsd-nat.c: Move "amd64bsd-nat.h" include...

... after include of "amd64-nat.h".

gdb/ChangeLog:

        * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
        include of "amd64-nat.h".

12 years ago * buildsym.c (record_pending_block): Now static.
Tom Tromey [Mon, 12 Mar 2012 14:15:22 +0000 (14:15 +0000)]
* buildsym.c (record_pending_block): Now static.
* buildsym.h: (record_pending_block): Remove.

12 years ago2012-03-12 Andreas Tobler <andreast@fgznet.ch>
Andreas Tobler [Mon, 12 Mar 2012 05:27:21 +0000 (05:27 +0000)]
2012-03-12  Andreas Tobler  <andreast@fgznet.ch>

        * amd64bsd-nat.c: Include amd64bsd-nat.h.

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

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

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

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

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

12 years agoinclude/opcode/
Alan Modra [Fri, 9 Mar 2012 23:39:06 +0000 (23:39 +0000)]
include/opcode/
* ppc.h: Add PPC_OPCODE_ALTIVEC2, PPC_OPCODE_E6500, PPC_OPCODE_TMR.
opcodes/
* ppc-dis.c (ppc_opts): Add entries for "e5500" and "e6500".
* ppc-opc.c (insert_ls, TMR, ESYNC, XSYNCLE_MASK): New.
(PPCVEC2, PPCTMR, E6500): New short names.
(powerpc_opcodes): Add vabsdub, vabsduh, vabsduw, dni, mvidsplt,
mviwsplt, icblq., mftmr, mttmr, dcblq., miso, lvexbx, lvexhx,
lvexwx, stvexbx, stvexhx, stvexwx, lvepx, lvepxl, stvepx, stvepxl,
lvtrx, lvtrxl, lvtlx, lvtlxl, stvfrx, stvfrxl, stvflx, stvflxl,
lvswx, lvswxl, stvswx, stvswxl, lvsm mnemonics. Accept LS, ESYNC
optional operands on sync instruction for E6500 target.
bfd/
* archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
* bfd-in2.h: Regenerate.
* cpu-powerpc.c (bfd_powerpc_archs): Add entryies for
bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
gas/
* config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
(ppc_handle_align): Add termination nop opcode for e500mc family.
* doc/as.texinfo: Document options -me5500 and -me6500.
* doc/c-ppc.texi: Likewise.
gas/testsuite/
* gas/ppc/e500mc64_nop.s: New test case for e500mc family
termination nops.
* gas/ppc/e500mc64_nop.d: Likewise.
* gas/ppc/e5500_nop.s: Likewise.
* gas/ppc/e5500_nop.d: Likewise.
* gas/ppc/e6500_nop.s: Likewise.
* gas/ppc/e6500_nop.d: Likewise.
* gas/ppc/e6500.s: New.
* gas/ppc/e6500.d: Likewise.
* gas/ppc/ppc.exp: Run e6500, e500mc64_nop, e5500_nop, and e6500_nop.

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

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 20:31:34 +0000 (20:31 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Modify DJ Delorie license to include
        modification rights in clause as permitted by DJ Delorie.
        * COPYING.LIBGLOSS: Ditto.

12 years ago * dwarf2read.c (struct dwarf2_cu) <checked_producer,
Tom Tromey [Fri, 9 Mar 2012 20:17:32 +0000 (20:17 +0000)]
* dwarf2read.c (struct dwarf2_cu) <checked_producer,
producer_is_gxx_lt_4_6>: New fields.
(producer_is_gxx_lt_4_6): Use and update producer cache fields.

12 years ago * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
Tom Tromey [Fri, 9 Mar 2012 20:06:18 +0000 (20:06 +0000)]
* dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 19:38:10 +0000 (19:38 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Remove two unused licenses.

12 years agoRestore R_386_IRELATIVE and R_X86_64_IRELATIVE
H.J. Lu [Fri, 9 Mar 2012 16:28:38 +0000 (16:28 +0000)]
Restore R_386_IRELATIVE and R_X86_64_IRELATIVE

bfd/

2012-03-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13817
* bfd/elf32-i386.c (elf_i386_relocate_section): Restore
R_386_IRELATIVE.

* * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
R_X86_64_IRELATIVE.

ld/testsuite/

2012-03-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13817
* ld-i386/pr13302.d: Updated.
* ld-x86-64/pr13082-5b.d: Likewise.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.

12 years agoFix a couple of ChangeLog entries.
Joel Brobecker [Fri, 9 Mar 2012 13:44:51 +0000 (13:44 +0000)]
Fix a couple of ChangeLog entries.

12 years ago * lib/gdb.exp (gdb_get_line_number): Throw an
Keith Seitz [Fri, 9 Mar 2012 04:38:53 +0000 (04:38 +0000)]
* lib/gdb.exp (gdb_get_line_number): Throw an
error instead of returning -1.
* gdb.base/break.exp: Remove unused variable
bp_location5.
* gdb.base/hbreak2.exp: Likewise.
* gdb.base/sepdebug.exp: Likewise.

12 years ago2012-03-08 Yao Qi <yao@codesourcery.com>
Yao Qi [Fri, 9 Mar 2012 03:47:15 +0000 (03:47 +0000)]
2012-03-08  Yao Qi  <yao@codesourcery.com>
    Pedro Alves  <palves@redhat.com>

Fix PR server/13392.
* linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
offset of JMP insn.
* tracepoint.c (remove_tracepoint): New.
(cmd_qtdp): Call remove_tracepoint when failed to install.

2012-03-08  Yao Qi  <yao@codesourcery.com>
    Pedro Alves  <palves@redhat.com>

Fix PR server/13392.
* gdb.trace/change-loc.exp (tracepoint_change_loc_1): Remove kfail.
(tracepoint_change_loc_2): Remove kfail.  Return if failed to
download tracepoints.
* gdb.trace/pending.exp (pending_tracepoint_works): Likewise.
(pending_tracepoint_resolved_during_trace): Likewise.
(pending_tracepoint_installed_during_trace): Likewise.
(pending_tracepoint_with_action_resolved): Likewise.

12 years agoAdd missing _initialize_ravenscar_sparc prototype.
Joel Brobecker [Fri, 9 Mar 2012 00:31:15 +0000 (00:31 +0000)]
Add missing _initialize_ravenscar_sparc prototype.

This is required now that we compile GDB with -Wmissing-prototype.

gdb/ChangeLog:

        * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
        prototype.

12 years agoAdd missing _initialize_ravenscar prototype.
Joel Brobecker [Fri, 9 Mar 2012 00:31:07 +0000 (00:31 +0000)]
Add missing _initialize_ravenscar prototype.

gdb/ChangeLog:

        * ravenscar-thread.c (_initialize_ravenscar): Add prototype.

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

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

12 years agogdb/
Jan Kratochvil [Thu, 8 Mar 2012 22:54:30 +0000 (22:54 +0000)]
gdb/
Fix -Wmissing-prototypes build.
* arm-linux-nat.c (get_thread_id): Make it static.
* xtensa-linux-nat.c (get_thread_id): Likewise.

12 years agoMake breakpoint condition detection trace conditional on remote_debug.
Joel Brobecker [Thu, 8 Mar 2012 22:19:56 +0000 (22:19 +0000)]
Make breakpoint condition detection trace conditional on remote_debug.

gdb/gdbserver/ChangeLog:

        * server.c (process_point_options): If a conditional expression
        is found, only print a message if remote_debug is nonzero.

12 years ago * gdb.ada/array_bounds.exp: Get breakpoint for line
Keith Seitz [Thu, 8 Mar 2012 22:19:48 +0000 (22:19 +0000)]
* gdb.ada/array_bounds.exp: Get breakpoint for line
with "START", not "STOP".
* gdb.python/py-infthread.exp: Do not continue to
line marked "Break here.", which is undefined.

12 years agoRevert "ax-gdb: Do not treat enums and bools as integers."
Joel Brobecker [Thu, 8 Mar 2012 22:19:09 +0000 (22:19 +0000)]
Revert "ax-gdb: Do not treat enums and bools as integers."

This patch was checked hasn't been reviewed and has been checked in
by mistake (wrong patch applied).

12 years ago2012-03-08 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Thu, 8 Mar 2012 21:09:17 +0000 (21:09 +0000)]
2012-03-08  Luis Machado  <lgustavo@codesourcery.com>

Revert:

2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>

Implement testsuite workaround for PR breakpoints/13781.
* gdb.cp/mb-templates.exp: New loop with variable $workaround.
(set breakpoint condition-evaluation host): New conditional command.

12 years ago2012-03-08 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Thu, 8 Mar 2012 21:07:25 +0000 (21:07 +0000)]
2012-03-08  Luis Machado  <lgustavo@codesourcery.com>

* ax-gdb.c (gen_fetch): Fail gracefully and use error instead
of internal error for unknown/unsupported types.

12 years agoax-gdb: Do not treat enums and bools as integers.
Joel Brobecker [Thu, 8 Mar 2012 20:54:36 +0000 (20:54 +0000)]
ax-gdb: Do not treat enums and bools as integers.

This patch fixes a problem when using gdb + gdbserver, and trying
to break on a function when one of the (enum) parameters is equal
to a certain value, and the size of that enum is 1 byte.

    (gdb) break mixed.adb:15 if light = green
    Breakpoint 2 at 0x402d5a: file mixed.adb, line 15.
    (gdb) cont
    Continuing.
    [Inferior 1 (process 9742) exited normally]

The debugger should have stopped once when our function was call
with light set to green.

Here is what happens: Because we're using a recent GDBserver,
GDB hands off the evaluation of the condition to GDBserver, by
providing it in the Z0 packet. This is what GDB sends:

    $Z0,402d5a,1;X13,26000622100223ff1c16100219162022011327#cf

I decoded the condition as follow:

    260006    reg 6 -> push
    2210      const8 0x10 -> push
    02        add (stack now has 1 element equal to reg6 + 16)
    23ff1c    const16 0xff1c
    1610      ext 16 (sign extend 16 bits)
    02        add (stack now has 1 element equal to reg6 + 16 - 228)
    19        ref32: Pop as addr, push 32bit value at addr.
    1620      ext 32 (sign extend 32 bits)
    2201      const8 0x01
    13        equal
    27        end

The beginning of the agent expression can be explained by the address
of symbol "light":

    (gdb) info addr light
    Symbol "light" is a variable at frame base reg $rbp offset 16+-228.

However, the mistake is the "ext 32" operation (extend 32 bits),
because our variable is *not* 32bits, only 8:

    (gdb) print light'size
    $5 = 8

But the reason why GDB decides to use a 32bit extension is because
it overrides the symbol's type with a plain integer type in
ax-gdb.c:gen_usual_unary...

      /* If the value is an enum or a bool, call it an integer.  */
    case TYPE_CODE_ENUM:
    case TYPE_CODE_BOOL:
      value->type = builtin_type (exp->gdbarch)->builtin_int;
      break;

... before calling require_rvalue. And of course, that causes the
generator to generate a sizeof(int) extension of the result.

One way to fix this would be to use an integer type of the correct
size, but I do not understand why this is necessary. The two routines
that use that information to generate the opcode down the line are
gen_fetch (for a memory value), or gen_extend (for a register value).
And they both have handling of enums and bools.

So the fix we elected to implement was simply to remove that code.

gdb/ChangeLog:

        * ax-gdb.c (gen_usual_unary): Remove special handling of
        enum and bool types.

12 years agogdb/
Jan Kratochvil [Thu, 8 Mar 2012 19:37:08 +0000 (19:37 +0000)]
gdb/
Fix CU relative vs. absolute DIE offsets.
* dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
offset to offset_in_cu.
* dwarf2read.c (process_enumeration_scope): Add CU offset to
TYPE_OFFSET.
(dwarf2_fetch_die_location_block): Rename parameter offset to
offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.

gdb/testsuite/
Fix CU relative vs. absolute DIE offsets.
* gdb.dwarf2/dw2-op-call.S: New compilation unit preceding the existing
one.

12 years agogdb/
Jan Kratochvil [Thu, 8 Mar 2012 19:08:11 +0000 (19:08 +0000)]
gdb/
* libunwind-frame.c: Rename to ...
* ia64-libunwind-tdep.c: ... here.
* libunwind-frame.h: Rename to ...
* ia64-libunwind-tdep.h: ... here.
* Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
ia64-libunwind-tdep.h.
(ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
* README (--with-libunwind): Rename to ...
(--with-libunwind-ia64): ... here, note it is ia64 specific now.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: New option --with-libunwind-ia64, make the
AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
Remove AC_DEFINE for HAVE_LIBUNWIND.
* ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
Rename libunwind-frame in the general comment.
* ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
Move forward declarations inside #ifndef.  Rename libunwind-frame in
the general comment.
* ia64-tdep.c: Rename libunwind-frame.h #include to
ia64-libunwind-tdep.h.
(ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
(ia64_libunwind_descr): Rename libunwind-frame to
ia64-libunwind-tdep in these function comments.
* ia64-tdep.h: Rename libunwind-frame.h #include to
ia64-libunwind-tdep.h.
* ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
ia64-libunwind-tdep in that data comment.

12 years agogdb/
Jan Kratochvil [Thu, 8 Mar 2012 18:13:37 +0000 (18:13 +0000)]
gdb/
* libunwind-frame.h (struct frame_unwind): New declaration.

12 years ago2012-03-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Thu, 8 Mar 2012 17:22:18 +0000 (17:22 +0000)]
2012-03-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-opc.txt: Set instruction type of pku to SS_L2RDRD.

2012-03-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/esa-g5.d: Move length field to the second operand.
* gas/s390/esa-g5.s: Likewise.

12 years agoFix thinko in help of "set breakpoint condition-evaluation".
Joel Brobecker [Thu, 8 Mar 2012 16:50:21 +0000 (16:50 +0000)]
Fix thinko in help of "set breakpoint condition-evaluation".

The 3 valid values for this setting are "auto", "host" and "target".
The help was advertising one of them to be "gdb" instead of "host".

gdb/ChangeLog:

        * breakpoint.c (_initialize_breakpoint): Fix error in help of
        "set breakpoint condition-evaluation" command.

12 years agogdb/
Tristan Gingold [Thu, 8 Mar 2012 14:43:24 +0000 (14:43 +0000)]
gdb/
2012-03-08  Tristan Gingold  <gingold@adacore.com>

* sparc-stub.c: Move to stubs/
* sh-stub.c: Likewise.
* m68k-stub.c: Likewise.
* m32r-stub.c: Likewise.
* i386-stub.c: Likewise.

gdb/stubs/
2012-03-08  Tristan Gingold  <gingold@adacore.com>

* sparc-stub.c: Move from ..
* sh-stub.c: Likewise.
* m68k-stub.c: Likewise.
* m32r-stub.c: Likewise.
* i386-stub.c: Likewise.

12 years ago2012-03-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 8 Mar 2012 14:25:29 +0000 (14:25 +0000)]
2012-03-08  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
keylen according to archive kind.  Set nextvbn and nextrfa lhd
fields.  Add comments.

12 years ago2012-03-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 8 Mar 2012 14:14:52 +0000 (14:14 +0000)]
2012-03-08  Tristan Gingold  <gingold@adacore.com>

* lbr.h (struct vms_lhd): Add comments.

12 years ago2012-03-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 8 Mar 2012 13:53:03 +0000 (13:53 +0000)]
2012-03-08  Tristan Gingold  <gingold@adacore.com>

        * ldexp.c (exp_print_tree): Special case for SEGMENT_START.
        (exp_print_token): Constify.

12 years ago* m68klinux-tdep.c (m68k_linux_init_abi): Register
Andreas Schwab [Thu, 8 Mar 2012 13:37:26 +0000 (13:37 +0000)]
* m68klinux-tdep.c (m68k_linux_init_abi): Register
linux_get_siginfo_type.

12 years ago* m68klinux-nat.c: Include "gdb_proc_service.h".
Andreas Schwab [Thu, 8 Mar 2012 13:35:41 +0000 (13:35 +0000)]
* m68klinux-nat.c: Include "gdb_proc_service.h".
(PTRACE_GET_THREAD_AREA): Define.
(ps_get_thread_area): New function.

12 years agogdb/
Yao Qi [Thu, 8 Mar 2012 12:49:15 +0000 (12:49 +0000)]
gdb/
* remote.c (remote_get_noisy_reply): Replace `sprintf' with
`xsnprintf'.
(remote_query_attached): Likewise.
(remote_static_tracepoint_marker_at): Likewise.
(remote_set_permissions): Likewise.
(remote_detach_1, extended_remote_attach_1): Likewise.
(send_g_packet, remote_vkill): Likewise.
(extended_remote_disable_randomization): Likewise.
(remote_add_target_side_condition): Likewise.
(remote_insert_breakpoint): Likewise.
(remote_remove_breakpoint): Likewise.
(remote_insert_watchpoint): Likewise.
(remote_remove_watchpoint): Likewise.
(remote_insert_hw_breakpoint): Likewise.
(remote_insert_hw_breakpoint): Likewise.
(remote_remove_hw_breakpoint): Likewise.
(remote_download_command_source): Likewise.
(remote_download_tracepoint): Likewise.
(remote_download_trace_state_variable): Likewise.
(remote_disable_tracepoint): Likewise.
(remote_trace_set_readonly_regions): Likewise.
(remote_get_tracepoint_status): Likewise.
(remote_trace_find): Likewise.
(remote_get_trace_state_variable_value): Likewise.
(remote_set_disconnected_tracing): Likewise.
(remote_set_circular_trace_buffer): Likewise.
(remote_get_min_fast_tracepoint_insn_len): Likewise.
(remote_use_agent): Likewise.
(remote_add_target_side_condition): Add one parameter BUF_SIZE.
Update callers.

12 years agogdb/testsuite/
Jan Kratochvil [Thu, 8 Mar 2012 07:42:51 +0000 (07:42 +0000)]
gdb/testsuite/
Fix false FAIL on distros with relro linkage as default.
* gdb.reverse/solib-precsave.exp: Try to compile the test using
-Wl,-z,norelro first.

12 years ago PR ld/10340
Alan Modra [Thu, 8 Mar 2012 05:29:33 +0000 (05:29 +0000)]
PR ld/10340
* ldfile.c (is_sysrooted_pathname): Remove notsame param.
(ldfile_add_library_path): Don't set sysrooted flag.
(ldfile_open_file_search): Likewise, and don't copy them.
(try_open): Delete exten and code handling such.  Add sysrooted
param and return whether path is in sysroot.
(ldfile_find_command_file): Delete extend param.  Add sysrooted
param.  Rename local var.  Update try_open calls.
(ldfile_open_command_file_1): Pass sysrooted to lex_push_file.
* ldfile.h (search_dirs_type): Remove sysrooted field.
* ldlang.c (new_afile): Always set sysrooted from input_flags.
(load_symbols): Don't set input_flags.sysrooted.
* ldlang.h (struct lang_input_statement_flags): Revise sysrooted
comment.
* ldlex.h (lex_push_file): Update prototype.
* ldlex.l (sysrooted_stack): New array.
(EOF): Pop input_flags.sysrooted.
(lex_push_file): Add sysrooted param.  Save and set
input_flags.sysrooted.