aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-08-18 * corelow.c (core_open): Assume there was no upper layer leftPedro Alves4-21/+32
behind from a previous inferior. * target.c (pop_all_targets): Rename to ... (pop_all_targets_above): ... this. Add a target stratum parameter. Use it instead of hardcoding the dummy_stratum. (pop_all_targets): New, defer to pop_all_targets_above. (target_preopen): Use pop_all_targets_above. * target.h (pop_all_targets_above): Declare.
2008-08-182008-08-18 Pedro Alves <pedro@codesourcery.com>Pedro Alves7-0/+68
gdb/doc/ * observer.texi (thread_ptid_changed): New. gdb/ * gdbthread.h (thread_change_ptid): Declare. * infrun.c (infrun_thread_ptid_changed): New. (_initialize_infrun): Attach infrun_thread_ptid_changed to the thread_ptid_changed observer. * regcache.c (regcache_thread_ptid_changed): New. (_initialize_regcache): Attach regcache_thread_ptid_changed to the thread_ptid_changed observer. * thread.c (thread_change_ptid): New.
2008-08-18 * symfile.c (reread_symbols): Update.Tom Tromey5-25/+10
* solib-sunos.c (allocate_rt_common_objfile): Update. * objfiles.c (allocate_objfile): Update. * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>: Remove.
2008-08-18 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile'sTom Tromey2-1/+6
obstack.
2008-08-18 * doc/gdb.texinfo (PowerPC): Mention Extended FPR's for POWER7.Luis Machado6-5/+92
(PowerPC features): Mention feature set for VSX registers. * gdbserver/Makefile.in: Add required vsx dependencies. * gdbserver/linux-ppc-low: Define PPC_FEATURE_HAS_VSX. Declare init_registers_powerpc_vsx32l. Declare init_registers_powerpc_vsx64l. Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. (ppc_arch_setup): Check for VSX in hwcap. (ppc_fill_vsxregset): New function. (ppc_store_vsxregset): New function. Add new VSX entry in regset_info target_regsets. * gdbserver/configure.srv: Add new VSX dependencies.
2008-08-18 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,Daniel Jacobowitz4-8/+59
lr_register. (rs6000_in_function_epilogue_p): Check for bctr. (skip_prologue): Initialize lr_register. Set lr_reg to a register number. Set gpr_mask and used_bl. Continue scanning while some expected registers are not saved. Set lr_register if LR is not stored. (rs6000_frame_cache): Handle gpr_mask and lr_register. * gdb.arch/powerpc-prologue.exp: Correct saved registers.
2008-08-18*** empty log message ***gdbadmin1-1/+1
2008-08-17gdb:Tom Tromey4-203/+193
PR gdb/1535: * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros. (ep_find_event_name_end): Remove. (catch_fork_temporary, catch_vfork_temporary, catch_fork_permanent, catch_vfork_permanent): New constants. (catch_vfork, catch_fork): Remove. (catch_fork_command_1): Add 'command' argument. Remove 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for all cases. (catch_exec_command_1): Add 'command' argument; remove 'tempflag'. Handle NULL 'arg'. (catch_load_command_1): Likewise. (catch_unload_command_1): Likewise. (catch_ada_exception_command): Likewise. (catch_assert_command): Likewise. (catch_catch_command): New function. (catch_throw_command): Likewise. (catch_command_1): Remove. (catch_command): Just call error. (tcatch_command): Likewise. (catch_cmdlist): New global. (tcatch_cmdlist): Likewise. (add_catch_command): New function. (_initialize_breakpoint): Create "catch" and "tcatch" as prefix commands. Create all catch sub-commands. gdb/testsuite: * gdb.base/help.exp (help catch): Rewrite.
2008-08-17*** empty log message ***gdbadmin1-1/+1
2008-08-16 * gdbthread.h: Add comments.Pedro Alves5-9/+38
* stack.c (get_selected_block): Return 0 on an exited thread. * top.c (execute_command): Check for is_stopped, not !is_running. * event-top.c (command_handler): Likewise.
2008-08-16 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)Pedro Alves2-5/+11
(mi_cmd_exec_step, mi_cmd_exec_step_instruction) (mi_cmd_exec_finish): Remove "return".
2008-08-16 * target.h (pop_all_targets): Declare.Pedro Alves4-2/+35
* target.c (pop_all_targets): New. * top.c (quit_target): Pop all targets instead of just closing the current.
2008-08-16gdb/Thiago Jung Bauermann7-75/+143
2008-08-16 Vladimir Prus <vladimir@codesourcery.com> Thiago Jung Bauermann <bauerman@br.ibm.com> * cli-script.c (read_next_line): Add parse_commands argument. (recurse_read_control_structure): Adapt to new read_next_line signature. (read_command_lines): Add parse_commands argument. (define_command): Adapt to new read_command_lines signature. (document_command): Likewise. * breakpoint.c (commands_command): Likewise. * defs.h (read_command_lines): Adjust function prototype. testsuite/ 2008-08-16 Thiago Jung Bauermann <bauerman@br.ibm.com> * gdb.base/define.exp: Test indented command documentation. * gdb.python/python.exp: Test indented multi-line command.
2008-08-16(pos_atr): Account for the possibility that the argument may be a reference.Paul N. Hilfinger2-3/+9
2008-08-16(scan_xcoff_symtab): Do not include global symbolsPaul N. Hilfinger2-0/+16
('F' format) for @FIX names generated by the loader, retaining only the minimal symbols (and no partial symbol tables) for these names. Fixes warning messages about symbols that are found in partial symbol tables, but not full symbol tables.
2008-08-16 * infrun.c (fetch_inferior_event): Only call normal_stop if notPedro Alves2-1/+8
stopping quietly.
2008-08-16*** empty log message ***gdbadmin1-1/+1
2008-08-15 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".Luis Machado23-33/+2272
Include "features/rs6000/powerpc-vsx64.c". (ppc_supply_vsxregset): New function. (ppc_collect_vsxregset): New function. (IS_VSX_PSEUDOREG): New macro. (IS_EFP_PSEUDOREG): New macro. (vsx_register_p): New function. (ppc_vsx_support_p): New function. (rs6000_builtin_type_vec128): New function. (rs6000_register_name): Hide upper halves of vs0~vs31. Return correct names for VSX registers and EFPR registers. (rs6000_pseudo_register_type): Return correct types for VSX and EFPR registers. (rs6000_pseudo_register_reggroup_p): Return correct group for VSX and EFPR registers. (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read. (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write. (vsx_pseudo_register_read): New function. (vsx_pseudo_register_write): New function. (efpr_pseudo_register_read): New function. (efpr_pseudo_register_write): New function. (rs6000_pseudo_register_read): Call new VSX and EFPR read functions. (rs6000_pseudo_register_write): Call new VSX and EFPR write functions. (rs6000_gdbarch_init): Declare have_vsx. Initialize new upper half VSX registers. Initialize VSX-related and EFPR-related pseudo-registers variables. Adjust the number of pseudo registers accordingly. * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS and SIZEOF_VSRREGS. (gdb_vsxregset_t): New type. (have_ptrace_getsetvsxregs): New variable. (fetch_vsx_register): New function. (fetch_register): Handle VSX registers. (fetch_vsx_registers): New function. (fetch_ppc_registers): Handle VSX registers. (store_ppc_registers): Handle VSX registers. (store_vsx_register): New function. (store_register): Handle VSX registers. (store_vsx_registers): New function. (ppc_linux_read_description): Handle VSX-enabled inferiors. (gdb_vsxregset_t): New type. (supply_vsxregset): New function. (fill_vsxregset): New function. * ppc-tdep.h (vsx_register_p): New prototype. (vsx_support_p): New prototype. (ppc_vsr0_regnum): New variable. (ppc_vsr0_upper_regnum): Likewise. (ppc_efpr0_regnum): Likewise. (ppc_builtin_type_vec128): New type. (ppc_num_vsrs): New constant. (ppc_num_vshrs): New constant. (ppc_num_efprs): Likewise. Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM. (ppc_supply_vsxregset): New prototype. (ppc_collect_vsxregset): New prototype. * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c" Include "features/rs6000/powerpc-vsx64l.c". (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets. (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field. (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset. (ppc_linux_regset_from_core_section): Handle VSX core section. (ppc_linux_core_read_description): Support VSX-enabled core files. * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l Declare tdesc_powerpc_vsx64l * corelow.c (get_core_register_section): Support VSX-enabled core files. * features/rs6000/power-vsx.xml: New VSX descriptions. * features/rs6000/powerpc-vsx32.xml: New file. * features/rs6000/powerpc-vsx32l.xml: New file. * features/rs6000/powerpc-vsx64.xml: New file. * features/rs6000/powerpc-vsx64l.xml: New file. * features/rs6000/powerpc-vsx32.c: New file (generated). * features/rs6000/powerpc-vsx32l.c: New file (generated). * features/rs6000/powerpc-vsx64.c: New file (generated). * features/rs6000/powerpc-vsx64l.c: New file (generated). * features/Makefile: Updated with new descriptions. * regformats/rs6000/powerpc-vsx32l.dat: New file (generated). * regformats/rs6000/powerpc-vsx64l.dat: New file (generated). * testsuite/gdb.arch/vsx-regs.c: New source file. * testsuite/gdb.arch/vsx-regs.exp: New testcase. * testsuite/lib/gdb.exp (skip_vsx_tests): New function.
2008-08-15 * ia64-linux.nat (_initialize_ia64_linux_nat): Don'tVladimir Prus2-1/+6
call linux_target twice.
2008-08-15*** empty log message ***gdbadmin1-1/+1
2008-08-14 * nto-tdep.c (lm_info): Updated struct lm_info definition fromAleksandar Ristovski2-9/+34
solib-svr4.c (LM_ADDR): Use l_addr if available; if not, use link map and set l_addr.
2008-08-14gdb:Tom Tromey4-2/+30
* macrocmd.c (macro_define_command): Check for NULL argument. (macro_undef_command): Likewise. gdb/testsuite: * gdb.base/macscp.exp: Add regression test for "macro define" or "macro undef" with no arguments.
2008-08-14 * gdb.texinfo (Ada Mode Intro): Improve the documentation regardingJoel Brobecker2-5/+10
the direct visibility of all names in user-written packages.
2008-08-14 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.Pedro Alves2-0/+6
2008-08-14*** empty log message ***gdbadmin1-1/+1
2008-08-13gdb/Pedro Alves4-25/+72
* breakpoint.c (always_inserted_auto, always_inserted_on) (always_inserted_off, always_inserted_enums): New. (always_inserted_mode): Change type to char* and point to always_inserted_auto. (show_always_inserted_mode): In auto mode, also show the current effect of the option. (breakpoints_always_inserted_mode): Adjust for the new auto mode. (_initialize_breakpoint): Make the "set breakpoints always-inserted" command an enum command. Extend help to describe the auto mode. gdb/doc/ * gdb.texinfo (breakpoint always-inserted) Describe the auto mode setting, and make it the default. (Non-Stop Mode): Remove "set breakpoints always-inserted 1" from non-stop script example.
2008-08-13 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag statusUlrich Weigand2-9/+15
query valid) bit. Ignore bits outside the condition field. (info_spu_proxydma_command): Ignore bits outside the field.
2008-08-13*** empty log message ***gdbadmin1-1/+1
2008-08-122008-08-12 Michael Snyder <msnyder@vmware.com>Michael Snyder2-7/+11
* MAINTAINERS: Update my email address.
2008-08-12 * gdbint.texinfo (Raw and Virtual Register Representations): FixThiago Jung Bauermann2-2/+8
reference to the "Using Different Register and Memory Data Representation" section.
2008-08-12 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.Ulrich Weigand2-1/+5
2008-08-12gdb/doc/Sandra Loosemore9-17/+255
2008-08-12 Sandra Loosemore <sandra@codesourcery.com> * gdb.texinfo (Remote Configuration): Document set remote noack-packet. (Remote Protocol): Add Packet Acknowledgment to menu. (Overview): Mention +/- can be disabled, and point to new section where this is discussed in detail. (General Query Packets): Document QStartNoAckMode packet, and corresponding qSupported reply. (Packet Acknowledgment): New section. gdb/ 2008-08-12 Pedro Alves <pedro@codesourcery.com> Add no-ack mode to the remote protocol --- optionally stop ACKing packets and responses when we have a reliable communication medium. Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com> * remote.c (struct remote_state): Add noack_mode field. (PACKET_QStartNoAckMode): New. (remote_start_remote): Don't any outstanding packet here. (remote_open_1): Clear noack_mode. Ack any outstanding packet here. Activate noack mode if requested. (remote_protocol_features): Add QStartNoAckMode. (remote_open_1): (putpkt_binary): Don't send ack in noack mode. (read_frame): Don't recompute the checksum in noack mode. (getpkt_sane): Skip sending ack if in noack mode. (_initialize_remote): Add set/show remote noack mode. * NEWS: Note the new features. gdb/gdbserver/ 2008-08-12 Pedro Alves <pedro@codesourcery.com> * remote-utils.c (noack_mode, transport_is_reliable): New globals. (remote_open): Set or clear transport_is_reliable. (putpkt_binary): Don't expect acks in noack mode. (getpkt): Don't send ack/nac in noack mode. * server.c (handle_general_set): Handle QStartNoAckMode. (handle_query): If connected by tcp pass QStartNoAckMode+ in qSupported. (main): Reset noack_mode on every connection. * server.h (noack_mode): Declare.
2008-08-122008-08-11 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-60/+282
Pedro Alves <pedro@codesourcery.com> gdb/doc * gdb.texinfo (Threads): Move paragraph about automatic thread selection to All-Stop Mode subsection. (Thread Stops): Reorganize existing material into subsections. Add introductory blurb and menu. (Non-Stop Mode): New subsection. (Background Execution): New subsection. (Maintenance Commands): Add cross-references from async mode commands to the new Background Execution section.
2008-08-12 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):Kevin Buettner2-0/+57
New macros. (rs6000_skip_main_prologue): New function. (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
2008-08-12*** empty log message ***gdbadmin1-1/+1
2008-08-112008-08-11 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-0/+5
gdb/ * MAINTAINERS (Write After Approval): Add self.
2008-08-11 ARM BE8 support.Stan Shebs7-1/+83
* disasm.c (gdb_disassemble_info): Set endian_code. * gdbarch.sh (gdbarch_info): New field byte_order_for_code. * gdbarch.h, gdbarch.c: Regenerate. * arch-utils.c (initialize_current_architecture): Set the default byte_order_for_code. (gdbarch_info_init): Ditto. (gdbarch_info_fill): Ditto. * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros. (thumb_analyze_prologue): Swap halfword if code endianness is different from general endianness. (arm_skip_prologue): Similarly. (arm_scan_prologue): Ditto. (thumb_get_next_pc): Ditto. (arm_get_next_pc): Ditto. (arm_gdbarch_init): Set byte_order_for_code from BE8 flag, choose correct endianness for breakpoints.
2008-08-11*** empty log message ***gdbadmin1-1/+1
2008-08-10 * bsd-kvm.c: Include "gdbthread.h".Pedro Alves2-0/+56
(bsd_kvm_ptid): New. (bsd_kvm_open): Add a main thread. (bsd_kvm_close): Delete it. (bsd_kvm_thread_alive): New. (bsd_kvm_pid_to_str): New. (bsd_kvm_add_target): Register bsd_kvm_thread_alive and bsd_kvm_pid_to_str. (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
2008-08-10 * buildsym.c (start_subfile): Properly cast sentinel in concatPedro Alves5-2/+15
call. * cp-name-parser.y: Include "config.h". * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in concat call. * gdb_select.h: Include sys/time.h if sys/select.h is not available.
2008-08-10*** empty log message ***gdbadmin1-1/+1
2008-08-09 * go32-nat.c: Include "gdbthread.h".Pedro Alves2-0/+32
(go32_stop, go32_kill_inferior): Delete the main thread. (go32_create_inferior): Add it. (go32_thread_alive, go32_pid_to_str): New. (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
2008-08-09 * go32-nat.c (fetch_register, store_register): Pass the regcachePedro Alves2-28/+38
gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p. (go32_xfer_memory): Change type of myaddr parameter to gdb_byte. (struct seg_descr, struct seg_descr): pack the whole struct instead of each member individually.
2008-08-09(_initialize_python): Use unabbreviated commandsAndreas Schwab2-2/+7
in prefix name.
2008-08-09 * Makefile.in (stamp-h): Also create .deps.Daniel Jacobowitz2-1/+5
2008-08-09 * Makefile.in (generated_files): Add GNULIB_H.Tom Tromey2-1/+5
2008-08-09 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't setDave Anglin3-21/+81
DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set. Revise comment. (pa64_current_sos): Remove map private warning warning. * solib-som.c: Include string.h and sys/utsname.h. (get_hpux_major_release): New function. (som_solib_create_inferior_hook): Read dynamic linker header. Warn about shared library private mapping on HP-UX 11 and later. Only force private mapping of shared libraries on HP-UX 10 and earlier. (link_map_start): Delete warning.
2008-08-092008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>H.J. Lu4-38/+337
H.J. Lu <hongjiu.lu@intel.com> Mark Kettenis <kettenis@gnu.org> * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg. (amd64_init_frame_cache): Initialize saved_sp_reg. (amd64_analyze_stack_align): New. (amd64_analyze_prologue): Call it. (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set %rip to 8 when halfway aligning the stack. * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to AMD64_R14_REGNUM. * i386-tdep.c (i386_frame_cache): Remove stack_align. Add saved_sp_reg. (i386_alloc_frame_cache): Remove stack_align. Initialize saved_sp_reg to -1. (i386_analyze_stack_align): Rewrite. (i386_frame_cache): Use saved_sp_reg if it is valid.
2008-08-09 * target.c: Include "solib.h".Ulrich Weigand3-23/+27
(target_pre_inferior): Call no_shared_libraries. * infcmd.c (run_command_1): Do not call objfile_purge_solibs or clear_solib. (attach_command): Do not call clear_solib.
2008-08-09* i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes forMark Kettenis2-1/+6
the %eip register.