Pedro Alves [Wed, 9 Jul 2008 11:02:56 +0000 (11:02 +0000)]
* remote-sim.c: Include gdbthread.h.
(remote_sim_ptid): New global.
(gdbsim_create_inferior): Silently add the main task to GDB's
thread list.
(gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
task from GDB's thread list.
(gdbsim_resume): Adjust to use remote_sim_ptid.
(gdbsim_thread_alive, gdbsim_pid_to_str): New.
(init_gdbsim_ops): Register gdbsim_thread_alive and
gdbsim_pid_to_str.
(_initialize_remote_sim): Initialize remote_sim_ptid.
* Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
Pedro Alves [Wed, 9 Jul 2008 10:58:41 +0000 (10:58 +0000)]
* monitor (monitor_ptid): New global.
(monitor_open): Silently add the main task to GDB's thread list.
(monitor_close, monitor_mourn_inferior): Silently delete the main
task from GDB's thread list.
(monitor_thread_alive, monitor_pid_to_str): New.
(init_base_monitor_ops): Register monitor_thread_alive and
monitor_pid_to_str.
(_initialize_remote_monitors): Initialize monitor_ptid.
* gdbthread.h (delete_thread_silent): Declare.
* thread.c (delete_thread): Rename to ...
(delete_thread_1): ... this. Add "silent" parameter. If silent,
don't do exit notifications.
(delete_thread, delete_thread_silent): New, as wrappers to
delete_thread_1.
Pedro Alves [Wed, 9 Jul 2008 10:50:52 +0000 (10:50 +0000)]
* gdb.base/fullname.exp: Restore pwd if compiling failed.
Kai Tietz [Wed, 9 Jul 2008 10:28:12 +0000 (10:28 +0000)]
2008-07-09 Kai Tietz <kai.tietz@onevision.com>
* gas/i386/i386.exp (x86-64-pcrel): Disable for w64.
(x86-64-sse5): Likewise.
(x86-64-opcode-inval): Likewise.
(x86-64-opcode-inval-intel): Likewise.
(x86-64-w64-pcrel): New.
* gas/i386/x86-64-w64-pcrel.d: New.
Danny Smith [Wed, 9 Jul 2008 03:18:15 +0000 (03:18 +0000)]
*pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
starting with ".".
Exclude "_IMPORT_DESCRIPTOR_".
(autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
(autofilter_symbollist_generic): Don't check for ".text".
Exclude "_NULL_IMPORT_DESCRIPTOR".
(autofilter_symbollist_i386): Likewise.
Alan Modra [Wed, 9 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 9 Jul 2008 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Pedro Alves [Tue, 8 Jul 2008 11:09:40 +0000 (11:09 +0000)]
* breakpoint.c (update_global_location_list): Add boolean
"should_insert" argument. Only insert locations if caller told it
too.
(update_global_location_list_nothrow): Add boolean "should_insert"
argument. Pass it to update_global_location_list.
(insert_breakpoints, create_longjmp_breakpoint)
(create_overlay_event_breakpoint, enable_overlay_breakpoints)
(create_thread_event_breakpoint, create_solib_event_breakpoint)
(create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
(enable_watchpoints_after_interactive_call_stop)
(set_momentary_breakpoint, create_breakpoints)
(break_command_really, watch_command_1)
(create_ada_exception_breakpoint, update_breakpoint_locations)
(do_enable_breakpoint, enable_command): Pass true to
update_global_location_list.
(bpstat_stop_status, disable_overlay_breakpoints)
(disable_watchpoints_before_interactive_call_start)
(delete_breakpoint, disable_breakpoint, disable_command): Pass
false to update_global_location_list.
(update_breakpoints_after_exec): Don't temporarily disable
always-inserted mode.
Pedro Alves [Tue, 8 Jul 2008 10:59:57 +0000 (10:59 +0000)]
* breakpoint.c (mark_breakpoints_out): Make public.
(update_breakpoints_after_exec): Don't call mark_breakpoints_out
here. Update comment.
* breakpoint.h (mark_breakpoints_out): Declare.
* linux-nat.c (linux_handle_extended_wait): On
TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
* inf-ttrace.c (inf_ttrace_wait): Likewise.
Pedro Alves [Tue, 8 Jul 2008 10:31:16 +0000 (10:31 +0000)]
* infrun.c (follow_exec): Reset shared libraries before adding the
main exec file.
Kai Tietz [Tue, 8 Jul 2008 08:15:09 +0000 (08:15 +0000)]
2008-07-08 Kai Tietz <kai.tietz@onevision.com>
* binutils-all/objcopy.exp (copy_setup): Check if host-triplet
is target-triplet for execution tests.
(copy_executable): Likewise.
(strip_executable): Likewise.
(strip_executable_with_saving_a_symbol): Likewise.
Nathan Sidwell [Tue, 8 Jul 2008 06:33:41 +0000 (06:33 +0000)]
* config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
about overriding an earlier setting.
gdbadmin [Tue, 8 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 8 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Pedro Alves [Mon, 7 Jul 2008 23:00:11 +0000 (23:00 +0000)]
* server.c (handle_v_attach): Inhibit reporting dll changes.
Jan Kratochvil [Mon, 7 Jul 2008 22:39:59 +0000 (22:39 +0000)]
gdb/
* breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
gdb/testsuite/
* gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New.
Pedro Alves [Mon, 7 Jul 2008 22:05:45 +0000 (22:05 +0000)]
* i386-dicos-tdep.c: Include "inferior.h".
(i386_dicos_frame_align): New.
(i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
dummy location ON_STACK.
* Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
Adam Nemet [Mon, 7 Jul 2008 19:28:02 +0000 (19:28 +0000)]
* gas/mips/mips32.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32-cp2.s: ... to here.
* gas/mips/mips32.d: Update.
* gas/mips/mips32-cp2.d: New file.
* gas/mips/mips32r2.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32r2-cp2.s: ... to here.
* gas/mips/mips32r2.d: Update.
* gas/mips/mips32r2-cp2.d: New file.
* gas/mips/mips64.s: Move out coprocessor2 insns from here ...
* gas/mips/mips64-cp2.s: ... to here.
* gas/mips/mips64.d: Update.
* gas/mips/mips64-cp2.d: New file.
* gas/mips/mips.exp: Run mips32-cp2, mips32r2-cp2 and mips64-cp
except for Octeon.
* gas/mips/octeon.s: Add supported coprocessor insns. Move pop
down to keep alphabetical order.
* gas/mips/octeon.d: Update.
* gas/mips/octeon-ill.s: Add unsupported coprocessor insns.
* gas/mips/octeon-ill.l: Update.
Adam Nemet [Mon, 7 Jul 2008 19:16:23 +0000 (19:16 +0000)]
* config/tc-mips.c (NO_ISA_COP): New macro.
(COP_INSN): New macro.
(is_opcode_valid): Use them.
(macro) <ld_st>: Use them. Don't accept coprocessor load store
insns based on the ISA if CPU is NO_ISA_COP.
<copz>: Likewise for coprocessor operations.
Carlos O'Donell [Mon, 7 Jul 2008 19:12:58 +0000 (19:12 +0000)]
gas/
2008-07-07 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
relocations.
gas/testsuite/
2008-07-07 Paul Brook <paul@codesourcery.com>
* gas/arm/movw-local.d: New test.
* gas/arm/movw-local.s: New test.
Adam Nemet [Mon, 7 Jul 2008 19:11:15 +0000 (19:11 +0000)]
* mips-opc.c (CP): New macro.
(mips_builtin_opcodes): Mark c0, c2 and c3 as CP. Add Octeon to the
membership of di, dmfc0, dmtc0, ei, mfc0 and mtc0. Add dmfc2 and
dmtc2 Octeon instructions.
Stan Shebs [Mon, 7 Jul 2008 19:00:21 +0000 (19:00 +0000)]
* ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test.
* ld-arm/arm-be8.d: Change to test disassembly.
Stan Shebs [Mon, 7 Jul 2008 18:40:13 +0000 (18:40 +0000)]
2008-07-07 Stan Shebs <stan@codesourcery.com>
* dis-asm.h (struct disassemble_info): Add endian_code field.
Stan Shebs [Mon, 7 Jul 2008 18:35:24 +0000 (18:35 +0000)]
2008-07-07 Stan Shebs <stan@codesourcery.com>
* dis-init.c (init_disassemble_info): Init endian_code field.
* arm-dis.c (print_insn): Disassemble code according to
setting of endian_code.
(print_insn_big_arm): Detect when BE8 extension flag has been set.
Joel Brobecker [Mon, 7 Jul 2008 17:11:56 +0000 (17:11 +0000)]
* gstdint.h: New file.
Joel Brobecker [Mon, 7 Jul 2008 17:09:31 +0000 (17:09 +0000)]
* safe-ctype.h: Add #include of ctype.h before redefining
the ctype.h macros.
Nick Clifton [Mon, 7 Jul 2008 16:43:06 +0000 (16:43 +0000)]
* configure.tgt: Add bfin-*-rtems*.
Nick Clifton [Mon, 7 Jul 2008 16:02:32 +0000 (16:02 +0000)]
* elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
the presence of a PLT.
Andreas Schwab [Mon, 7 Jul 2008 12:05:30 +0000 (12:05 +0000)]
(GDB/MI Target Manipulation): Fix last change.
Alan Modra [Mon, 7 Jul 2008 11:48:27 +0000 (11:48 +0000)]
* bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.
Alan Modra [Mon, 7 Jul 2008 04:37:53 +0000 (04:37 +0000)]
* objdump.c (find_symbol_for_address): Prefer symbols in current
section.
Alan Modra [Mon, 7 Jul 2008 00:46:51 +0000 (00:46 +0000)]
* emultempl/armelf.em (elf32_arm_add_stub_section): Use
bfd_make_section_with_flags.
* emultempl/avrelf.em (avr_elf_create_output_section_statements):
Likewise.
* emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
* emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
* emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
* emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
Likewise.
Alan Modra [Mon, 7 Jul 2008 00:44:41 +0000 (00:44 +0000)]
* ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
* nlmconv.c (main, powerpc_build_stubs): Likewise.
* rescoff.c (write_coff_file): Likewise.
* resres.c (write_res_file): Likewise.
* windmc.c (windmc_write_bin): Likewise.
gdbadmin [Mon, 7 Jul 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 7 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Nathan Sidwell [Sun, 6 Jul 2008 13:38:37 +0000 (13:38 +0000)]
* ld.texinfo (File Commands): Document that INCLUDE can be used in
several different places.
* ldgram.y (statement, memory_spec, section): Allow INCLUDE.
(memory, memory_spec_list): Simplify BNF
(memory_spec_list_opt): New rule.
* ldlex.l (INCLUDE): Recognize in EXPRESSION.
testsuite/
* ld-scripts/include-1.d: New.
* ld-scripts/include-1.t: New.
* ld-scripts/include-data.t: New.
* ld-scripts/include-mem.t: New.
* ld-scripts/include-ram.t: New.
* ld-scripts/include-sections.t: New.
* ld-scripts/include-subdata.t: New.
* ld-scripts/include.exp: New.
* ld-scripts/include.s: New.
Vladimir Prus [Sun, 6 Jul 2008 13:21:19 +0000 (13:21 +0000)]
* gdb.texinfo (GDB/MI Target Manipulation): Add
example of -target-attach.
Alan Modra [Sun, 6 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 6 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Vladimir Prus [Sat, 5 Jul 2008 17:57:24 +0000 (17:57 +0000)]
* mi/mi-interp.c (mi_on_resume): Don't try to report
resumed thread it the thread list is empty.
Daniel Jacobowitz [Sat, 5 Jul 2008 13:48:21 +0000 (13:48 +0000)]
Add missed changelog entry.
gdbadmin [Sat, 5 Jul 2008 00:00:36 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 5 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update
Pierre Muller [Fri, 4 Jul 2008 22:30:19 +0000 (22:30 +0000)]
* cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
completer for set to filename_completer.
NEWS: Mention it.
Joel Brobecker [Fri, 4 Jul 2008 17:11:29 +0000 (17:11 +0000)]
* safe-ctype.h: Remove #error when detecting that ctype.h has been
included. Redefine the various macros provided by ctype.h as
undefined variables.
Alan Modra [Fri, 4 Jul 2008 13:04:04 +0000 (13:04 +0000)]
* config/tc-spu.c (md_apply_fix): Handle fully resolved
BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
Vladimir Prus [Fri, 4 Jul 2008 09:04:36 +0000 (09:04 +0000)]
Implement -target-attach.
* mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
Ian Lance Taylor [Fri, 4 Jul 2008 03:34:01 +0000 (03:34 +0000)]
* layout.cc (Layout::include_section): Do not discard unrecognized
SHT_STRTAB sections.
gdbadmin [Fri, 4 Jul 2008 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 4 Jul 2008 00:00:04 +0000 (00:00 +0000)]
daily update
Michael Snyder [Thu, 3 Jul 2008 23:14:35 +0000 (23:14 +0000)]
2008-06-21 Hui Zhu <teawater@gmail.com>
* target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
Pedro Alves [Thu, 3 Jul 2008 17:38:08 +0000 (17:38 +0000)]
* config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
* config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
* target.h (struct target_ops): Add to_attach_no_wait member.
(target_attach_no_wait): New.
* target.c (update_current_target): Inherit to_attach_no_wait.
* infcmd.c: Replace ATTACH_NO_WAIT compile time check by
target_attach_no_wait runtime check.
* gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
* win32-nat.c (init_win32_ops): Set to_attach_no_wait in
win32_ops.
Pedro Alves [Thu, 3 Jul 2008 00:19:58 +0000 (00:19 +0000)]
* i386-tdep.c (i386_displaced_step_fixup): Condition log printing
on debug_displaced being set.
gdbadmin [Thu, 3 Jul 2008 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 3 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update
Alan Modra [Wed, 2 Jul 2008 13:31:53 +0000 (13:31 +0000)]
* elf32-ppc.c (is_pic_glink_stub): New function.
(ppc_elf_get_synthetic_symtab): Don't generate symbols when
multiple shared/pie stubs per plt entry.
Alan Modra [Wed, 2 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Wed, 2 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 1 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update
gdbadmin [Tue, 1 Jul 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Craig Silverstein [Mon, 30 Jun 2008 20:59:54 +0000 (20:59 +0000)]
2008-06-30 Craig Silverstein <csilvers@cs.stanford.edu>
* script.cc (Lex::can_continue_name): Make '?' allowable in
version-script names.
* testsuite/version_script.map: Change glob pattern to use '?'
Richard Sandiford [Mon, 30 Jun 2008 20:53:06 +0000 (20:53 +0000)]
bfd/
* elf.c (_bfd_elf_get_synthetic_symtab): Increment p by
bed->s->int_rels_per_ext_rel.
Richard Sandiford [Mon, 30 Jun 2008 20:51:58 +0000 (20:51 +0000)]
bfd/
* syms.c (BSF_SYNTHETIC): New flag.
* elf.c (_bfd_elf_get_synthetic_symtab): Set it.
* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise.
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
* bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour
for synthetic symbols.
* bfd-in2.h: Regenerate.
opcodes/
* mips-dis.c (_print_insn_mips): Use bfd_asymbol_flavour to check
for ELF symbols.
Ian Lance Taylor [Mon, 30 Jun 2008 18:16:31 +0000 (18:16 +0000)]
PR 6585
* symtab.cc (Symbol_table::add_undefined_symbols_from_command_line):
Correct typo.
Daniel Jacobowitz [Mon, 30 Jun 2008 17:59:03 +0000 (17:59 +0000)]
* frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
directly instead of get_frame_id.
Ian Lance Taylor [Mon, 30 Jun 2008 16:36:40 +0000 (16:36 +0000)]
PR 6660
PR 6682
* powerpc.cc (Powerpc_relocate_functions::addr16_ha) [both
versions]: Don't try to read the value in the contents, since we
don't use it. Use the template endianness when writing.
Daniel Jacobowitz [Mon, 30 Jun 2008 15:32:51 +0000 (15:32 +0000)]
* elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
Expand comments.
(arm_map_one_stub): Use | 1 when setting the low bit.
Luis Machado [Mon, 30 Jun 2008 14:11:48 +0000 (14:11 +0000)]
* rs6000-tdep.c (ppc_displaced_step_fixup): New function.
(deal_with_atomic_sequence): Update BC masks.
(rs6000_gdbarch_init): Init displaced stepping infra-structure.
Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
Daniel Jacobowitz [Mon, 30 Jun 2008 14:00:38 +0000 (14:00 +0000)]
* cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
register, not the previous frame's.
Luis Machado [Mon, 30 Jun 2008 13:52:07 +0000 (13:52 +0000)]
* source.c (select_source_symtab): Make sure we skip namespace
symtabs when showing cpp source code.
Hans-Peter Nilsson [Mon, 30 Jun 2008 08:38:18 +0000 (08:38 +0000)]
* MAINTAINERS (Authorized committers): Fix my email address.
Alan Modra [Mon, 30 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Mon, 30 Jun 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Vladimir Prus [Sun, 29 Jun 2008 17:36:36 +0000 (17:36 +0000)]
* mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
-target-download and -target-select via CLI, so that
the quoting rules are the same as they were (unfortunately)
in all prior gdb releases.
* mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
(mi_cmd_target_download, mi_cmd_target_select): Remove.
* mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
(mi_cmd_target_download, mi_cmd_target_select): Remove.
(mi_cmd_execute): Set current_token even for commands
routed via CLI.
Andreas Schwab [Sun, 29 Jun 2008 12:56:41 +0000 (12:56 +0000)]
* elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
addend on _GLOBAL_OFFSET_TABLE_.
ld/testsuite/:
* ld-m68k/got-1.s: New file.
* ld-m68k/got-1.d: New dump test.
* ld-m68k/m68k.exp: Run it.
Alan Modra [Sun, 29 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update
gdbadmin [Sun, 29 Jun 2008 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Ulrich Weigand [Sat, 28 Jun 2008 17:29:04 +0000 (17:29 +0000)]
* alphafbsd-tdep.c: Update for unwinder changes.
* alpha-linux-tdep.c: Likewise.
* alphanbsd-tdep.c: Likewise.
* alphaobsd-tdep.c: Likewise.
* avr-tdep.c: Likewise.
* cris-tdep.c: Likewise.
* frv-linux-tdep.c: Likewise.
* frv-tdep.c: Likewise.
* h8300-tdep.c: Likewise.
* hppa-linux-tdep.c: Likewise.
* iq2000-tdep.c: Likewise.
* m32c-tdep.c: Likewise.
* m32r-linux-tdep.c: Likewise.
* m32r-tdep.c: Likewise.
* m68hc11-tdep.c: Likewise.
* mep-tdep.c: Likewise.
* mn10300-tdep.c: Likewise.
* mt-tdep.c: Likewise.
* score-tdep.c: Likewise.
* sh64-tdep.c: Likewise.
* sh-tdep.c: Likewise.
* sparc64fbsd-tdep.c: Likewise.
* sparc64nbsd-tdep.c: Likewise.
* sparc64obsd-tdep.c: Likewise.
* v850-tdep.c: Likewise.
* vaxobsd-tdep.c: Likewise.
* vax-tdep.c: Likewise.
* xstormy16-tdep.c: Likewise.
Vladimir Prus [Sat, 28 Jun 2008 11:53:34 +0000 (11:53 +0000)]
* mi/mi-main.c (enum captured_mi_execute_command_actions)
(captured_mi_execute_command_args): Remove.
(captured_mi_execute_command): Cast the closure to mi_parse
pointer, not to captured_mi_execute_command_args, and don't
set the action field thereof.
(mi_execute_command): Pass struct mi_parse, not
captured_mi_execute_command_args to captured_mi_execute_command.
(mi_execute_command): Remove (dead) code for suppressing
printing prompt.
Vladimir Prus [Sat, 28 Jun 2008 11:31:02 +0000 (11:31 +0000)]
* lib/mi-support.exp (mi_send_resuming_command_raw): Revert
previous commit. Add a comment.
Pedro Alves [Sat, 28 Jun 2008 11:15:34 +0000 (11:15 +0000)]
gdb/
2008-06-28 Pedro Alves <pedro@codesourcery.com>
* linux-nat.c (enum sigchld_state): New.
(linux_nat_async_events_state): Renamed from
linux_nat_async_events_enabled.
(linux_nat_event_pipe_push, my_waitpid): Adjust.
(sigchld_default_action): New.
(lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
unconditionally.
(linux_nat_create_inferior): Set events state to sigchld_default
state.
(linux_nat_resume): Adjust.
(linux_nat_wait): Call linux_nat_async_events unconditionally.
(sigchld_handler): Adjust.
(linux_nat_async_mask): Don't set SIGCHLD actions here.
(get_pending_events): Adjust.
(linux_nat_async_events): Rewrite to handle enum sigchld_state
instead of a boolean.
(linux_nat_async): Adjust.
(_initialize_linux_nat): Capture default SIGCHLD action into
sigchld_default_action.
gdb/testsuite/
2008-06-28 Pedro Alves <pedro@codesourcery.com>
* gdb.base/sigchld.c, gdb.base/sigchld.exp: New test.
Vladimir Prus [Sat, 28 Jun 2008 10:14:34 +0000 (10:14 +0000)]
* lib/mi-support.exp (mi_send_resuming_command_raw): Report pass.
Vladimir Prus [Sat, 28 Jun 2008 10:03:42 +0000 (10:03 +0000)]
Revert accidental commit
Vladimir Prus [Sat, 28 Jun 2008 09:42:15 +0000 (09:42 +0000)]
* breakpoint.c (moribund_locations): New.
(bpstat_stop_status): Process moribund locations.
(update_global_location_list): Add removed
locations to moribund_locations.
(breakpoint_retire_moribund): New.
* breakpoint.h (struct bp_location): New field
events_till_retirement.
(breakpoint_retire_moribund): Declare.
* thread.c (thread_count): New.
* infrun.c (handle_inferior_event): Call
breakpoint_retire_moribund.
* gdbthread.h (thread_count): Declare.
gdbadmin [Sat, 28 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 28 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update
Joseph Myers [Fri, 27 Jun 2008 20:15:01 +0000 (20:15 +0000)]
* dfp.c (decimal_convert): Call match_endianness before and after
conversion.
Jonathan Larmour [Fri, 27 Jun 2008 18:56:34 +0000 (18:56 +0000)]
* remote.c (remote_insert_breakpoint): Ensure that if Z0
unsupported and we fall back to memory_insert_breakpoint, we
use the unmodified requested address.
Chao-ying Fu [Fri, 27 Jun 2008 18:30:11 +0000 (18:30 +0000)]
* gas/mips/odd-float.d: Replace ... with #pass.
* gas/mips/ldstla-32-shared.d: Add -march=mips1 for as.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/mips16-hilo-match.d: Add -mabi=32 -march=mips1 for as.
Joel Brobecker [Fri, 27 Jun 2008 17:56:47 +0000 (17:56 +0000)]
* dwarf2read.c (read_attribute_value): Issue a complaint when
adjusting size attribute values of 0xffffffff as zero.
Pedro Alves [Fri, 27 Jun 2008 16:42:19 +0000 (16:42 +0000)]
* lib/gdb.exp (gdb_saved_set_unbuffered_mode_obj): New global.
(gdb_compile): If target is *-*-cygwin* or *-*-mingw*, and we're
compiling an executable, link in an object that forces unbuffered
output.
* lib/set_unbuffered_mode.c: New file.
Joseph Myers [Fri, 27 Jun 2008 16:22:56 +0000 (16:22 +0000)]
* i386-tdep.c (i386_16_byte_align_p): New.
(i386_push_dummy_call): Determine stack space required for
arguments going forwards allowing for 16-byte alignment, then push
arguments going forwards.
Pedro Alves [Fri, 27 Jun 2008 13:22:15 +0000 (13:22 +0000)]
* remote-utils.c (prepare_resume_reply): If requested, don't
output "thread:TID" in the T stop reply.
* server.c (disable_packet_vCont, disable_packet_Tthread)
(disable_packet_qC, disable_packet_qfThreadInfo): New globals.
(handle_query): If requested, disable support for qC, qfThreadInfo
and qsThreadInfo.
(handle_v_requests): If requested, disable support for vCont.
(gdbserver_show_disableable): New.
(main): Handle --disable-packet and --disable-packet=LIST.
* server.h (disable_packet_vCont, disable_packet_Tthread)
(disable_packet_qC, disable_packet_qfThreadInfo): Declare.
Pedro Alves [Fri, 27 Jun 2008 11:54:21 +0000 (11:54 +0000)]
* infrun.c (start_remote): Don't clear thread list here.
* monitor.c (monitor_open): Include "gdbthread.h". Clear thread
list here.
* remote.c (record_currthread): Upgrade the main thread and its
entry in the thread list if this is the first time we hear about
threads.
(remote_thread_alive): Consider magic_null_ptid or a ptid without
a tid member always alive.
(remote_find_new_threads): Don't update the main thread here.
(remote_start_remote): Clear thread list here. Always add the
main thread.
(extended_remote_attach_1): Add the main thread here.
(extended_remote_mourn_1): Re-add the main thread here.
(extended_remote_create_inferior_1): Add a main thread.
* Makefile.in (monitor.o): Depend on $(gdbthread_h).
Pedro Alves [Fri, 27 Jun 2008 11:32:17 +0000 (11:32 +0000)]
Fix date.
Pedro Alves [Fri, 27 Jun 2008 11:31:40 +0000 (11:31 +0000)]
Use ptid_t.tid to store thread ids instead of ptid_t.pid.
* remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
globals.
(general_thread, continue_thread): Change type to ptid_t.
(record_currthread): Take a ptid_t parameter instead of an
integer.
(MAGIC_NULL_PID): Delete.
(set_thread): Take a ptid_t parameter and adjust.
(set_general_thread, set_continue_thread): New.
(remote_thread_alive, remote_newthread_step)
(remote_current_thread, remote_find_new_threads)
(remote_threads_info, remote_start_remote, remote_vcont_resume)
(remote_resume_1, remote_wait, extended_remote_create_inferior_1)
(threadalive_test, remote_pid_to_str)
(remote_get_thread_local_address): Adjust.
(_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
and any_thread_ptid.
gdbadmin [Fri, 27 Jun 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 27 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update
Jan Kratochvil [Thu, 26 Jun 2008 19:20:42 +0000 (19:20 +0000)]
* configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
* configure: Regenerated.
Joel Brobecker [Thu, 26 Jun 2008 19:08:10 +0000 (19:08 +0000)]
* dwarf2read.c (read_attribute_value): Treat size attribute
values of 0xffffffff as if the attribute value was zero.