binutils-gdb.git
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.

12 years agomerge from gcc
DJ Delorie [Thu, 8 Mar 2012 00:01:31 +0000 (00:01 +0000)]
merge from gcc

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

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

12 years ago2012-03-07 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 7 Mar 2012 19:25:39 +0000 (19:25 +0000)]
2012-03-07  Pedro Alves  <palves@redhat.com>

gdb/doc/
* gdb.texinfo (General Query Packets): Document new
QProgramSignals packet.
* gdb.texinfo (Remote configuration): Mention
"program-signals-packet".

gdb/gdbserver/
* linux-low.c (get_detach_signal): New.
(linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
Pass on pending signals to PTRACE_DETACH.  Check the result of the
ptrace call.
* server.c (program_signals, program_signals_p): New.
(handle_general_set): Handle QProgramSignals.
* server.h (program_signals, program_signals_p): Declare.

gdb/
* NEWS: Mention QProgramSignals.
* inferior.h (update_signals_program_target): Declare.
* infrun.c: (update_signals_program_target): New.
(handle_command): Update the target of the new program signals
array changes.
* remote.c (PACKET_QProgramSignals): New enum.
(last_program_signals_packet): New global.
(remote_program_signals): New.
(remote_start_remote): Update the target with the program signals
list.
(remote_protocol_features): Add entry for QPassSignals.
(remote_open_1): Free anc clear last_program_signals_packet.
(init_remote_ops): Install remote_program_signals.
* target.c (update_current_target): Adjust.
(target_program_signals): New.
* target.h (struct target_ops) <to_program_signals>: New field.
(target_program_signals): Declare.

12 years ago2012-03-07 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 7 Mar 2012 19:17:36 +0000 (19:17 +0000)]
2012-03-07  Pedro Alves  <palves@redhat.com>

* NEWS: Add subtitle for new z0/z1 conditional breakpoint
extensions.

12 years ago * mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
Nick Clifton [Wed, 7 Mar 2012 17:52:00 +0000 (17:52 +0000)]
* mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF and R_MN10300_TLS_TPOFF.

* elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
field.
(elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
(elf_mn10300_tdata): Define.
(elf_mn10300_local_got_tls_type): Define.
(elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
(mn10300_reloc_map): Likewise.
(elf_mn10300_tls_transition): New function.
(dtpoff, tpoff, mn10300_do_tls_transition): New functions.
(mn10300_elf_check_relocs): Add TLS support.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Likewise.
(mn10300_elf_relax_section): Likewise.
(elf32_mn10300_link_hash_newfunc): Initialise new field.
(_bfd_mn10300_copy_indirect_symbol): New function.
(elf32_mn10300_link_hash_table_create): Initialise new fields.
(_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_reloc_type_class): Allocate an
elf_mn10300_obj_tdata structure.
(elf_backend_copy_indirect_symbol): Define.
* reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
(BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
alongside other MN10300 relocations.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

* config/tc-mn10300.c (other_registers): Add SSP and USP.
(md_assemble): Add support for TLS relocs.
(mn10300_parse_name): Likewise.

* readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.

12 years ago* m68klinux-nat.c (getregs_supplies): Make static.
Andreas Schwab [Wed, 7 Mar 2012 16:34:39 +0000 (16:34 +0000)]
* m68klinux-nat.c (getregs_supplies): Make static.
(getfpregs_supplies): Likewise.
(have_ptrace_getregs): Likewise.

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

12 years agoPass absolute die offset in call to get_die_type_at_offset
Joel Brobecker [Tue, 6 Mar 2012 23:41:50 +0000 (23:41 +0000)]
Pass absolute die offset in call to get_die_type_at_offset

gdb/ChangeLog:

        * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
        in call to get_die_type_at_offset.

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

12 years ago * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
Stan Shebs [Tue, 6 Mar 2012 22:48:53 +0000 (22:48 +0000)]
* mi/mi-cmd-break.c: Enforce coding standards, fix comments.
* mi/mi-cmd-disas.c: Ditto.
* mi/mi-cmd-env.c: Ditto.
* mi/mi-cmd-file.c: Ditto.
* mi/mi-cmd-stack.c: Ditto.
* mi/mi-cmd-target.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-cmds.h: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-getopt.c: Ditto.
* mi/mi-getopt.h: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
* mi/mi-out.c: Ditto.
* mi/mi-parse.c: Ditto.
* mi/mi-parse.h: Ditto.
* mi/mi-symbol-cmds.c: Ditto.

* mi/mi-getopt.h: Move mi_opt struct up.
* mi/mi-main.c (captured_mi_execute_command): Remove redundant
return.
* mi/mi-out.c (_initialize_mi_out): Remove empty initialize.

12 years ago * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
Jakub Jelinek [Tue, 6 Mar 2012 20:15:56 +0000 (20:15 +0000)]
* elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
set relocate to TRUE.

12 years ago * proc-service.c (ps_pglobal_lookup): Set the current program
Tom Tromey [Tue, 6 Mar 2012 19:51:10 +0000 (19:51 +0000)]
* proc-service.c (ps_pglobal_lookup): Set the current program
space.

12 years agoNew Ada testcase (bp_on_var.exp).
Joel Brobecker [Tue, 6 Mar 2012 17:33:32 +0000 (17:33 +0000)]
New Ada testcase (bp_on_var.exp).

gdb/testsuite/ChangeLog:

* gdb.ada/bp_on_var: New testcase.

12 years ago2012-03-06 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 6 Mar 2012 17:17:16 +0000 (17:17 +0000)]
2012-03-06  Pedro Alves  <palves@redhat.com>

* gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.

12 years agoNew Ada testcase (bp_enum_homonym).
Joel Brobecker [Tue, 6 Mar 2012 17:04:59 +0000 (17:04 +0000)]
New Ada testcase (bp_enum_homonym).

gdb/testsuite/ChangeLog:

        * gdb.ada/bp_enum_homonym: New testcase.

12 years ago2012-03-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 6 Mar 2012 13:54:59 +0000 (13:54 +0000)]
2012-03-06  Tristan Gingold  <gingold@adacore.com>

* corefile.c (core_create_function_syms): Do not call bsearch if
symbol_map_count is 0.

12 years agogdb/testsuite/
Yao Qi [Tue, 6 Mar 2012 01:30:18 +0000 (01:30 +0000)]
gdb/testsuite/
* gdb.trace/ftrace.exp (test_fast_tracepoints): Run test on target
x86_64-*-* and i?86-*-*.
Set up KFAIL for gdb/13808.

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

12 years agoAdd Maciej W. Rozycki as mips maintainer.
Joel Brobecker [Mon, 5 Mar 2012 23:21:36 +0000 (23:21 +0000)]
Add Maciej W. Rozycki as mips maintainer.

gdb/ChangeLog:

        * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.

12 years ago PR ld/13683
Alan Modra [Mon, 5 Mar 2012 23:09:10 +0000 (23:09 +0000)]
PR ld/13683
* ld-gc/pr13683.d: Allow non-zero top address digit.