platform/upstream/binutils.git
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.

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

12 years ago * ldlang.h (struct lang_input_statement_flags): New, extract from..
Alan Modra [Mon, 5 Mar 2012 22:43:40 +0000 (22:43 +0000)]
* ldlang.h (struct lang_input_statement_flags): New, extract from..
(lang_input_statement_type): ..here.  New field "flags".
(input_flags): Declare.
(missing_file): Delete.
* ldmain.h (whole_archive): Delete.
(add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
* ld.h (ld_config_type <dynamic_link>): Delete.
* ldmain.c (whole_archive): Delete.
(add_DT_NEEDED_for_regular, add_DT_NEEDED_for_dynamic): Delete.
* ldlang.c (missing_file, ldlang_sysrooted_script): Delete.
(input_flags): New variable.  Replace all uses of config.dynamic_link,
missing_file, ldlang_sysrooted_script, whole_archive,
add_DT_NEEDED_for_regular and add_DT_NEEDED_for_dynamic with fields
from here.
* ldfile.c: Likewise.
* ldgram.y: Likewise.
* ldmain.c: Likewise.
* ldwrite.c: Likewise.
* lexsup.c: Likewise.
* plugin.c: Likewise.
* emultempl/aix.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/hppaelf.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/scoreelf.em: Likewise.
* emultempl/spuelf.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/vms.em: Likewise.
* ldlang.c (new_afile): Use memset to init zero fields.
(load_symbols): Simplify save and restore of flags around command
file processing.
* ldfile.c (is_sysrooted_pathname): Tidy.

12 years ago * gdb.ada/operator_bp.exp: Clear debug-file-directory.
Tom Tromey [Mon, 5 Mar 2012 21:21:13 +0000 (21:21 +0000)]
* gdb.ada/operator_bp.exp: Clear debug-file-directory.
* gdb.ada/mi_task_arg.exp: Clear debug-file-directory.

12 years agogdb/
Jan Kratochvil [Mon, 5 Mar 2012 21:07:46 +0000 (21:07 +0000)]
gdb/
Code cleanup.
* common/linux-osdata.c (linux_common_core_of_thread): New function
comment.
* linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
call by linux_common_core_of_thread.
(linux_nat_core_of_thread_1): Remove.
* linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
* linux-thread-db.c: Include linux-osdata.h.
(update_thread_core): Replace linux_nat_core_of_thread_1 call by
linux_common_core_of_thread.

12 years ago * value.c (value_primitive_field): Don't fetch contents for
Tom Tromey [Mon, 5 Mar 2012 20:53:15 +0000 (20:53 +0000)]
* value.c (value_primitive_field): Don't fetch contents for
non-virtual bases.

12 years ago * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
Tom Tromey [Mon, 5 Mar 2012 19:38:17 +0000 (19:38 +0000)]
* jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
gdb/testsuite
* gdb.java/jprint.java (jprint.main): Keep 'x' live.

12 years agoInclude "gregset.h" in s390-nat.c (-Wmissing-prototypes).
Joel Brobecker [Mon, 5 Mar 2012 19:05:09 +0000 (19:05 +0000)]
Include "gregset.h" in s390-nat.c (-Wmissing-prototypes).

gdb/ChangeLog:

        * s390-nat.c: Include "gregset.h".

12 years ago PR ld/13803
Hans-Peter Nilsson [Mon, 5 Mar 2012 17:21:42 +0000 (17:21 +0000)]
PR ld/13803
* ld-arm/fix-arm1176-off.d, ld-arm/fix-arm1176-on.d: Regexpify
address of func_to_branch_to.

12 years agogdb/
Jan Kratochvil [Mon, 5 Mar 2012 17:11:48 +0000 (17:11 +0000)]
gdb/
* libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
[!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
(libunwind_load): New variable so_error, use it for dlerror.  Try to
load also LIBUNWIND_SO_7.

12 years agogdb/gdbserver/
Jan Kratochvil [Mon, 5 Mar 2012 17:09:37 +0000 (17:09 +0000)]
gdb/gdbserver/
* linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
New comment why.

12 years ago2012-03-05 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 5 Mar 2012 16:17:52 +0000 (16:17 +0000)]
2012-03-05  Pedro Alves  <palves@redhat.com>

* i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
is not NULL, and remove resulting dead code.

12 years ago PR ld/12152
Rainer Orth [Mon, 5 Mar 2012 16:02:19 +0000 (16:02 +0000)]
PR ld/12152
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
overflows for R_SPARC_UA32 in .stab sections.

12 years ago * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
Thomas Schwinge [Mon, 5 Mar 2012 15:16:39 +0000 (15:16 +0000)]
* sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
prologue to sh_analyze_prologue.
(sh_analyze_prologue): Make better use of such an upper limit, and
generally be more cautious about accessing memory.

12 years ago * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
Tom Tromey [Mon, 5 Mar 2012 14:53:56 +0000 (14:53 +0000)]
* ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
_initialize_ia64_hpux_tdep.

12 years agoMention PR gdb/13766
Pedro Alves [Mon, 5 Mar 2012 14:24:03 +0000 (14:24 +0000)]
Mention PR gdb/13766

12 years ago2012-03-05 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 5 Mar 2012 14:21:46 +0000 (14:21 +0000)]
2012-03-05  Pedro Alves  <palves@redhat.com>

