summaryrefslogtreecommitdiff
path: root/gdb/remote.c
Commit message (Collapse)AuthorAgeFilesLines
* 2004-01-26 David Carlton <carlton@kealia.com>cvs/carlton_dictionary-branchcarlton_dictionary-branchDavid Carlton2004-01-261-32/+21
| | | | * Merge with mainline; tag is carlton_dictionary-20040126-merge.
* 2003-12-15 David Carlton <carlton@kealia.com>David Carlton2003-12-161-3/+27
| | | | | | | * Merge with mainline; tag is carlton_dictionary-20031215-merge. * cp-support.c (class_name_from_physname): Add DMGL_PARAMS to call to cplus_demangle. (method_name_from_physname): Ditto.
* 2003-11-11 David Carlton <carlton@kealia.com>David Carlton2003-11-111-200/+205
| | | | * Merge with mainline; tag is carlton-dictionary-20031111-merge.
* 2003-09-17 David Carlton <carlton@kealia.com>David Carlton2003-09-171-1/+1
| | | | * Merge with mainline; tag is carlton_dictionary-20030917-merge.
* 2003-08-05 David Carlton <carlton@kealia.com>David Carlton2003-08-051-55/+44
| | | | | | | * configure.in (build_warnings): Delete -Wformat-nonliteral. * configure (build_warnings): Ditto. * Merge with mainline; tag is carlton_dictionary-20030805-merge.
* 2003-06-27 David Carlton <carlton@kealia.com>David Carlton2003-06-271-56/+76
| | | | * Merge with mainline; tag is carlton_dictionary-20030627-merge.
* 2003-05-23 David Carlton <carlton@bactrian.org>David Carlton2003-05-231-18/+22
| | | | * Merge with mainline; tag is carlton_dictionary-20030523-merge.
* 2003-04-30 David Carlton <carlton@bactrian.org>David Carlton2003-05-011-3/+0
| | | | | | | | | | | | | | | | | | | | * cp-namespace.c (get_namespace_objfile): Copy the namespace objfile's name. * block.h (ALL_BLOCK_SYMBOLS): Move here from dictionary.h. * dictionary.c: Sync up with mainline version I just posted. Specifically, update some commments, and: (dict_create_hashed): Fiddle with nsyms updating. (dict_create_linear): Ditto. (dict_lookup): Delete. (iterator_next_hashed): Delete FIXME comment. (iter_name_first_hashed): Replace 'sym' by 'sym != NULL'. (iter_name_next_hashed): Replate 'next' by 'next != NULL'. * dictionary.h: Sync up with mainline version I just posted: add inclusion guards, delete declaration of dict_lookup, delete ALL_BLOCK_SYMBOLs. * Merge with mainline; tag is carlton_dictionary-20030430-merge.
* 2003-03-07 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * symtab.c (lookup_partial_symbol): Replace uses of SYMBOL_MATCHES_NATURAL_NAME by equivalent uses of SYMBOL_NATURAL_NAME, strcmp_iw. * symtab.h (SYMBOL_MATCHES_NATURAL_NAME): Delete. * minsyms.c (lookup_minimal_symbol_linkage): Make static. (lookup_minimal_symbol_natural): Ditto. (lookup_minimal_symbol): Only search on linkage names; rename first argument to 'linkage_name'. (lookup_minimal_symbol_linkage): Delete. (lookup_minimal_symbol_natural): Delete. (add_minsym_to_demangled_hash_table): Go back to using SYMBOL_DEMANGLED_NAME instead of SYMBOL_NATURAL_NAME. (lookup_minimal_symbol_aux): Don't use SYMBOL_MATCHES_NATURAL_NAME: do a strcmp_iw on SYMBOL_DEMANGLED_NAME instead. Add comment. (build_minimal_symbol_hash_tables): Go back to only adding to demangled has table if SYMBOL_DEMANGLED_NAME is non-NULL. * symtab.h: Delete declarations for lookup_minimal_symbol_linkage and lookup_minimal_symbol_natural. * valops.c (find_function_in_inferior): Use lookup_symbol_linkage instead of lookup_symbol. Change comment. * remote.c (remote_check_symbols): Use lookup_minimal_symbol_linkage_or_natural instead of lookup_minimal_symbol, but add FIXME comment as well. * objc-lang.c: Ditto. * c-exp.y: Use lookup_minimal_symbol_linkage_or_natural instead of lookup_minimal_symbol. * p-exp.y: Ditto. * objc-exp.y: Ditto. * m2-exp.y: Ditto. * jv-exp.y (push_expression_name): Ditto. * f-exp.y: Ditto. * printcmd.c (address_info): Ditto. * symtab.h: Declare lookup_minimal_symbol_linkage_or_natural. * minsyms.c (lookup_minimal_symbol_linkage_or_natural): New. * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME. * tracepoint.c (scope_info): Ditto. * symtab.c (find_pc_sect_line): Ditto. * stabsread.c (define_symbol): Ditto. * sol-thread.c (info_cb): Ditto. * printcmd.c (address_info): Ditto. * hppa-tdep.c (hppa_fix_call_dummy): Ditto. (hppa_in_solib_call_trampoline): Ditto. * findvar.c (read_var_value): Ditto.
* 2003-03-05 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-061-2/+19
| | | | * Merge with mainline. Tag is carlton_dictionary-20030305-merge.
* 2002-11-15 David Carlton <carlton@math.stanford.edu>David Carlton2002-11-151-1/+2
| | | | * Merge from mainline; tag is carlton_dictionary-20021115-merge.
* * remote.c (remote_open_1): Add async_p.Daniel Jacobowitz2002-08-181-142/+31
| | | | | | | | (remote_async_open_1): Delete. (open_remote_target): Delete. (remote_open, extended_remote_open): Update calls to remote_open_1. (remote_async_open, extended_remote_async_open): Call remote_open_1 instead of remote_async_open_1.
* * remote.c (remote_insert_hw_breakpoint)Grace Sainsbury2002-08-161-6/+10
| | | | | (remote_remove_hw_breakpoint): Fix calculation of length field for Z-packet.
* * remote.c: (remote_wait, remote_async_wait): Add check for awatchGrace Sainsbury2002-08-091-28/+162
| | | | | | | | | | | | | | | | | | | | | | | | T-packets; the 'a' is not taken as a register number. (remote_check_watch_resources, remote_stopped_by_watchpoint) (remote_stopped_data_address): New functions; add to target vector. (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change prototypes to match other implementations of this function. replace integer argument with pointer -- the length field in the Z-packet is the length of what is pointed to or 1 if pointer is null. Add to target vector. (remote_insert_watchpoint, remote_remove_watchpoint): Add to target vector. From Mark Salter: * remote.c (remote_wait): Add support to extract optional watchpoint information from T-packet. Ignore unrecognized optional info in T-packet. (remote_async_wait): Ditto. doc: From Mark Salter: * gdb.texinfo (Protocol): Document T packet extension to allow watchpoint address reporting.
* * remote.c (remote_wait, remote_async_wait): ChangeGrace Sainsbury2002-08-081-4/+4
| | | | | | thread_num from int to ULONGEST. (unpack_varlen_hex): Change result parameter from int * to ULONGEST *.
* Fix error check in remote_read_bytesMark Salter2002-07-231-1/+3
|
* Fix some K&R isms.Andrew Cagney2002-07-111-1/+1
|
* * command.h (add_setshow_auto_boolean_cmd): ReplaceAndrew Cagney2002-06-151-38/+43
| | | | | | | | | | | | | | | | | | | | | | | | | add_set_auto_boolean_cmd. * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace add_set_auto_boolean_cmd. * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration. * mips-tdep.c (_initialize_mips_tdep): Update ``set mips mask-address'' command. (show_mask_address): Add cmd parameter. * remote.c (add_packet_config_cmd): Update. Change type of set_func and show_func to cmd_sfunc_ftype. (_initialize_remote): Update `set remote Z-packet' (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter. (show_remote_protocol_e_packet_cmd): Ditto. (show_remote_protocol_E_packet_cmd): Ditto. (show_remote_protocol_P_packet_cmd): Ditto. (show_remote_protocol_Z_software_bp_packet_cmd): Ditto. (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto. (show_remote_protocol_Z_write_wp_packet_cmd): Ditto. (show_remote_protocol_Z_read_wp_packet_cmd): Ditto. (show_remote_protocol_Z_access_wp_packet_cmd): Ditto. (show_remote_protocol_Z_packet_cmd): Ditto. (show_remote_protocol_binary_download_cmd): Ditto. (show_remote_cmd): Pass NULL to all of above.
* * cli/cli-decode.c (add_setshow_boolean_cmd): ReplaceAndrew Cagney2002-06-151-5/+5
| | | | | | | | | | | | | | add_set_boolean_cmd. (add_setshow_cmd): New function. * command.h (add_setshow_boolean_cmd): Replace add_set_boolean_cmd. * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat'' and ``set rdiromatzero''. * maint.c (_initialize_maint_cmds): Update commented out code. * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration. * target.c (initialize_targets): Update `set trust-readonly-sections'. * remote.c (_initialize_remote): Update `set remotebreak'.
* * defs.h (auto_boolean): Declare enum.Andrew Cagney2002-06-151-12/+12
| | | | | | | | | | | | | | | | | | * command.h (cmd_auto_boolean): Delete enum. * mips-tdep.c (mask_address_var): Update. (mips_mask_address_p): Update. (show_mask_address): Update. * remote.c (struct packet_config): Update. (update_packet_config): Update. (show_packet_config_cmd): Update. (packet_ok): Update. (add_packet_config_cmd): Update. (_initialize_remote): * command.h: Update. * cli/cli-setshow.c (parse_auto_binary_operation): Update. (do_setshow_command): Update. * cli/cli-decode.c (add_set_auto_boolean_cmd): Update. * cli/cli-decode.h: Update.
* From Fernando Nasser:Andrew Cagney2002-05-191-6/+12
| | | | | | | * remote.c (remote_async_open_1): Re-throw the exception when the connection fails. (remote_cisco_open): Ditto. (remote_open_1): Ditto.
* * remote.c (remote_start_remote_dummy): Add uiout parameter.Andrew Cagney2002-05-191-21/+44
| | | | | | | | (remote_start_remote): Add uiout parameter. Pass through to remote_start_remote_dummy. (remote_open_1): Use catch_exception instead of catch_errors. (remote_async_open_1): Ditto. (remote_cisco_open): Ditto.
* * remote.c (remote_start_remote): Replace PTR with void pointer.Andrew Cagney2002-05-191-4/+4
| | | | | (sigint_remote_twice_token, sigint_remote_token): Ditto. Make static.
* 2002-05-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-05-141-3/+23
| | | | | | | | | | | | | | | * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open and tcp_close to net_open and net_close. (net_open): Accept "udp:" and "tcp:" specifications. Connect using UDP if requested. Don't try to disable Nagle on UDP sockets. * remote.c (remote_serial_open): New function. Warn about UDP. (remote_open_1, remote_async_open_1, remote_cisco_open): Call it. 2002-05-14 Daniel Jacobowitz <drow@mvista.com> * gdb.texinfo (Debug Session): Document new `udp:' and `tcp:' options for `target remote'.
* * gdbarch.sh (gdbarch_data): Add gdbarch parameter.Andrew Cagney2002-05-121-1/+1
| | | | | | | | | | | * gdbarch.h, gdbarch.c: Regenerate. * gnu-v3-abi.c: Update copyright. (vtable_address_point_offset): Update. (gnuv3_rtti_type): Update. (gnuv3_baseclass_offset): Update. * solib-svr4.c (svr4_fetch_link_map_offsets): Update. (init_fetch_link_map_offsets): Update. * remote.c (get_remote_state): Update.
* 2002-04-12 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-04-131-1/+1
| | | | * Remote.c: Spelling fix.
* * defs.h (error): Add printf format attribute.Andrew Cagney2002-03-231-2/+2
| | | | | | | | | | | * thread-db.c (thread_from_lwp): Fix error format string. * stack.c (parse_frame_specification): Ditto. * cli/cli-decode.c (undef_cmd_error): Ditto. * scm-lang.c (scm_lookup_name): Ditto. * tracepoint.c (trace_error): Ditto. * remote-utils.c (usage): Ditto. * remote.c (compare_sections_command): Ditto. Fix PR gdb/328.
* * remote.c (_initialize_remote): By default, disable ``e'' andAndrew Cagney2002-02-271-0/+8
| | | | ``E'' step out-of-range packets.
* * defs.h (throw_exception): Rename return_to_top_level. UpdateAndrew Cagney2002-02-101-2/+2
| | | | | | | | | | | | | | | | comments. * utils.c (error_stream, internal_verror, quit): Ditto. * top.c (throw_exception, catcher): Ditto. * sparclet-rom.c (sparclet_load): Ditto. * remote.c (interrupt_query, minitelnet): Ditto. * remote-sds.c (interrupt_query): Ditto. * remote-mips.c (mips_error, mips_kill): Ditto. * ocd.c (interrupt_query): Ditto. * monitor.c (monitor_interrupt_query): Ditto. * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto. * target.h: Update comment. * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
* * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.Andrew Cagney2002-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (do_sfunc, set_cmd_sfunc): New functions. * command.h (struct cmd_list_element): Add field func. * cli/cli-decode.h (struct cmd_list_element): Ditto. * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare. * cli/cli-decode.h: Ditto. * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc. (help_all, help_cmd_list): Ditto. (find_cmd, complete_on_cmdlist): Ditto. * top.c (execute_command): Ditto. * cli/cli-setshow.c (do_setshow_command): Call func instead of function.sfunc. * infcmd.c (notice_args_read): Fix function signature. * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc. * cli/cli-decode.c (add_set_cmd): Ditto. * utils.c (initialize_utils): Ditto. * maint.c (_initialize_maint_cmds): Ditto. * infrun.c (_initialize_infrun): Ditto. * demangle.c (_initialize_demangler): Ditto. * remote.c (add_packet_config_cmd): Ditto. * mips-tdep.c (_initialize_mips_tdep): Ditto. * cris-tdep.c (_initialize_cris_tdep): Ditto. * proc-api.c (_initialize_proc_api): Ditto. * kod.c (_initialize_kod): Ditto. * valprint.c (_initialize_valprint): Ditto. * top.c (init_main): Ditto. * infcmd.c (_initialize_infcmd): Ditto. * corefile.c (_initialize_core): Ditto. * arm-tdep.c (_initialize_arm_tdep): Ditto. * arch-utils.c (initialize_current_architecture): Ditto. (_initialize_gdbarch_utils): Ditto. * alpha-tdep.c (_initialize_alpha_tdep): Ditto. * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc. * wince.c (_initialize_inftarg): Ditto. * symfile.c (_initialize_symfile): Ditto. * mips-tdep.c (_initialize_mips_tdep): Ditto. * language.c (_initialize_language): Ditto. * arc-tdep.c (_initialize_arc_tdep): Ditto.
* Remove ATTRIBUTE_UNUSED. Update (C).Andrew Cagney2002-01-191-2/+1
|
* Remove else clause to #if UI_OUT.Andrew Cagney2002-01-171-7/+3
|
* s/BIG_ENDIAN/BFD_ENDIAN_BIG/Andrew Cagney2002-01-051-1/+1
|
* * remote.c (struct packet_reg): Add field in_g_packet.Andrew Cagney2001-12-201-29/+50
| | | | | | | | | | (struct remote_state): Rename field g_packet to regs; (free_remote_state): Update. (init_remote_state): Add pseudo-registers to table. Initialize in_g_packet. Drop sentinal from table. (packet_reg_from_regnum, packet_reg_from_pnum): Update. (remote_fetch_registers): Handle registers not in the g-packet. (remote_store_registers): Ditto.
* Use ISO C long strings.Andrew Cagney2001-11-191-9/+8
|
* * remote.c (struct packet_reg): Declare.Andrew Cagney2001-11-151-59/+121
| | | | | | | | | | | | (struct remote_state): Add fields sizeof_g_packet and g_packet. (init_remote_state): Initialize sizeof_g_packet and g_packet. (free_remote_state): Free g_packet. (packet_reg_from_pnum, packet_reg_by_regnum): New functions. (remote_wait): Use above instead of gdbarch methods REGISTER_RAW_SIZE and REGISTER_BYTES. (remote_async_wait): Ditto. (remote_fetch_registers, remote_store_registers): Ditto. (store_register_using_P): Ditto.
* Really zap tty_input from multi-arch swap.Andrew Cagney2001-11-151-1/+0
|
* * TODO (register_buffer): Delete.Andrew Cagney2001-11-151-8/+18
| | | | | | | | | | | * regcache.c (register_buffer): Make static. (regcache_collect): New function. * regcache.h (register_buffer): Delete declaration. (regcache_collect): Declare. * remote.c (store_register_using_P): Rewrite using regcache_collect. (remote_store_registers): Ditto. * go32-nat.c (store_register): Ditto.
* Move global state variables to ``struct remote_state''.Andrew Cagney2001-11-151-147/+205
|
* * remote.c: Include "gdb_assert.h".Andrew Cagney2001-11-151-6/+5
| | | | | | | (tty_input): Wire buffer to 400 bytes. (readsocket): Check tty_input doesn't overflow. (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch tty_input.
* Add explicit #include of "value.h".Andrew Cagney2001-10-211-0/+1
|
* * cli/cli-decode.c (add_set_boolean_cmd): Define.Andrew Cagney2001-09-301-4/+3
| | | | | | | * cli/cli-decode.h (add_set_boolean_cmd): Declare. * command.h (add_set_boolean_cmd): Ditto. * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set remotebreak"
* 2001-08-10 Orjan Friberg <orjanf@axis.com>Orjan Friberg2001-08-101-1/+1
| | | | * remote.c (read_frame): Correct off-by-one error in condition.
* * remote.c (init_remote_ops, init_remote_cisco_ops,Nicholas Duffek2001-07-171-3/+5
| | | | | | init_remote_async_ops): Set to_pid_to_str and to_extra_thread_info correctly and in the same order as declared in target.h.
* Revert previous, included more than intended.Andrew Cagney2001-07-171-19/+9
|
* * remote.c (init_remote_ops, init_remote_cisco_ops,Nicholas Duffek2001-07-161-9/+19
| | | | | | init_remote_async_ops): Set to_pid_to_str and to_extra_thread_info correctly and in the same order as declared in target.h.
* * serial.h (SERIAL_ASYNC): Delete.Andrew Cagney2001-07-151-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | (DEPRECATED_SERIAL_FD): Delete. (SERIAL_DEBUG): Delete. (SERIAL_DEBUG_P): Delete. (SERIAL_DRAIN_OUTPUT): Delete. (SERIAL_FLUSH_OUTPUT): Delete. (SERIAL_FLUSH_INPUT): Delete. (SERIAL_SEND_BREAK): Delete. (SERIAL_RAW): Delete. (SERIAL_GET_TTY_STATE): Delete. (SERIAL_SET_TTY_STATE): Delete. (SERIAL_PRINT_TTY_STATE): Delete. (SERIAL_NOFLUSH_SET_TTY_STATE): Delete. (SERIAL_SETBAUDRATE): Delete. (SERIAL_SETSTOPBITS): Delete. (SERIAL_CAN_ASYNC_P): Delete. (SERIAL_IS_ASYNC_P): Delete. (SERIAL_UN_FDOPEN): Delete. (SERIAL_READCHAR): Delete. (SERIAL_CLOSE): Delete. (SERIAL_FDOPEN): Delete. (SERIAL_OPEN): Delete.
* s/typedef serial_t/struct serial */Andrew Cagney2001-07-111-2/+2
|
* 2001-06-14 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-06-141-5/+94
| | | | | | | | | | | | | | * remote.c (show_remote_protocol_qSymbol_packet_cmd, set_remote_protocol_qSymbol_packet_cmd): New functions. (init_all_packet_configs, show_remote_cmd): Add qSymbol packet. (remote_check_symbols): New function. Implement qSymbol packet, allowing target to request symbol lookup service from gdb. (remote_open_1, remote_async_open_1): Call remote_check_symbols, allowing symbol lookup from exec_bfd on connection to target. (remote_new_objfile): New function. Catch new objfile notifications from shared library module, and call remote_check_symbols. (_initialize_remote): Hook remote_new_objfile into the shared library notification chain. Add "set remote symbol-lookup" command.
* 2001-05-25 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-05-251-0/+1
| | | | * remote.c (remote_write_bytes): Update 'p' packet pointer.