| 1 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
| 2 | |
| 3 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single |
| 4 | powerpc*-*-linux* case. |
| 5 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
| 6 | |
| 7 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
| 8 | |
| 9 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from |
| 10 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
| 11 | from reg_xmlfiles. |
| 12 | * linux-ppc-low.c: Include <elf.h>. |
| 13 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. |
| 14 | (ppc_hwcap): New global variable. |
| 15 | (ppc_regmap): Remove __SPE__ #ifdef sections. |
| 16 | (ppc_regmap_e500): New global variable. |
| 17 | (ppc_cannot_store_register): Update __SPE__ special case. |
| 18 | (ppc_get_hwcap): New function. |
| 19 | (ppc_arch_setup): Use it to determine whether inferior supports |
| 20 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. |
| 21 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. |
| 22 | Do not access registers if target does not support AltiVec. |
| 23 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. |
| 24 | Do not access registers if target does not support SPE. |
| 25 | (target_regsets): Unconditionally include AltiVec and SPE regsets. |
| 26 | |
| 27 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 28 | |
| 29 | * linux-low.c (disabled_regsets, num_regsets): New. |
| 30 | (use_regsets_p): Delete. |
| 31 | (linux_wait_for_process): Clear disabled_regsets. |
| 32 | (regsets_fetch_inferior_registers): Check and set it. |
| 33 | (regsets_store_inferior_registers): Likewise. |
| 34 | (linux_fetch_registers, linux_store_registers): Do not use |
| 35 | use_regsets_p. |
| 36 | (initialize_low): Allocate disabled_regsets. |
| 37 | |
| 38 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 39 | |
| 40 | * Makefile.in (LIBOBJS): New. |
| 41 | (OBS): Use LIBOBJS. |
| 42 | (memmem.o): New rule. |
| 43 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. |
| 44 | * configure: Regenerated. |
| 45 | |
| 46 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
| 47 | |
| 48 | * server.c (handle_query): Never return "unsupported" for |
| 49 | qXfer:features:read queries. |
| 50 | |
| 51 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 52 | |
| 53 | * server.c (get_features_xml): Fix inverted condition. |
| 54 | (handle_query): Always support qXfer:feature:read. |
| 55 | |
| 56 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
| 57 | |
| 58 | * server.c (wrapper_argv): New. |
| 59 | (start_inferior): Handle wrapper_argv. If set, expect an extra |
| 60 | trap. |
| 61 | (gdbserver_usage): Document --wrapper. |
| 62 | (main): Parse --wrapper. |
| 63 | |
| 64 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 65 | |
| 66 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for |
| 67 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. |
| 68 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. |
| 69 | (ppc_set_pc): Likewise. |
| 70 | (ppc_arch_setup): New function. |
| 71 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead |
| 72 | of collect_register. |
| 73 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
| 74 | |
| 75 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 76 | |
| 77 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o |
| 78 | instead of linux-ppc64-low.o. |
| 79 | * linux-ppc64-low.c: Remove file. |
| 80 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. |
| 81 | (linux-ppc64-low.o): Remove rule. |
| 82 | |
| 83 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. |
| 84 | (init_registers_powerpc_64): Likewise. |
| 85 | (ppc_regmap): Conditionally define depending on __powerpc64__. |
| 86 | (ppc_cannot_store_register): Do not special-case "fpscr" when |
| 87 | compiled on __powerpc64__. |
| 88 | (ppc_collect_ptrace_register): New function. |
| 89 | (ppc_supply_ptrace_register): New function. |
| 90 | (ppc_breakpoint): Change type to "unsigned int". |
| 91 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". |
| 92 | (the_low_target): Conditionally provide initializers for the |
| 93 | arch_setup member depending on __powerpc64__. Install |
| 94 | collect_ptrace_register and supply_ptrace_register members. |
| 95 | |
| 96 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 97 | |
| 98 | * regcache.h (gdbserver_xmltarget): Add extern declaration. |
| 99 | * server.c (gdbserver_xmltarget): Define. |
| 100 | (get_features_xml): Use it to replace "target.xml" and arch_string. |
| 101 | |
| 102 | * configure.srv: Remove srv_xmltarget. Add XML files that were |
| 103 | mentioned there to srv_xmlfiles instead. Remove conditional tests |
| 104 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set |
| 105 | srv_xmlfiles and srv_regobj to include all possible choices. |
| 106 | * configure.ac (srv_xmltarget): Remove. |
| 107 | (srv_xmlfiles): Do not add "target.xml". |
| 108 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove |
| 109 | checks for supplementary target information. |
| 110 | * configure: Regenerate. |
| 111 | * Makefile.in (XML_TARGET): Remove. |
| 112 | (target.xml): Remove rule. |
| 113 | (clean): Do not clean up target.xml. |
| 114 | (.PRECIOUS): Do not mention target.xml. |
| 115 | |
| 116 | * target.h (struct target_ops): Remove arch_string member. |
| 117 | * linux-low.c (linux_arch_string): Remove. |
| 118 | (linux_target_ops): Remove arch_string initializer. |
| 119 | * linux-low.h (struct linux_target_ops): Remove arch_string member. |
| 120 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. |
| 121 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. |
| 122 | * spu-low.c (spu_arch_string): Remove. |
| 123 | (spu_target_ops): Remove arch_string initializer. |
| 124 | * win32-low.c (win32_arch_string): Remove. |
| 125 | (win32_target_ops): Remove arch_string initializer. |
| 126 | * win32-low.h (struct win32_target_ops): Remove arch_string member. |
| 127 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. |
| 128 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. |
| 129 | |
| 130 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 131 | |
| 132 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field |
| 133 | by collect_ptrace_register and supply_ptrace_register hooks. |
| 134 | * linux-low.c (fetch_register): Use supply_ptrace_register callback |
| 135 | instead of checking for the_low_target.left_pad_xfer. |
| 136 | (usr_store_inferior_registers): Use collect_ptrace_register callback |
| 137 | instead of checking for the_low_target.left_pad_xfer. |
| 138 | |
| 139 | * linux-s390-low.c (s390_collect_ptrace_register): New function. |
| 140 | (s390_supply_ptrace_register): Likewise. |
| 141 | (s390_fill_gregset): Call s390_collect_ptrace_register. |
| 142 | (the_low_target): Update. |
| 143 | |
| 144 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. |
| 145 | (ppc_supply_ptrace_register): Likewise. |
| 146 | (the_low_target): Update. |
| 147 | |
| 148 | * linux-i386-low.c (the_low_target): Update. |
| 149 | * linux-x86-64-low.c (the_low_target): Update. |
| 150 | |
| 151 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 152 | |
| 153 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both |
| 154 | reg-s390.o and reg-s390x.o. |
| 155 | |
| 156 | * linux-low.c (new_inferior): New global variable. |
| 157 | (linux_create_inferior, linux_attach): Set it. |
| 158 | (linux_wait_for_process): Call the_low_target.arch_setup after the |
| 159 | target has stopped for the first time. |
| 160 | (initialize_low): Do not call the_low_target.arch_setup. |
| 161 | |
| 162 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. |
| 163 | (s390_set_pc): Likewise. |
| 164 | (s390_arch_setup): New function. |
| 165 | (the_low_target): Use s390_arch_setup as arch_setup routine. |
| 166 | |
| 167 | * regcache.c (realloc_register_cache): New function. |
| 168 | (set_register_cache): Call it for each existing regcache. |
| 169 | |
| 170 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 171 | |
| 172 | * server.h (init_registers): Remove prototype. |
| 173 | |
| 174 | * linux-low.h (struct linux_target_ops): Add arch_setup field. |
| 175 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () |
| 176 | instead of init_registers (). |
| 177 | * linux-arm-low.c (init_registers_arm): Add prototype. |
| 178 | (init_registers_arm_with_iwmmxt): Likewise. |
| 179 | (the_low_target): Add initializer for arch_setup field. |
| 180 | * linux-cris-low.c (init_registers_cris): Add prototype. |
| 181 | (the_low_target): Add initializer for arch_setup field. |
| 182 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. |
| 183 | (the_low_target): Add initializer for arch_setup field. |
| 184 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. |
| 185 | (the_low_target): Add initializer for arch_setup field. |
| 186 | * linux-ia64-low.c (init_registers_ia64): Add prototype. |
| 187 | (the_low_target): Add initializer for arch_setup field. |
| 188 | * linux-m32r-low.c (init_registers_m32r): Add prototype. |
| 189 | (the_low_target): Add initializer for arch_setup field. |
| 190 | * linux-m68k-low.c (init_registers_m68k): Add prototype. |
| 191 | (the_low_target): Add initializer for arch_setup field. |
| 192 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. |
| 193 | (init_registers_mips64_linux): Likewise. |
| 194 | (the_low_target): Add initializer for arch_setup field. |
| 195 | * linux-ppc-low.c (init_registers_ppc): Add prototype. |
| 196 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. |
| 197 | (the_low_target): Add initializer for arch_setup field. |
| 198 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. |
| 199 | (init_registers_powerpc_64): Likewise. |
| 200 | (the_low_target): Add initializer for arch_setup field. |
| 201 | * linux-s390-low.c (init_registers_s390): Add prototype. |
| 202 | (init_registers_s390x): Likewise. |
| 203 | (the_low_target): Add initializer for arch_setup field. |
| 204 | * linux-sh-low.c (init_registers_sh): Add prototype. |
| 205 | (the_low_target): Add initializer for arch_setup field. |
| 206 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. |
| 207 | (the_low_target): Add initializer for arch_setup field. |
| 208 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. |
| 209 | (the_low_target): Add initializer for arch_setup field. |
| 210 | |
| 211 | * win32-low.h (struct win32_target_ops): Add arch_setup field. |
| 212 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () |
| 213 | instead of init_registers (). |
| 214 | * win32-arm-low.c (init_registers_arm): Add prototype. |
| 215 | (the_low_target): Add initializer for arch_setup field. |
| 216 | * win32-i386-low.c (init_registers_i386): Add prototype. |
| 217 | (the_low_target): Add initializer for arch_setup field. |
| 218 | |
| 219 | * spu-low.c (init_registers_spu): Add prototype. |
| 220 | (initialize_low): Call initialie_registers_spu () instead of |
| 221 | initialize_registers (). |
| 222 | |
| 223 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
| 224 | |
| 225 | * server.c (handle_v_requests): When handling the vRun and vAttach |
| 226 | packets, if already debugging a process, don't kill it. Return an |
| 227 | error instead. |
| 228 | |
| 229 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 230 | |
| 231 | * server.c (handle_query): Correct length check. |
| 232 | |
| 233 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
| 234 | |
| 235 | * win32-low.c (do_initial_child_stuff): Add process handle |
| 236 | parameter. Set current_process_handle and current_process_id from the |
| 237 | parameters. Clear globals. |
| 238 | (win32_create_inferior): Don't set current_process_handle and |
| 239 | current_process_id here. Instead pass them on the call to |
| 240 | do_initial_child_stuff. |
| 241 | (win32_attach): Likewise. |
| 242 | (win32_clear_inferiors): New. |
| 243 | (win32_kill): Don't close the current process handle or the |
| 244 | current thread handle here. Instead call win32_clear_inferiors. |
| 245 | (win32_detach): Don't open a new handle to the process. Call |
| 246 | win32_clear_inferiors. |
| 247 | (win32_join): Don't rely on current_process_handle; open a new |
| 248 | handle using the process id. |
| 249 | (win32_wait): Call win32_clear_inferiors when the inferior process |
| 250 | has exited. |
| 251 | |
| 252 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 253 | |
| 254 | * server.c (monitor_show_help): Add "exit". |
| 255 | |
| 256 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
| 257 | |
| 258 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
| 259 | (clean): Add reg-xtensa.c. |
| 260 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. |
| 261 | * configure.srv (xtensa*-*-linux*) New target. |
| 262 | * linux-xtensa-low.c: New. |
| 263 | * xtensa-xtregs.c: New. |
| 264 | |
| 265 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
| 266 | |
| 267 | * hostio.c: Don't include errno.h. |
| 268 | (errno_to_fileio_errno): Move to hostio-errno. |
| 269 | * hostio.c: (hostio_error): Remove the error parameter. Defer the |
| 270 | error number outputting to the target->hostio_last_error callback. |
| 271 | (hostio_packet_error): Use FILEIO_EINVAL directly. |
| 272 | (handle_open, handle_pread, hostio_error, handle_unlink): Update |
| 273 | calls to hostio_error. |
| 274 | * hostio-errno.c: New. |
| 275 | * server.h (hostio_last_error_from_errno): Declare. |
| 276 | * target.h (target_ops): Add hostio_last_error member. |
| 277 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno |
| 278 | as hostio_last_error handler. |
| 279 | * spu-low.c (spu_target_ops): Likewise. |
| 280 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
| 281 | (wince_hostio_last_error): New functions. |
| 282 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error |
| 283 | as hostio_last_error handler. |
| 284 | (win32_target_ops) [!_WIN32_WCE]: Register |
| 285 | hostio_last_error_from_errno as hostio_last_error handler. |
| 286 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. |
| 287 | (hostio-errno.o): New rule. |
| 288 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. |
| 289 | * configure.srv (srv_hostio_err_objs): New variable. Default to |
| 290 | hostio-errno.o. |
| 291 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". |
| 292 | * configure: Regenerate. |
| 293 | |
| 294 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 295 | |
| 296 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. |
| 297 | (linux_kill, linux_detach): Clean up the process list. |
| 298 | * remote-utils.c (remote_open): Improve port number parsing. |
| 299 | (putpkt_binary, input_interrupt): Only send interrupts if the target |
| 300 | is running. |
| 301 | * server.c (extended_protocol): Make static. |
| 302 | (attached): Define earlier. |
| 303 | (exit_requested, response_needed, program_argv): New variables. |
| 304 | (target_running): New. |
| 305 | (start_inferior): Clear attached here. |
| 306 | (attach_inferior): Set attached here. |
| 307 | (require_running): Define. |
| 308 | (handle_query): Use require_running and target_running. Implement |
| 309 | "monitor exit". |
| 310 | (handle_v_attach, handle_v_run): New. |
| 311 | (handle_v_requests): Use require_running. Handle vAttach and vRun. |
| 312 | (gdbserver_usage): Update. |
| 313 | (main): Redo argument parsing. Handle --debug and --multi. Handle |
| 314 | --attach along with other options or after the port. Save |
| 315 | program_argv. Support no initial program. Resynchronize |
| 316 | communication with GDB after an error. Handle "monitor exit". |
| 317 | Use require_running and target_running. Always allow the extended |
| 318 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically |
| 319 | restart in extended mode. |
| 320 | * README: Refer to the GDB manual. Update --attach usage. |
| 321 | |
| 322 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
| 323 | |
| 324 | * linux-low.c (STACK_SIZE): Define. |
| 325 | (linux_tracefork_child): Use it. Use __clone2 on ia64. |
| 326 | (linux_test_for_tracefork): Likewise. |
| 327 | |
| 328 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
| 329 | |
| 330 | * linux-low.c (linux_wait_for_event): Update messages. Do not |
| 331 | reinsert auto-delete breakpoints. |
| 332 | * mem-break.c (struct breakpoint): Change return type of handler to |
| 333 | int. |
| 334 | (set_breakpoint_at): Update handler type. |
| 335 | (reinsert_breakpoint_handler): Return 1 instead of calling |
| 336 | delete_breakpoint. |
| 337 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before |
| 338 | setting a new one. |
| 339 | (check_breakpoints): Delete auto-delete breakpoints and return 2. |
| 340 | * mem-break.h (set_breakpoint_at): Update handler type. |
| 341 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. |
| 342 | * win32-low.c (auto_delete_breakpoint): New. |
| 343 | (get_child_debug_event): Use it. |
| 344 | |
| 345 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 346 | |
| 347 | * configure.ac: Check for pread and pwrite. |
| 348 | * hostio.c (handle_pread): Fall back to lseek and read. |
| 349 | (handle_pwrite): Fall back to lseek and write. |
| 350 | * config.in, configure: Regenerated. |
| 351 | |
| 352 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
| 353 | |
| 354 | * server.c (myresume): Add own_buf argument. |
| 355 | (main): Update calls. |
| 356 | |
| 357 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 358 | |
| 359 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. |
| 360 | * remote-utils.c (remote_open): Do not call disable_async_io. |
| 361 | (block_async_io): Delete. |
| 362 | (unblock_async_io): Make static. |
| 363 | (initialize_async_io): New. |
| 364 | * server.c (handle_v_cont): Handle async I/O here. |
| 365 | (myresume): Likewise. Move other common resume tasks here... |
| 366 | (main): ... from here. Call initialize_async_io. Disable async |
| 367 | I/O before the main loop. |
| 368 | * server.h (initialize_async_io): Declare. |
| 369 | (block_async_io, unblock_async_io): Delete prototypes. |
| 370 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. |
| 371 | |
| 372 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
| 373 | |
| 374 | * remote-utils.c (readchar): Allow binary data in received messages. |
| 375 | |
| 376 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 377 | |
| 378 | * win32-low.c (attaching): New global. |
| 379 | (win32_create_inferior): Clear the `attaching' global. |
| 380 | (win32_attach): Set the `attaching' global. |
| 381 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when |
| 382 | attaching. Only set a breakpoint at the entry point if not |
| 383 | attaching. |
| 384 | |
| 385 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 386 | |
| 387 | * server.c (main): Don't report dll events on the initial |
| 388 | connection on attaches. |
| 389 | |
| 390 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 391 | |
| 392 | * server.c (main): Relax numerical bases supported for the pid of |
| 393 | the --attach command line argument. |
| 394 | |
| 395 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 396 | |
| 397 | * win32-low.c (win32_attach): Call OpenProcess before |
| 398 | DebugActiveProcess, not after. Add last error output to error |
| 399 | call. |
| 400 | |
| 401 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 402 | |
| 403 | * win32-low.c (win32_get_thread_context) |
| 404 | (win32_set_thread_context): New functions. |
| 405 | (thread_rec): Use win32_get_thread_context. |
| 406 | (continue_one_thread, win32_resume): Use win32_set_thread_context. |
| 407 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' |
| 408 | field. |
| 409 | |
| 410 | 2007-12-03 Leo Zayas |
| 411 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 412 | |
| 413 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New |
| 414 | global variables. |
| 415 | (child_add_thread): Minor cleanup. |
| 416 | (child_continue): Resume artificially suspended threads before |
| 417 | calling ContinueDebugEvent. |
| 418 | (suspend_one_thread): New. |
| 419 | (fake_breakpoint_event): New. |
| 420 | (get_child_debug_event): Change return type to int. Check here if |
| 421 | gdb sent an interrupt request. If a soft interrupt was requested, |
| 422 | fake a breakpoint event. Return 0 if there is no event to handle, |
| 423 | and 1 otherwise. |
| 424 | (win32_wait): Don't check here if gdb sent an interrupt request. |
| 425 | Ensure there is a valid event to handle. |
| 426 | (win32_request_interrupt): Add soft interruption method as last |
| 427 | resort. |
| 428 | |
| 429 | 2007-12-03 Leo Zayas |
| 430 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 431 | |
| 432 | * win32-low.h (win32_thread_info): Add descriptions to the |
| 433 | structure members. Replace `suspend_count' counter by a |
| 434 | `suspended' flag. |
| 435 | * win32-low.c (thread_rec): Update condition of when to get the |
| 436 | context from the inferior. Rely on ContextFlags being set if it |
| 437 | has already been retrieved. Only suspend the inferior thread if |
| 438 | we haven't already. Warn if that fails. |
| 439 | (continue_one_thread): s/suspend_count/suspended/. Only call |
| 440 | ResumeThread once. Warn if that fails. |
| 441 | |
| 442 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 443 | |
| 444 | * win32-low.c (win32_wait): Don't read from the inferior when it |
| 445 | has already exited. |
| 446 | |
| 447 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 448 | |
| 449 | * Makefile.in (win32_low_h): New variable. |
| 450 | (win32-low.o): Add dependency on $(win32_low_h). |
| 451 | (win32-arm-low.o, win32-i386-low.o): New rules. |
| 452 | |
| 453 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 454 | |
| 455 | * hostio.c: Correct copyright year. |
| 456 | |
| 457 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 458 | |
| 459 | * Makefile.in (OBS): Add hostio.o. |
| 460 | (hostio.o): New rule. |
| 461 | * server.h (handle_vFile): Declare. |
| 462 | * hostio.c: New file. |
| 463 | * server.c (handle_v_requests): Take packet_len and new_packet_len |
| 464 | for binary packets. Call handle_vFile. |
| 465 | (main): Update call to handle_v_requests. |
| 466 | |
| 467 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
| 468 | |
| 469 | * linux-low.c: Include <sched.h>. |
| 470 | |
| 471 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 472 | |
| 473 | * linux-low.c (linux_tracefork_grandchild): New. |
| 474 | (linux_tracefork_child): Use clone. |
| 475 | (linux_test_for_tracefork): Use clone; allocate and free a stack. |
| 476 | |
| 477 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
| 478 | |
| 479 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. |
| 480 | |
| 481 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 482 | |
| 483 | * linux-low.c (handle_extended_wait): Handle unexpected signals. |
| 484 | |
| 485 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
| 486 | |
| 487 | * inferiors.c (change_inferior_id): Delete. |
| 488 | (add_pid_to_list, pull_pid_from_list): New. |
| 489 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) |
| 490 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) |
| 491 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) |
| 492 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) |
| 493 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) |
| 494 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. |
| 495 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. |
| 496 | (using_threads): Always set to 1. |
| 497 | (handle_extended_wait): New. |
| 498 | (add_process): Do not set TID. |
| 499 | (linux_create_inferior): Set must_set_ptrace_flags. |
| 500 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. |
| 501 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. |
| 502 | (linux_thread_alive): Rename TID argument to LWPID. |
| 503 | (linux_wait_for_process): Handle unknown processes. Do not use TID. |
| 504 | (linux_wait_for_event): Do not use TID or check using_threads. Update |
| 505 | call to dead_thread_notify. Call handle_extended_wait. |
| 506 | (linux_create_inferior): Use PTRACE_SETOPTIONS. |
| 507 | (send_sigstop): Delete sigstop_sent. |
| 508 | (wait_for_sigstop): Avoid TID. |
| 509 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) |
| 510 | (linux_test_for_tracefork): New. |
| 511 | (linux_lookup_signals): Use thread_db_active and |
| 512 | linux_supports_tracefork_flag. |
| 513 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. |
| 514 | * linux-low.h (get_process_thread): Avoid TID. |
| 515 | (struct process_ifo): Move thread_known and tid to the end. Remove |
| 516 | sigstop_sent. |
| 517 | (linux_attach_lwp, thread_db_init): Update prototypes. |
| 518 | * server.h (change_inferior_id): Delete prototype. |
| 519 | (add_pid_to_list, pull_pid_from_list): New prototypes. |
| 520 | * thread-db.c (thread_db_use_events): New. |
| 521 | (find_first_thread): Rename to... |
| 522 | (find_one_thread): ...this. Update callers and messages. Do not |
| 523 | call fatal. Check thread_db_use_events. Do not call |
| 524 | change_inferior_id or new_thread_notify. |
| 525 | (maybe_attach_thread): Update. Do not call new_thread_notify. |
| 526 | (thread_db_init): Set thread_db_use_events. Check use_events. |
| 527 | * utils.c (fatal, warning): Correct message prefix. |
| 528 | |
| 529 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 530 | |
| 531 | * Makefile.in (clean): Remove new files. |
| 532 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) |
| 533 | (powerpc-64.o, powerpc-64.c): New rules. |
| 534 | * configure.srv: Use alternate register sets for powerpc64-*-linux* |
| 535 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* |
| 536 | with SPE. |
| 537 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for |
| 538 | SPE targets. |
| 539 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. |
| 540 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) |
| 541 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) |
| 542 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. |
| 543 | (target_regsets): Add AltiVec and SPE register sets. |
| 544 | * configure.ac: Check for AltiVec and SPE. |
| 545 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) |
| 546 | (ppc_fill_vrregset, ppc_store_vrregset): New. |
| 547 | (target_regsets): Add AltiVec register set. |
| 548 | * configure: Regenerated. |
| 549 | |
| 550 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 551 | |
| 552 | * linux-low.c (O_LARGEFILE): Define. |
| 553 | (linux_read_memory): Use /proc/PID/mem. |
| 554 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. |
| 555 | * configure, config.in: Regenerated. |
| 556 | |
| 557 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 558 | |
| 559 | * linux-low.c (linux_wait_for_event): Do not pass signals while |
| 560 | single-stepping. |
| 561 | |
| 562 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 563 | |
| 564 | * win32-low.c (create_process): New. |
| 565 | (win32_create_inferior): Use create_process instead of |
| 566 | CreateProcess. If create_process failed retry appending an ".exe" |
| 567 | suffix. Store the GetLastError result immediatelly after |
| 568 | create_process calls and use it on the call to error. |
| 569 | |
| 570 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 571 | |
| 572 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. |
| 573 | |
| 574 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
| 575 | |
| 576 | * configure.ac: Switch license to GPLv3. |
| 577 | |
| 578 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
| 579 | |
| 580 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. |
| 581 | |
| 582 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
| 583 | |
| 584 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New |
| 585 | typedef. |
| 586 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. |
| 587 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get |
| 588 | CloseToolhelp32Snapshot. |
| 589 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with |
| 590 | CloseToolhelp32Snapshot. |
| 591 | |
| 592 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
| 593 | |
| 594 | * server.c (main): Check for inferior exit before main loop. |
| 595 | |
| 596 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
| 597 | |
| 598 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc |
| 599 | instead of on tmp_desc. |
| 600 | |
| 601 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
| 602 | Daniel Jacobowitz <dan@codesourcery.com> |
| 603 | |
| 604 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. |
| 605 | (add_thread): Minor cleanups. |
| 606 | (clear_inferiors): Move lower in the file. Clear the DLL |
| 607 | list. |
| 608 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. |
| 609 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. |
| 610 | (xml_escape_text): New. |
| 611 | * server.c (handle_query): Handle qXfer:libraries:read. Report it |
| 612 | for qSupported. |
| 613 | (handle_v_cont): Report errors. |
| 614 | (gdbserver_version): Update. |
| 615 | (main): Correct size of own_buf. Do not report initial DLL events. |
| 616 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) |
| 617 | (unloaded_dll, xml_escape_text): New. |
| 618 | * win32-low.c (enum target_waitkind): Update comments. |
| 619 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) |
| 620 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) |
| 621 | (win32_EnumProcessModules, win32_GetModuleInformation) |
| 622 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) |
| 623 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) |
| 624 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) |
| 625 | (win32_Module32First, win32_Module32Next, load_toolhelp) |
| 626 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. |
| 627 | (get_child_debug_event): Handle DLL events. |
| 628 | (win32_wait): Likewise. |
| 629 | |
| 630 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 631 | |
| 632 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. |
| 633 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. |
| 634 | |
| 635 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 636 | |
| 637 | * win32-low.c (handle_output_debug_string): Ignore event if not |
| 638 | waiting. |
| 639 | |
| 640 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 641 | |
| 642 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. |
| 643 | |
| 644 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 645 | |
| 646 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. |
| 647 | |
| 648 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 649 | |
| 650 | * inferiors.c (change_inferior_id): Add comment. |
| 651 | * linux-low.c (check_removed_breakpoint): Add an early |
| 652 | prototype. Improve debug output. |
| 653 | (linux_attach): Doc update. |
| 654 | (linux_detach_one_process, linux_detach): Clean up before releasing |
| 655 | each process. |
| 656 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. |
| 657 | * linux-low.h (struct process_info): Doc improvement. |
| 658 | * mem-break.c (delete_all_breakpoints): New. |
| 659 | * mem-break.h (delete_all_breakpoints): New prototype. |
| 660 | * thread-db.c (find_first_thread): New. |
| 661 | (thread_db_create_event): Call it instead of |
| 662 | thread_db_find_new_threads. Clean up unused variables. |
| 663 | (maybe_attach_thread): Remove first thread handling. |
| 664 | (thread_db_find_new_threads): Use find_first_thread. |
| 665 | (thread_db_get_tls_address): Likewise. |
| 666 | |
| 667 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 668 | |
| 669 | * thread-db.c (thread_db_find_new_threads): Add prototype. |
| 670 | (thread_db_create_event): Check for the main thread before adding |
| 671 | a new thread. |
| 672 | (maybe_attach_thread): Only enable event reporting if TID == 0. |
| 673 | (thread_db_get_tls_address): Check for new threads. |
| 674 | |
| 675 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
| 676 | |
| 677 | * linux-low.c (linux_create_inferior): Try execv before execvp. |
| 678 | * spu-low.c (spu_create_inferior): Likewise. |
| 679 | |
| 680 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
| 681 | |
| 682 | * linux-low.c (linux_create_inferior): Change execv to execvp. |
| 683 | * spu-low.c (spu_create_inferior): Likewies. |
| 684 | |
| 685 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 686 | |
| 687 | * Makefile.in (clean): Clean new files instead of deleted ones. |
| 688 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. |
| 689 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New |
| 690 | rules. |
| 691 | * configure.srv: Specify XML files and new regformats for MIPS and |
| 692 | MIPS64 GNU/Linux. |
| 693 | * linux-mips-low.c (mips_num_regs): Set to only used registers. |
| 694 | (mips_regmap): Do not fetch $0. Remove unused registers. Add |
| 695 | an entry for the restart register. |
| 696 | (mips_cannot_fetch_register, mips_cannot_store_register) |
| 697 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update |
| 698 | register names to match the XML descriptions. |
| 699 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the |
| 700 | restart register instead of $0. |
| 701 | |
| 702 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 703 | Markus Deuling <deuling@de.ibm.com> |
| 704 | |
| 705 | * remote-utils.c (decode_xfer_write): New function. |
| 706 | * server.h (decode_xfer_write): Add prototype. |
| 707 | * server.c (handle_query): Add PACKET_LEN argument. Support |
| 708 | qXfer:spu:read and qXfer:spu:write packets. |
| 709 | (main): Pass packet_len to handle_query. |
| 710 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. |
| 711 | * target.h (target_ops): Add qxfer_spu. |
| 712 | |
| 713 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 714 | |
| 715 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when |
| 716 | accessing non-seekable spufs files. |
| 717 | |
| 718 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
| 719 | |
| 720 | * server.c (handle_query): Add reply for qC packet. |
| 721 | |
| 722 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 723 | Leo Zayas <lerele@champenstudios@com> |
| 724 | |
| 725 | * server.h (check_remote_input_interrupt_request): New function. |
| 726 | * remote_utils.c (INVALID_DESCRIPTOR): New define. |
| 727 | (remote_desc): Initialize with INVALID_DESCRIPTOR. |
| 728 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. |
| 729 | (check_remote_input_interrupt_request): New function. |
| 730 | * server.h (check_remote_input_interrupt_request): Declare. |
| 731 | * win32-low.c (winapi_DebugBreakProcess, |
| 732 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
| 733 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec |
| 734 | to 250 ms. |
| 735 | (win32_wait): Check for remote interrupt request |
| 736 | with check_remote_input_interrupt_request. |
| 737 | (win32_request_interrupt): New function. |
| 738 | (win32_target_op): Set request_interrupt to win32_request_interrupt. |
| 739 | |
| 740 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 741 | |
| 742 | * win32-low.c (debug_registers_changed, |
| 743 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, |
| 744 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, |
| 745 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. |
| 746 | (thread_rec): Get context using the low target. |
| 747 | (child_add_thread): Call thread_added on the low target, |
| 748 | which does the same thing. |
| 749 | (regptr): Delete. |
| 750 | (do_initial_child_stuff): Remove debug registers references. |
| 751 | Set context using the low target. Resume threads after |
| 752 | setting the contexts. |
| 753 | (child_continue): Remove dead variable. Remove debug |
| 754 | registers references. |
| 755 | (child_fetch_inferior_registers): Go through the low target. |
| 756 | (do_child_store_inferior_registers): Remove. |
| 757 | (child_store_inferior_registers): Go through the low target. |
| 758 | (win32_resume): Remove debug registers references. |
| 759 | Set context using the low target. |
| 760 | (handle_exception): Change return type to void. Don't record |
| 761 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a |
| 762 | first chance exception. |
| 763 | (get_child_debug_event): Change return type to void. Remove |
| 764 | goto loop. Always return after waiting for debug event. |
| 765 | (win32_wait): Convert to switch statement. Handle spurious |
| 766 | events. |
| 767 | |
| 768 | * win32-i386-low.c (debug_registers_changed, |
| 769 | debug_registers_used): New. |
| 770 | (initial_stuff): Rename to ... |
| 771 | (i386_initial_stuff): ... this. Clear debug registers |
| 772 | state variables. |
| 773 | (store_debug_registers): Delete. |
| 774 | (i386_get_thread_context): New. |
| 775 | (load_debug_registers): Delete. |
| 776 | (i386_set_thread_context): New. |
| 777 | (i386_thread_added): New. |
| 778 | (single_step): Rename to ... |
| 779 | (i386_single_step): ... this. |
| 780 | (do_fetch_inferior_registers): Rename to ... |
| 781 | (i386_fetch_inferior_register): ... this. |
| 782 | (i386_store_inferior_register): New. |
| 783 | (the_low_target): Adapt to new interface. |
| 784 | |
| 785 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. |
| 786 | (arm_get_thread_context): New. |
| 787 | (arm_set_thread_context): New. |
| 788 | (regptr): New. |
| 789 | (do_fetch_inferior_registers): Rename to ... |
| 790 | (arm_fetch_inferior_register): ... this. |
| 791 | (arm_store_inferior_register): New. |
| 792 | (arm_wince_breakpoint): Reimplement as unsigned long. |
| 793 | (arm_wince_breakpoint_len): Define. |
| 794 | (the_low_target): Adapt to new interface. |
| 795 | |
| 796 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and |
| 797 | load_debug_registers. Add get_thread_context, set_thread_context, |
| 798 | thread_added and store_inferior_register. Rename |
| 799 | fetch_inferior_registers to fetch_inferior_register. |
| 800 | (regptr): Remove declaration. |
| 801 | |
| 802 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 803 | |
| 804 | * linux-low.c (linux_detach): Change return type to int. Return 0. |
| 805 | * spu-low.c (spu_detach): Likewise. |
| 806 | |
| 807 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 808 | |
| 809 | * target.h (target_ops): Change return type of detach to int. |
| 810 | Add join. |
| 811 | (join_inferior): New. |
| 812 | * server.c (main): Don't skip detach support on mingw32. |
| 813 | If the inferior doesn't support detaching return error. |
| 814 | Call join_inferior instead of using waitpid. |
| 815 | * linux-low.c (linux_join): New. |
| 816 | (linux_target_op): Add linux_join. |
| 817 | * spu-low.c (spu_join): New. |
| 818 | (spu_target_ops): Add spu_join. |
| 819 | * win32-low.c (win32_detach): Adapt to new interface. |
| 820 | Reopen current_process_handle before detaching. Issue a child |
| 821 | resume before detaching. |
| 822 | (win32_join): New. |
| 823 | (win32_target_op): Add win32_join. |
| 824 | |
| 825 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 826 | |
| 827 | * win32-low.c (win32-attach): Fix return value. |
| 828 | * target.h (target_ops): Describe ATTACH return values. |
| 829 | |
| 830 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 831 | |
| 832 | * win32-low.c (GETPROCADDRESS): Define. |
| 833 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. |
| 834 | (winapi_DebugSetProcessKillOnExit): Likewise. |
| 835 | (win32_create_inferior): Force usage of ansi CreateProcessA. |
| 836 | (win32_attach): Use GETPROCADDRESS. |
| 837 | (win32_detach): Likewise. |
| 838 | |
| 839 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 840 | |
| 841 | * win32-low.c (win32_wait): Don't use WSTOPSIG. |
| 842 | |
| 843 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
| 844 | |
| 845 | * win32-low.c: Commit leftover changes from 2007-03-29. |
| 846 | |
| 847 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 848 | |
| 849 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit |
| 850 | fields short instead of int. Add explicit padding. |
| 851 | (i387_cache_to_fsave): Remove unnecessary casts. |
| 852 | (i387_fsave_to_cache): Doc fix. |
| 853 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. |
| 854 | |
| 855 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 856 | |
| 857 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. |
| 858 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. |
| 859 | |
| 860 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 861 | |
| 862 | * configure.srv (arm*-*-mingw32ce*): Move near the other |
| 863 | arm targets. |
| 864 | |
| 865 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 866 | |
| 867 | * configure.ac: Add errno checking. |
| 868 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
| 869 | sys/file.h and malloc.h. |
| 870 | (AC_CHECK_DECLS): Add perror. |
| 871 | (srv_mingwce): Handle. |
| 872 | * configure.srv (i[34567]86-*-cygwin*): Add |
| 873 | win32-i386-low.o to srv_tgtobj. |
| 874 | (i[34567]86-*-mingw*): Likewise. |
| 875 | (arm*-*-mingw32ce*): Add case. |
| 876 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 877 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. |
| 878 | [__MINGW32CE__] (strerror): New function. |
| 879 | [__MINGW32CE__] (errno): Define to GetLastError. |
| 880 | [__MINGW32CE__] (COUNTOF): New macro. |
| 881 | (remote_open): Remove extra close call. |
| 882 | * mem-break.c (delete_breakpoint_at): New function. |
| 883 | * mem-break.h (delete_breakpoint_at): Declare. |
| 884 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 885 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. |
| 886 | [USE_WIN32API] (read, write): Add char* casts. |
| 887 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. |
| 888 | * server.h: Include wincecompat.h on Windows CE. |
| 889 | [HAVE_ERRNO_H]: Check. |
| 890 | (perror): Declare if not declared. |
| 891 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. |
| 892 | (perror_with_name): Remove errno declaration. |
| 893 | * wincecompat.h: New. |
| 894 | * wincecompat.c: New. |
| 895 | * win32-low.h: New. |
| 896 | * win32-arm-low.c: New. |
| 897 | * win32-i386-low.c: New. |
| 898 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. |
| 899 | (OUTMSG2): Make it safe. |
| 900 | (_T): New macro. |
| 901 | (COUNTOF): New macro. |
| 902 | (NUM_REGS): Get it from the low target. |
| 903 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, |
| 904 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. |
| 905 | (thread_rec): Let low target handle debug registers. |
| 906 | (child_add_thread): Likewise. |
| 907 | (child_init_thread_list): Likewise. |
| 908 | (continue_one_thread): Likewise. |
| 909 | (regptr): New. |
| 910 | (do_child_fetch_inferior_registers): Move to ... |
| 911 | * win32-i386-low.c: ... here, and rename to ... |
| 912 | (do_fetch_inferior_registers): ... this. |
| 913 | * win32-low.c (child_fetch_inferior_registers): |
| 914 | Go through the low target. |
| 915 | (do_child_store_inferior_registers): Use regptr. |
| 916 | (strwinerror): New function. |
| 917 | (win32_create_inferior): Handle Windows CE. |
| 918 | Use strwinerror instead of strerror on Windows error |
| 919 | codes. Add program to the error output. |
| 920 | Don't close the main thread handle on Windows CE. |
| 921 | (win32_attach): Use coredll.dll on Windows CE. |
| 922 | (win32_kill): Close current process and current |
| 923 | thread handles. |
| 924 | (win32_detach): Use coredll.dll on Windows CE. |
| 925 | (win32_resume): Let low target handle debug registers, and |
| 926 | step request. |
| 927 | (handle_exception): Add/Remove initial breakpoint. Avoid |
| 928 | non-existant WSTOPSIG on Windows CE. |
| 929 | (win32_read_inferior_memory): Cast to remove warning. |
| 930 | (win32_arch_string): Go through the low target. |
| 931 | (initialize_low): Call set_breakpoint_data with the low |
| 932 | target's breakpoint. |
| 933 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, |
| 934 | FOP_REGNUM, mappings): Move to ... |
| 935 | * win32-i386-low.c: ... here. |
| 936 | * win32-low.c (win32_thread_info): Move to ... |
| 937 | * win32-low.h: ... here. |
| 938 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, |
| 939 | win32-arm-low.c and wincecompat.c. |
| 940 | (all:): Add $EXEEXT. |
| 941 | (install-only:): Likewise. |
| 942 | (gdbserver:): Likewise. |
| 943 | (gdbreplay:): Likewise. |
| 944 | * config.in: Regenerate. |
| 945 | * configure: Regenerate. |
| 946 | |
| 947 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 948 | |
| 949 | * win32-low.c: Rename typedef thread_info to |
| 950 | win32_thread_info throughout. |
| 951 | |
| 952 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 953 | |
| 954 | * win32-i386-low.c: Rename to ... |
| 955 | * win32-low.c: ... this. |
| 956 | * configure.srv: Replace win32-i386-low.o with win32-low.o. |
| 957 | * Makefile.in: Likewise. |
| 958 | |
| 959 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
| 960 | |
| 961 | * remote-utils.c (monitor_output): Constify msg parameter. |
| 962 | * server.h (monitor_output): Likewise. |
| 963 | * win32-i386-low.c (handle_output_debug_string): New. |
| 964 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using |
| 965 | handle_output_debug_string. |
| 966 | (get_child_debug_event): Likewise. |
| 967 | |
| 968 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
| 969 | |
| 970 | * server.c (main): Correct strtoul check. |
| 971 | |
| 972 | 2007-03-27 Jon Ringle <jon@ringle.org> |
| 973 | |
| 974 | * linux-low.c: Check __ARCH_HAS_MMU__ also. |
| 975 | |
| 976 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
| 977 | |
| 978 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. |
| 979 | |
| 980 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 981 | |
| 982 | * terminal.h: Check HAVE_SGTTY_H. |
| 983 | |
| 984 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> |
| 985 | |
| 986 | * remote-utils.c (remote_open): Print out the assigned port number. |
| 987 | |
| 988 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 989 | |
| 990 | * remote-utils.c (monitor_output): New function. |
| 991 | * server.c (debug_threads): Define here. |
| 992 | (monitor_show_help): New function. |
| 993 | (handle_query): Handle qRcmd. |
| 994 | (main): Do not handle 'd' packet. |
| 995 | * server.h (debug_threads, remote_debug, monitor_output): Declare. |
| 996 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions |
| 997 | of debug_threads. |
| 998 | |
| 999 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1000 | |
| 1001 | * Makefile.in (EXEEXT): New. |
| 1002 | (clean): Use $(EXEEXT). |
| 1003 | |
| 1004 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1005 | |
| 1006 | * target.h (target_ops): Rename send_signal to request_interrupt, |
| 1007 | and remove enum target_signal parameter. |
| 1008 | * linux-low.c (linux_request_interrupt): Rename from |
| 1009 | linux_send_signal, and always send SIGINT. |
| 1010 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, |
| 1011 | and always send SIGINT. |
| 1012 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead |
| 1013 | of send_signal. |
| 1014 | (input_interrupt): Likewise. |
| 1015 | |
| 1016 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1017 | |
| 1018 | * server.c (get_features_xml): Check if target implemented |
| 1019 | arch_string. |
| 1020 | * win32-i386-low.c (win32_arch_string): New. |
| 1021 | (win32_target_ops): Add win32_arch_string as arch_string member. |
| 1022 | |
| 1023 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
| 1024 | |
| 1025 | * spu-low.c (spu_arch_string): New. |
| 1026 | (spu_target_ops): Add spu_arch_string. |
| 1027 | |
| 1028 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 1029 | |
| 1030 | * remote-utils.c: Remove HAVE_TERMINAL_H check. |
| 1031 | * configure.ac: Do not check for terminal.h. |
| 1032 | * configure, config.in: Regenerated. |
| 1033 | |
| 1034 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 1035 | |
| 1036 | * Makefile.in (OBS): Add $(XML_BUILTIN). |
| 1037 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. |
| 1038 | (clean): Update. |
| 1039 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) |
| 1040 | (arm-with-iwmmxt.c): New. |
| 1041 | * config.in, configure: Regenerate. |
| 1042 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, |
| 1043 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. |
| 1044 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. |
| 1045 | (arm*-*-linux*): Add iWMMXt and regset support. |
| 1046 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. |
| 1047 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) |
| 1048 | (arm_store_wmmxregset, target_regsets): New. |
| 1049 | * server.c (get_features_xml): Take annex argument. Check builtin |
| 1050 | XML documents. |
| 1051 | (handle_query): Handle multiple annexes. |
| 1052 | |
| 1053 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 1054 | |
| 1055 | * remote-utils.c [USE_WIN32API] (read, write): Define. |
| 1056 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and |
| 1057 | write. |
| 1058 | |
| 1059 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
| 1060 | |
| 1061 | * linux-i386-low.c (the_low_target): Set arch_string. |
| 1062 | * linux-x86-64-low.c (the_low_target): Likewise. |
| 1063 | * linux-low.c (linux_arch_string): New. |
| 1064 | (linux_target_ops): Add it. |
| 1065 | * linux-low.h (struct linux_target_ops): Add arch_string. |
| 1066 | * server.c (write_qxfer_response): Use const void * for DATA. |
| 1067 | (get_features_xml): New. |
| 1068 | (handle_query): Handle qXfer:features:read. Report it for qSupported. |
| 1069 | * target.h (struct target_ops): Add arch_string method. |
| 1070 | |
| 1071 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
| 1072 | Daniel Jacobowitz <dan@codesourcery.com> |
| 1073 | |
| 1074 | * linux-low.c (linux_kill): Handle being called with no threads. |
| 1075 | * win32-i386-low.c (win32_kill): Likewise. |
| 1076 | (get_child_debug_event): Clear current_process_handle. |
| 1077 | |
| 1078 | 2006-12-30 Denis PILAT <denis.pilat@st.com> |
| 1079 | Daniel Jacobowitz <dan@codesourcery.com> |
| 1080 | |
| 1081 | * remote-utils.c (remote_open): Check the type of specified |
| 1082 | serial port devices before opening them. |
| 1083 | * server.c (main): Kill the inferior if an error occurs during |
| 1084 | the first remote_open. |
| 1085 | |
| 1086 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
| 1087 | |
| 1088 | * README: Update supported targets. |
| 1089 | |
| 1090 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 1091 | |
| 1092 | * Makefile.in (clean): Remove reg-mips64.c. |
| 1093 | (reg-mips64.c, reg-mips64.o): New rules. |
| 1094 | * configure.srv: Handle mips64. Include regset support for mips. |
| 1095 | * linux-mips-low.c (union mips_register): New. |
| 1096 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. |
| 1097 | (mips_breakpoint, mips_breakpoint_at): Use int. |
| 1098 | (mips_collect_register, mips_supply_register) |
| 1099 | (mips_collect_register_32bit, mips_supply_register_32bit) |
| 1100 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) |
| 1101 | (mips_store_fpregset, target_regsets): New. |
| 1102 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. |
| 1103 | |
| 1104 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
| 1105 | |
| 1106 | * configure.srv: Add target "spu*-*-*". |
| 1107 | * Makefile.in (clean): Remove reg-spu.c. |
| 1108 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. |
| 1109 | * spu-low.c: New file. |
| 1110 | |
| 1111 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 1112 | |
| 1113 | * configure.ac: Correct td_thr_tls_get_addr test. |
| 1114 | * configure: Regenerated. |
| 1115 | |
| 1116 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 1117 | |
| 1118 | * linux-low.c (linux_wait_for_event): Reformat. Use the |
| 1119 | pass_signals array. |
| 1120 | * remote-utils.c (decode_address_to_semicolon): New. |
| 1121 | * server.c (pass_signals, handle_general_set): New. |
| 1122 | (handle_query): Mention QPassSignals for qSupported. |
| 1123 | (main): Call handle_general_set. |
| 1124 | * server.h (pass_signals, decode_address_to_semicolon): New. |
| 1125 | |
| 1126 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 1127 | |
| 1128 | * server.c (handle_query): Correct error handling for read_auxv. |
| 1129 | |
| 1130 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
| 1131 | |
| 1132 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets |
| 1133 | and srv_linux_thread_db to yes. |
| 1134 | * linux-s390-low.c (s390_fill_gregset): New function. |
| 1135 | (target_regsets): Define data structure. |
| 1136 | |
| 1137 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 1138 | |
| 1139 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. |
| 1140 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. |
| 1141 | * config.in, configure: Regenerated. |
| 1142 | * inferiors.c (gdb_id_to_thread): New function. |
| 1143 | (gdb_id_to_thread_id): Use it. |
| 1144 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. |
| 1145 | * linux-low.h (struct process_info): Add th member. |
| 1146 | (thread_db_get_tls_address): New prototype. |
| 1147 | * remote-utils.c (decode_address): Make non-static. |
| 1148 | * server.c (handle_query): Handle qGetTLSAddr. |
| 1149 | * server.h (gdb_id_to_thread, decode_address): New prototypes. |
| 1150 | * target.h (struct target_ops): Add get_tls_address. |
| 1151 | * thread-db.c (maybe_attach_thread): Save the thread handle. |
| 1152 | (thread_db_get_tls_address): New. |
| 1153 | |
| 1154 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 1155 | |
| 1156 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. |
| 1157 | (linux_resume_one_process): Take a siginfo_t *. Update all |
| 1158 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. |
| 1159 | (struct pending_signals): Add a siginfo_t. |
| 1160 | (linux_wait_for_process): Always set last_status. |
| 1161 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. |
| 1162 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. |
| 1163 | * linux-low.h (struct process_info): Add last_status. |
| 1164 | |
| 1165 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 1166 | |
| 1167 | * remote-utils.c (try_rle): New function. |
| 1168 | (putpkt_binary): Use it. |
| 1169 | |
| 1170 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 1171 | |
| 1172 | * Makefile.in (clean): Clean reg-x86-64-linux.c. |
| 1173 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. |
| 1174 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. |
| 1175 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. |
| 1176 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating |
| 1177 | point registers. |
| 1178 | |
| 1179 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
| 1180 | |
| 1181 | * server.c (terminal_fd): New variable. |
| 1182 | (old_foreground_pgrp): Likewise. |
| 1183 | (restore_old_foreground_pgrp): New function. |
| 1184 | (start_inferior): Record the terminal file descriptor in terminal_fd |
| 1185 | and its original foreground group in old_foreground_pgrp. Register |
| 1186 | restore_old_foreground_pgrp with atexit(). |
| 1187 | |
| 1188 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 1189 | |
| 1190 | * server.c (handle_query): Correct qPart to qXfer. |
| 1191 | |
| 1192 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 1193 | |
| 1194 | * configure.ac: Check for more headers which are missing on |
| 1195 | Windows. Automatically supply -lwsock32 and USE_WIN32API. |
| 1196 | * configure.srv: Add Cygwin and mingw32. |
| 1197 | * remote-utils.c: Don't include headers unconditionally which |
| 1198 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 1199 | (remote_open): Adjust for mingw32 support. Flush |
| 1200 | standard error after writing to it. |
| 1201 | (remote_close, putpkt_binary, input_interrupt, block_async_io) |
| 1202 | (unblock_async_io, enable_async_io, disable_async_io) |
| 1203 | (readchar, getpkt): Update for Winsock support. |
| 1204 | (prepare_resume_reply): Expect a protocol signal number. |
| 1205 | * server.c: Disable <sys/wait.h> on mingw32. |
| 1206 | (start_inferior): Adjust for mingw32 support. Flush |
| 1207 | standard error after writing to it. |
| 1208 | (attach_inferior): Likewise. Use protocol signal |
| 1209 | numbers. |
| 1210 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers |
| 1211 | and names. |
| 1212 | * win32-i386-low.c: New file. |
| 1213 | * Makefile.in (XM_CLIBS): Set. |
| 1214 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). |
| 1215 | (win32-i386-low.o): New dependency rule. |
| 1216 | * linux-low.c (linux_wait): Use target signal numbers. |
| 1217 | * target.h (struct target_ops): Doc fix. |
| 1218 | * server.h (target_signal_to_name): New prototype. |
| 1219 | * gdbreplay.c: Don't include headers unconditionally which |
| 1220 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 1221 | (remote_close, remote_open): Adjust for Winsock support. |
| 1222 | * configure, config.in: Regenerated. |
| 1223 | |
| 1224 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 1225 | |
| 1226 | * server.c (decode_xfer_read, write_qxfer_response): New. |
| 1227 | (handle_query): Take a packet length argument. Handle |
| 1228 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in |
| 1229 | the qSupported response. |
| 1230 | (main): Update call to handle_query. |
| 1231 | |
| 1232 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 1233 | |
| 1234 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. |
| 1235 | (putpkt_binary): Renamed from putpkt and adjusted for binary |
| 1236 | data. |
| 1237 | (putpkt): New wrapper for putpkt_binary. |
| 1238 | (readchar): Don't mask off the high bit. |
| 1239 | (decode_X_packet): New function. |
| 1240 | * server.c (main): Call putpkt_binary if a handler sets the packet |
| 1241 | length. Save the length of the incoming packet. Handle 'X'. |
| 1242 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. |
| 1243 | |
| 1244 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 1245 | |
| 1246 | * server.c (handle_query): Handle qSupported. |
| 1247 | |
| 1248 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 1249 | |
| 1250 | * remote-utils.c (all_symbols_looked_up): New variable. |
| 1251 | (look_up_one_symbol): Check it. |
| 1252 | * server.h (look_up_one_symbol): New declaration. |
| 1253 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. |
| 1254 | |
| 1255 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 1256 | |
| 1257 | * Makefile.in (linux-arm-low.o): Update dependencies. |
| 1258 | * linux-arm-low.c: Include "gdb_proc_service.h". |
| 1259 | (PTRACE_GET_THREAD_AREA): Define. |
| 1260 | (ps_get_thread_area): New function. |
| 1261 | |
| 1262 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
| 1263 | |
| 1264 | * configure.srv (m68k*-*-uclinux*): New target. |
| 1265 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. |
| 1266 | (linux_resume_one_process): Remove extraneous cast. |
| 1267 | (linux_read_offsets): New. |
| 1268 | (linux_target_op): Add linux_read_offsets on mmuless systems. |
| 1269 | * server.c (handle_query): Add qOffsets logic. |
| 1270 | * target.h (struct target_ops): Add read_offsets. |
| 1271 | |
| 1272 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 1273 | |
| 1274 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". |
| 1275 | (PTRACE_GET_THREAD_AREA): Define. |
| 1276 | (ps_get_thread_area): New function. |
| 1277 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) |
| 1278 | (linux-x86-64-low.o): Update. |
| 1279 | |
| 1280 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 1281 | |
| 1282 | * configure.ac: Remove checks for prfpregset_t. |
| 1283 | * gdb_proc_service.h: New file. |
| 1284 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the |
| 1285 | new "gdb_proc_service.h". |
| 1286 | * proc-service.c: Likewise. |
| 1287 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. |
| 1288 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. |
| 1289 | * Makefile.in (gdb_proc_service_h): Updated. |
| 1290 | * configure, config.in: Regenerated. |
| 1291 | |
| 1292 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 1293 | |
| 1294 | * remote-utils.c (prepare_resume_reply): Move declaration |
| 1295 | of gdb_id_from_wait to the top of the block. |
| 1296 | |
| 1297 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 1298 | |
| 1299 | * linux-low.c (regsets_store_inferior_registers): Read the regset |
| 1300 | from the target before filling it. |
| 1301 | |
| 1302 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 1303 | |
| 1304 | * server.c (attach_inferior): Return SIGTRAP for a successful |
| 1305 | attach. |
| 1306 | |
| 1307 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 1308 | |
| 1309 | * Makefile.in (OBS): Add version.o. |
| 1310 | (STAGESTUFF): Delete. |
| 1311 | (version.o): Add dependencies. |
| 1312 | (version.c): Replace rule. |
| 1313 | (clean): Remove version.c. |
| 1314 | * server.c (gdbserver_version): New. |
| 1315 | (gdbserver_usage): Use printf. |
| 1316 | (main): Handle --version and --help. |
| 1317 | * server.h (version, host_name): Add declarations. |
| 1318 | |
| 1319 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
| 1320 | |
| 1321 | * linux-arm-low.c: |
| 1322 | * linux-arm-low.c: |
| 1323 | * inferiors.c: |
| 1324 | * i387-fp.h: |
| 1325 | * i387-fp.c: |
| 1326 | * gdbreplay.c: |
| 1327 | * regcache.c: |
| 1328 | * proc-service.c: |
| 1329 | * mem-break.h: |
| 1330 | * mem-break.c: |
| 1331 | * linux-x86-64-low.c: |
| 1332 | * linux-sh-low.c: |
| 1333 | * linux-s390-low.c: |
| 1334 | * linux-ppc64-low.c: |
| 1335 | * linux-ppc-low.c: |
| 1336 | * linux-mips-low.c: |
| 1337 | * linux-m68k-low.c: |
| 1338 | * linux-m32r-low.c: |
| 1339 | * linux-low.h: |
| 1340 | * linux-low.c: |
| 1341 | * linux-ia64-low.c: |
| 1342 | * linux-i386-low.c: |
| 1343 | * linux-crisv32-low.c: |
| 1344 | * thread-db.c: |
| 1345 | * terminal.h: |
| 1346 | * target.h: |
| 1347 | * target.c: |
| 1348 | * server.h: |
| 1349 | * server.c: |
| 1350 | * remote-utils.c: |
| 1351 | * regcache.h: |
| 1352 | * utils.c: |
| 1353 | * Makefile.in: |
| 1354 | * configure.ac: |
| 1355 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
| 1356 | address. |
| 1357 | |
| 1358 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 1359 | |
| 1360 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. |
| 1361 | (arm_breakpoint_at): Recognize both breakpoints. |
| 1362 | (the_low_target): Use the correct breakpoint instruction. |
| 1363 | |
| 1364 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 1365 | |
| 1366 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. |
| 1367 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) |
| 1368 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. |
| 1369 | (the_low_target): Update. |
| 1370 | |
| 1371 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
| 1372 | |
| 1373 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. |
| 1374 | |
| 1375 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. |
| 1376 | (ia64_num_regs): Reduce to 462. |
| 1377 | |
| 1378 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 1379 | |
| 1380 | * acinclude.m4: Correct quoting. |
| 1381 | * aclocal.m4: Regenerated. |
| 1382 | |
| 1383 | Suggested by SZOKOVACS Robert <szo@ies.hu>: |
| 1384 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. |
| 1385 | (thread_db_init): Call thread_db_err_str. |
| 1386 | * configure.ac: Check for TD_VERSION. |
| 1387 | * config.in, configure: Regenerated. |
| 1388 | |
| 1389 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
| 1390 | |
| 1391 | * server.h (error, fatal, warning): Add ATTR_FORMAT. |
| 1392 | |
| 1393 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 1394 | |
| 1395 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS |
| 1396 | is not available. Define HAVE_PTRACE_GETREGS if it is. |
| 1397 | * config.in, configure: Regenerated. |
| 1398 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. |
| 1399 | * linux-i386-low.c, linux-m68k-low.c: Update to use |
| 1400 | HAVE_PTRACE_GETREGS. |
| 1401 | * linux-low.c (regsets_fetch_inferior_registers) |
| 1402 | (regsets_store_inferior_registers): Only return 0 if we processed |
| 1403 | GENERAL_REGS. |
| 1404 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. |
| 1405 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. |
| 1406 | |
| 1407 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 1408 | |
| 1409 | * inferiors.c (struct thread_info): Add gdb_id. |
| 1410 | (add_thread): Add gdb_id argument. |
| 1411 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. |
| 1412 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update |
| 1413 | calls to add_thread. |
| 1414 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. |
| 1415 | * server.c (handle_query): Use thread_to_gdb_id. |
| 1416 | (handle_v_cont, main): Use gdb_id_to_thread_id. |
| 1417 | * server.h (add_thread): Update prototype. |
| 1418 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New |
| 1419 | prototypes. |
| 1420 | |
| 1421 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 1422 | |
| 1423 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle |
| 1424 | left-padded registers. |
| 1425 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. |
| 1426 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. |
| 1427 | |
| 1428 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
| 1429 | |
| 1430 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. |
| 1431 | * configure: Regenerate. |
| 1432 | * config.in: Regenerate. |
| 1433 | * server.h (NEED_DECLARATION_STRERROR): |
| 1434 | Replace with !HAVE_DECL_STRERROR. |
| 1435 | |
| 1436 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 1437 | |
| 1438 | * linux-low.c (linux_wait, linux_send_signal): Don't test |
| 1439 | an unsigned long variable for > 0 if it could be MAX_ULONG. |
| 1440 | * server.c (myresume): Likewise. |
| 1441 | * target.c (set_desired_inferior): Likewise. |
| 1442 | |
| 1443 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
| 1444 | |
| 1445 | * configure.ac: Simplify and improve check for socklen_t. |
| 1446 | * configure, config.in: Regenerate. |
| 1447 | |
| 1448 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 1449 | |
| 1450 | * acconfig.h: Remove. |
| 1451 | * configure.ac: Add a test for socklen_t. Use three-argument |
| 1452 | AC_DEFINE throughout. |
| 1453 | * config.in: Regenerated using autoheader 2.59. |
| 1454 | * configure: Regenerated. |
| 1455 | |
| 1456 | * gdbreplay.c (socklen_t): Provide a default. |
| 1457 | (remote_open): Use socklen_t. |
| 1458 | * remote-utils.c (socklen_t): Provide a default. |
| 1459 | (remote_open): Use socklen_t. |
| 1460 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use |
| 1461 | unsigned char. |
| 1462 | |
| 1463 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned |
| 1464 | char for buffers. |
| 1465 | * linux-low.c (linux_read_memory, linux_write_memory) |
| 1466 | (linux_read_auxv): Likewise. |
| 1467 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) |
| 1468 | (check_mem_write): Likewise. |
| 1469 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): |
| 1470 | Likewise. |
| 1471 | * regcache.c (struct inferior_rgcache_data, registers_to_string) |
| 1472 | (registers_from_string, register_data): Likewise. |
| 1473 | * server.c (handle_query, main): Likewise. |
| 1474 | * server.h (convert_ascii_to_int, convert_int_to_ascii) |
| 1475 | (decode_M_packet): Likewise. |
| 1476 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. |
| 1477 | * target.h (struct target_ops): Update read_memory, write_memory, |
| 1478 | and read_auxv. |
| 1479 | (read_inferior_memory, write_inferior_memory): Update. |
| 1480 | * linux-low.h (struct linux_target_ops): Change type of breakpoint |
| 1481 | to unsigned char *. |
| 1482 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, |
| 1483 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, |
| 1484 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, |
| 1485 | linux-s390-low.c, linux-sh-low.c: Update for changes in |
| 1486 | read_inferior_memory and the_low_target->breakpoint. |
| 1487 | |
| 1488 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 1489 | |
| 1490 | * Makefile.in (SFILES): Add linux-ppc64-low.c. |
| 1491 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. |
| 1492 | * configure.srv: Add powerpc64-*-linux*. |
| 1493 | * linux-ppc64-low.c: New file. |
| 1494 | |
| 1495 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
| 1496 | |
| 1497 | * linux-cris-low.c: New file with support for CRIS. |
| 1498 | * linux-crisv32-low.c: Ditto for CRISv32. |
| 1499 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. |
| 1500 | (clean): Add reg-cris.c and reg-crisv32.c. |
| 1501 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
| 1502 | reg-crisv32.o, and reg-crisv32.c to make rules. |
| 1503 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of |
| 1504 | recognized targets. |
| 1505 | |
| 1506 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
| 1507 | |
| 1508 | * linux-low.c (fetch_register): Ensure buffer size is a multiple |
| 1509 | of sizeof (PTRACE_XFER_TYPE). |
| 1510 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. |
| 1511 | |
| 1512 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
| 1513 | |
| 1514 | * target.h (struct target_ops): Add insert_watchpoint, |
| 1515 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
| 1516 | pointers for hardware watchpoint support. |
| 1517 | * linux-low.h (struct linux_target_ops): Ditto. |
| 1518 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) |
| 1519 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add |
| 1520 | to linux_target_ops. |
| 1521 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to |
| 1522 | reply packet. |
| 1523 | * server.c (main): Recognize 'Z' and 'z' packets. |
| 1524 | |
| 1525 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
| 1526 | |
| 1527 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. |
| 1528 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. |
| 1529 | (the_low_target): Add new members. |
| 1530 | |
| 1531 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 1532 | |
| 1533 | * proc-service.c (ps_lgetregs): Search all_processes instead of |
| 1534 | all_threads. |
| 1535 | |
| 1536 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 1537 | |
| 1538 | * server.c (start_inferior): Change return type to int. |
| 1539 | (attach_inferior): Change sigptr to int *. |
| 1540 | (handle_v_cont, handle_v_requests): Change signal to int *. |
| 1541 | (main): Change signal to int. |
| 1542 | |
| 1543 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> |
| 1544 | |
| 1545 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. |
| 1546 | * configure.srv: Add m32r*-*-linux*. |
| 1547 | * linux-m32r-low.c: New file. |
| 1548 | |
| 1549 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 1550 | |
| 1551 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. |
| 1552 | |
| 1553 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 1554 | |
| 1555 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): |
| 1556 | Take unsigned long arguments for PIDs. |
| 1557 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) |
| 1558 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) |
| 1559 | (wait_for_sigstop, linux_resume_one_process) |
| 1560 | (regsets_fetch_inferior_registers, linux_send_signal) |
| 1561 | (linux_read_auxv): Likewise. Update the types of variables holding |
| 1562 | PIDs. Update format string specifiers. |
| 1563 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. |
| 1564 | * remote-utils.c (prepare_resume_reply): Likewise. |
| 1565 | * server.c (cont_thread, general_thread, step_thread) |
| 1566 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to |
| 1567 | unsigned long. |
| 1568 | (handle_query): Update format specifiers. |
| 1569 | (handle_v_cont, main): Use strtoul for thread IDs. |
| 1570 | * server.h (struct inferior_list_entry): Use unsigned long for ID. |
| 1571 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) |
| 1572 | (general_thread, step_thread, thread_from_wait) |
| 1573 | (old_thread_from_wait): Update. |
| 1574 | * target.h (struct thread_resume): Use unsigned long for THREAD. |
| 1575 | (struct target_ops): Use unsigned long for arguments to attach and |
| 1576 | thread_alive. |
| 1577 | |
| 1578 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 1579 | |
| 1580 | * acinclude.m4: Include bfd/bfd.m4 directly. |
| 1581 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis |
| 1582 | <agriffis@toolchain.org>. |
| 1583 | * aclocal.m4, configure: Regenerated. |
| 1584 | |
| 1585 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
| 1586 | |
| 1587 | * configure.ac: Rename configure.in, require autoconf 2.59. |
| 1588 | * configure: Re-generate. |
| 1589 | |
| 1590 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
| 1591 | |
| 1592 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset |
| 1593 | LIBS when finished. |
| 1594 | * aclocal.m4: Regenerated. |
| 1595 | * configure: Regenerated. |
| 1596 | |
| 1597 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
| 1598 | |
| 1599 | * linux-m68k-low.c (m68k_num_gregs): Define. |
| 1600 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) |
| 1601 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. |
| 1602 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) |
| 1603 | (m68k_breakpoint_at): New. Add to the_low_target. |
| 1604 | |
| 1605 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and |
| 1606 | srv_linux_thread_db to yes. |
| 1607 | |
| 1608 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
| 1609 | |
| 1610 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. |
| 1611 | (ARCH_SET_FS): Likewise. |
| 1612 | (ARCH_GET_FS): Likewise. |
| 1613 | (ARCH_GET_GS): Likewise. |
| 1614 | |
| 1615 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 1616 | |
| 1617 | * linux-i386-low.c (ps_get_thread_area): New. |
| 1618 | * linux-x86-64-low.c (ps_get_thread_area): New. |
| 1619 | * linux-low.c: Include <sys/syscall.h>. |
| 1620 | (linux_kill_one_process): Don't kill the first thread here. |
| 1621 | (linux_kill): Kill the first thread here. |
| 1622 | (kill_lwp): New function. |
| 1623 | (send_sigstop, linux_send_signal): Use it. |
| 1624 | * proc-service.c: Clean up #ifdefs. |
| 1625 | (fpregset_info): Delete. |
| 1626 | (ps_lgetregs): Update and enable implementation. |
| 1627 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled |
| 1628 | implementations. |
| 1629 | * remote-utils.c (struct sym_cache, symbol_cache): New. |
| 1630 | (input_interrupt): Print a clearer message. |
| 1631 | (async_io_enabled): New variable. |
| 1632 | (enable_async_io, disable_async_io): Use it. Update comments. |
| 1633 | (look_up_one_symbol): Use the symbol cache. |
| 1634 | * thread-db.c (thread_db_look_up_symbols): New function. |
| 1635 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. |
| 1636 | |
| 1637 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 1638 | |
| 1639 | * configure.in: Test for -rdynamic. |
| 1640 | * configure: Regenerated. |
| 1641 | * Makefile (INTERNAL_LDFLAGS): New. |
| 1642 | (gdbserver, gdbreplay): Use it. |
| 1643 | |
| 1644 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
| 1645 | |
| 1646 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. |
| 1647 | |
| 1648 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
| 1649 | |
| 1650 | * linux-low.c (linux_wait): Clear all_processes list also. |
| 1651 | |
| 1652 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 1653 | |
| 1654 | * linux-low.c: Include <errno.h>. Remove extern declaration of |
| 1655 | errno. |
| 1656 | |
| 1657 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 1658 | |
| 1659 | * gdbreplay.c, server.h, utils.c: Update copyright years. |
| 1660 | |
| 1661 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 1662 | |
| 1663 | * server.c (main): Print child status or termination signal from |
| 1664 | variable 'signal', not 'sig'. |
| 1665 | |
| 1666 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 1667 | |
| 1668 | * linux-low.c (linux_read_memory): Change return type to |
| 1669 | int. Check for and return error from ptrace(). |
| 1670 | * target.c (read_inferior_memory): Change return type to int. Pass |
| 1671 | back return status from the_target->read_memory(). |
| 1672 | * target.h (struct target_ops): Adapt *read_memory() prototype. |
| 1673 | Update comment. |
| 1674 | (read_inferior_memory): Adapt prototype. |
| 1675 | * server.c (main): Return an error packet if |
| 1676 | read_inferior_memory() returns an error. |
| 1677 | |
| 1678 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
| 1679 | |
| 1680 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. |
| 1681 | Unify with other clean targets. |
| 1682 | |
| 1683 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 1684 | |
| 1685 | * server.c (handle_v_cont): Call set_desired_inferior. |
| 1686 | |
| 1687 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 1688 | |
| 1689 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". |
| 1690 | |
| 1691 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 1692 | |
| 1693 | * linux-low.c (linux_wait): Unblock async I/O. |
| 1694 | (linux_resume): Block and enable async I/O. |
| 1695 | * remote-utils.c (block_async_io, unblock_async_io): New functions. |
| 1696 | * server.h (block_async_io, unblock_async_io): Add prototypes. |
| 1697 | |
| 1698 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 1699 | |
| 1700 | * remote-utils.c (remote_open): Print a status notice after |
| 1701 | opening a TCP port. |
| 1702 | * server.c (attach_inferior): Print a status notice after |
| 1703 | attaching. |
| 1704 | |
| 1705 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 1706 | |
| 1707 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. |
| 1708 | |
| 1709 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
| 1710 | |
| 1711 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the |
| 1712 | error packet. |
| 1713 | * server.c, target.h: Update copyright years. |
| 1714 | |
| 1715 | 2004-02-25 Roland McGrath <roland@redhat.com> |
| 1716 | |
| 1717 | * target.h (struct target_ops): New member `read_auxv'. |
| 1718 | * server.c (handle_query): Handle qPart:auxv:read: query using that. |
| 1719 | * linux-low.c (linux_read_auxv): New function. |
| 1720 | (linux_target_ops): Initialize `read_auxv' member to that. |
| 1721 | |
| 1722 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
| 1723 | |
| 1724 | Committed by Jim Blandy <jimb@redhat.com>. |
| 1725 | |
| 1726 | * linux-s390-low.c (s390_num_regs): Update. |
| 1727 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
| 1728 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
| 1729 | |
| 1730 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
| 1731 | |
| 1732 | * linux-low.c: Update copyright year. |
| 1733 | (check_removed_breakpoint): Clear pending_is_breakpoint. |
| 1734 | (linux_set_resume_request, linux_queue_one_thread) |
| 1735 | (resume_status_pending_p): New functions. |
| 1736 | (linux_continue_one_thread): Use process->resume. |
| 1737 | (linux_resume): Only resume threads if there are no pending events. |
| 1738 | * linux-low.h (struct process_info): Add resume request |
| 1739 | pointer. |
| 1740 | |
| 1741 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
| 1742 | |
| 1743 | * regcache.c (new_register_cache): Clear the allocated register |
| 1744 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. |
| 1745 | |
| 1746 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
| 1747 | |
| 1748 | * linux-low.c (linux_resume): Take a struct thread_resume * |
| 1749 | argument. |
| 1750 | (linux_wait): Update call. |
| 1751 | (resume_ptr): New static variable. |
| 1752 | (linux_continue_one_thread): Renamed from |
| 1753 | linux_continue_one_process. Use resume_ptr. |
| 1754 | (linux_resume): Use linux_continue_one_thread. |
| 1755 | * server.c (handle_v_cont, handle_v_requests): New functions. |
| 1756 | (myresume): New function. |
| 1757 | (main): Handle 'v' case. |
| 1758 | * target.h (struct thread_resume): New type. |
| 1759 | (struct target_ops): Change argument of "resume" to struct |
| 1760 | thread_resume *. |
| 1761 | (myresume): Delete macro. |
| 1762 | |
| 1763 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
| 1764 | |
| 1765 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. |
| 1766 | (uninstall): Support DESTDIR. |
| 1767 | |
| 1768 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
| 1769 | |
| 1770 | * configure.srv: Add xscale*linux copy of arm*linux entry. |
| 1771 | |
| 1772 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
| 1773 | |
| 1774 | * linux-arm-low.c (arm_reinsert_addr): New function. |
| 1775 | (the_low_target): Add arm_reinsert_addr. |
| 1776 | |
| 1777 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
| 1778 | |
| 1779 | * mem-break.c: Remove whitespace at end of file. |
| 1780 | |
| 1781 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 1782 | |
| 1783 | * configure.in: Check whether we need to prototype strerror. |
| 1784 | * server.h: Optionally prototype strerror. |
| 1785 | * gdbreplay.c (perror_with_name): Use strerror. |
| 1786 | * linux-low.c (linux_attach_lwp): Use strerror. |
| 1787 | * utils.c (perror_with_name): Use strerror. |
| 1788 | * config.in, configure: Regenerated. |
| 1789 | |
| 1790 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 1791 | |
| 1792 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by |
| 1793 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. |
| 1794 | |
| 1795 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
| 1796 | |
| 1797 | * Makefile.in (SFILES): Update. |
| 1798 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, |
| 1799 | low-sun3.c: Remove files. |
| 1800 | |
| 1801 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
| 1802 | |
| 1803 | * linux-low.c: Move comment to linux_thread_alive where it belonged. |
| 1804 | (linux_detach_one_process, linux_detach): New functions. |
| 1805 | (linux_target_ops): Add linux_detach. |
| 1806 | * server.c (main): Handle 'D' packet. |
| 1807 | * target.h (struct target_ops): Add "detach" member. |
| 1808 | (detach_inferior): Define. |
| 1809 | |
| 1810 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
| 1811 | |
| 1812 | From Kelley Cook <kelleycook@wideopenwest.com>: |
| 1813 | * configure.srv: Accept i[34567]86 variants. |
| 1814 | |
| 1815 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
| 1816 | |
| 1817 | * linux-low.c (linux_wait_for_event): Correct comment typos. |
| 1818 | (linux_resume_one_process): Call check_removed_breakpoint. |
| 1819 | (linux_send_signal): New function. |
| 1820 | (linux_target_ops): Add linux_send_signal. |
| 1821 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead |
| 1822 | of kill. |
| 1823 | * target.h (struct target_ops): Add send_signal. |
| 1824 | |
| 1825 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
| 1826 | |
| 1827 | * linux-low.c (usr_store_inferior_registers): Transfer buf in |
| 1828 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, |
| 1829 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing |
| 1830 | away part of the register's value. |
| 1831 | |
| 1832 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
| 1833 | |
| 1834 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. |
| 1835 | (linux_wait_for_event, linux_init_signals): Likewise. |
| 1836 | |
| 1837 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
| 1838 | |
| 1839 | * configure.in: Check for stdlib.h. |
| 1840 | * configure: Regenerated. |
| 1841 | * config.in: Regenerated. |
| 1842 | |
| 1843 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
| 1844 | |
| 1845 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. |
| 1846 | |
| 1847 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
| 1848 | |
| 1849 | * Makefile.in: Remove obsolete code. |
| 1850 | |
| 1851 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
| 1852 | |
| 1853 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of |
| 1854 | defined(PT_FPR0_HI). |
| 1855 | |
| 1856 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
| 1857 | |
| 1858 | * linux-arm-low.c (arm_num_regs): Increase. |
| 1859 | (arm_regmap): Include status register. |
| 1860 | |
| 1861 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> |
| 1862 | |
| 1863 | * linux-low.c (register_addr): Remove incorrect -1 check. |
| 1864 | |
| 1865 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
| 1866 | |
| 1867 | * linux-low.c (linux_create_inferior): Call setpgid. Return |
| 1868 | the new PID. |
| 1869 | (unstopped_p, linux_signal_pid): Remove. |
| 1870 | (linux_target_ops): Remove linux_signal_pid. |
| 1871 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid |
| 1872 | global instead of target method. |
| 1873 | * target.h (struct target_ops): Remove signal_pid. Update comment |
| 1874 | for create_inferior. |
| 1875 | * server.c (signal_pid): New variable. |
| 1876 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in |
| 1877 | gdbserver. Set the child to be the foreground process group. |
| 1878 | (attach_inferior): Set signal_pid. |
| 1879 | |
| 1880 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
| 1881 | |
| 1882 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. |
| 1883 | |
| 1884 | 2002-08-20 Jim Blandy <jimb@redhat.com> |
| 1885 | |
| 1886 | * Makefile.in (LDFLAGS): Allow the configure script to establish a |
| 1887 | default for this. |
| 1888 | |
| 1889 | 2002-08-01 Andrew Cagney <cagney@redhat.com> |
| 1890 | |
| 1891 | * Makefile.in: Make chill references obsolete. |
| 1892 | |
| 1893 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> |
| 1894 | |
| 1895 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. |
| 1896 | * configure: Regenerate. |
| 1897 | * config.in: Regenerate. |
| 1898 | |
| 1899 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> |
| 1900 | |
| 1901 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. |
| 1902 | (perror_with_name, remote_close, remote_open, expect, play): Static. |
| 1903 | |
| 1904 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> |
| 1905 | |
| 1906 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
| 1907 | byte offsets instead of an array of indexes. |
| 1908 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. |
| 1909 | |
| 1910 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> |
| 1911 | |
| 1912 | * regcache.c: Add comment. |
| 1913 | |
| 1914 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> |
| 1915 | |
| 1916 | * thread-db.c: New file. |
| 1917 | * proc-service.c: New file. |
| 1918 | * acinclude.m4: New file. |
| 1919 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, |
| 1920 | proc-service.o, and thread-db.o. |
| 1921 | (linux-low.o): Add USE_THREAD_DB. |
| 1922 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, |
| 1923 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. |
| 1924 | * aclocal.m4: Regenerated. |
| 1925 | * config.in: Regenerated. |
| 1926 | * configure: Regenerated. |
| 1927 | * configure.in: Check for proc_service.h, sys/procfs.h, |
| 1928 | thread_db.h, and linux/elf.h headrs. |
| 1929 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and |
| 1930 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. |
| 1931 | Check for -lthread_db and thread support. |
| 1932 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, |
| 1933 | PowerPC, and SuperH. |
| 1934 | * i387-fp.c: Constify arguments. |
| 1935 | * i387-fp.h: Likewise. |
| 1936 | * inferiors.c: (struct thread_info): Renamed from |
| 1937 | `struct inferior_info'. Remove PID member. Use generic inferior |
| 1938 | list header. All uses updated. |
| 1939 | (inferiors, signal_pid): Removed. |
| 1940 | (all_threads): New variable. |
| 1941 | (get_thread): Define. |
| 1942 | (add_inferior_to_list): New function. |
| 1943 | (for_each_inferior): New function. |
| 1944 | (change_inferior_id): New function. |
| 1945 | (add_inferior): Removed. |
| 1946 | (remove_inferior): New function. |
| 1947 | (add_thread): New function. |
| 1948 | (free_one_thread): New function. |
| 1949 | (remove_thread): New function. |
| 1950 | (clear_inferiors): Use for_each_inferior and free_one_thread. |
| 1951 | (find_inferior): New function. |
| 1952 | (find_inferior_id): New function. |
| 1953 | (inferior_target_data): Update argument type. |
| 1954 | (set_inferior_target_data): Likewise. |
| 1955 | (inferior_regcache_data): Likewise. |
| 1956 | (set_inferior_regcache_data): Likewise. |
| 1957 | * linux-low.c (linux_bp_reinsert): Remove. |
| 1958 | (all_processes, stopping_threads, using_thrads) |
| 1959 | (struct pending_signals, debug_threads, pid_of): New. |
| 1960 | (inferior_pid): Replace with macro. |
| 1961 | (struct inferior_linux_data): Remove. |
| 1962 | (get_stop_pc, add_process): New functions. |
| 1963 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. |
| 1964 | Use add_process and add_thread. |
| 1965 | (linux_attach_lwp): New function, based on old linux_attach. Use |
| 1966 | add_process and add_thread. Set stop_expected for new threads. |
| 1967 | (linux_attach): New function. |
| 1968 | (linux_kill_one_process): New function. |
| 1969 | (linux_kill): Kill all LWPs. |
| 1970 | (linux_thread_alive): Use find_inferior_id. |
| 1971 | (check_removed_breakpoints, status_pending_p): New functions. |
| 1972 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. |
| 1973 | Update. Use WNOHANG. Wait for cloned processes also. Update process |
| 1974 | struct for the found process. |
| 1975 | (linux_wait_for_event): New function. |
| 1976 | (linux_wait): Use it. Support LWPs. |
| 1977 | (send_sigstop, wait_for_sigstop, stop_all_processes) |
| 1978 | (linux_resume_one_process, linux_continue_one_process): New functions. |
| 1979 | (linux_resume): Support LWPs. |
| 1980 | (REGISTER_RAW_SIZE): Remove. |
| 1981 | (fetch_register): Use register_size instead. Call supply_register. |
| 1982 | (usr_store_inferior_registers): Likewise. Call collect_register. |
| 1983 | Fix recursive case. |
| 1984 | (regsets_fetch_inferior_registers): Improve error message. |
| 1985 | (regsets_store_inferior_registers): Add debugging. |
| 1986 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. |
| 1987 | (unstopped_p, linux_signal_pid): New functions. |
| 1988 | (linux_target_ops): Add linux_signal_pid. |
| 1989 | (linux_init_signals): New function. |
| 1990 | (initialize_low): Call it. Initialize using_threads. |
| 1991 | * regcache.c (inferior_regcache_data): Add valid |
| 1992 | flag. |
| 1993 | (get_regcache): Fetch registers lazily. Add fetch argument |
| 1994 | and update all callers. |
| 1995 | (regcache_invalidate_one, regcache_invalidate): New |
| 1996 | functions. |
| 1997 | (new_register_cache): Renamed from create_register_cache. |
| 1998 | Return the new regcache. |
| 1999 | (free_register_cache): Change argument to a void *. |
| 2000 | (registers_to_string, registers_from_string): Call get_regcache |
| 2001 | with fetch flag set. |
| 2002 | (register_data): Make static. Pass fetch flag to get_regcache. |
| 2003 | (supply_register): Call get_regcache with fetch flag clear. |
| 2004 | (collect_register): Call get_regcache with fetch flag set. |
| 2005 | (collect_register_as_string): New function. |
| 2006 | * regcache.h: Update. |
| 2007 | * remote-utils.c (putpkt): Flush after debug output and use |
| 2008 | stderr. |
| 2009 | Handle input interrupts while waiting for an ACK. |
| 2010 | (input_interrupt): Use signal_pid method. |
| 2011 | (getpkt): Flush after debug output and use stderr. |
| 2012 | (outreg): Use collect_register_as_string. |
| 2013 | (new_thread_notify, dead_thread_notify): New functions. |
| 2014 | (prepare_resume_reply): Check using_threads. Set thread_from_wait |
| 2015 | and general_thread. |
| 2016 | (look_up_one_symbol): Flush after debug output. |
| 2017 | * server.c (step_thread, server_waiting): New variables. |
| 2018 | (start_inferior): Don't use signal_pid. Update call to mywait. |
| 2019 | (attach_inferior): Update call to mywait. |
| 2020 | (handle_query): Handle qfThreadInfo and qsThreadInfo. |
| 2021 | (main): Don't fetch/store registers explicitly. Use |
| 2022 | set_desired_inferior. Support proposed ``Hs'' packet. Update |
| 2023 | calls to mywait. |
| 2024 | * server.h: Update. |
| 2025 | (struct inferior_list, struct_inferior_list_entry): New. |
| 2026 | * target.c (set_desired_inferior): New. |
| 2027 | (write_inferior_memory): Constify. |
| 2028 | (mywait): New function. |
| 2029 | * target.h: Update. |
| 2030 | (struct target_ops): New signal_pid method. |
| 2031 | (mywait): Removed macro, added prototype. |
| 2032 | |
| 2033 | * linux-low.h (regset_func): Removed. |
| 2034 | (regset_fill_func, regset_store_func): New. |
| 2035 | (enum regset_type): New. |
| 2036 | (struct regset_info): Add type field. Use new operation types. |
| 2037 | (struct linux_target_ops): stop_pc renamed to get_pc. |
| 2038 | Add decr_pc_after_break and breakpoint_at. |
| 2039 | (get_process, get_thread_proess, get_process_thread) |
| 2040 | (strut process_info, all_processes, linux_attach_lwp) |
| 2041 | (thread_db_init): New. |
| 2042 | |
| 2043 | * linux-arm-low.c (arm_get_pc, arm_set_pc, |
| 2044 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. |
| 2045 | (the_low_target): Add new members. |
| 2046 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) |
| 2047 | (i386_store_fpxregset): Constify. |
| 2048 | (target_regsets): Add new kind identifier. |
| 2049 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. |
| 2050 | (i386_set_pc): Add debugging. |
| 2051 | (i386_breakpoint_at): New function. |
| 2052 | (the_low_target): Add new members. |
| 2053 | * linux-mips-low.c (mips_get_pc, mips_set_pc) |
| 2054 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) |
| 2055 | (mips_breakpoint_at): New. |
| 2056 | (the_low_target): Add new members. |
| 2057 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) |
| 2058 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. |
| 2059 | (the_low_target): Add new members. |
| 2060 | * linux-sh-low.c (sh_get_pc, sh_set_pc) |
| 2061 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. |
| 2062 | (the_low_target): Add new members. |
| 2063 | * linux-x86-64-low.c (target_regsets): Add new kind |
| 2064 | identifier. |
| 2065 | |
| 2066 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> |
| 2067 | |
| 2068 | From Martin Pool <mbp@samba.org>: |
| 2069 | * server.c (gdbserver_usage): New function. |
| 2070 | (main): Call it. |
| 2071 | |
| 2072 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> |
| 2073 | |
| 2074 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo |
| 2075 | stop_at -> stop_pc. |
| 2076 | |
| 2077 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> |
| 2078 | |
| 2079 | * Makefile.in: Remove obsolete code. |
| 2080 | |
| 2081 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> |
| 2082 | |
| 2083 | * linux-low.c (regsets_fetch_inferior_registers), |
| 2084 | (regsets_store_inferior_registers): Removed cast to int from |
| 2085 | ptrace() calls. |
| 2086 | * regcache.h: Added declaration of struct inferior_info. |
| 2087 | |
| 2088 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 2089 | |
| 2090 | * inferiors.c (struct inferior_info): Add regcache_data. |
| 2091 | (add_inferior): Call create_register_cache. |
| 2092 | (clear_inferiors): Call free_register_cache. |
| 2093 | (inferior_regcache_data, set_inferior_regcache_data): New functions. |
| 2094 | * regcache.c (struct inferior_regcache_data): New. |
| 2095 | (registers): Remove. |
| 2096 | (get_regcache): New function. |
| 2097 | (create_register_cache, free_register_cache): New functions. |
| 2098 | (set_register_cache): Don't initialize the register cache here. |
| 2099 | (registers_to_string, registers_from_string, register_data): Call |
| 2100 | get_regcache. |
| 2101 | * regcache.h: Add prototypes. |
| 2102 | * server.h: Likewise. |
| 2103 | |
| 2104 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 2105 | |
| 2106 | * mem-break.c: New file. |
| 2107 | * mem-break.h: New file. |
| 2108 | * Makefile.in: Add mem-break.o rule; update server.h |
| 2109 | dependencies. |
| 2110 | * inferiors.c (struct inferior_info): Add target_data |
| 2111 | member. |
| 2112 | (clear_inferiors): Free target_data member if set. |
| 2113 | (inferior_target_data, set_inferior_target_data): New functions. |
| 2114 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) |
| 2115 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. |
| 2116 | * linux-low.c (linux_bp_reinsert): New variable. |
| 2117 | (struct inferior_linux_data): New. |
| 2118 | (linux_create_inferior): Use set_inferior_target_data. |
| 2119 | (linux_attach): Likewise. Call add_inferior. |
| 2120 | (linux_wait_for_one_inferior): New function. |
| 2121 | (linux_wait): Call it. |
| 2122 | (linux_write_memory): Add const. |
| 2123 | (initialize_low): Call set_breakpoint_data. |
| 2124 | * linux-low.h (struct linux_target_ops): Add breakpoint |
| 2125 | handling members. |
| 2126 | * server.c (attach_inferior): Remove extra add_inferior |
| 2127 | call. |
| 2128 | * server.h: Include mem-break.h. Update inferior.c |
| 2129 | prototypes. |
| 2130 | * target.c (read_inferior_memory) |
| 2131 | (write_inferior_memory): New functions. |
| 2132 | * target.h (read_inferior_memory) |
| 2133 | (write_inferior_memory): Change macros to prototypes. |
| 2134 | (struct target_ops): Update comments. Add const to write_memory |
| 2135 | definition. |
| 2136 | |
| 2137 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> |
| 2138 | |
| 2139 | * linux-low.c (usr_store_inferior_registers): Support |
| 2140 | registers which are allowed to fail to store. |
| 2141 | * linux-low.h (linux_target_ops): Likewise. |
| 2142 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. |
| 2143 | (ppc_cannot_store_register): FPSCR may not be storable. |
| 2144 | |
| 2145 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 2146 | |
| 2147 | * server.h: Include <string.h> if HAVE_STRING_H. |
| 2148 | * ChangeLog: Correct paths in last ChangeLog entry. |
| 2149 | |
| 2150 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 2151 | |
| 2152 | * linux-low.h: Remove obsolete prototypes. |
| 2153 | (struct linux_target_ops): New. |
| 2154 | (extern the_low_target): New. |
| 2155 | * linux-low.c (num_regs, regmap): Remove declarations. |
| 2156 | (register_addr): Use the_low_target explicitly. |
| 2157 | (fetch_register): Likewise. |
| 2158 | (usr_fetch_inferior_registers): Likewise. |
| 2159 | (usr_store_inferior_registers): Likewise. |
| 2160 | * linux-arm-low.c (num_regs): Remove. |
| 2161 | (arm_num_regs): Define. |
| 2162 | (arm_regmap): Renamed from regmap, made static. |
| 2163 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2164 | made static. |
| 2165 | (arm_cannot_store_register): Renamed from cannot_store_register, |
| 2166 | made static. |
| 2167 | (the_low_target): New. |
| 2168 | * linux-i386-low.c (num_regs): Remove. |
| 2169 | (i386_num_regs): Define. |
| 2170 | (i386_regmap): Renamed from regmap, made static. |
| 2171 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2172 | made static. |
| 2173 | (i386_cannot_store_register): Renamed from cannot_store_register, |
| 2174 | made static. |
| 2175 | (the_low_target): New. |
| 2176 | * linux-ia64-low.c (num_regs): Remove. |
| 2177 | (ia64_num_regs): Define. |
| 2178 | (ia64_regmap): Renamed from regmap, made static. |
| 2179 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2180 | made static. |
| 2181 | (ia64_cannot_store_register): Renamed from cannot_store_register, |
| 2182 | made static. |
| 2183 | (the_low_target): New. |
| 2184 | * linux-m68k-low.c (num_regs): Remove. |
| 2185 | (m68k_num_regs): Define. |
| 2186 | (m68k_regmap): Renamed from regmap, made static. |
| 2187 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2188 | made static. |
| 2189 | (m68k_cannot_store_register): Renamed from cannot_store_register, |
| 2190 | made static. |
| 2191 | (the_low_target): New. |
| 2192 | * linux-mips-low.c (num_regs): Remove. |
| 2193 | (mips_num_regs): Define. |
| 2194 | (mips_regmap): Renamed from regmap, made static. |
| 2195 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2196 | made static. |
| 2197 | (mips_cannot_store_register): Renamed from cannot_store_register, |
| 2198 | made static. |
| 2199 | (the_low_target): New. |
| 2200 | * linux-ppc-low.c (num_regs): Remove. |
| 2201 | (ppc_num_regs): Define. |
| 2202 | (ppc_regmap): Renamed from regmap, made static. |
| 2203 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2204 | made static. |
| 2205 | (ppc_cannot_store_register): Renamed from cannot_store_register, |
| 2206 | made static. |
| 2207 | (the_low_target): New. |
| 2208 | * linux-s390-low.c (num_regs): Remove. |
| 2209 | (s390_num_regs): Define. |
| 2210 | (s390_regmap): Renamed from regmap, made static. |
| 2211 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2212 | made static. |
| 2213 | (s390_cannot_store_register): Renamed from cannot_store_register, |
| 2214 | made static. |
| 2215 | (the_low_target): New. |
| 2216 | * linux-sh-low.c (num_regs): Remove. |
| 2217 | (sh_num_regs): Define. |
| 2218 | (sh_regmap): Renamed from regmap, made static. |
| 2219 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 2220 | made static. |
| 2221 | (sh_cannot_store_register): Renamed from cannot_store_register, |
| 2222 | made static. |
| 2223 | (the_low_target): New. |
| 2224 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. |
| 2225 | (the_low_target): New. |
| 2226 | |
| 2227 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 2228 | |
| 2229 | * Makefile.in: Add stamp-h target. |
| 2230 | * configure.in: Create stamp-h. |
| 2231 | * configure: Regenerated. |
| 2232 | |
| 2233 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 2234 | |
| 2235 | * inferiors.c: New file. |
| 2236 | * target.c: New file. |
| 2237 | * target.h: New file. |
| 2238 | * Makefile.in: Add target.o and inferiors.o. Update |
| 2239 | dependencies. |
| 2240 | * linux-low.c (inferior_pid): New static variable, |
| 2241 | moved from server.c. |
| 2242 | (linux_create_inferior): Renamed from create_inferior. |
| 2243 | Call add_inferior. Return 0 on success instead of a PID. |
| 2244 | (linux_attach): Renamed from myattach. |
| 2245 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). |
| 2246 | (linux_thread_alive): Renamed from mythread_alive. |
| 2247 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the |
| 2248 | child dies. |
| 2249 | (linux_resume): Renamed from myresume. Add missing ``return 0''. |
| 2250 | (regsets_store_inferior_registers): Correct error message. |
| 2251 | Add missing ``return 0''. |
| 2252 | (linux_fetch_registers): Renamed from fetch_inferior_registers. |
| 2253 | (linux_store_registers): Renamed from store_inferior_registers. |
| 2254 | (linux_read_memory): Renamed from read_inferior_memory. |
| 2255 | (linux_write_memory): Renamed from write_inferior_memory. |
| 2256 | (linux_target_ops): New structure. |
| 2257 | (initialize_low): Call set_target_ops (). |
| 2258 | * remote-utils.c (unhexify): New function. |
| 2259 | (hexify): New function. |
| 2260 | (input_interrupt): Send signals to ``signal_pid''. |
| 2261 | * server.c (inferior_pid): Remove. |
| 2262 | (start_inferior): Update create_inferior call. |
| 2263 | (attach_inferior): Call add_inferior. |
| 2264 | (handle_query): New function. |
| 2265 | (main): Call handle_query for `q' packets. |
| 2266 | * server.h: Include "target.h". Remove obsolete prototypes. |
| 2267 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. |
| 2268 | |
| 2269 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 2270 | |
| 2271 | * Makefile.in: Add WARN_CFLAGS. Update configury |
| 2272 | dependencies. |
| 2273 | * configure.in: Check for <string.h> |
| 2274 | * configure: Regenerate. |
| 2275 | * config.in: Regenerate. |
| 2276 | * gdbreplay.c: Include needed system headers. |
| 2277 | (remote_open): Remove strchr prototype. |
| 2278 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. |
| 2279 | * regcache.c (supply_register): Change buf argument to const void *. |
| 2280 | (supply_register_by_name): Likewise. |
| 2281 | (collect_register): Change buf argument to void *. |
| 2282 | (collect_register_by_name): Likewise. |
| 2283 | * regcache.h: Add missing prototypes. |
| 2284 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. |
| 2285 | * server.c (handle_query): New function. |
| 2286 | (attached): New static variable, moved out of main. |
| 2287 | (main): Quiet longjmp clobber warnings. |
| 2288 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. |
| 2289 | * utils.c (error): Remove NORETURN. |
| 2290 | (fatal): Likewise. |