* i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
the register state is clear, supply explicit zero, instead of
marking the register unavailable.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:57:17 +0000 (11:57 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:46:35 +0000 (11:46 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* NEWS: Mention OpenVMS ia64 new target.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:44:19 +0000 (11:44 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* buildvms.com: New file.
* ia64vms-stub.c: New file.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:41:51 +0000 (11:41 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
(ia64_unw_accessors, ia64_unw_rse_accessors)
(ia64_libunwind_descr): Declare.
* ia64-vms-tdep.c: New file.
* ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
(ia64_libunwind_descr): Make them public.
* configure.tgt: Add ia64-*-*vms*.
* Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
(ALLDEPFILES): Add ia64-vms-tdep.c

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:37:33 +0000 (11:37 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
* remote.c (PACKET_qXfer_uib): New enum value.
(remote_protocol_features): Add entry for PACKET_qXfer_uib.
(remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
(_initialize_remote): Call add_packet_config_cmd for
xfer:uib packet.

doc/
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* gdb.texinfo (General Query Packets): Document xfer:uib:read.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:33:36 +0000 (11:33 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

        * osabi.c (gdb_osabi_names): Add OpenVMS.
        (generic_elf_osabi_sniffer): Likewise.
        * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.

12 years ago * configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
Hans-Peter Nilsson [Mon, 5 Mar 2012 04:02:20 +0000 (04:02 +0000)]
* configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
(mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
replacing trailing "-*" with "*".

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

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

12 years agosim: bfin: drop old linux/mii.h workarounds
Mike Frysinger [Sun, 4 Mar 2012 19:56:57 +0000 (19:56 +0000)]
sim: bfin: drop old linux/mii.h workarounds

We had some workarounds for old linux/mii.h headers, but it breaks with
newer ones.  So tweak the checks a bit to work with newer ones.  We'll
worry about older systems once someone complains.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agogdb/
Jan Kratochvil [Sun, 4 Mar 2012 19:22:47 +0000 (19:22 +0000)]
gdb/
Removed unused code.
* libunwind-frame.c (libunwind_frame_unwind)
(libunwind_frame_base_address): Remove.
* libunwind-frame.h (libunwind_frame_base_address): Remove declaration.

12 years agogdb/
Yao Qi [Sun, 4 Mar 2012 03:31:09 +0000 (03:31 +0000)]
gdb/
* common/agent.c (gdb_connect_sync_socket): Add _ markup and
remove trailing new line.
(agent_run_command, agent_run_command): Add _ markup.
(agent_capability_check): Likewise.

12 years agoFix indent of changelog entries.
Yao Qi [Sun, 4 Mar 2012 03:11:03 +0000 (03:11 +0000)]
Fix indent of changelog entries.

12 years agogdb/testsuite/
Yao Qi [Sun, 4 Mar 2012 02:36:38 +0000 (02:36 +0000)]
gdb/testsuite/
* gdb.base/disp-step-syscall.exp (disp_step_cross_syscall): Catch error
messages for KFAIL.

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

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

12 years agogdb/testsuite/
Jan Kratochvil [Sat, 3 Mar 2012 18:03:31 +0000 (18:03 +0000)]
gdb/testsuite/
* gdb.ada/arrayidx.exp: Call get_compiler_info.  New variable old_gcc.
(print one_two_three, indexes off, print few_reps, indexes off)
(print many_reps, indexes off, print empty, indexes off)
(print one_two_three, print few_reps, print many_reps, print empty):
Call setup_xfail if $gcc_old.

12 years agogdb/
Jan Kratochvil [Sat, 3 Mar 2012 14:21:04 +0000 (14:21 +0000)]
gdb/
* breakpoint.c (set_condition_evaluation_mode): Set
CONDITION_EVALUATION_MODE unconditionally.

gdb/testsuite/
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 agogdb/testsuite/
Jan Kratochvil [Sat, 3 Mar 2012 14:19:19 +0000 (14:19 +0000)]
gdb/testsuite/
Code cleanup.
* gdb.cp/mb-templates.exp: New variables executable.  Use it for
binfile.  use clean_restart.  Replace gdb_expect by gdb_test_multiple.
Replace GDB restart by kill and delete_breakpoints.  Replace breakpoint
number 1 by $bpnum.  Four times.

12 years agogdb:
Yao Qi [Sat, 3 Mar 2012 09:51:29 +0000 (09:51 +0000)]
gdb:
* common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
* common/agent.h: Update declaration.
* inf-child.c (inf_child_use_agent): New.
(inf_child_can_use_agent): New.
(inf_child_target): Initialize fields `to_use_agent'
and `to_can_use_agent'.
* agent.c (agent_new_objfile): New.
        (_initialize_agent): Add agent_new_objfile to new_objfile
observer.

* linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
New.
        (linux_target_install_ops): Initialize field
`to_static_tracepoint_markers_by_strid'.
* remote.c (free_current_marker): Move it to ...
* tracepoint.c (free_current_marker): ... here.  New.
(cleanup_target_stop): New.
* tracepoint.h: Declare free_current_marker.
* NEWS: Add one entry about `info static-tracepoint-marker'.

gdb/gdbserver:
* tracepoint.c (tracepoint_look_up_symbols): Update call to
agent_look_up_symbols.

gdb/testsuite:
* gdb.trace/strace.exp: run strace_info_marker in linux native gdb.

12 years agogdb/testsuite/
Jan Kratochvil [Sat, 3 Mar 2012 06:58:16 +0000 (06:58 +0000)]
gdb/testsuite/
Setup KFAIL for PR server/13796.
* gdb.base/disp-step-syscall.exp (single step over vfork): Setup KFAIL.

12 years agogdb:
Yao Qi [Sat, 3 Mar 2012 04:34:52 +0000 (04:34 +0000)]
gdb:
        * common/agent.c (agent_loaded_p): New.
        (agent_look_up_symbols): New global.
        * common/agent.h: Declare agent_loaded_p.

gdb/gdbserver:

        * Makefile.in (linux-low.o): Keep dependence on agent.h.
        (linux-x86-low.o): Likewise.
        * server.h: Remove in_process_agent_loaded.
        * tracepoint.c (in_process_agent_loaded): Removed.  Moved it
        common/agent.c.
        Update callers.

12 years agogdb:
Yao Qi [Sat, 3 Mar 2012 04:04:35 +0000 (04:04 +0000)]
gdb:
* common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
(agent_capability_check, agent_capability_invalidate): New.
(symbol_list): New array element.
* common/agent.h (enum agent_capa): New.
* target.c (target_pre_inferior): Call agent_capability_invalidate.

gdb/gdbserver:
* tracepoint.c (gdb_agent_capability): New global.
(in_process_agent_loaded_ust): Renamed to
`in_process_agent_supports_ust'.
Update callers.
(in_process_agent_supports_ust): Call agent_capability_check.
(clear_installed_tracepoints): Assert that agent supports
agent.

12 years agogdb:
Yao Qi [Sat, 3 Mar 2012 03:32:46 +0000 (03:32 +0000)]
gdb:
* target.h (struct target_ops) <to_use_agent>: New field.
(struct target_ops) <to_can_use_agent>: New field.
(target_use_agent, target_can_use_agent): New macro.
* target.c (update_current_target): Update.
* remote.c: New enum `PACKET_QAgent'.
(remote_protocol_features): Add a new element.
(remote_use_agent, remote_can_use_agent): New.
(init_remote_ops): Initialize field `can_use_agent' with
remote_can_use_agent.  Intiailize field `use_agent' with
remote_use_agent.
* common/agent.c (use_agent): New global.
* common/agent.h: Declare it.
* tracepoint.c (info_static_tracepoint_markers_command): Add
comment.
* Makefile.in (SFILES): Add common/agent.c and agent.c.
(COMMON_OBS): Add common/agent.o and agent.o
(common-agent.o): New rule.
* agent.c: New.

gdb/doc:
* gdb.texinfo (In-Process Agent): New node.
Document new commands.
(General Query Packets): Add packet `QAgent'.

gdb/gdbserver:
* linux-low.c (linux_supports_agent): New.
(linux_target_ops): Initialize field `supports_agent' with
linux_supports_agent.
* target.h (struct target_ops) <supports_agent>: New.
(target_supports_agent): New macro.
* server.c (handle_general_set): Handle packet 'QAgent'.
(handle_query): Send `QAgent+'.
* Makefile.in (server.o): Depends on agent.h.

12 years agogdb:
Yao Qi [Sat, 3 Mar 2012 03:08:36 +0000 (03:08 +0000)]
gdb:

* common/agent.c: New.
* common/agent.h: New.
* configure.ac: Add `sys/socket.h' and `sys/un.h' to
AC_CHECK_HEADERS.
* configure, configh.in: Regenerated.

gdb/gdbserver:

* Makefile.in (OBS): Add agent.o.
Add new rule for agent.o.
Track dependence of tracepoint.c on agent.h.
* tracepoint.c (run_inferior_command_1):
(run_inferior_command): Call agent_run_command.
(gdb_ust_connect_sync_socket): Deleted.  Move it to
common/agent.c.
(resume_thread, stop_thread): Likewise.
(gdb_ust_socket_init): Renamed to ...
(gdb_agent_socket_init): ... New.
(gdb_ust_thread): Renamed to ...
(gdb_agent_helper_thread): ... New.
(gdb_ust_init): Move some code to ...
(gdb_agent_init): ... here.  New.
[HAVE_UST]: Call gdb_ust_init.
(initialize_tracepoint_ftlib):  Call gdb_agent_init.
* configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
* config.in, configure: Regenerated.

12 years ago * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
Kevin Buettner [Sat, 3 Mar 2012 01:27:47 +0000 (01:27 +0000)]
* sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
unless it exists for this architecture.

12 years agoUpdate rx sim so that it'll print load statistics.
Kevin Buettner [Sat, 3 Mar 2012 01:23:45 +0000 (01:23 +0000)]
Update rx sim so that it'll print load statistics.

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

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

12 years agoNew Ada testcase for breakpoints on operators.
Joel Brobecker [Fri, 2 Mar 2012 20:36:41 +0000 (20:36 +0000)]
New Ada testcase for breakpoints on operators.

gdb/testsuite/ChangeLog:

        * gdb.ada/operator_bp: New testcase.

12 years agoTestcase: "info locals" with Ada renamings.
Joel Brobecker [Fri, 2 Mar 2012 19:31:53 +0000 (19:31 +0000)]
Testcase: "info locals" with Ada renamings.

gdb/testsuite/ChangeLog:

        * gdb.ada/info_locals_renaming: New testcase.

12 years ago * gdb.base/nextoverexit.c: New file.
Tom Tromey [Fri, 2 Mar 2012 19:29:57 +0000 (19:29 +0000)]
* gdb.base/nextoverexit.c: New file.
* gdb.base/nextoverexit.exp: New file.

12 years agolanguage-specific read_var_value for Ada renamings
Joel Brobecker [Fri, 2 Mar 2012 19:29:01 +0000 (19:29 +0000)]
language-specific read_var_value for Ada renamings

The purpose of this patch is to better support renamings in the
"info locals" command. Consider ...

    procedure Foo is
       GV : Integer renames Pck.Global_Variable;
    begin
       Increment (GV); -- STOP
    end Foo;

... Pck.Global_Variable is just an integer. After having stopped at
the "STOP" line, "info locals" yields:

    (gdb) info locals
    gv = <error reading variable gv (Cannot access memory at address 0xffffffffffffffff)>

In reality, two things are happening:

   (1) Variable "GV" does not exist, which is normal, since there is
       "GV" the renaming of another variable;

   (2) But to allow the user access to that renaming the same way
       the code has, the compiler produces an artificial variable
       whose name encodes the renaming:

        gv___XR_pck__global_variable___XE

       For practical reasons, the artificial variable itself is given
       irrelevant types and addresses.

But the "info locals" command does not act as if it was a short-cut
of "foreach VAR in locals, print VAR". Instead it gets the value of
each VAR directly, which does not work in this case, since the variable
is artificial and needs to be decoded first.

This patch makes the "read_var_value" routine language-specific.
The old implementation of "read_var_value" gets renamed to
"default_read_var_value" and all languages now use it (unchanged
behavior), except for Ada. In Ada, the new function ada_read_var_value
checks if we have a renaming, and if so, evaluates its value, or else
defers to default_read_var_value.

gdb/ChangeLog:

        * language.h (struct language_defn): New "method" la_read_var_value.
        * findvar.c: #include "language.h".
        (default_read_var_value): Renames read_var_value.  Rewrite
        function description.
        (read_var_value): New function.
        * value.h (default_read_var_value): Add prototype.
        * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
        New functions.
        (ada_language_defn): Add entry for la_read_var_value.
        * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
        * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
        language_defn structures to add entry for new la_read_var_value
        field.

12 years ago2012-03-02 Tom Tromey <tromey@redhat.com>
Pedro Alves [Fri, 2 Mar 2012 19:26:10 +0000 (19:26 +0000)]
2012-03-02  Tom Tromey  <tromey@redhat.com>
    Pedro Alves  <palves@redhat.com>

PR breakpoints/13776:
* breakpoint.c (breakpoint_init_inferior): Delete step-resume
breakpoints.
(delete_longjmp_breakpoint_at_next_stop): New.
* breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
* target.c (generic_mourn_inferior): Call mark_breakpoints_out
before deleting the inferior.  Add comments.
* thread.c (clear_thread_inferior_resources): Don't delete lonjmp
breakpoints immediately, but only on next stop.  Move that code
next to where we mark other breakpoints for deletion.

12 years agoFix ARI violations in mips-linux-nat.c and mips-tdep.c
Joel Brobecker [Fri, 2 Mar 2012 19:14:30 +0000 (19:14 +0000)]
Fix ARI violations in mips-linux-nat.c and mips-tdep.c

gdb/ChangeLog:

        * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
        marker.
        * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
        violation.

12 years agogdb/testsuite/
Edjunior Barbosa Machado [Fri, 2 Mar 2012 18:43:46 +0000 (18:43 +0000)]
gdb/testsuite/
2012-03-02  Edjunior Machado  <emachado@linux.vnet.ibm.com>

* gdb.arch/altivec-abi.exp (altivec_abi_tests): Remove obsolete
parameter.

12 years ago2012-03-02 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 2 Mar 2012 16:54:59 +0000 (16:54 +0000)]
2012-03-02  Pedro Alves  <palves@redhat.com>

* linux-thread-db.c (attach_thread): Avoid in_thread_list call.

12 years ago2012-03-02 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 2 Mar 2012 16:23:42 +0000 (16:23 +0000)]
2012-03-02  Pedro Alves  <palves@redhat.com>

* inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
* linux-low.c (struct simple_pid_list): New.
(stopped_pids): New a struct simple_pid_list pointer.
(add_to_pid_list, pull_pid_from_list): New.
(handle_extended_wait): Don't assume the first signal new children
report is SIGSTOP.  Adjust call to pull_pid_from_list.
(linux_wait_for_lwp): Adjust.

12 years ago Fix -Wmissing-prototypes build.
Ulrich Weigand [Fri, 2 Mar 2012 13:38:39 +0000 (13:38 +0000)]
Fix -Wmissing-prototypes build.
* ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
* remote-sim.c (gdbsim_has_all_memory): Likewise.
(gdbsim_has_memory): Likewise.

12 years agogdb/
Yao Qi [Fri, 2 Mar 2012 12:56:50 +0000 (12:56 +0000)]
gdb/
Fix -Wmissing-prototypes build.
* charset.c (phony_iconv_open): Make static.
(phony_iconv_close, phony_iconv): Likewise.
* i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
* i386-windows-nat.c (_initialize_i386_windows_nat): New
prototype.
* mingw-hdep.c (_initialize_mingw_hdep): New prototype.
* ser-mingw.c (create_select_thread): Make static.
* windows-termcap.c (tgetent): New prototype.
(tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.

12 years agogdb/
Jan Kratochvil [Fri, 2 Mar 2012 05:38:51 +0000 (05:38 +0000)]
gdb/
Fix -Wmissing-prototypes build.
* windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
(_initialize_windows_nat, _initialize_check_for_gdb_ini)
(_initialize_loadable): New prototypes.

12 years ago * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
Doug Evans [Fri, 2 Mar 2012 01:55:15 +0000 (01:55 +0000)]
* dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
abbrev table, read_comp_unit will do it.

12 years agogdb/gdbserver:
Yao Qi [Fri, 2 Mar 2012 00:18:51 +0000 (00:18 +0000)]
gdb/gdbserver:
* tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
debug log.

12 years agogdb/gdbserver:
Yao Qi [Fri, 2 Mar 2012 00:12:47 +0000 (00:12 +0000)]
gdb/gdbserver:
* tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
`stop_pc' and `tpoint'.  Update caller.