summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.Theodore A. Roth2003-06-202-3/+11
| | | | (avr_read_sp): Ditto.
* * Makefile.in (SFILES): Update.Daniel Jacobowitz2003-06-208-2577/+16
| | | | | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, low-sun3.c: Remove files.
* * config/arm/linux.mt: Remove code protected by GDBSERVER define.Daniel Jacobowitz2003-06-2016-131/+20
| | | | | | | | | | | | | | | | | | * config/arm/nm-linux.h: Likewise. * config/arm/tm-linux.h: Likewise. * config/ia64/nm-linux.h: Likewise. * config/ia64/tm-ia64.h: Likewise. * config/s390/tm-linux.h: Likewise. * config/s390/tm-s390.h: Likewise. * s390-nat.c: Likewise. * s390-tdep.c: Likewise. * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES. * config/ia64/linux.mt: Likewise. * config/m68k/linux.mh: Likewise. * config/mips/linux.mt: Likewise. * config/powerpc/linux.mh: Likewise. * config/sh/linux.mt: Likewise.
* 2003-06-19 Kris Warkentin <kewarken@qnx.com>Kris Warkentin2003-06-202-8/+20
| | | | | | * solib.c (solib_open): Change tests for whether to search LD_LIBRARY_PATH and PATH to better deal with remotes. Update comments.
* * avr-tdep.c (avr_frame_address): Delete function.Theodore A. Roth2003-06-202-8/+6
| | | | | (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address, set_gdbarch_frame_args_address.
* 2003-06-19 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-06-203-20/+13
| | | | | | | | | * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete. (REGISTER_CONVERT_FROM_TYPE): Delete. (mips_register_convert_to_type): Delete declaration. (mips_register_convert_from_type): Delete declaration. * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux kernel/.
* *** empty log message ***gdbadmin2003-06-201-1/+1
|
* 2003-06-19 Michael Snyder <msnyder@redhat.com>Michael Snyder2003-06-197-51/+99
| | | | | | | | | | | | | * linux-nat.h: New file. * linux-nat.c: Include linux-nat.h. * lin-lwp.c: Include linux-nat.h. Move struct lwp_info def to linux-nat.h. * linux-proc.c: Include linux-nat.h. (linux_make_note_section): Iterate over lwps instead of threads. (linux_do_thread_registers): Use lwp instead of merged pid. * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h. * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o): Add dependency on linux_nat_h.
* * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.Theodore A. Roth2003-06-192-2/+4
|
* * varobj.c (get_type, get_target_type): Use check_typedef.Daniel Jacobowitz2003-06-192-7/+10
|
* * breakpoint.c (insert_catchpoint): Call internal_error.Daniel Jacobowitz2003-06-192-1/+5
|
* * avr-tdep.c (avr_push_dummy_code): Delete function.Theodore A. Roth2003-06-192-11/+5
| | | | (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
* * arch-utils.c (default_prepare_to_proceed): Remove.Daniel Jacobowitz2003-06-1914-259/+78
| | | | | | | | | | | | | | | | | | | | | | | (generic_prepare_to_proceed): Remove. * arch-utils.h (default_prepare_to_proceed): Remove prototype. (generic_prepare_to_proceed): Remove prototype. * gdbarch.sh (PREPARE_TO_PROCEED): Remove. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype. * hppah-nat.c (hppa_switched_threads): Remove. * infrun.c (prepare_to_proceed): New static function, copied from generic_prepare_to_proceed. Remove select_it argument. (proceed): Call prepare_to_proceed. * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove variables. (ptrace_wait): Don't set the removed variables. (hppa_switched_threads): Remove. * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove. * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define. (lin_lwp_prepare_to_proceed): Remove prototype. * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine. * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
* * gdbint.texinfo (Native Conditionals): Remove PREPARE_TO_PROCEED.Daniel Jacobowitz2003-06-192-18/+5
|
* * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, andTheodore A. Roth2003-06-192-424/+649
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trad-frame.h. (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64. (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define. (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define. (AVR_PROLOGUE_*): Enumerate prologue types. (struct frame_extra_info): Remove. (struct avr_unwind_cache): Define. (avr_write_sp): Delete function. (avr_read_fp): Ditto. (avr_init_extra_frame_info): Ditto. (avr_pop_frame): Ditto. (avr_frame_saved_pc): Ditto. (avr_saved_pc_after_call): Ditto. (avr_push_return_address): Ditto. (avr_frame_chain): Ditto. (avr_store_struct_return): Ditto. (avr_push_arguments): Ditto. (avr_scan_prologue): Update comments. Changed to set up the info for cache unwinding. Now returns end of prologue PC. (avr_skip_prologue): Better handling of functions lacking a prologue by using avr_scan_prologue. (avr_scan_arg_moves): New function. (avr_saved_regs_unwinder): Ditto. (avr_frame_unwind_cache): Ditto. (avr_unwind_pc): Ditto. (avr_frame_this_id): Ditto. (avr_frame_prev_register): Ditto. (avr_frame_p): Ditto. (avr_frame_base_address ): Ditto. (avr_unwind_dummy_id): Ditto. (avr_push_dummy_code): Ditto. (push_stack_item): Ditto. (pop_stack_item): Ditto. (avr_push_dummy_call): Ditto. (struct stack_item): Define. (avr_frame_unwind): Declare structure. (avr_frame_base): Ditto. (avr_gdbarch_init): Remove calls to set_gdbarch_deprecated_init_frame_pc, set_gdbarch_deprecated_target_read_fp, set_gdbarch_deprecated_dummy_write_sp, set_gdbarch_deprecated_fp_regnum, set_gdbarch_deprecated_push_arguments, set_gdbarch_deprecated_push_return_address, set_gdbarch_deprecated_pop_frame, set_gdbarch_deprecated_store_struct_return, set_gdbarch_deprecated_frame_init_saved_regs, set_gdbarch_deprecated_init_extra_frame_info, set_gdbarch_deprecated_frame_chain, set_gdbarch_deprecated_frame_saved_pc, set_gdbarch_deprecated_saved_pc_after_call. Add calls to set_gdbarch_push_dummy_call, set_gdbarch_push_dummy_code, frame_unwind_append_predicate, frame_base_set_default, set_gdbarch_unwind_dummy_id, set_gdbarch_unwind_pc. Wrap a long line.
* 2003-06-18 Corinna Vinschen <vinschen@redhat.com>Michael Snyder2003-06-192-4/+11
| | | | | | | * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL registers for H8/300S. (h8300_print_registers_info): Ditto. (h8300_gdbarch_init): Accommodate register count for H8/300S.
* * gdb.texinfo (Remote Debugging): New section "Connecting to aDaniel Jacobowitz2003-06-192-119/+145
| | | | | | | remote target". Document the "detach" and "disconnect" commands. (Server, Netware, Debug Session): Reference "Connecting to a remote target". (GDB/MI Target Manipulation): Document "-target-disconnect".
* *** empty log message ***gdbadmin2003-06-191-1/+1
|
* * config/nm-linux.h (linux_record_stopped_pid): New prototype.Daniel Jacobowitz2003-06-184-0/+91
| | | | | | | * lin-lwp.c (child_wait): Call linux_record_stopped_pid. (lin_lwp_wait): Likewise. Update comments. * linux-nat.c (struct simple_pid_list, add_to_pid_list) (pull_pid_from_list, linux_record_stopped_pid): New.
* *** empty log message ***gdbadmin2003-06-181-1/+1
|
* * ada-lang.c (scan_discrim_bound): Name first argument.Stephane Carrez2003-06-172-3/+7
| | | | | (ada_add_block_symbols): Remove BLOCK_SYM to use local variable declared by ALL_BLOCK_SYMBOLS.
* * ada-tasks.c (find_function_in_inferior): Don't declare it.Stephane Carrez2003-06-173-7/+12
| | | | | ("regcache.h"): Include it. * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
* gdb/Daniel Jacobowitz2003-06-1712-10/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Mention gdbserver detach change and "disconnect" command. * infcmd.c (disconnect_command): New function. (_initialize_infcmd): Add ``disconnect'' command. * remote.c (remote_async_detach): Delete. (remote_detach): Merge remote_async_detach. (remote_disconnect): New. (init_remote_ops): Set to_disconnect. (init_remote_cisco_ops): Likewise. (init_remote_async_ops): Likewise. Use remote_detach. * target.c (cleanup_target): Default to_disconnect. (update_current_target): Inherit to_disconnect. (target_disconnect, debug_to_disconnect): New functions. (setup_target_debug): Set to_disconnect. * target.h (struct target_ops): Add to_disconnect. (target_disconnect): Add prototype. gdbserver/ * linux-low.c: Move comment to linux_thread_alive where it belonged. (linux_detach_one_process, linux_detach): New functions. (linux_target_ops): Add linux_detach. * server.c (main): Handle 'D' packet. * target.h (struct target_ops): Add "detach" member. (detach_inferior): Define. mi/ * mi-cmds.c (mi_cmds): Add "-target-disconnect".
* * breakpoint.c (insert_catchpoint): New function.Daniel Jacobowitz2003-06-172-23/+41
| | | | | (insert_breakpoints): Use catch_exceptions to call insert_catchpoint. Disable catchpoints if they fail to insert.
* * symfile.c (reread_symbols): Clear sym_private.Daniel Jacobowitz2003-06-172-0/+5
|
* 2003-06-17 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-06-174-1/+13
| | | | | | | | * trad-frame.h (struct frame_info): Add opaque declaration. * remote-fileio.h (struct cmd_list_element): Add opaque declaration. * h8300-tdep.c (h8300s_register_name): Avoid C++ // style comments.
* * nto-tdep.c (nto_map_arch_to_cputype): Recognize powerpc.Kris Warkentin2003-06-172-7/+16
| | | | | | (nto_find_and_open_solib): Likewise. (nto_init_solib_absolute_prefix): Likewise. (_initialize_nto_tdep): Fix indentation.
* * remote.c (remote_prepare_to_store): Replace call toDaniel Jacobowitz2003-06-172-5/+14
| | | | | deprecated_read_register_bytes with multiple regcache_raw_read calls.
* * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.Kris Warkentin2003-06-172-1/+5
|
* * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.Kris Warkentin2003-06-172-0/+5
|
* * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"Jim Blandy2003-06-172-3/+7
|
* * avr-tdep.c (avr_extract_return_value): New function.Theodore A. Roth2003-06-172-0/+39
| | | | (avr_gdbarch_init): Set extract_return_value method.
* *** empty log message ***gdbadmin2003-06-171-1/+1
|
* 2003-06-16 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-06-163-14/+68
| | | | | | | | | | | | * frame.h (deprecated_get_next_frame_hack): Declare. * frame.c (legacy_saved_regs_prev_register): Only require DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that there are always saved regs. (deprecated_generic_get_saved_register): Do not require DEPRECATED_FRAME_INIT_SAVED_REGS. (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN, use frame ID unwind instead. (deprecated_get_next_frame_hack): New function.
* * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...Corinna Vinschen2003-06-162-41/+29
| | | | | | | | | | (h8300_push_dummy_call): ...this function. Some minor optimization. (h8300_push_return_address): Remove. (h8300_gdbarch_init): Remove calls to set_gdbarch_deprecated_dummy_write_sp, set_gdbarch_deprecated_push_arguments and set_gdbarch_deprecated_push_return_address. Add call to set_gdbarch_push_dummy_call.
* * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.Corinna Vinschen2003-06-162-34/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (E_PSEUDO_EXR_REGNUM): Ditto. (h8300_is_argument_spill): Check for instructions moving argument registers into safe registers. (h8300_skip_prologue): Check for stm instruction to push registers used for register variables onto stack. (gdb_print_insn_h8300): Remove. (h8300_examine_prologue): Add a comment. (h8300_register_name): Take pseudo registers into account. (h8300s_register_name): Ditto. (h8300sx_register_name): Ditto. (h8300_print_register): Ditto. (h8300_print_registers_info): Define "nice" printing order. (h8300_saved_pc_after_call): Take pseudo registers into account. (h8300_register_type): Ditto. Return type used for remote connection when requesting real CCR or EXR register, return actual type when requesting pseudo CCR or EXR. (h8300_pseudo_register_read): New function. (h8300_pseudo_register_write): Ditto. (h8300_dbg_reg_to_regnum): Ditto. (h8300s_dbg_reg_to_regnum): Ditto. (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs, set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum, set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and set_gdbarch_print_insn architecture dependent. Call set_gdbarch_pseudo_register_read and set_gdbarch_pseudo_register_write. (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
* Revert previous change. Wait for approval.Andrew Cagney2003-06-162-23/+12
|
* 2003-06-16 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-06-1617-105/+129
| | | | | | | | | | | | | | | | | * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate. * gdbarch.h, gdbarch.c: Re-generate. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mips-tdep.c (mips_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * infcall.c (call_function_by_hand): Update. * ia64-tdep.c (ia64_push_arguments): Update comment. * frame.c (legacy_get_prev_frame): Do not assume SAVE_DUMMY_FRAME_TOS_P. * dummy-frame.c (find_dummy_frame): Update comment.
* 2003-06-16 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-06-162-2/+5
| | | | * regcache.c (do_cooked_read): Do not use register_valid_p.
* * avr-tdep.c (avr_register_type): Remove a blank line.Theodore A. Roth2003-06-162-4/+8
| | | | (avr_scan_prologue): Correct some comments.
* * avr-tdep.c (avr_scan_prologue): Update comment describing the variousTheodore A. Roth2003-06-162-41/+118
| | | | | | prologue types. Properly scan prologues generated by gcc with the -mcall-prologues option. Add code to scan -mcall-prologues for mega devices.
* *** empty log message ***gdbadmin2003-06-161-1/+1
|
* * avr-tdep.c (avr_register_byte): Delete function.Theodore A. Roth2003-06-152-66/+35
| | | | | | | | | | | | | | | | | | | (avr_register_raw_size): Delete function. (avr_register_virtual_size): Delete function. (avr_register_virtual_type): Delete function. (avr_register_type): New function. (avr_address_to_pointer): Remove unused code. (avr_read_fp): Need to read FP as two separate bytes due to change to avr_register_type() usage. (avr_gdbarch_init): Don't set deprecated_register_size. Don't set deprecated_register_bytes. Don't set deprecated_register_byte. Don't set deprecated_register_raw_size. Don't set deprecated_max_register_raw_size. Don't set deprecated_register_virtual_size. Don't set deprecated_max_register_virtual_size. Don't set deprecated_register_virtual_type. Set register_type method.
* * Makefile.in (linux-nat.o): Add rule.Daniel Jacobowitz2003-06-1514-9/+212
| | | | | | | | | | | | | | | | | * linux-nat.c: New file. * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define. (CHILD_INSERT_VFORK_CATCHPOINT): Define. (CHILD_INSERT_EXEC_CATCHPOINT): Define. * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o. * config/arm/linux.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/x86-64linux.mh (NATDEPFILES): Likewise. * config/ia64/linux.mh (NATDEPFILES): Likewise. * config/m68k/linux.mh (NATDEPFILES): Likewise. * config/mips/linux.mh (NATDEPFILES): Likewise. * config/powerpc/linux.mh (NATDEPFILES): Likewise. * config/s390/s390.mh (NATDEPFILES): Likewise. * config/sparc/linux.mh (NATDEPFILES): Likewise.
* * gdb.base/attach.exp: Use -1 for the ID of a nonexistent processMark Kettenis2003-06-152-2/+8
| | | | on *-*-*bsd* instead of *-*-freebsd*.
* * i387-tdep.c: Reorder includes, fix some whitespace issues andMark Kettenis2003-06-152-9/+15
| | | | replace out-of-date comment.
* 2003-06-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-06-153-2/+7
| | | | | * rdi-share/host.h (Fail): Change to a varargs function. * remote-rdi.c (Fail): Update.
* * i386-tdep.c (i386_next_regnum): Fix bounds checking.Mark Kettenis2003-06-152-23/+54
| | | | | (i386_convert_register_p, i386_register_to_value, i386_register_from_value): Handle types longer than 8 bytes.
* * i386-tdep.c (i386_register_to_value, i386_value_to_register):Mark Kettenis2003-06-155-55/+115
| | | | | | | | | | | Move floating-point code to new function in i387-tdep.c. * i387-tdep.c (i387_register_to_value, i387_value_to_register): New functions containing code moved here from i386-tdep.c. * i387-tdep.h: Add opaque declaration for `struct type'. (i387_register_to_value, i387_value_to_register): New prototypes. * x86-64-tdep.c (x86_64_convert_register_p): New function. (x86_64_init_abi): Set convert_register_p, register_to_value and value_to_register here.
* 2003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-06-159-119/+32
| | | | | | | | | | | | | | | | | * mips-tdep.c (mips_register_to_value): Make static. (mips_value_to_register): Make static. * i386-tdep.c (i386_fetch_pointer_argument): Make static. * ia64-tdep.c (ia64_register_raw_size): Make static. (ia64_register_virtual_size): Make static. (ia64_register_byte): Make static. * i387-tdep.c: Include "i387-tdep.h". (print_387_control_word): Delete function. (print_387_status_word): Delete function. (print_387_status_bits): Delete function. (print_387_control_bits): Delete function. * Makefile.in (i387-tdep.o): Update dependencies. * rdi-share/host.h (Fail): Declare. * remote-rdi.c (Fail): Update to match declaration.