aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2007-05-14 * dwarf2-frame.c (read_encoded_value): Correct typo. UseDaniel Jacobowitz2-2/+11
DW_EH_PE_signed if appropriate.
2007-05-14 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): NewDaniel Jacobowitz2-34/+68
function. (dwarf_decode_lines): Check for line info without a file.
2007-05-14 * gdb.threads/linux-dp.exp: Allow non-hexadecimal IDs also.Daniel Jacobowitz2-2/+6
2007-05-14 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDsDaniel Jacobowitz5-5/+16
as hexadecimal. * gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs. * gdb.threads/print-threads.exp (test_all_threads): Allow negative and hexadecimal thread IDs.
2007-05-14 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead ofDaniel Jacobowitz6-6/+19
STRUCTOP_STRUCT. * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of STRUCTOP_STRUCT. * jv-typeprint.c (java_print_type): Do not crash on NULL varstring. * gdb.java/jprint.java (public): Avoid invalid call to static method.
2007-05-14 * gdbarch.sh (read_sp): Remove.Ulrich Weigand8-109/+40
* gdbarch.c, gdbarch.h: Regenerate. * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP. * avr-tdep.c (avr_read_sp): Remove. (avr_unwind_sp): New function. (avr_gdbarch_init): Install unwind_sp instead of read_sp callback. * mips-tdep.c (mips_read_sp): Remove. (mips_unwind_sp): New function. (mips_gdbarch_init): Install unwind_sp instead of read_sp callback. * score-tdep.c (score_read_unsigned_register): Remove. (score_read_sp): Remove. (score_unwind_sp): New function. (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
2007-05-14 * buildsym.c (start_subfile): Handle absolute pathnamesDaniel Jacobowitz2-1/+22
while comparing subfile names.
2007-05-142007-05-14 Denis Pilat <denis.pilat@st.com>Denis Pilat14-47/+8
* gdb.mi/mi-console.exp, gdb.mi/gdb669.exp, gdb.mi/mi-cli.exp, gdb.mi/mi-regs.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-cli.exp, gdb.mi/mi2-console.exp, gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-regs.exp, gdb.mi/mi2-stepi.exp, gdb.mi/mi-disassemble.exp, gdb.mi/mi2-syn-frame.exp: Remove commands already run in mi_run_to_main.
2007-05-14*** empty log message ***gdbadmin1-1/+1
2007-05-13 * hppa-hpux-tdep.c: Include "regcache.h".Ulrich Weigand5-8/+20
* hppa-linux-tdep.c: Likewise. * hppa-tdep.c: Include "gdb_stdint.h". (find_unwind_entry): Cast host pointer to uintptr_t before passing it to paddr_nz. * Makefile.in: Update dependencies.
2007-05-13 * blockframe.c: Remove obsolete comments.Ulrich Weigand7-28/+17
* alpha-nat.c (fetch_osf_core_registers): Update comment. * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment. * hppa-tdep.h (enum hppa_regnum): Likewise. * mips-tdep.h: Likewise. * m68hc11-tdep.c: Likewise.
2007-05-13 * inferior.h (read_sp): Remove prototype.Ulrich Weigand7-29/+25
* regcache.c (read_sp): Remove. * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp. * infcall.c (call_function_by_hand): Likewise. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead of calling read_sp. * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2007-05-13*** empty log message ***gdbadmin1-1/+1
2007-05-12 * i386-linux-nat.c (i386_linux_resume): Use regcache functionsUlrich Weigand3-12/+35
instead of read_register and read_register_pid. * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE argument instead of PTID. Use regcache functions instead of read_register_pid. (ia64_linux_insert_watchpoint): Update call. (ia64_linux_stopped_data_address): Use regcache functions instead of read_register_pid and write_register_pid.
2007-05-12 * libunwind-frame.h (struct regcache): Add forward declaration.Ulrich Weigand4-189/+130
(libunwind_get_reg_special): Add REGCACHE argument. * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE argument. Pass it to unw_init_remote_p. * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to libunwind_get_reg_special. (ia64_access_reg): Remove "write" case. (ia64_access_fpreg): Likewise. Read from next_frame passed as callback argument instead of from current_regcache. (ia64_access_rse_reg): Remove "write" case. Read from regcache passed as callback argument instead of from current_regcache. (ia64_access_rse_fpreg): New function. (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
2007-05-12*** empty log message ***gdbadmin1-1/+1
2007-05-11 * NEWS: Mention SPU overlay support.Ulrich Weigand2-0/+6
2007-05-11 * spu-tdep.c (spu_frame_unwind_cache): Add comment.Ulrich Weigand2-2/+12
2007-05-11 * breakpoint.c (remove_breakpoint): Do not remove softwareUlrich Weigand2-1/+12
breakpoints in unmapped overlay sections.
2007-05-11 * gdb.base/overlays.exp: Add support for targets with only codeUlrich Weigand4-25/+260
overlay support, not data overlay. Support spu-*-* target in this mode. * gdb.base/ovlymgr.c: Provide stubs for spu target. * gdb.base/spu.ld: New file.
2007-05-11 * spu-tdep.c: Include "observer.h".Ulrich Weigand3-20/+222
(spu_frame_unwind_cache): Unwind PC through overlay return stubs. (spu_overlay_data): New variable. (struct spu_overlay_table): New type. (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update, spu_overlay_new_objfile): New functions. (spu_gdbarch_init): Install spu_overlay_update. (_initialize_spu_tdep): Register spu_overlay_new_objfile, allocate spu_overlay_data objfile data.
2007-05-11 * gdbarch.sh (overlay_update): New gdbarch function.Ulrich Weigand7-11/+76
(struct obj_section): Add forward declaration. * gdbarch.c, gdbarch.h: Regenerate. * symfile.c (simple_overlay_update): Make global. (target_overlay_update): Remove variable. (overlay_is_mapped): Call gdbarch_overlay_update instead of target_overlay_update. (overlay_load_command): Likewise. * symfile.h (struct obj_section): Add forward declaration. (simple_overlay_update): Add prototype. * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
2007-05-11doc/ChangeLog:Ulrich Weigand14-116/+88
* observer.texi (GDB Observers): New observer "new_objfile". ChangeLog: * observer.sh: Add "struct objfile" forward declaration. * target.h (deprecated_target_new_objfile_hook): Remove. * symfile.c (deprecated_target_new_objfile_hook): Remove. (clear_symtab_users): Call observer_notify_new_objfile. (symbol_file_add_with_addrs_or_offsets): Likewise. * rs6000-nat.c: Include "observer.h". (vmap_ldinfo): Call observer_notify_new_objfile. (xcoff_relocate_core): Likewise. * remote.c (remote_new_objfile_chain): Remove. (remote_new_objfile): Do not call remote_new_objfile_chain. (_initialize_remote): Use observer_attach_new_objfile. * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove. (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain. (_initialize_tui_hooks): Use observer_attach_new_objfile. * aix-thread.c: Include "observer.h". (target_new_objfile_chain): Remove. (new_objfile): Do not call target_new_objfile_chain. (_initialize_aix_thread): Use observer_attach_new_objfile. * hpux-thread.c: Include "observer.h" (target_new_objfile_chain): Remove. (hpux_thread_new_objfile): Make static. Do not call target_new_objfile_chain. (_initialize_hpux_thread): Use observer_attach_new_objfile. * linux-thread-db.c: Include "observer.h". (target_new_objfile_chain): Remove. (thread_db_new_objfile): Do not call target_new_objfile_chain. (_initialize_thread_db): Use observer_attach_new_objfile. * sol-thread.c: Include "observer.h". (target_new_objfile_chain): Remove. (sol_thread_new_objfile): Make static. Do not call target_new_objfile_chain. (_initialize_sol_thread): Use observer_attach_new_objfile. * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o, rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on $(observer_h).
2007-05-11 * gdbarch.sh (remote_translate_xfer_address): Remove.Ulrich Weigand9-71/+13
* gdbarch.h, gdbarch.c: Regenerate. * arch-utils.c (generic_remote_translate_xfer_address): Remove. * arch-utils.h (generic_remote_translate_xfer_address): Remove. * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not call gdbarch_remote_translate_xfer_address. * frv-tdep.c (frv_gdbarch_init): Do not call set_gdbarch_remote_translate_xfer_address. * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove. (ia64_gdbarch_init): Do not install it.
2007-05-11 * NEWS: Mention change in handling the -tui option.Bob Wilson2-0/+8
2007-05-11 * linux-thread-db.c (enable_thread_event_reporting): Fix commentDaniel Jacobowitz2-1/+6
typo.
2007-05-11 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.Ulrich Weigand2-0/+33
(breakpoint_inserted_here_p): Call it. (software_breakpoint_inserted_here_p): Likewise.
2007-05-11*** empty log message ***gdbadmin1-1/+1
2007-05-10 * server.h (check_remote_input_interrupt_request): New function.Pedro Alves4-11/+86
* remote_utils.c (INVALID_DESCRIPTOR): New define. (remote_desc): Initialize with INVALID_DESCRIPTOR. (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. (check_remote_input_interrupt_request): New function. * server.h (check_remote_input_interrupt_request): Declare. * win32-low.(winapi_DebugBreakProcess, winapi_GenerateConsoleCtrlEvent): New typedefs. (get_child_debug_event): Lower Win32 debug event polling from 1 sec to 250 ms. (win32_wait): Check for remote interrupt request with check_remote_input_interrupt_request. (win32_request_interrupt): New function. (win32_target_op): Set request_interrupt to win32_request_interrupt.
2007-05-10 * win32-low.c (debug_registers_changed,Pedro Alves5-227/+272
debug_registers_used, CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. (thread_rec): Get context using the low target. (child_add_thread): Call thread_added on the low target, which does the same thing. (regptr): Delete. (do_initial_child_stuff): Remove debug registers references. Set context using the low target. Resume threads after setting the contexts. (child_continue): Remove dead variable. Remove debug registers references. (child_fetch_inferior_registers): Go through the low target. (do_child_store_inferior_registers): Remove. (child_store_inferior_registers): Go through the low target. (win32_resume): Remove debug registers references. Set context using the low target. (handle_exception): Change return type to void. Don't record context here. Set status to TARGET_WAITKIND_SPURIOUS on a first chance exception. (get_child_debug_event): Change return type to void. Remove goto loop. Always return after waiting for debug event. (win32_wait): Convert to switch statement. Handle spurious events. * win32-i386-low.c (debug_registers_changed, debug_registers_used): New. (initial_stuff): Rename to ... (i386_initial_stuff): ... this. Clear debug registers state variables. (store_debug_registers): Delete. (i386_get_thread_context): New. (load_debug_registers): Delete. (i386_set_thread_context): New. (i386_thread_added): New. (single_step): Rename to ... (i386_single_step): ... this. (do_fetch_inferior_registers): Rename to ... (i386_fetch_inferior_register): ... this. (i386_store_inferior_register): New. (the_low_target): Adapt to new interface. * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. (arm_get_thread_context): New. (arm_set_thread_context): New. (regptr): New. (do_fetch_inferior_registers): Rename to ... (arm_fetch_inferior_register): ... this. (arm_store_inferior_register): New. (arm_wince_breakpoint): Reimplement as unsigned long. (arm_wince_breakpoint_len): Define. (the_low_target): Adapt to new interface. * win32-low.h (target_ops): Remove regmap, store_debug_registers and load_debug_registers. Add get_thread_context, set_thread_context, thread_added and store_inferior_register. Rename fetch_inferior_registers to fetch_inferior_register. (regptr): Remove declaration.
2007-05-10 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.Ulrich Weigand10-127/+86
(inf_ptrace_fetch_register): Add register_u_offset callback parameters GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value. (inf_ptrace_store_register): Likewise. (inf_ptrace_trad_target): Adapt register_u_offset parameter list. * inf-ptrace.h (inf_ptrace_trad_target): Likewise. * vax-nat.c (vax_register_u_offset): Adapt parameter list. * linux-nat.c (linux_trad_target): Adapt parameter list. * linux-nat.h (linux_trad_target): Likewise. * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters. * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove. (mips_linux_cannot_store_register): Likewise. (mips_linux_register_addr): Add GDBARCH and STORE_P parameters. Return (CORE_ADDR) -1 for registers that cannot be fetched or stored via ptrace. Use GDBARCH instead of current_gdbarch. (mips64_linux_register_addr): Likewise. (mips_linux_register_u_offset): Adapt parameter list. Pass GDBARCH and STORE_P on to mips{64}_linux_register_addr. * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h. * config/mips/nm-linux.h: Delete file.
2007-05-10 * linux-low.c (linux_detach): Change return type to int. Return 0.Pedro Alves3-2/+9
* spu-low.c (spu_detach): Likewise.
2007-05-10 * remote.c (remote_detach): Error out if remote can't detach.Pedro Alves2-1/+9
2007-05-10Reindent last entry using emacs' re-fill text.Pedro Alves1-2/+3
2007-05-10 * target.h (target_ops): Change return type of detach to int.Pedro Alves6-29/+120
Add join. (join_inferior): New. * server.c (main): Don't skip detach support on mingw32. If the inferior doesn't support detaching return error. Call join_inferior instead of using waitpid. * linux-low.c (linux_join): New. (linux_target_op): Add linux_join. * spu-low.c (spu_join): New. (spu_target_ops): Add spu_join. * win32-low.c (win32_detach): Adapt to new interface. Reopen current_process_handle before detaching. Issue a child resume before detaching. (win32_join): New. (win32_target_op): Add win32_join.
2007-05-10 * win32-low.c (win32-attach): Fix return value.Pedro Alves3-18/+21
* target.h (target_ops): Describe ATTACH return values.
2007-05-10 * win32-low.c (GETPROCADDRESS): Define.Pedro Alves2-26/+38
(winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. (winapi_DebugSetProcessKillOnExit): Likewise. (win32_create_inferior): Force usage of ansi CreateProcessA. (win32_attach): Use GETPROCADDRESS. (win32_detach): Likewise.
2007-05-102007-05-10 Luis Machado <luisgpm@br.ibm.com>Ulrich Weigand2-3/+15
* rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch instruction's opcode in the "opcode" variable and declares new variable "closing_insn".
2007-05-10 * win32-low.c (win32_wait): Don't use WSTOPSIG.Pedro Alves2-6/+5
2007-05-10* cli/cli-setshow.c (do_setshow_command): Remove trailingMaciej W. Rozycki2-0/+13
whitespace when setting a var_filename.
2007-05-10*** empty log message ***gdbadmin1-1/+1
2007-05-09 * main.c (captured_main): Recognize -tui option and print an errorBob Wilson2-2/+12
message when the TUI is not configured.
2007-05-09 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don'tAndreas Schwab2-10/+6
set removed members. (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2007-05-09 * gdbarch.sh (deprecated_store_struct_return): Remove.Ulrich Weigand5-82/+7
* gdbarch.c, gdbarch.h: Regenerate. * frv-tdep.c (frv_store_struct_return): Remove. (frv_gdbarch_init): Do not install it.
2007-05-09*** empty log message ***gdbadmin1-1/+1
2007-05-08ChangeLog:Ulrich Weigand6-17/+10
* config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define. * config/mips/nm-irix5.h (USE_PROC_FS): Do not define. * config/nm-linux.h (USE_PROC_FS): Do not undefine. doc/ChangeLog: * gdbint.texinfo (Native Conditionals): Remove USE_PROC_FS.
2007-05-08 * spu-linux-nat.c: Include "gdb_stdint.h".Ulrich Weigand3-15/+38
(fetch_ppc_register): Use uint64_t instead of unsigned long long. (fetch_ppc_memory_1, store_ppc_memory_1): Likewise. (fetch_ppc_memory, store_ppc_memory): Fix coding style. (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf. (spu_child_wait): Mark up string for translation.
2007-05-082007-05-08 Paul Gilliam <pgilliam@us.ibm.com>Ulrich Weigand2-1/+106
Luis Machado <luisgpm@br.ibm.com> * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION, STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK, BC_INSTRUCTION): Define. (deal_with_atomic_sequence): New function. (rs6000_software_single_step): Call deal_with_atomic_sequence. (rs6000_gdbarch_init): Install deal_with_atomic_sequence as gdbarch_software_single_step routine.
2007-05-08*** empty log message ***gdbadmin1-1/+1
2007-05-07 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,Ulrich Weigand2-20/+30
store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory, parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open, spu_symbol_file_add_from_memory, spu_child_post_startup_inferior, spu_child_post_attach, spu_fetch_inferior_registers, spu_store_inferior_registers, spu_xfer_partial): Store PPE-side memory addresses as ULONGEST, not CORE_ADDR.