aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-05-132009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-65/+107
* objc-lang.c (objc_objfile_data): New variable. (find_methods): Skip objfiles without Obj-C methods. (_initialize_objc_lang): New function.
2009-05-13(linux_test_for_tracefork): Back out turd from previous check-in.Doug Evans1-2/+0
2009-05-13 * elf32-arm.c: Move sysdep.h to start of file.Andrew Jenner2-1/+5
2009-05-13 * config/tc-arm.c: Move as.h to start of file.Andrew Jenner2-1/+5
2009-05-13 * c-lang.c (print_wchar): Remove unnecessary cast.Joel Brobecker2-1/+5
2009-05-13*** empty log message ***gdbadmin1-1/+1
2009-05-13daily updateAlan Modra1-1/+1
2009-05-12* MAINTAINERS: Remove self as m32c target maintainer.Jim Blandy2-1/+4
2009-05-12 Biarch support for i386/amd64 gdbserver.Doug Evans8-407/+790
* Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. Add linux-x86-low.c. (linux-i386-low.o, linux-x86-64-low.o): Delete. (linux-x86-low.o): Add. * linux-x86-64-low.c: Delete. * linux-i386-low.c: Delete. * linux-x86-low.c: New file. * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with linux-x86-low.o. (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with linux-x86-low.o. (x86_64-linux srv_regobj): Add reg-i386-linux.o. * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. (linux_child_pid_to_exec_file): New function. (elf_64_header_p, elf_64_file_p): New functions. (siginfo_fixup): New function. (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to give target a chance to convert layout. * linux-low.h (linux_target_ops): New member siginfo_fixup. (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
2009-05-12ChangeLog:Alexandre Oliva10-4007/+1791
PR target/37137 * Makefile.def (flags_to_pass): Remove redundant and incomplete STAGE1_CFLAGS, STAGE2_CFLAGS, STAGE3_CFLAGS, and STAGE4_CFLAGS. Add FLAGS_FOR_TARGET and BUILD_CONFIG. (bootstrap_stage): Remove bootstrap-debug custom stages. Turn stage_configureflags, stage_cflags and stage_libcflags into explicit Makefile macros. * Makefile.tpl (HOST_EXPORTS, EXTRA_HOST_FLAGS): Pass GCJ and GFORTRAN. (POSTSTAGE1_HOST_EXPORTS): Add XGCC_FLAGS_FOR_TARGET and TFLAGS to CC. Set CC_FOR_BUILD from CC. (BASE_TARGET_EXPORTS, RAW_CXX_TARGET_EXPORTS, NORMAL_TARGET_EXPORTS): Move SYSROOT_CFLAGS_FOR_TARGET and DEBUG_PREFIX_CFLAGS_FOR_TARGET from CFLAGS and CXXFLAGS to XGCC_FLAGS_FOR_TARGET. Add it along with TFLAGS to CC, CXX, GCJ, and GFORTRAN. (TFLAGS, STAGE_CFLAGS, STAGE_TFLAGS, STAGE_CONFIGURE_FLAGS): New. (_LIBCFLAGS): Renamed to _TFLAGS. (do-compare-debug, do-compare3-debug): Drop. (CC, GCC_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET, GCJ_FOR_TARGET, GFORTRAN_FOR_TARGET): Remove FLAGS_FOR_TARGET. (FLAGS_FOR_TARGET, SYSROOT_CFLAGS_FOR_TARGET, DEBUG_PREFIX_CFLAGS_FOR_TARGET): Move down. (XGCC_FLAGS_FOR_TARGET): New. (BASE_FLAGS_TO_PASS): Pass STAGEid_CFLAGS, STAGEid_TFLAGS and TFLAGS. (EXTRA_HOST_FLAGS): Pass GCJ and GFORTRAN. (POSTSTAGE1_FLAGS_TO_PASS): Move SYSROOT_CFLAGS_FOR_TARGET and DEBUG_PREFIX_CFLAGS_FOR_TARGET from CFLAGS, CXXFLAGS, LIBCFLAGS, LIBCXXFLAGS to XGCC_FLAGS_FOR_TARGET. Add it along with TFLAGS to CC, CXX, GCJ, and GFORTRAN. Pass XGCC_FLAGS_FOR_TARGET and TFLAGS. (BUILD_CONFIG): Include if requested. (all): Set TFLAGS on bootstrap. (configure-stageid-prefixmodule): Pass TFLAGS, adjust FLAGS. (all-stageid-prefixmodule): Likewise. (do-clean, distclean-stageid): Set TFLAGS. (restrap): Fix whitespace. * Makefile.in: Rebuilt. config/ChangeLog: * multi.m4: Save CXX, GFORTRAN and GCJ in config.status. * mt-gnu (CXXFLAGS_FOR_TARGET): Adjust. * bootstrap-O1.mk: New. * bootstrap-O3.mk: New. * bootstrap-debug.mk: New.
2009-05-12gdb/Pedro Alves8-36/+53
2009-05-12 Pedro Alves <pedro@codesourcery.com> * cli/cli-decode.c (deprecated_add_set_cmd): Delete. * command.h (deprecated_add_set_cmd): Delete declaration. * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with 'set debug gnu-nat' and 'show debug gnu-nat'. * i386-nat.c (_initialize_i386_nat): Replace 'maint show-debug-registers' with 'maint set show-debug-registers' and 'maint show show-debug-registers'. * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint show-debug-registers' with 'maint set show-debug-registers' and 'maint show show-debug-registers'. gdb/doc/ 2009-05-12 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo: Document 'set/show debug gnu-nat'. Replace 'maint show-debug-regs' docs by 'maint set show-debug-regs' and 'maint show show-debug-regs' docs.
2009-05-12 * objcopy.c (set_long_section_mode): Check input_bfd is coffAlan Modra2-1/+7
before accessing coff specific fields of bfd.
2009-05-12 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t beforeJoel Brobecker2-1/+8
pushing it on the output obstack.
2009-05-12daily updateAlan Modra1-1/+1
2009-05-12*** empty log message ***gdbadmin1-1/+1
2009-05-112009-05-11 Andrew Cagney <cagney@gnu.org>Andrew Cagney2-1/+5
* MAINTAINERS: Orphan ppc.
2009-05-11 * gdb.mi/nsintrall.c (main): Fix off-by-one error.Doug Evans4-3/+9
* gdb.threads/pending-step.c (main): Fix off-by-one error. * gdb.threads/schedlock.c (main): Fix off-by-one error.
2009-05-11gdb/Jan Kratochvil5-0/+129
Fix internal error on breaking at a multi-locations caller source line. * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break' command with no parameters. gdb/testsuite/ * gdb.cp/expand-sals.exp, gdb.cp/expand-sals.cc: New.
2009-05-11 * linux-nat.c (enum sigchld_state): Delete.Pedro Alves2-659/+351
(linux_nat_async_events_state): Delete. (struct waitpid_result): Delete. (waitpid_queue): Delete. (queued_waitpid_1): Delete. (async_file_flush): New. (queued_waitpid, push_waitpid): Delete. (async_file_mark): New. (drain_queued_events): Delete. (my_waitpid): Remove locally queued events handling. (linux_test_for_tracefork): Upjust. (linux_child_follow_fork): Ditto. (sync_sigchld_action): Delete. (blocked_mask): Reinstate. (async_sigchld_action): Rename to... (sigchld_action): ... this. (block_child_signals): New. (restore_child_signals_mask): New. (lin_lwp_attach_lwp): Adjust. (linux_nat_create_inferior): Ditto. (linux_nat_attach): Also use lp->status in async mode. (get_pending_status): Don't use queued_waitpid. (linux_nat_detach): Don't drain locally queued events. (linux_nat_resume): Allow pending wait statuses stored lp->status in async mode. If returning early due to a pending event, re-register the event source. (stop_wait_callback): Allow pending wait statuses stored lp->status in async mode. (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete. (linux_nat_wait): Rename to ... (linux_nat_wait_1): ... this. Allow pending wait statuses stored lp->status in async mode. Always add WNOHANG to the waitpid options in async mode. (linux_nat_wait): New. (kill_callback): Don't drain locally queued events. (sigchld_handler): Rewrite. (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to refer to "set target-async". (linux_nat_async_mask): If in non-stop, and re-enabling async mode, re-register the target event source in the event loop. (linux_nat_event_pipe_pop, linux_nat_event_pipe_push) (get_pending_events, async_sigchld_handler) (linux_nat_async_events): Delete. (handle_target_event): New. (linux_nat_async_file_handler): Delete. (linux_async_pipe): New. (linux_nat_async): Only re-register in the event loop if not registered yet. Always notify the event-loop once if enabling the event source. (linux_nat_stop_lwp): Rewrite to handle pending events stored in lp->status, not in the locally queued event list. (linux_nat_stop): Don't mask out async event handling. (linux_nat_setup_async): Delete. (_initialize_linux_nat): Adjust. (lin_thread_get_thread_signals): blocked_mask is global again. Adjust.
2009-05-11 Unify target macros.Pierre Muller9-26/+57
* target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ... (target_stoppped_by_watchpoint): New macro. (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ... (target_have_steppable_watchpoint): New macro. (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ... (target_have_continuable_watchpoint): New macro. (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ... (target_can_use_hardware_watchpoint): New macro. (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ... (target_region_ok_for_hw_watchpoint): New macro. * breakpoint.c (update_watchpoint): Use new macros. (bpstat_alloc): Likewise. (create_breakpoint): Likewise. (watch_command_1): Likewise. (can_use_hardware_watchpoint): Likewise. (do_enable_breakpoint): Likewise. * infrun.c (handle_inferior_event): Adapt to new macros. * mips-tdep.c (mips_gdbarch_init): Update comments. * procfs.c (procfs_set_watchpoint): Update comment. (procfs_insert_watchpoint): Adapt to new macros. * remote-m32r-sdi.c (m32r_stop): * remote-mips.c (mips_remove_breakpoint): * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros. (debug_to_stopped_by_watchpoint): Likewise.
2009-05-11 * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma asAlan Modra2-2/+19
start of overlays. (spu_elf_build_stubs): Don't define __icache_tagbase. Define __icache_tag_array and __icache_tag_array_size.
2009-05-11daily updateAlan Modra1-1/+1
2009-05-11*** empty log message ***gdbadmin1-1/+1
2009-05-10Remove unnecessary ATTRIBUTE_UNUSEDAlan Modra2-6/+12
2009-05-10 * src/gdb/target.h: Remove all tests for already definedPierre Muller2-16/+6
macros. All macros defined here should not be set in config headers anymore.
2009-05-10Add missing break statemenets.Anthony Green2-0/+6
2009-05-10daily updateAlan Modra1-1/+1
2009-05-10*** empty log message ***gdbadmin1-1/+1
2009-05-09 * MAINTAINERS: Add myself as PE/COFF co-maintainer.Dave Korn2-0/+5
2009-05-09 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.Sergio Durigan Junior2-9/+281
(have_ptrace_getsetfpregs): Likewise. fetch_all_gp_regs): New function. (fetch_gp_regs): New function. (fetch_all_fp_regs): Likewise. (fetch_fp_regs): New function. (fetch_ppc_registers): Using the new methods to fetch general- purpose and floating-pointer registers. (store_all_gp_regs): New function. (store_gp_regs): Likewise. (store_all_fp_regs): New function. (store_fp_regs): Likewise. (store_ppc_registers): Using the new methods to store general- purpose and floating-pointer registers.
2009-05-09*** empty log message ***gdbadmin1-1/+1
2009-05-08 * m32c/gdb-if.c (m32c_signal_to_host): Rename toKevin Buettner2-28/+18
m32c_signal_to_target. Change signal return values from SIGILL, SIGTRAP, SIGSEGV, etc. to TARGET_SIGNAL_ILL, TARGET_SIGNAL_TRAP, TARGET_SIGNAL_SEGV, etc. Fix all callers.
2009-05-08 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.Doug Evans2-2/+4
2009-05-08 * gdb.texinfo (Process Record and Replay): Add description ofEli Zaretskii2-5/+22
reverse execution.
2009-05-082009-05-08 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-1/+7
* winduni.c (iconv_onechar): Only define when HAVE_ICONV is defined, but not when __CYGWIN__ or _WIN32 are defined. See wind_iconv_cp for call logic of this local funtion.
2009-05-082009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>Sergio Durigan Junior2-0/+5
* MAINTAINERS (Write After Approval): Add self.
2009-05-08*** empty log message ***gdbadmin1-1/+1
2009-05-08daily updateAlan Modra1-1/+1
2009-05-07 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.Doug Evans2-0/+9
(regsets_store_inferior_registers): Ditto.
2009-05-07 * gdbint.texinfo (Adding support for debugging core files): New node.Joel Brobecker2-58/+17
(Native Debugging): Remove the ``Native core file Support'' section.
2009-05-07Revert previous deltaNick Clifton2-11/+0
2009-05-07 * gdbarch.h (target_gdbarch): Add comment documenting this global.Joel Brobecker2-2/+17
2009-05-07 * ld-elf/eh-group.exp: Only run these tests for ELF basedNick Clifton2-0/+11
targets.
2009-05-07*** empty log message ***gdbadmin1-1/+1
2009-05-07daily updateAlan Modra1-1/+1
2009-05-06Fix typo.Joel Brobecker1-1/+1
2009-05-06 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present overJoel Brobecker3-47/+61
system iconv. * configure: Regenerate.
2009-05-06 * utils.c: Add include of gdb_usleep.h.Joel Brobecker2-0/+28
(defaulted_query): Detect false EOF conditions that happen on terminals opened with the O_NONBLOCK flag when there is nothing to read.
2009-05-06Fix braino.Pedro Alves1-1/+1
2009-05-06 PR server/10048Pedro Alves3-13/+30
* linux-low.c (must_set_ptrace_flags): Delete. (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead of the global. (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set `lwp->must_set_ptrace_flags' instead. (linux_wait_for_event_1): If ptrace options here. (linux_wait_1): ... not here.