| 1 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 2 | |
| 3 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, |
| 4 | gdbserver/lynx-ppc-low.c: New files. |
| 5 | * Makefile.in (lynx_low_h): New variable. |
| 6 | (lynx-low.o, lynx-ppc-low.o): New rules. |
| 7 | * configure.ac: On LynxOS, link with -lnetinet. |
| 8 | * configure.srv: Add handling of powerpc-*-lynxos* targets. |
| 9 | * configure: regenerate. |
| 10 | |
| 11 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 12 | |
| 13 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. |
| 14 | * configure.ac: Add check for vasprintf and vsnprintf. |
| 15 | * configure, config.in: Regenerate. |
| 16 | * server.h (vasprintf, vsnprintf): Add conditional declarations. |
| 17 | |
| 18 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 19 | |
| 20 | * gdbreplay.c: Move include of alloca.h up, next to include of |
| 21 | malloc.h. |
| 22 | * server.h: Add include of malloc.h. |
| 23 | * mem-break.c: Remove include of malloc.h. |
| 24 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. |
| 25 | |
| 26 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 27 | |
| 28 | * Makefile.in (memmem.o): Build with -Wno-error. |
| 29 | |
| 30 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 31 | |
| 32 | * utils.c (xsnprintf): Make non-static. |
| 33 | * server.h: Add xsnprintf declaration. |
| 34 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: |
| 35 | replace calls to snprintf by calls to xsnprintf throughout. |
| 36 | |
| 37 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 38 | |
| 39 | * configure.ac: Add configure check for alloca. |
| 40 | * configure, config.in: Regenerate. |
| 41 | * server.h: Include alloca.h if it exists. |
| 42 | * gdbreplay.c: Include alloca.h if it exists. |
| 43 | |
| 44 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
| 45 | |
| 46 | * linux-low.c (__SIGRTMIN): Define if not already defined. |
| 47 | (linux_create_inferior): Check for __ANDROID__ rather than |
| 48 | __SIGRTMIN. |
| 49 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that |
| 50 | are already deferred. |
| 51 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. |
| 52 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is |
| 53 | stopped and already has a pending signal to report. |
| 54 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has |
| 55 | a pending signal to report or is moving out of a jump pad. |
| 56 | (linux_init_signals): Check for __ANDROID__ rather than |
| 57 | __SIGRTMIN. |
| 58 | |
| 59 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
| 60 | |
| 61 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a |
| 62 | debug_threads check. Avoid a linear search when not doing debug |
| 63 | output. |
| 64 | |
| 65 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
| 66 | |
| 67 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. |
| 68 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. |
| 69 | (struct file_handler) <fd>: Change type to gdb_fildes_t. |
| 70 | (process_event): Change local fd's type to gdb_fildes_t. |
| 71 | (create_file_handler): Adjust prototype. |
| 72 | (delete_file_handler): Adjust prototype. |
| 73 | (handle_file_event): Adjust prototype. Use pfildes. |
| 74 | (create_file_event): Adjsut prototype. |
| 75 | * remote-utils.c (remote_desc, listen_desc): Change type to |
| 76 | gdb_fildes_t. |
| 77 | * server.h: New gdb_fildes_t typedef. |
| 78 | [USE_WIN32API]: Include winsock2.h. |
| 79 | (delete_file_handler, add_file_handler): Adjust prototypes. |
| 80 | (pfildes): Declare. |
| 81 | * utils.c (pfildes): New. |
| 82 | |
| 83 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
| 84 | |
| 85 | * configure.ac (build_warnings): Add -Wno-char-subscripts. |
| 86 | * configure: Regenerate. |
| 87 | |
| 88 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
| 89 | |
| 90 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... |
| 91 | (linux_done_accessing_memory): ... this. |
| 92 | (linux_target_ops): Adjust. |
| 93 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. |
| 94 | * nto-low.c (nto_target_ops): Adjust comment. |
| 95 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. |
| 96 | * spu-low.c (spu_target_ops): Adjust comment. |
| 97 | * target.h (target_ops): Rename unprepare_to_access_memory field |
| 98 | to done_accessing_memory. |
| 99 | (unprepare_to_access_memory): Rename to ... |
| 100 | (done_accessing_memory): ... this. |
| 101 | |
| 102 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 103 | |
| 104 | * linux-low.c (linux_prepare_to_access_memory): New. |
| 105 | (linux_unprepare_to_access_memory): New. |
| 106 | (linux_target_ops): Install them. |
| 107 | * server.c (read_memory): Rename to ... |
| 108 | (gdb_read_memory): ... this. Use |
| 109 | prepare_to_access_memory/prepare_to_access_memory. |
| 110 | (write_memory): Rename to ... |
| 111 | (gdb_write_memory): ... this. Use |
| 112 | prepare_to_access_memory/prepare_to_access_memory. |
| 113 | (handle_search_memory_1): Adjust. |
| 114 | (process_serial_event): Adjust. |
| 115 | * target.h (struct target_ops): New fields |
| 116 | prepare_to_access_memory and unprepare_to_access_memory. |
| 117 | (prepare_to_access_memory, unprepare_to_access_memory): New. |
| 118 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use |
| 119 | prepare_to_access_memory/prepare_to_access_memory. |
| 120 | * nto-low.c (nto_target_ops): Adjust. |
| 121 | * spu-low.c (spu_target_ops): Adjust. |
| 122 | * win32-low.c (win32_target_ops): Adjust. |
| 123 | |
| 124 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 125 | |
| 126 | * Makefile.in (WARN_CFLAGS): Get it from configure. |
| 127 | (WERROR_CFLAGS): New. |
| 128 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. |
| 129 | * configure.ac: Introduce --enable-werror, which adds -Werror to |
| 130 | the compiler command line. Enabled by default. Disable with |
| 131 | --disable-werror. Add -Wdeclaration-after-statement |
| 132 | Wpointer-arith and -Wformat-nonliteral to warning flags. |
| 133 | * configure: Regenerate. |
| 134 | |
| 135 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 136 | |
| 137 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. |
| 138 | |
| 139 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 140 | |
| 141 | * gdbreplay.c (remote_error): New. |
| 142 | (gdbchar): New. |
| 143 | (expect): Use gdbchar. Check for error reading from GDB. |
| 144 | Clarify sync error output. |
| 145 | (play): Check for errors writing to GDB. |
| 146 | * linux-low.c (sigchld_handler): Really ignore `write' errors. |
| 147 | * remote-utils.c (getpkt): Check for errors writing to the remote |
| 148 | descriptor. |
| 149 | |
| 150 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
| 151 | |
| 152 | * linux-low.c (linux_wait_1): Move non-debugging code out of |
| 153 | `debug_threads' control. |
| 154 | |
| 155 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
| 156 | |
| 157 | * linux-low.c (linux_wait_1): Don't set last_status here. |
| 158 | * server.c (push_event, queue_stop_reply_callback): Assert we're |
| 159 | not pushing a TARGET_WAITKIND_IGNORE event. |
| 160 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) |
| 161 | (myresume, handle_target_event): Set the thread's last_resume_kind |
| 162 | and last_status from the target returned status. |
| 163 | |
| 164 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
| 165 | |
| 166 | PR threads/10729 |
| 167 | |
| 168 | * linux-x86-low.c (update_debug_registers_callback): New. |
| 169 | (i386_dr_low_set_addr): Use it. |
| 170 | (i386_dr_low_get_addr): New. |
| 171 | (i386_dr_low_set_control): Use update_debug_registers_callback. |
| 172 | (i386_dr_low_get_control): New. |
| 173 | (i386_dr_low_get_status): Adjust. |
| 174 | * linux-low.c (linux_stop_lwp): New. |
| 175 | * linux-low.h (linux_stop_lwp): Declare. |
| 176 | |
| 177 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as |
| 178 | argument instead of a i386_debug_reg_state. |
| 179 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of |
| 180 | a i386_debug_reg_state. |
| 181 | (i386_insert_aligned_watchpoint): Adjust. |
| 182 | (i386_remove_aligned_watchpoint): Adjust. |
| 183 | (i386_low_stopped_data_address): Read the debug registers from the |
| 184 | inferior instead of from the mirrors. |
| 185 | * i386-low.h (struct i386_debug_reg_state): Extend comment. |
| 186 | (i386_dr_low_get_addr): Declare. |
| 187 | (i386_dr_low_get_control): Declare. |
| 188 | (i386_dr_low_get_status): Change prototype. |
| 189 | |
| 190 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. |
| 191 | (i386_dr_low_get_addr): New. |
| 192 | (i386_dr_low_get_control): New. |
| 193 | (i386_dr_low_get_status): Adjust prototype. Return |
| 194 | dr_status_mirror. |
| 195 | (i386_initial_stuff): Clear dr_status_mirror and |
| 196 | dr_control_mirror. |
| 197 | (i386_get_thread_context): Adjust. |
| 198 | (i386_set_thread_context): Adjust. |
| 199 | (i386_thread_added): Adjust. |
| 200 | |
| 201 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
| 202 | |
| 203 | * linux-low.h (linux_thread_area): Delete declaration. |
| 204 | |
| 205 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
| 206 | |
| 207 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child |
| 208 | after its termination. |
| 209 | |
| 210 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
| 211 | |
| 212 | * linux-low.c (gdb_wants_lwp_stopped): Delete. |
| 213 | (gdb_wants_all_stopped): Delete. |
| 214 | (linux_wait_1): Don't call them. |
| 215 | * server.c (handle_v_cont): Tag all threads as want-stopped. |
| 216 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that |
| 217 | stopped as "client-wants-stopped". |
| 218 | |
| 219 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
| 220 | |
| 221 | * Makefile.in (signals_h): New. |
| 222 | (server_h): Depend on it. |
| 223 | (server.o): Don't depend on $(signals_def). |
| 224 | (signals.o): Depend on $(signals_def). |
| 225 | |
| 226 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 227 | |
| 228 | * Makefile.in (signals_def): New. |
| 229 | (server_h): Append include/gdb/signals.h and signals_def. |
| 230 | (server.o): Append signals_def. |
| 231 | |
| 232 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 233 | |
| 234 | * server.c (handle_target_event): Use target_signal_to_host for |
| 235 | resume_info.sig initialization. |
| 236 | * target.h (struct thread_resume) <sig>: New comment. |
| 237 | |
| 238 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
| 239 | |
| 240 | * server.c (handle_query): strcpy() the returned string from paddress() |
| 241 | instead of sprintf(). |
| 242 | * utils.c (paddress): Return phex_nz(). |
| 243 | |
| 244 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
| 245 | |
| 246 | * server.c (handle_v_cont): Call mourn_inferior if process |
| 247 | just exited. |
| 248 | (myresume): Likewise. |
| 249 | |
| 250 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
| 251 | |
| 252 | Static tracepoints, and integration with UST. |
| 253 | |
| 254 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. |
| 255 | * mem-break.c (uninsert_all_breakpoints) |
| 256 | (reinsert_all_breakpoints): New. |
| 257 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): |
| 258 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. |
| 259 | (gdb_agent_ust_loaded, helper_thread_id) |
| 260 | (gdb_agent_helper_thread_id): New macros. |
| 261 | (struct ipa_sym_addresses): Add addr_ust_loaded, |
| 262 | addr_helper_thread_id, addr_cmd_buf. |
| 263 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. |
| 264 | (in_process_agent_loaded_ust): New. |
| 265 | (write_e_ust_not_loaded): New. |
| 266 | (maybe_write_ipa_ust_not_loaded): New. |
| 267 | (struct collect_static_trace_data_action): New. |
| 268 | (enum tracepoint_type) <static_tracepoint>: New. |
| 269 | (struct tracepoint) <handle>: Mention static tracepoints. |
| 270 | (struct static_tracepoint_ctx): New. |
| 271 | (CMD_BUF_SIZE): New. |
| 272 | (add_tracepoint_action): Handle static tracepoint actions. |
| 273 | (unprobe_marker_at): New. |
| 274 | (clear_installed_tracepoints): Handle static tracepoints. |
| 275 | (cmd_qtdp): Handle static tracepoints. |
| 276 | (probe_marker_at): New. |
| 277 | (cmd_qtstart): Handle static tracepoints. |
| 278 | (response_tracepoint): Handle static tracepoints. |
| 279 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. |
| 280 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. |
| 281 | (get_context_regcache): Handle static tracepoints. |
| 282 | (do_action_at_tracepoint): Handle static tracepoint actions. |
| 283 | (traceframe_find_block_type): Handle static trace data blocks. |
| 284 | (traceframe_read_sdata): New. |
| 285 | (download_tracepoints): Download static tracepoint actions. |
| 286 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. |
| 287 | (GDB_PROBE_NAME): New. |
| 288 | (ust_ops): New. |
| 289 | (GET_UST_SYM): New. |
| 290 | (USTF): New. |
| 291 | (dlsym_ust): New. |
| 292 | (ust_marker_to_static_tracepoint): New. |
| 293 | (gdb_probe): New. |
| 294 | (collect_ust_data_at_tracepoint): New. |
| 295 | (gdb_ust_probe): New. |
| 296 | (UNIX_PATH_MAX, SOCK_DIR): New. |
| 297 | (gdb_ust_connect_sync_socket): New. |
| 298 | (resume_thread, stop_thread): New. |
| 299 | (run_inferior_command): New. |
| 300 | (init_named_socket): New. |
| 301 | (gdb_ust_socket_init): New. |
| 302 | (cstr_to_hexstr): New. |
| 303 | (next_st): New. |
| 304 | (first_marker, next_marker): New. |
| 305 | (response_ust_marker): New. |
| 306 | (cmd_qtfstm, cmd_qtsstm): New. |
| 307 | (unprobe_marker_at, probe_marker_at): New. |
| 308 | (cmd_qtstmat, gdb_ust_thread): New. |
| 309 | (gdb_ust_init): New. |
| 310 | (initialize_tracepoint_ftlib): Call gdb_ust_init. |
| 311 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h |
| 312 | (ST_REGENTRY): New. |
| 313 | (x86_64_st_collect_regmap): New. |
| 314 | (X86_64_NUM_ST_COLLECT_GREGS): New. |
| 315 | (AMD64_RIP_REGNUM): New. |
| 316 | (supply_static_tracepoint_registers): New. |
| 317 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h |
| 318 | (ST_REGENTRY): New. |
| 319 | (i386_st_collect_regmap): New. |
| 320 | (i386_NUM_ST_COLLECT_GREGS): New. |
| 321 | (supply_static_tracepoint_registers): New. |
| 322 | * server.c (handle_query): Handle qXfer:statictrace:read. |
| 323 | <qSupported>: Report support for StaticTracepoints, and |
| 324 | qXfer:statictrace:read features. |
| 325 | * server.h (traceframe_read_sdata) |
| 326 | (supply_static_tracepoint_registers): Declare. |
| 327 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) |
| 328 | (unpack_varlen_hex): Include in IPA build. |
| 329 | * Makefile.in (ustlibs, ustinc): New. |
| 330 | (IPA_OBJS): Add remote-utils-ipa.o. |
| 331 | ($(IPA_LIB)): Link -ldl and -lpthread. |
| 332 | (UST_CFLAGS): New. |
| 333 | (IPAGENT_CFLAGS): Add UST_CFLAGS. |
| 334 | * config.in, configure: Regenerate. |
| 335 | |
| 336 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
| 337 | Pedro Alves <pedro@codesourcery.com> |
| 338 | |
| 339 | * linux-x86-low.c (always_true): Delete. |
| 340 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of |
| 341 | trying to fool the compiler with always_true. |
| 342 | |
| 343 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
| 344 | |
| 345 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled |
| 346 | conditions in gdbserver. |
| 347 | |
| 348 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
| 349 | |
| 350 | * spu-low.c (spu_read_memory): Wrap around local store limit. |
| 351 | (spu_write_memory): Likewise. |
| 352 | |
| 353 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
| 354 | |
| 355 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) |
| 356 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with |
| 357 | LONGEST uses. |
| 358 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST |
| 359 | uses. |
| 360 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t |
| 361 | uses with LONGEST uses. |
| 362 | |
| 363 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
| 364 | Pedro Alves <pedro@codesourcery.com> |
| 365 | |
| 366 | Bytecode compiler. |
| 367 | |
| 368 | * linux-x86-low.c: Include limits.h. |
| 369 | (add_insns): New. |
| 370 | (always_true): New. |
| 371 | (EMIT_ASM): New. |
| 372 | (EMIT_ASM32): New. |
| 373 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) |
| 374 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) |
| 375 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, |
| 376 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) |
| 377 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, |
| 378 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, |
| 379 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) |
| 380 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) |
| 381 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) |
| 382 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) |
| 383 | (amd64_emit_void_call_2): New. |
| 384 | (amd64_emit_ops): New. |
| 385 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) |
| 386 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) |
| 387 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) |
| 388 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) |
| 389 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) |
| 390 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) |
| 391 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) |
| 392 | (i386_emit_call, i386_emit_reg, i386_emit_pop) |
| 393 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) |
| 394 | (i386_emit_stack_adjust, i386_emit_int_call_1) |
| 395 | (i386_emit_void_call_2): New. |
| 396 | (i386_emit_ops): New. |
| 397 | (x86_emit_ops): New. |
| 398 | (the_low_target): Install x86_emit_ops. |
| 399 | * server.h (struct emit_ops): New. |
| 400 | (get_raw_reg_func_addr): Declare. |
| 401 | (current_insn_ptr, emit_error): Declare. |
| 402 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) |
| 403 | (set_trace_state_variable_value): New defines. |
| 404 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, |
| 405 | addr_get_trace_state_variable_value and |
| 406 | addr_set_trace_state_variable_value. |
| 407 | (symbol_list): New fields for get_raw_reg, |
| 408 | get_trace_state_variable_value and set_trace_state_variable_value. |
| 409 | (condfn): New typedef. |
| 410 | (struct tracepoint): New field `compiled_cond'. |
| 411 | (do_action_at_tracepoint): Clear compiled_cond. |
| 412 | (get_trace_state_variable_value, set_trace_state_variable_value): |
| 413 | Export in the IPA. |
| 414 | (condition_true_at_tracepoint): If there's a compiled condition, |
| 415 | run that. |
| 416 | (current_insn_ptr, emit_error): New globals. |
| 417 | (struct bytecode_address): New. |
| 418 | (get_raw_reg_func_addr): New. |
| 419 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) |
| 420 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) |
| 421 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) |
| 422 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) |
| 423 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) |
| 424 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) |
| 425 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. |
| 426 | (compile_tracepoint_condition, compile_bytecodes): New. |
| 427 | * target.h (emit_ops): Forward declare. |
| 428 | (struct target_ops): New field emit_ops. |
| 429 | (target_emit_ops): New. |
| 430 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. |
| 431 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. |
| 432 | * linux-low.c (linux_emit_ops): New. |
| 433 | (linux_target_ops): Install it. |
| 434 | * linux-low.h (struct linux_target_ops): New field emit_ops. |
| 435 | |
| 436 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
| 437 | |
| 438 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. |
| 439 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. |
| 440 | |
| 441 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
| 442 | Stan Shebs <stan@codesourcery.com> |
| 443 | |
| 444 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. |
| 445 | (all): Depend on $(extra_libraries). |
| 446 | (install-only): Install the IPA. |
| 447 | (IPA_OBJS, IPA_LIB): New. |
| 448 | (clean): Remove the IPA lib. |
| 449 | (IPAGENT_CFLAGS): New. |
| 450 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) |
| 451 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) |
| 452 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. |
| 453 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. |
| 454 | * configure.ac: Check for atomic builtins support in the compiler. |
| 455 | (IPA_DEPFILES, extra_libraries): Define. |
| 456 | * configure.srv (ipa_obj): Add description. |
| 457 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. |
| 458 | (i[34567]86-*-linux*): Set ipa_obj. |
| 459 | (x86_64-*-linux*): Set ipa_obj. |
| 460 | * linux-low.c (stabilizing_threads): New. |
| 461 | (supports_fast_tracepoints): New. |
| 462 | (linux_detach): Stabilize threads before detaching. |
| 463 | (handle_tracepoints): Handle internal tracing breakpoints. Assert |
| 464 | the lwp is either not stabilizing, or is moving out of a jump pad. |
| 465 | (linux_fast_tracepoint_collecting): New. |
| 466 | (maybe_move_out_of_jump_pad): New. |
| 467 | (enqueue_one_deferred_signal): New. |
| 468 | (dequeue_one_deferred_signal): New. |
| 469 | (linux_wait_for_event_1): If moving out of a jump pad, defer |
| 470 | pending signals to later. |
| 471 | (linux_stabilize_threads): New. |
| 472 | (linux_wait_1): Check if threads need moving out of jump pads, and |
| 473 | do it if so. |
| 474 | (stuck_in_jump_pad_callback): New. |
| 475 | (move_out_of_jump_pad_callback): New. |
| 476 | (lwp_running): New. |
| 477 | (linux_resume_one_lwp): Handle moving out of jump pads. |
| 478 | (linux_set_resume_request): Dequeue deferred signals. |
| 479 | (need_step_over_p): Also step over fast tracepoint jumps. |
| 480 | (start_step_over): Also uninsert fast tracepoint jumps. |
| 481 | (finish_step_over): Also reinsert fast tracepoint jumps. |
| 482 | (linux_install_fast_tracepoint_jump): New. |
| 483 | (linux_target_ops): Install linux_stabilize_threads and |
| 484 | linux_install_fast_tracepoint_jump_pad. |
| 485 | * linux-low.h (linux_target_ops) <get_thread_area, |
| 486 | install_fast_tracepoint_jump_pad>: New fields. |
| 487 | (struct lwp_info) <collecting_fast_tracepoint, |
| 488 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. |
| 489 | (linux_get_thread_area): Declare. |
| 490 | * linux-x86-low.c (jump_insn): New. |
| 491 | (x86_get_thread_area): New. |
| 492 | (append_insns): New. |
| 493 | (push_opcode): New. |
| 494 | (amd64_install_fast_tracepoint_jump_pad): New. |
| 495 | (i386_install_fast_tracepoint_jump_pad): New. |
| 496 | (x86_install_fast_tracepoint_jump_pad): New. |
| 497 | (the_low_target): Install x86_get_thread_area and |
| 498 | x86_install_fast_tracepoint_jump_pad. |
| 499 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. |
| 500 | (struct fast_tracepoint_jump): New. |
| 501 | (fast_tracepoint_jump_insn): New. |
| 502 | (fast_tracepoint_jump_shadow): New. |
| 503 | (find_fast_tracepoint_jump_at): New. |
| 504 | (fast_tracepoint_jump_here): New. |
| 505 | (delete_fast_tracepoint_jump): New. |
| 506 | (set_fast_tracepoint_jump): New. |
| 507 | (uninsert_fast_tracepoint_jumps_at): New. |
| 508 | (reinsert_fast_tracepoint_jumps_at): New. |
| 509 | (set_breakpoint_at): Use write_inferior_memory. |
| 510 | (uninsert_raw_breakpoint): Use write_inferior_memory. |
| 511 | (check_mem_read): Mask out fast tracepoint jumps. |
| 512 | (check_mem_write): Mask out fast tracepoint jumps. |
| 513 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. |
| 514 | (set_fast_tracepoint_jump): Declare. |
| 515 | (delete_fast_tracepoint_jump) |
| 516 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) |
| 517 | (reinsert_fast_tracepoint_jumps_at): Declare. |
| 518 | * regcache.c: Don't compile many functions when building the |
| 519 | in-process agent library. |
| 520 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating |
| 521 | the register buffer in the heap. |
| 522 | (free_register_cache): If the register buffer isn't owned by the |
| 523 | regcache, don't free it. |
| 524 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate |
| 525 | pre-existing register caches. |
| 526 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter |
| 527 | type. |
| 528 | (convert_ascii_to_int): : Constify `from' parameter type. |
| 529 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by |
| 530 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc |
| 531 | the needed buffer in-place. |
| 532 | (relocate_instruction): New. |
| 533 | * server.c (handle_query) <qSymbols>: If the target supports |
| 534 | tracepoints, give it a chance of looking up symbols. Report |
| 535 | support for fast tracepoints. |
| 536 | (handle_status): Stabilize threads. |
| 537 | (process_serial_event): Adjust. |
| 538 | * server.h (struct fast_tracepoint_jump): Forward declare. |
| 539 | (struct process_info) <fast_tracepoint_jumps>: New field. |
| 540 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. |
| 541 | (decode_X_packet, decode_M_packet): Adjust. |
| 542 | (relocate_instruction): Declare. |
| 543 | (in_process_agent_loaded): Declare. |
| 544 | (tracepoint_look_up_symbols): Declare. |
| 545 | (struct fast_tpoint_collect_status): Declare. |
| 546 | (fast_tracepoint_collecting): Declare. |
| 547 | (force_unlock_trace_buffer): Declare. |
| 548 | (handle_tracepoint_bkpts): Declare. |
| 549 | (initialize_low_tracepoint) |
| 550 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. |
| 551 | * target.h (struct target_ops) <stabilize_threads, |
| 552 | install_fast_tracepoint_jump_pad>: New fields. |
| 553 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. |
| 554 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. |
| 555 | [HAVE_STDINT_H]: Include stdint.h. |
| 556 | (trace_debug_1): Rename to ... |
| 557 | (trace_vdebug): ... this. |
| 558 | (trace_debug): Rename to ... |
| 559 | (trace_debug_1): ... this. Add `level' parameter. |
| 560 | (trace_debug): New. |
| 561 | (ATTR_USED, ATTR_NOINLINE): New. |
| 562 | (IP_AGENT_EXPORT): New. |
| 563 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) |
| 564 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) |
| 565 | (about_to_request_buffer_space, trace_buffer_is_full) |
| 566 | (stopping_tracepoint, expr_eval_result, error_tracepoint) |
| 567 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) |
| 568 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) |
| 569 | (traceframe_write_count, traceframes_created) |
| 570 | (trace_state_variables) |
| 571 | New renaming defines. |
| 572 | (struct ipa_sym_addresses): New. |
| 573 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. |
| 574 | (symbol_list): New. |
| 575 | (ipa_sym_addrs): New. |
| 576 | (all_tracepoint_symbols_looked_up): New. |
| 577 | (in_process_agent_loaded): New. |
| 578 | (write_e_ipa_not_loaded): New. |
| 579 | (maybe_write_ipa_not_loaded): New. |
| 580 | (tracepoint_look_up_symbols): New. |
| 581 | (debug_threads) [IN_PROCESS_AGENT]: New. |
| 582 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. |
| 583 | (UNKNOWN_SIDE_EFFECTS): New. |
| 584 | (stop_tracing): New. |
| 585 | (flush_trace_buffer): New. |
| 586 | (stop_tracing_bkpt): New. |
| 587 | (flush_trace_buffer_bkpt): New. |
| 588 | (read_inferior_integer): New. |
| 589 | (read_inferior_uinteger): New. |
| 590 | (read_inferior_data_pointer): New. |
| 591 | (write_inferior_data_pointer): New. |
| 592 | (write_inferior_integer): New. |
| 593 | (write_inferior_uinteger): New. |
| 594 | (struct collect_static_trace_data_action): Delete. |
| 595 | (enum tracepoint_type): New. |
| 596 | (struct tracepoint) <type>: New field `type'. |
| 597 | <actions_str, step_actions, step_actions_str>: Only include in GDBserver. |
| 598 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
| 599 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. |
| 600 | (tracepoints): Use IP_AGENT_EXPORT. |
| 601 | (last_tracepoint): Don't include in the IPA. |
| 602 | (stopping_tracepoint): Use IP_AGENT_EXPORT. |
| 603 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. |
| 604 | (alloced_trace_state_variables): New. |
| 605 | (trace_state_variables): Use IP_AGENT_EXPORT. |
| 606 | (traceframe_t): Delete unused variable. |
| 607 | (circular_trace_buffer): Don't include in the IPA. |
| 608 | (trace_buffer_start): Delete. |
| 609 | (struct trace_buffer_control): New. |
| 610 | (trace_buffer_free): Delete. |
| 611 | (struct ipa_trace_buffer_control): New. |
| 612 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) |
| 613 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): |
| 614 | New. |
| 615 | (trace_buffer_ctrl): New. |
| 616 | (TRACE_BUFFER_CTRL_CURR): New. |
| 617 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): |
| 618 | Reimplement as macros. |
| 619 | (trace_buffer_wrap): Delete. |
| 620 | (traceframe_write_count, traceframe_read_count) |
| 621 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. |
| 622 | (struct tracepoint_hit_ctx) <type>: New field. |
| 623 | (struct fast_tracepoint_ctx): New. |
| 624 | (memory_barrier): New. |
| 625 | (cmpxchg): New. |
| 626 | (record_tracepoint_error): Update atomically in the IPA. |
| 627 | (clear_inferior_trace_buffer): New. |
| 628 | (about_to_request_buffer_space): New. |
| 629 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous |
| 630 | updating the same buffer. |
| 631 | (add_tracepoint): Default the tracepoint's type to trap |
| 632 | tracepoint, and orig_size to -1. |
| 633 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated |
| 634 | internal variables. |
| 635 | (create_trace_state_variable): New parameter `gdb'. Handle it. |
| 636 | (clear_installed_tracepoints): Clear fast tracepoint jumps. |
| 637 | (cmd_qtdp): Handle fast tracepoints. |
| 638 | (cmd_qtdv): Adjust. |
| 639 | (max_jump_pad_size): New. |
| 640 | (gdb_jump_pad_head): New. |
| 641 | (get_jump_space_head): New. |
| 642 | (claim_jump_space): New. |
| 643 | (sort_tracepoints): New. |
| 644 | (MAX_JUMP_SIZE): New. |
| 645 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the |
| 646 | IPA. |
| 647 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected |
| 648 | support. Upload fast traceframes, and delete internal IPA |
| 649 | breakpoints. |
| 650 | (stop_tracing_handler): New. |
| 651 | (flush_trace_buffer_handler): New. |
| 652 | (cmd_qtstop): Upload fast tracepoints. |
| 653 | (response_tracepoint): Handle fast tracepoints. |
| 654 | (tracepoint_finished_step): Upload fast traceframes. Set the |
| 655 | tracepoint hit context's tracepoint type. |
| 656 | (handle_tracepoint_bkpts): New. |
| 657 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint |
| 658 | type. Add comment about fast tracepoints. |
| 659 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the |
| 660 | non-existing action_str field. |
| 661 | (get_context_regcache): Handle fast tracepoints. |
| 662 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC |
| 663 | to the regcache. |
| 664 | (fast_tracepoint_from_jump_pad_address): New. |
| 665 | (fast_tracepoint_from_ipa_tpoint_address): New. |
| 666 | (collecting_t): New. |
| 667 | (force_unlock_trace_buffer): New. |
| 668 | (fast_tracepoint_collecting): New. |
| 669 | (collecting): New. |
| 670 | (gdb_collect): New. |
| 671 | (write_inferior_data_ptr): New. |
| 672 | (target_tp_heap): New. |
| 673 | (target_malloc): New. |
| 674 | (download_agent_expr): New. |
| 675 | (UALIGN): New. |
| 676 | (download_tracepoints): New. |
| 677 | (download_trace_state_variables): New. |
| 678 | (upload_fast_traceframes): New. |
| 679 | (IPA_FIRST_TRACEFRAME): New. |
| 680 | (IPA_NEXT_TRACEFRAME_1): New. |
| 681 | (IPA_NEXT_TRACEFRAME): New. |
| 682 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. |
| 683 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) |
| 684 | (gdb_jump_pad_buffer_end): New. |
| 685 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. |
| 686 | (initialize_tracepoint): Adjust. |
| 687 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch |
| 688 | buffer. Initialize the low module. |
| 689 | * utils.c (PREFIX, TOOLNAME): New. |
| 690 | (malloc_failure): Use PREFIX. |
| 691 | (error): In the IPA, an error causes an exit. |
| 692 | (fatal, warning): Use PREFIX. |
| 693 | (internal_error): Use TOOLNAME. |
| 694 | (NUMCELLS): Increase to 10. |
| 695 | * configure, config.in: Regenerate. |
| 696 | |
| 697 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
| 698 | |
| 699 | * server.c (handle_query) <qSupported>: Do two passes over the |
| 700 | qSupported string to avoid nesting strtok. |
| 701 | |
| 702 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 703 | |
| 704 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. |
| 705 | (CDEPS): New. |
| 706 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also |
| 707 | -Wl,--dynamic-list. |
| 708 | * configure: Regenerate. |
| 709 | * proc-service.list: New. |
| 710 | |
| 711 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 712 | |
| 713 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. |
| 714 | New comment. |
| 715 | |
| 716 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
| 717 | |
| 718 | * gdbreplay.c (remote_open): Check error return from socket() call by |
| 719 | its equality to -1 not by it being negative. |
| 720 | * remote-utils.c (remote_open): Likewise. |
| 721 | |
| 722 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
| 723 | |
| 724 | * config.h: Regenerate. |
| 725 | |
| 726 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 727 | |
| 728 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel |
| 729 | doesn't provide PTRACE_GET_THREAD_AREA. |
| 730 | |
| 731 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 732 | |
| 733 | * linux-m68k-low.c: Include <asm/ptrace.h> |
| 734 | (ps_get_thread_area): Implement. |
| 735 | |
| 736 | 2010-05-03 Doug Evans <dje@google.com> |
| 737 | |
| 738 | * event-loop.c (struct callback_event): New struct. |
| 739 | (callback_list): New global. |
| 740 | (append_callback_event, delete_callback_event): New functions. |
| 741 | (process_callback): New function. |
| 742 | (start_event_loop): Call it. |
| 743 | * remote-utils.c (NOT_SCHEDULED): Define. |
| 744 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, |
| 745 | moved out of readchar. |
| 746 | (readchar): Rewrite. Call reschedule before returning. |
| 747 | (reset_readchar): New function. |
| 748 | (remote_close): Call it. |
| 749 | (process_remaining, reschedule): New functions. |
| 750 | * server.h (callback_handler_func): New typedef. |
| 751 | (append_callback_event, delete_callback_event): Declare. |
| 752 | |
| 753 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
| 754 | |
| 755 | * proc-service.c (ps_pglobal_lookup): Use |
| 756 | thread_db_look_up_one_symbol. |
| 757 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' |
| 758 | parameter. Use it instead of all_symbols_looked_up. |
| 759 | * server.h (struct process_info) <all_symbols_looked_up>: Delete |
| 760 | field. |
| 761 | (all_symbols_looked_up): Don't declare. |
| 762 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. |
| 763 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New |
| 764 | field. |
| 765 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. |
| 766 | Set all_symbols_looked_up here. |
| 767 | (thread_db_look_up_one_symbol): New. |
| 768 | (thread_db_get_tls_address): Adjust. |
| 769 | (thread_db_load_search, try_thread_db_load_1): Always allocate the |
| 770 | thread_db object on the heap, and tentatively set it in the |
| 771 | process structure. |
| 772 | (thread_db_init): Don't set all_symbols_looked_up here. |
| 773 | * linux-low.h (thread_db_look_up_one_symbol): Declare. |
| 774 | |
| 775 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
| 776 | |
| 777 | * linux-low.c (linux_kill, linux_detach): Adjust. |
| 778 | (status_pending_p_callback): Remove redundant statement. Check |
| 779 | for !TARGET_WAITIKIND_IGNORE, instead of |
| 780 | TARGET_WAITKIND_STOPPED. |
| 781 | (handle_tracepoints): Make sure LWP is locked. Adjust. |
| 782 | (linux_wait_for_event_1): Adjust. |
| 783 | (linux_cancel_breakpoints): New. |
| 784 | (unsuspend_one_lwp): New. |
| 785 | (unsuspend_all_lwps): New. |
| 786 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. |
| 787 | (send_sigstop_callback): Change return type to int, add new |
| 788 | `except' parameter and handle it. |
| 789 | (suspend_and_send_sigstop_callback): New. |
| 790 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and |
| 791 | pass them down. If SUSPEND, also increment the lwp's suspend |
| 792 | count. |
| 793 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. |
| 794 | (need_step_over_p): Don't consider suspended LWPs. |
| 795 | (start_step_over): Adjust. |
| 796 | (proceed_one_lwp): Change return type to int, add new `except' |
| 797 | parameter and handle it. |
| 798 | (unsuspend_and_proceed_one_lwp): New. |
| 799 | (proceed_all_lwps): Use find_inferior instead of |
| 800 | for_each_inferior. |
| 801 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them |
| 802 | also decrement the suspend count of LWPs. Pass `except' down, |
| 803 | instead of hacking its suspend count. |
| 804 | (linux_pause_all): Add `freeze' parameter. Adjust. |
| 805 | (linux_unpause_all): New. |
| 806 | (linux_target_ops): Install linux_unpause_all. |
| 807 | * server.c (handle_status): Adjust. |
| 808 | * target.h (struct target_ops): New fields `unpause_all' and |
| 809 | `cancel_breakpoints'. Add new parameter to `pause_all'. |
| 810 | (pause_all): Add new `freeze' parameter. |
| 811 | (unpause_all): New. |
| 812 | (cancel_breakpoints): New. |
| 813 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and |
| 814 | cancel breakpoints. |
| 815 | (cmd_qtstart): Pause threads. |
| 816 | (stop_tracing): Pause threads, and cancel breakpoints. |
| 817 | * win32-low.c (win32_target_ops): Adjust. |
| 818 | |
| 819 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
| 820 | |
| 821 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to |
| 822 | the inferior right away from here... |
| 823 | (linux_wait_1): ... to here, and adjust to check the thread's |
| 824 | last_resume_kind instead of the lwp's step or stop_expected flags. |
| 825 | |
| 826 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
| 827 | |
| 828 | * README: Use consistent `GDB' and `GDBserver' spellings. |
| 829 | |
| 830 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
| 831 | |
| 832 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. |
| 833 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. |
| 834 | (linux_detach_one_lwp): Assume the lwp is stopped. |
| 835 | (any_thread_of): Delete. |
| 836 | (linux_detach): Stop all lwps here. Don't blindly delete all |
| 837 | breakpoints. |
| 838 | (delete_lwp_callback): New. |
| 839 | (linux_mourn): Delete all lwps of the process that is gone. |
| 840 | (linux_wait_1): Don't delete the last lwp of the process here. |
| 841 | * mem-break.h (mark_breakpoints_out): Declare. |
| 842 | * mem-break.c (mark_breakpoints_out): New. |
| 843 | (free_all_breakpoints): Use it. |
| 844 | * server.c (handle_target_event): If the process is gone, mark |
| 845 | breakpoints out. |
| 846 | * thread-db.c (struct thread_db) <create_bp>: New field. |
| 847 | (thread_db_enable_reporting): Fix prototype. Store a thread event |
| 848 | breakpoint reference in the thread_db struct. |
| 849 | (thread_db_load_search): Clear the thread_db object. |
| 850 | (try_thread_db_load_1): Ditto. |
| 851 | (switch_to_process): New. |
| 852 | (disable_thread_event_reporting): Use it. |
| 853 | (remove_thread_event_breakpoints): New. |
| 854 | (thread_db_detach, thread_db_mourn): Use it. |
| 855 | |
| 856 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
| 857 | |
| 858 | * linux-low.c (linux_enable_event_reporting): New. |
| 859 | (linux_wait_for_event_1, handle_extended_wait): Use it. |
| 860 | |
| 861 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
| 862 | |
| 863 | * linux-low.c (linux_kill_one_lwp, linux_kill) |
| 864 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. |
| 865 | (send_sigstop): Take an lwp_info as parameter instead. Queue a |
| 866 | SIGSTOP even if the LWP is stopped. |
| 867 | (send_sigstop_callback): New. |
| 868 | (stop_all_lwps): Use send_sigstop_callback instead. |
| 869 | (linux_resume_one_thread): Adjust. |
| 870 | (proceed_one_lwp): Still proceed an LWP that the client has |
| 871 | requested to stop, if we haven't reported it as stopped yet. Make |
| 872 | sure that LWPs the client want stopped, have a pending SIGSTOP. |
| 873 | |
| 874 | 2010-04-26 Doug Evans <dje@google.com> |
| 875 | |
| 876 | * server.c (handle_general_set): Make static. |
| 877 | |
| 878 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
| 879 | Print received char after testing for error/eof instead of before. |
| 880 | (input_interrupt): Tweak comment. |
| 881 | |
| 882 | 2010-04-23 Doug Evans <dje@google.com> |
| 883 | |
| 884 | * server.c (start_inferior): Print inferior argv if --debug. |
| 885 | |
| 886 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
| 887 | |
| 888 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. |
| 889 | * nto-x86-low.c: Include server.h |
| 890 | |
| 891 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
| 892 | |
| 893 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to |
| 894 | be consistent with other sources of this directory. |
| 895 | (init_registers_amd64): Correct name of source file of this function |
| 896 | in the comment. |
| 897 | |
| 898 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 899 | |
| 900 | * configure.srv (x86_64-*-mingw*): New configuration for Windows |
| 901 | 64-bit executables. |
| 902 | |
| 903 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 904 | |
| 905 | * win32-i386-low.c: Add 64-bit support. |
| 906 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. |
| 907 | (init_registers_amd64): Declare. |
| 908 | (mappings): Add 64-bit version of array. |
| 909 | (init_windows_x86): New function. |
| 910 | (the_low_target): Change init_arch field to init_windows_x86. |
| 911 | |
| 912 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 913 | |
| 914 | * win32-low.c: Adapt to support also 64-bit architecture. |
| 915 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. |
| 916 | (get_image_name): Use SIZE_T type for local variable `done'. |
| 917 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. |
| 918 | (toolhelp_get_dll_name): Idem. |
| 919 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. |
| 920 | Use uintptr_t typecast to avoid warning. |
| 921 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. |
| 922 | (handle_exception): Use phex_nz to avoid warning. |
| 923 | (win32_wait): Remove unused local variable `process'. |
| 924 | |
| 925 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 926 | |
| 927 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by |
| 928 | `amd64-avx.o'. |
| 929 | |
| 930 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
| 931 | |
| 932 | * configure.ac: Use `ws2_32' library for srv_mingw. |
| 933 | * configure: Regenerate. |
| 934 | * gdbreplay.c: Include winsock2.h instead of winsock.h. |
| 935 | * remote-utils.c: Likewise. |
| 936 | |
| 937 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
| 938 | |
| 939 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only |
| 940 | if __x86_64__ is defined. |
| 941 | |
| 942 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
| 943 | |
| 944 | * configure: Regenerate. |
| 945 | |
| 946 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
| 947 | |
| 948 | * server.c (handle_query): Handle 'qGetTIBAddr' query. |
| 949 | * target.h (target_ops): New get_tib_address field. |
| 950 | * win32-low.h (win32_thread_info): Add thread_local_base field. |
| 951 | * win32-low.c (child_add_thread): Add tlb argument. |
| 952 | Set thread_local_base field to TLB. |
| 953 | (get_child_debug_event): Adapt to child_add_thread change. |
| 954 | (win32_get_tib_address): New function. |
| 955 | (win32_target_ops): Set get_tib_address field to |
| 956 | win32_get_tib_address. |
| 957 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. |
| 958 | |
| 959 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
| 960 | |
| 961 | * linux-low.c (linux_mourn): Also remove the process. |
| 962 | * server.c (handle_target_event): Don't remove the process here. |
| 963 | * nto-low.c (nto_mourn): New. |
| 964 | (nto_target_ops): Install it. |
| 965 | * spu-low.c (spu_mourn): New. |
| 966 | (spu_target_ops): Install it. |
| 967 | * win32-low.c (win32_mourn): New. |
| 968 | (win32_target_ops): Install it. |
| 969 | |
| 970 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
| 971 | |
| 972 | * server.h (buffer_xml_printf): Remove redundant `;'. |
| 973 | |
| 974 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
| 975 | |
| 976 | * regcache.c (set_register_cache): Invalidate regcaches before |
| 977 | changing the register cache layout. |
| 978 | (regcache_invalidate_one): Allow a NULL regcache. |
| 979 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate |
| 980 | regcaches before changing the register cache layout or the target |
| 981 | regsets. |
| 982 | |
| 983 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
| 984 | |
| 985 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused |
| 986 | variable warning on Linux/x86-64. |
| 987 | |
| 988 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
| 989 | |
| 990 | GDBserver disconnected tracing support. |
| 991 | |
| 992 | * linux-low.c (linux_remove_process): Delete. |
| 993 | (add_lwp): Don't set last_resume_kind here. |
| 994 | (linux_kill): Use `mourn'. |
| 995 | (linux_detach): Use `thread_db_detach', and `mourn'. |
| 996 | (linux_mourn): New. |
| 997 | (linux_attach_lwp_1): Adjust comment. |
| 998 | (linux_attach): last_resume_kind moved the thread_info; adjust. |
| 999 | (status_pending_p_callback): Adjust. |
| 1000 | (linux_wait_for_event_1): Adjust. |
| 1001 | (count_events_callback, select_singlestep_lwp_callback) |
| 1002 | (select_event_lwp_callback, cancel_breakpoints_callback) |
| 1003 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) |
| 1004 | (proceed_one_lwp): Adjust. |
| 1005 | (linux_async): Add debug output. |
| 1006 | (linux_thread_stopped): New. |
| 1007 | (linux_pause_all): New. |
| 1008 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and |
| 1009 | linux_pause_all. |
| 1010 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. |
| 1011 | (thread_db_free): Delete declaration. |
| 1012 | (thread_db_detach, thread_db_mourn): Declare. |
| 1013 | * thread-db.c (thread_db_init): Use thread_db_mourn. |
| 1014 | (thread_db_free): Delete, split in two. |
| 1015 | (disable_thread_event_reporting): New. |
| 1016 | (thread_db_detach): New. |
| 1017 | (thread_db_mourn): New. |
| 1018 | |
| 1019 | * server.h (struct thread_info) <last_resume_kind>: New field. |
| 1020 | <attached>: Add comment. |
| 1021 | <gdb_detached>: New field. |
| 1022 | (handler_func): Change return type to int. |
| 1023 | (handle_serial_event, handle_target_event): Ditto. |
| 1024 | (gdb_connected): Declare. |
| 1025 | (tracing): Delete. |
| 1026 | (disconnected_tracing): Declare. |
| 1027 | (stop_tracing): Declare. |
| 1028 | |
| 1029 | * server.c (handle_query) <qSupported>: Report support for |
| 1030 | disconnected tracing. |
| 1031 | (queue_stop_reply_callback): Account for running threads. |
| 1032 | (gdb_wants_thread_stopped): New. |
| 1033 | (gdb_wants_all_threads_stopped): New. |
| 1034 | (gdb_reattached_process): New. |
| 1035 | (handle_status): Clear the `gdb_detached' flag of all processes. |
| 1036 | In all-stop, stop all threads. |
| 1037 | (main): Be sure to leave tfind mode. Handle disconnected tracing. |
| 1038 | (process_serial_event): If the remote connection breaks, or if an |
| 1039 | exit was forced with "monitor exit", force an event loop exit. |
| 1040 | Handle disconnected tracing on detach. |
| 1041 | (handle_serial_event): Adjust. |
| 1042 | (handle_target_event): If GDB isn't connected, forward events back |
| 1043 | to the inferior, unless the last process exited, in which case, |
| 1044 | exit gdbserver. Adjust interface. |
| 1045 | |
| 1046 | * remote-utils.c (remote_open): Don't block in accept. Instead |
| 1047 | register an event loop source on the listen socket file |
| 1048 | descriptor. Refactor bits into ... |
| 1049 | (listen_desc): ... this new global. |
| 1050 | (gdb_connected): ... this new function. |
| 1051 | (enable_async_notification): ... this new function. |
| 1052 | (handle_accept_event): ... this new function. |
| 1053 | (remote_close): Clear remote_desc. |
| 1054 | |
| 1055 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. |
| 1056 | |
| 1057 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: |
| 1058 | New fields. |
| 1059 | (mourn_inferior): Define. |
| 1060 | (target_process_qsupported): Avoid the dangling else problem. |
| 1061 | (thread_stopped): Define. |
| 1062 | (pause_all): Define. |
| 1063 | (target_waitstatus_to_string): Declare. |
| 1064 | * target.c (target_waitstatus_to_string): New. |
| 1065 | |
| 1066 | * tracepoint.c (tracing): Make extern. |
| 1067 | (disconnected_tracing): New. |
| 1068 | (stop_tracing): Make extern. Handle tracing stops due to GDB |
| 1069 | disconnecting. |
| 1070 | (cmd_qtdisconnected): New. |
| 1071 | (cmd_qtstatus): Report disconnected tracing status in trace reply. |
| 1072 | (handle_tracepoint_general_set): Handle QTDisconnected. |
| 1073 | |
| 1074 | * event-loop.c (event_handler_func): Change return type to int. |
| 1075 | (process_event): Bail out if the event handler wants the event |
| 1076 | loop to stop. |
| 1077 | (handle_file_event): Ditto. |
| 1078 | (start_event_loop): Bail out if the event handler wants the event |
| 1079 | loop to stop. |
| 1080 | |
| 1081 | * nto-low.c (nto_target_ops): Adjust. |
| 1082 | * spu-low.c (spu_wait): Don't remove the process here. |
| 1083 | (spu_target_ops): Adjust. |
| 1084 | * win32-low.c (win32_wait): Don't remove the process here. |
| 1085 | (win32_target_ops): Adjust. |
| 1086 | |
| 1087 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
| 1088 | |
| 1089 | * regcache.c (realloc_register_cache): Invalidate inferior's |
| 1090 | regcache before recreating it. |
| 1091 | |
| 1092 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
| 1093 | |
| 1094 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. |
| 1095 | |
| 1096 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
| 1097 | Pedro Alves <pedro@codesourcery.com> |
| 1098 | |
| 1099 | * server.h (LONGEST): New. |
| 1100 | (struct thread_info) <while_stepping>: New field. |
| 1101 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): |
| 1102 | Declare. |
| 1103 | (initialize_tracepoint, handle_tracepoint_general_set) |
| 1104 | (handle_tracepoint_query, tracepoint_finished_step) |
| 1105 | (tracepoint_was_hit, release_while_stepping_state_list): |
| 1106 | (current_traceframe): Declare. |
| 1107 | * server.c (handle_general_set): Handle tracepoint packets. |
| 1108 | (read_memory): New. |
| 1109 | (write_memory): New. |
| 1110 | (handle_search_memory_1): Use read_memory. |
| 1111 | (handle_query): Report support for conditional tracepoints, trace |
| 1112 | state variables, and tracepoint sources. Handle tracepoint |
| 1113 | queries. |
| 1114 | (main): Initialize the tracepoints module. |
| 1115 | (process_serial_event): Handle traceframe reads/writes. |
| 1116 | |
| 1117 | * linux-low.c (handle_tracepoints): New. |
| 1118 | (linux_wait_1): Call it. |
| 1119 | (linux_resume_one_lwp): Handle while-stepping. |
| 1120 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. |
| 1121 | (linux_target_ops): Install them. |
| 1122 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: |
| 1123 | New field. |
| 1124 | * linux-x86-low.c (x86_supports_tracepoints): New. |
| 1125 | (the_low_target). Install it. |
| 1126 | |
| 1127 | * mem-break.h (delete_breakpoint): Declare. |
| 1128 | * mem-break.c (delete_breakpoint): Make external. |
| 1129 | |
| 1130 | * target.h (struct target_ops): Add `supports_tracepoints', |
| 1131 | `read_pc', and `write_pc' fields. |
| 1132 | (target_supports_tracepoints): Define. |
| 1133 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) |
| 1134 | (phex_nz): New. |
| 1135 | |
| 1136 | * regcache.h (struct regcache) <registers_owned>: New field. |
| 1137 | (init_register_cache, regcache_cpy): Declare. |
| 1138 | (regcache_read_pc, regcache_write_pc): Declare. |
| 1139 | (register_cache_size): Declare. |
| 1140 | (supply_regblock): Declare. |
| 1141 | * regcache.c (init_register_cache): New. |
| 1142 | (new_register_cache): Use it. |
| 1143 | (regcache_cpy): New. |
| 1144 | (register_cache_size): New. |
| 1145 | (supply_regblock): New. |
| 1146 | (regcache_read_pc, regcache_write_pc): New. |
| 1147 | |
| 1148 | * tracepoint.c: New. |
| 1149 | |
| 1150 | * Makefile.in (OBS): Add tracepoint.o. |
| 1151 | (tracepoint.o): New rule. |
| 1152 | |
| 1153 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
| 1154 | |
| 1155 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. |
| 1156 | (i386-mmx.o): New. |
| 1157 | (i386-mmx.c): Likewise. |
| 1158 | (i386-mmx-linux.o): Likewise. |
| 1159 | (i386-mmx-linux.c): Likewise. |
| 1160 | |
| 1161 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. |
| 1162 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. |
| 1163 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. |
| 1164 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. |
| 1165 | |
| 1166 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. |
| 1167 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux |
| 1168 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. |
| 1169 | |
| 1170 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
| 1171 | |
| 1172 | * Makefile.in (clean): Updated. |
| 1173 | (i386-avx.o): New. |
| 1174 | (i386-avx.c): Likewise. |
| 1175 | (i386-avx-linux.o): Likewise. |
| 1176 | (i386-avx-linux.c): Likewise. |
| 1177 | (amd64-avx.o): Likewise. |
| 1178 | (amd64-avx.c): Likewise. |
| 1179 | (amd64-avx-linux.o): Likewise. |
| 1180 | (amd64-avx-linux.c): Likewise. |
| 1181 | |
| 1182 | * configure.srv (srv_i386_regobj): Add i386-avx.o. |
| 1183 | (srv_i386_linux_regobj): Add i386-avx-linux.o. |
| 1184 | (srv_amd64_regobj): Add amd64-avx.o. |
| 1185 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. |
| 1186 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. |
| 1187 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. |
| 1188 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. |
| 1189 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. |
| 1190 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. |
| 1191 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. |
| 1192 | |
| 1193 | * i387-fp.c: Include "i386-xstate.h". |
| 1194 | (i387_xsave): New. |
| 1195 | (i387_cache_to_xsave): Likewise. |
| 1196 | (i387_xsave_to_cache): Likewise. |
| 1197 | (x86_xcr0): Likewise. |
| 1198 | |
| 1199 | * i387-fp.h (i387_cache_to_xsave): Likewise. |
| 1200 | (i387_xsave_to_cache): Likewise. |
| 1201 | (x86_xcr0): Likewise. |
| 1202 | |
| 1203 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. |
| 1204 | * linux-crisv32-low.c (target_regsets): Likewise. |
| 1205 | * linux-m68k-low.c (target_regsets): Likewise. |
| 1206 | * linux-mips-low.c (target_regsets): Likewise. |
| 1207 | * linux-ppc-low.c (target_regsets): Likewise. |
| 1208 | * linux-s390-low.c (target_regsets): Likewise. |
| 1209 | * linux-sh-low.c (target_regsets): Likewise. |
| 1210 | * linux-sparc-low.c (target_regsets): Likewise. |
| 1211 | * linux-xtensa-low.c (target_regsets): Likewise. |
| 1212 | |
| 1213 | * linux-low.c: Include <sys/uio.h>. |
| 1214 | (regsets_fetch_inferior_registers): Support nt_type. |
| 1215 | (regsets_store_inferior_registers): Likewise. |
| 1216 | (linux_process_qsupported): New. |
| 1217 | (linux_target_ops): Add linux_process_qsupported. |
| 1218 | |
| 1219 | * linux-low.h (regset_info): Add nt_type. |
| 1220 | (linux_target_ops): Add process_qsupported. |
| 1221 | |
| 1222 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" |
| 1223 | and <sys/uio.h>. |
| 1224 | (init_registers_i386_avx_linux): New. |
| 1225 | (init_registers_amd64_avx_linux): Likewise. |
| 1226 | (xmltarget_i386_linux_no_xml): Likewise. |
| 1227 | (xmltarget_amd64_linux_no_xml): Likewise. |
| 1228 | (PTRACE_GETREGSET): Likewise. |
| 1229 | (PTRACE_SETREGSET): Likewise. |
| 1230 | (x86_fill_xstateregset): Likewise. |
| 1231 | (x86_store_xstateregset): Likewise. |
| 1232 | (use_xml): Likewise. |
| 1233 | (x86_linux_update_xmltarget): Likewise. |
| 1234 | (x86_linux_process_qsupported): Likewise. |
| 1235 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. |
| 1236 | (x86_arch_setup): Don't call init_registers_amd64_linux nor |
| 1237 | init_registers_i386_linux here. Call |
| 1238 | x86_linux_update_xmltarget. |
| 1239 | (the_low_target): Add x86_linux_process_qsupported. |
| 1240 | |
| 1241 | * server.c (handle_query): Call target_process_qsupported. |
| 1242 | |
| 1243 | * target.h (target_ops): Add process_qsupported. |
| 1244 | (target_process_qsupported): New. |
| 1245 | |
| 1246 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
| 1247 | |
| 1248 | * inferiors.c (add_thread): Set last_status kind to |
| 1249 | TARGET_WAITKIND_IGNORE. |
| 1250 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache |
| 1251 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. |
| 1252 | (linux_wait_1): Move `thread' local definition to block that uses |
| 1253 | it. Don't NULL initialize `event_child'. |
| 1254 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. |
| 1255 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. |
| 1256 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. |
| 1257 | |
| 1258 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
| 1259 | |
| 1260 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with |
| 1261 | an extended waitstatus, or by a watchpoint. |
| 1262 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the |
| 1263 | thread was stepping or has been stopped by a watchpoint. |
| 1264 | |
| 1265 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
| 1266 | |
| 1267 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. |
| 1268 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top |
| 1269 | of another, then delete the previous, and validate all |
| 1270 | breakpoints. |
| 1271 | (validate_inserted_breakpoint): New. |
| 1272 | (delete_disabled_breakpoints): New. |
| 1273 | (validate_breakpoints): New. |
| 1274 | (check_mem_read): Validate breakpoints before trusting their |
| 1275 | shadow. Delete disabled breakpoints. |
| 1276 | (check_mem_write): Validate breakpoints before trusting they |
| 1277 | should be inserted. Delete disabled breakpoints. |
| 1278 | * mem-break.h (validate_breakpoints): |
| 1279 | * server.c (handle_query): Validate breakpoints when we see a |
| 1280 | qSymbol query. |
| 1281 | |
| 1282 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
| 1283 | |
| 1284 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is |
| 1285 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB |
| 1286 | if we could tell there's a GDB breakpoint at stop_pc. |
| 1287 | (need_step_over_p): Don't do a step over if we find a GDB |
| 1288 | breakpoint at the resume PC. |
| 1289 | |
| 1290 | * mem-break.c (struct raw_breakpoint): New. |
| 1291 | (enum bkpt_type): New type `gdb_breakpoint'. |
| 1292 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' |
| 1293 | fields. New field `raw'. |
| 1294 | (find_raw_breakpoint_at): New. |
| 1295 | (set_raw_breakpoint_at): Handle refcounting. Create a raw |
| 1296 | breakpoint instead. |
| 1297 | (set_breakpoint_at): Adjust. |
| 1298 | (delete_raw_breakpoint): New. |
| 1299 | (release_breakpoint): New. |
| 1300 | (delete_breakpoint): Rename to... |
| 1301 | (delete_breakpoint_1): ... this. Add proc parameter. Use |
| 1302 | release_breakpoint. Return ENOENT. |
| 1303 | (delete_breakpoint): Reimplement. |
| 1304 | (find_breakpoint_at): Delete. |
| 1305 | (find_gdb_breakpoint_at): New. |
| 1306 | (delete_breakpoint_at): Delete. |
| 1307 | (set_gdb_breakpoint_at): New. |
| 1308 | (delete_gdb_breakpoint_at): New. |
| 1309 | (gdb_breakpoint_here): New. |
| 1310 | (set_reinsert_breakpoint): Use release_breakpoint. |
| 1311 | (uninsert_breakpoint): Rename to ... |
| 1312 | (uninsert_raw_breakpoint): ... this. |
| 1313 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. |
| 1314 | (reinsert_raw_breakpoint): Change parameter type to |
| 1315 | raw_breakpoint. |
| 1316 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints |
| 1317 | instead. |
| 1318 | (check_breakpoints): Adjust. Use release_breakpoint. |
| 1319 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. |
| 1320 | (breakpoint_inserted_here): Ditto. |
| 1321 | (check_mem_read): Adjust to iterate over raw breakpoints instead. |
| 1322 | Don't trust the breakpoint's shadow if it is not inserted. |
| 1323 | (check_mem_write): Adjust to iterate over raw breakpoints instead. |
| 1324 | (delete_all_breakpoints): Adjust. |
| 1325 | (free_all_breakpoints): Mark all breakpoints as uninserted, and |
| 1326 | use delete_breakpoint_1. |
| 1327 | |
| 1328 | * mem-break.h (breakpoints_supported): Delete declaration. |
| 1329 | (set_gdb_breakpoint_at): Declare. |
| 1330 | (gdb_breakpoint_here): Declare. |
| 1331 | (delete_breakpoint_at): Delete. |
| 1332 | (delete_gdb_breakpoint_at): Declare. |
| 1333 | |
| 1334 | * server.h (struct raw_breakpoint): Forward declare. |
| 1335 | (struct process_info): New field `raw_breakpoints'. |
| 1336 | |
| 1337 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 |
| 1338 | breakpoints. |
| 1339 | |
| 1340 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 1341 | |
| 1342 | * linux-low.c (status_pending_p_callback): Fix comment. |
| 1343 | (linux_wait_for_event_1): Move most of the internal breakpoint |
| 1344 | handling from here... |
| 1345 | (linux_wait_1): ... to here. |
| 1346 | (count_events_callback): New. |
| 1347 | (select_singlestep_lwp_callback): New. |
| 1348 | (select_event_lwp_callback): New. |
| 1349 | (cancel_breakpoints_callback): New. |
| 1350 | (select_event_lwp): New. |
| 1351 | (linux_wait_1): Simplify internal breakpoint handling. Give equal |
| 1352 | priority to all LWPs that have had events that should be reported |
| 1353 | to the client. Cancel breakpoints when about to reporting the |
| 1354 | event to the client, not while stopping lwps. No longer cancel |
| 1355 | finished single-steps here. |
| 1356 | (cancel_finished_single_step): Delete. |
| 1357 | (cancel_finished_single_steps): Delete. |
| 1358 | |
| 1359 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 1360 | |
| 1361 | * mem-break.c (enum bkpt_type): New. |
| 1362 | (struct breakpoint): New field `type'. |
| 1363 | (set_breakpoint_at): Change return type to struct breakpoint |
| 1364 | pointer. Set type to `other_breakpoint' by default. |
| 1365 | (delete_breakpoint): Rewrite, supporting more than one breakpoint |
| 1366 | in the breakpoint list. |
| 1367 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. |
| 1368 | (reinsert_breakpoint): Rename to ... |
| 1369 | (reinsert_raw_breakpoint): ... this. |
| 1370 | (reinsert_breakpoints_at): Adjust. |
| 1371 | * mem-break.h (struct breakpoint): Declare. |
| 1372 | (set_breakpoint_at): Change return type to struct breakpoint |
| 1373 | pointer. |
| 1374 | |
| 1375 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 1376 | |
| 1377 | * server.c (handle_query): Assign, not compare. |
| 1378 | |
| 1379 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 1380 | |
| 1381 | Teach linux gdbserver to step-over-breakpoints. |
| 1382 | |
| 1383 | * linux-low.c (can_hardware_single_step): New. |
| 1384 | (supports_breakpoints): New. |
| 1385 | (handle_extended_wait): If stopping threads, read the stop pc of |
| 1386 | the new cloned LWP. |
| 1387 | (get_pc): New. |
| 1388 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the |
| 1389 | low target doesn't support retrieving the PC. |
| 1390 | (add_lwp): Set last_resume_kind to resume_continue. |
| 1391 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. |
| 1392 | (linux_attach): Don't clear stop_expected. Set the lwp's |
| 1393 | last_resume_kind to resume_stop. |
| 1394 | (linux_detach_one_lwp): Don't check for removed breakpoints. |
| 1395 | (check_removed_breakpoint): Delete. |
| 1396 | (status_pending_p): Rename to ... |
| 1397 | (status_pending_p_callback): ... this. Don't check for removed |
| 1398 | breakpoints. Don't consider threads that are stopped from GDB's |
| 1399 | perspective. |
| 1400 | (linux_wait_for_lwp): Always read the stop_pc here. |
| 1401 | (cancel_breakpoint): New. |
| 1402 | (step_over_bkpt): New global. |
| 1403 | (linux_wait_for_event_1): Implement stepping over breakpoints. |
| 1404 | (gdb_wants_lwp_stopped): New. |
| 1405 | (gdb_wants_all_stopped): New. |
| 1406 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished |
| 1407 | single-step traps here. Store the thread's last reported target |
| 1408 | wait status. |
| 1409 | (send_sigstop): Don't clear stop_expected. Always set it, |
| 1410 | instead. |
| 1411 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. |
| 1412 | (cancel_finished_single_step): New. |
| 1413 | (cancel_finished_single_steps): New. |
| 1414 | (wait_for_sigstop): Don't cancel finished single-step traps here. |
| 1415 | (linux_resume_one_lwp): Don't check for removed breakpoints. |
| 1416 | Don't set `step' on non-hardware step archs. |
| 1417 | (linux_set_resume_request): Ignore resume_stop requests if already |
| 1418 | stopping or stopped. Set the lwp's last_resume_kind. |
| 1419 | (resume_status_pending_p): Don't check for removed breakpoints. |
| 1420 | (need_step_over_p): New. |
| 1421 | (start_step_over): New. |
| 1422 | (finish_step_over): New. |
| 1423 | (linux_resume_one_thread): Always queue a sigstop for resume_stop |
| 1424 | requests. Clear the thread's last reported target waitstatus. |
| 1425 | Don't use the `suspended' flag. Don't consider pending breakpoints. |
| 1426 | (linux_resume): Start a step-over if necessary. |
| 1427 | (proceed_one_lwp): New. |
| 1428 | (proceed_all_lwps): New. |
| 1429 | (unstop_all_lwps): New. |
| 1430 | * linux-low.h (struct lwp_info): Rewrite comment for the |
| 1431 | `suspended' flag. Add the `stop_pc' field. Delete the |
| 1432 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. |
| 1433 | Add `'last_resume_kind' and `need_step_over' fields. |
| 1434 | * inferiors.c (struct thread_info): Delete, moved elsewhere. |
| 1435 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. |
| 1436 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. |
| 1437 | (set_raw_breakpoint_at): New. |
| 1438 | (set_breakpoint_at): Rewrite to use it. |
| 1439 | (reinsert_breakpoint_handler): Delete. |
| 1440 | (set_reinsert_breakpoint): New. |
| 1441 | (reinsert_breakpoint_by_bp): Delete. |
| 1442 | (delete_reinsert_breakpoints): New. |
| 1443 | (uninsert_breakpoint): Rewrite. |
| 1444 | (uninsert_breakpoints_at): New. |
| 1445 | (reinsert_breakpoint): Rewrite. |
| 1446 | (reinsert_breakpoints_at): New. |
| 1447 | (check_breakpoints): Rewrite. |
| 1448 | (breakpoint_here): New. |
| 1449 | (breakpoint_inserted_here): New. |
| 1450 | (check_mem_read): Adjust. |
| 1451 | * mem-break.h (breakpoints_supported, breakpoint_here) |
| 1452 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. |
| 1453 | (reinsert_breakpoint_by_bp): Delete declaration. |
| 1454 | (delete_reinsert_breakpoints): Declare. |
| 1455 | (reinsert_breakpoint): Delete declaration. |
| 1456 | (reinsert_breakpoints_at): Declare. |
| 1457 | (uninsert_breakpoint): Delete declaration. |
| 1458 | (uninsert_breakpoints_at): Declare. |
| 1459 | (check_breakpoints): Adjust prototype. |
| 1460 | * server.h: Adjust include order. |
| 1461 | (struct thread_info): Declare here. Add a `last_status' field. |
| 1462 | |
| 1463 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
| 1464 | |
| 1465 | * server.c (crc32): New function. |
| 1466 | (handle_query): Add handling for 'qCRC:' request. |
| 1467 | |
| 1468 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
| 1469 | |
| 1470 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the |
| 1471 | lwp had been stopped by a watchpoint. |
| 1472 | |
| 1473 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
| 1474 | |
| 1475 | * server.h (internal_error): Declare. |
| 1476 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. |
| 1477 | * utils.c (internal_error): New function. |
| 1478 | |
| 1479 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
| 1480 | |
| 1481 | * configure.srv: Fix typo setting srv_regobj. |
| 1482 | |
| 1483 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
| 1484 | |
| 1485 | * linux-low.c (fetch_register): Avoid passing a non string literal |
| 1486 | format to `error'. |
| 1487 | (usr_store_inferior_registers): Ditto. |
| 1488 | |
| 1489 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
| 1490 | |
| 1491 | * linux-low.c (linux_write_memory): Bail out early if peeking |
| 1492 | memory failed. |
| 1493 | |
| 1494 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
| 1495 | |
| 1496 | * linux-low.h (struct lwp_info): New fields |
| 1497 | `stopped_by_watchpoint' and `stopped_data_address'. |
| 1498 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers |
| 1499 | here, and cache them in the lwp object. |
| 1500 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field |
| 1501 | directly. |
| 1502 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint |
| 1503 | field. |
| 1504 | (linux_stopped_by_watchpoint): Rewrite. |
| 1505 | (linux_stopped_data_address): Rewrite. |
| 1506 | |
| 1507 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
| 1508 | |
| 1509 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after |
| 1510 | switching the current inferior, not before. |
| 1511 | |
| 1512 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
| 1513 | |
| 1514 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, |
| 1515 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, |
| 1516 | i386-linux.c and amd64-linux.c. |
| 1517 | (reg-i386.o): Removed. |
| 1518 | (reg-i386.c): Likewise. |
| 1519 | (reg-i386-linux.o): Likewise. |
| 1520 | (reg-i386-linux.c): Likewise. |
| 1521 | (reg-x86-64.o): Likewise. |
| 1522 | (reg-x86-64.c): Likewise. |
| 1523 | (reg-x86-64-linux.o): Likewise. |
| 1524 | (reg-x86-64-linux.c): Likewise. |
| 1525 | (i386.o): New. |
| 1526 | (i386.c): Likewise. |
| 1527 | (i386-linux.o): Likewise. |
| 1528 | (i386-linux.c): Likewise. |
| 1529 | (amd64.o): Likewise. |
| 1530 | (amd64.c): Likewise. |
| 1531 | (amd64-linux.o): Likewise. |
| 1532 | (amd64-linux.c): Likewise. |
| 1533 | |
| 1534 | * configure.srv (srv_i386_regobj): New. |
| 1535 | (srv_i386_linux_regobj): Likewise. |
| 1536 | (srv_amd64_regobj): Likewise. |
| 1537 | (srv_amd64_linux_regobj): Likewise. |
| 1538 | (srv_i386_32bit_xmlfiles): Likewise. |
| 1539 | (srv_i386_64bit_xmlfiles): Likewise. |
| 1540 | (srv_i386_xmlfiles): Likewise. |
| 1541 | (srv_amd64_xmlfiles): Likewise. |
| 1542 | (srv_i386_linux_xmlfiles): Likewise. |
| 1543 | (srv_amd64_linux_xmlfiles): Likewise. |
| 1544 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set |
| 1545 | srv_xmlfiles to $srv_i386_xmlfiles. |
| 1546 | (i[34567]86-*-mingw32ce*): Likewise. |
| 1547 | (i[34567]86-*-mingw*): Likewise. |
| 1548 | (i[34567]86-*-nto*): Likewise. |
| 1549 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj |
| 1550 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to |
| 1551 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. |
| 1552 | (x86_64-*-linux*): Likewise. |
| 1553 | |
| 1554 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. |
| 1555 | (init_registers_amd64_linux): New. |
| 1556 | (x86_arch_setup): Replace init_registers_x86_64_linux with |
| 1557 | init_registers_amd64_linux. |
| 1558 | |
| 1559 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 1560 | |
| 1561 | * configure.ac: Check for libdl. If it is not available link against |
| 1562 | static libthread_db. |
| 1563 | * configure: Regenerate. |
| 1564 | |
| 1565 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
| 1566 | |
| 1567 | PR9605 |
| 1568 | |
| 1569 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if |
| 1570 | handing a read watchpoint. |
| 1571 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. |
| 1572 | |
| 1573 | 2010-02-12 Doug Evans <dje@google.com> |
| 1574 | |
| 1575 | * linux-low.c (linux_supports_tracefork_flag): Document. |
| 1576 | (linux_look_up_symbols): Add comment. |
| 1577 | |
| 1578 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
| 1579 | |
| 1580 | * regcache.c (supply_register): Clear regcache if buf is NULL. |
| 1581 | |
| 1582 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
| 1583 | Joel Brobecker <brobecker@adacore.com> |
| 1584 | |
| 1585 | * inferiors.c (find_inferior): Add function documentation. |
| 1586 | (unloaded_dll): Handle the case where the unloaded dll has not |
| 1587 | been previously registered in the dll list. |
| 1588 | |
| 1589 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 1590 | |
| 1591 | * linux-arm-low.c (thumb_breakpoint_len): Delete. |
| 1592 | (thumb2_breakpoint): New. |
| 1593 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. |
| 1594 | |
| 1595 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 1596 | |
| 1597 | * linux-low.c (get_stop_pc): Check for SIGTRAP. |
| 1598 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible |
| 1599 | breakpoints. |
| 1600 | |
| 1601 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
| 1602 | |
| 1603 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. |
| 1604 | |
| 1605 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1606 | |
| 1607 | * linux-s390-low.c (s390_collect_ptrace_register) |
| 1608 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. |
| 1609 | |
| 1610 | 2010-01-21 Doug Evans <dje@google.com> |
| 1611 | |
| 1612 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
| 1613 | (PTRACE_ARG4_TYPE): New macro. |
| 1614 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. |
| 1615 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. |
| 1616 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. |
| 1617 | (usr_store_inferior_registers): Ditto. |
| 1618 | (linux_read_memory, linux_write_memory): Ditto. |
| 1619 | (linux_test_for_tracefork): Ditto. |
| 1620 | |
| 1621 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
| 1622 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. |
| 1623 | |
| 1624 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
| 1625 | |
| 1626 | * proc-service.c (ps_lgetregs): Don't refetch registers from the |
| 1627 | target. |
| 1628 | |
| 1629 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
| 1630 | |
| 1631 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change |
| 1632 | prototype to take a regcache. Adjust. |
| 1633 | |
| 1634 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
| 1635 | |
| 1636 | * regcache.h (struct thread_info): Forward declare. |
| 1637 | (struct regcache): New. |
| 1638 | (new_register_cache): Adjust prototype. |
| 1639 | (get_thread_regcache): Declare. |
| 1640 | (free_register_cache): Adjust prototype. |
| 1641 | (registers_to_string, registers_from_string): Ditto. |
| 1642 | (supply_register, supply_register_by_name, collect_register) |
| 1643 | (collect_register_as_string, collect_register_by_name): Ditto. |
| 1644 | * regcache.c (struct inferior_regcache_data): Delete. |
| 1645 | (get_regcache): Rename to ... |
| 1646 | (get_thread_regcache): ... this. Adjust. Switch inferior before |
| 1647 | fetching registers. |
| 1648 | (regcache_invalidate_one): Adjust. |
| 1649 | (regcache_invalidate): Fix prototype. |
| 1650 | (new_register_cache): Return the new register cache. |
| 1651 | (free_register_cache): Change prototype. |
| 1652 | (realloc_register_cache): Adjust. |
| 1653 | (registers_to_string): Change prototype to take a regcache. Adjust. |
| 1654 | (registers_from_string): Ditto. |
| 1655 | (register_data): Ditto. |
| 1656 | (supply_register): Ditto. |
| 1657 | (supply_register_by_name): Ditto. |
| 1658 | (collect_register): Ditto. |
| 1659 | (collect_register_as_string): Ditto. |
| 1660 | (collect_register_by_name): Ditto. |
| 1661 | * server.c (process_serial_event): Adjust. |
| 1662 | * linux-low.h (regset_fill_func, regset_store_func): Change |
| 1663 | prototype. |
| 1664 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): |
| 1665 | Change prototype. |
| 1666 | * linux-low.c (get_stop_pc): Adjust. |
| 1667 | (check_removed_breakpoint): Adjust. |
| 1668 | (linux_wait_for_event): Adjust. |
| 1669 | (linux_resume_one_lwp): Adjust. |
| 1670 | (fetch_register): Add regcache parameter. Adjust. |
| 1671 | (usr_store_inferior_registers): Ditto. |
| 1672 | (regsets_fetch_inferior_registers): Ditto. |
| 1673 | (regsets_store_inferior_registers): Ditto. |
| 1674 | (linux_fetch_registers, linux_store_registers): Ditto. |
| 1675 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a |
| 1676 | regcache. Adjust. |
| 1677 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. |
| 1678 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
| 1679 | prototype to take a regcache. |
| 1680 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. |
| 1681 | * remote-utils.c (convert_ascii_to_int, outreg) |
| 1682 | (prepare_resume_reply): Change prototype to take a regcache. |
| 1683 | Adjust. |
| 1684 | * target.h (struct target_ops) <fetch_registers, store_registers>: |
| 1685 | Change prototype to take a regcache. |
| 1686 | (fetch_inferior_registers, store_inferior_registers): Change |
| 1687 | prototype to take a regcache. Adjust. |
| 1688 | * proc-service.c (ps_lgetregs): Adjust. |
| 1689 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) |
| 1690 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) |
| 1691 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to |
| 1692 | take a regcache. Adjust. |
| 1693 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) |
| 1694 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) |
| 1695 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): |
| 1696 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. |
| 1697 | * linux-cris-low.c (cris_get_pc, cris_set_pc) |
| 1698 | (cris_cannot_fetch_register): |
| 1699 | (cris_breakpoint_at): Change prototype to take a regcache. |
| 1700 | Adjust. |
| 1701 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, |
| 1702 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype |
| 1703 | to take a regcache. Adjust. |
| 1704 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): |
| 1705 | Adjust. |
| 1706 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to |
| 1707 | take a regcache. Adjust. |
| 1708 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) |
| 1709 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, |
| 1710 | (m68k_set_pc): Change prototype to take a regcache. Adjust. |
| 1711 | * linux-mips-low.c (mips_get_pc): |
| 1712 | (mips_set_pc): Change prototype to take a regcache. Adjust. |
| 1713 | (mips_reinsert_addr): Adjust. |
| 1714 | (mips_collect_register): Change prototype to take a regcache. |
| 1715 | Adjust. |
| 1716 | (mips_supply_register): |
| 1717 | (mips_collect_register_32bit, mips_supply_register_32bit) |
| 1718 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) |
| 1719 | (mips_store_fpregset): Ditto. |
| 1720 | * linux-ppc-low.c (ppc_supply_ptrace_register, ppc_supply_ptrace_register): |
| 1721 | Ditto. |
| 1722 | (parse_spufs_run): Adjust. |
| 1723 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) |
| 1724 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) |
| 1725 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to |
| 1726 | take a regcache. Adjust. |
| 1727 | * linux-s390-low.c (s390_collect_ptrace_register) |
| 1728 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) |
| 1729 | (s390_set_pc): Change prototype to take a regcache. Adjust. |
| 1730 | (s390_arch_setup): Adjust. |
| 1731 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) |
| 1732 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. |
| 1733 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) |
| 1734 | (sparc_fill_gregset, sparc_store_gregset_from_stack) |
| 1735 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a |
| 1736 | regcache. Adjust. |
| 1737 | (sparc_breakpoint_at): Adjust. |
| 1738 | * linux-xtensa-low.c (xtensa_fill_gregset): |
| 1739 | (xtensa_store_gregset): |
| 1740 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) |
| 1741 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. |
| 1742 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change |
| 1743 | prototype to take a regcache. Adjust. |
| 1744 | * win32-arm-low.c (arm_fetch_inferior_register) |
| 1745 | (arm_store_inferior_register): Change prototype to take a |
| 1746 | regcache. Adjust. |
| 1747 | * win32-i386-low.c (i386_fetch_inferior_register) |
| 1748 | (i386_store_inferior_register): Change prototype to take a |
| 1749 | regcache. Adjust. |
| 1750 | * win32-low.c (child_fetch_inferior_registers) |
| 1751 | (child_store_inferior_registers): Change prototype to take a |
| 1752 | regcache. Adjust. |
| 1753 | (win32_wait): Adjust. |
| 1754 | (win32_fetch_inferior_registers): Change prototype to take a |
| 1755 | regcache. Adjust. |
| 1756 | (win32_store_inferior_registers): Adjust. |
| 1757 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, |
| 1758 | store_inferior_register>: Change prototype to take a regcache. |
| 1759 | |
| 1760 | 2010-01-20 Doug Evans <dje@google.com> |
| 1761 | |
| 1762 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in |
| 1763 | #ifdef. |
| 1764 | (linux_wait_for_event1, linux_init_signals): Ditto. |
| 1765 | (W_STOPCODE): Provide definition if missing. |
| 1766 | |
| 1767 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
| 1768 | |
| 1769 | * linux-low.c (linux_core_of_thread): New. |
| 1770 | (compare_ints, show_process, list_threads): New. |
| 1771 | (linux_qxfer_osdata): Report threads and cores. |
| 1772 | (linux_target_op): Register linux_core_of_thread. |
| 1773 | * remote-utils.c (prepare_resume_reply): Report the core. |
| 1774 | (buffer_xml_printf): Support %d specifier. |
| 1775 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): |
| 1776 | New. |
| 1777 | (handle_query): Handle qXfer:threads. Announce availability |
| 1778 | thereof. |
| 1779 | * target.h (struct target_ops): New field core_of_thread. |
| 1780 | |
| 1781 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
| 1782 | |
| 1783 | * Makefile.in (clean): Remove new generated files. |
| 1784 | (reg-s390.o, reg-s390.c): Remove rules. |
| 1785 | (reg-s390x.o, reg-s390x.c): Likewise. |
| 1786 | (s390-linux32.o, s390-linux32.c): Add rules. |
| 1787 | (s390-linux64.o, s390-linux64.c): Likewise. |
| 1788 | (s390x-linux64.o, s390x-linux64.c): Likewise. |
| 1789 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. |
| 1790 | * linux-s390-low.c: Include <elf.h>. |
| 1791 | (HWCAP_S390_HIGH_GPRS): Define if undefined. |
| 1792 | (init_registers_s390): Remove prototype. |
| 1793 | (init_registers_s390x): Likewise. |
| 1794 | (init_registers_s390_linux32): Add prototype. |
| 1795 | (init_registers_s390_linux64): Likewise. |
| 1796 | (init_registers_s390x_linux64): Likewise. |
| 1797 | (s390_num_regs_3264): New define. |
| 1798 | (s390_regmap_3264): New global variable. |
| 1799 | (s390_cannot_fetch_register): Remove obsolete check. |
| 1800 | (s390_cannot_store_register): Likewise. |
| 1801 | (s390_collect_ptrace_register): Handle upper/lower register halves. |
| 1802 | (s390_supply_ptrace_register): Likewise. |
| 1803 | (s390_fill_gregset): Update to register number changes. |
| 1804 | (s390_get_hwcap): New routine. |
| 1805 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. |
| 1806 | Install appropriate regmap and register set. |
| 1807 | |
| 1808 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
| 1809 | |
| 1810 | * server.c (gdbserver_version): Update copyright year to 2010. |
| 1811 | * gdbreplay.c (gdbreplay_version): Likewise. |
| 1812 | |
| 1813 | 2009-12-28 Doug Evans <dje@google.com> |
| 1814 | |
| 1815 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, |
| 1816 | elf/external.h. Include <elf.h> instead but only if necessary. |
| 1817 | |
| 1818 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
| 1819 | |
| 1820 | * linux-low.c (linux_remove_process): Remove `detaching' |
| 1821 | parameter. Don't release/detach from thread_db here. |
| 1822 | (linux_kill): Release/detach from thread_db here, ... |
| 1823 | (linux_detach): ... and here, before actually detaching. |
| 1824 | (linux_wait_1): ... and here, when a process exits. |
| 1825 | * thread-db.c (any_thread_of): New. |
| 1826 | (thread_db_free): Switch the current inferior to a thread of the |
| 1827 | passed in process. |
| 1828 | |
| 1829 | 2009-12-21 Doug Evans <dje@google.com> |
| 1830 | |
| 1831 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
| 1832 | |
| 1833 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
| 1834 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc |
| 1835 | warning ifndef __NR_tkill. Move setting of errno there too. |
| 1836 | Delete unnecessary resetting of errno after syscall. |
| 1837 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. |
| 1838 | |
| 1839 | * configure.ac: Check for dladdr. |
| 1840 | * config.in: Regenerate. |
| 1841 | * configure: Regenerate. |
| 1842 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. |
| 1843 | (try_thread_db_load): Update. |
| 1844 | |
| 1845 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
| 1846 | |
| 1847 | 2009-12-18 Doug Evans <dje@google.com> |
| 1848 | |
| 1849 | * event-loop.c: Include unistd.h if it exists. |
| 1850 | |
| 1851 | * linux-low.c (my_waitpid): Move definition away from being in |
| 1852 | between linux_tracefork_child/linux_test_for_tracefork. |
| 1853 | |
| 1854 | * gdb_proc_service.h (psaddr_t): Fix type. |
| 1855 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix |
| 1856 | signature to match glibc. |
| 1857 | |
| 1858 | 2009-12-16 Doug Evans <dje@google.com> |
| 1859 | |
| 1860 | * linux-low.c (linux_read_memory): Fix argument to read. |
| 1861 | |
| 1862 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 1863 | |
| 1864 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT |
| 1865 | events, don't leave current_inferior pointing at null. |
| 1866 | |
| 1867 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 1868 | |
| 1869 | * win32-low.c (LOG): Delete. |
| 1870 | (OUTMSG): Output to stderr. |
| 1871 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of |
| 1872 | on compile time LOG macro. |
| 1873 | (win32_wait): Fix debug output. |
| 1874 | |
| 1875 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 1876 | |
| 1877 | * win32-low.c (win32_add_one_solib): If the dll name is |
| 1878 | "ntdll.dll", prepend the system directory to the dll path. |
| 1879 | |
| 1880 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 1881 | |
| 1882 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. |
| 1883 | |
| 1884 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
| 1885 | Vladimir Prus <vladimir@codesourcery.com> |
| 1886 | |
| 1887 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. |
| 1888 | * configure.ac: Check for __mcoldfire__ and set |
| 1889 | gdb_cv_m68k_is_coldfire. |
| 1890 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between |
| 1891 | reg-cf.o and reg-m68k.o. |
| 1892 | * configure: Regenerated. |
| 1893 | |
| 1894 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
| 1895 | |
| 1896 | * linux-low.c (linux_remove_process): Add `detaching' parameter. |
| 1897 | Pass it to thread_db_free. |
| 1898 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the |
| 1899 | proper `detaching' argument to linux_remove_process. |
| 1900 | * linux-low.h (thread_db_free): Add `detaching' parameter. |
| 1901 | * thread-db.c (thread_db_init): Pass false as `detaching' argument |
| 1902 | to thread_db_free. |
| 1903 | (thread_db_free): Add `detaching' parameter. Only |
| 1904 | call td_ta_clear_event if detaching from process. |
| 1905 | |
| 1906 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 1907 | |
| 1908 | * thread-db.c (thread_db_free): Fix typo. |
| 1909 | |
| 1910 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 1911 | |
| 1912 | PR gdb/10838 |
| 1913 | * thread-db.c (thread_db_free): Call td_ta_clear_event. |
| 1914 | |
| 1915 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
| 1916 | |
| 1917 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 |
| 1918 | with an i686 compiler. |
| 1919 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if |
| 1920 | needed. |
| 1921 | * configure: Rebuilt. |
| 1922 | |
| 1923 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
| 1924 | |
| 1925 | PR gdb/10783 |
| 1926 | |
| 1927 | * server.c (handle_search_memory_1): Correct read_addr initialization |
| 1928 | in loop for searching subsequent chunks. |
| 1929 | |
| 1930 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 1931 | |
| 1932 | * configure.ac: New --with-libthread-db option. |
| 1933 | * thread-db.c: Allow direct dependence on libthread_db. |
| 1934 | (thread_db_free): Adjust. |
| 1935 | * config.in: Regenerate. |
| 1936 | * configure: Likewise. |
| 1937 | |
| 1938 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 1939 | |
| 1940 | PR gdb/10757 |
| 1941 | * thread-db.c (attach_thread): New function. |
| 1942 | (maybe_attach_thread): Return success/failure. |
| 1943 | (find_new_threads_callback): Adjust. |
| 1944 | (thread_db_find_new_threads): Loop until no new threads. |
| 1945 | |
| 1946 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
| 1947 | |
| 1948 | * proc-service.c (ps_lgetregs): Formatting. |
| 1949 | |
| 1950 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 1951 | |
| 1952 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. |
| 1953 | * configure.ac: Adjust. |
| 1954 | * linux-low.h (struct process_info_private): Move members to struct |
| 1955 | thread_db. |
| 1956 | (thread_db_free, thread_db_handle_monitor_command): New prototype. |
| 1957 | * linux-low.c (linux_remove_process): Adjust. |
| 1958 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. |
| 1959 | * server.c (handle_query): Move code ... |
| 1960 | (handle_monitor_command): ... here. New function. |
| 1961 | * target.h (struct target_ops): New member. |
| 1962 | * thread-db.c (struct thread_db): New. |
| 1963 | (libthread_db_search_path): New variable. |
| 1964 | (thread_db_create_event, thread_db_enable_reporting) |
| 1965 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) |
| 1966 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. |
| 1967 | (try_thread_db_load_1, dladdr_to_soname): New functions. |
| 1968 | (try_thread_db_load, thread_db_load_search): New functions. |
| 1969 | (thread_db_init): Search for libthread_db. |
| 1970 | (thread_db_free): New function. |
| 1971 | (thread_db_handle_monitor_command): Likewise. |
| 1972 | * config.in: Regenerate. |
| 1973 | * configure: Regenerate. |
| 1974 | |
| 1975 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 1976 | |
| 1977 | * spu-low.c (spu_kill): Wait for inferior to terminate. |
| 1978 | Call clear_inferiors. |
| 1979 | (spu_detach): Call clear_inferiors. |
| 1980 | |
| 1981 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 1982 | |
| 1983 | * aclocal.m4: Regenerate. |
| 1984 | * config.in: Likewise. |
| 1985 | * configure: Likewise. |
| 1986 | |
| 1987 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 1988 | |
| 1989 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. |
| 1990 | (parse_spufs_run): New function. |
| 1991 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. |
| 1992 | (ppc_breakpoint_at): Handle SPU breakpoints. |
| 1993 | |
| 1994 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 1995 | |
| 1996 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. |
| 1997 | (SPUFS_MAGIC): Define. |
| 1998 | (spu_enumerate_spu_ids): New function. |
| 1999 | (linux_qxfer_spu): New function. |
| 2000 | (linux_target_ops): Install linux_qxfer_spu. |
| 2001 | |
| 2002 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 2003 | |
| 2004 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o |
| 2005 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml |
| 2006 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. |
| 2007 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. |
| 2008 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. |
| 2009 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. |
| 2010 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. |
| 2011 | (init_registers_powerpc_cell32l): Add prototype. |
| 2012 | (init_registers_powerpc_cell64l): Likewise. |
| 2013 | (ppc_arch_setup): Detect Cell/B.E. architecture. |
| 2014 | |
| 2015 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 2016 | |
| 2017 | * Makefile.in (datarootdir): New variable. |
| 2018 | |
| 2019 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 2020 | |
| 2021 | * linux-low.c (linux_write_memory): Update debugging output. |
| 2022 | * Makefile.in (clean): Add new descriptions. |
| 2023 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) |
| 2024 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. |
| 2025 | * configure.srv: Add new files for arm*-*-linux*. |
| 2026 | * linux-arm-low.c: Add new declarations. |
| 2027 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. |
| 2028 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) |
| 2029 | (HWCAP_VFPv3D16): New. |
| 2030 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT |
| 2031 | instead of __IWMMXT__. |
| 2032 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) |
| 2033 | (arm_arch_setup): New. |
| 2034 | (target_regsets): Remove #ifdef. Add VFP regset. |
| 2035 | (the_low_target): Use arm_arch_setup. |
| 2036 | |
| 2037 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 2038 | |
| 2039 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip |
| 2040 | the main thread again. |
| 2041 | |
| 2042 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
| 2043 | |
| 2044 | Adding Neutrino gdbserver. |
| 2045 | * configure: Regenerated. |
| 2046 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. |
| 2047 | * configure.srv (i[34567]86-*-nto*): New target. |
| 2048 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. |
| 2049 | * remote-utils.c [__QNX__]: Include sys/iomgr.h |
| 2050 | (nto_comctrl) [__QNX__]: New function. |
| 2051 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. |
| 2052 | |
| 2053 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
| 2054 | |
| 2055 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to |
| 2056 | srv_tgtobj. |
| 2057 | |
| 2058 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
| 2059 | Pedro Alves <pedro@codesourcery.com> |
| 2060 | |
| 2061 | * win32-i386-low.c (i386_get_thread_context): Handle systems that |
| 2062 | don't support CONTEXT_EXTENDED_REGISTERS. |
| 2063 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. |
| 2064 | (the_low_target): Install them. |
| 2065 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent |
| 2066 | failing with ERROR_PIPE_NOT_CONNECTED. |
| 2067 | |
| 2068 | 2009-06-30 Doug Evans <dje@google.com> |
| 2069 | Pierre Muller <muller@ics.u-strasbg.fr> |
| 2070 | |
| 2071 | Add h/w watchpoint support to x86-linux, win32-i386. |
| 2072 | * Makefile.in (SFILES): Add i386-low.c |
| 2073 | (i386_low_h): Define. |
| 2074 | (i386-low.o): Add dependencies. |
| 2075 | (linux-x86-low.o): Add i386-low.h dependency. |
| 2076 | (win32-i386-low.o): Ditto. |
| 2077 | * i386-low.c: New file. |
| 2078 | * i386-low.h: New file. |
| 2079 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. |
| 2080 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. |
| 2081 | * linux-low.c (linux_add_process): Initialize arch_private. |
| 2082 | (linux_remove_process): Free arch_private. |
| 2083 | (add_lwp): Initialize arch_private. |
| 2084 | (delete_lwp): Free arch_private. |
| 2085 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if |
| 2086 | provided. |
| 2087 | * linux-low.h (process_info_private): New member arch_private. |
| 2088 | (lwp_info): New member arch_private. |
| 2089 | (linux_target_ops): New members new_process, new_thread, |
| 2090 | prepare_to_resume. |
| 2091 | (ptid_of): New macro. |
| 2092 | * linux-x86-low.c: Include stddef.h, i386-low.h. |
| 2093 | (arch_process_info): New struct. |
| 2094 | (arch_lwp_info): New struct. |
| 2095 | (x86_linux_dr_get, x86_linux_dr_set): New functions. |
| 2096 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. |
| 2097 | (i386_dr_low_get_status): New function. |
| 2098 | (x86_insert_point, x86_remove_point): New functions. |
| 2099 | (x86_stopped_by_watchpoint): New function. |
| 2100 | (x86_stopped_data_address): New function. |
| 2101 | (x86_linux_new_process, x86_linux_new_thread): New functions. |
| 2102 | (x86_linux_prepare_to_resume): New function. |
| 2103 | (the_low_target): Add entries for insert_point, remove_point, |
| 2104 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, |
| 2105 | prepare_to_resume. |
| 2106 | * server.c (debug_hw_points): New global. |
| 2107 | (monitor_show_help): Document set debug-hw-points. |
| 2108 | (handle_query): Process "set debug-hw-points". |
| 2109 | * server.h (debug_hw_points): Declare. |
| 2110 | (paddress): Declare. |
| 2111 | * utils.c (NUMCELLS, CELLSIZE): New macros. |
| 2112 | (get_sell, xsnprintf, paddress): New functions. |
| 2113 | * win32-arm-low.c (the_low_target): Add entries for insert_point, |
| 2114 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 2115 | * win32-i386-low.c: Include i386-low.h. |
| 2116 | (debug_reg_state): Replaces dr. |
| 2117 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. |
| 2118 | (i386_dr_low_get_status): New function. |
| 2119 | (i386_insert_point, i386_remove_point): New functions. |
| 2120 | (i386_stopped_by_watchpoint): New function. |
| 2121 | (i386_stopped_data_address): New function. |
| 2122 | (i386_initial_stuff): Update. |
| 2123 | (get_thread_context,set_thread_context,i386_thread_added): Update. |
| 2124 | (the_low_target): Add entries for insert_point, |
| 2125 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 2126 | * win32-low.c (win32_insert_watchpoint): New function. |
| 2127 | (win32_remove_watchpoint): New function. |
| 2128 | (win32_stopped_by_watchpoint): New function. |
| 2129 | (win32_stopped_data_address): New function. |
| 2130 | (win32_target_ops): Add entries for insert_watchpoint, |
| 2131 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. |
| 2132 | * win32-low.h (win32_target_ops): New members insert_point, |
| 2133 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 2134 | |
| 2135 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
| 2136 | |
| 2137 | * server.c (process_serial_event): Re-return unsupported, not |
| 2138 | error, if the type isn't recognized. Re-allow supporting only |
| 2139 | insert or remove packets. Also call require_running for |
| 2140 | breakpoints. Add missing break statement to default case. Tidy. |
| 2141 | * target.h (struct target_ops): Rename insert_watchpoint to |
| 2142 | insert_point, and remove_watchpoint to remove_point. |
| 2143 | |
| 2144 | * linux-low.h (struct linux_target_ops): Likewise. |
| 2145 | * linux-low.c (linux_insert_watchpoint): Rename to ... |
| 2146 | (linux_insert_point): ... this. Adjust. |
| 2147 | (linux_remove_watchpoint): Rename to ... |
| 2148 | (linux_remove_point): ... this. Adjust. |
| 2149 | (linux_target_ops): Adjust. |
| 2150 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... |
| 2151 | (cris_insert_point): ... this. |
| 2152 | (cris_remove_watchpoint): Rename to ... |
| 2153 | (cris_remove_point): ... this. |
| 2154 | (the_low_target): Adjust. |
| 2155 | |
| 2156 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
| 2157 | |
| 2158 | * server.c (handle_v_kill): Pass signal_pid to |
| 2159 | kill_inferior if multi_process is zero. |
| 2160 | |
| 2161 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
| 2162 | |
| 2163 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. |
| 2164 | * target.h (target_ops): Comment for *_watchpoint to make it clear |
| 2165 | the functions can get types '0' and '1'. |
| 2166 | |
| 2167 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
| 2168 | |
| 2169 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. |
| 2170 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. |
| 2171 | * regcache.c (get_regcache): Likewise. |
| 2172 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. |
| 2173 | * win32-low.c (child_fetch_inferior_registers): Remove check for |
| 2174 | regno 0. |
| 2175 | |
| 2176 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
| 2177 | Pedro Alves <pedro@codesourcery.com> |
| 2178 | |
| 2179 | * target.h (struct target_ops) <supports_multi_process>: New |
| 2180 | callback. |
| 2181 | (target_supports_multi_process): New. |
| 2182 | * server.c (handle_query): Even if GDB reports support, only |
| 2183 | enable multi-process if the target also supports it. Report |
| 2184 | multi-process support only if the target backend supports it. |
| 2185 | * linux-low.c (linux_supports_multi_process): New function. |
| 2186 | (linux_target_ops): Install it as target_supports_multi_process |
| 2187 | callback. |
| 2188 | |
| 2189 | 2009-05-24 Doug Evans <dje@google.com> |
| 2190 | |
| 2191 | Global renaming of find_thread_pid to find_thread_ptid. |
| 2192 | * server.h (find_thread_ptid): Renamed from find_thread_pid. |
| 2193 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. |
| 2194 | All callers updated. |
| 2195 | |
| 2196 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
| 2197 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) |
| 2198 | directly. |
| 2199 | |
| 2200 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
| 2201 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. |
| 2202 | (linux_resume_one_lwp): Ditto. |
| 2203 | |
| 2204 | 2009-05-23 Doug Evans <dje@google.com> |
| 2205 | |
| 2206 | * linux-low.c (linux_resume_one_lwp): Change type of first arg |
| 2207 | from struct inferior_list_entry * to struct lwp_info *. |
| 2208 | All callers updated. |
| 2209 | |
| 2210 | 2009-05-13 Doug Evans <dje@google.com> |
| 2211 | |
| 2212 | * linux-x86-low.c: Don't include assert.h. |
| 2213 | (x86_siginfo_fixup): Use fatal, not assert. |
| 2214 | (x86_arch_setup): Fix comment. |
| 2215 | |
| 2216 | 2009-05-12 Doug Evans <dje@google.com> |
| 2217 | |
| 2218 | Biarch support for i386/amd64 gdbserver. |
| 2219 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. |
| 2220 | Add linux-x86-low.c. |
| 2221 | (linux-i386-low.o, linux-x86-64-low.o): Delete. |
| 2222 | (linux-x86-low.o): Add. |
| 2223 | * linux-x86-64-low.c: Delete. |
| 2224 | * linux-i386-low.c: Delete. |
| 2225 | * linux-x86-low.c: New file. |
| 2226 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with |
| 2227 | linux-x86-low.o. |
| 2228 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with |
| 2229 | linux-x86-low.o. |
| 2230 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. |
| 2231 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. |
| 2232 | (linux_child_pid_to_exec_file): New function. |
| 2233 | (elf_64_header_p, elf_64_file_p): New functions. |
| 2234 | (siginfo_fixup): New function. |
| 2235 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to |
| 2236 | give target a chance to convert layout. |
| 2237 | * linux-low.h (linux_target_ops): New member siginfo_fixup. |
| 2238 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. |
| 2239 | |
| 2240 | 2009-05-07 Doug Evans <dje@google.com> |
| 2241 | |
| 2242 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. |
| 2243 | (regsets_store_inferior_registers): Ditto. |
| 2244 | |
| 2245 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
| 2246 | |
| 2247 | PR server/10048 |
| 2248 | |
| 2249 | * linux-low.c (must_set_ptrace_flags): Delete. |
| 2250 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead |
| 2251 | of the global. |
| 2252 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set |
| 2253 | `lwp->must_set_ptrace_flags' instead. |
| 2254 | (linux_wait_for_event_1): Set ptrace options here. |
| 2255 | (linux_wait_1): ... not here. |
| 2256 | |
| 2257 | 2009-04-30 Doug Evans <dje@google.com> |
| 2258 | |
| 2259 | * inferiors.c (started_inferior_callback): New function. |
| 2260 | (attached_inferior_callback): New function. |
| 2261 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. |
| 2262 | * server.c (print_started_pid, print_attached_pid): New functions. |
| 2263 | (detach_or_kill_for_exit): New function. |
| 2264 | (main): Call it instead of for_each_inferior (kill_inferior_callback). |
| 2265 | * server.h (have_started_inferiors_p): Declare. |
| 2266 | (have_attached_inferiors_p): Declare. |
| 2267 | |
| 2268 | * inferiors.c (remove_process): Fix memory leak, free process. |
| 2269 | * linux-low.c (linux_remove_process): New function. |
| 2270 | (linux_kill): Call it instead of remove_process. |
| 2271 | (linux_detach, linux_wait_1): Ditto. |
| 2272 | |
| 2273 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
| 2274 | |
| 2275 | * configure.srv: Add x86 Windows CE target. |
| 2276 | |
| 2277 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 2278 | |
| 2279 | * inferiors.c (get_thread_process): Make global. |
| 2280 | * server.h (get_thread_process): Add prototype. |
| 2281 | * thread-db.c (find_one_thread): Use get_thread_process |
| 2282 | instead of current_process. |
| 2283 | (thread_db_get_tls_address): Do not crash if called when |
| 2284 | thread layer is not yet initialized. |
| 2285 | |
| 2286 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 2287 | |
| 2288 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. |
| 2289 | * spu-low.c (current_tid): Rename to ... |
| 2290 | (current_ptid): ... this. |
| 2291 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, |
| 2292 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use |
| 2293 | ptid_get_lwp (current_ptid) instead of current_tid. |
| 2294 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument |
| 2295 | instead of current_tid. Use find_process_pid to verify pid |
| 2296 | argument is valid. Pass proper argument to remove_process. |
| 2297 | (spu_thread_alive): Compare current_ptid instead of current_tid. |
| 2298 | (spu_resume): Likewise. |
| 2299 | |
| 2300 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
| 2301 | |
| 2302 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' |
| 2303 | variable. |
| 2304 | |
| 2305 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 2306 | |
| 2307 | Implement the multiprocess extensions, and add linux multiprocess |
| 2308 | support. |
| 2309 | |
| 2310 | * server.h (ULONGEST): Declare. |
| 2311 | (struct ptid, ptid_t): New. |
| 2312 | (minus_one_ptid, null_ptid): Declare. |
| 2313 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) |
| 2314 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. |
| 2315 | (struct inferior_list_entry): Change `id' type from unsigned from |
| 2316 | to ptid_t. |
| 2317 | (struct sym_cache, struct breakpoint, struct |
| 2318 | process_info_private): Forward declare. |
| 2319 | (struct process_info): Declare. |
| 2320 | (current_process): Declare. |
| 2321 | (all_processes): Declare. |
| 2322 | (initialize_inferiors): Declare. |
| 2323 | (add_thread): Adjust to use ptid_t. |
| 2324 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. |
| 2325 | (add_process, remove_process, find_thread_pid): Declare. |
| 2326 | (find_inferior_id): Adjust to use ptid_t. |
| 2327 | (cont_thread, general_thread, step_thread): Change type to ptid_t. |
| 2328 | (multi_process): Declare. |
| 2329 | (push_event): Adjust to use ptid_t. |
| 2330 | (read_ptid, write_ptid): Declare. |
| 2331 | (prepare_resume_reply): Adjust to use ptid_t. |
| 2332 | (clear_symbol_cache): Declare. |
| 2333 | * inferiors.c (all_processes): New. |
| 2334 | (null_ptid, minus_one_ptid): New. |
| 2335 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) |
| 2336 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. |
| 2337 | (add_thread): Change unsigned long to ptid. Remove gdb_id |
| 2338 | parameter. Adjust. |
| 2339 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. |
| 2340 | (gdb_id_to_thread): Rename to ... |
| 2341 | (find_thread_pid): ... this. Change unsigned long to ptid. |
| 2342 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. |
| 2343 | (loaded_dll, pull_pid_from_list): Adjust. |
| 2344 | (add_process, remove_process, find_process_pid) |
| 2345 | (get_thread_process, current_process, initialize_inferiors): New. |
| 2346 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. |
| 2347 | (struct target_waitstatus) <related_pid>: Ditto. |
| 2348 | (struct target_ops) <kill, detach>: Add `pid' argument. Change |
| 2349 | return type to int. |
| 2350 | (struct target_ops) <join>: Add `pid' argument. |
| 2351 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. |
| 2352 | (struct target_ops) <wait>: Add `ptid' field. Change return type |
| 2353 | to ptid. |
| 2354 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. |
| 2355 | (mywait): Add `ptid' argument. Change return type to ptid_t. |
| 2356 | (target_pid_to_str): Declare. |
| 2357 | * target.c (set_desired_inferior): Adjust to use ptids. |
| 2358 | (mywait): Add new `ptid' argument. Adjust. |
| 2359 | (target_pid_to_str): New. |
| 2360 | * mem-break.h (free_all_breakpoints): Declare. |
| 2361 | * mem-break.c (breakpoints): Delelete. |
| 2362 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) |
| 2363 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust |
| 2364 | to use per-process breakpoint list. |
| 2365 | (free_all_breakpoints): New. |
| 2366 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. |
| 2367 | (symbol_cache, all_symbols_looked_up): Delete. |
| 2368 | (hexchars): New. |
| 2369 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, |
| 2370 | read_ptid): New. |
| 2371 | (prepare_resume_reply): Change ptid argument's type from unsigned |
| 2372 | long to ptid_t. Adjust. Implement W;process and X;process. |
| 2373 | (free_sym_cache, clear_symbol_cache): New. |
| 2374 | (look_up_one_symbol): Adjust to per-process symbol cache. * |
| 2375 | * server.c (cont_thread, general_thread, step_thread): Change type |
| 2376 | to ptid_t. |
| 2377 | (attached): Delete. |
| 2378 | (multi_process): New. |
| 2379 | (last_ptid): Change type to ptid_t. |
| 2380 | (struct vstop_notif) <ptid>: Change type to ptid_t. |
| 2381 | (queue_stop_reply, push_event): Change `ptid' argument's type to |
| 2382 | ptid_t. |
| 2383 | (discard_queued_stop_replies): Add `pid' argument. |
| 2384 | (start_inferior): Adjust to use ptids. Adjust to mywait interface |
| 2385 | changes. Don't reference the `attached' global. |
| 2386 | (attach_inferior): Adjust to mywait interface changes. |
| 2387 | (handle_query): Adjust to use ptids. Parse GDB's qSupported |
| 2388 | features. Handle and report "multiprocess+". Handle |
| 2389 | "qAttached:PID". |
| 2390 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface |
| 2391 | changes. |
| 2392 | (handle_v_kill): New. |
| 2393 | (handle_v_stopped): Adjust to use target_pid_to_str. |
| 2394 | (handle_v_requests): Allow multiple attaches and runs when |
| 2395 | multiprocess extensions are in effect. Handle "vKill". |
| 2396 | (myresume): Adjust to use ptids. |
| 2397 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. |
| 2398 | (handle_status): Adjust to discard_queued_stop_replies interface |
| 2399 | change. |
| 2400 | (first_thread_of, kill_inferior_callback) |
| 2401 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. |
| 2402 | (main): Call initialize_inferiors. Adjust to use ptids, killing |
| 2403 | and detaching from all inferiors. Handle multiprocess packet |
| 2404 | variants. |
| 2405 | * linux-low.h: Include gdb_proc_service.h. |
| 2406 | (struct process_info_private): New. |
| 2407 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. |
| 2408 | <lwpid_of>: Use ptid_get_lwp. |
| 2409 | (get_lwp_thread): Adjust. |
| 2410 | (struct lwp_info): Add `dead' member. |
| 2411 | (find_lwp_pid): Declare. |
| 2412 | * linux-low.c (thread_db_active): Delete. |
| 2413 | (new_inferior): Adjust comment. |
| 2414 | (inferior_pid): Delete. |
| 2415 | (linux_add_process): New. |
| 2416 | (handle_extended_wait): Adjust. |
| 2417 | (add_lwp): Change unsigned long to ptid. |
| 2418 | (linux_create_inferior): Add process to processes table. Adjust |
| 2419 | to use ptids. Don't set new_inferior here. |
| 2420 | (linux_attach_lwp): Rename to ... |
| 2421 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle |
| 2422 | it. Adjust to use ptids. |
| 2423 | (linux_attach_lwp): New. |
| 2424 | (linux_attach): Add process to processes table. Don't set |
| 2425 | new_inferior here. |
| 2426 | (struct counter): New. |
| 2427 | (second_thread_of_pid_p, last_thread_of_process_p): New. |
| 2428 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to |
| 2429 | multiple processes. |
| 2430 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple |
| 2431 | processes. Remove process from process table. |
| 2432 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust |
| 2433 | to multiple processes. |
| 2434 | (any_thread_of): New. |
| 2435 | (linux_detach): Add `pid' argument, and handle it. Remove process |
| 2436 | from processes table. |
| 2437 | (linux_join): Add `pid' argument. Handle it. |
| 2438 | (linux_thread_alive): Change unsighed long argument to ptid_t. |
| 2439 | Consider dead lwps as not being alive. |
| 2440 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out |
| 2441 | threads we're not interested in. |
| 2442 | (same_lwp, find_lwp_pid): New. |
| 2443 | (linux_wait_for_lwp): Change `pid' argument's type from int to |
| 2444 | ptid_t. Adjust. |
| 2445 | (linux_wait_for_event): Rename to ... |
| 2446 | (linux_wait_for_event_1): ... this. Change `pid' argument's type |
| 2447 | from int to ptid_t. Adjust. |
| 2448 | (linux_wait_for_event): New. |
| 2449 | (linux_wait_1): Add `ptid' argument. Change return type to |
| 2450 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes |
| 2451 | that exit from the process table. |
| 2452 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. |
| 2453 | Adjust. |
| 2454 | (mark_lwp_dead): New. |
| 2455 | (wait_for_sigstop): Adjust to use ptids. If a process exits while |
| 2456 | stopping all threads, mark its main lwp as dead. |
| 2457 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use |
| 2458 | ptids. |
| 2459 | (fetch_register, usr_store_inferior_registers) |
| 2460 | (regsets_fetch_inferior_registers) |
| 2461 | (regsets_store_inferior_registers, linux_read_memory) |
| 2462 | (linux_write_memory): Inline `inferior_pid'. |
| 2463 | (linux_look_up_symbols): Adjust to use per-process |
| 2464 | `thread_db_active'. |
| 2465 | (linux_request_interrupt): Adjust to use ptids. |
| 2466 | (linux_read_auxv): Inline `inferior_pid'. |
| 2467 | (initialize_low): Don't reference thread_db_active. |
| 2468 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. |
| 2469 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. |
| 2470 | (ps_getpid): Return the pid of the current inferior. |
| 2471 | * thread-db.c (proc_handle, thread_agent): Delete. |
| 2472 | (thread_db_create_event, thread_db_enable_reporting): Adjust to |
| 2473 | per-process data. |
| 2474 | (find_one_thread): Change argument type to ptid_t. Adjust to |
| 2475 | per-process data. |
| 2476 | (maybe_attach_thread): Adjust to per-process data and ptids. |
| 2477 | (thread_db_find_new_threads): Ditto. |
| 2478 | (thread_db_init): Ditto. |
| 2479 | * spu-low.c (spu_create_inferior, spu_attach): Add process to |
| 2480 | processes table. Adjust to use ptids. |
| 2481 | (spu_kill, spu_detach): Adjust interface. Remove process from |
| 2482 | processes table. |
| 2483 | (spu_join, spu_thread_alive): Adjust interface. |
| 2484 | (spu_wait): Adjust interface. Remove process from processes |
| 2485 | table. Adjust to use ptids. |
| 2486 | * win32-low.c (current_inferior_tid): Delete. |
| 2487 | (current_inferior_ptid): New. |
| 2488 | (debug_event_ptid): New. |
| 2489 | (thread_rec): Take a ptid. Adjust. |
| 2490 | (child_add_thread): Add `pid' argument. Adjust to use ptids. |
| 2491 | (child_delete_thread): Ditto. |
| 2492 | (do_initial_child_stuff): Add `attached' argument. Add process to |
| 2493 | processes table. |
| 2494 | (child_fetch_inferior_registers, child_store_inferior_registers): |
| 2495 | Adjust. |
| 2496 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. |
| 2497 | (win32_attach): Pass 1 to do_initial_child_stuff. |
| 2498 | (win32_kill): Adjust interface. Remove process from processes |
| 2499 | table. |
| 2500 | (win32_detach): Ditto. |
| 2501 | (win32_join): Adjust interface. |
| 2502 | (win32_thread_alive): Take a ptid. |
| 2503 | (win32_resume): Adjust to use ptids. |
| 2504 | (get_child_debug_event): Ditto. |
| 2505 | (win32_wait): Adjust interface. Remove exiting process from |
| 2506 | processes table. |
| 2507 | |
| 2508 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 2509 | |
| 2510 | Non-stop mode support. |
| 2511 | |
| 2512 | * server.h (non_stop): Declare. |
| 2513 | (gdb_client_data, handler_func): Declare. |
| 2514 | (delete_file_handler, add_file_handler, start_event_loop): |
| 2515 | Declare. |
| 2516 | (handle_serial_event, handle_target_event, push_event) |
| 2517 | (putpkt_notif): Declare. |
| 2518 | * target.h (enum resume_kind): New. |
| 2519 | (struct thread_resume): Replace `step' field by `kind' field. |
| 2520 | (TARGET_WNOHANG): Define. |
| 2521 | (struct target_ops) <wait>: Add `options' argument. |
| 2522 | <supports_non_stop, async, start_non_stop>: New fields. |
| 2523 | (target_supports_non_stop, target_async): New. |
| 2524 | (start_non_stop): Declare. |
| 2525 | (mywait): Add `options' argument. |
| 2526 | * target.c (mywait): Add `options' argument. Print child exit |
| 2527 | notifications here. |
| 2528 | (start_non_stop): New. |
| 2529 | * server.c (non_stop, own_buf, mem_buf): New globals. |
| 2530 | (struct vstop_notif): New. |
| 2531 | (notif_queue): New global. |
| 2532 | (queue_stop_reply, push_event, discard_queued_stop_replies) |
| 2533 | (send_next_stop_reply): New. |
| 2534 | (start_inferior): Adjust to use resume_kind. Adjust to mywait |
| 2535 | interface changes. |
| 2536 | (attach_inferior): In non-stop mode, don't wait for the target |
| 2537 | here. |
| 2538 | (handle_general_set): Handle QNonStop. |
| 2539 | (handle_query): When handling qC, return the current general |
| 2540 | thread, instead of the first thread of the list. |
| 2541 | (handle_query): If the backend supports non-stop mode, include |
| 2542 | QNonStop+ in the qSupported query response. |
| 2543 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop |
| 2544 | and non-stop mode. |
| 2545 | (handle_v_attach, handle_v_run): Handle non-stop mode. |
| 2546 | (handle_v_stopped): New. |
| 2547 | (handle_v_requests): Report support for vCont;t. Handle vStopped. |
| 2548 | (myresume): Adjust to use resume_kind. Handle non-stop. |
| 2549 | (queue_stop_reply_callback): New. |
| 2550 | (handle_status): Handle non-stop mode. |
| 2551 | (main): Clear non_stop flag on reconnection. Use the event-loop. |
| 2552 | Refactor serial protocol handling from here ... |
| 2553 | (process_serial_event): ... to this new function. When GDB |
| 2554 | selects any thread, select one here. In non-stop mode, wait until |
| 2555 | GDB acks all pending events before exiting. |
| 2556 | (handle_serial_event, handle_target_event): New. |
| 2557 | * remote-utils.c (remote_open): Install remote_desc in the event |
| 2558 | loop. |
| 2559 | (remote_close): Remove remote_desc from the event loop. |
| 2560 | (putpkt_binary): Rename to... |
| 2561 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. |
| 2562 | (putpkt_binary): New as wrapper around putpkt_binary_1. |
| 2563 | (putpkt_notif): New. |
| 2564 | (prepare_resume_reply): In non-stop mode, don't change the |
| 2565 | general_thread. |
| 2566 | * event-loop.c: New. |
| 2567 | * Makefile.in (OBJ): Add event-loop.o. |
| 2568 | (event-loop.o): New rule. |
| 2569 | |
| 2570 | * linux-low.h (pid_of): Moved here. |
| 2571 | (lwpid_of): New. |
| 2572 | (get_lwp_thread): Use lwpid_of. |
| 2573 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. |
| 2574 | * linux-low.c (pid_of): Delete. |
| 2575 | (inferior_pid): Use lwpid_of. |
| 2576 | (linux_event_pipe): New. |
| 2577 | (target_is_async_p): New. |
| 2578 | (delete_lwp): New. |
| 2579 | (handle_extended_wait): Use lwpid_of. |
| 2580 | (add_lwp): Don't set lwpid field. |
| 2581 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. |
| 2582 | (linux_kill_one_lwp): If killing a running lwp, stop it first. |
| 2583 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. |
| 2584 | (linux_detach_one_lwp): If detaching from a running lwp, stop it |
| 2585 | first. Adjust to linux_wait_for_event interface changes. Use |
| 2586 | lwpid_of. |
| 2587 | (linux_detach): Don't delete the main lwp here. |
| 2588 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. |
| 2589 | (status_pending_p): Don't consider explicitly suspended lwps. |
| 2590 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info |
| 2591 | pointer. Add OPTIONS argument. Change return type to int. Use |
| 2592 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. |
| 2593 | (linux_wait_for_event): Take an integer pid instead of a lwp_info |
| 2594 | pointer. Add status pointer argument. Return a pid instead of a |
| 2595 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface |
| 2596 | changes. In non-stop mode, don't switch to a random thread. |
| 2597 | (linux_wait): Rename to... |
| 2598 | (linux_wait_1): ... this. Add target_options argument, and handle |
| 2599 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, |
| 2600 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge |
| 2601 | clean exit and signal exit code. Don't stop all threads in |
| 2602 | non-stop mode. In all-stop mode, only stop all threads when |
| 2603 | reporting a stop to GDB. Handle explicit thread stop requests. |
| 2604 | (async_file_flush, async_file_mark): New. |
| 2605 | (linux_wait): New. |
| 2606 | (send_sigstop): Use lwpid_of. |
| 2607 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event |
| 2608 | interface changes. In non-stop mode, don't switch to a random |
| 2609 | thread. |
| 2610 | (linux_resume_one_lwp): Use lwpid_of. |
| 2611 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... |
| 2612 | (linux_resume_one_thread): ... this. Handle resume_stop. In |
| 2613 | non-stop mode, don't look for pending flag in all threads. |
| 2614 | (resume_status_pending_p): Don't consider explicitly suspended |
| 2615 | threads. |
| 2616 | (my_waitpid): Reimplement. Emulate __WALL. |
| 2617 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): |
| 2618 | Use lwpid_of. |
| 2619 | (sigchld_handler, linux_supports_non_stop, linux_async) |
| 2620 | (linux_start_non_stop): New. |
| 2621 | (linux_target_ops): Register linux_supports_non_stop, linux_async |
| 2622 | and linux_start_non_stop. |
| 2623 | (initialize_low): Install SIGCHLD handler. |
| 2624 | * thread-db.c (thread_db_create_event, find_one_thread) |
| 2625 | (thread_db_get_tls_address): Use lwpid_of. |
| 2626 | * win32-low.c (win32_detach): Adjust to use resume_kind. |
| 2627 | (win32_wait): Add `options' argument. |
| 2628 | * spu-low.c (spu_resume): Adjust to use resume_kind. |
| 2629 | (spu_wait): Add `options' argument. |
| 2630 | |
| 2631 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 2632 | |
| 2633 | Decouple target code from remote protocol. |
| 2634 | |
| 2635 | * target.h (enum target_waitkind): New. |
| 2636 | (struct target_waitstatus): New. |
| 2637 | (struct target_ops) <wait>: Return an unsigned long. Take a |
| 2638 | target_waitstatus pointer instead of a char pointer. |
| 2639 | (mywait): Likewise. |
| 2640 | * target.c (mywait): Change prototype to return an unsigned long. |
| 2641 | Take a target_waitstatus pointer instead of a char pointer. Adjust. |
| 2642 | * server.h (thread_from_wait, old_thread_from_wait): Delete |
| 2643 | declarations. |
| 2644 | (prepare_resume_reply): Change prototype to take a |
| 2645 | target_waitstatus. |
| 2646 | * server.c (thread_from_wait, old_thread_from_wait): Delete. |
| 2647 | (last_status, last_ptid): New. |
| 2648 | (start_inferior): Remove "statusptr" argument. Adjust. Return a |
| 2649 | pid instead of a signal. |
| 2650 | (attach_inferior): Remove "status" and "signal" parameters. |
| 2651 | Adjust. |
| 2652 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, |
| 2653 | not as an address. |
| 2654 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) |
| 2655 | (handle_v_requests, myresume): Remove "status" and "signal" |
| 2656 | parameters. Adjust. |
| 2657 | (handle_status): New. |
| 2658 | (main): Delete local `status'. Adjust. |
| 2659 | * remote-utils.c: Include target.h. |
| 2660 | (prepare_resume_reply): Change prototype to take a |
| 2661 | target_waitstatus. Adjust. |
| 2662 | |
| 2663 | * linux-low.c (linux_wait): Adjust to new target_ops->wait |
| 2664 | interface. |
| 2665 | * spu-low.c (spu_wait): Adjust. |
| 2666 | * win32-low.c (enum target_waitkind, struct target_waitstatus): |
| 2667 | Delete. |
| 2668 | (win32_wait): Adjust. |
| 2669 | |
| 2670 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 2671 | |
| 2672 | * target.h (struct thread_resume): Delete leave_stopped member. |
| 2673 | (struct target_ops): Add a `n' argument to the `resume' callback. |
| 2674 | * server.c (start_inferior): Adjust. |
| 2675 | (handle_v_cont, myresume): Adjust. |
| 2676 | * linux-low.c (check_removed_breakpoint): Adjust to resume |
| 2677 | interface change, and to removed leave_stopped field. |
| 2678 | (resume_ptr): Delete. |
| 2679 | (struct thread_resume_array): New. |
| 2680 | (linux_set_resume_request): Add new `arg' parameter. Adjust to |
| 2681 | resume interface change. |
| 2682 | (linux_continue_one_thread, linux_queue_one_thread) |
| 2683 | (resume_status_pending_p): Check if the resume field is NULL |
| 2684 | instead of checking the leave_stopped member. |
| 2685 | (linux_resume): Adjust to the target resume interface change. |
| 2686 | * spu-low.c (spu_resume): Adjust to the target resume interface |
| 2687 | change. |
| 2688 | * win32-low.c (win32_detach, win32_resume): Ditto. |
| 2689 | |
| 2690 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 2691 | |
| 2692 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' |
| 2693 | flag. |
| 2694 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP |
| 2695 | pending. |
| 2696 | (linux_continue_one_thread): Only preserve the stepping flag if |
| 2697 | there's a pending breakpoint. |
| 2698 | |
| 2699 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
| 2700 | |
| 2701 | * server.c (main): After the inferior having exited, call |
| 2702 | remote_close before exiting gdbserver. |
| 2703 | |
| 2704 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 2705 | |
| 2706 | Fix size of FPSCR in Power 7 processors. |
| 2707 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. |
| 2708 | (PPC_FEATURE_HAS_DFP): New #define. |
| 2709 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on |
| 2710 | size of the FPSCR. |
| 2711 | |
| 2712 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
| 2713 | |
| 2714 | * server.c (handle_query) Whitespace and formatting. |
| 2715 | |
| 2716 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 2717 | |
| 2718 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, |
| 2719 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, |
| 2720 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, |
| 2721 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, |
| 2722 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, |
| 2723 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, |
| 2724 | Makefile.in, configure.ac: Fix whitespace throughout. |
| 2725 | * configure: Regenerate. |
| 2726 | |
| 2727 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 2728 | |
| 2729 | * inferiors.c (find_inferior): Make it safe for the callback |
| 2730 | function to delete the currently iterated inferior. |
| 2731 | |
| 2732 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 2733 | |
| 2734 | * Makefile.in (linuw_low_h): Move higher. |
| 2735 | (thread-db.o): Depend on $(linux_low_h). |
| 2736 | |
| 2737 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
| 2738 | |
| 2739 | Rename "process" to "lwp" throughout. |
| 2740 | |
| 2741 | * linux-low.c (all_processes): Rename to... |
| 2742 | (all_lwps): ... this. |
| 2743 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. |
| 2744 | (add_process): Rename to ... |
| 2745 | (add_lwp): ... this. Adjust. |
| 2746 | (linux_create_inferior): Adjust. |
| 2747 | (linux_attach_lwp): Adjust. |
| 2748 | (linux_attach): Adjust. |
| 2749 | (linux_kill_one_process): Rename to ... |
| 2750 | (linux_kill_one_lwp): ... this. Adjust. |
| 2751 | (linux_kill): Adjust. |
| 2752 | (linux_detach_one_process): Rename to ... |
| 2753 | (linux_detach_one_lwp): ... this. Adjust. |
| 2754 | (linux_detach): Adjust. |
| 2755 | (check_removed_breakpoint): Adjust. |
| 2756 | (status_pending_p): Adjust. |
| 2757 | (linux_wait_for_process): Rename to ... |
| 2758 | (linux_wait_for_lwp): ... this. Adjust. |
| 2759 | (linux_wait_for_event): Adjust. |
| 2760 | (send_sigstop): Adjust. |
| 2761 | (wait_for_sigstop): Adjust. |
| 2762 | (stop_all_processes): Rename to ... |
| 2763 | (stop_all_lwps): ... this. |
| 2764 | (linux_resume_one_process): Rename to ... |
| 2765 | (linux_resume_one_lwp): ... this. Adjust. |
| 2766 | (linux_set_resume_request, linux_continue_one_thread) |
| 2767 | (linux_queue_one_thread, resume_status_pending_p) |
| 2768 | (usr_store_inferior_registers, regsets_store_inferior_registers) |
| 2769 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): |
| 2770 | Adjust. |
| 2771 | * linux-low.h (get_process): Rename to ... |
| 2772 | (get_lwp): ... this. Adjust. |
| 2773 | (get_thread_process): Rename to ... |
| 2774 | (get_thread_lwp): ... this. Adjust. |
| 2775 | (get_process_thread): Rename to ... |
| 2776 | (get_lwp_thread): ... this. Adjust. |
| 2777 | (struct process_info): Rename to ... |
| 2778 | (struct lwp_info): ... this. |
| 2779 | (all_processes): Rename to ... |
| 2780 | (all_lwps): ... this. |
| 2781 | * proc-service.c (ps_lgetregs): Adjust. |
| 2782 | * thread-db.c (thread_db_create_event, find_one_thread) |
| 2783 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. |
| 2784 | |
| 2785 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
| 2786 | |
| 2787 | * server.c (handle_query): Handle "qAttached". |
| 2788 | |
| 2789 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
| 2790 | |
| 2791 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to |
| 2792 | GPLv3, update license URL. |
| 2793 | |
| 2794 | 2009-03-01 Doug Evans <dje@google.com> |
| 2795 | |
| 2796 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
| 2797 | (server_h): Add gdb_signals.h. |
| 2798 | (signals.o): Update. |
| 2799 | * server.h (target_signal_from_host,target_signal_to_host_p) |
| 2800 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. |
| 2801 | |
| 2802 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
| 2803 | |
| 2804 | * remote-utils.c (getpkt): Also generate remote-debug |
| 2805 | information if noack_mode is set. |
| 2806 | |
| 2807 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 2808 | |
| 2809 | * server.c (handle_query): Report qXfer:siginfo:read and |
| 2810 | qXfer:siginfo:write as supported and handle them. |
| 2811 | * target.h (struct target_ops) <qxfer_siginfo>: New field. |
| 2812 | * linux-low.c (linux_xfer_siginfo): New. |
| 2813 | (linux_target_ops): Set it. |
| 2814 | |
| 2815 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
| 2816 | |
| 2817 | * server.c (gdbserver_usage): Mention --remote-debug. |
| 2818 | (main): Accept '--remote-debug' switch. |
| 2819 | |
| 2820 | 2009-01-18 Doug Evans <dje@google.com> |
| 2821 | |
| 2822 | * regcache.c (new_register_cache): No need to check result of xcalloc. |
| 2823 | * server.c (handle_search_memory): Back out calls to xmalloc, |
| 2824 | result is checked and error is returned to user upon failure. |
| 2825 | (handle_query): Ditto. Add more checks for result of malloc. |
| 2826 | (handle_v_cont): Check result of malloc, report error back to |
| 2827 | user upon failure. |
| 2828 | (handle_v_run): Ditto. Call freeargv. |
| 2829 | * server.h (freeargv): Declare. |
| 2830 | * utils.c (freeargv): New fn. |
| 2831 | |
| 2832 | 2009-01-15 Doug Evans <dje@google.com> |
| 2833 | |
| 2834 | * gdbreplay.c (perror_with_name): Make arg const char *. |
| 2835 | * server.h (target_signal_to_name): Make return type const char *. |
| 2836 | * thread-db.c (thread_db_err_str): Make return type const char *. |
| 2837 | * utils.c (perror_with_name): Make arg const char *. |
| 2838 | |
| 2839 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
| 2840 | |
| 2841 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE |
| 2842 | when handling a EXIT_PROCESS_DEBUG_EVENT. |
| 2843 | |
| 2844 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
| 2845 | |
| 2846 | * gdbreplay.c (gdbreplay_version): Update copyright year. |
| 2847 | * server.c (gdbserver_version): Likewise. |
| 2848 | |
| 2849 | 2009-01-05 Doug Evans <dje@google.com> |
| 2850 | |
| 2851 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. |
| 2852 | (handle_extended_wait): Improve comment. |
| 2853 | |
| 2854 | 2008-12-13 Doug Evans <dje@google.com> |
| 2855 | |
| 2856 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. |
| 2857 | * server.h (ATTR_MALLOC): New macro. |
| 2858 | (xmalloc,xcalloc,xstrdup): Declare. |
| 2859 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. |
| 2860 | * inferiors.c: Ditto. |
| 2861 | * linux-low.c: Ditto. |
| 2862 | * mem-break.c: Ditto. |
| 2863 | * regcache.c: Ditto. |
| 2864 | * remote-utils.c: Ditto. |
| 2865 | * server.c: Ditto. |
| 2866 | * target.c: Ditto. |
| 2867 | * win32-low.c: Ditto. |
| 2868 | |
| 2869 | 2008-12-12 Doug Evans <dje@google.com> |
| 2870 | |
| 2871 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
| 2872 | in debugging printf. |
| 2873 | |
| 2874 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
| 2875 | |
| 2876 | 2008-12-09 Doug Evans <dje@google.com> |
| 2877 | |
| 2878 | * linux-low.h (struct process_info): Delete member tid, unused. |
| 2879 | * thread-db.c (find_one_thread): Update. |
| 2880 | (maybe_attach_thread): Update. |
| 2881 | |
| 2882 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
| 2883 | |
| 2884 | * target.h (struct target_ops): Add qxfer_osdata member. |
| 2885 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h |
| 2886 | and dirent.h. |
| 2887 | (linux_qxfer_osdata): New functions. |
| 2888 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata |
| 2889 | callback. |
| 2890 | * server.c (handle_query): Handle "qXfer:osdata:read:". |
| 2891 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) |
| 2892 | (buffer_xml_printf): New functions. |
| 2893 | * server.h (struct buffer): New. |
| 2894 | (buffer_grow_str, buffer_grow_str0): New macros. |
| 2895 | (buffer_grow, buffer_free, buffer_init, buffer_finish) |
| 2896 | (buffer_xml_printf): Declare. |
| 2897 | |
| 2898 | 2008-11-24 Doug Evans <dje@google.com> |
| 2899 | |
| 2900 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. |
| 2901 | |
| 2902 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 2903 | |
| 2904 | * server.c (handle_v_run): Always use the supplied argument list. |
| 2905 | |
| 2906 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
| 2907 | |
| 2908 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
| 2909 | (xtensa_regmap_table): Add entry for scompare1. |
| 2910 | |
| 2911 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 2912 | |
| 2913 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, |
| 2914 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, |
| 2915 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, |
| 2916 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, |
| 2917 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, |
| 2918 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. |
| 2919 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and |
| 2920 | XML target descriptions. |
| 2921 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR |
| 2922 | when inferior is running on an ISA 2.05 or later processor. Add |
| 2923 | special case to return offset for full 64-bit slot of FPSCR when |
| 2924 | in 32-bits. |
| 2925 | |
| 2926 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
| 2927 | |
| 2928 | * Makefile.in (SFILES, clean): Added sparc64 files. |
| 2929 | (reg-sparc64.o, reg-sparc64.c): New. |
| 2930 | * configure.srv (sparc*-*-linux*): New configuration. |
| 2931 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace |
| 2932 | syscall arguments for SPARC. |
| 2933 | (regsets_store_inferior_registers): Likewise. |
| 2934 | * linux-sparc-low.c: New file. |
| 2935 | |
| 2936 | 2008-10-21 Doug Evans <dje@google.com> |
| 2937 | |
| 2938 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. |
| 2939 | (READLINE_DIR,READLINE_DEP): Delete. |
| 2940 | (INTERNAL_CFLAGS): Update. |
| 2941 | (LINTFLAGS): Update. |
| 2942 | |
| 2943 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
| 2944 | |
| 2945 | * server.c (handle_v_run): If GDB didn't specify an argv, use the |
| 2946 | whole argv from the last run, not just argv[0]. |
| 2947 | |
| 2948 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
| 2949 | |
| 2950 | * regcache.c (new_register_cache): Return NULL if the register |
| 2951 | cache size isn't known yet. |
| 2952 | (free_register_cache): Avoid dereferencing a NULL regcache. |
| 2953 | |
| 2954 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 2955 | |
| 2956 | * configure.srv: Merge MIPS and MIPS64. |
| 2957 | |
| 2958 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
| 2959 | |
| 2960 | * Makefile.in (uninstall): Apply $(EXEEXT) too. |
| 2961 | |
| 2962 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
| 2963 | |
| 2964 | * Makefile.in: Add required vsx dependencies. |
| 2965 | |
| 2966 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. |
| 2967 | Declare init_registers_powerpc_vsx32l. |
| 2968 | Declare init_registers_powerpc_vsx64l. |
| 2969 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. |
| 2970 | (ppc_arch_setup): Check for VSX in hwcap. |
| 2971 | (ppc_fill_vsxregset): New function. |
| 2972 | (ppc_store_vsxregset): New function. |
| 2973 | Add new VSX entry in regset_info target_regsets. |
| 2974 | |
| 2975 | * configure.srv: Add new VSX dependencies. |
| 2976 | |
| 2977 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
| 2978 | |
| 2979 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. |
| 2980 | (remote_open): Set or clear transport_is_reliable. |
| 2981 | (putpkt_binary): Don't expect acks in noack mode. |
| 2982 | (getpkt): Don't send ack/nac in noack mode. |
| 2983 | * server.c (handle_general_set): Handle QStartNoAckMode. |
| 2984 | (handle_query): If connected by tcp pass QStartNoAckMode+ in |
| 2985 | qSupported. |
| 2986 | (main): Reset noack_mode on every connection. |
| 2987 | * server.h (noack_mode): Declare. |
| 2988 | |
| 2989 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 2990 | |
| 2991 | * Makefile.in (GDBREPLAY_OBS): New variable. |
| 2992 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. |
| 2993 | |
| 2994 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
| 2995 | Daniel Jacobowitz <dan@codesourcery.com> |
| 2996 | |
| 2997 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. |
| 2998 | (usr_store_inferior_registers): Likewise. |
| 2999 | (regsets_store_inferior_registers): Likewise. |
| 3000 | |
| 3001 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
| 3002 | Pedro Alves <pedro@codesourcery.com> |
| 3003 | |
| 3004 | * configure.ac: Check for memmem declaration. |
| 3005 | * server.c [HAVE_MALLOC_H]: Include malloc.h. |
| 3006 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) |
| 3007 | (disable_packet_qfThreadInfo): Unconditionally compile. |
| 3008 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. |
| 3009 | * configure, config.in: Regenerate. |
| 3010 | |
| 3011 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
| 3012 | |
| 3013 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. |
| 3014 | (linux_write_memory): Remove declaration of errno. |
| 3015 | |
| 3016 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 3017 | |
| 3018 | * linux-low.c (handle_extended_wait): Do not use "status" |
| 3019 | variable uninitialized. |
| 3020 | |
| 3021 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
| 3022 | |
| 3023 | * server.c (handle_v_attach): Inhibit reporting dll changes. |
| 3024 | |
| 3025 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
| 3026 | |
| 3027 | * remote-utils.c (prepare_resume_reply): If requested, don't |
| 3028 | output "thread:TID" in the T stop reply. |
| 3029 | |
| 3030 | * server.c (disable_packet_vCont, disable_packet_Tthread) |
| 3031 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. |
| 3032 | (handle_query): If requested, disable support for qC, qfThreadInfo |
| 3033 | and qsThreadInfo. |
| 3034 | (handle_v_requests): If requested, disable support for vCont. |
| 3035 | (gdbserver_show_disableable): New. |
| 3036 | (main): Handle --disable-packet and --disable-packet=LIST. |
| 3037 | |
| 3038 | * server.h (disable_packet_vCont, disable_packet_Tthread) |
| 3039 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. |
| 3040 | |
| 3041 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
| 3042 | |
| 3043 | * server.c (gdbserver_usage): Mention --version. |
| 3044 | |
| 3045 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 3046 | |
| 3047 | * Makefile.in (gdbreplay.o): New rule. |
| 3048 | |
| 3049 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
| 3050 | |
| 3051 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version |
| 3052 | message, not gdbserver. |
| 3053 | |
| 3054 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
| 3055 | Nathan Sidwell <nathan@codesourcery.com> |
| 3056 | Joseph Myers <joseph@codesourcery.com> |
| 3057 | |
| 3058 | * acinclude.m4: Include ../../config/acx.m4. |
| 3059 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. |
| 3060 | * configure, config.in: Regenerate. |
| 3061 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. |
| 3062 | * server.c (gdbserver_version): Print PKGVERSION. |
| 3063 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. |
| 3064 | (main): Adjust gdbserver_usage calls. |
| 3065 | * gdbreplay.c (version, host_name): Add declarations. |
| 3066 | (gdbreplay_version, gdbreplay_usage): New. |
| 3067 | (main): Accept --version and --help options. |
| 3068 | |
| 3069 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 3070 | |
| 3071 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. |
| 3072 | (arm_breakpoint_at): Handle Thumb. |
| 3073 | (the_low_target): Add comment. |
| 3074 | |
| 3075 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
| 3076 | |
| 3077 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. |
| 3078 | |
| 3079 | 2008-05-09 Doug Evans <dje@google.com> |
| 3080 | |
| 3081 | * server.h (decode_search_memory_packet): Declare. |
| 3082 | * remote-utils.c (decode_search_memory_packet): New fn. |
| 3083 | * server.c (handle_search_memory_1): New fn. |
| 3084 | (handle_search_memory): New fn. |
| 3085 | (handle_query): Process qSearch:memory packets. |
| 3086 | |
| 3087 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
| 3088 | |
| 3089 | * regcache.c (registers_length): Remove. |
| 3090 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a |
| 3091 | full register packet. |
| 3092 | * regcache.h (registers_length): Remove prototype. |
| 3093 | * server.h (PBUFSIZ): Define to 16384. |
| 3094 | |
| 3095 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 3096 | |
| 3097 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to |
| 3098 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, |
| 3099 | powerpc-64l.o, and powerpc-altivec64l.o. |
| 3100 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and |
| 3101 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, |
| 3102 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, |
| 3103 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, |
| 3104 | rs6000/power-linux.xml, and rs6000/power64-linux.xml |
| 3105 | to srv_xmlfiles. |
| 3106 | |
| 3107 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... |
| 3108 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. |
| 3109 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... |
| 3110 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. |
| 3111 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... |
| 3112 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. |
| 3113 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... |
| 3114 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. |
| 3115 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... |
| 3116 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. |
| 3117 | (clean): Update. |
| 3118 | |
| 3119 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... |
| 3120 | (init_registers_powerpc_32l): ... this new prototype. |
| 3121 | (init_registers_powerpc_32): Remove, replace by ... |
| 3122 | (init_registers_powerpc_altivec32l): ... this new prototype. |
| 3123 | (init_registers_powerpc_e500): Remove, replace by ... |
| 3124 | (init_registers_powerpc_e500l): ... this new prototype. |
| 3125 | (init_registers_ppc64): Remove, replace by ... |
| 3126 | (init_registers_powerpc_64l): ... this new prototype. |
| 3127 | (init_registers_powerpc_64): Remove, replace by ... |
| 3128 | (init_registers_powerpc_altivec64l): ... this new prototype. |
| 3129 | (ppc_num_regs): Set to 73. |
| 3130 | (PT_ORIG_R3, PT_TRAP): Define if necessary. |
| 3131 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. |
| 3132 | (ppc_cannot_store_register): Handle orig_r3 and trap. |
| 3133 | (ppc_arch_setup): Update init_registers_... calls. |
| 3134 | (ppc_fill_gregset): Handle orig_r3 and trap. |
| 3135 | |
| 3136 | * inferiors.c (clear_inferiors): Reset current_inferior. |
| 3137 | |
| 3138 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
| 3139 | |
| 3140 | * acinclude.m4: Add override.m4. |
| 3141 | * configure: Regenerate. |
| 3142 | |
| 3143 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
| 3144 | |
| 3145 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the |
| 3146 | initial call to init_register_ppc64. |
| 3147 | |
| 3148 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
| 3149 | |
| 3150 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single |
| 3151 | powerpc*-*-linux* case. |
| 3152 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
| 3153 | |
| 3154 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
| 3155 | |
| 3156 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from |
| 3157 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
| 3158 | from reg_xmlfiles. |
| 3159 | * linux-ppc-low.c: Include <elf.h>. |
| 3160 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. |
| 3161 | (ppc_hwcap): New global variable. |
| 3162 | (ppc_regmap): Remove __SPE__ #ifdef sections. |
| 3163 | (ppc_regmap_e500): New global variable. |
| 3164 | (ppc_cannot_store_register): Update __SPE__ special case. |
| 3165 | (ppc_get_hwcap): New function. |
| 3166 | (ppc_arch_setup): Use it to determine whether inferior supports |
| 3167 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. |
| 3168 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. |
| 3169 | Do not access registers if target does not support AltiVec. |
| 3170 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. |
| 3171 | Do not access registers if target does not support SPE. |
| 3172 | (target_regsets): Unconditionally include AltiVec and SPE regsets. |
| 3173 | |
| 3174 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 3175 | |
| 3176 | * linux-low.c (disabled_regsets, num_regsets): New. |
| 3177 | (use_regsets_p): Delete. |
| 3178 | (linux_wait_for_process): Clear disabled_regsets. |
| 3179 | (regsets_fetch_inferior_registers): Check and set it. |
| 3180 | (regsets_store_inferior_registers): Likewise. |
| 3181 | (linux_fetch_registers, linux_store_registers): Do not use |
| 3182 | use_regsets_p. |
| 3183 | (initialize_low): Allocate disabled_regsets. |
| 3184 | |
| 3185 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 3186 | |
| 3187 | * Makefile.in (LIBOBJS): New. |
| 3188 | (OBS): Use LIBOBJS. |
| 3189 | (memmem.o): New rule. |
| 3190 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. |
| 3191 | * configure: Regenerated. |
| 3192 | |
| 3193 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
| 3194 | |
| 3195 | * server.c (handle_query): Never return "unsupported" for |
| 3196 | qXfer:features:read queries. |
| 3197 | |
| 3198 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 3199 | |
| 3200 | * server.c (get_features_xml): Fix inverted condition. |
| 3201 | (handle_query): Always support qXfer:feature:read. |
| 3202 | |
| 3203 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
| 3204 | |
| 3205 | * server.c (wrapper_argv): New. |
| 3206 | (start_inferior): Handle wrapper_argv. If set, expect an extra |
| 3207 | trap. |
| 3208 | (gdbserver_usage): Document --wrapper. |
| 3209 | (main): Parse --wrapper. |
| 3210 | |
| 3211 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 3212 | |
| 3213 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for |
| 3214 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. |
| 3215 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. |
| 3216 | (ppc_set_pc): Likewise. |
| 3217 | (ppc_arch_setup): New function. |
| 3218 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead |
| 3219 | of collect_register. |
| 3220 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
| 3221 | |
| 3222 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 3223 | |
| 3224 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o |
| 3225 | instead of linux-ppc64-low.o. |
| 3226 | * linux-ppc64-low.c: Remove file. |
| 3227 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. |
| 3228 | (linux-ppc64-low.o): Remove rule. |
| 3229 | |
| 3230 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. |
| 3231 | (init_registers_powerpc_64): Likewise. |
| 3232 | (ppc_regmap): Conditionally define depending on __powerpc64__. |
| 3233 | (ppc_cannot_store_register): Do not special-case "fpscr" when |
| 3234 | compiled on __powerpc64__. |
| 3235 | (ppc_collect_ptrace_register): New function. |
| 3236 | (ppc_supply_ptrace_register): New function. |
| 3237 | (ppc_breakpoint): Change type to "unsigned int". |
| 3238 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". |
| 3239 | (the_low_target): Conditionally provide initializers for the |
| 3240 | arch_setup member depending on __powerpc64__. Install |
| 3241 | collect_ptrace_register and supply_ptrace_register members. |
| 3242 | |
| 3243 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 3244 | |
| 3245 | * regcache.h (gdbserver_xmltarget): Add extern declaration. |
| 3246 | * server.c (gdbserver_xmltarget): Define. |
| 3247 | (get_features_xml): Use it to replace "target.xml" and arch_string. |
| 3248 | |
| 3249 | * configure.srv: Remove srv_xmltarget. Add XML files that were |
| 3250 | mentioned there to srv_xmlfiles instead. Remove conditional tests |
| 3251 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set |
| 3252 | srv_xmlfiles and srv_regobj to include all possible choices. |
| 3253 | * configure.ac (srv_xmltarget): Remove. |
| 3254 | (srv_xmlfiles): Do not add "target.xml". |
| 3255 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove |
| 3256 | checks for supplementary target information. |
| 3257 | * configure: Regenerate. |
| 3258 | * Makefile.in (XML_TARGET): Remove. |
| 3259 | (target.xml): Remove rule. |
| 3260 | (clean): Do not clean up target.xml. |
| 3261 | (.PRECIOUS): Do not mention target.xml. |
| 3262 | |
| 3263 | * target.h (struct target_ops): Remove arch_string member. |
| 3264 | * linux-low.c (linux_arch_string): Remove. |
| 3265 | (linux_target_ops): Remove arch_string initializer. |
| 3266 | * linux-low.h (struct linux_target_ops): Remove arch_string member. |
| 3267 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. |
| 3268 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. |
| 3269 | * spu-low.c (spu_arch_string): Remove. |
| 3270 | (spu_target_ops): Remove arch_string initializer. |
| 3271 | * win32-low.c (win32_arch_string): Remove. |
| 3272 | (win32_target_ops): Remove arch_string initializer. |
| 3273 | * win32-low.h (struct win32_target_ops): Remove arch_string member. |
| 3274 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. |
| 3275 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. |
| 3276 | |
| 3277 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 3278 | |
| 3279 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field |
| 3280 | by collect_ptrace_register and supply_ptrace_register hooks. |
| 3281 | * linux-low.c (fetch_register): Use supply_ptrace_register callback |
| 3282 | instead of checking for the_low_target.left_pad_xfer. |
| 3283 | (usr_store_inferior_registers): Use collect_ptrace_register callback |
| 3284 | instead of checking for the_low_target.left_pad_xfer. |
| 3285 | |
| 3286 | * linux-s390-low.c (s390_collect_ptrace_register): New function. |
| 3287 | (s390_supply_ptrace_register): Likewise. |
| 3288 | (s390_fill_gregset): Call s390_collect_ptrace_register. |
| 3289 | (the_low_target): Update. |
| 3290 | |
| 3291 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. |
| 3292 | (ppc_supply_ptrace_register): Likewise. |
| 3293 | (the_low_target): Update. |
| 3294 | |
| 3295 | * linux-i386-low.c (the_low_target): Update. |
| 3296 | * linux-x86-64-low.c (the_low_target): Update. |
| 3297 | |
| 3298 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 3299 | |
| 3300 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both |
| 3301 | reg-s390.o and reg-s390x.o. |
| 3302 | |
| 3303 | * linux-low.c (new_inferior): New global variable. |
| 3304 | (linux_create_inferior, linux_attach): Set it. |
| 3305 | (linux_wait_for_process): Call the_low_target.arch_setup after the |
| 3306 | target has stopped for the first time. |
| 3307 | (initialize_low): Do not call the_low_target.arch_setup. |
| 3308 | |
| 3309 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. |
| 3310 | (s390_set_pc): Likewise. |
| 3311 | (s390_arch_setup): New function. |
| 3312 | (the_low_target): Use s390_arch_setup as arch_setup routine. |
| 3313 | |
| 3314 | * regcache.c (realloc_register_cache): New function. |
| 3315 | (set_register_cache): Call it for each existing regcache. |
| 3316 | |
| 3317 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 3318 | |
| 3319 | * server.h (init_registers): Remove prototype. |
| 3320 | |
| 3321 | * linux-low.h (struct linux_target_ops): Add arch_setup field. |
| 3322 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () |
| 3323 | instead of init_registers (). |
| 3324 | * linux-arm-low.c (init_registers_arm): Add prototype. |
| 3325 | (init_registers_arm_with_iwmmxt): Likewise. |
| 3326 | (the_low_target): Add initializer for arch_setup field. |
| 3327 | * linux-cris-low.c (init_registers_cris): Add prototype. |
| 3328 | (the_low_target): Add initializer for arch_setup field. |
| 3329 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. |
| 3330 | (the_low_target): Add initializer for arch_setup field. |
| 3331 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. |
| 3332 | (the_low_target): Add initializer for arch_setup field. |
| 3333 | * linux-ia64-low.c (init_registers_ia64): Add prototype. |
| 3334 | (the_low_target): Add initializer for arch_setup field. |
| 3335 | * linux-m32r-low.c (init_registers_m32r): Add prototype. |
| 3336 | (the_low_target): Add initializer for arch_setup field. |
| 3337 | * linux-m68k-low.c (init_registers_m68k): Add prototype. |
| 3338 | (the_low_target): Add initializer for arch_setup field. |
| 3339 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. |
| 3340 | (init_registers_mips64_linux): Likewise. |
| 3341 | (the_low_target): Add initializer for arch_setup field. |
| 3342 | * linux-ppc-low.c (init_registers_ppc): Add prototype. |
| 3343 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. |
| 3344 | (the_low_target): Add initializer for arch_setup field. |
| 3345 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. |
| 3346 | (init_registers_powerpc_64): Likewise. |
| 3347 | (the_low_target): Add initializer for arch_setup field. |
| 3348 | * linux-s390-low.c (init_registers_s390): Add prototype. |
| 3349 | (init_registers_s390x): Likewise. |
| 3350 | (the_low_target): Add initializer for arch_setup field. |
| 3351 | * linux-sh-low.c (init_registers_sh): Add prototype. |
| 3352 | (the_low_target): Add initializer for arch_setup field. |
| 3353 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. |
| 3354 | (the_low_target): Add initializer for arch_setup field. |
| 3355 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. |
| 3356 | (the_low_target): Add initializer for arch_setup field. |
| 3357 | |
| 3358 | * win32-low.h (struct win32_target_ops): Add arch_setup field. |
| 3359 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () |
| 3360 | instead of init_registers (). |
| 3361 | * win32-arm-low.c (init_registers_arm): Add prototype. |
| 3362 | (the_low_target): Add initializer for arch_setup field. |
| 3363 | * win32-i386-low.c (init_registers_i386): Add prototype. |
| 3364 | (the_low_target): Add initializer for arch_setup field. |
| 3365 | |
| 3366 | * spu-low.c (init_registers_spu): Add prototype. |
| 3367 | (initialize_low): Call initialie_registers_spu () instead of |
| 3368 | initialize_registers (). |
| 3369 | |
| 3370 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
| 3371 | |
| 3372 | * server.c (handle_v_requests): When handling the vRun and vAttach |
| 3373 | packets, if already debugging a process, don't kill it. Return an |
| 3374 | error instead. |
| 3375 | |
| 3376 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 3377 | |
| 3378 | * server.c (handle_query): Correct length check. |
| 3379 | |
| 3380 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3381 | |
| 3382 | * win32-low.c (do_initial_child_stuff): Add process handle |
| 3383 | parameter. Set current_process_handle and current_process_id from the |
| 3384 | parameters. Clear globals. |
| 3385 | (win32_create_inferior): Don't set current_process_handle and |
| 3386 | current_process_id here. Instead pass them on the call to |
| 3387 | do_initial_child_stuff. |
| 3388 | (win32_attach): Likewise. |
| 3389 | (win32_clear_inferiors): New. |
| 3390 | (win32_kill): Don't close the current process handle or the |
| 3391 | current thread handle here. Instead call win32_clear_inferiors. |
| 3392 | (win32_detach): Don't open a new handle to the process. Call |
| 3393 | win32_clear_inferiors. |
| 3394 | (win32_join): Don't rely on current_process_handle; open a new |
| 3395 | handle using the process id. |
| 3396 | (win32_wait): Call win32_clear_inferiors when the inferior process |
| 3397 | has exited. |
| 3398 | |
| 3399 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 3400 | |
| 3401 | * server.c (monitor_show_help): Add "exit". |
| 3402 | |
| 3403 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
| 3404 | |
| 3405 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
| 3406 | (clean): Add reg-xtensa.c. |
| 3407 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. |
| 3408 | * configure.srv (xtensa*-*-linux*) New target. |
| 3409 | * linux-xtensa-low.c: New. |
| 3410 | * xtensa-xtregs.c: New. |
| 3411 | |
| 3412 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3413 | |
| 3414 | * hostio.c: Don't include errno.h. |
| 3415 | (errno_to_fileio_errno): Move to hostio-errno. |
| 3416 | * hostio.c: (hostio_error): Remove the error parameter. Defer the |
| 3417 | error number outputting to the target->hostio_last_error callback. |
| 3418 | (hostio_packet_error): Use FILEIO_EINVAL directly. |
| 3419 | (handle_open, handle_pread, hostio_error, handle_unlink): Update |
| 3420 | calls to hostio_error. |
| 3421 | * hostio-errno.c: New. |
| 3422 | * server.h (hostio_last_error_from_errno): Declare. |
| 3423 | * target.h (target_ops): Add hostio_last_error member. |
| 3424 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno |
| 3425 | as hostio_last_error handler. |
| 3426 | * spu-low.c (spu_target_ops): Likewise. |
| 3427 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
| 3428 | (wince_hostio_last_error): New functions. |
| 3429 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error |
| 3430 | as hostio_last_error handler. |
| 3431 | (win32_target_ops) [!_WIN32_WCE]: Register |
| 3432 | hostio_last_error_from_errno as hostio_last_error handler. |
| 3433 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. |
| 3434 | (hostio-errno.o): New rule. |
| 3435 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. |
| 3436 | * configure.srv (srv_hostio_err_objs): New variable. Default to |
| 3437 | hostio-errno.o. |
| 3438 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". |
| 3439 | * configure: Regenerate. |
| 3440 | |
| 3441 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 3442 | |
| 3443 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. |
| 3444 | (linux_kill, linux_detach): Clean up the process list. |
| 3445 | * remote-utils.c (remote_open): Improve port number parsing. |
| 3446 | (putpkt_binary, input_interrupt): Only send interrupts if the target |
| 3447 | is running. |
| 3448 | * server.c (extended_protocol): Make static. |
| 3449 | (attached): Define earlier. |
| 3450 | (exit_requested, response_needed, program_argv): New variables. |
| 3451 | (target_running): New. |
| 3452 | (start_inferior): Clear attached here. |
| 3453 | (attach_inferior): Set attached here. |
| 3454 | (require_running): Define. |
| 3455 | (handle_query): Use require_running and target_running. Implement |
| 3456 | "monitor exit". |
| 3457 | (handle_v_attach, handle_v_run): New. |
| 3458 | (handle_v_requests): Use require_running. Handle vAttach and vRun. |
| 3459 | (gdbserver_usage): Update. |
| 3460 | (main): Redo argument parsing. Handle --debug and --multi. Handle |
| 3461 | --attach along with other options or after the port. Save |
| 3462 | program_argv. Support no initial program. Resynchronize |
| 3463 | communication with GDB after an error. Handle "monitor exit". |
| 3464 | Use require_running and target_running. Always allow the extended |
| 3465 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically |
| 3466 | restart in extended mode. |
| 3467 | * README: Refer to the GDB manual. Update --attach usage. |
| 3468 | |
| 3469 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
| 3470 | |
| 3471 | * linux-low.c (STACK_SIZE): Define. |
| 3472 | (linux_tracefork_child): Use it. Use __clone2 on ia64. |
| 3473 | (linux_test_for_tracefork): Likewise. |
| 3474 | |
| 3475 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
| 3476 | |
| 3477 | * linux-low.c (linux_wait_for_event): Update messages. Do not |
| 3478 | reinsert auto-delete breakpoints. |
| 3479 | * mem-break.c (struct breakpoint): Change return type of handler to |
| 3480 | int. |
| 3481 | (set_breakpoint_at): Update handler type. |
| 3482 | (reinsert_breakpoint_handler): Return 1 instead of calling |
| 3483 | delete_breakpoint. |
| 3484 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before |
| 3485 | setting a new one. |
| 3486 | (check_breakpoints): Delete auto-delete breakpoints and return 2. |
| 3487 | * mem-break.h (set_breakpoint_at): Update handler type. |
| 3488 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. |
| 3489 | * win32-low.c (auto_delete_breakpoint): New. |
| 3490 | (get_child_debug_event): Use it. |
| 3491 | |
| 3492 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 3493 | |
| 3494 | * configure.ac: Check for pread and pwrite. |
| 3495 | * hostio.c (handle_pread): Fall back to lseek and read. |
| 3496 | (handle_pwrite): Fall back to lseek and write. |
| 3497 | * config.in, configure: Regenerated. |
| 3498 | |
| 3499 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
| 3500 | |
| 3501 | * server.c (myresume): Add own_buf argument. |
| 3502 | (main): Update calls. |
| 3503 | |
| 3504 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 3505 | |
| 3506 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. |
| 3507 | * remote-utils.c (remote_open): Do not call disable_async_io. |
| 3508 | (block_async_io): Delete. |
| 3509 | (unblock_async_io): Make static. |
| 3510 | (initialize_async_io): New. |
| 3511 | * server.c (handle_v_cont): Handle async I/O here. |
| 3512 | (myresume): Likewise. Move other common resume tasks here... |
| 3513 | (main): ... from here. Call initialize_async_io. Disable async |
| 3514 | I/O before the main loop. |
| 3515 | * server.h (initialize_async_io): Declare. |
| 3516 | (block_async_io, unblock_async_io): Delete prototypes. |
| 3517 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. |
| 3518 | |
| 3519 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
| 3520 | |
| 3521 | * remote-utils.c (readchar): Allow binary data in received messages. |
| 3522 | |
| 3523 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3524 | |
| 3525 | * win32-low.c (attaching): New global. |
| 3526 | (win32_create_inferior): Clear the `attaching' global. |
| 3527 | (win32_attach): Set the `attaching' global. |
| 3528 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when |
| 3529 | attaching. Only set a breakpoint at the entry point if not |
| 3530 | attaching. |
| 3531 | |
| 3532 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3533 | |
| 3534 | * server.c (main): Don't report dll events on the initial |
| 3535 | connection on attaches. |
| 3536 | |
| 3537 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3538 | |
| 3539 | * server.c (main): Relax numerical bases supported for the pid of |
| 3540 | the --attach command line argument. |
| 3541 | |
| 3542 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3543 | |
| 3544 | * win32-low.c (win32_attach): Call OpenProcess before |
| 3545 | DebugActiveProcess, not after. Add last error output to error |
| 3546 | call. |
| 3547 | |
| 3548 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3549 | |
| 3550 | * win32-low.c (win32_get_thread_context) |
| 3551 | (win32_set_thread_context): New functions. |
| 3552 | (thread_rec): Use win32_get_thread_context. |
| 3553 | (continue_one_thread, win32_resume): Use win32_set_thread_context. |
| 3554 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' |
| 3555 | field. |
| 3556 | |
| 3557 | 2007-12-03 Leo Zayas |
| 3558 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 3559 | |
| 3560 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New |
| 3561 | global variables. |
| 3562 | (child_add_thread): Minor cleanup. |
| 3563 | (child_continue): Resume artificially suspended threads before |
| 3564 | calling ContinueDebugEvent. |
| 3565 | (suspend_one_thread): New. |
| 3566 | (fake_breakpoint_event): New. |
| 3567 | (get_child_debug_event): Change return type to int. Check here if |
| 3568 | gdb sent an interrupt request. If a soft interrupt was requested, |
| 3569 | fake a breakpoint event. Return 0 if there is no event to handle, |
| 3570 | and 1 otherwise. |
| 3571 | (win32_wait): Don't check here if gdb sent an interrupt request. |
| 3572 | Ensure there is a valid event to handle. |
| 3573 | (win32_request_interrupt): Add soft interruption method as last |
| 3574 | resort. |
| 3575 | |
| 3576 | 2007-12-03 Leo Zayas |
| 3577 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 3578 | |
| 3579 | * win32-low.h (win32_thread_info): Add descriptions to the |
| 3580 | structure members. Replace `suspend_count' counter by a |
| 3581 | `suspended' flag. |
| 3582 | * win32-low.c (thread_rec): Update condition of when to get the |
| 3583 | context from the inferior. Rely on ContextFlags being set if it |
| 3584 | has already been retrieved. Only suspend the inferior thread if |
| 3585 | we haven't already. Warn if that fails. |
| 3586 | (continue_one_thread): s/suspend_count/suspended/. Only call |
| 3587 | ResumeThread once. Warn if that fails. |
| 3588 | |
| 3589 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3590 | |
| 3591 | * win32-low.c (win32_wait): Don't read from the inferior when it |
| 3592 | has already exited. |
| 3593 | |
| 3594 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3595 | |
| 3596 | * Makefile.in (win32_low_h): New variable. |
| 3597 | (win32-low.o): Add dependency on $(win32_low_h). |
| 3598 | (win32-arm-low.o, win32-i386-low.o): New rules. |
| 3599 | |
| 3600 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 3601 | |
| 3602 | * hostio.c: Correct copyright year. |
| 3603 | |
| 3604 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 3605 | |
| 3606 | * Makefile.in (OBS): Add hostio.o. |
| 3607 | (hostio.o): New rule. |
| 3608 | * server.h (handle_vFile): Declare. |
| 3609 | * hostio.c: New file. |
| 3610 | * server.c (handle_v_requests): Take packet_len and new_packet_len |
| 3611 | for binary packets. Call handle_vFile. |
| 3612 | (main): Update call to handle_v_requests. |
| 3613 | |
| 3614 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
| 3615 | |
| 3616 | * linux-low.c: Include <sched.h>. |
| 3617 | |
| 3618 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 3619 | |
| 3620 | * linux-low.c (linux_tracefork_grandchild): New. |
| 3621 | (linux_tracefork_child): Use clone. |
| 3622 | (linux_test_for_tracefork): Use clone; allocate and free a stack. |
| 3623 | |
| 3624 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
| 3625 | |
| 3626 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. |
| 3627 | |
| 3628 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 3629 | |
| 3630 | * linux-low.c (handle_extended_wait): Handle unexpected signals. |
| 3631 | |
| 3632 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
| 3633 | |
| 3634 | * inferiors.c (change_inferior_id): Delete. |
| 3635 | (add_pid_to_list, pull_pid_from_list): New. |
| 3636 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) |
| 3637 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) |
| 3638 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) |
| 3639 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) |
| 3640 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) |
| 3641 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. |
| 3642 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. |
| 3643 | (using_threads): Always set to 1. |
| 3644 | (handle_extended_wait): New. |
| 3645 | (add_process): Do not set TID. |
| 3646 | (linux_create_inferior): Set must_set_ptrace_flags. |
| 3647 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. |
| 3648 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. |
| 3649 | (linux_thread_alive): Rename TID argument to LWPID. |
| 3650 | (linux_wait_for_process): Handle unknown processes. Do not use TID. |
| 3651 | (linux_wait_for_event): Do not use TID or check using_threads. Update |
| 3652 | call to dead_thread_notify. Call handle_extended_wait. |
| 3653 | (linux_create_inferior): Use PTRACE_SETOPTIONS. |
| 3654 | (send_sigstop): Delete sigstop_sent. |
| 3655 | (wait_for_sigstop): Avoid TID. |
| 3656 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) |
| 3657 | (linux_test_for_tracefork): New. |
| 3658 | (linux_lookup_signals): Use thread_db_active and |
| 3659 | linux_supports_tracefork_flag. |
| 3660 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. |
| 3661 | * linux-low.h (get_process_thread): Avoid TID. |
| 3662 | (struct process_ifo): Move thread_known and tid to the end. Remove |
| 3663 | sigstop_sent. |
| 3664 | (linux_attach_lwp, thread_db_init): Update prototypes. |
| 3665 | * server.h (change_inferior_id): Delete prototype. |
| 3666 | (add_pid_to_list, pull_pid_from_list): New prototypes. |
| 3667 | * thread-db.c (thread_db_use_events): New. |
| 3668 | (find_first_thread): Rename to... |
| 3669 | (find_one_thread): ...this. Update callers and messages. Do not |
| 3670 | call fatal. Check thread_db_use_events. Do not call |
| 3671 | change_inferior_id or new_thread_notify. |
| 3672 | (maybe_attach_thread): Update. Do not call new_thread_notify. |
| 3673 | (thread_db_init): Set thread_db_use_events. Check use_events. |
| 3674 | * utils.c (fatal, warning): Correct message prefix. |
| 3675 | |
| 3676 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 3677 | |
| 3678 | * Makefile.in (clean): Remove new files. |
| 3679 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) |
| 3680 | (powerpc-64.o, powerpc-64.c): New rules. |
| 3681 | * configure.srv: Use alternate register sets for powerpc64-*-linux* |
| 3682 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* |
| 3683 | with SPE. |
| 3684 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for |
| 3685 | SPE targets. |
| 3686 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. |
| 3687 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) |
| 3688 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) |
| 3689 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. |
| 3690 | (target_regsets): Add AltiVec and SPE register sets. |
| 3691 | * configure.ac: Check for AltiVec and SPE. |
| 3692 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) |
| 3693 | (ppc_fill_vrregset, ppc_store_vrregset): New. |
| 3694 | (target_regsets): Add AltiVec register set. |
| 3695 | * configure: Regenerated. |
| 3696 | |
| 3697 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 3698 | |
| 3699 | * linux-low.c (O_LARGEFILE): Define. |
| 3700 | (linux_read_memory): Use /proc/PID/mem. |
| 3701 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. |
| 3702 | * configure, config.in: Regenerated. |
| 3703 | |
| 3704 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 3705 | |
| 3706 | * linux-low.c (linux_wait_for_event): Do not pass signals while |
| 3707 | single-stepping. |
| 3708 | |
| 3709 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3710 | |
| 3711 | * win32-low.c (create_process): New. |
| 3712 | (win32_create_inferior): Use create_process instead of |
| 3713 | CreateProcess. If create_process failed retry appending an ".exe" |
| 3714 | suffix. Store the GetLastError result immediatelly after |
| 3715 | create_process calls and use it on the call to error. |
| 3716 | |
| 3717 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3718 | |
| 3719 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. |
| 3720 | |
| 3721 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
| 3722 | |
| 3723 | * configure.ac: Switch license to GPLv3. |
| 3724 | |
| 3725 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
| 3726 | |
| 3727 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. |
| 3728 | |
| 3729 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3730 | |
| 3731 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New |
| 3732 | typedef. |
| 3733 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. |
| 3734 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get |
| 3735 | CloseToolhelp32Snapshot. |
| 3736 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with |
| 3737 | CloseToolhelp32Snapshot. |
| 3738 | |
| 3739 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
| 3740 | |
| 3741 | * server.c (main): Check for inferior exit before main loop. |
| 3742 | |
| 3743 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3744 | |
| 3745 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc |
| 3746 | instead of on tmp_desc. |
| 3747 | |
| 3748 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3749 | Daniel Jacobowitz <dan@codesourcery.com> |
| 3750 | |
| 3751 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. |
| 3752 | (add_thread): Minor cleanups. |
| 3753 | (clear_inferiors): Move lower in the file. Clear the DLL |
| 3754 | list. |
| 3755 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. |
| 3756 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. |
| 3757 | (xml_escape_text): New. |
| 3758 | * server.c (handle_query): Handle qXfer:libraries:read. Report it |
| 3759 | for qSupported. |
| 3760 | (handle_v_cont): Report errors. |
| 3761 | (gdbserver_version): Update. |
| 3762 | (main): Correct size of own_buf. Do not report initial DLL events. |
| 3763 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) |
| 3764 | (unloaded_dll, xml_escape_text): New. |
| 3765 | * win32-low.c (enum target_waitkind): Update comments. |
| 3766 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) |
| 3767 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) |
| 3768 | (win32_EnumProcessModules, win32_GetModuleInformation) |
| 3769 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) |
| 3770 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) |
| 3771 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) |
| 3772 | (win32_Module32First, win32_Module32Next, load_toolhelp) |
| 3773 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. |
| 3774 | (get_child_debug_event): Handle DLL events. |
| 3775 | (win32_wait): Likewise. |
| 3776 | |
| 3777 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 3778 | |
| 3779 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. |
| 3780 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. |
| 3781 | |
| 3782 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3783 | |
| 3784 | * win32-low.c (handle_output_debug_string): Ignore event if not |
| 3785 | waiting. |
| 3786 | |
| 3787 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3788 | |
| 3789 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. |
| 3790 | |
| 3791 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 3792 | |
| 3793 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. |
| 3794 | |
| 3795 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 3796 | |
| 3797 | * inferiors.c (change_inferior_id): Add comment. |
| 3798 | * linux-low.c (check_removed_breakpoint): Add an early |
| 3799 | prototype. Improve debug output. |
| 3800 | (linux_attach): Doc update. |
| 3801 | (linux_detach_one_process, linux_detach): Clean up before releasing |
| 3802 | each process. |
| 3803 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. |
| 3804 | * linux-low.h (struct process_info): Doc improvement. |
| 3805 | * mem-break.c (delete_all_breakpoints): New. |
| 3806 | * mem-break.h (delete_all_breakpoints): New prototype. |
| 3807 | * thread-db.c (find_first_thread): New. |
| 3808 | (thread_db_create_event): Call it instead of |
| 3809 | thread_db_find_new_threads. Clean up unused variables. |
| 3810 | (maybe_attach_thread): Remove first thread handling. |
| 3811 | (thread_db_find_new_threads): Use find_first_thread. |
| 3812 | (thread_db_get_tls_address): Likewise. |
| 3813 | |
| 3814 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 3815 | |
| 3816 | * thread-db.c (thread_db_find_new_threads): Add prototype. |
| 3817 | (thread_db_create_event): Check for the main thread before adding |
| 3818 | a new thread. |
| 3819 | (maybe_attach_thread): Only enable event reporting if TID == 0. |
| 3820 | (thread_db_get_tls_address): Check for new threads. |
| 3821 | |
| 3822 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
| 3823 | |
| 3824 | * linux-low.c (linux_create_inferior): Try execv before execvp. |
| 3825 | * spu-low.c (spu_create_inferior): Likewise. |
| 3826 | |
| 3827 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
| 3828 | |
| 3829 | * linux-low.c (linux_create_inferior): Change execv to execvp. |
| 3830 | * spu-low.c (spu_create_inferior): Likewies. |
| 3831 | |
| 3832 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 3833 | |
| 3834 | * Makefile.in (clean): Clean new files instead of deleted ones. |
| 3835 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. |
| 3836 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New |
| 3837 | rules. |
| 3838 | * configure.srv: Specify XML files and new regformats for MIPS and |
| 3839 | MIPS64 GNU/Linux. |
| 3840 | * linux-mips-low.c (mips_num_regs): Set to only used registers. |
| 3841 | (mips_regmap): Do not fetch $0. Remove unused registers. Add |
| 3842 | an entry for the restart register. |
| 3843 | (mips_cannot_fetch_register, mips_cannot_store_register) |
| 3844 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update |
| 3845 | register names to match the XML descriptions. |
| 3846 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the |
| 3847 | restart register instead of $0. |
| 3848 | |
| 3849 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 3850 | Markus Deuling <deuling@de.ibm.com> |
| 3851 | |
| 3852 | * remote-utils.c (decode_xfer_write): New function. |
| 3853 | * server.h (decode_xfer_write): Add prototype. |
| 3854 | * server.c (handle_query): Add PACKET_LEN argument. Support |
| 3855 | qXfer:spu:read and qXfer:spu:write packets. |
| 3856 | (main): Pass packet_len to handle_query. |
| 3857 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. |
| 3858 | * target.h (target_ops): Add qxfer_spu. |
| 3859 | |
| 3860 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 3861 | |
| 3862 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when |
| 3863 | accessing non-seekable spufs files. |
| 3864 | |
| 3865 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
| 3866 | |
| 3867 | * server.c (handle_query): Add reply for qC packet. |
| 3868 | |
| 3869 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3870 | Leo Zayas <lerele@champenstudios@com> |
| 3871 | |
| 3872 | * server.h (check_remote_input_interrupt_request): New function. |
| 3873 | * remote_utils.c (INVALID_DESCRIPTOR): New define. |
| 3874 | (remote_desc): Initialize with INVALID_DESCRIPTOR. |
| 3875 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. |
| 3876 | (check_remote_input_interrupt_request): New function. |
| 3877 | * server.h (check_remote_input_interrupt_request): Declare. |
| 3878 | * win32-low.c (winapi_DebugBreakProcess, |
| 3879 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
| 3880 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec |
| 3881 | to 250 ms. |
| 3882 | (win32_wait): Check for remote interrupt request |
| 3883 | with check_remote_input_interrupt_request. |
| 3884 | (win32_request_interrupt): New function. |
| 3885 | (win32_target_op): Set request_interrupt to win32_request_interrupt. |
| 3886 | |
| 3887 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3888 | |
| 3889 | * win32-low.c (debug_registers_changed, |
| 3890 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, |
| 3891 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, |
| 3892 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. |
| 3893 | (thread_rec): Get context using the low target. |
| 3894 | (child_add_thread): Call thread_added on the low target, |
| 3895 | which does the same thing. |
| 3896 | (regptr): Delete. |
| 3897 | (do_initial_child_stuff): Remove debug registers references. |
| 3898 | Set context using the low target. Resume threads after |
| 3899 | setting the contexts. |
| 3900 | (child_continue): Remove dead variable. Remove debug |
| 3901 | registers references. |
| 3902 | (child_fetch_inferior_registers): Go through the low target. |
| 3903 | (do_child_store_inferior_registers): Remove. |
| 3904 | (child_store_inferior_registers): Go through the low target. |
| 3905 | (win32_resume): Remove debug registers references. |
| 3906 | Set context using the low target. |
| 3907 | (handle_exception): Change return type to void. Don't record |
| 3908 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a |
| 3909 | first chance exception. |
| 3910 | (get_child_debug_event): Change return type to void. Remove |
| 3911 | goto loop. Always return after waiting for debug event. |
| 3912 | (win32_wait): Convert to switch statement. Handle spurious |
| 3913 | events. |
| 3914 | |
| 3915 | * win32-i386-low.c (debug_registers_changed, |
| 3916 | debug_registers_used): New. |
| 3917 | (initial_stuff): Rename to ... |
| 3918 | (i386_initial_stuff): ... this. Clear debug registers |
| 3919 | state variables. |
| 3920 | (store_debug_registers): Delete. |
| 3921 | (i386_get_thread_context): New. |
| 3922 | (load_debug_registers): Delete. |
| 3923 | (i386_set_thread_context): New. |
| 3924 | (i386_thread_added): New. |
| 3925 | (single_step): Rename to ... |
| 3926 | (i386_single_step): ... this. |
| 3927 | (do_fetch_inferior_registers): Rename to ... |
| 3928 | (i386_fetch_inferior_register): ... this. |
| 3929 | (i386_store_inferior_register): New. |
| 3930 | (the_low_target): Adapt to new interface. |
| 3931 | |
| 3932 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. |
| 3933 | (arm_get_thread_context): New. |
| 3934 | (arm_set_thread_context): New. |
| 3935 | (regptr): New. |
| 3936 | (do_fetch_inferior_registers): Rename to ... |
| 3937 | (arm_fetch_inferior_register): ... this. |
| 3938 | (arm_store_inferior_register): New. |
| 3939 | (arm_wince_breakpoint): Reimplement as unsigned long. |
| 3940 | (arm_wince_breakpoint_len): Define. |
| 3941 | (the_low_target): Adapt to new interface. |
| 3942 | |
| 3943 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and |
| 3944 | load_debug_registers. Add get_thread_context, set_thread_context, |
| 3945 | thread_added and store_inferior_register. Rename |
| 3946 | fetch_inferior_registers to fetch_inferior_register. |
| 3947 | (regptr): Remove declaration. |
| 3948 | |
| 3949 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3950 | |
| 3951 | * linux-low.c (linux_detach): Change return type to int. Return 0. |
| 3952 | * spu-low.c (spu_detach): Likewise. |
| 3953 | |
| 3954 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3955 | |
| 3956 | * target.h (target_ops): Change return type of detach to int. |
| 3957 | Add join. |
| 3958 | (join_inferior): New. |
| 3959 | * server.c (main): Don't skip detach support on mingw32. |
| 3960 | If the inferior doesn't support detaching return error. |
| 3961 | Call join_inferior instead of using waitpid. |
| 3962 | * linux-low.c (linux_join): New. |
| 3963 | (linux_target_op): Add linux_join. |
| 3964 | * spu-low.c (spu_join): New. |
| 3965 | (spu_target_ops): Add spu_join. |
| 3966 | * win32-low.c (win32_detach): Adapt to new interface. |
| 3967 | Reopen current_process_handle before detaching. Issue a child |
| 3968 | resume before detaching. |
| 3969 | (win32_join): New. |
| 3970 | (win32_target_op): Add win32_join. |
| 3971 | |
| 3972 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3973 | |
| 3974 | * win32-low.c (win32-attach): Fix return value. |
| 3975 | * target.h (target_ops): Describe ATTACH return values. |
| 3976 | |
| 3977 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3978 | |
| 3979 | * win32-low.c (GETPROCADDRESS): Define. |
| 3980 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. |
| 3981 | (winapi_DebugSetProcessKillOnExit): Likewise. |
| 3982 | (win32_create_inferior): Force usage of ansi CreateProcessA. |
| 3983 | (win32_attach): Use GETPROCADDRESS. |
| 3984 | (win32_detach): Likewise. |
| 3985 | |
| 3986 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3987 | |
| 3988 | * win32-low.c (win32_wait): Don't use WSTOPSIG. |
| 3989 | |
| 3990 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
| 3991 | |
| 3992 | * win32-low.c: Commit leftover changes from 2007-03-29. |
| 3993 | |
| 3994 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 3995 | |
| 3996 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit |
| 3997 | fields short instead of int. Add explicit padding. |
| 3998 | (i387_cache_to_fsave): Remove unnecessary casts. |
| 3999 | (i387_fsave_to_cache): Doc fix. |
| 4000 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. |
| 4001 | |
| 4002 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 4003 | |
| 4004 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. |
| 4005 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. |
| 4006 | |
| 4007 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4008 | |
| 4009 | * configure.srv (arm*-*-mingw32ce*): Move near the other |
| 4010 | arm targets. |
| 4011 | |
| 4012 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4013 | |
| 4014 | * configure.ac: Add errno checking. |
| 4015 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
| 4016 | sys/file.h and malloc.h. |
| 4017 | (AC_CHECK_DECLS): Add perror. |
| 4018 | (srv_mingwce): Handle. |
| 4019 | * configure.srv (i[34567]86-*-cygwin*): Add |
| 4020 | win32-i386-low.o to srv_tgtobj. |
| 4021 | (i[34567]86-*-mingw*): Likewise. |
| 4022 | (arm*-*-mingw32ce*): Add case. |
| 4023 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 4024 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. |
| 4025 | [__MINGW32CE__] (strerror): New function. |
| 4026 | [__MINGW32CE__] (errno): Define to GetLastError. |
| 4027 | [__MINGW32CE__] (COUNTOF): New macro. |
| 4028 | (remote_open): Remove extra close call. |
| 4029 | * mem-break.c (delete_breakpoint_at): New function. |
| 4030 | * mem-break.h (delete_breakpoint_at): Declare. |
| 4031 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 4032 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. |
| 4033 | [USE_WIN32API] (read, write): Add char* casts. |
| 4034 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. |
| 4035 | * server.h: Include wincecompat.h on Windows CE. |
| 4036 | [HAVE_ERRNO_H]: Check. |
| 4037 | (perror): Declare if not declared. |
| 4038 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. |
| 4039 | (perror_with_name): Remove errno declaration. |
| 4040 | * wincecompat.h: New. |
| 4041 | * wincecompat.c: New. |
| 4042 | * win32-low.h: New. |
| 4043 | * win32-arm-low.c: New. |
| 4044 | * win32-i386-low.c: New. |
| 4045 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. |
| 4046 | (OUTMSG2): Make it safe. |
| 4047 | (_T): New macro. |
| 4048 | (COUNTOF): New macro. |
| 4049 | (NUM_REGS): Get it from the low target. |
| 4050 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, |
| 4051 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. |
| 4052 | (thread_rec): Let low target handle debug registers. |
| 4053 | (child_add_thread): Likewise. |
| 4054 | (child_init_thread_list): Likewise. |
| 4055 | (continue_one_thread): Likewise. |
| 4056 | (regptr): New. |
| 4057 | (do_child_fetch_inferior_registers): Move to ... |
| 4058 | * win32-i386-low.c: ... here, and rename to ... |
| 4059 | (do_fetch_inferior_registers): ... this. |
| 4060 | * win32-low.c (child_fetch_inferior_registers): |
| 4061 | Go through the low target. |
| 4062 | (do_child_store_inferior_registers): Use regptr. |
| 4063 | (strwinerror): New function. |
| 4064 | (win32_create_inferior): Handle Windows CE. |
| 4065 | Use strwinerror instead of strerror on Windows error |
| 4066 | codes. Add program to the error output. |
| 4067 | Don't close the main thread handle on Windows CE. |
| 4068 | (win32_attach): Use coredll.dll on Windows CE. |
| 4069 | (win32_kill): Close current process and current |
| 4070 | thread handles. |
| 4071 | (win32_detach): Use coredll.dll on Windows CE. |
| 4072 | (win32_resume): Let low target handle debug registers, and |
| 4073 | step request. |
| 4074 | (handle_exception): Add/Remove initial breakpoint. Avoid |
| 4075 | non-existant WSTOPSIG on Windows CE. |
| 4076 | (win32_read_inferior_memory): Cast to remove warning. |
| 4077 | (win32_arch_string): Go through the low target. |
| 4078 | (initialize_low): Call set_breakpoint_data with the low |
| 4079 | target's breakpoint. |
| 4080 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, |
| 4081 | FOP_REGNUM, mappings): Move to ... |
| 4082 | * win32-i386-low.c: ... here. |
| 4083 | * win32-low.c (win32_thread_info): Move to ... |
| 4084 | * win32-low.h: ... here. |
| 4085 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, |
| 4086 | win32-arm-low.c and wincecompat.c. |
| 4087 | (all:): Add $EXEEXT. |
| 4088 | (install-only:): Likewise. |
| 4089 | (gdbserver:): Likewise. |
| 4090 | (gdbreplay:): Likewise. |
| 4091 | * config.in: Regenerate. |
| 4092 | * configure: Regenerate. |
| 4093 | |
| 4094 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4095 | |
| 4096 | * win32-low.c: Rename typedef thread_info to |
| 4097 | win32_thread_info throughout. |
| 4098 | |
| 4099 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4100 | |
| 4101 | * win32-i386-low.c: Rename to ... |
| 4102 | * win32-low.c: ... this. |
| 4103 | * configure.srv: Replace win32-i386-low.o with win32-low.o. |
| 4104 | * Makefile.in: Likewise. |
| 4105 | |
| 4106 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4107 | |
| 4108 | * remote-utils.c (monitor_output): Constify msg parameter. |
| 4109 | * server.h (monitor_output): Likewise. |
| 4110 | * win32-i386-low.c (handle_output_debug_string): New. |
| 4111 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using |
| 4112 | handle_output_debug_string. |
| 4113 | (get_child_debug_event): Likewise. |
| 4114 | |
| 4115 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
| 4116 | |
| 4117 | * server.c (main): Correct strtoul check. |
| 4118 | |
| 4119 | 2007-03-27 Jon Ringle <jon@ringle.org> |
| 4120 | |
| 4121 | * linux-low.c: Check __ARCH_HAS_MMU__ also. |
| 4122 | |
| 4123 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
| 4124 | |
| 4125 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. |
| 4126 | |
| 4127 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 4128 | |
| 4129 | * terminal.h: Check HAVE_SGTTY_H. |
| 4130 | |
| 4131 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> |
| 4132 | |
| 4133 | * remote-utils.c (remote_open): Print out the assigned port number. |
| 4134 | |
| 4135 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 4136 | |
| 4137 | * remote-utils.c (monitor_output): New function. |
| 4138 | * server.c (debug_threads): Define here. |
| 4139 | (monitor_show_help): New function. |
| 4140 | (handle_query): Handle qRcmd. |
| 4141 | (main): Do not handle 'd' packet. |
| 4142 | * server.h (debug_threads, remote_debug, monitor_output): Declare. |
| 4143 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions |
| 4144 | of debug_threads. |
| 4145 | |
| 4146 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4147 | |
| 4148 | * Makefile.in (EXEEXT): New. |
| 4149 | (clean): Use $(EXEEXT). |
| 4150 | |
| 4151 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4152 | |
| 4153 | * target.h (target_ops): Rename send_signal to request_interrupt, |
| 4154 | and remove enum target_signal parameter. |
| 4155 | * linux-low.c (linux_request_interrupt): Rename from |
| 4156 | linux_send_signal, and always send SIGINT. |
| 4157 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, |
| 4158 | and always send SIGINT. |
| 4159 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead |
| 4160 | of send_signal. |
| 4161 | (input_interrupt): Likewise. |
| 4162 | |
| 4163 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 4164 | |
| 4165 | * server.c (get_features_xml): Check if target implemented |
| 4166 | arch_string. |
| 4167 | * win32-i386-low.c (win32_arch_string): New. |
| 4168 | (win32_target_ops): Add win32_arch_string as arch_string member. |
| 4169 | |
| 4170 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
| 4171 | |
| 4172 | * spu-low.c (spu_arch_string): New. |
| 4173 | (spu_target_ops): Add spu_arch_string. |
| 4174 | |
| 4175 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 4176 | |
| 4177 | * remote-utils.c: Remove HAVE_TERMINAL_H check. |
| 4178 | * configure.ac: Do not check for terminal.h. |
| 4179 | * configure, config.in: Regenerated. |
| 4180 | |
| 4181 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 4182 | |
| 4183 | * Makefile.in (OBS): Add $(XML_BUILTIN). |
| 4184 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. |
| 4185 | (clean): Update. |
| 4186 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) |
| 4187 | (arm-with-iwmmxt.c): New. |
| 4188 | * config.in, configure: Regenerate. |
| 4189 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, |
| 4190 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. |
| 4191 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. |
| 4192 | (arm*-*-linux*): Add iWMMXt and regset support. |
| 4193 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. |
| 4194 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) |
| 4195 | (arm_store_wmmxregset, target_regsets): New. |
| 4196 | * server.c (get_features_xml): Take annex argument. Check builtin |
| 4197 | XML documents. |
| 4198 | (handle_query): Handle multiple annexes. |
| 4199 | |
| 4200 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 4201 | |
| 4202 | * remote-utils.c [USE_WIN32API] (read, write): Define. |
| 4203 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and |
| 4204 | write. |
| 4205 | |
| 4206 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
| 4207 | |
| 4208 | * linux-i386-low.c (the_low_target): Set arch_string. |
| 4209 | * linux-x86-64-low.c (the_low_target): Likewise. |
| 4210 | * linux-low.c (linux_arch_string): New. |
| 4211 | (linux_target_ops): Add it. |
| 4212 | * linux-low.h (struct linux_target_ops): Add arch_string. |
| 4213 | * server.c (write_qxfer_response): Use const void * for DATA. |
| 4214 | (get_features_xml): New. |
| 4215 | (handle_query): Handle qXfer:features:read. Report it for qSupported. |
| 4216 | * target.h (struct target_ops): Add arch_string method. |
| 4217 | |
| 4218 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
| 4219 | Daniel Jacobowitz <dan@codesourcery.com> |
| 4220 | |
| 4221 | * linux-low.c (linux_kill): Handle being called with no threads. |
| 4222 | * win32-i386-low.c (win32_kill): Likewise. |
| 4223 | (get_child_debug_event): Clear current_process_handle. |
| 4224 | |
| 4225 | 2006-12-30 Denis PILAT <denis.pilat@st.com> |
| 4226 | Daniel Jacobowitz <dan@codesourcery.com> |
| 4227 | |
| 4228 | * remote-utils.c (remote_open): Check the type of specified |
| 4229 | serial port devices before opening them. |
| 4230 | * server.c (main): Kill the inferior if an error occurs during |
| 4231 | the first remote_open. |
| 4232 | |
| 4233 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
| 4234 | |
| 4235 | * README: Update supported targets. |
| 4236 | |
| 4237 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 4238 | |
| 4239 | * Makefile.in (clean): Remove reg-mips64.c. |
| 4240 | (reg-mips64.c, reg-mips64.o): New rules. |
| 4241 | * configure.srv: Handle mips64. Include regset support for mips. |
| 4242 | * linux-mips-low.c (union mips_register): New. |
| 4243 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. |
| 4244 | (mips_breakpoint, mips_breakpoint_at): Use int. |
| 4245 | (mips_collect_register, mips_supply_register) |
| 4246 | (mips_collect_register_32bit, mips_supply_register_32bit) |
| 4247 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) |
| 4248 | (mips_store_fpregset, target_regsets): New. |
| 4249 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. |
| 4250 | |
| 4251 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
| 4252 | |
| 4253 | * configure.srv: Add target "spu*-*-*". |
| 4254 | * Makefile.in (clean): Remove reg-spu.c. |
| 4255 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. |
| 4256 | * spu-low.c: New file. |
| 4257 | |
| 4258 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 4259 | |
| 4260 | * configure.ac: Correct td_thr_tls_get_addr test. |
| 4261 | * configure: Regenerated. |
| 4262 | |
| 4263 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 4264 | |
| 4265 | * linux-low.c (linux_wait_for_event): Reformat. Use the |
| 4266 | pass_signals array. |
| 4267 | * remote-utils.c (decode_address_to_semicolon): New. |
| 4268 | * server.c (pass_signals, handle_general_set): New. |
| 4269 | (handle_query): Mention QPassSignals for qSupported. |
| 4270 | (main): Call handle_general_set. |
| 4271 | * server.h (pass_signals, decode_address_to_semicolon): New. |
| 4272 | |
| 4273 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 4274 | |
| 4275 | * server.c (handle_query): Correct error handling for read_auxv. |
| 4276 | |
| 4277 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
| 4278 | |
| 4279 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets |
| 4280 | and srv_linux_thread_db to yes. |
| 4281 | * linux-s390-low.c (s390_fill_gregset): New function. |
| 4282 | (target_regsets): Define data structure. |
| 4283 | |
| 4284 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 4285 | |
| 4286 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. |
| 4287 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. |
| 4288 | * config.in, configure: Regenerated. |
| 4289 | * inferiors.c (gdb_id_to_thread): New function. |
| 4290 | (gdb_id_to_thread_id): Use it. |
| 4291 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. |
| 4292 | * linux-low.h (struct process_info): Add th member. |
| 4293 | (thread_db_get_tls_address): New prototype. |
| 4294 | * remote-utils.c (decode_address): Make non-static. |
| 4295 | * server.c (handle_query): Handle qGetTLSAddr. |
| 4296 | * server.h (gdb_id_to_thread, decode_address): New prototypes. |
| 4297 | * target.h (struct target_ops): Add get_tls_address. |
| 4298 | * thread-db.c (maybe_attach_thread): Save the thread handle. |
| 4299 | (thread_db_get_tls_address): New. |
| 4300 | |
| 4301 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 4302 | |
| 4303 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. |
| 4304 | (linux_resume_one_process): Take a siginfo_t *. Update all |
| 4305 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. |
| 4306 | (struct pending_signals): Add a siginfo_t. |
| 4307 | (linux_wait_for_process): Always set last_status. |
| 4308 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. |
| 4309 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. |
| 4310 | * linux-low.h (struct process_info): Add last_status. |
| 4311 | |
| 4312 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 4313 | |
| 4314 | * remote-utils.c (try_rle): New function. |
| 4315 | (putpkt_binary): Use it. |
| 4316 | |
| 4317 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 4318 | |
| 4319 | * Makefile.in (clean): Clean reg-x86-64-linux.c. |
| 4320 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. |
| 4321 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. |
| 4322 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. |
| 4323 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating |
| 4324 | point registers. |
| 4325 | |
| 4326 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
| 4327 | |
| 4328 | * server.c (terminal_fd): New variable. |
| 4329 | (old_foreground_pgrp): Likewise. |
| 4330 | (restore_old_foreground_pgrp): New function. |
| 4331 | (start_inferior): Record the terminal file descriptor in terminal_fd |
| 4332 | and its original foreground group in old_foreground_pgrp. Register |
| 4333 | restore_old_foreground_pgrp with atexit(). |
| 4334 | |
| 4335 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 4336 | |
| 4337 | * server.c (handle_query): Correct qPart to qXfer. |
| 4338 | |
| 4339 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 4340 | |
| 4341 | * configure.ac: Check for more headers which are missing on |
| 4342 | Windows. Automatically supply -lwsock32 and USE_WIN32API. |
| 4343 | * configure.srv: Add Cygwin and mingw32. |
| 4344 | * remote-utils.c: Don't include headers unconditionally which |
| 4345 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 4346 | (remote_open): Adjust for mingw32 support. Flush |
| 4347 | standard error after writing to it. |
| 4348 | (remote_close, putpkt_binary, input_interrupt, block_async_io) |
| 4349 | (unblock_async_io, enable_async_io, disable_async_io) |
| 4350 | (readchar, getpkt): Update for Winsock support. |
| 4351 | (prepare_resume_reply): Expect a protocol signal number. |
| 4352 | * server.c: Disable <sys/wait.h> on mingw32. |
| 4353 | (start_inferior): Adjust for mingw32 support. Flush |
| 4354 | standard error after writing to it. |
| 4355 | (attach_inferior): Likewise. Use protocol signal |
| 4356 | numbers. |
| 4357 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers |
| 4358 | and names. |
| 4359 | * win32-i386-low.c: New file. |
| 4360 | * Makefile.in (XM_CLIBS): Set. |
| 4361 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). |
| 4362 | (win32-i386-low.o): New dependency rule. |
| 4363 | * linux-low.c (linux_wait): Use target signal numbers. |
| 4364 | * target.h (struct target_ops): Doc fix. |
| 4365 | * server.h (target_signal_to_name): New prototype. |
| 4366 | * gdbreplay.c: Don't include headers unconditionally which |
| 4367 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 4368 | (remote_close, remote_open): Adjust for Winsock support. |
| 4369 | * configure, config.in: Regenerated. |
| 4370 | |
| 4371 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 4372 | |
| 4373 | * server.c (decode_xfer_read, write_qxfer_response): New. |
| 4374 | (handle_query): Take a packet length argument. Handle |
| 4375 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in |
| 4376 | the qSupported response. |
| 4377 | (main): Update call to handle_query. |
| 4378 | |
| 4379 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 4380 | |
| 4381 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. |
| 4382 | (putpkt_binary): Renamed from putpkt and adjusted for binary |
| 4383 | data. |
| 4384 | (putpkt): New wrapper for putpkt_binary. |
| 4385 | (readchar): Don't mask off the high bit. |
| 4386 | (decode_X_packet): New function. |
| 4387 | * server.c (main): Call putpkt_binary if a handler sets the packet |
| 4388 | length. Save the length of the incoming packet. Handle 'X'. |
| 4389 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. |
| 4390 | |
| 4391 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 4392 | |
| 4393 | * server.c (handle_query): Handle qSupported. |
| 4394 | |
| 4395 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 4396 | |
| 4397 | * remote-utils.c (all_symbols_looked_up): New variable. |
| 4398 | (look_up_one_symbol): Check it. |
| 4399 | * server.h (look_up_one_symbol): New declaration. |
| 4400 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. |
| 4401 | |
| 4402 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 4403 | |
| 4404 | * Makefile.in (linux-arm-low.o): Update dependencies. |
| 4405 | * linux-arm-low.c: Include "gdb_proc_service.h". |
| 4406 | (PTRACE_GET_THREAD_AREA): Define. |
| 4407 | (ps_get_thread_area): New function. |
| 4408 | |
| 4409 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
| 4410 | |
| 4411 | * configure.srv (m68k*-*-uclinux*): New target. |
| 4412 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. |
| 4413 | (linux_resume_one_process): Remove extraneous cast. |
| 4414 | (linux_read_offsets): New. |
| 4415 | (linux_target_op): Add linux_read_offsets on mmuless systems. |
| 4416 | * server.c (handle_query): Add qOffsets logic. |
| 4417 | * target.h (struct target_ops): Add read_offsets. |
| 4418 | |
| 4419 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 4420 | |
| 4421 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". |
| 4422 | (PTRACE_GET_THREAD_AREA): Define. |
| 4423 | (ps_get_thread_area): New function. |
| 4424 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) |
| 4425 | (linux-x86-64-low.o): Update. |
| 4426 | |
| 4427 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 4428 | |
| 4429 | * configure.ac: Remove checks for prfpregset_t. |
| 4430 | * gdb_proc_service.h: New file. |
| 4431 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the |
| 4432 | new "gdb_proc_service.h". |
| 4433 | * proc-service.c: Likewise. |
| 4434 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. |
| 4435 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. |
| 4436 | * Makefile.in (gdb_proc_service_h): Updated. |
| 4437 | * configure, config.in: Regenerated. |
| 4438 | |
| 4439 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 4440 | |
| 4441 | * remote-utils.c (prepare_resume_reply): Move declaration |
| 4442 | of gdb_id_from_wait to the top of the block. |
| 4443 | |
| 4444 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 4445 | |
| 4446 | * linux-low.c (regsets_store_inferior_registers): Read the regset |
| 4447 | from the target before filling it. |
| 4448 | |
| 4449 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 4450 | |
| 4451 | * server.c (attach_inferior): Return SIGTRAP for a successful |
| 4452 | attach. |
| 4453 | |
| 4454 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 4455 | |
| 4456 | * Makefile.in (OBS): Add version.o. |
| 4457 | (STAGESTUFF): Delete. |
| 4458 | (version.o): Add dependencies. |
| 4459 | (version.c): Replace rule. |
| 4460 | (clean): Remove version.c. |
| 4461 | * server.c (gdbserver_version): New. |
| 4462 | (gdbserver_usage): Use printf. |
| 4463 | (main): Handle --version and --help. |
| 4464 | * server.h (version, host_name): Add declarations. |
| 4465 | |
| 4466 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
| 4467 | |
| 4468 | * linux-arm-low.c: |
| 4469 | * linux-arm-low.c: |
| 4470 | * inferiors.c: |
| 4471 | * i387-fp.h: |
| 4472 | * i387-fp.c: |
| 4473 | * gdbreplay.c: |
| 4474 | * regcache.c: |
| 4475 | * proc-service.c: |
| 4476 | * mem-break.h: |
| 4477 | * mem-break.c: |
| 4478 | * linux-x86-64-low.c: |
| 4479 | * linux-sh-low.c: |
| 4480 | * linux-s390-low.c: |
| 4481 | * linux-ppc64-low.c: |
| 4482 | * linux-ppc-low.c: |
| 4483 | * linux-mips-low.c: |
| 4484 | * linux-m68k-low.c: |
| 4485 | * linux-m32r-low.c: |
| 4486 | * linux-low.h: |
| 4487 | * linux-low.c: |
| 4488 | * linux-ia64-low.c: |
| 4489 | * linux-i386-low.c: |
| 4490 | * linux-crisv32-low.c: |
| 4491 | * thread-db.c: |
| 4492 | * terminal.h: |
| 4493 | * target.h: |
| 4494 | * target.c: |
| 4495 | * server.h: |
| 4496 | * server.c: |
| 4497 | * remote-utils.c: |
| 4498 | * regcache.h: |
| 4499 | * utils.c: |
| 4500 | * Makefile.in: |
| 4501 | * configure.ac: |
| 4502 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
| 4503 | address. |
| 4504 | |
| 4505 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 4506 | |
| 4507 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. |
| 4508 | (arm_breakpoint_at): Recognize both breakpoints. |
| 4509 | (the_low_target): Use the correct breakpoint instruction. |
| 4510 | |
| 4511 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 4512 | |
| 4513 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. |
| 4514 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) |
| 4515 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. |
| 4516 | (the_low_target): Update. |
| 4517 | |
| 4518 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
| 4519 | |
| 4520 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. |
| 4521 | |
| 4522 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. |
| 4523 | (ia64_num_regs): Reduce to 462. |
| 4524 | |
| 4525 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 4526 | |
| 4527 | * acinclude.m4: Correct quoting. |
| 4528 | * aclocal.m4: Regenerated. |
| 4529 | |
| 4530 | Suggested by SZOKOVACS Robert <szo@ies.hu>: |
| 4531 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. |
| 4532 | (thread_db_init): Call thread_db_err_str. |
| 4533 | * configure.ac: Check for TD_VERSION. |
| 4534 | * config.in, configure: Regenerated. |
| 4535 | |
| 4536 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
| 4537 | |
| 4538 | * server.h (error, fatal, warning): Add ATTR_FORMAT. |
| 4539 | |
| 4540 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 4541 | |
| 4542 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS |
| 4543 | is not available. Define HAVE_PTRACE_GETREGS if it is. |
| 4544 | * config.in, configure: Regenerated. |
| 4545 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. |
| 4546 | * linux-i386-low.c, linux-m68k-low.c: Update to use |
| 4547 | HAVE_PTRACE_GETREGS. |
| 4548 | * linux-low.c (regsets_fetch_inferior_registers) |
| 4549 | (regsets_store_inferior_registers): Only return 0 if we processed |
| 4550 | GENERAL_REGS. |
| 4551 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. |
| 4552 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. |
| 4553 | |
| 4554 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 4555 | |
| 4556 | * inferiors.c (struct thread_info): Add gdb_id. |
| 4557 | (add_thread): Add gdb_id argument. |
| 4558 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. |
| 4559 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update |
| 4560 | calls to add_thread. |
| 4561 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. |
| 4562 | * server.c (handle_query): Use thread_to_gdb_id. |
| 4563 | (handle_v_cont, main): Use gdb_id_to_thread_id. |
| 4564 | * server.h (add_thread): Update prototype. |
| 4565 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New |
| 4566 | prototypes. |
| 4567 | |
| 4568 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 4569 | |
| 4570 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle |
| 4571 | left-padded registers. |
| 4572 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. |
| 4573 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. |
| 4574 | |
| 4575 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
| 4576 | |
| 4577 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. |
| 4578 | * configure: Regenerate. |
| 4579 | * config.in: Regenerate. |
| 4580 | * server.h (NEED_DECLARATION_STRERROR): |
| 4581 | Replace with !HAVE_DECL_STRERROR. |
| 4582 | |
| 4583 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 4584 | |
| 4585 | * linux-low.c (linux_wait, linux_send_signal): Don't test |
| 4586 | an unsigned long variable for > 0 if it could be MAX_ULONG. |
| 4587 | * server.c (myresume): Likewise. |
| 4588 | * target.c (set_desired_inferior): Likewise. |
| 4589 | |
| 4590 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
| 4591 | |
| 4592 | * configure.ac: Simplify and improve check for socklen_t. |
| 4593 | * configure, config.in: Regenerate. |
| 4594 | |
| 4595 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 4596 | |
| 4597 | * acconfig.h: Remove. |
| 4598 | * configure.ac: Add a test for socklen_t. Use three-argument |
| 4599 | AC_DEFINE throughout. |
| 4600 | * config.in: Regenerated using autoheader 2.59. |
| 4601 | * configure: Regenerated. |
| 4602 | |
| 4603 | * gdbreplay.c (socklen_t): Provide a default. |
| 4604 | (remote_open): Use socklen_t. |
| 4605 | * remote-utils.c (socklen_t): Provide a default. |
| 4606 | (remote_open): Use socklen_t. |
| 4607 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use |
| 4608 | unsigned char. |
| 4609 | |
| 4610 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned |
| 4611 | char for buffers. |
| 4612 | * linux-low.c (linux_read_memory, linux_write_memory) |
| 4613 | (linux_read_auxv): Likewise. |
| 4614 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) |
| 4615 | (check_mem_write): Likewise. |
| 4616 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): |
| 4617 | Likewise. |
| 4618 | * regcache.c (struct inferior_rgcache_data, registers_to_string) |
| 4619 | (registers_from_string, register_data): Likewise. |
| 4620 | * server.c (handle_query, main): Likewise. |
| 4621 | * server.h (convert_ascii_to_int, convert_int_to_ascii) |
| 4622 | (decode_M_packet): Likewise. |
| 4623 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. |
| 4624 | * target.h (struct target_ops): Update read_memory, write_memory, |
| 4625 | and read_auxv. |
| 4626 | (read_inferior_memory, write_inferior_memory): Update. |
| 4627 | * linux-low.h (struct linux_target_ops): Change type of breakpoint |
| 4628 | to unsigned char *. |
| 4629 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, |
| 4630 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, |
| 4631 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, |
| 4632 | linux-s390-low.c, linux-sh-low.c: Update for changes in |
| 4633 | read_inferior_memory and the_low_target->breakpoint. |
| 4634 | |
| 4635 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 4636 | |
| 4637 | * Makefile.in (SFILES): Add linux-ppc64-low.c. |
| 4638 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. |
| 4639 | * configure.srv: Add powerpc64-*-linux*. |
| 4640 | * linux-ppc64-low.c: New file. |
| 4641 | |
| 4642 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
| 4643 | |
| 4644 | * linux-cris-low.c: New file with support for CRIS. |
| 4645 | * linux-crisv32-low.c: Ditto for CRISv32. |
| 4646 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. |
| 4647 | (clean): Add reg-cris.c and reg-crisv32.c. |
| 4648 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
| 4649 | reg-crisv32.o, and reg-crisv32.c to make rules. |
| 4650 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of |
| 4651 | recognized targets. |
| 4652 | |
| 4653 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
| 4654 | |
| 4655 | * linux-low.c (fetch_register): Ensure buffer size is a multiple |
| 4656 | of sizeof (PTRACE_XFER_TYPE). |
| 4657 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. |
| 4658 | |
| 4659 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
| 4660 | |
| 4661 | * target.h (struct target_ops): Add insert_watchpoint, |
| 4662 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
| 4663 | pointers for hardware watchpoint support. |
| 4664 | * linux-low.h (struct linux_target_ops): Ditto. |
| 4665 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) |
| 4666 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add |
| 4667 | to linux_target_ops. |
| 4668 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to |
| 4669 | reply packet. |
| 4670 | * server.c (main): Recognize 'Z' and 'z' packets. |
| 4671 | |
| 4672 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
| 4673 | |
| 4674 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. |
| 4675 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. |
| 4676 | (the_low_target): Add new members. |
| 4677 | |
| 4678 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 4679 | |
| 4680 | * proc-service.c (ps_lgetregs): Search all_processes instead of |
| 4681 | all_threads. |
| 4682 | |
| 4683 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 4684 | |
| 4685 | * server.c (start_inferior): Change return type to int. |
| 4686 | (attach_inferior): Change sigptr to int *. |
| 4687 | (handle_v_cont, handle_v_requests): Change signal to int *. |
| 4688 | (main): Change signal to int. |
| 4689 | |
| 4690 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> |
| 4691 | |
| 4692 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. |
| 4693 | * configure.srv: Add m32r*-*-linux*. |
| 4694 | * linux-m32r-low.c: New file. |
| 4695 | |
| 4696 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 4697 | |
| 4698 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. |
| 4699 | |
| 4700 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 4701 | |
| 4702 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): |
| 4703 | Take unsigned long arguments for PIDs. |
| 4704 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) |
| 4705 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) |
| 4706 | (wait_for_sigstop, linux_resume_one_process) |
| 4707 | (regsets_fetch_inferior_registers, linux_send_signal) |
| 4708 | (linux_read_auxv): Likewise. Update the types of variables holding |
| 4709 | PIDs. Update format string specifiers. |
| 4710 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. |
| 4711 | * remote-utils.c (prepare_resume_reply): Likewise. |
| 4712 | * server.c (cont_thread, general_thread, step_thread) |
| 4713 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to |
| 4714 | unsigned long. |
| 4715 | (handle_query): Update format specifiers. |
| 4716 | (handle_v_cont, main): Use strtoul for thread IDs. |
| 4717 | * server.h (struct inferior_list_entry): Use unsigned long for ID. |
| 4718 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) |
| 4719 | (general_thread, step_thread, thread_from_wait) |
| 4720 | (old_thread_from_wait): Update. |
| 4721 | * target.h (struct thread_resume): Use unsigned long for THREAD. |
| 4722 | (struct target_ops): Use unsigned long for arguments to attach and |
| 4723 | thread_alive. |
| 4724 | |
| 4725 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 4726 | |
| 4727 | * acinclude.m4: Include bfd/bfd.m4 directly. |
| 4728 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis |
| 4729 | <agriffis@toolchain.org>. |
| 4730 | * aclocal.m4, configure: Regenerated. |
| 4731 | |
| 4732 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
| 4733 | |
| 4734 | * configure.ac: Rename configure.in, require autoconf 2.59. |
| 4735 | * configure: Re-generate. |
| 4736 | |
| 4737 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
| 4738 | |
| 4739 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset |
| 4740 | LIBS when finished. |
| 4741 | * aclocal.m4: Regenerated. |
| 4742 | * configure: Regenerated. |
| 4743 | |
| 4744 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
| 4745 | |
| 4746 | * linux-m68k-low.c (m68k_num_gregs): Define. |
| 4747 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) |
| 4748 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. |
| 4749 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) |
| 4750 | (m68k_breakpoint_at): New. Add to the_low_target. |
| 4751 | |
| 4752 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and |
| 4753 | srv_linux_thread_db to yes. |
| 4754 | |
| 4755 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
| 4756 | |
| 4757 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. |
| 4758 | (ARCH_SET_FS): Likewise. |
| 4759 | (ARCH_GET_FS): Likewise. |
| 4760 | (ARCH_GET_GS): Likewise. |
| 4761 | |
| 4762 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 4763 | |
| 4764 | * linux-i386-low.c (ps_get_thread_area): New. |
| 4765 | * linux-x86-64-low.c (ps_get_thread_area): New. |
| 4766 | * linux-low.c: Include <sys/syscall.h>. |
| 4767 | (linux_kill_one_process): Don't kill the first thread here. |
| 4768 | (linux_kill): Kill the first thread here. |
| 4769 | (kill_lwp): New function. |
| 4770 | (send_sigstop, linux_send_signal): Use it. |
| 4771 | * proc-service.c: Clean up #ifdefs. |
| 4772 | (fpregset_info): Delete. |
| 4773 | (ps_lgetregs): Update and enable implementation. |
| 4774 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled |
| 4775 | implementations. |
| 4776 | * remote-utils.c (struct sym_cache, symbol_cache): New. |
| 4777 | (input_interrupt): Print a clearer message. |
| 4778 | (async_io_enabled): New variable. |
| 4779 | (enable_async_io, disable_async_io): Use it. Update comments. |
| 4780 | (look_up_one_symbol): Use the symbol cache. |
| 4781 | * thread-db.c (thread_db_look_up_symbols): New function. |
| 4782 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. |
| 4783 | |
| 4784 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 4785 | |
| 4786 | * configure.in: Test for -rdynamic. |
| 4787 | * configure: Regenerated. |
| 4788 | * Makefile (INTERNAL_LDFLAGS): New. |
| 4789 | (gdbserver, gdbreplay): Use it. |
| 4790 | |
| 4791 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
| 4792 | |
| 4793 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. |
| 4794 | |
| 4795 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
| 4796 | |
| 4797 | * linux-low.c (linux_wait): Clear all_processes list also. |
| 4798 | |
| 4799 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 4800 | |
| 4801 | * linux-low.c: Include <errno.h>. Remove extern declaration of |
| 4802 | errno. |
| 4803 | |
| 4804 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 4805 | |
| 4806 | * gdbreplay.c, server.h, utils.c: Update copyright years. |
| 4807 | |
| 4808 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 4809 | |
| 4810 | * server.c (main): Print child status or termination signal from |
| 4811 | variable 'signal', not 'sig'. |
| 4812 | |
| 4813 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 4814 | |
| 4815 | * linux-low.c (linux_read_memory): Change return type to |
| 4816 | int. Check for and return error from ptrace(). |
| 4817 | * target.c (read_inferior_memory): Change return type to int. Pass |
| 4818 | back return status from the_target->read_memory(). |
| 4819 | * target.h (struct target_ops): Adapt *read_memory() prototype. |
| 4820 | Update comment. |
| 4821 | (read_inferior_memory): Adapt prototype. |
| 4822 | * server.c (main): Return an error packet if |
| 4823 | read_inferior_memory() returns an error. |
| 4824 | |
| 4825 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
| 4826 | |
| 4827 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. |
| 4828 | Unify with other clean targets. |
| 4829 | |
| 4830 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 4831 | |
| 4832 | * server.c (handle_v_cont): Call set_desired_inferior. |
| 4833 | |
| 4834 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 4835 | |
| 4836 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". |
| 4837 | |
| 4838 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 4839 | |
| 4840 | * linux-low.c (linux_wait): Unblock async I/O. |
| 4841 | (linux_resume): Block and enable async I/O. |
| 4842 | * remote-utils.c (block_async_io, unblock_async_io): New functions. |
| 4843 | * server.h (block_async_io, unblock_async_io): Add prototypes. |
| 4844 | |
| 4845 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 4846 | |
| 4847 | * remote-utils.c (remote_open): Print a status notice after |
| 4848 | opening a TCP port. |
| 4849 | * server.c (attach_inferior): Print a status notice after |
| 4850 | attaching. |
| 4851 | |
| 4852 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 4853 | |
| 4854 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. |
| 4855 | |
| 4856 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
| 4857 | |
| 4858 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the |
| 4859 | error packet. |
| 4860 | * server.c, target.h: Update copyright years. |
| 4861 | |
| 4862 | 2004-02-25 Roland McGrath <roland@redhat.com> |
| 4863 | |
| 4864 | * target.h (struct target_ops): New member `read_auxv'. |
| 4865 | * server.c (handle_query): Handle qPart:auxv:read: query using that. |
| 4866 | * linux-low.c (linux_read_auxv): New function. |
| 4867 | (linux_target_ops): Initialize `read_auxv' member to that. |
| 4868 | |
| 4869 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
| 4870 | |
| 4871 | Committed by Jim Blandy <jimb@redhat.com>. |
| 4872 | |
| 4873 | * linux-s390-low.c (s390_num_regs): Update. |
| 4874 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
| 4875 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
| 4876 | |
| 4877 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
| 4878 | |
| 4879 | * linux-low.c: Update copyright year. |
| 4880 | (check_removed_breakpoint): Clear pending_is_breakpoint. |
| 4881 | (linux_set_resume_request, linux_queue_one_thread) |
| 4882 | (resume_status_pending_p): New functions. |
| 4883 | (linux_continue_one_thread): Use process->resume. |
| 4884 | (linux_resume): Only resume threads if there are no pending events. |
| 4885 | * linux-low.h (struct process_info): Add resume request |
| 4886 | pointer. |
| 4887 | |
| 4888 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
| 4889 | |
| 4890 | * regcache.c (new_register_cache): Clear the allocated register |
| 4891 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. |
| 4892 | |
| 4893 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
| 4894 | |
| 4895 | * linux-low.c (linux_resume): Take a struct thread_resume * |
| 4896 | argument. |
| 4897 | (linux_wait): Update call. |
| 4898 | (resume_ptr): New static variable. |
| 4899 | (linux_continue_one_thread): Renamed from |
| 4900 | linux_continue_one_process. Use resume_ptr. |
| 4901 | (linux_resume): Use linux_continue_one_thread. |
| 4902 | * server.c (handle_v_cont, handle_v_requests): New functions. |
| 4903 | (myresume): New function. |
| 4904 | (main): Handle 'v' case. |
| 4905 | * target.h (struct thread_resume): New type. |
| 4906 | (struct target_ops): Change argument of "resume" to struct |
| 4907 | thread_resume *. |
| 4908 | (myresume): Delete macro. |
| 4909 | |
| 4910 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
| 4911 | |
| 4912 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. |
| 4913 | (uninstall): Support DESTDIR. |
| 4914 | |
| 4915 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
| 4916 | |
| 4917 | * configure.srv: Add xscale*linux copy of arm*linux entry. |
| 4918 | |
| 4919 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
| 4920 | |
| 4921 | * linux-arm-low.c (arm_reinsert_addr): New function. |
| 4922 | (the_low_target): Add arm_reinsert_addr. |
| 4923 | |
| 4924 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
| 4925 | |
| 4926 | * mem-break.c: Remove whitespace at end of file. |
| 4927 | |
| 4928 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 4929 | |
| 4930 | * configure.in: Check whether we need to prototype strerror. |
| 4931 | * server.h: Optionally prototype strerror. |
| 4932 | * gdbreplay.c (perror_with_name): Use strerror. |
| 4933 | * linux-low.c (linux_attach_lwp): Use strerror. |
| 4934 | * utils.c (perror_with_name): Use strerror. |
| 4935 | * config.in, configure: Regenerated. |
| 4936 | |
| 4937 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 4938 | |
| 4939 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by |
| 4940 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. |
| 4941 | |
| 4942 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
| 4943 | |
| 4944 | * Makefile.in (SFILES): Update. |
| 4945 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, |
| 4946 | low-sun3.c: Remove files. |
| 4947 | |
| 4948 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
| 4949 | |
| 4950 | * linux-low.c: Move comment to linux_thread_alive where it belonged. |
| 4951 | (linux_detach_one_process, linux_detach): New functions. |
| 4952 | (linux_target_ops): Add linux_detach. |
| 4953 | * server.c (main): Handle 'D' packet. |
| 4954 | * target.h (struct target_ops): Add "detach" member. |
| 4955 | (detach_inferior): Define. |
| 4956 | |
| 4957 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
| 4958 | |
| 4959 | From Kelley Cook <kelleycook@wideopenwest.com>: |
| 4960 | * configure.srv: Accept i[34567]86 variants. |
| 4961 | |
| 4962 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
| 4963 | |
| 4964 | * linux-low.c (linux_wait_for_event): Correct comment typos. |
| 4965 | (linux_resume_one_process): Call check_removed_breakpoint. |
| 4966 | (linux_send_signal): New function. |
| 4967 | (linux_target_ops): Add linux_send_signal. |
| 4968 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead |
| 4969 | of kill. |
| 4970 | * target.h (struct target_ops): Add send_signal. |
| 4971 | |
| 4972 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
| 4973 | |
| 4974 | * linux-low.c (usr_store_inferior_registers): Transfer buf in |
| 4975 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, |
| 4976 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing |
| 4977 | away part of the register's value. |
| 4978 | |
| 4979 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
| 4980 | |
| 4981 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. |
| 4982 | (linux_wait_for_event, linux_init_signals): Likewise. |
| 4983 | |
| 4984 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
| 4985 | |
| 4986 | * configure.in: Check for stdlib.h. |
| 4987 | * configure: Regenerated. |
| 4988 | * config.in: Regenerated. |
| 4989 | |
| 4990 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
| 4991 | |
| 4992 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. |
| 4993 | |
| 4994 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
| 4995 | |
| 4996 | * Makefile.in: Remove obsolete code. |
| 4997 | |
| 4998 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
| 4999 | |
| 5000 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of |
| 5001 | defined(PT_FPR0_HI). |
| 5002 | |
| 5003 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
| 5004 | |
| 5005 | * linux-arm-low.c (arm_num_regs): Increase. |
| 5006 | (arm_regmap): Include status register. |
| 5007 | |
| 5008 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> |
| 5009 | |
| 5010 | * linux-low.c (register_addr): Remove incorrect -1 check. |
| 5011 | |
| 5012 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
| 5013 | |
| 5014 | * linux-low.c (linux_create_inferior): Call setpgid. Return |
| 5015 | the new PID. |
| 5016 | (unstopped_p, linux_signal_pid): Remove. |
| 5017 | (linux_target_ops): Remove linux_signal_pid. |
| 5018 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid |
| 5019 | global instead of target method. |
| 5020 | * target.h (struct target_ops): Remove signal_pid. Update comment |
| 5021 | for create_inferior. |
| 5022 | * server.c (signal_pid): New variable. |
| 5023 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in |
| 5024 | gdbserver. Set the child to be the foreground process group. |
| 5025 | (attach_inferior): Set signal_pid. |
| 5026 | |
| 5027 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
| 5028 | |
| 5029 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. |
| 5030 | |
| 5031 | 2002-08-20 Jim Blandy <jimb@redhat.com> |
| 5032 | |
| 5033 | * Makefile.in (LDFLAGS): Allow the configure script to establish a |
| 5034 | default for this. |
| 5035 | |
| 5036 | 2002-08-01 Andrew Cagney <cagney@redhat.com> |
| 5037 | |
| 5038 | * Makefile.in: Make chill references obsolete. |
| 5039 | |
| 5040 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> |
| 5041 | |
| 5042 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. |
| 5043 | * configure: Regenerate. |
| 5044 | * config.in: Regenerate. |
| 5045 | |
| 5046 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> |
| 5047 | |
| 5048 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. |
| 5049 | (perror_with_name, remote_close, remote_open, expect, play): Static. |
| 5050 | |
| 5051 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> |
| 5052 | |
| 5053 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
| 5054 | byte offsets instead of an array of indexes. |
| 5055 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. |
| 5056 | |
| 5057 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> |
| 5058 | |
| 5059 | * regcache.c: Add comment. |
| 5060 | |
| 5061 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> |
| 5062 | |
| 5063 | * thread-db.c: New file. |
| 5064 | * proc-service.c: New file. |
| 5065 | * acinclude.m4: New file. |
| 5066 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, |
| 5067 | proc-service.o, and thread-db.o. |
| 5068 | (linux-low.o): Add USE_THREAD_DB. |
| 5069 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, |
| 5070 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. |
| 5071 | * aclocal.m4: Regenerated. |
| 5072 | * config.in: Regenerated. |
| 5073 | * configure: Regenerated. |
| 5074 | * configure.in: Check for proc_service.h, sys/procfs.h, |
| 5075 | thread_db.h, and linux/elf.h headrs. |
| 5076 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and |
| 5077 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. |
| 5078 | Check for -lthread_db and thread support. |
| 5079 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, |
| 5080 | PowerPC, and SuperH. |
| 5081 | * i387-fp.c: Constify arguments. |
| 5082 | * i387-fp.h: Likewise. |
| 5083 | * inferiors.c: (struct thread_info): Renamed from |
| 5084 | `struct inferior_info'. Remove PID member. Use generic inferior |
| 5085 | list header. All uses updated. |
| 5086 | (inferiors, signal_pid): Removed. |
| 5087 | (all_threads): New variable. |
| 5088 | (get_thread): Define. |
| 5089 | (add_inferior_to_list): New function. |
| 5090 | (for_each_inferior): New function. |
| 5091 | (change_inferior_id): New function. |
| 5092 | (add_inferior): Removed. |
| 5093 | (remove_inferior): New function. |
| 5094 | (add_thread): New function. |
| 5095 | (free_one_thread): New function. |
| 5096 | (remove_thread): New function. |
| 5097 | (clear_inferiors): Use for_each_inferior and free_one_thread. |
| 5098 | (find_inferior): New function. |
| 5099 | (find_inferior_id): New function. |
| 5100 | (inferior_target_data): Update argument type. |
| 5101 | (set_inferior_target_data): Likewise. |
| 5102 | (inferior_regcache_data): Likewise. |
| 5103 | (set_inferior_regcache_data): Likewise. |
| 5104 | * linux-low.c (linux_bp_reinsert): Remove. |
| 5105 | (all_processes, stopping_threads, using_thrads) |
| 5106 | (struct pending_signals, debug_threads, pid_of): New. |
| 5107 | (inferior_pid): Replace with macro. |
| 5108 | (struct inferior_linux_data): Remove. |
| 5109 | (get_stop_pc, add_process): New functions. |
| 5110 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. |
| 5111 | Use add_process and add_thread. |
| 5112 | (linux_attach_lwp): New function, based on old linux_attach. Use |
| 5113 | add_process and add_thread. Set stop_expected for new threads. |
| 5114 | (linux_attach): New function. |
| 5115 | (linux_kill_one_process): New function. |
| 5116 | (linux_kill): Kill all LWPs. |
| 5117 | (linux_thread_alive): Use find_inferior_id. |
| 5118 | (check_removed_breakpoints, status_pending_p): New functions. |
| 5119 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. |
| 5120 | Update. Use WNOHANG. Wait for cloned processes also. Update process |
| 5121 | struct for the found process. |
| 5122 | (linux_wait_for_event): New function. |
| 5123 | (linux_wait): Use it. Support LWPs. |
| 5124 | (send_sigstop, wait_for_sigstop, stop_all_processes) |
| 5125 | (linux_resume_one_process, linux_continue_one_process): New functions. |
| 5126 | (linux_resume): Support LWPs. |
| 5127 | (REGISTER_RAW_SIZE): Remove. |
| 5128 | (fetch_register): Use register_size instead. Call supply_register. |
| 5129 | (usr_store_inferior_registers): Likewise. Call collect_register. |
| 5130 | Fix recursive case. |
| 5131 | (regsets_fetch_inferior_registers): Improve error message. |
| 5132 | (regsets_store_inferior_registers): Add debugging. |
| 5133 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. |
| 5134 | (unstopped_p, linux_signal_pid): New functions. |
| 5135 | (linux_target_ops): Add linux_signal_pid. |
| 5136 | (linux_init_signals): New function. |
| 5137 | (initialize_low): Call it. Initialize using_threads. |
| 5138 | * regcache.c (inferior_regcache_data): Add valid |
| 5139 | flag. |
| 5140 | (get_regcache): Fetch registers lazily. Add fetch argument |
| 5141 | and update all callers. |
| 5142 | (regcache_invalidate_one, regcache_invalidate): New |
| 5143 | functions. |
| 5144 | (new_register_cache): Renamed from create_register_cache. |
| 5145 | Return the new regcache. |
| 5146 | (free_register_cache): Change argument to a void *. |
| 5147 | (registers_to_string, registers_from_string): Call get_regcache |
| 5148 | with fetch flag set. |
| 5149 | (register_data): Make static. Pass fetch flag to get_regcache. |
| 5150 | (supply_register): Call get_regcache with fetch flag clear. |
| 5151 | (collect_register): Call get_regcache with fetch flag set. |
| 5152 | (collect_register_as_string): New function. |
| 5153 | * regcache.h: Update. |
| 5154 | * remote-utils.c (putpkt): Flush after debug output and use |
| 5155 | stderr. |
| 5156 | Handle input interrupts while waiting for an ACK. |
| 5157 | (input_interrupt): Use signal_pid method. |
| 5158 | (getpkt): Flush after debug output and use stderr. |
| 5159 | (outreg): Use collect_register_as_string. |
| 5160 | (new_thread_notify, dead_thread_notify): New functions. |
| 5161 | (prepare_resume_reply): Check using_threads. Set thread_from_wait |
| 5162 | and general_thread. |
| 5163 | (look_up_one_symbol): Flush after debug output. |
| 5164 | * server.c (step_thread, server_waiting): New variables. |
| 5165 | (start_inferior): Don't use signal_pid. Update call to mywait. |
| 5166 | (attach_inferior): Update call to mywait. |
| 5167 | (handle_query): Handle qfThreadInfo and qsThreadInfo. |
| 5168 | (main): Don't fetch/store registers explicitly. Use |
| 5169 | set_desired_inferior. Support proposed ``Hs'' packet. Update |
| 5170 | calls to mywait. |
| 5171 | * server.h: Update. |
| 5172 | (struct inferior_list, struct_inferior_list_entry): New. |
| 5173 | * target.c (set_desired_inferior): New. |
| 5174 | (write_inferior_memory): Constify. |
| 5175 | (mywait): New function. |
| 5176 | * target.h: Update. |
| 5177 | (struct target_ops): New signal_pid method. |
| 5178 | (mywait): Removed macro, added prototype. |
| 5179 | |
| 5180 | * linux-low.h (regset_func): Removed. |
| 5181 | (regset_fill_func, regset_store_func): New. |
| 5182 | (enum regset_type): New. |
| 5183 | (struct regset_info): Add type field. Use new operation types. |
| 5184 | (struct linux_target_ops): stop_pc renamed to get_pc. |
| 5185 | Add decr_pc_after_break and breakpoint_at. |
| 5186 | (get_process, get_thread_proess, get_process_thread) |
| 5187 | (strut process_info, all_processes, linux_attach_lwp) |
| 5188 | (thread_db_init): New. |
| 5189 | |
| 5190 | * linux-arm-low.c (arm_get_pc, arm_set_pc, |
| 5191 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. |
| 5192 | (the_low_target): Add new members. |
| 5193 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) |
| 5194 | (i386_store_fpxregset): Constify. |
| 5195 | (target_regsets): Add new kind identifier. |
| 5196 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. |
| 5197 | (i386_set_pc): Add debugging. |
| 5198 | (i386_breakpoint_at): New function. |
| 5199 | (the_low_target): Add new members. |
| 5200 | * linux-mips-low.c (mips_get_pc, mips_set_pc) |
| 5201 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) |
| 5202 | (mips_breakpoint_at): New. |
| 5203 | (the_low_target): Add new members. |
| 5204 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) |
| 5205 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. |
| 5206 | (the_low_target): Add new members. |
| 5207 | * linux-sh-low.c (sh_get_pc, sh_set_pc) |
| 5208 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. |
| 5209 | (the_low_target): Add new members. |
| 5210 | * linux-x86-64-low.c (target_regsets): Add new kind |
| 5211 | identifier. |
| 5212 | |
| 5213 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> |
| 5214 | |
| 5215 | From Martin Pool <mbp@samba.org>: |
| 5216 | * server.c (gdbserver_usage): New function. |
| 5217 | (main): Call it. |
| 5218 | |
| 5219 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> |
| 5220 | |
| 5221 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo |
| 5222 | stop_at -> stop_pc. |
| 5223 | |
| 5224 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> |
| 5225 | |
| 5226 | * Makefile.in: Remove obsolete code. |
| 5227 | |
| 5228 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> |
| 5229 | |
| 5230 | * linux-low.c (regsets_fetch_inferior_registers), |
| 5231 | (regsets_store_inferior_registers): Removed cast to int from |
| 5232 | ptrace() calls. |
| 5233 | * regcache.h: Added declaration of struct inferior_info. |
| 5234 | |
| 5235 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 5236 | |
| 5237 | * inferiors.c (struct inferior_info): Add regcache_data. |
| 5238 | (add_inferior): Call create_register_cache. |
| 5239 | (clear_inferiors): Call free_register_cache. |
| 5240 | (inferior_regcache_data, set_inferior_regcache_data): New functions. |
| 5241 | * regcache.c (struct inferior_regcache_data): New. |
| 5242 | (registers): Remove. |
| 5243 | (get_regcache): New function. |
| 5244 | (create_register_cache, free_register_cache): New functions. |
| 5245 | (set_register_cache): Don't initialize the register cache here. |
| 5246 | (registers_to_string, registers_from_string, register_data): Call |
| 5247 | get_regcache. |
| 5248 | * regcache.h: Add prototypes. |
| 5249 | * server.h: Likewise. |
| 5250 | |
| 5251 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 5252 | |
| 5253 | * mem-break.c: New file. |
| 5254 | * mem-break.h: New file. |
| 5255 | * Makefile.in: Add mem-break.o rule; update server.h |
| 5256 | dependencies. |
| 5257 | * inferiors.c (struct inferior_info): Add target_data |
| 5258 | member. |
| 5259 | (clear_inferiors): Free target_data member if set. |
| 5260 | (inferior_target_data, set_inferior_target_data): New functions. |
| 5261 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) |
| 5262 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. |
| 5263 | * linux-low.c (linux_bp_reinsert): New variable. |
| 5264 | (struct inferior_linux_data): New. |
| 5265 | (linux_create_inferior): Use set_inferior_target_data. |
| 5266 | (linux_attach): Likewise. Call add_inferior. |
| 5267 | (linux_wait_for_one_inferior): New function. |
| 5268 | (linux_wait): Call it. |
| 5269 | (linux_write_memory): Add const. |
| 5270 | (initialize_low): Call set_breakpoint_data. |
| 5271 | * linux-low.h (struct linux_target_ops): Add breakpoint |
| 5272 | handling members. |
| 5273 | * server.c (attach_inferior): Remove extra add_inferior |
| 5274 | call. |
| 5275 | * server.h: Include mem-break.h. Update inferior.c |
| 5276 | prototypes. |
| 5277 | * target.c (read_inferior_memory) |
| 5278 | (write_inferior_memory): New functions. |
| 5279 | * target.h (read_inferior_memory) |
| 5280 | (write_inferior_memory): Change macros to prototypes. |
| 5281 | (struct target_ops): Update comments. Add const to write_memory |
| 5282 | definition. |
| 5283 | |
| 5284 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> |
| 5285 | |
| 5286 | * linux-low.c (usr_store_inferior_registers): Support |
| 5287 | registers which are allowed to fail to store. |
| 5288 | * linux-low.h (linux_target_ops): Likewise. |
| 5289 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. |
| 5290 | (ppc_cannot_store_register): FPSCR may not be storable. |
| 5291 | |
| 5292 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 5293 | |
| 5294 | * server.h: Include <string.h> if HAVE_STRING_H. |
| 5295 | * ChangeLog: Correct paths in last ChangeLog entry. |
| 5296 | |
| 5297 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 5298 | |
| 5299 | * linux-low.h: Remove obsolete prototypes. |
| 5300 | (struct linux_target_ops): New. |
| 5301 | (extern the_low_target): New. |
| 5302 | * linux-low.c (num_regs, regmap): Remove declarations. |
| 5303 | (register_addr): Use the_low_target explicitly. |
| 5304 | (fetch_register): Likewise. |
| 5305 | (usr_fetch_inferior_registers): Likewise. |
| 5306 | (usr_store_inferior_registers): Likewise. |
| 5307 | * linux-arm-low.c (num_regs): Remove. |
| 5308 | (arm_num_regs): Define. |
| 5309 | (arm_regmap): Renamed from regmap, made static. |
| 5310 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5311 | made static. |
| 5312 | (arm_cannot_store_register): Renamed from cannot_store_register, |
| 5313 | made static. |
| 5314 | (the_low_target): New. |
| 5315 | * linux-i386-low.c (num_regs): Remove. |
| 5316 | (i386_num_regs): Define. |
| 5317 | (i386_regmap): Renamed from regmap, made static. |
| 5318 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5319 | made static. |
| 5320 | (i386_cannot_store_register): Renamed from cannot_store_register, |
| 5321 | made static. |
| 5322 | (the_low_target): New. |
| 5323 | * linux-ia64-low.c (num_regs): Remove. |
| 5324 | (ia64_num_regs): Define. |
| 5325 | (ia64_regmap): Renamed from regmap, made static. |
| 5326 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5327 | made static. |
| 5328 | (ia64_cannot_store_register): Renamed from cannot_store_register, |
| 5329 | made static. |
| 5330 | (the_low_target): New. |
| 5331 | * linux-m68k-low.c (num_regs): Remove. |
| 5332 | (m68k_num_regs): Define. |
| 5333 | (m68k_regmap): Renamed from regmap, made static. |
| 5334 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5335 | made static. |
| 5336 | (m68k_cannot_store_register): Renamed from cannot_store_register, |
| 5337 | made static. |
| 5338 | (the_low_target): New. |
| 5339 | * linux-mips-low.c (num_regs): Remove. |
| 5340 | (mips_num_regs): Define. |
| 5341 | (mips_regmap): Renamed from regmap, made static. |
| 5342 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5343 | made static. |
| 5344 | (mips_cannot_store_register): Renamed from cannot_store_register, |
| 5345 | made static. |
| 5346 | (the_low_target): New. |
| 5347 | * linux-ppc-low.c (num_regs): Remove. |
| 5348 | (ppc_num_regs): Define. |
| 5349 | (ppc_regmap): Renamed from regmap, made static. |
| 5350 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5351 | made static. |
| 5352 | (ppc_cannot_store_register): Renamed from cannot_store_register, |
| 5353 | made static. |
| 5354 | (the_low_target): New. |
| 5355 | * linux-s390-low.c (num_regs): Remove. |
| 5356 | (s390_num_regs): Define. |
| 5357 | (s390_regmap): Renamed from regmap, made static. |
| 5358 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5359 | made static. |
| 5360 | (s390_cannot_store_register): Renamed from cannot_store_register, |
| 5361 | made static. |
| 5362 | (the_low_target): New. |
| 5363 | * linux-sh-low.c (num_regs): Remove. |
| 5364 | (sh_num_regs): Define. |
| 5365 | (sh_regmap): Renamed from regmap, made static. |
| 5366 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 5367 | made static. |
| 5368 | (sh_cannot_store_register): Renamed from cannot_store_register, |
| 5369 | made static. |
| 5370 | (the_low_target): New. |
| 5371 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. |
| 5372 | (the_low_target): New. |
| 5373 | |
| 5374 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 5375 | |
| 5376 | * Makefile.in: Add stamp-h target. |
| 5377 | * configure.in: Create stamp-h. |
| 5378 | * configure: Regenerated. |
| 5379 | |
| 5380 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 5381 | |
| 5382 | * inferiors.c: New file. |
| 5383 | * target.c: New file. |
| 5384 | * target.h: New file. |
| 5385 | * Makefile.in: Add target.o and inferiors.o. Update |
| 5386 | dependencies. |
| 5387 | * linux-low.c (inferior_pid): New static variable, |
| 5388 | moved from server.c. |
| 5389 | (linux_create_inferior): Renamed from create_inferior. |
| 5390 | Call add_inferior. Return 0 on success instead of a PID. |
| 5391 | (linux_attach): Renamed from myattach. |
| 5392 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). |
| 5393 | (linux_thread_alive): Renamed from mythread_alive. |
| 5394 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the |
| 5395 | child dies. |
| 5396 | (linux_resume): Renamed from myresume. Add missing ``return 0''. |
| 5397 | (regsets_store_inferior_registers): Correct error message. |
| 5398 | Add missing ``return 0''. |
| 5399 | (linux_fetch_registers): Renamed from fetch_inferior_registers. |
| 5400 | (linux_store_registers): Renamed from store_inferior_registers. |
| 5401 | (linux_read_memory): Renamed from read_inferior_memory. |
| 5402 | (linux_write_memory): Renamed from write_inferior_memory. |
| 5403 | (linux_target_ops): New structure. |
| 5404 | (initialize_low): Call set_target_ops (). |
| 5405 | * remote-utils.c (unhexify): New function. |
| 5406 | (hexify): New function. |
| 5407 | (input_interrupt): Send signals to ``signal_pid''. |
| 5408 | * server.c (inferior_pid): Remove. |
| 5409 | (start_inferior): Update create_inferior call. |
| 5410 | (attach_inferior): Call add_inferior. |
| 5411 | (handle_query): New function. |
| 5412 | (main): Call handle_query for `q' packets. |
| 5413 | * server.h: Include "target.h". Remove obsolete prototypes. |
| 5414 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. |
| 5415 | |
| 5416 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 5417 | |
| 5418 | * Makefile.in: Add WARN_CFLAGS. Update configury |
| 5419 | dependencies. |
| 5420 | * configure.in: Check for <string.h> |
| 5421 | * configure: Regenerate. |
| 5422 | * config.in: Regenerate. |
| 5423 | * gdbreplay.c: Include needed system headers. |
| 5424 | (remote_open): Remove strchr prototype. |
| 5425 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. |
| 5426 | * regcache.c (supply_register): Change buf argument to const void *. |
| 5427 | (supply_register_by_name): Likewise. |
| 5428 | (collect_register): Change buf argument to void *. |
| 5429 | (collect_register_by_name): Likewise. |
| 5430 | * regcache.h: Add missing prototypes. |
| 5431 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. |
| 5432 | * server.c (handle_query): New function. |
| 5433 | (attached): New static variable, moved out of main. |
| 5434 | (main): Quiet longjmp clobber warnings. |
| 5435 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. |
| 5436 | * utils.c (error): Remove NORETURN. |
| 5437 | (fatal): Likewise. |