| 1 | 2009-12-28 Doug Evans <dje@google.com> |
| 2 | |
| 3 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, |
| 4 | elf/external.h. Include <elf.h> instead but only if necessary. |
| 5 | |
| 6 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
| 7 | |
| 8 | * linux-low.c (linux_remove_process): Remove `detaching' |
| 9 | parameter. Don't release/detach from thread_db here. |
| 10 | (linux_kill): Release/detach from thread_db here, ... |
| 11 | (linux_detach): ... and here, before actually detaching. |
| 12 | (linux_wait_1): ... and here, when a process exits. |
| 13 | * thread-db.c (any_thread_of): New. |
| 14 | (thread_db_free): Switch the current inferior to a thread of the |
| 15 | passed in process. |
| 16 | |
| 17 | 2009-12-21 Doug Evans <dje@google.com> |
| 18 | |
| 19 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
| 20 | |
| 21 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
| 22 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc |
| 23 | warning ifndef __NR_tkill. Move setting of errno there too. |
| 24 | Delete unnecessary resetting of errno after syscall. |
| 25 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. |
| 26 | |
| 27 | * configure.ac: Check for dladdr. |
| 28 | * config.in: Regenerate. |
| 29 | * configure: Regenerate. |
| 30 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. |
| 31 | (try_thread_db_load): Update. |
| 32 | |
| 33 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
| 34 | |
| 35 | 2009-12-18 Doug Evans <dje@google.com> |
| 36 | |
| 37 | * event-loop.c: Include unistd.h if it exists. |
| 38 | |
| 39 | * linux-low.c (my_waitpid): Move definition away from being in |
| 40 | between linux_tracefork_child/linux_test_for_tracefork. |
| 41 | |
| 42 | * gdb_proc_service.h (psaddr_t): Fix type. |
| 43 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix |
| 44 | signature to match glibc. |
| 45 | |
| 46 | 2009-12-16 Doug Evans <dje@google.com> |
| 47 | |
| 48 | * linux-low.c (linux_read_memory): Fix argument to read. |
| 49 | |
| 50 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 51 | |
| 52 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT |
| 53 | events, don't leave current_inferior pointing at null. |
| 54 | |
| 55 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 56 | |
| 57 | * win32-low.c (LOG): Delete. |
| 58 | (OUTMSG): Output to stderr. |
| 59 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of |
| 60 | on compile time LOG macro. |
| 61 | (win32_wait): Fix debug output. |
| 62 | |
| 63 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 64 | |
| 65 | * win32-low.c (win32_add_one_solib): If the dll name is |
| 66 | "ntdll.dll", prepend the system directory to the dll path. |
| 67 | |
| 68 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 69 | |
| 70 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. |
| 71 | |
| 72 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
| 73 | Vladimir Prus <vladimir@codesourcery.com> |
| 74 | |
| 75 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. |
| 76 | * configure.ac: Check for __mcoldfire__ and set |
| 77 | gdb_cv_m68k_is_coldfire. |
| 78 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between |
| 79 | reg-cf.o and reg-m68k.o. |
| 80 | * configure: Regenerated. |
| 81 | |
| 82 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
| 83 | |
| 84 | * linux-low.c (linux_remove_process): Add `detaching' parameter. |
| 85 | Pass it to thread_db_free. |
| 86 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the |
| 87 | proper `detaching' argument to linux_remove_process. |
| 88 | * linux-low.h (thread_db_free): Add `detaching' parameter. |
| 89 | * thread-db.c (thread_db_init): Pass false as `detaching' argument |
| 90 | to thread_db_free. |
| 91 | (thread_db_free): Add `detaching' parameter. Only |
| 92 | call td_ta_clear_event if detaching from process. |
| 93 | |
| 94 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 95 | |
| 96 | * thread-db.c (thread_db_free): Fix typo. |
| 97 | |
| 98 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 99 | |
| 100 | PR gdb/10838 |
| 101 | * thread-db.c (thread_db_free): Call td_ta_clear_event. |
| 102 | |
| 103 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
| 104 | |
| 105 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 |
| 106 | with an i686 compiler. |
| 107 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if |
| 108 | needed. |
| 109 | * configure: Rebuilt. |
| 110 | |
| 111 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
| 112 | |
| 113 | PR gdb/10783 |
| 114 | |
| 115 | * server.c (handle_search_memory_1): Correct read_addr initialization |
| 116 | in loop for searching subsequent chunks. |
| 117 | |
| 118 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 119 | |
| 120 | * configure.ac: New --with-libthread-db option. |
| 121 | * thread-db.c: Allow direct dependence on libthread_db. |
| 122 | (thread_db_free): Adjust. |
| 123 | * config.in: Regenerate. |
| 124 | * configure: Likewise. |
| 125 | |
| 126 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 127 | |
| 128 | PR gdb/10757 |
| 129 | * thread-db.c (attach_thread): New function. |
| 130 | (maybe_attach_thread): Return success/failure. |
| 131 | (find_new_threads_callback): Adjust. |
| 132 | (thread_db_find_new_threads): Loop until no new threads. |
| 133 | |
| 134 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
| 135 | |
| 136 | * proc-service.c (ps_lgetregs): Formatting. |
| 137 | |
| 138 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 139 | |
| 140 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. |
| 141 | * configure.ac: Adjust. |
| 142 | * linux-low.h (struct process_info_private): Move members to struct |
| 143 | thread_db. |
| 144 | (thread_db_free, thread_db_handle_monitor_command): New prototype. |
| 145 | * linux-low.c (linux_remove_process): Adjust. |
| 146 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. |
| 147 | * server.c (handle_query): Move code ... |
| 148 | (handle_monitor_command): ... here. New function. |
| 149 | * target.h (struct target_ops): New member. |
| 150 | * thread-db.c (struct thread_db): New. |
| 151 | (libthread_db_search_path): New variable. |
| 152 | (thread_db_create_event, thread_db_enable_reporting) |
| 153 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) |
| 154 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. |
| 155 | (try_thread_db_load_1, dladdr_to_soname): New functions. |
| 156 | (try_thread_db_load, thread_db_load_search): New functions. |
| 157 | (thread_db_init): Search for libthread_db. |
| 158 | (thread_db_free): New function. |
| 159 | (thread_db_handle_monitor_command): Likewise. |
| 160 | * config.in: Regenerate. |
| 161 | * configure: Regenerate. |
| 162 | |
| 163 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 164 | |
| 165 | * spu-low.c (spu_kill): Wait for inferior to terminate. |
| 166 | Call clear_inferiors. |
| 167 | (spu_detach): Call clear_inferiors. |
| 168 | |
| 169 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 170 | |
| 171 | * aclocal.m4: Regenerate. |
| 172 | * config.in: Likewise. |
| 173 | * configure: Likewise. |
| 174 | |
| 175 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 176 | |
| 177 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. |
| 178 | (parse_spufs_run): New function. |
| 179 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. |
| 180 | (ppc_breakpoint_at): Handle SPU breakpoints. |
| 181 | |
| 182 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 183 | |
| 184 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. |
| 185 | (SPUFS_MAGIC): Define. |
| 186 | (spu_enumerate_spu_ids): New function. |
| 187 | (linux_qxfer_spu): New function. |
| 188 | (linux_target_ops): Install linux_qxfer_spu. |
| 189 | |
| 190 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 191 | |
| 192 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o |
| 193 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml |
| 194 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. |
| 195 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. |
| 196 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. |
| 197 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. |
| 198 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. |
| 199 | (init_registers_powerpc_cell32l): Add prototype. |
| 200 | (init_registers_powerpc_cell64l): Likewise. |
| 201 | (ppc_arch_setup): Detect Cell/B.E. architecture. |
| 202 | |
| 203 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 204 | |
| 205 | * Makefile.in (datarootdir): New variable. |
| 206 | |
| 207 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 208 | |
| 209 | * linux-low.c (linux_write_memory): Update debugging output. |
| 210 | * Makefile.in (clean): Add new descriptions. |
| 211 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) |
| 212 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. |
| 213 | * configure.srv: Add new files for arm*-*-linux*. |
| 214 | * linux-arm-low.c: Add new declarations. |
| 215 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. |
| 216 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) |
| 217 | (HWCAP_VFPv3D16): New. |
| 218 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT |
| 219 | instead of __IWMMXT__. |
| 220 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) |
| 221 | (arm_arch_setup): New. |
| 222 | (target_regsets): Remove #ifdef. Add VFP regset. |
| 223 | (the_low_target): Use arm_arch_setup. |
| 224 | |
| 225 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 226 | |
| 227 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip |
| 228 | the main thread again. |
| 229 | |
| 230 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
| 231 | |
| 232 | Adding Neutrino gdbserver. |
| 233 | * configure: Regenerated. |
| 234 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. |
| 235 | * configure.srv (i[34567]86-*-nto*): New target. |
| 236 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. |
| 237 | * remote-utils.c [__QNX__]: Include sys/iomgr.h |
| 238 | (nto_comctrl) [__QNX__]: New function. |
| 239 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. |
| 240 | |
| 241 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
| 242 | |
| 243 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to |
| 244 | srv_tgtobj. |
| 245 | |
| 246 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
| 247 | Pedro Alves <pedro@codesourcery.com> |
| 248 | |
| 249 | * win32-i386-low.c (i386_get_thread_context): Handle systems that |
| 250 | don't support CONTEXT_EXTENDED_REGISTERS. |
| 251 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. |
| 252 | (the_low_target): Install them. |
| 253 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent |
| 254 | failing with ERROR_PIPE_NOT_CONNECTED. |
| 255 | |
| 256 | 2009-06-30 Doug Evans <dje@google.com> |
| 257 | Pierre Muller <muller@ics.u-strasbg.fr> |
| 258 | |
| 259 | Add h/w watchpoint support to x86-linux, win32-i386. |
| 260 | * Makefile.in (SFILES): Add i386-low.c |
| 261 | (i386_low_h): Define. |
| 262 | (i386-low.o): Add dependencies. |
| 263 | (linux-x86-low.o): Add i386-low.h dependency. |
| 264 | (win32-i386-low.o): Ditto. |
| 265 | * i386-low.c: New file. |
| 266 | * i386-low.h: New file. |
| 267 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. |
| 268 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. |
| 269 | * linux-low.c (linux_add_process): Initialize arch_private. |
| 270 | (linux_remove_process): Free arch_private. |
| 271 | (add_lwp): Initialize arch_private. |
| 272 | (delete_lwp): Free arch_private. |
| 273 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if |
| 274 | provided. |
| 275 | * linux-low.h (process_info_private): New member arch_private. |
| 276 | (lwp_info): New member arch_private. |
| 277 | (linux_target_ops): New members new_process, new_thread, |
| 278 | prepare_to_resume. |
| 279 | (ptid_of): New macro. |
| 280 | * linux-x86-low.c: Include stddef.h, i386-low.h. |
| 281 | (arch_process_info): New struct. |
| 282 | (arch_lwp_info): New struct. |
| 283 | (x86_linux_dr_get, x86_linux_dr_set): New functions. |
| 284 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. |
| 285 | (i386_dr_low_get_status): New function. |
| 286 | (x86_insert_point, x86_remove_point): New functions. |
| 287 | (x86_stopped_by_watchpoint): New function. |
| 288 | (x86_stopped_data_address): New function. |
| 289 | (x86_linux_new_process, x86_linux_new_thread): New functions. |
| 290 | (x86_linux_prepare_to_resume): New function. |
| 291 | (the_low_target): Add entries for insert_point, remove_point, |
| 292 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, |
| 293 | prepare_to_resume. |
| 294 | * server.c (debug_hw_points): New global. |
| 295 | (monitor_show_help): Document set debug-hw-points. |
| 296 | (handle_query): Process "set debug-hw-points". |
| 297 | * server.h (debug_hw_points): Declare. |
| 298 | (paddress): Declare. |
| 299 | * utils.c (NUMCELLS, CELLSIZE): New macros. |
| 300 | (get_sell, xsnprintf, paddress): New functions. |
| 301 | * win32-arm-low.c (the_low_target): Add entries for insert_point, |
| 302 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 303 | * win32-i386-low.c: Include i386-low.h. |
| 304 | (debug_reg_state): Replaces dr. |
| 305 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. |
| 306 | (i386_dr_low_get_status): New function. |
| 307 | (i386_insert_point, i386_remove_point): New functions. |
| 308 | (i386_stopped_by_watchpoint): New function. |
| 309 | (i386_stopped_data_address): New function. |
| 310 | (i386_initial_stuff): Update. |
| 311 | (get_thread_context,set_thread_context,i386_thread_added): Update. |
| 312 | (the_low_target): Add entries for insert_point, |
| 313 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 314 | * win32-low.c (win32_insert_watchpoint): New function. |
| 315 | (win32_remove_watchpoint): New function. |
| 316 | (win32_stopped_by_watchpoint): New function. |
| 317 | (win32_stopped_data_address): New function. |
| 318 | (win32_target_ops): Add entries for insert_watchpoint, |
| 319 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. |
| 320 | * win32-low.h (win32_target_ops): New members insert_point, |
| 321 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 322 | |
| 323 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
| 324 | |
| 325 | * server.c (process_serial_event): Re-return unsupported, not |
| 326 | error, if the type isn't recognized. Re-allow supporting only |
| 327 | insert or remove packets. Also call require_running for |
| 328 | breakpoints. Add missing break statement to default case. Tidy. |
| 329 | * target.h (struct target_ops): Rename insert_watchpoint to |
| 330 | insert_point, and remove_watchpoint to remove_point. |
| 331 | |
| 332 | * linux-low.h (struct linux_target_ops): Likewise. |
| 333 | * linux-low.c (linux_insert_watchpoint): Rename to ... |
| 334 | (linux_insert_point): ... this. Adjust. |
| 335 | (linux_remove_watchpoint): Rename to ... |
| 336 | (linux_remove_point): ... this. Adjust. |
| 337 | (linux_target_ops): Adjust. |
| 338 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... |
| 339 | (cris_insert_point): ... this. |
| 340 | (cris_remove_watchpoint): Rename to ... |
| 341 | (cris_remove_point): ... this. |
| 342 | (the_low_target): Adjust. |
| 343 | |
| 344 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
| 345 | |
| 346 | * server.c (handle_v_kill): Pass signal_pid to |
| 347 | kill_inferior if multi_process is zero. |
| 348 | |
| 349 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
| 350 | |
| 351 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. |
| 352 | * target.h (target_ops): Comment for *_watchpoint to make it clear |
| 353 | the functions can get types '0' and '1'. |
| 354 | |
| 355 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
| 356 | |
| 357 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. |
| 358 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. |
| 359 | * regcache.c (get_regcache): Likewise. |
| 360 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. |
| 361 | * win32-low.c (child_fetch_inferior_registers): Remove check for |
| 362 | regno 0. |
| 363 | |
| 364 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
| 365 | Pedro Alves <pedro@codesourcery.com> |
| 366 | |
| 367 | * target.h (struct target_ops) <supports_multi_process>: New |
| 368 | callback. |
| 369 | (target_supports_multi_process): New. |
| 370 | * server.c (handle_query): Even if GDB reports support, only |
| 371 | enable multi-process if the target also supports it. Report |
| 372 | multi-process support only if the target backend supports it. |
| 373 | * linux-low.c (linux_supports_multi_process): New function. |
| 374 | (linux_target_ops): Install it as target_supports_multi_process |
| 375 | callback. |
| 376 | |
| 377 | 2009-05-24 Doug Evans <dje@google.com> |
| 378 | |
| 379 | Global renaming of find_thread_pid to find_thread_ptid. |
| 380 | * server.h (find_thread_ptid): Renamed from find_thread_pid. |
| 381 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. |
| 382 | All callers updated. |
| 383 | |
| 384 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
| 385 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) |
| 386 | directly. |
| 387 | |
| 388 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
| 389 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. |
| 390 | (linux_resume_one_lwp): Ditto. |
| 391 | |
| 392 | 2009-05-23 Doug Evans <dje@google.com> |
| 393 | |
| 394 | * linux-low.c (linux_resume_one_lwp): Change type of first arg |
| 395 | from struct inferior_list_entry * to struct lwp_info *. |
| 396 | All callers updated. |
| 397 | |
| 398 | 2009-05-13 Doug Evans <dje@google.com> |
| 399 | |
| 400 | * linux-x86-low.c: Don't include assert.h. |
| 401 | (x86_siginfo_fixup): Use fatal, not assert. |
| 402 | (x86_arch_setup): Fix comment. |
| 403 | |
| 404 | 2009-05-12 Doug Evans <dje@google.com> |
| 405 | |
| 406 | Biarch support for i386/amd64 gdbserver. |
| 407 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. |
| 408 | Add linux-x86-low.c. |
| 409 | (linux-i386-low.o, linux-x86-64-low.o): Delete. |
| 410 | (linux-x86-low.o): Add. |
| 411 | * linux-x86-64-low.c: Delete. |
| 412 | * linux-i386-low.c: Delete. |
| 413 | * linux-x86-low.c: New file. |
| 414 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with |
| 415 | linux-x86-low.o. |
| 416 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with |
| 417 | linux-x86-low.o. |
| 418 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. |
| 419 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. |
| 420 | (linux_child_pid_to_exec_file): New function. |
| 421 | (elf_64_header_p, elf_64_file_p): New functions. |
| 422 | (siginfo_fixup): New function. |
| 423 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to |
| 424 | give target a chance to convert layout. |
| 425 | * linux-low.h (linux_target_ops): New member siginfo_fixup. |
| 426 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. |
| 427 | |
| 428 | 2009-05-07 Doug Evans <dje@google.com> |
| 429 | |
| 430 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. |
| 431 | (regsets_store_inferior_registers): Ditto. |
| 432 | |
| 433 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
| 434 | |
| 435 | PR server/10048 |
| 436 | |
| 437 | * linux-low.c (must_set_ptrace_flags): Delete. |
| 438 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead |
| 439 | of the global. |
| 440 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set |
| 441 | `lwp->must_set_ptrace_flags' instead. |
| 442 | (linux_wait_for_event_1): Set ptrace options here. |
| 443 | (linux_wait_1): ... not here. |
| 444 | |
| 445 | 2009-04-30 Doug Evans <dje@google.com> |
| 446 | |
| 447 | * inferiors.c (started_inferior_callback): New function. |
| 448 | (attached_inferior_callback): New function. |
| 449 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. |
| 450 | * server.c (print_started_pid, print_attached_pid): New functions. |
| 451 | (detach_or_kill_for_exit): New function. |
| 452 | (main): Call it instead of for_each_inferior (kill_inferior_callback). |
| 453 | * server.h (have_started_inferiors_p): Declare. |
| 454 | (have_attached_inferiors_p): Declare. |
| 455 | |
| 456 | * inferiors.c (remove_process): Fix memory leak, free process. |
| 457 | * linux-low.c (linux_remove_process): New function. |
| 458 | (linux_kill): Call it instead of remove_process. |
| 459 | (linux_detach, linux_wait_1): Ditto. |
| 460 | |
| 461 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
| 462 | |
| 463 | * configure.srv: Add x86 Windows CE target. |
| 464 | |
| 465 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 466 | |
| 467 | * inferiors.c (get_thread_process): Make global. |
| 468 | * server.h (get_thread_process): Add prototype. |
| 469 | * thread-db.c (find_one_thread): Use get_thread_process |
| 470 | instead of current_process. |
| 471 | (thread_db_get_tls_address): Do not crash if called when |
| 472 | thread layer is not yet initialized. |
| 473 | |
| 474 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 475 | |
| 476 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. |
| 477 | * spu-low.c (current_tid): Rename to ... |
| 478 | (current_ptid): ... this. |
| 479 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, |
| 480 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use |
| 481 | ptid_get_lwp (current_ptid) instead of current_tid. |
| 482 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument |
| 483 | instead of current_tid. Use find_process_pid to verify pid |
| 484 | argument is valid. Pass proper argument to remove_process. |
| 485 | (spu_thread_alive): Compare current_ptid instead of current_tid. |
| 486 | (spu_resume): Likewise. |
| 487 | |
| 488 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
| 489 | |
| 490 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' |
| 491 | variable. |
| 492 | |
| 493 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 494 | |
| 495 | Implement the multiprocess extensions, and add linux multiprocess |
| 496 | support. |
| 497 | |
| 498 | * server.h (ULONGEST): Declare. |
| 499 | (struct ptid, ptid_t): New. |
| 500 | (minus_one_ptid, null_ptid): Declare. |
| 501 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) |
| 502 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. |
| 503 | (struct inferior_list_entry): Change `id' type from unsigned from |
| 504 | to ptid_t. |
| 505 | (struct sym_cache, struct breakpoint, struct |
| 506 | process_info_private): Forward declare. |
| 507 | (struct process_info): Declare. |
| 508 | (current_process): Declare. |
| 509 | (all_processes): Declare. |
| 510 | (initialize_inferiors): Declare. |
| 511 | (add_thread): Adjust to use ptid_t. |
| 512 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. |
| 513 | (add_process, remove_process, find_thread_pid): Declare. |
| 514 | (find_inferior_id): Adjust to use ptid_t. |
| 515 | (cont_thread, general_thread, step_thread): Change type to ptid_t. |
| 516 | (multi_process): Declare. |
| 517 | (push_event): Adjust to use ptid_t. |
| 518 | (read_ptid, write_ptid): Declare. |
| 519 | (prepare_resume_reply): Adjust to use ptid_t. |
| 520 | (clear_symbol_cache): Declare. |
| 521 | * inferiors.c (all_processes): New. |
| 522 | (null_ptid, minus_one_ptid): New. |
| 523 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) |
| 524 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. |
| 525 | (add_thread): Change unsigned long to ptid. Remove gdb_id |
| 526 | parameter. Adjust. |
| 527 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. |
| 528 | (gdb_id_to_thread): Rename to ... |
| 529 | (find_thread_pid): ... this. Change unsigned long to ptid. |
| 530 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. |
| 531 | (loaded_dll, pull_pid_from_list): Adjust. |
| 532 | (add_process, remove_process, find_process_pid) |
| 533 | (get_thread_process, current_process, initialize_inferiors): New. |
| 534 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. |
| 535 | (struct target_waitstatus) <related_pid>: Ditto. |
| 536 | (struct target_ops) <kill, detach>: Add `pid' argument. Change |
| 537 | return type to int. |
| 538 | (struct target_ops) <join>: Add `pid' argument. |
| 539 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. |
| 540 | (struct target_ops) <wait>: Add `ptid' field. Change return type |
| 541 | to ptid. |
| 542 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. |
| 543 | (mywait): Add `ptid' argument. Change return type to ptid_t. |
| 544 | (target_pid_to_str): Declare. |
| 545 | * target.c (set_desired_inferior): Adjust to use ptids. |
| 546 | (mywait): Add new `ptid' argument. Adjust. |
| 547 | (target_pid_to_str): New. |
| 548 | * mem-break.h (free_all_breakpoints): Declare. |
| 549 | * mem-break.c (breakpoints): Delelete. |
| 550 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) |
| 551 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust |
| 552 | to use per-process breakpoint list. |
| 553 | (free_all_breakpoints): New. |
| 554 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. |
| 555 | (symbol_cache, all_symbols_looked_up): Delete. |
| 556 | (hexchars): New. |
| 557 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, |
| 558 | read_ptid): New. |
| 559 | (prepare_resume_reply): Change ptid argument's type from unsigned |
| 560 | long to ptid_t. Adjust. Implement W;process and X;process. |
| 561 | (free_sym_cache, clear_symbol_cache): New. |
| 562 | (look_up_one_symbol): Adjust to per-process symbol cache. * |
| 563 | * server.c (cont_thread, general_thread, step_thread): Change type |
| 564 | to ptid_t. |
| 565 | (attached): Delete. |
| 566 | (multi_process): New. |
| 567 | (last_ptid): Change type to ptid_t. |
| 568 | (struct vstop_notif) <ptid>: Change type to ptid_t. |
| 569 | (queue_stop_reply, push_event): Change `ptid' argument's type to |
| 570 | ptid_t. |
| 571 | (discard_queued_stop_replies): Add `pid' argument. |
| 572 | (start_inferior): Adjust to use ptids. Adjust to mywait interface |
| 573 | changes. Don't reference the `attached' global. |
| 574 | (attach_inferior): Adjust to mywait interface changes. |
| 575 | (handle_query): Adjust to use ptids. Parse GDB's qSupported |
| 576 | features. Handle and report "multiprocess+". Handle |
| 577 | "qAttached:PID". |
| 578 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface |
| 579 | changes. |
| 580 | (handle_v_kill): New. |
| 581 | (handle_v_stopped): Adjust to use target_pid_to_str. |
| 582 | (handle_v_requests): Allow multiple attaches and runs when |
| 583 | multiprocess extensions are in effect. Handle "vKill". |
| 584 | (myresume): Adjust to use ptids. |
| 585 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. |
| 586 | (handle_status): Adjust to discard_queued_stop_replies interface |
| 587 | change. |
| 588 | (first_thread_of, kill_inferior_callback) |
| 589 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. |
| 590 | (main): Call initialize_inferiors. Adjust to use ptids, killing |
| 591 | and detaching from all inferiors. Handle multiprocess packet |
| 592 | variants. |
| 593 | * linux-low.h: Include gdb_proc_service.h. |
| 594 | (struct process_info_private): New. |
| 595 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. |
| 596 | <lwpid_of>: Use ptid_get_lwp. |
| 597 | (get_lwp_thread): Adjust. |
| 598 | (struct lwp_info): Add `dead' member. |
| 599 | (find_lwp_pid): Declare. |
| 600 | * linux-low.c (thread_db_active): Delete. |
| 601 | (new_inferior): Adjust comment. |
| 602 | (inferior_pid): Delete. |
| 603 | (linux_add_process): New. |
| 604 | (handle_extended_wait): Adjust. |
| 605 | (add_lwp): Change unsigned long to ptid. |
| 606 | (linux_create_inferior): Add process to processes table. Adjust |
| 607 | to use ptids. Don't set new_inferior here. |
| 608 | (linux_attach_lwp): Rename to ... |
| 609 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle |
| 610 | it. Adjust to use ptids. |
| 611 | (linux_attach_lwp): New. |
| 612 | (linux_attach): Add process to processes table. Don't set |
| 613 | new_inferior here. |
| 614 | (struct counter): New. |
| 615 | (second_thread_of_pid_p, last_thread_of_process_p): New. |
| 616 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to |
| 617 | multiple processes. |
| 618 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple |
| 619 | processes. Remove process from process table. |
| 620 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust |
| 621 | to multiple processes. |
| 622 | (any_thread_of): New. |
| 623 | (linux_detach): Add `pid' argument, and handle it. Remove process |
| 624 | from processes table. |
| 625 | (linux_join): Add `pid' argument. Handle it. |
| 626 | (linux_thread_alive): Change unsighed long argument to ptid_t. |
| 627 | Consider dead lwps as not being alive. |
| 628 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out |
| 629 | threads we're not interested in. |
| 630 | (same_lwp, find_lwp_pid): New. |
| 631 | (linux_wait_for_lwp): Change `pid' argument's type from int to |
| 632 | ptid_t. Adjust. |
| 633 | (linux_wait_for_event): Rename to ... |
| 634 | (linux_wait_for_event_1): ... this. Change `pid' argument's type |
| 635 | from int to ptid_t. Adjust. |
| 636 | (linux_wait_for_event): New. |
| 637 | (linux_wait_1): Add `ptid' argument. Change return type to |
| 638 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes |
| 639 | that exit from the process table. |
| 640 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. |
| 641 | Adjust. |
| 642 | (mark_lwp_dead): New. |
| 643 | (wait_for_sigstop): Adjust to use ptids. If a process exits while |
| 644 | stopping all threads, mark its main lwp as dead. |
| 645 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use |
| 646 | ptids. |
| 647 | (fetch_register, usr_store_inferior_registers) |
| 648 | (regsets_fetch_inferior_registers) |
| 649 | (regsets_store_inferior_registers, linux_read_memory) |
| 650 | (linux_write_memory): Inline `inferior_pid'. |
| 651 | (linux_look_up_symbols): Adjust to use per-process |
| 652 | `thread_db_active'. |
| 653 | (linux_request_interrupt): Adjust to use ptids. |
| 654 | (linux_read_auxv): Inline `inferior_pid'. |
| 655 | (initialize_low): Don't reference thread_db_active. |
| 656 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. |
| 657 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. |
| 658 | (ps_getpid): Return the pid of the current inferior. |
| 659 | * thread-db.c (proc_handle, thread_agent): Delete. |
| 660 | (thread_db_create_event, thread_db_enable_reporting): Adjust to |
| 661 | per-process data. |
| 662 | (find_one_thread): Change argument type to ptid_t. Adjust to |
| 663 | per-process data. |
| 664 | (maybe_attach_thread): Adjust to per-process data and ptids. |
| 665 | (thread_db_find_new_threads): Ditto. |
| 666 | (thread_db_init): Ditto. |
| 667 | * spu-low.c (spu_create_inferior, spu_attach): Add process to |
| 668 | processes table. Adjust to use ptids. |
| 669 | (spu_kill, spu_detach): Adjust interface. Remove process from |
| 670 | processes table. |
| 671 | (spu_join, spu_thread_alive): Adjust interface. |
| 672 | (spu_wait): Adjust interface. Remove process from processes |
| 673 | table. Adjust to use ptids. |
| 674 | * win32-low.c (current_inferior_tid): Delete. |
| 675 | (current_inferior_ptid): New. |
| 676 | (debug_event_ptid): New. |
| 677 | (thread_rec): Take a ptid. Adjust. |
| 678 | (child_add_thread): Add `pid' argument. Adjust to use ptids. |
| 679 | (child_delete_thread): Ditto. |
| 680 | (do_initial_child_stuff): Add `attached' argument. Add process to |
| 681 | processes table. |
| 682 | (child_fetch_inferior_registers, child_store_inferior_registers): |
| 683 | Adjust. |
| 684 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. |
| 685 | (win32_attach): Pass 1 to do_initial_child_stuff. |
| 686 | (win32_kill): Adjust interface. Remove process from processes |
| 687 | table. |
| 688 | (win32_detach): Ditto. |
| 689 | (win32_join): Adjust interface. |
| 690 | (win32_thread_alive): Take a ptid. |
| 691 | (win32_resume): Adjust to use ptids. |
| 692 | (get_child_debug_event): Ditto. |
| 693 | (win32_wait): Adjust interface. Remove exiting process from |
| 694 | processes table. |
| 695 | |
| 696 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 697 | |
| 698 | Non-stop mode support. |
| 699 | |
| 700 | * server.h (non_stop): Declare. |
| 701 | (gdb_client_data, handler_func): Declare. |
| 702 | (delete_file_handler, add_file_handler, start_event_loop): |
| 703 | Declare. |
| 704 | (handle_serial_event, handle_target_event, push_event) |
| 705 | (putpkt_notif): Declare. |
| 706 | * target.h (enum resume_kind): New. |
| 707 | (struct thread_resume): Replace `step' field by `kind' field. |
| 708 | (TARGET_WNOHANG): Define. |
| 709 | (struct target_ops) <wait>: Add `options' argument. |
| 710 | <supports_non_stop, async, start_non_stop>: New fields. |
| 711 | (target_supports_non_stop, target_async): New. |
| 712 | (start_non_stop): Declare. |
| 713 | (mywait): Add `options' argument. |
| 714 | * target.c (mywait): Add `options' argument. Print child exit |
| 715 | notifications here. |
| 716 | (start_non_stop): New. |
| 717 | * server.c (non_stop, own_buf, mem_buf): New globals. |
| 718 | (struct vstop_notif): New. |
| 719 | (notif_queue): New global. |
| 720 | (queue_stop_reply, push_event, discard_queued_stop_replies) |
| 721 | (send_next_stop_reply): New. |
| 722 | (start_inferior): Adjust to use resume_kind. Adjust to mywait |
| 723 | interface changes. |
| 724 | (attach_inferior): In non-stop mode, don't wait for the target |
| 725 | here. |
| 726 | (handle_general_set): Handle QNonStop. |
| 727 | (handle_query): When handling qC, return the current general |
| 728 | thread, instead of the first thread of the list. |
| 729 | (handle_query): If the backend supports non-stop mode, include |
| 730 | QNonStop+ in the qSupported query response. |
| 731 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop |
| 732 | and non-stop mode. |
| 733 | (handle_v_attach, handle_v_run): Handle non-stop mode. |
| 734 | (handle_v_stopped): New. |
| 735 | (handle_v_requests): Report support for vCont;t. Handle vStopped. |
| 736 | (myresume): Adjust to use resume_kind. Handle non-stop. |
| 737 | (queue_stop_reply_callback): New. |
| 738 | (handle_status): Handle non-stop mode. |
| 739 | (main): Clear non_stop flag on reconnection. Use the event-loop. |
| 740 | Refactor serial protocol handling from here ... |
| 741 | (process_serial_event): ... to this new function. When GDB |
| 742 | selects any thread, select one here. In non-stop mode, wait until |
| 743 | GDB acks all pending events before exiting. |
| 744 | (handle_serial_event, handle_target_event): New. |
| 745 | * remote-utils.c (remote_open): Install remote_desc in the event |
| 746 | loop. |
| 747 | (remote_close): Remove remote_desc from the event loop. |
| 748 | (putpkt_binary): Rename to... |
| 749 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. |
| 750 | (putpkt_binary): New as wrapper around putpkt_binary_1. |
| 751 | (putpkt_notif): New. |
| 752 | (prepare_resume_reply): In non-stop mode, don't change the |
| 753 | general_thread. |
| 754 | * event-loop.c: New. |
| 755 | * Makefile.in (OBJ): Add event-loop.o. |
| 756 | (event-loop.o): New rule. |
| 757 | |
| 758 | * linux-low.h (pid_of): Moved here. |
| 759 | (lwpid_of): New. |
| 760 | (get_lwp_thread): Use lwpid_of. |
| 761 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. |
| 762 | * linux-low.c (pid_of): Delete. |
| 763 | (inferior_pid): Use lwpid_of. |
| 764 | (linux_event_pipe): New. |
| 765 | (target_is_async_p): New. |
| 766 | (delete_lwp): New. |
| 767 | (handle_extended_wait): Use lwpid_of. |
| 768 | (add_lwp): Don't set lwpid field. |
| 769 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. |
| 770 | (linux_kill_one_lwp): If killing a running lwp, stop it first. |
| 771 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. |
| 772 | (linux_detach_one_lwp): If detaching from a running lwp, stop it |
| 773 | first. Adjust to linux_wait_for_event interface changes. Use |
| 774 | lwpid_of. |
| 775 | (linux_detach): Don't delete the main lwp here. |
| 776 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. |
| 777 | (status_pending_p): Don't consider explicitly suspended lwps. |
| 778 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info |
| 779 | pointer. Add OPTIONS argument. Change return type to int. Use |
| 780 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. |
| 781 | (linux_wait_for_event): Take an integer pid instead of a lwp_info |
| 782 | pointer. Add status pointer argument. Return a pid instead of a |
| 783 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface |
| 784 | changes. In non-stop mode, don't switch to a random thread. |
| 785 | (linux_wait): Rename to... |
| 786 | (linux_wait_1): ... this. Add target_options argument, and handle |
| 787 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, |
| 788 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge |
| 789 | clean exit and signal exit code. Don't stop all threads in |
| 790 | non-stop mode. In all-stop mode, only stop all threads when |
| 791 | reporting a stop to GDB. Handle explicit thread stop requests. |
| 792 | (async_file_flush, async_file_mark): New. |
| 793 | (linux_wait): New. |
| 794 | (send_sigstop): Use lwpid_of. |
| 795 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event |
| 796 | interface changes. In non-stop mode, don't switch to a random |
| 797 | thread. |
| 798 | (linux_resume_one_lwp): Use lwpid_of. |
| 799 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... |
| 800 | (linux_resume_one_thread): ... this. Handle resume_stop. In |
| 801 | non-stop mode, don't look for pending flag in all threads. |
| 802 | (resume_status_pending_p): Don't consider explicitly suspended |
| 803 | threads. |
| 804 | (my_waitpid): Reimplement. Emulate __WALL. |
| 805 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): |
| 806 | Use lwpid_of. |
| 807 | (sigchld_handler, linux_supports_non_stop, linux_async) |
| 808 | (linux_start_non_stop): New. |
| 809 | (linux_target_ops): Register linux_supports_non_stop, linux_async |
| 810 | and linux_start_non_stop. |
| 811 | (initialize_low): Install SIGCHLD handler. |
| 812 | * thread-db.c (thread_db_create_event, find_one_thread) |
| 813 | (thread_db_get_tls_address): Use lwpid_of. |
| 814 | * win32-low.c (win32_detach): Adjust to use resume_kind. |
| 815 | (win32_wait): Add `options' argument. |
| 816 | * spu-low.c (spu_resume): Adjust to use resume_kind. |
| 817 | (spu_wait): Add `options' argument. |
| 818 | |
| 819 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 820 | |
| 821 | Decouple target code from remote protocol. |
| 822 | |
| 823 | * target.h (enum target_waitkind): New. |
| 824 | (struct target_waitstatus): New. |
| 825 | (struct target_ops) <wait>: Return an unsigned long. Take a |
| 826 | target_waitstatus pointer instead of a char pointer. |
| 827 | (mywait): Likewise. |
| 828 | * target.c (mywait): Change prototype to return an unsigned long. |
| 829 | Take a target_waitstatus pointer instead of a char pointer. Adjust. |
| 830 | * server.h (thread_from_wait, old_thread_from_wait): Delete |
| 831 | declarations. |
| 832 | (prepare_resume_reply): Change prototype to take a |
| 833 | target_waitstatus. |
| 834 | * server.c (thread_from_wait, old_thread_from_wait): Delete. |
| 835 | (last_status, last_ptid): New. |
| 836 | (start_inferior): Remove "statusptr" argument. Adjust. Return a |
| 837 | pid instead of a signal. |
| 838 | (attach_inferior): Remove "status" and "signal" parameters. |
| 839 | Adjust. |
| 840 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, |
| 841 | not as an address. |
| 842 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) |
| 843 | (handle_v_requests, myresume): Remove "status" and "signal" |
| 844 | parameters. Adjust. |
| 845 | (handle_status): New. |
| 846 | (main): Delete local `status'. Adjust. |
| 847 | * remote-utils.c: Include target.h. |
| 848 | (prepare_resume_reply): Change prototype to take a |
| 849 | target_waitstatus. Adjust. |
| 850 | |
| 851 | * linux-low.c (linux_wait): Adjust to new target_ops->wait |
| 852 | interface. |
| 853 | * spu-low.c (spu_wait): Adjust. |
| 854 | * win32-low.c (enum target_waitkind, struct target_waitstatus): |
| 855 | Delete. |
| 856 | (win32_wait): Adjust. |
| 857 | |
| 858 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 859 | |
| 860 | * target.h (struct thread_resume): Delete leave_stopped member. |
| 861 | (struct target_ops): Add a `n' argument to the `resume' callback. |
| 862 | * server.c (start_inferior): Adjust. |
| 863 | (handle_v_cont, myresume): Adjust. |
| 864 | * linux-low.c (check_removed_breakpoint): Adjust to resume |
| 865 | interface change, and to removed leave_stopped field. |
| 866 | (resume_ptr): Delete. |
| 867 | (struct thread_resume_array): New. |
| 868 | (linux_set_resume_request): Add new `arg' parameter. Adjust to |
| 869 | resume interface change. |
| 870 | (linux_continue_one_thread, linux_queue_one_thread) |
| 871 | (resume_status_pending_p): Check if the resume field is NULL |
| 872 | instead of checking the leave_stopped member. |
| 873 | (linux_resume): Adjust to the target resume interface change. |
| 874 | * spu-low.c (spu_resume): Adjust to the target resume interface |
| 875 | change. |
| 876 | * win32-low.c (win32_detach, win32_resume): Ditto. |
| 877 | |
| 878 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 879 | |
| 880 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' |
| 881 | flag. |
| 882 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP |
| 883 | pending. |
| 884 | (linux_continue_one_thread): Only preserve the stepping flag if |
| 885 | there's a pending breakpoint. |
| 886 | |
| 887 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
| 888 | |
| 889 | * server.c (main): After the inferior having exited, call |
| 890 | remote_close before exiting gdbserver. |
| 891 | |
| 892 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 893 | |
| 894 | Fix size of FPSCR in Power 7 processors. |
| 895 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. |
| 896 | (PPC_FEATURE_HAS_DFP): New #define. |
| 897 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on |
| 898 | size of the FPSCR. |
| 899 | |
| 900 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
| 901 | |
| 902 | * server.c (handle_query) Whitespace and formatting. |
| 903 | |
| 904 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 905 | |
| 906 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, |
| 907 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, |
| 908 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, |
| 909 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, |
| 910 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, |
| 911 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, |
| 912 | Makefile.in, configure.ac: Fix whitespace throughout. |
| 913 | * configure: Regenerate. |
| 914 | |
| 915 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 916 | |
| 917 | * inferiors.c (find_inferior): Make it safe for the callback |
| 918 | function to delete the currently iterated inferior. |
| 919 | |
| 920 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 921 | |
| 922 | * Makefile.in (linuw_low_h): Move higher. |
| 923 | (thread-db.o): Depend on $(linux_low_h). |
| 924 | |
| 925 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
| 926 | |
| 927 | Rename "process" to "lwp" throughout. |
| 928 | |
| 929 | * linux-low.c (all_processes): Rename to... |
| 930 | (all_lwps): ... this. |
| 931 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. |
| 932 | (add_process): Rename to ... |
| 933 | (add_lwp): ... this. Adjust. |
| 934 | (linux_create_inferior): Adjust. |
| 935 | (linux_attach_lwp): Adjust. |
| 936 | (linux_attach): Adjust. |
| 937 | (linux_kill_one_process): Rename to ... |
| 938 | (linux_kill_one_lwp): ... this. Adjust. |
| 939 | (linux_kill): Adjust. |
| 940 | (linux_detach_one_process): Rename to ... |
| 941 | (linux_detach_one_lwp): ... this. Adjust. |
| 942 | (linux_detach): Adjust. |
| 943 | (check_removed_breakpoint): Adjust. |
| 944 | (status_pending_p): Adjust. |
| 945 | (linux_wait_for_process): Rename to ... |
| 946 | (linux_wait_for_lwp): ... this. Adjust. |
| 947 | (linux_wait_for_event): Adjust. |
| 948 | (send_sigstop): Adjust. |
| 949 | (wait_for_sigstop): Adjust. |
| 950 | (stop_all_processes): Rename to ... |
| 951 | (stop_all_lwps): ... this. |
| 952 | (linux_resume_one_process): Rename to ... |
| 953 | (linux_resume_one_lwp): ... this. Adjust. |
| 954 | (linux_set_resume_request, linux_continue_one_thread) |
| 955 | (linux_queue_one_thread, resume_status_pending_p) |
| 956 | (usr_store_inferior_registers, regsets_store_inferior_registers) |
| 957 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): |
| 958 | Adjust. |
| 959 | * linux-low.h (get_process): Rename to ... |
| 960 | (get_lwp): ... this. Adjust. |
| 961 | (get_thread_process): Rename to ... |
| 962 | (get_thread_lwp): ... this. Adjust. |
| 963 | (get_process_thread): Rename to ... |
| 964 | (get_lwp_thread): ... this. Adjust. |
| 965 | (struct process_info): Rename to ... |
| 966 | (struct lwp_info): ... this. |
| 967 | (all_processes): Rename to ... |
| 968 | (all_lwps): ... this. |
| 969 | * proc-service.c (ps_lgetregs): Adjust. |
| 970 | * thread-db.c (thread_db_create_event, find_one_thread) |
| 971 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. |
| 972 | |
| 973 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
| 974 | |
| 975 | * server.c (handle_query): Handle "qAttached". |
| 976 | |
| 977 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
| 978 | |
| 979 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to |
| 980 | GPLv3, update license URL. |
| 981 | |
| 982 | 2009-03-01 Doug Evans <dje@google.com> |
| 983 | |
| 984 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
| 985 | (server_h): Add gdb_signals.h. |
| 986 | (signals.o): Update. |
| 987 | * server.h (target_signal_from_host,target_signal_to_host_p) |
| 988 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. |
| 989 | |
| 990 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
| 991 | |
| 992 | * remote-utils.c (getpkt): Also generate remote-debug |
| 993 | information if noack_mode is set. |
| 994 | |
| 995 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 996 | |
| 997 | * server.c (handle_query): Report qXfer:siginfo:read and |
| 998 | qXfer:siginfo:write as supported and handle them. |
| 999 | * target.h (struct target_ops) <qxfer_siginfo>: New field. |
| 1000 | * linux-low.c (linux_xfer_siginfo): New. |
| 1001 | (linux_target_ops): Set it. |
| 1002 | |
| 1003 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
| 1004 | |
| 1005 | * server.c (gdbserver_usage): Mention --remote-debug. |
| 1006 | (main): Accept '--remote-debug' switch. |
| 1007 | |
| 1008 | 2009-01-18 Doug Evans <dje@google.com> |
| 1009 | |
| 1010 | * regcache.c (new_register_cache): No need to check result of xcalloc. |
| 1011 | * server.c (handle_search_memory): Back out calls to xmalloc, |
| 1012 | result is checked and error is returned to user upon failure. |
| 1013 | (handle_query): Ditto. Add more checks for result of malloc. |
| 1014 | (handle_v_cont): Check result of malloc, report error back to |
| 1015 | user upon failure. |
| 1016 | (handle_v_run): Ditto. Call freeargv. |
| 1017 | * server.h (freeargv): Declare. |
| 1018 | * utils.c (freeargv): New fn. |
| 1019 | |
| 1020 | 2009-01-15 Doug Evans <dje@google.com> |
| 1021 | |
| 1022 | * gdbreplay.c (perror_with_name): Make arg const char *. |
| 1023 | * server.h (target_signal_to_name): Make return type const char *. |
| 1024 | * thread-db.c (thread_db_err_str): Make return type const char *. |
| 1025 | * utils.c (perror_with_name): Make arg const char *. |
| 1026 | |
| 1027 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
| 1028 | |
| 1029 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE |
| 1030 | when handling a EXIT_PROCESS_DEBUG_EVENT. |
| 1031 | |
| 1032 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
| 1033 | |
| 1034 | * gdbreplay.c (gdbreplay_version): Update copyright year. |
| 1035 | * server.c (gdbserver_version): Likewise. |
| 1036 | |
| 1037 | 2009-01-05 Doug Evans <dje@google.com> |
| 1038 | |
| 1039 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. |
| 1040 | (handle_extended_wait): Improve comment. |
| 1041 | |
| 1042 | 2008-12-13 Doug Evans <dje@google.com> |
| 1043 | |
| 1044 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. |
| 1045 | * server.h (ATTR_MALLOC): New macro. |
| 1046 | (xmalloc,xcalloc,xstrdup): Declare. |
| 1047 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. |
| 1048 | * inferiors.c: Ditto. |
| 1049 | * linux-low.c: Ditto. |
| 1050 | * mem-break.c: Ditto. |
| 1051 | * regcache.c: Ditto. |
| 1052 | * remote-utils.c: Ditto. |
| 1053 | * server.c: Ditto. |
| 1054 | * target.c: Ditto. |
| 1055 | * win32-low.c: Ditto. |
| 1056 | |
| 1057 | 2008-12-12 Doug Evans <dje@google.com> |
| 1058 | |
| 1059 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
| 1060 | in debugging printf. |
| 1061 | |
| 1062 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
| 1063 | |
| 1064 | 2008-12-09 Doug Evans <dje@google.com> |
| 1065 | |
| 1066 | * linux-low.h (struct process_info): Delete member tid, unused. |
| 1067 | * thread-db.c (find_one_thread): Update. |
| 1068 | (maybe_attach_thread): Update. |
| 1069 | |
| 1070 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
| 1071 | |
| 1072 | * target.h (struct target_ops): Add qxfer_osdata member. |
| 1073 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h |
| 1074 | and dirent.h. |
| 1075 | (linux_qxfer_osdata): New functions. |
| 1076 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata |
| 1077 | callback. |
| 1078 | * server.c (handle_query): Handle "qXfer:osdata:read:". |
| 1079 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) |
| 1080 | (buffer_xml_printf): New functions. |
| 1081 | * server.h (struct buffer): New. |
| 1082 | (buffer_grow_str, buffer_grow_str0): New macros. |
| 1083 | (buffer_grow, buffer_free, buffer_init, buffer_finish) |
| 1084 | (buffer_xml_printf): Declare. |
| 1085 | |
| 1086 | 2008-11-24 Doug Evans <dje@google.com> |
| 1087 | |
| 1088 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. |
| 1089 | |
| 1090 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 1091 | |
| 1092 | * server.c (handle_v_run): Always use the supplied argument list. |
| 1093 | |
| 1094 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
| 1095 | |
| 1096 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
| 1097 | (xtensa_regmap_table): Add entry for scompare1. |
| 1098 | |
| 1099 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 1100 | |
| 1101 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, |
| 1102 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, |
| 1103 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, |
| 1104 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, |
| 1105 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, |
| 1106 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. |
| 1107 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and |
| 1108 | XML target descriptions. |
| 1109 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR |
| 1110 | when inferior is running on an ISA 2.05 or later processor. Add |
| 1111 | special case to return offset for full 64-bit slot of FPSCR when |
| 1112 | in 32-bits. |
| 1113 | |
| 1114 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
| 1115 | |
| 1116 | * Makefile.in (SFILES, clean): Added sparc64 files. |
| 1117 | (reg-sparc64.o, reg-sparc64.c): New. |
| 1118 | * configure.srv (sparc*-*-linux*): New configuration. |
| 1119 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace |
| 1120 | syscall arguments for SPARC. |
| 1121 | (regsets_store_inferior_registers): Likewise. |
| 1122 | * linux-sparc-low.c: New file. |
| 1123 | |
| 1124 | 2008-10-21 Doug Evans <dje@google.com> |
| 1125 | |
| 1126 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. |
| 1127 | (READLINE_DIR,READLINE_DEP): Delete. |
| 1128 | (INTERNAL_CFLAGS): Update. |
| 1129 | (LINTFLAGS): Update. |
| 1130 | |
| 1131 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
| 1132 | |
| 1133 | * server.c (handle_v_run): If GDB didn't specify an argv, use the |
| 1134 | whole argv from the last run, not just argv[0]. |
| 1135 | |
| 1136 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
| 1137 | |
| 1138 | * regcache.c (new_register_cache): Return NULL if the register |
| 1139 | cache size isn't known yet. |
| 1140 | (free_register_cache): Avoid dereferencing a NULL regcache. |
| 1141 | |
| 1142 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 1143 | |
| 1144 | * configure.srv: Merge MIPS and MIPS64. |
| 1145 | |
| 1146 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
| 1147 | |
| 1148 | * Makefile.in (uninstall): Apply $(EXEEXT) too. |
| 1149 | |
| 1150 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
| 1151 | |
| 1152 | * Makefile.in: Add required vsx dependencies. |
| 1153 | |
| 1154 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. |
| 1155 | Declare init_registers_powerpc_vsx32l. |
| 1156 | Declare init_registers_powerpc_vsx64l. |
| 1157 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. |
| 1158 | (ppc_arch_setup): Check for VSX in hwcap. |
| 1159 | (ppc_fill_vsxregset): New function. |
| 1160 | (ppc_store_vsxregset): New function. |
| 1161 | Add new VSX entry in regset_info target_regsets. |
| 1162 | |
| 1163 | * configure.srv: Add new VSX dependencies. |
| 1164 | |
| 1165 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
| 1166 | |
| 1167 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. |
| 1168 | (remote_open): Set or clear transport_is_reliable. |
| 1169 | (putpkt_binary): Don't expect acks in noack mode. |
| 1170 | (getpkt): Don't send ack/nac in noack mode. |
| 1171 | * server.c (handle_general_set): Handle QStartNoAckMode. |
| 1172 | (handle_query): If connected by tcp pass QStartNoAckMode+ in |
| 1173 | qSupported. |
| 1174 | (main): Reset noack_mode on every connection. |
| 1175 | * server.h (noack_mode): Declare. |
| 1176 | |
| 1177 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 1178 | |
| 1179 | * Makefile.in (GDBREPLAY_OBS): New variable. |
| 1180 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. |
| 1181 | |
| 1182 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
| 1183 | Daniel Jacobowitz <dan@codesourcery.com> |
| 1184 | |
| 1185 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. |
| 1186 | (usr_store_inferior_registers): Likewise. |
| 1187 | (regsets_store_inferior_registers): Likewise. |
| 1188 | |
| 1189 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
| 1190 | Pedro Alves <pedro@codesourcery.com> |
| 1191 | |
| 1192 | * configure.ac: Check for memmem declaration. |
| 1193 | * server.c [HAVE_MALLOC_H]: Include malloc.h. |
| 1194 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) |
| 1195 | (disable_packet_qfThreadInfo): Unconditionally compile. |
| 1196 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. |
| 1197 | * configure, config.in: Regenerate. |
| 1198 | |
| 1199 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
| 1200 | |
| 1201 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. |
| 1202 | (linux_write_memory): Remove declaration of errno. |
| 1203 | |
| 1204 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 1205 | |
| 1206 | * linux-low.c (handle_extended_wait): Do not use "status" |
| 1207 | variable uninitialized. |
| 1208 | |
| 1209 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
| 1210 | |
| 1211 | * server.c (handle_v_attach): Inhibit reporting dll changes. |
| 1212 | |
| 1213 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
| 1214 | |
| 1215 | * remote-utils.c (prepare_resume_reply): If requested, don't |
| 1216 | output "thread:TID" in the T stop reply. |
| 1217 | |
| 1218 | * server.c (disable_packet_vCont, disable_packet_Tthread) |
| 1219 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. |
| 1220 | (handle_query): If requested, disable support for qC, qfThreadInfo |
| 1221 | and qsThreadInfo. |
| 1222 | (handle_v_requests): If requested, disable support for vCont. |
| 1223 | (gdbserver_show_disableable): New. |
| 1224 | (main): Handle --disable-packet and --disable-packet=LIST. |
| 1225 | |
| 1226 | * server.h (disable_packet_vCont, disable_packet_Tthread) |
| 1227 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. |
| 1228 | |
| 1229 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
| 1230 | |
| 1231 | * server.c (gdbserver_usage): Mention --version. |
| 1232 | |
| 1233 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 1234 | |
| 1235 | * Makefile.in (gdbreplay.o): New rule. |
| 1236 | |
| 1237 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
| 1238 | |
| 1239 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version |
| 1240 | message, not gdbserver. |
| 1241 | |
| 1242 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
| 1243 | Nathan Sidwell <nathan@codesourcery.com> |
| 1244 | Joseph Myers <joseph@codesourcery.com> |
| 1245 | |
| 1246 | * acinclude.m4: Include ../../config/acx.m4. |
| 1247 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. |
| 1248 | * configure, config.in: Regenerate. |
| 1249 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. |
| 1250 | * server.c (gdbserver_version): Print PKGVERSION. |
| 1251 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. |
| 1252 | (main): Adjust gdbserver_usage calls. |
| 1253 | * gdbreplay.c (version, host_name): Add declarations. |
| 1254 | (gdbreplay_version, gdbreplay_usage): New. |
| 1255 | (main): Accept --version and --help options. |
| 1256 | |
| 1257 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 1258 | |
| 1259 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. |
| 1260 | (arm_breakpoint_at): Handle Thumb. |
| 1261 | (the_low_target): Add comment. |
| 1262 | |
| 1263 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
| 1264 | |
| 1265 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. |
| 1266 | |
| 1267 | 2008-05-09 Doug Evans <dje@google.com> |
| 1268 | |
| 1269 | * server.h (decode_search_memory_packet): Declare. |
| 1270 | * remote-utils.c (decode_search_memory_packet): New fn. |
| 1271 | * server.c (handle_search_memory_1): New fn. |
| 1272 | (handle_search_memory): New fn. |
| 1273 | (handle_query): Process qSearch:memory packets. |
| 1274 | |
| 1275 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
| 1276 | |
| 1277 | * regcache.c (registers_length): Remove. |
| 1278 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a |
| 1279 | full register packet. |
| 1280 | * regcache.h (registers_length): Remove prototype. |
| 1281 | * server.h (PBUFSIZ): Define to 16384. |
| 1282 | |
| 1283 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 1284 | |
| 1285 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to |
| 1286 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, |
| 1287 | powerpc-64l.o, and powerpc-altivec64l.o. |
| 1288 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and |
| 1289 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, |
| 1290 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, |
| 1291 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, |
| 1292 | rs6000/power-linux.xml, and rs6000/power64-linux.xml |
| 1293 | to srv_xmlfiles. |
| 1294 | |
| 1295 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... |
| 1296 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. |
| 1297 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... |
| 1298 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. |
| 1299 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... |
| 1300 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. |
| 1301 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... |
| 1302 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. |
| 1303 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... |
| 1304 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. |
| 1305 | (clean): Update. |
| 1306 | |
| 1307 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... |
| 1308 | (init_registers_powerpc_32l): ... this new prototype. |
| 1309 | (init_registers_powerpc_32): Remove, replace by ... |
| 1310 | (init_registers_powerpc_altivec32l): ... this new prototype. |
| 1311 | (init_registers_powerpc_e500): Remove, replace by ... |
| 1312 | (init_registers_powerpc_e500l): ... this new prototype. |
| 1313 | (init_registers_ppc64): Remove, replace by ... |
| 1314 | (init_registers_powerpc_64l): ... this new prototype. |
| 1315 | (init_registers_powerpc_64): Remove, replace by ... |
| 1316 | (init_registers_powerpc_altivec64l): ... this new prototype. |
| 1317 | (ppc_num_regs): Set to 73. |
| 1318 | (PT_ORIG_R3, PT_TRAP): Define if necessary. |
| 1319 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. |
| 1320 | (ppc_cannot_store_register): Handle orig_r3 and trap. |
| 1321 | (ppc_arch_setup): Update init_registers_... calls. |
| 1322 | (ppc_fill_gregset): Handle orig_r3 and trap. |
| 1323 | |
| 1324 | * inferiors.c (clear_inferiors): Reset current_inferior. |
| 1325 | |
| 1326 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
| 1327 | |
| 1328 | * acinclude.m4: Add override.m4. |
| 1329 | * configure: Regenerate. |
| 1330 | |
| 1331 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
| 1332 | |
| 1333 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the |
| 1334 | initial call to init_register_ppc64. |
| 1335 | |
| 1336 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
| 1337 | |
| 1338 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single |
| 1339 | powerpc*-*-linux* case. |
| 1340 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
| 1341 | |
| 1342 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
| 1343 | |
| 1344 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from |
| 1345 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
| 1346 | from reg_xmlfiles. |
| 1347 | * linux-ppc-low.c: Include <elf.h>. |
| 1348 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. |
| 1349 | (ppc_hwcap): New global variable. |
| 1350 | (ppc_regmap): Remove __SPE__ #ifdef sections. |
| 1351 | (ppc_regmap_e500): New global variable. |
| 1352 | (ppc_cannot_store_register): Update __SPE__ special case. |
| 1353 | (ppc_get_hwcap): New function. |
| 1354 | (ppc_arch_setup): Use it to determine whether inferior supports |
| 1355 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. |
| 1356 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. |
| 1357 | Do not access registers if target does not support AltiVec. |
| 1358 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. |
| 1359 | Do not access registers if target does not support SPE. |
| 1360 | (target_regsets): Unconditionally include AltiVec and SPE regsets. |
| 1361 | |
| 1362 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 1363 | |
| 1364 | * linux-low.c (disabled_regsets, num_regsets): New. |
| 1365 | (use_regsets_p): Delete. |
| 1366 | (linux_wait_for_process): Clear disabled_regsets. |
| 1367 | (regsets_fetch_inferior_registers): Check and set it. |
| 1368 | (regsets_store_inferior_registers): Likewise. |
| 1369 | (linux_fetch_registers, linux_store_registers): Do not use |
| 1370 | use_regsets_p. |
| 1371 | (initialize_low): Allocate disabled_regsets. |
| 1372 | |
| 1373 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 1374 | |
| 1375 | * Makefile.in (LIBOBJS): New. |
| 1376 | (OBS): Use LIBOBJS. |
| 1377 | (memmem.o): New rule. |
| 1378 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. |
| 1379 | * configure: Regenerated. |
| 1380 | |
| 1381 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
| 1382 | |
| 1383 | * server.c (handle_query): Never return "unsupported" for |
| 1384 | qXfer:features:read queries. |
| 1385 | |
| 1386 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 1387 | |
| 1388 | * server.c (get_features_xml): Fix inverted condition. |
| 1389 | (handle_query): Always support qXfer:feature:read. |
| 1390 | |
| 1391 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
| 1392 | |
| 1393 | * server.c (wrapper_argv): New. |
| 1394 | (start_inferior): Handle wrapper_argv. If set, expect an extra |
| 1395 | trap. |
| 1396 | (gdbserver_usage): Document --wrapper. |
| 1397 | (main): Parse --wrapper. |
| 1398 | |
| 1399 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 1400 | |
| 1401 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for |
| 1402 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. |
| 1403 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. |
| 1404 | (ppc_set_pc): Likewise. |
| 1405 | (ppc_arch_setup): New function. |
| 1406 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead |
| 1407 | of collect_register. |
| 1408 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
| 1409 | |
| 1410 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 1411 | |
| 1412 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o |
| 1413 | instead of linux-ppc64-low.o. |
| 1414 | * linux-ppc64-low.c: Remove file. |
| 1415 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. |
| 1416 | (linux-ppc64-low.o): Remove rule. |
| 1417 | |
| 1418 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. |
| 1419 | (init_registers_powerpc_64): Likewise. |
| 1420 | (ppc_regmap): Conditionally define depending on __powerpc64__. |
| 1421 | (ppc_cannot_store_register): Do not special-case "fpscr" when |
| 1422 | compiled on __powerpc64__. |
| 1423 | (ppc_collect_ptrace_register): New function. |
| 1424 | (ppc_supply_ptrace_register): New function. |
| 1425 | (ppc_breakpoint): Change type to "unsigned int". |
| 1426 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". |
| 1427 | (the_low_target): Conditionally provide initializers for the |
| 1428 | arch_setup member depending on __powerpc64__. Install |
| 1429 | collect_ptrace_register and supply_ptrace_register members. |
| 1430 | |
| 1431 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 1432 | |
| 1433 | * regcache.h (gdbserver_xmltarget): Add extern declaration. |
| 1434 | * server.c (gdbserver_xmltarget): Define. |
| 1435 | (get_features_xml): Use it to replace "target.xml" and arch_string. |
| 1436 | |
| 1437 | * configure.srv: Remove srv_xmltarget. Add XML files that were |
| 1438 | mentioned there to srv_xmlfiles instead. Remove conditional tests |
| 1439 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set |
| 1440 | srv_xmlfiles and srv_regobj to include all possible choices. |
| 1441 | * configure.ac (srv_xmltarget): Remove. |
| 1442 | (srv_xmlfiles): Do not add "target.xml". |
| 1443 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove |
| 1444 | checks for supplementary target information. |
| 1445 | * configure: Regenerate. |
| 1446 | * Makefile.in (XML_TARGET): Remove. |
| 1447 | (target.xml): Remove rule. |
| 1448 | (clean): Do not clean up target.xml. |
| 1449 | (.PRECIOUS): Do not mention target.xml. |
| 1450 | |
| 1451 | * target.h (struct target_ops): Remove arch_string member. |
| 1452 | * linux-low.c (linux_arch_string): Remove. |
| 1453 | (linux_target_ops): Remove arch_string initializer. |
| 1454 | * linux-low.h (struct linux_target_ops): Remove arch_string member. |
| 1455 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. |
| 1456 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. |
| 1457 | * spu-low.c (spu_arch_string): Remove. |
| 1458 | (spu_target_ops): Remove arch_string initializer. |
| 1459 | * win32-low.c (win32_arch_string): Remove. |
| 1460 | (win32_target_ops): Remove arch_string initializer. |
| 1461 | * win32-low.h (struct win32_target_ops): Remove arch_string member. |
| 1462 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. |
| 1463 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. |
| 1464 | |
| 1465 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 1466 | |
| 1467 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field |
| 1468 | by collect_ptrace_register and supply_ptrace_register hooks. |
| 1469 | * linux-low.c (fetch_register): Use supply_ptrace_register callback |
| 1470 | instead of checking for the_low_target.left_pad_xfer. |
| 1471 | (usr_store_inferior_registers): Use collect_ptrace_register callback |
| 1472 | instead of checking for the_low_target.left_pad_xfer. |
| 1473 | |
| 1474 | * linux-s390-low.c (s390_collect_ptrace_register): New function. |
| 1475 | (s390_supply_ptrace_register): Likewise. |
| 1476 | (s390_fill_gregset): Call s390_collect_ptrace_register. |
| 1477 | (the_low_target): Update. |
| 1478 | |
| 1479 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. |
| 1480 | (ppc_supply_ptrace_register): Likewise. |
| 1481 | (the_low_target): Update. |
| 1482 | |
| 1483 | * linux-i386-low.c (the_low_target): Update. |
| 1484 | * linux-x86-64-low.c (the_low_target): Update. |
| 1485 | |
| 1486 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 1487 | |
| 1488 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both |
| 1489 | reg-s390.o and reg-s390x.o. |
| 1490 | |
| 1491 | * linux-low.c (new_inferior): New global variable. |
| 1492 | (linux_create_inferior, linux_attach): Set it. |
| 1493 | (linux_wait_for_process): Call the_low_target.arch_setup after the |
| 1494 | target has stopped for the first time. |
| 1495 | (initialize_low): Do not call the_low_target.arch_setup. |
| 1496 | |
| 1497 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. |
| 1498 | (s390_set_pc): Likewise. |
| 1499 | (s390_arch_setup): New function. |
| 1500 | (the_low_target): Use s390_arch_setup as arch_setup routine. |
| 1501 | |
| 1502 | * regcache.c (realloc_register_cache): New function. |
| 1503 | (set_register_cache): Call it for each existing regcache. |
| 1504 | |
| 1505 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 1506 | |
| 1507 | * server.h (init_registers): Remove prototype. |
| 1508 | |
| 1509 | * linux-low.h (struct linux_target_ops): Add arch_setup field. |
| 1510 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () |
| 1511 | instead of init_registers (). |
| 1512 | * linux-arm-low.c (init_registers_arm): Add prototype. |
| 1513 | (init_registers_arm_with_iwmmxt): Likewise. |
| 1514 | (the_low_target): Add initializer for arch_setup field. |
| 1515 | * linux-cris-low.c (init_registers_cris): Add prototype. |
| 1516 | (the_low_target): Add initializer for arch_setup field. |
| 1517 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. |
| 1518 | (the_low_target): Add initializer for arch_setup field. |
| 1519 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. |
| 1520 | (the_low_target): Add initializer for arch_setup field. |
| 1521 | * linux-ia64-low.c (init_registers_ia64): Add prototype. |
| 1522 | (the_low_target): Add initializer for arch_setup field. |
| 1523 | * linux-m32r-low.c (init_registers_m32r): Add prototype. |
| 1524 | (the_low_target): Add initializer for arch_setup field. |
| 1525 | * linux-m68k-low.c (init_registers_m68k): Add prototype. |
| 1526 | (the_low_target): Add initializer for arch_setup field. |
| 1527 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. |
| 1528 | (init_registers_mips64_linux): Likewise. |
| 1529 | (the_low_target): Add initializer for arch_setup field. |
| 1530 | * linux-ppc-low.c (init_registers_ppc): Add prototype. |
| 1531 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. |
| 1532 | (the_low_target): Add initializer for arch_setup field. |
| 1533 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. |
| 1534 | (init_registers_powerpc_64): Likewise. |
| 1535 | (the_low_target): Add initializer for arch_setup field. |
| 1536 | * linux-s390-low.c (init_registers_s390): Add prototype. |
| 1537 | (init_registers_s390x): Likewise. |
| 1538 | (the_low_target): Add initializer for arch_setup field. |
| 1539 | * linux-sh-low.c (init_registers_sh): Add prototype. |
| 1540 | (the_low_target): Add initializer for arch_setup field. |
| 1541 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. |
| 1542 | (the_low_target): Add initializer for arch_setup field. |
| 1543 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. |
| 1544 | (the_low_target): Add initializer for arch_setup field. |
| 1545 | |
| 1546 | * win32-low.h (struct win32_target_ops): Add arch_setup field. |
| 1547 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () |
| 1548 | instead of init_registers (). |
| 1549 | * win32-arm-low.c (init_registers_arm): Add prototype. |
| 1550 | (the_low_target): Add initializer for arch_setup field. |
| 1551 | * win32-i386-low.c (init_registers_i386): Add prototype. |
| 1552 | (the_low_target): Add initializer for arch_setup field. |
| 1553 | |
| 1554 | * spu-low.c (init_registers_spu): Add prototype. |
| 1555 | (initialize_low): Call initialie_registers_spu () instead of |
| 1556 | initialize_registers (). |
| 1557 | |
| 1558 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
| 1559 | |
| 1560 | * server.c (handle_v_requests): When handling the vRun and vAttach |
| 1561 | packets, if already debugging a process, don't kill it. Return an |
| 1562 | error instead. |
| 1563 | |
| 1564 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 1565 | |
| 1566 | * server.c (handle_query): Correct length check. |
| 1567 | |
| 1568 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1569 | |
| 1570 | * win32-low.c (do_initial_child_stuff): Add process handle |
| 1571 | parameter. Set current_process_handle and current_process_id from the |
| 1572 | parameters. Clear globals. |
| 1573 | (win32_create_inferior): Don't set current_process_handle and |
| 1574 | current_process_id here. Instead pass them on the call to |
| 1575 | do_initial_child_stuff. |
| 1576 | (win32_attach): Likewise. |
| 1577 | (win32_clear_inferiors): New. |
| 1578 | (win32_kill): Don't close the current process handle or the |
| 1579 | current thread handle here. Instead call win32_clear_inferiors. |
| 1580 | (win32_detach): Don't open a new handle to the process. Call |
| 1581 | win32_clear_inferiors. |
| 1582 | (win32_join): Don't rely on current_process_handle; open a new |
| 1583 | handle using the process id. |
| 1584 | (win32_wait): Call win32_clear_inferiors when the inferior process |
| 1585 | has exited. |
| 1586 | |
| 1587 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 1588 | |
| 1589 | * server.c (monitor_show_help): Add "exit". |
| 1590 | |
| 1591 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
| 1592 | |
| 1593 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
| 1594 | (clean): Add reg-xtensa.c. |
| 1595 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. |
| 1596 | * configure.srv (xtensa*-*-linux*) New target. |
| 1597 | * linux-xtensa-low.c: New. |
| 1598 | * xtensa-xtregs.c: New. |
| 1599 | |
| 1600 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1601 | |
| 1602 | * hostio.c: Don't include errno.h. |
| 1603 | (errno_to_fileio_errno): Move to hostio-errno. |
| 1604 | * hostio.c: (hostio_error): Remove the error parameter. Defer the |
| 1605 | error number outputting to the target->hostio_last_error callback. |
| 1606 | (hostio_packet_error): Use FILEIO_EINVAL directly. |
| 1607 | (handle_open, handle_pread, hostio_error, handle_unlink): Update |
| 1608 | calls to hostio_error. |
| 1609 | * hostio-errno.c: New. |
| 1610 | * server.h (hostio_last_error_from_errno): Declare. |
| 1611 | * target.h (target_ops): Add hostio_last_error member. |
| 1612 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno |
| 1613 | as hostio_last_error handler. |
| 1614 | * spu-low.c (spu_target_ops): Likewise. |
| 1615 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
| 1616 | (wince_hostio_last_error): New functions. |
| 1617 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error |
| 1618 | as hostio_last_error handler. |
| 1619 | (win32_target_ops) [!_WIN32_WCE]: Register |
| 1620 | hostio_last_error_from_errno as hostio_last_error handler. |
| 1621 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. |
| 1622 | (hostio-errno.o): New rule. |
| 1623 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. |
| 1624 | * configure.srv (srv_hostio_err_objs): New variable. Default to |
| 1625 | hostio-errno.o. |
| 1626 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". |
| 1627 | * configure: Regenerate. |
| 1628 | |
| 1629 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 1630 | |
| 1631 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. |
| 1632 | (linux_kill, linux_detach): Clean up the process list. |
| 1633 | * remote-utils.c (remote_open): Improve port number parsing. |
| 1634 | (putpkt_binary, input_interrupt): Only send interrupts if the target |
| 1635 | is running. |
| 1636 | * server.c (extended_protocol): Make static. |
| 1637 | (attached): Define earlier. |
| 1638 | (exit_requested, response_needed, program_argv): New variables. |
| 1639 | (target_running): New. |
| 1640 | (start_inferior): Clear attached here. |
| 1641 | (attach_inferior): Set attached here. |
| 1642 | (require_running): Define. |
| 1643 | (handle_query): Use require_running and target_running. Implement |
| 1644 | "monitor exit". |
| 1645 | (handle_v_attach, handle_v_run): New. |
| 1646 | (handle_v_requests): Use require_running. Handle vAttach and vRun. |
| 1647 | (gdbserver_usage): Update. |
| 1648 | (main): Redo argument parsing. Handle --debug and --multi. Handle |
| 1649 | --attach along with other options or after the port. Save |
| 1650 | program_argv. Support no initial program. Resynchronize |
| 1651 | communication with GDB after an error. Handle "monitor exit". |
| 1652 | Use require_running and target_running. Always allow the extended |
| 1653 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically |
| 1654 | restart in extended mode. |
| 1655 | * README: Refer to the GDB manual. Update --attach usage. |
| 1656 | |
| 1657 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
| 1658 | |
| 1659 | * linux-low.c (STACK_SIZE): Define. |
| 1660 | (linux_tracefork_child): Use it. Use __clone2 on ia64. |
| 1661 | (linux_test_for_tracefork): Likewise. |
| 1662 | |
| 1663 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
| 1664 | |
| 1665 | * linux-low.c (linux_wait_for_event): Update messages. Do not |
| 1666 | reinsert auto-delete breakpoints. |
| 1667 | * mem-break.c (struct breakpoint): Change return type of handler to |
| 1668 | int. |
| 1669 | (set_breakpoint_at): Update handler type. |
| 1670 | (reinsert_breakpoint_handler): Return 1 instead of calling |
| 1671 | delete_breakpoint. |
| 1672 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before |
| 1673 | setting a new one. |
| 1674 | (check_breakpoints): Delete auto-delete breakpoints and return 2. |
| 1675 | * mem-break.h (set_breakpoint_at): Update handler type. |
| 1676 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. |
| 1677 | * win32-low.c (auto_delete_breakpoint): New. |
| 1678 | (get_child_debug_event): Use it. |
| 1679 | |
| 1680 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 1681 | |
| 1682 | * configure.ac: Check for pread and pwrite. |
| 1683 | * hostio.c (handle_pread): Fall back to lseek and read. |
| 1684 | (handle_pwrite): Fall back to lseek and write. |
| 1685 | * config.in, configure: Regenerated. |
| 1686 | |
| 1687 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
| 1688 | |
| 1689 | * server.c (myresume): Add own_buf argument. |
| 1690 | (main): Update calls. |
| 1691 | |
| 1692 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 1693 | |
| 1694 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. |
| 1695 | * remote-utils.c (remote_open): Do not call disable_async_io. |
| 1696 | (block_async_io): Delete. |
| 1697 | (unblock_async_io): Make static. |
| 1698 | (initialize_async_io): New. |
| 1699 | * server.c (handle_v_cont): Handle async I/O here. |
| 1700 | (myresume): Likewise. Move other common resume tasks here... |
| 1701 | (main): ... from here. Call initialize_async_io. Disable async |
| 1702 | I/O before the main loop. |
| 1703 | * server.h (initialize_async_io): Declare. |
| 1704 | (block_async_io, unblock_async_io): Delete prototypes. |
| 1705 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. |
| 1706 | |
| 1707 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
| 1708 | |
| 1709 | * remote-utils.c (readchar): Allow binary data in received messages. |
| 1710 | |
| 1711 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1712 | |
| 1713 | * win32-low.c (attaching): New global. |
| 1714 | (win32_create_inferior): Clear the `attaching' global. |
| 1715 | (win32_attach): Set the `attaching' global. |
| 1716 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when |
| 1717 | attaching. Only set a breakpoint at the entry point if not |
| 1718 | attaching. |
| 1719 | |
| 1720 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1721 | |
| 1722 | * server.c (main): Don't report dll events on the initial |
| 1723 | connection on attaches. |
| 1724 | |
| 1725 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1726 | |
| 1727 | * server.c (main): Relax numerical bases supported for the pid of |
| 1728 | the --attach command line argument. |
| 1729 | |
| 1730 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1731 | |
| 1732 | * win32-low.c (win32_attach): Call OpenProcess before |
| 1733 | DebugActiveProcess, not after. Add last error output to error |
| 1734 | call. |
| 1735 | |
| 1736 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1737 | |
| 1738 | * win32-low.c (win32_get_thread_context) |
| 1739 | (win32_set_thread_context): New functions. |
| 1740 | (thread_rec): Use win32_get_thread_context. |
| 1741 | (continue_one_thread, win32_resume): Use win32_set_thread_context. |
| 1742 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' |
| 1743 | field. |
| 1744 | |
| 1745 | 2007-12-03 Leo Zayas |
| 1746 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 1747 | |
| 1748 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New |
| 1749 | global variables. |
| 1750 | (child_add_thread): Minor cleanup. |
| 1751 | (child_continue): Resume artificially suspended threads before |
| 1752 | calling ContinueDebugEvent. |
| 1753 | (suspend_one_thread): New. |
| 1754 | (fake_breakpoint_event): New. |
| 1755 | (get_child_debug_event): Change return type to int. Check here if |
| 1756 | gdb sent an interrupt request. If a soft interrupt was requested, |
| 1757 | fake a breakpoint event. Return 0 if there is no event to handle, |
| 1758 | and 1 otherwise. |
| 1759 | (win32_wait): Don't check here if gdb sent an interrupt request. |
| 1760 | Ensure there is a valid event to handle. |
| 1761 | (win32_request_interrupt): Add soft interruption method as last |
| 1762 | resort. |
| 1763 | |
| 1764 | 2007-12-03 Leo Zayas |
| 1765 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 1766 | |
| 1767 | * win32-low.h (win32_thread_info): Add descriptions to the |
| 1768 | structure members. Replace `suspend_count' counter by a |
| 1769 | `suspended' flag. |
| 1770 | * win32-low.c (thread_rec): Update condition of when to get the |
| 1771 | context from the inferior. Rely on ContextFlags being set if it |
| 1772 | has already been retrieved. Only suspend the inferior thread if |
| 1773 | we haven't already. Warn if that fails. |
| 1774 | (continue_one_thread): s/suspend_count/suspended/. Only call |
| 1775 | ResumeThread once. Warn if that fails. |
| 1776 | |
| 1777 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1778 | |
| 1779 | * win32-low.c (win32_wait): Don't read from the inferior when it |
| 1780 | has already exited. |
| 1781 | |
| 1782 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1783 | |
| 1784 | * Makefile.in (win32_low_h): New variable. |
| 1785 | (win32-low.o): Add dependency on $(win32_low_h). |
| 1786 | (win32-arm-low.o, win32-i386-low.o): New rules. |
| 1787 | |
| 1788 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 1789 | |
| 1790 | * hostio.c: Correct copyright year. |
| 1791 | |
| 1792 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 1793 | |
| 1794 | * Makefile.in (OBS): Add hostio.o. |
| 1795 | (hostio.o): New rule. |
| 1796 | * server.h (handle_vFile): Declare. |
| 1797 | * hostio.c: New file. |
| 1798 | * server.c (handle_v_requests): Take packet_len and new_packet_len |
| 1799 | for binary packets. Call handle_vFile. |
| 1800 | (main): Update call to handle_v_requests. |
| 1801 | |
| 1802 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
| 1803 | |
| 1804 | * linux-low.c: Include <sched.h>. |
| 1805 | |
| 1806 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 1807 | |
| 1808 | * linux-low.c (linux_tracefork_grandchild): New. |
| 1809 | (linux_tracefork_child): Use clone. |
| 1810 | (linux_test_for_tracefork): Use clone; allocate and free a stack. |
| 1811 | |
| 1812 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
| 1813 | |
| 1814 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. |
| 1815 | |
| 1816 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 1817 | |
| 1818 | * linux-low.c (handle_extended_wait): Handle unexpected signals. |
| 1819 | |
| 1820 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
| 1821 | |
| 1822 | * inferiors.c (change_inferior_id): Delete. |
| 1823 | (add_pid_to_list, pull_pid_from_list): New. |
| 1824 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) |
| 1825 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) |
| 1826 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) |
| 1827 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) |
| 1828 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) |
| 1829 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. |
| 1830 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. |
| 1831 | (using_threads): Always set to 1. |
| 1832 | (handle_extended_wait): New. |
| 1833 | (add_process): Do not set TID. |
| 1834 | (linux_create_inferior): Set must_set_ptrace_flags. |
| 1835 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. |
| 1836 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. |
| 1837 | (linux_thread_alive): Rename TID argument to LWPID. |
| 1838 | (linux_wait_for_process): Handle unknown processes. Do not use TID. |
| 1839 | (linux_wait_for_event): Do not use TID or check using_threads. Update |
| 1840 | call to dead_thread_notify. Call handle_extended_wait. |
| 1841 | (linux_create_inferior): Use PTRACE_SETOPTIONS. |
| 1842 | (send_sigstop): Delete sigstop_sent. |
| 1843 | (wait_for_sigstop): Avoid TID. |
| 1844 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) |
| 1845 | (linux_test_for_tracefork): New. |
| 1846 | (linux_lookup_signals): Use thread_db_active and |
| 1847 | linux_supports_tracefork_flag. |
| 1848 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. |
| 1849 | * linux-low.h (get_process_thread): Avoid TID. |
| 1850 | (struct process_ifo): Move thread_known and tid to the end. Remove |
| 1851 | sigstop_sent. |
| 1852 | (linux_attach_lwp, thread_db_init): Update prototypes. |
| 1853 | * server.h (change_inferior_id): Delete prototype. |
| 1854 | (add_pid_to_list, pull_pid_from_list): New prototypes. |
| 1855 | * thread-db.c (thread_db_use_events): New. |
| 1856 | (find_first_thread): Rename to... |
| 1857 | (find_one_thread): ...this. Update callers and messages. Do not |
| 1858 | call fatal. Check thread_db_use_events. Do not call |
| 1859 | change_inferior_id or new_thread_notify. |
| 1860 | (maybe_attach_thread): Update. Do not call new_thread_notify. |
| 1861 | (thread_db_init): Set thread_db_use_events. Check use_events. |
| 1862 | * utils.c (fatal, warning): Correct message prefix. |
| 1863 | |
| 1864 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 1865 | |
| 1866 | * Makefile.in (clean): Remove new files. |
| 1867 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) |
| 1868 | (powerpc-64.o, powerpc-64.c): New rules. |
| 1869 | * configure.srv: Use alternate register sets for powerpc64-*-linux* |
| 1870 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* |
| 1871 | with SPE. |
| 1872 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for |
| 1873 | SPE targets. |
| 1874 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. |
| 1875 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) |
| 1876 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) |
| 1877 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. |
| 1878 | (target_regsets): Add AltiVec and SPE register sets. |
| 1879 | * configure.ac: Check for AltiVec and SPE. |
| 1880 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) |
| 1881 | (ppc_fill_vrregset, ppc_store_vrregset): New. |
| 1882 | (target_regsets): Add AltiVec register set. |
| 1883 | * configure: Regenerated. |
| 1884 | |
| 1885 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 1886 | |
| 1887 | * linux-low.c (O_LARGEFILE): Define. |
| 1888 | (linux_read_memory): Use /proc/PID/mem. |
| 1889 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. |
| 1890 | * configure, config.in: Regenerated. |
| 1891 | |
| 1892 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 1893 | |
| 1894 | * linux-low.c (linux_wait_for_event): Do not pass signals while |
| 1895 | single-stepping. |
| 1896 | |
| 1897 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1898 | |
| 1899 | * win32-low.c (create_process): New. |
| 1900 | (win32_create_inferior): Use create_process instead of |
| 1901 | CreateProcess. If create_process failed retry appending an ".exe" |
| 1902 | suffix. Store the GetLastError result immediatelly after |
| 1903 | create_process calls and use it on the call to error. |
| 1904 | |
| 1905 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1906 | |
| 1907 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. |
| 1908 | |
| 1909 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
| 1910 | |
| 1911 | * configure.ac: Switch license to GPLv3. |
| 1912 | |
| 1913 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
| 1914 | |
| 1915 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. |
| 1916 | |
| 1917 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1918 | |
| 1919 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New |
| 1920 | typedef. |
| 1921 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. |
| 1922 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get |
| 1923 | CloseToolhelp32Snapshot. |
| 1924 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with |
| 1925 | CloseToolhelp32Snapshot. |
| 1926 | |
| 1927 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
| 1928 | |
| 1929 | * server.c (main): Check for inferior exit before main loop. |
| 1930 | |
| 1931 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1932 | |
| 1933 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc |
| 1934 | instead of on tmp_desc. |
| 1935 | |
| 1936 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1937 | Daniel Jacobowitz <dan@codesourcery.com> |
| 1938 | |
| 1939 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. |
| 1940 | (add_thread): Minor cleanups. |
| 1941 | (clear_inferiors): Move lower in the file. Clear the DLL |
| 1942 | list. |
| 1943 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. |
| 1944 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. |
| 1945 | (xml_escape_text): New. |
| 1946 | * server.c (handle_query): Handle qXfer:libraries:read. Report it |
| 1947 | for qSupported. |
| 1948 | (handle_v_cont): Report errors. |
| 1949 | (gdbserver_version): Update. |
| 1950 | (main): Correct size of own_buf. Do not report initial DLL events. |
| 1951 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) |
| 1952 | (unloaded_dll, xml_escape_text): New. |
| 1953 | * win32-low.c (enum target_waitkind): Update comments. |
| 1954 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) |
| 1955 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) |
| 1956 | (win32_EnumProcessModules, win32_GetModuleInformation) |
| 1957 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) |
| 1958 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) |
| 1959 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) |
| 1960 | (win32_Module32First, win32_Module32Next, load_toolhelp) |
| 1961 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. |
| 1962 | (get_child_debug_event): Handle DLL events. |
| 1963 | (win32_wait): Likewise. |
| 1964 | |
| 1965 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 1966 | |
| 1967 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. |
| 1968 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. |
| 1969 | |
| 1970 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1971 | |
| 1972 | * win32-low.c (handle_output_debug_string): Ignore event if not |
| 1973 | waiting. |
| 1974 | |
| 1975 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 1976 | |
| 1977 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. |
| 1978 | |
| 1979 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 1980 | |
| 1981 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. |
| 1982 | |
| 1983 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 1984 | |
| 1985 | * inferiors.c (change_inferior_id): Add comment. |
| 1986 | * linux-low.c (check_removed_breakpoint): Add an early |
| 1987 | prototype. Improve debug output. |
| 1988 | (linux_attach): Doc update. |
| 1989 | (linux_detach_one_process, linux_detach): Clean up before releasing |
| 1990 | each process. |
| 1991 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. |
| 1992 | * linux-low.h (struct process_info): Doc improvement. |
| 1993 | * mem-break.c (delete_all_breakpoints): New. |
| 1994 | * mem-break.h (delete_all_breakpoints): New prototype. |
| 1995 | * thread-db.c (find_first_thread): New. |
| 1996 | (thread_db_create_event): Call it instead of |
| 1997 | thread_db_find_new_threads. Clean up unused variables. |
| 1998 | (maybe_attach_thread): Remove first thread handling. |
| 1999 | (thread_db_find_new_threads): Use find_first_thread. |
| 2000 | (thread_db_get_tls_address): Likewise. |
| 2001 | |
| 2002 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 2003 | |
| 2004 | * thread-db.c (thread_db_find_new_threads): Add prototype. |
| 2005 | (thread_db_create_event): Check for the main thread before adding |
| 2006 | a new thread. |
| 2007 | (maybe_attach_thread): Only enable event reporting if TID == 0. |
| 2008 | (thread_db_get_tls_address): Check for new threads. |
| 2009 | |
| 2010 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
| 2011 | |
| 2012 | * linux-low.c (linux_create_inferior): Try execv before execvp. |
| 2013 | * spu-low.c (spu_create_inferior): Likewise. |
| 2014 | |
| 2015 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
| 2016 | |
| 2017 | * linux-low.c (linux_create_inferior): Change execv to execvp. |
| 2018 | * spu-low.c (spu_create_inferior): Likewies. |
| 2019 | |
| 2020 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 2021 | |
| 2022 | * Makefile.in (clean): Clean new files instead of deleted ones. |
| 2023 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. |
| 2024 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New |
| 2025 | rules. |
| 2026 | * configure.srv: Specify XML files and new regformats for MIPS and |
| 2027 | MIPS64 GNU/Linux. |
| 2028 | * linux-mips-low.c (mips_num_regs): Set to only used registers. |
| 2029 | (mips_regmap): Do not fetch $0. Remove unused registers. Add |
| 2030 | an entry for the restart register. |
| 2031 | (mips_cannot_fetch_register, mips_cannot_store_register) |
| 2032 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update |
| 2033 | register names to match the XML descriptions. |
| 2034 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the |
| 2035 | restart register instead of $0. |
| 2036 | |
| 2037 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 2038 | Markus Deuling <deuling@de.ibm.com> |
| 2039 | |
| 2040 | * remote-utils.c (decode_xfer_write): New function. |
| 2041 | * server.h (decode_xfer_write): Add prototype. |
| 2042 | * server.c (handle_query): Add PACKET_LEN argument. Support |
| 2043 | qXfer:spu:read and qXfer:spu:write packets. |
| 2044 | (main): Pass packet_len to handle_query. |
| 2045 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. |
| 2046 | * target.h (target_ops): Add qxfer_spu. |
| 2047 | |
| 2048 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 2049 | |
| 2050 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when |
| 2051 | accessing non-seekable spufs files. |
| 2052 | |
| 2053 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
| 2054 | |
| 2055 | * server.c (handle_query): Add reply for qC packet. |
| 2056 | |
| 2057 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2058 | Leo Zayas <lerele@champenstudios@com> |
| 2059 | |
| 2060 | * server.h (check_remote_input_interrupt_request): New function. |
| 2061 | * remote_utils.c (INVALID_DESCRIPTOR): New define. |
| 2062 | (remote_desc): Initialize with INVALID_DESCRIPTOR. |
| 2063 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. |
| 2064 | (check_remote_input_interrupt_request): New function. |
| 2065 | * server.h (check_remote_input_interrupt_request): Declare. |
| 2066 | * win32-low.c (winapi_DebugBreakProcess, |
| 2067 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
| 2068 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec |
| 2069 | to 250 ms. |
| 2070 | (win32_wait): Check for remote interrupt request |
| 2071 | with check_remote_input_interrupt_request. |
| 2072 | (win32_request_interrupt): New function. |
| 2073 | (win32_target_op): Set request_interrupt to win32_request_interrupt. |
| 2074 | |
| 2075 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2076 | |
| 2077 | * win32-low.c (debug_registers_changed, |
| 2078 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, |
| 2079 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, |
| 2080 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. |
| 2081 | (thread_rec): Get context using the low target. |
| 2082 | (child_add_thread): Call thread_added on the low target, |
| 2083 | which does the same thing. |
| 2084 | (regptr): Delete. |
| 2085 | (do_initial_child_stuff): Remove debug registers references. |
| 2086 | Set context using the low target. Resume threads after |
| 2087 | setting the contexts. |
| 2088 | (child_continue): Remove dead variable. Remove debug |
| 2089 | registers references. |
| 2090 | (child_fetch_inferior_registers): Go through the low target. |
| 2091 | (do_child_store_inferior_registers): Remove. |
| 2092 | (child_store_inferior_registers): Go through the low target. |
| 2093 | (win32_resume): Remove debug registers references. |
| 2094 | Set context using the low target. |
| 2095 | (handle_exception): Change return type to void. Don't record |
| 2096 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a |
| 2097 | first chance exception. |
| 2098 | (get_child_debug_event): Change return type to void. Remove |
| 2099 | goto loop. Always return after waiting for debug event. |
| 2100 | (win32_wait): Convert to switch statement. Handle spurious |
| 2101 | events. |
| 2102 | |
| 2103 | * win32-i386-low.c (debug_registers_changed, |
| 2104 | debug_registers_used): New. |
| 2105 | (initial_stuff): Rename to ... |
| 2106 | (i386_initial_stuff): ... this. Clear debug registers |
| 2107 | state variables. |
| 2108 | (store_debug_registers): Delete. |
| 2109 | (i386_get_thread_context): New. |
| 2110 | (load_debug_registers): Delete. |
| 2111 | (i386_set_thread_context): New. |
| 2112 | (i386_thread_added): New. |
| 2113 | (single_step): Rename to ... |
| 2114 | (i386_single_step): ... this. |
| 2115 | (do_fetch_inferior_registers): Rename to ... |
| 2116 | (i386_fetch_inferior_register): ... this. |
| 2117 | (i386_store_inferior_register): New. |
| 2118 | (the_low_target): Adapt to new interface. |
| 2119 | |
| 2120 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. |
| 2121 | (arm_get_thread_context): New. |
| 2122 | (arm_set_thread_context): New. |
| 2123 | (regptr): New. |
| 2124 | (do_fetch_inferior_registers): Rename to ... |
| 2125 | (arm_fetch_inferior_register): ... this. |
| 2126 | (arm_store_inferior_register): New. |
| 2127 | (arm_wince_breakpoint): Reimplement as unsigned long. |
| 2128 | (arm_wince_breakpoint_len): Define. |
| 2129 | (the_low_target): Adapt to new interface. |
| 2130 | |
| 2131 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and |
| 2132 | load_debug_registers. Add get_thread_context, set_thread_context, |
| 2133 | thread_added and store_inferior_register. Rename |
| 2134 | fetch_inferior_registers to fetch_inferior_register. |
| 2135 | (regptr): Remove declaration. |
| 2136 | |
| 2137 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2138 | |
| 2139 | * linux-low.c (linux_detach): Change return type to int. Return 0. |
| 2140 | * spu-low.c (spu_detach): Likewise. |
| 2141 | |
| 2142 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2143 | |
| 2144 | * target.h (target_ops): Change return type of detach to int. |
| 2145 | Add join. |
| 2146 | (join_inferior): New. |
| 2147 | * server.c (main): Don't skip detach support on mingw32. |
| 2148 | If the inferior doesn't support detaching return error. |
| 2149 | Call join_inferior instead of using waitpid. |
| 2150 | * linux-low.c (linux_join): New. |
| 2151 | (linux_target_op): Add linux_join. |
| 2152 | * spu-low.c (spu_join): New. |
| 2153 | (spu_target_ops): Add spu_join. |
| 2154 | * win32-low.c (win32_detach): Adapt to new interface. |
| 2155 | Reopen current_process_handle before detaching. Issue a child |
| 2156 | resume before detaching. |
| 2157 | (win32_join): New. |
| 2158 | (win32_target_op): Add win32_join. |
| 2159 | |
| 2160 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2161 | |
| 2162 | * win32-low.c (win32-attach): Fix return value. |
| 2163 | * target.h (target_ops): Describe ATTACH return values. |
| 2164 | |
| 2165 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2166 | |
| 2167 | * win32-low.c (GETPROCADDRESS): Define. |
| 2168 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. |
| 2169 | (winapi_DebugSetProcessKillOnExit): Likewise. |
| 2170 | (win32_create_inferior): Force usage of ansi CreateProcessA. |
| 2171 | (win32_attach): Use GETPROCADDRESS. |
| 2172 | (win32_detach): Likewise. |
| 2173 | |
| 2174 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2175 | |
| 2176 | * win32-low.c (win32_wait): Don't use WSTOPSIG. |
| 2177 | |
| 2178 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2179 | |
| 2180 | * win32-low.c: Commit leftover changes from 2007-03-29. |
| 2181 | |
| 2182 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 2183 | |
| 2184 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit |
| 2185 | fields short instead of int. Add explicit padding. |
| 2186 | (i387_cache_to_fsave): Remove unnecessary casts. |
| 2187 | (i387_fsave_to_cache): Doc fix. |
| 2188 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. |
| 2189 | |
| 2190 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 2191 | |
| 2192 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. |
| 2193 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. |
| 2194 | |
| 2195 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2196 | |
| 2197 | * configure.srv (arm*-*-mingw32ce*): Move near the other |
| 2198 | arm targets. |
| 2199 | |
| 2200 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2201 | |
| 2202 | * configure.ac: Add errno checking. |
| 2203 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
| 2204 | sys/file.h and malloc.h. |
| 2205 | (AC_CHECK_DECLS): Add perror. |
| 2206 | (srv_mingwce): Handle. |
| 2207 | * configure.srv (i[34567]86-*-cygwin*): Add |
| 2208 | win32-i386-low.o to srv_tgtobj. |
| 2209 | (i[34567]86-*-mingw*): Likewise. |
| 2210 | (arm*-*-mingw32ce*): Add case. |
| 2211 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 2212 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. |
| 2213 | [__MINGW32CE__] (strerror): New function. |
| 2214 | [__MINGW32CE__] (errno): Define to GetLastError. |
| 2215 | [__MINGW32CE__] (COUNTOF): New macro. |
| 2216 | (remote_open): Remove extra close call. |
| 2217 | * mem-break.c (delete_breakpoint_at): New function. |
| 2218 | * mem-break.h (delete_breakpoint_at): Declare. |
| 2219 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 2220 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. |
| 2221 | [USE_WIN32API] (read, write): Add char* casts. |
| 2222 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. |
| 2223 | * server.h: Include wincecompat.h on Windows CE. |
| 2224 | [HAVE_ERRNO_H]: Check. |
| 2225 | (perror): Declare if not declared. |
| 2226 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. |
| 2227 | (perror_with_name): Remove errno declaration. |
| 2228 | * wincecompat.h: New. |
| 2229 | * wincecompat.c: New. |
| 2230 | * win32-low.h: New. |
| 2231 | * win32-arm-low.c: New. |
| 2232 | * win32-i386-low.c: New. |
| 2233 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. |
| 2234 | (OUTMSG2): Make it safe. |
| 2235 | (_T): New macro. |
| 2236 | (COUNTOF): New macro. |
| 2237 | (NUM_REGS): Get it from the low target. |
| 2238 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, |
| 2239 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. |
| 2240 | (thread_rec): Let low target handle debug registers. |
| 2241 | (child_add_thread): Likewise. |
| 2242 | (child_init_thread_list): Likewise. |
| 2243 | (continue_one_thread): Likewise. |
| 2244 | (regptr): New. |
| 2245 | (do_child_fetch_inferior_registers): Move to ... |
| 2246 | * win32-i386-low.c: ... here, and rename to ... |
| 2247 | (do_fetch_inferior_registers): ... this. |
| 2248 | * win32-low.c (child_fetch_inferior_registers): |
| 2249 | Go through the low target. |
| 2250 | (do_child_store_inferior_registers): Use regptr. |
| 2251 | (strwinerror): New function. |
| 2252 | (win32_create_inferior): Handle Windows CE. |
| 2253 | Use strwinerror instead of strerror on Windows error |
| 2254 | codes. Add program to the error output. |
| 2255 | Don't close the main thread handle on Windows CE. |
| 2256 | (win32_attach): Use coredll.dll on Windows CE. |
| 2257 | (win32_kill): Close current process and current |
| 2258 | thread handles. |
| 2259 | (win32_detach): Use coredll.dll on Windows CE. |
| 2260 | (win32_resume): Let low target handle debug registers, and |
| 2261 | step request. |
| 2262 | (handle_exception): Add/Remove initial breakpoint. Avoid |
| 2263 | non-existant WSTOPSIG on Windows CE. |
| 2264 | (win32_read_inferior_memory): Cast to remove warning. |
| 2265 | (win32_arch_string): Go through the low target. |
| 2266 | (initialize_low): Call set_breakpoint_data with the low |
| 2267 | target's breakpoint. |
| 2268 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, |
| 2269 | FOP_REGNUM, mappings): Move to ... |
| 2270 | * win32-i386-low.c: ... here. |
| 2271 | * win32-low.c (win32_thread_info): Move to ... |
| 2272 | * win32-low.h: ... here. |
| 2273 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, |
| 2274 | win32-arm-low.c and wincecompat.c. |
| 2275 | (all:): Add $EXEEXT. |
| 2276 | (install-only:): Likewise. |
| 2277 | (gdbserver:): Likewise. |
| 2278 | (gdbreplay:): Likewise. |
| 2279 | * config.in: Regenerate. |
| 2280 | * configure: Regenerate. |
| 2281 | |
| 2282 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2283 | |
| 2284 | * win32-low.c: Rename typedef thread_info to |
| 2285 | win32_thread_info throughout. |
| 2286 | |
| 2287 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2288 | |
| 2289 | * win32-i386-low.c: Rename to ... |
| 2290 | * win32-low.c: ... this. |
| 2291 | * configure.srv: Replace win32-i386-low.o with win32-low.o. |
| 2292 | * Makefile.in: Likewise. |
| 2293 | |
| 2294 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2295 | |
| 2296 | * remote-utils.c (monitor_output): Constify msg parameter. |
| 2297 | * server.h (monitor_output): Likewise. |
| 2298 | * win32-i386-low.c (handle_output_debug_string): New. |
| 2299 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using |
| 2300 | handle_output_debug_string. |
| 2301 | (get_child_debug_event): Likewise. |
| 2302 | |
| 2303 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
| 2304 | |
| 2305 | * server.c (main): Correct strtoul check. |
| 2306 | |
| 2307 | 2007-03-27 Jon Ringle <jon@ringle.org> |
| 2308 | |
| 2309 | * linux-low.c: Check __ARCH_HAS_MMU__ also. |
| 2310 | |
| 2311 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
| 2312 | |
| 2313 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. |
| 2314 | |
| 2315 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 2316 | |
| 2317 | * terminal.h: Check HAVE_SGTTY_H. |
| 2318 | |
| 2319 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> |
| 2320 | |
| 2321 | * remote-utils.c (remote_open): Print out the assigned port number. |
| 2322 | |
| 2323 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 2324 | |
| 2325 | * remote-utils.c (monitor_output): New function. |
| 2326 | * server.c (debug_threads): Define here. |
| 2327 | (monitor_show_help): New function. |
| 2328 | (handle_query): Handle qRcmd. |
| 2329 | (main): Do not handle 'd' packet. |
| 2330 | * server.h (debug_threads, remote_debug, monitor_output): Declare. |
| 2331 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions |
| 2332 | of debug_threads. |
| 2333 | |
| 2334 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2335 | |
| 2336 | * Makefile.in (EXEEXT): New. |
| 2337 | (clean): Use $(EXEEXT). |
| 2338 | |
| 2339 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2340 | |
| 2341 | * target.h (target_ops): Rename send_signal to request_interrupt, |
| 2342 | and remove enum target_signal parameter. |
| 2343 | * linux-low.c (linux_request_interrupt): Rename from |
| 2344 | linux_send_signal, and always send SIGINT. |
| 2345 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, |
| 2346 | and always send SIGINT. |
| 2347 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead |
| 2348 | of send_signal. |
| 2349 | (input_interrupt): Likewise. |
| 2350 | |
| 2351 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 2352 | |
| 2353 | * server.c (get_features_xml): Check if target implemented |
| 2354 | arch_string. |
| 2355 | * win32-i386-low.c (win32_arch_string): New. |
| 2356 | (win32_target_ops): Add win32_arch_string as arch_string member. |
| 2357 | |
| 2358 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
| 2359 | |
| 2360 | * spu-low.c (spu_arch_string): New. |
| 2361 | (spu_target_ops): Add spu_arch_string. |
| 2362 | |
| 2363 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 2364 | |
| 2365 | * remote-utils.c: Remove HAVE_TERMINAL_H check. |
| 2366 | * configure.ac: Do not check for terminal.h. |
| 2367 | * configure, config.in: Regenerated. |
| 2368 | |
| 2369 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 2370 | |
| 2371 | * Makefile.in (OBS): Add $(XML_BUILTIN). |
| 2372 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. |
| 2373 | (clean): Update. |
| 2374 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) |
| 2375 | (arm-with-iwmmxt.c): New. |
| 2376 | * config.in, configure: Regenerate. |
| 2377 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, |
| 2378 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. |
| 2379 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. |
| 2380 | (arm*-*-linux*): Add iWMMXt and regset support. |
| 2381 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. |
| 2382 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) |
| 2383 | (arm_store_wmmxregset, target_regsets): New. |
| 2384 | * server.c (get_features_xml): Take annex argument. Check builtin |
| 2385 | XML documents. |
| 2386 | (handle_query): Handle multiple annexes. |
| 2387 | |
| 2388 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 2389 | |
| 2390 | * remote-utils.c [USE_WIN32API] (read, write): Define. |
| 2391 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and |
| 2392 | write. |
| 2393 | |
| 2394 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
| 2395 | |
| 2396 | * linux-i386-low.c (the_low_target): Set arch_string. |
| 2397 | * linux-x86-64-low.c (the_low_target): Likewise. |
| 2398 | * linux-low.c (linux_arch_string): New. |
| 2399 | (linux_target_ops): Add it. |
| 2400 | * linux-low.h (struct linux_target_ops): Add arch_string. |
| 2401 | * server.c (write_qxfer_response): Use const void * for DATA. |
| 2402 | (get_features_xml): New. |
| 2403 | (handle_query): Handle qXfer:features:read. Report it for qSupported. |
| 2404 | * target.h (struct target_ops): Add arch_string method. |
| 2405 | |
| 2406 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
| 2407 | Daniel Jacobowitz <dan@codesourcery.com> |
| 2408 | |
| 2409 | * linux-low.c (linux_kill): Handle being called with no threads. |
| 2410 | * win32-i386-low.c (win32_kill): Likewise. |
| 2411 | (get_child_debug_event): Clear current_process_handle. |
| 2412 | |
| 2413 | 2006-12-30 Denis PILAT <denis.pilat@st.com> |
| 2414 | Daniel Jacobowitz <dan@codesourcery.com> |
| 2415 | |
| 2416 | * remote-utils.c (remote_open): Check the type of specified |
| 2417 | serial port devices before opening them. |
| 2418 | * server.c (main): Kill the inferior if an error occurs during |
| 2419 | the first remote_open. |
| 2420 | |
| 2421 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
| 2422 | |
| 2423 | * README: Update supported targets. |
| 2424 | |
| 2425 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 2426 | |
| 2427 | * Makefile.in (clean): Remove reg-mips64.c. |
| 2428 | (reg-mips64.c, reg-mips64.o): New rules. |
| 2429 | * configure.srv: Handle mips64. Include regset support for mips. |
| 2430 | * linux-mips-low.c (union mips_register): New. |
| 2431 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. |
| 2432 | (mips_breakpoint, mips_breakpoint_at): Use int. |
| 2433 | (mips_collect_register, mips_supply_register) |
| 2434 | (mips_collect_register_32bit, mips_supply_register_32bit) |
| 2435 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) |
| 2436 | (mips_store_fpregset, target_regsets): New. |
| 2437 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. |
| 2438 | |
| 2439 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
| 2440 | |
| 2441 | * configure.srv: Add target "spu*-*-*". |
| 2442 | * Makefile.in (clean): Remove reg-spu.c. |
| 2443 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. |
| 2444 | * spu-low.c: New file. |
| 2445 | |
| 2446 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 2447 | |
| 2448 | * configure.ac: Correct td_thr_tls_get_addr test. |
| 2449 | * configure: Regenerated. |
| 2450 | |
| 2451 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 2452 | |
| 2453 | * linux-low.c (linux_wait_for_event): Reformat. Use the |
| 2454 | pass_signals array. |
| 2455 | * remote-utils.c (decode_address_to_semicolon): New. |
| 2456 | * server.c (pass_signals, handle_general_set): New. |
| 2457 | (handle_query): Mention QPassSignals for qSupported. |
| 2458 | (main): Call handle_general_set. |
| 2459 | * server.h (pass_signals, decode_address_to_semicolon): New. |
| 2460 | |
| 2461 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 2462 | |
| 2463 | * server.c (handle_query): Correct error handling for read_auxv. |
| 2464 | |
| 2465 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
| 2466 | |
| 2467 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets |
| 2468 | and srv_linux_thread_db to yes. |
| 2469 | * linux-s390-low.c (s390_fill_gregset): New function. |
| 2470 | (target_regsets): Define data structure. |
| 2471 | |
| 2472 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 2473 | |
| 2474 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. |
| 2475 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. |
| 2476 | * config.in, configure: Regenerated. |
| 2477 | * inferiors.c (gdb_id_to_thread): New function. |
| 2478 | (gdb_id_to_thread_id): Use it. |
| 2479 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. |
| 2480 | * linux-low.h (struct process_info): Add th member. |
| 2481 | (thread_db_get_tls_address): New prototype. |
| 2482 | * remote-utils.c (decode_address): Make non-static. |
| 2483 | * server.c (handle_query): Handle qGetTLSAddr. |
| 2484 | * server.h (gdb_id_to_thread, decode_address): New prototypes. |
| 2485 | * target.h (struct target_ops): Add get_tls_address. |
| 2486 | * thread-db.c (maybe_attach_thread): Save the thread handle. |
| 2487 | (thread_db_get_tls_address): New. |
| 2488 | |
| 2489 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 2490 | |
| 2491 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. |
| 2492 | (linux_resume_one_process): Take a siginfo_t *. Update all |
| 2493 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. |
| 2494 | (struct pending_signals): Add a siginfo_t. |
| 2495 | (linux_wait_for_process): Always set last_status. |
| 2496 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. |
| 2497 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. |
| 2498 | * linux-low.h (struct process_info): Add last_status. |
| 2499 | |
| 2500 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 2501 | |
| 2502 | * remote-utils.c (try_rle): New function. |
| 2503 | (putpkt_binary): Use it. |
| 2504 | |
| 2505 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 2506 | |
| 2507 | * Makefile.in (clean): Clean reg-x86-64-linux.c. |
| 2508 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. |
| 2509 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. |
| 2510 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. |
| 2511 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating |
| 2512 | point registers. |
| 2513 | |
| 2514 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
| 2515 | |
| 2516 | * server.c (terminal_fd): New variable. |
| 2517 | (old_foreground_pgrp): Likewise. |
| 2518 | (restore_old_foreground_pgrp): New function. |
| 2519 | (start_inferior): Record the terminal file descriptor in terminal_fd |
| 2520 | and its original foreground group in old_foreground_pgrp. Register |
| 2521 | restore_old_foreground_pgrp with atexit(). |
| 2522 | |
| 2523 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 2524 | |
| 2525 | * server.c (handle_query): Correct qPart to qXfer. |
| 2526 | |
| 2527 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 2528 | |
| 2529 | * configure.ac: Check for more headers which are missing on |
| 2530 | Windows. Automatically supply -lwsock32 and USE_WIN32API. |
| 2531 | * configure.srv: Add Cygwin and mingw32. |
| 2532 | * remote-utils.c: Don't include headers unconditionally which |
| 2533 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 2534 | (remote_open): Adjust for mingw32 support. Flush |
| 2535 | standard error after writing to it. |
| 2536 | (remote_close, putpkt_binary, input_interrupt, block_async_io) |
| 2537 | (unblock_async_io, enable_async_io, disable_async_io) |
| 2538 | (readchar, getpkt): Update for Winsock support. |
| 2539 | (prepare_resume_reply): Expect a protocol signal number. |
| 2540 | * server.c: Disable <sys/wait.h> on mingw32. |
| 2541 | (start_inferior): Adjust for mingw32 support. Flush |
| 2542 | standard error after writing to it. |
| 2543 | (attach_inferior): Likewise. Use protocol signal |
| 2544 | numbers. |
| 2545 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers |
| 2546 | and names. |
| 2547 | * win32-i386-low.c: New file. |
| 2548 | * Makefile.in (XM_CLIBS): Set. |
| 2549 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). |
| 2550 | (win32-i386-low.o): New dependency rule. |
| 2551 | * linux-low.c (linux_wait): Use target signal numbers. |
| 2552 | * target.h (struct target_ops): Doc fix. |
| 2553 | * server.h (target_signal_to_name): New prototype. |
| 2554 | * gdbreplay.c: Don't include headers unconditionally which |
| 2555 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 2556 | (remote_close, remote_open): Adjust for Winsock support. |
| 2557 | * configure, config.in: Regenerated. |
| 2558 | |
| 2559 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 2560 | |
| 2561 | * server.c (decode_xfer_read, write_qxfer_response): New. |
| 2562 | (handle_query): Take a packet length argument. Handle |
| 2563 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in |
| 2564 | the qSupported response. |
| 2565 | (main): Update call to handle_query. |
| 2566 | |
| 2567 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 2568 | |
| 2569 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. |
| 2570 | (putpkt_binary): Renamed from putpkt and adjusted for binary |
| 2571 | data. |
| 2572 | (putpkt): New wrapper for putpkt_binary. |
| 2573 | (readchar): Don't mask off the high bit. |
| 2574 | (decode_X_packet): New function. |
| 2575 | * server.c (main): Call putpkt_binary if a handler sets the packet |
| 2576 | length. Save the length of the incoming packet. Handle 'X'. |
| 2577 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. |
| 2578 | |
| 2579 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 2580 | |
| 2581 | * server.c (handle_query): Handle qSupported. |
| 2582 | |
| 2583 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 2584 | |
| 2585 | * remote-utils.c (all_symbols_looked_up): New variable. |
| 2586 | (look_up_one_symbol): Check it. |
| 2587 | * server.h (look_up_one_symbol): New declaration. |
| 2588 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. |
| 2589 | |
| 2590 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 2591 | |
| 2592 | * Makefile.in (linux-arm-low.o): Update dependencies. |
| 2593 | * linux-arm-low.c: Include "gdb_proc_service.h". |
| 2594 | (PTRACE_GET_THREAD_AREA): Define. |
| 2595 | (ps_get_thread_area): New function. |
| 2596 | |
| 2597 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
| 2598 | |
| 2599 | * configure.srv (m68k*-*-uclinux*): New target. |
| 2600 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. |
| 2601 | (linux_resume_one_process): Remove extraneous cast. |
| 2602 | (linux_read_offsets): New. |
| 2603 | (linux_target_op): Add linux_read_offsets on mmuless systems. |
| 2604 | * server.c (handle_query): Add qOffsets logic. |
| 2605 | * target.h (struct target_ops): Add read_offsets. |
| 2606 | |
| 2607 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 2608 | |
| 2609 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". |
| 2610 | (PTRACE_GET_THREAD_AREA): Define. |
| 2611 | (ps_get_thread_area): New function. |
| 2612 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) |
| 2613 | (linux-x86-64-low.o): Update. |
| 2614 | |
| 2615 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 2616 | |
| 2617 | * configure.ac: Remove checks for prfpregset_t. |
| 2618 | * gdb_proc_service.h: New file. |
| 2619 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the |
| 2620 | new "gdb_proc_service.h". |
| 2621 | * proc-service.c: Likewise. |
| 2622 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. |
| 2623 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. |
| 2624 | * Makefile.in (gdb_proc_service_h): Updated. |
| 2625 | * configure, config.in: Regenerated. |
| 2626 | |
| 2627 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 2628 | |
| 2629 | * remote-utils.c (prepare_resume_reply): Move declaration |
| 2630 | of gdb_id_from_wait to the top of the block. |
| 2631 | |
| 2632 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 2633 | |
| 2634 | * linux-low.c (regsets_store_inferior_registers): Read the regset |
| 2635 | from the target before filling it. |
| 2636 | |
| 2637 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 2638 | |
| 2639 | * server.c (attach_inferior): Return SIGTRAP for a successful |
| 2640 | attach. |
| 2641 | |
| 2642 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 2643 | |
| 2644 | * Makefile.in (OBS): Add version.o. |
| 2645 | (STAGESTUFF): Delete. |
| 2646 | (version.o): Add dependencies. |
| 2647 | (version.c): Replace rule. |
| 2648 | (clean): Remove version.c. |
| 2649 | * server.c (gdbserver_version): New. |
| 2650 | (gdbserver_usage): Use printf. |
| 2651 | (main): Handle --version and --help. |
| 2652 | * server.h (version, host_name): Add declarations. |
| 2653 | |
| 2654 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
| 2655 | |
| 2656 | * linux-arm-low.c: |
| 2657 | * linux-arm-low.c: |
| 2658 | * inferiors.c: |
| 2659 | * i387-fp.h: |
| 2660 | * i387-fp.c: |
| 2661 | * gdbreplay.c: |
| 2662 | * regcache.c: |
| 2663 | * proc-service.c: |
| 2664 | * mem-break.h: |
| 2665 | * mem-break.c: |
| 2666 | * linux-x86-64-low.c: |
| 2667 | * linux-sh-low.c: |
| 2668 | * linux-s390-low.c: |
| 2669 | * linux-ppc64-low.c: |
| 2670 | * linux-ppc-low.c: |
| 2671 | * linux-mips-low.c: |
| 2672 | * linux-m68k-low.c: |
| 2673 | * linux-m32r-low.c: |
| 2674 | * linux-low.h: |
| 2675 | * linux-low.c: |
| 2676 | * linux-ia64-low.c: |
| 2677 | * linux-i386-low.c: |
| 2678 | * linux-crisv32-low.c: |
| 2679 | * thread-db.c: |
| 2680 | * terminal.h: |
| 2681 | * target.h: |
| 2682 | * target.c: |
| 2683 | * server.h: |
| 2684 | * server.c: |
| 2685 | * remote-utils.c: |
| 2686 | * regcache.h: |
| 2687 | * utils.c: |
| 2688 | * Makefile.in: |
| 2689 | * configure.ac: |
| 2690 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
| 2691 | address. |
| 2692 | |
| 2693 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 2694 | |
| 2695 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. |
| 2696 | (arm_breakpoint_at): Recognize both breakpoints. |
| 2697 | (the_low_target): Use the correct breakpoint instruction. |
| 2698 | |
| 2699 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 2700 | |
| 2701 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. |
| 2702 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) |
| 2703 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. |
| 2704 | (the_low_target): Update. |
| 2705 | |
| 2706 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
| 2707 | |
| 2708 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. |
| 2709 | |
| 2710 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. |
| 2711 | (ia64_num_regs): Reduce to 462. |
| 2712 | |
| 2713 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 2714 | |
| 2715 | * acinclude.m4: Correct quoting. |
| 2716 | * aclocal.m4: Regenerated. |
| 2717 | |
| 2718 | Suggested by SZOKOVACS Robert <szo@ies.hu>: |
| 2719 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. |
| 2720 | (thread_db_init): Call thread_db_err_str. |
| 2721 | * configure.ac: Check for TD_VERSION. |
| 2722 | * config.in, configure: Regenerated. |
| 2723 | |
| 2724 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
| 2725 | |
| 2726 | * server.h (error, fatal, warning): Add ATTR_FORMAT. |
| 2727 | |
| 2728 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 2729 | |
| 2730 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS |
| 2731 | is not available. Define HAVE_PTRACE_GETREGS if it is. |
| 2732 | * config.in, configure: Regenerated. |
| 2733 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. |
| 2734 | * linux-i386-low.c, linux-m68k-low.c: Update to use |
| 2735 | HAVE_PTRACE_GETREGS. |
| 2736 | * linux-low.c (regsets_fetch_inferior_registers) |
| 2737 | (regsets_store_inferior_registers): Only return 0 if we processed |
| 2738 | GENERAL_REGS. |
| 2739 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. |
| 2740 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. |
| 2741 | |
| 2742 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 2743 | |
| 2744 | * inferiors.c (struct thread_info): Add gdb_id. |
| 2745 | (add_thread): Add gdb_id argument. |
| 2746 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. |
| 2747 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update |
| 2748 | calls to add_thread. |
| 2749 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. |
| 2750 | * server.c (handle_query): Use thread_to_gdb_id. |
| 2751 | (handle_v_cont, main): Use gdb_id_to_thread_id. |
| 2752 | * server.h (add_thread): Update prototype. |
| 2753 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New |
| 2754 | prototypes. |
| 2755 | |
| 2756 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 2757 | |
| 2758 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle |
| 2759 | left-padded registers. |
| 2760 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. |
| 2761 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. |
| 2762 | |
| 2763 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
| 2764 | |
| 2765 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. |
| 2766 | * configure: Regenerate. |
| 2767 | * config.in: Regenerate. |
| 2768 | * server.h (NEED_DECLARATION_STRERROR): |
| 2769 | Replace with !HAVE_DECL_STRERROR. |
| 2770 | |
| 2771 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 2772 | |
| 2773 | * linux-low.c (linux_wait, linux_send_signal): Don't test |
| 2774 | an unsigned long variable for > 0 if it could be MAX_ULONG. |
| 2775 | * server.c (myresume): Likewise. |
| 2776 | * target.c (set_desired_inferior): Likewise. |
| 2777 | |
| 2778 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
| 2779 | |
| 2780 | * configure.ac: Simplify and improve check for socklen_t. |
| 2781 | * configure, config.in: Regenerate. |
| 2782 | |
| 2783 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 2784 | |
| 2785 | * acconfig.h: Remove. |
| 2786 | * configure.ac: Add a test for socklen_t. Use three-argument |
| 2787 | AC_DEFINE throughout. |
| 2788 | * config.in: Regenerated using autoheader 2.59. |
| 2789 | * configure: Regenerated. |
| 2790 | |
| 2791 | * gdbreplay.c (socklen_t): Provide a default. |
| 2792 | (remote_open): Use socklen_t. |
| 2793 | * remote-utils.c (socklen_t): Provide a default. |
| 2794 | (remote_open): Use socklen_t. |
| 2795 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use |
| 2796 | unsigned char. |
| 2797 | |
| 2798 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned |
| 2799 | char for buffers. |
| 2800 | * linux-low.c (linux_read_memory, linux_write_memory) |
| 2801 | (linux_read_auxv): Likewise. |
| 2802 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) |
| 2803 | (check_mem_write): Likewise. |
| 2804 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): |
| 2805 | Likewise. |
| 2806 | * regcache.c (struct inferior_rgcache_data, registers_to_string) |
| 2807 | (registers_from_string, register_data): Likewise. |
| 2808 | * server.c (handle_query, main): Likewise. |
| 2809 | * server.h (convert_ascii_to_int, convert_int_to_ascii) |
| 2810 | (decode_M_packet): Likewise. |
| 2811 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. |
| 2812 | * target.h (struct target_ops): Update read_memory, write_memory, |
| 2813 | and read_auxv. |
| 2814 | (read_inferior_memory, write_inferior_memory): Update. |
| 2815 | * linux-low.h (struct linux_target_ops): Change type of breakpoint |
| 2816 | to unsigned char *. |
| 2817 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, |
| 2818 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, |
| 2819 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, |
| 2820 | linux-s390-low.c, linux-sh-low.c: Update for changes in |
| 2821 | read_inferior_memory and the_low_target->breakpoint. |
| 2822 | |
| 2823 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 2824 | |
| 2825 | * Makefile.in (SFILES): Add linux-ppc64-low.c. |
| 2826 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. |
| 2827 | * configure.srv: Add powerpc64-*-linux*. |
| 2828 | * linux-ppc64-low.c: New file. |
| 2829 | |
| 2830 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
| 2831 | |
| 2832 | * linux-cris-low.c: New file with support for CRIS. |
| 2833 | * linux-crisv32-low.c: Ditto for CRISv32. |
| 2834 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. |
| 2835 | (clean): Add reg-cris.c and reg-crisv32.c. |
| 2836 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
| 2837 | reg-crisv32.o, and reg-crisv32.c to make rules. |
| 2838 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of |
| 2839 | recognized targets. |
| 2840 | |
| 2841 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
| 2842 | |
| 2843 | * linux-low.c (fetch_register): Ensure buffer size is a multiple |
| 2844 | of sizeof (PTRACE_XFER_TYPE). |
| 2845 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. |
| 2846 | |
| 2847 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
| 2848 | |
| 2849 | * target.h (struct target_ops): Add insert_watchpoint, |
| 2850 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
| 2851 | pointers for hardware watchpoint support. |
| 2852 | * linux-low.h (struct linux_target_ops): Ditto. |
| 2853 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) |
| 2854 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add |
| 2855 | to linux_target_ops. |
| 2856 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to |
| 2857 | reply packet. |
| 2858 | * server.c (main): Recognize 'Z' and 'z' packets. |
| 2859 | |
| 2860 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
| 2861 | |
| 2862 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. |
| 2863 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. |
| 2864 | (the_low_target): Add new members. |
| 2865 | |
| 2866 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 2867 | |
| 2868 | * proc-service.c (ps_lgetregs): Search all_processes instead of |
| 2869 | all_threads. |
| 2870 | |
| 2871 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 2872 | |
| 2873 | * server.c (start_inferior): Change return type to int. |
| 2874 | (attach_inferior): Change sigptr to int *. |
| 2875 | (handle_v_cont, handle_v_requests): Change signal to int *. |
| 2876 | (main): Change signal to int. |
| 2877 | |
| 2878 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> |
| 2879 | |
| 2880 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. |
| 2881 | * configure.srv: Add m32r*-*-linux*. |
| 2882 | * linux-m32r-low.c: New file. |
| 2883 | |
| 2884 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 2885 | |
| 2886 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. |
| 2887 | |
| 2888 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 2889 | |
| 2890 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): |
| 2891 | Take unsigned long arguments for PIDs. |
| 2892 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) |
| 2893 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) |
| 2894 | (wait_for_sigstop, linux_resume_one_process) |
| 2895 | (regsets_fetch_inferior_registers, linux_send_signal) |
| 2896 | (linux_read_auxv): Likewise. Update the types of variables holding |
| 2897 | PIDs. Update format string specifiers. |
| 2898 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. |
| 2899 | * remote-utils.c (prepare_resume_reply): Likewise. |
| 2900 | * server.c (cont_thread, general_thread, step_thread) |
| 2901 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to |
| 2902 | unsigned long. |
| 2903 | (handle_query): Update format specifiers. |
| 2904 | (handle_v_cont, main): Use strtoul for thread IDs. |
| 2905 | * server.h (struct inferior_list_entry): Use unsigned long for ID. |
| 2906 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) |
| 2907 | (general_thread, step_thread, thread_from_wait) |
| 2908 | (old_thread_from_wait): Update. |
| 2909 | * target.h (struct thread_resume): Use unsigned long for THREAD. |
| 2910 | (struct target_ops): Use unsigned long for arguments to attach and |
| 2911 | thread_alive. |
| 2912 | |
| 2913 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 2914 | |
| 2915 | * acinclude.m4: Include bfd/bfd.m4 directly. |
| 2916 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis |
| 2917 | <agriffis@toolchain.org>. |
| 2918 | * aclocal.m4, configure: Regenerated. |
| 2919 | |
| 2920 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
| 2921 | |
| 2922 | * configure.ac: Rename configure.in, require autoconf 2.59. |
| 2923 | * configure: Re-generate. |
| 2924 | |
| 2925 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
| 2926 | |
| 2927 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset |
| 2928 | LIBS when finished. |
| 2929 | * aclocal.m4: Regenerated. |
| 2930 | * configure: Regenerated. |
| 2931 | |
| 2932 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
| 2933 | |
| 2934 | * linux-m68k-low.c (m68k_num_gregs): Define. |
| 2935 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) |
| 2936 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. |
| 2937 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) |
| 2938 | (m68k_breakpoint_at): New. Add to the_low_target. |
| 2939 | |
| 2940 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and |
| 2941 | srv_linux_thread_db to yes. |
| 2942 | |
| 2943 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
| 2944 | |
| 2945 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. |
| 2946 | (ARCH_SET_FS): Likewise. |
| 2947 | (ARCH_GET_FS): Likewise. |
| 2948 | (ARCH_GET_GS): Likewise. |
| 2949 | |
| 2950 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 2951 | |
| 2952 | * linux-i386-low.c (ps_get_thread_area): New. |
| 2953 | * linux-x86-64-low.c (ps_get_thread_area): New. |
| 2954 | * linux-low.c: Include <sys/syscall.h>. |
| 2955 | (linux_kill_one_process): Don't kill the first thread here. |
| 2956 | (linux_kill): Kill the first thread here. |
| 2957 | (kill_lwp): New function. |
| 2958 | (send_sigstop, linux_send_signal): Use it. |
| 2959 | * proc-service.c: Clean up #ifdefs. |
| 2960 | (fpregset_info): Delete. |
| 2961 | (ps_lgetregs): Update and enable implementation. |
| 2962 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled |
| 2963 | implementations. |
| 2964 | * remote-utils.c (struct sym_cache, symbol_cache): New. |
| 2965 | (input_interrupt): Print a clearer message. |
| 2966 | (async_io_enabled): New variable. |
| 2967 | (enable_async_io, disable_async_io): Use it. Update comments. |
| 2968 | (look_up_one_symbol): Use the symbol cache. |
| 2969 | * thread-db.c (thread_db_look_up_symbols): New function. |
| 2970 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. |
| 2971 | |
| 2972 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 2973 | |
| 2974 | * configure.in: Test for -rdynamic. |
| 2975 | * configure: Regenerated. |
| 2976 | * Makefile (INTERNAL_LDFLAGS): New. |
| 2977 | (gdbserver, gdbreplay): Use it. |
| 2978 | |
| 2979 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
| 2980 | |
| 2981 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. |
| 2982 | |
| 2983 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
| 2984 | |
| 2985 | * linux-low.c (linux_wait): Clear all_processes list also. |
| 2986 | |
| 2987 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 2988 | |
| 2989 | * linux-low.c: Include <errno.h>. Remove extern declaration of |
| 2990 | errno. |
| 2991 | |
| 2992 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 2993 | |
| 2994 | * gdbreplay.c, server.h, utils.c: Update copyright years. |
| 2995 | |
| 2996 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 2997 | |
| 2998 | * server.c (main): Print child status or termination signal from |
| 2999 | variable 'signal', not 'sig'. |
| 3000 | |
| 3001 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 3002 | |
| 3003 | * linux-low.c (linux_read_memory): Change return type to |
| 3004 | int. Check for and return error from ptrace(). |
| 3005 | * target.c (read_inferior_memory): Change return type to int. Pass |
| 3006 | back return status from the_target->read_memory(). |
| 3007 | * target.h (struct target_ops): Adapt *read_memory() prototype. |
| 3008 | Update comment. |
| 3009 | (read_inferior_memory): Adapt prototype. |
| 3010 | * server.c (main): Return an error packet if |
| 3011 | read_inferior_memory() returns an error. |
| 3012 | |
| 3013 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
| 3014 | |
| 3015 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. |
| 3016 | Unify with other clean targets. |
| 3017 | |
| 3018 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 3019 | |
| 3020 | * server.c (handle_v_cont): Call set_desired_inferior. |
| 3021 | |
| 3022 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 3023 | |
| 3024 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". |
| 3025 | |
| 3026 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 3027 | |
| 3028 | * linux-low.c (linux_wait): Unblock async I/O. |
| 3029 | (linux_resume): Block and enable async I/O. |
| 3030 | * remote-utils.c (block_async_io, unblock_async_io): New functions. |
| 3031 | * server.h (block_async_io, unblock_async_io): Add prototypes. |
| 3032 | |
| 3033 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 3034 | |
| 3035 | * remote-utils.c (remote_open): Print a status notice after |
| 3036 | opening a TCP port. |
| 3037 | * server.c (attach_inferior): Print a status notice after |
| 3038 | attaching. |
| 3039 | |
| 3040 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 3041 | |
| 3042 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. |
| 3043 | |
| 3044 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
| 3045 | |
| 3046 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the |
| 3047 | error packet. |
| 3048 | * server.c, target.h: Update copyright years. |
| 3049 | |
| 3050 | 2004-02-25 Roland McGrath <roland@redhat.com> |
| 3051 | |
| 3052 | * target.h (struct target_ops): New member `read_auxv'. |
| 3053 | * server.c (handle_query): Handle qPart:auxv:read: query using that. |
| 3054 | * linux-low.c (linux_read_auxv): New function. |
| 3055 | (linux_target_ops): Initialize `read_auxv' member to that. |
| 3056 | |
| 3057 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
| 3058 | |
| 3059 | Committed by Jim Blandy <jimb@redhat.com>. |
| 3060 | |
| 3061 | * linux-s390-low.c (s390_num_regs): Update. |
| 3062 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
| 3063 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
| 3064 | |
| 3065 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
| 3066 | |
| 3067 | * linux-low.c: Update copyright year. |
| 3068 | (check_removed_breakpoint): Clear pending_is_breakpoint. |
| 3069 | (linux_set_resume_request, linux_queue_one_thread) |
| 3070 | (resume_status_pending_p): New functions. |
| 3071 | (linux_continue_one_thread): Use process->resume. |
| 3072 | (linux_resume): Only resume threads if there are no pending events. |
| 3073 | * linux-low.h (struct process_info): Add resume request |
| 3074 | pointer. |
| 3075 | |
| 3076 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
| 3077 | |
| 3078 | * regcache.c (new_register_cache): Clear the allocated register |
| 3079 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. |
| 3080 | |
| 3081 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
| 3082 | |
| 3083 | * linux-low.c (linux_resume): Take a struct thread_resume * |
| 3084 | argument. |
| 3085 | (linux_wait): Update call. |
| 3086 | (resume_ptr): New static variable. |
| 3087 | (linux_continue_one_thread): Renamed from |
| 3088 | linux_continue_one_process. Use resume_ptr. |
| 3089 | (linux_resume): Use linux_continue_one_thread. |
| 3090 | * server.c (handle_v_cont, handle_v_requests): New functions. |
| 3091 | (myresume): New function. |
| 3092 | (main): Handle 'v' case. |
| 3093 | * target.h (struct thread_resume): New type. |
| 3094 | (struct target_ops): Change argument of "resume" to struct |
| 3095 | thread_resume *. |
| 3096 | (myresume): Delete macro. |
| 3097 | |
| 3098 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
| 3099 | |
| 3100 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. |
| 3101 | (uninstall): Support DESTDIR. |
| 3102 | |
| 3103 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
| 3104 | |
| 3105 | * configure.srv: Add xscale*linux copy of arm*linux entry. |
| 3106 | |
| 3107 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
| 3108 | |
| 3109 | * linux-arm-low.c (arm_reinsert_addr): New function. |
| 3110 | (the_low_target): Add arm_reinsert_addr. |
| 3111 | |
| 3112 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
| 3113 | |
| 3114 | * mem-break.c: Remove whitespace at end of file. |
| 3115 | |
| 3116 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 3117 | |
| 3118 | * configure.in: Check whether we need to prototype strerror. |
| 3119 | * server.h: Optionally prototype strerror. |
| 3120 | * gdbreplay.c (perror_with_name): Use strerror. |
| 3121 | * linux-low.c (linux_attach_lwp): Use strerror. |
| 3122 | * utils.c (perror_with_name): Use strerror. |
| 3123 | * config.in, configure: Regenerated. |
| 3124 | |
| 3125 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 3126 | |
| 3127 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by |
| 3128 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. |
| 3129 | |
| 3130 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
| 3131 | |
| 3132 | * Makefile.in (SFILES): Update. |
| 3133 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, |
| 3134 | low-sun3.c: Remove files. |
| 3135 | |
| 3136 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
| 3137 | |
| 3138 | * linux-low.c: Move comment to linux_thread_alive where it belonged. |
| 3139 | (linux_detach_one_process, linux_detach): New functions. |
| 3140 | (linux_target_ops): Add linux_detach. |
| 3141 | * server.c (main): Handle 'D' packet. |
| 3142 | * target.h (struct target_ops): Add "detach" member. |
| 3143 | (detach_inferior): Define. |
| 3144 | |
| 3145 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
| 3146 | |
| 3147 | From Kelley Cook <kelleycook@wideopenwest.com>: |
| 3148 | * configure.srv: Accept i[34567]86 variants. |
| 3149 | |
| 3150 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
| 3151 | |
| 3152 | * linux-low.c (linux_wait_for_event): Correct comment typos. |
| 3153 | (linux_resume_one_process): Call check_removed_breakpoint. |
| 3154 | (linux_send_signal): New function. |
| 3155 | (linux_target_ops): Add linux_send_signal. |
| 3156 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead |
| 3157 | of kill. |
| 3158 | * target.h (struct target_ops): Add send_signal. |
| 3159 | |
| 3160 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
| 3161 | |
| 3162 | * linux-low.c (usr_store_inferior_registers): Transfer buf in |
| 3163 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, |
| 3164 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing |
| 3165 | away part of the register's value. |
| 3166 | |
| 3167 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
| 3168 | |
| 3169 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. |
| 3170 | (linux_wait_for_event, linux_init_signals): Likewise. |
| 3171 | |
| 3172 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
| 3173 | |
| 3174 | * configure.in: Check for stdlib.h. |
| 3175 | * configure: Regenerated. |
| 3176 | * config.in: Regenerated. |
| 3177 | |
| 3178 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
| 3179 | |
| 3180 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. |
| 3181 | |
| 3182 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
| 3183 | |
| 3184 | * Makefile.in: Remove obsolete code. |
| 3185 | |
| 3186 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
| 3187 | |
| 3188 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of |
| 3189 | defined(PT_FPR0_HI). |
| 3190 | |
| 3191 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
| 3192 | |
| 3193 | * linux-arm-low.c (arm_num_regs): Increase. |
| 3194 | (arm_regmap): Include status register. |
| 3195 | |
| 3196 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> |
| 3197 | |
| 3198 | * linux-low.c (register_addr): Remove incorrect -1 check. |
| 3199 | |
| 3200 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
| 3201 | |
| 3202 | * linux-low.c (linux_create_inferior): Call setpgid. Return |
| 3203 | the new PID. |
| 3204 | (unstopped_p, linux_signal_pid): Remove. |
| 3205 | (linux_target_ops): Remove linux_signal_pid. |
| 3206 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid |
| 3207 | global instead of target method. |
| 3208 | * target.h (struct target_ops): Remove signal_pid. Update comment |
| 3209 | for create_inferior. |
| 3210 | * server.c (signal_pid): New variable. |
| 3211 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in |
| 3212 | gdbserver. Set the child to be the foreground process group. |
| 3213 | (attach_inferior): Set signal_pid. |
| 3214 | |
| 3215 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
| 3216 | |
| 3217 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. |
| 3218 | |
| 3219 | 2002-08-20 Jim Blandy <jimb@redhat.com> |
| 3220 | |
| 3221 | * Makefile.in (LDFLAGS): Allow the configure script to establish a |
| 3222 | default for this. |
| 3223 | |
| 3224 | 2002-08-01 Andrew Cagney <cagney@redhat.com> |
| 3225 | |
| 3226 | * Makefile.in: Make chill references obsolete. |
| 3227 | |
| 3228 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> |
| 3229 | |
| 3230 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. |
| 3231 | * configure: Regenerate. |
| 3232 | * config.in: Regenerate. |
| 3233 | |
| 3234 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> |
| 3235 | |
| 3236 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. |
| 3237 | (perror_with_name, remote_close, remote_open, expect, play): Static. |
| 3238 | |
| 3239 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> |
| 3240 | |
| 3241 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
| 3242 | byte offsets instead of an array of indexes. |
| 3243 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. |
| 3244 | |
| 3245 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> |
| 3246 | |
| 3247 | * regcache.c: Add comment. |
| 3248 | |
| 3249 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> |
| 3250 | |
| 3251 | * thread-db.c: New file. |
| 3252 | * proc-service.c: New file. |
| 3253 | * acinclude.m4: New file. |
| 3254 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, |
| 3255 | proc-service.o, and thread-db.o. |
| 3256 | (linux-low.o): Add USE_THREAD_DB. |
| 3257 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, |
| 3258 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. |
| 3259 | * aclocal.m4: Regenerated. |
| 3260 | * config.in: Regenerated. |
| 3261 | * configure: Regenerated. |
| 3262 | * configure.in: Check for proc_service.h, sys/procfs.h, |
| 3263 | thread_db.h, and linux/elf.h headrs. |
| 3264 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and |
| 3265 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. |
| 3266 | Check for -lthread_db and thread support. |
| 3267 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, |
| 3268 | PowerPC, and SuperH. |
| 3269 | * i387-fp.c: Constify arguments. |
| 3270 | * i387-fp.h: Likewise. |
| 3271 | * inferiors.c: (struct thread_info): Renamed from |
| 3272 | `struct inferior_info'. Remove PID member. Use generic inferior |
| 3273 | list header. All uses updated. |
| 3274 | (inferiors, signal_pid): Removed. |
| 3275 | (all_threads): New variable. |
| 3276 | (get_thread): Define. |
| 3277 | (add_inferior_to_list): New function. |
| 3278 | (for_each_inferior): New function. |
| 3279 | (change_inferior_id): New function. |
| 3280 | (add_inferior): Removed. |
| 3281 | (remove_inferior): New function. |
| 3282 | (add_thread): New function. |
| 3283 | (free_one_thread): New function. |
| 3284 | (remove_thread): New function. |
| 3285 | (clear_inferiors): Use for_each_inferior and free_one_thread. |
| 3286 | (find_inferior): New function. |
| 3287 | (find_inferior_id): New function. |
| 3288 | (inferior_target_data): Update argument type. |
| 3289 | (set_inferior_target_data): Likewise. |
| 3290 | (inferior_regcache_data): Likewise. |
| 3291 | (set_inferior_regcache_data): Likewise. |
| 3292 | * linux-low.c (linux_bp_reinsert): Remove. |
| 3293 | (all_processes, stopping_threads, using_thrads) |
| 3294 | (struct pending_signals, debug_threads, pid_of): New. |
| 3295 | (inferior_pid): Replace with macro. |
| 3296 | (struct inferior_linux_data): Remove. |
| 3297 | (get_stop_pc, add_process): New functions. |
| 3298 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. |
| 3299 | Use add_process and add_thread. |
| 3300 | (linux_attach_lwp): New function, based on old linux_attach. Use |
| 3301 | add_process and add_thread. Set stop_expected for new threads. |
| 3302 | (linux_attach): New function. |
| 3303 | (linux_kill_one_process): New function. |
| 3304 | (linux_kill): Kill all LWPs. |
| 3305 | (linux_thread_alive): Use find_inferior_id. |
| 3306 | (check_removed_breakpoints, status_pending_p): New functions. |
| 3307 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. |
| 3308 | Update. Use WNOHANG. Wait for cloned processes also. Update process |
| 3309 | struct for the found process. |
| 3310 | (linux_wait_for_event): New function. |
| 3311 | (linux_wait): Use it. Support LWPs. |
| 3312 | (send_sigstop, wait_for_sigstop, stop_all_processes) |
| 3313 | (linux_resume_one_process, linux_continue_one_process): New functions. |
| 3314 | (linux_resume): Support LWPs. |
| 3315 | (REGISTER_RAW_SIZE): Remove. |
| 3316 | (fetch_register): Use register_size instead. Call supply_register. |
| 3317 | (usr_store_inferior_registers): Likewise. Call collect_register. |
| 3318 | Fix recursive case. |
| 3319 | (regsets_fetch_inferior_registers): Improve error message. |
| 3320 | (regsets_store_inferior_registers): Add debugging. |
| 3321 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. |
| 3322 | (unstopped_p, linux_signal_pid): New functions. |
| 3323 | (linux_target_ops): Add linux_signal_pid. |
| 3324 | (linux_init_signals): New function. |
| 3325 | (initialize_low): Call it. Initialize using_threads. |
| 3326 | * regcache.c (inferior_regcache_data): Add valid |
| 3327 | flag. |
| 3328 | (get_regcache): Fetch registers lazily. Add fetch argument |
| 3329 | and update all callers. |
| 3330 | (regcache_invalidate_one, regcache_invalidate): New |
| 3331 | functions. |
| 3332 | (new_register_cache): Renamed from create_register_cache. |
| 3333 | Return the new regcache. |
| 3334 | (free_register_cache): Change argument to a void *. |
| 3335 | (registers_to_string, registers_from_string): Call get_regcache |
| 3336 | with fetch flag set. |
| 3337 | (register_data): Make static. Pass fetch flag to get_regcache. |
| 3338 | (supply_register): Call get_regcache with fetch flag clear. |
| 3339 | (collect_register): Call get_regcache with fetch flag set. |
| 3340 | (collect_register_as_string): New function. |
| 3341 | * regcache.h: Update. |
| 3342 | * remote-utils.c (putpkt): Flush after debug output and use |
| 3343 | stderr. |
| 3344 | Handle input interrupts while waiting for an ACK. |
| 3345 | (input_interrupt): Use signal_pid method. |
| 3346 | (getpkt): Flush after debug output and use stderr. |
| 3347 | (outreg): Use collect_register_as_string. |
| 3348 | (new_thread_notify, dead_thread_notify): New functions. |
| 3349 | (prepare_resume_reply): Check using_threads. Set thread_from_wait |
| 3350 | and general_thread. |
| 3351 | (look_up_one_symbol): Flush after debug output. |
| 3352 | * server.c (step_thread, server_waiting): New variables. |
| 3353 | (start_inferior): Don't use signal_pid. Update call to mywait. |
| 3354 | (attach_inferior): Update call to mywait. |
| 3355 | (handle_query): Handle qfThreadInfo and qsThreadInfo. |
| 3356 | (main): Don't fetch/store registers explicitly. Use |
| 3357 | set_desired_inferior. Support proposed ``Hs'' packet. Update |
| 3358 | calls to mywait. |
| 3359 | * server.h: Update. |
| 3360 | (struct inferior_list, struct_inferior_list_entry): New. |
| 3361 | * target.c (set_desired_inferior): New. |
| 3362 | (write_inferior_memory): Constify. |
| 3363 | (mywait): New function. |
| 3364 | * target.h: Update. |
| 3365 | (struct target_ops): New signal_pid method. |
| 3366 | (mywait): Removed macro, added prototype. |
| 3367 | |
| 3368 | * linux-low.h (regset_func): Removed. |
| 3369 | (regset_fill_func, regset_store_func): New. |
| 3370 | (enum regset_type): New. |
| 3371 | (struct regset_info): Add type field. Use new operation types. |
| 3372 | (struct linux_target_ops): stop_pc renamed to get_pc. |
| 3373 | Add decr_pc_after_break and breakpoint_at. |
| 3374 | (get_process, get_thread_proess, get_process_thread) |
| 3375 | (strut process_info, all_processes, linux_attach_lwp) |
| 3376 | (thread_db_init): New. |
| 3377 | |
| 3378 | * linux-arm-low.c (arm_get_pc, arm_set_pc, |
| 3379 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. |
| 3380 | (the_low_target): Add new members. |
| 3381 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) |
| 3382 | (i386_store_fpxregset): Constify. |
| 3383 | (target_regsets): Add new kind identifier. |
| 3384 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. |
| 3385 | (i386_set_pc): Add debugging. |
| 3386 | (i386_breakpoint_at): New function. |
| 3387 | (the_low_target): Add new members. |
| 3388 | * linux-mips-low.c (mips_get_pc, mips_set_pc) |
| 3389 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) |
| 3390 | (mips_breakpoint_at): New. |
| 3391 | (the_low_target): Add new members. |
| 3392 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) |
| 3393 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. |
| 3394 | (the_low_target): Add new members. |
| 3395 | * linux-sh-low.c (sh_get_pc, sh_set_pc) |
| 3396 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. |
| 3397 | (the_low_target): Add new members. |
| 3398 | * linux-x86-64-low.c (target_regsets): Add new kind |
| 3399 | identifier. |
| 3400 | |
| 3401 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> |
| 3402 | |
| 3403 | From Martin Pool <mbp@samba.org>: |
| 3404 | * server.c (gdbserver_usage): New function. |
| 3405 | (main): Call it. |
| 3406 | |
| 3407 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> |
| 3408 | |
| 3409 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo |
| 3410 | stop_at -> stop_pc. |
| 3411 | |
| 3412 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> |
| 3413 | |
| 3414 | * Makefile.in: Remove obsolete code. |
| 3415 | |
| 3416 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> |
| 3417 | |
| 3418 | * linux-low.c (regsets_fetch_inferior_registers), |
| 3419 | (regsets_store_inferior_registers): Removed cast to int from |
| 3420 | ptrace() calls. |
| 3421 | * regcache.h: Added declaration of struct inferior_info. |
| 3422 | |
| 3423 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 3424 | |
| 3425 | * inferiors.c (struct inferior_info): Add regcache_data. |
| 3426 | (add_inferior): Call create_register_cache. |
| 3427 | (clear_inferiors): Call free_register_cache. |
| 3428 | (inferior_regcache_data, set_inferior_regcache_data): New functions. |
| 3429 | * regcache.c (struct inferior_regcache_data): New. |
| 3430 | (registers): Remove. |
| 3431 | (get_regcache): New function. |
| 3432 | (create_register_cache, free_register_cache): New functions. |
| 3433 | (set_register_cache): Don't initialize the register cache here. |
| 3434 | (registers_to_string, registers_from_string, register_data): Call |
| 3435 | get_regcache. |
| 3436 | * regcache.h: Add prototypes. |
| 3437 | * server.h: Likewise. |
| 3438 | |
| 3439 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 3440 | |
| 3441 | * mem-break.c: New file. |
| 3442 | * mem-break.h: New file. |
| 3443 | * Makefile.in: Add mem-break.o rule; update server.h |
| 3444 | dependencies. |
| 3445 | * inferiors.c (struct inferior_info): Add target_data |
| 3446 | member. |
| 3447 | (clear_inferiors): Free target_data member if set. |
| 3448 | (inferior_target_data, set_inferior_target_data): New functions. |
| 3449 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) |
| 3450 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. |
| 3451 | * linux-low.c (linux_bp_reinsert): New variable. |
| 3452 | (struct inferior_linux_data): New. |
| 3453 | (linux_create_inferior): Use set_inferior_target_data. |
| 3454 | (linux_attach): Likewise. Call add_inferior. |
| 3455 | (linux_wait_for_one_inferior): New function. |
| 3456 | (linux_wait): Call it. |
| 3457 | (linux_write_memory): Add const. |
| 3458 | (initialize_low): Call set_breakpoint_data. |
| 3459 | * linux-low.h (struct linux_target_ops): Add breakpoint |
| 3460 | handling members. |
| 3461 | * server.c (attach_inferior): Remove extra add_inferior |
| 3462 | call. |
| 3463 | * server.h: Include mem-break.h. Update inferior.c |
| 3464 | prototypes. |
| 3465 | * target.c (read_inferior_memory) |
| 3466 | (write_inferior_memory): New functions. |
| 3467 | * target.h (read_inferior_memory) |
| 3468 | (write_inferior_memory): Change macros to prototypes. |
| 3469 | (struct target_ops): Update comments. Add const to write_memory |
| 3470 | definition. |
| 3471 | |
| 3472 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> |
| 3473 | |
| 3474 | * linux-low.c (usr_store_inferior_registers): Support |
| 3475 | registers which are allowed to fail to store. |
| 3476 | * linux-low.h (linux_target_ops): Likewise. |
| 3477 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. |
| 3478 | (ppc_cannot_store_register): FPSCR may not be storable. |
| 3479 | |
| 3480 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 3481 | |
| 3482 | * server.h: Include <string.h> if HAVE_STRING_H. |
| 3483 | * ChangeLog: Correct paths in last ChangeLog entry. |
| 3484 | |
| 3485 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 3486 | |
| 3487 | * linux-low.h: Remove obsolete prototypes. |
| 3488 | (struct linux_target_ops): New. |
| 3489 | (extern the_low_target): New. |
| 3490 | * linux-low.c (num_regs, regmap): Remove declarations. |
| 3491 | (register_addr): Use the_low_target explicitly. |
| 3492 | (fetch_register): Likewise. |
| 3493 | (usr_fetch_inferior_registers): Likewise. |
| 3494 | (usr_store_inferior_registers): Likewise. |
| 3495 | * linux-arm-low.c (num_regs): Remove. |
| 3496 | (arm_num_regs): Define. |
| 3497 | (arm_regmap): Renamed from regmap, made static. |
| 3498 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3499 | made static. |
| 3500 | (arm_cannot_store_register): Renamed from cannot_store_register, |
| 3501 | made static. |
| 3502 | (the_low_target): New. |
| 3503 | * linux-i386-low.c (num_regs): Remove. |
| 3504 | (i386_num_regs): Define. |
| 3505 | (i386_regmap): Renamed from regmap, made static. |
| 3506 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3507 | made static. |
| 3508 | (i386_cannot_store_register): Renamed from cannot_store_register, |
| 3509 | made static. |
| 3510 | (the_low_target): New. |
| 3511 | * linux-ia64-low.c (num_regs): Remove. |
| 3512 | (ia64_num_regs): Define. |
| 3513 | (ia64_regmap): Renamed from regmap, made static. |
| 3514 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3515 | made static. |
| 3516 | (ia64_cannot_store_register): Renamed from cannot_store_register, |
| 3517 | made static. |
| 3518 | (the_low_target): New. |
| 3519 | * linux-m68k-low.c (num_regs): Remove. |
| 3520 | (m68k_num_regs): Define. |
| 3521 | (m68k_regmap): Renamed from regmap, made static. |
| 3522 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3523 | made static. |
| 3524 | (m68k_cannot_store_register): Renamed from cannot_store_register, |
| 3525 | made static. |
| 3526 | (the_low_target): New. |
| 3527 | * linux-mips-low.c (num_regs): Remove. |
| 3528 | (mips_num_regs): Define. |
| 3529 | (mips_regmap): Renamed from regmap, made static. |
| 3530 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3531 | made static. |
| 3532 | (mips_cannot_store_register): Renamed from cannot_store_register, |
| 3533 | made static. |
| 3534 | (the_low_target): New. |
| 3535 | * linux-ppc-low.c (num_regs): Remove. |
| 3536 | (ppc_num_regs): Define. |
| 3537 | (ppc_regmap): Renamed from regmap, made static. |
| 3538 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3539 | made static. |
| 3540 | (ppc_cannot_store_register): Renamed from cannot_store_register, |
| 3541 | made static. |
| 3542 | (the_low_target): New. |
| 3543 | * linux-s390-low.c (num_regs): Remove. |
| 3544 | (s390_num_regs): Define. |
| 3545 | (s390_regmap): Renamed from regmap, made static. |
| 3546 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3547 | made static. |
| 3548 | (s390_cannot_store_register): Renamed from cannot_store_register, |
| 3549 | made static. |
| 3550 | (the_low_target): New. |
| 3551 | * linux-sh-low.c (num_regs): Remove. |
| 3552 | (sh_num_regs): Define. |
| 3553 | (sh_regmap): Renamed from regmap, made static. |
| 3554 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 3555 | made static. |
| 3556 | (sh_cannot_store_register): Renamed from cannot_store_register, |
| 3557 | made static. |
| 3558 | (the_low_target): New. |
| 3559 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. |
| 3560 | (the_low_target): New. |
| 3561 | |
| 3562 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 3563 | |
| 3564 | * Makefile.in: Add stamp-h target. |
| 3565 | * configure.in: Create stamp-h. |
| 3566 | * configure: Regenerated. |
| 3567 | |
| 3568 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 3569 | |
| 3570 | * inferiors.c: New file. |
| 3571 | * target.c: New file. |
| 3572 | * target.h: New file. |
| 3573 | * Makefile.in: Add target.o and inferiors.o. Update |
| 3574 | dependencies. |
| 3575 | * linux-low.c (inferior_pid): New static variable, |
| 3576 | moved from server.c. |
| 3577 | (linux_create_inferior): Renamed from create_inferior. |
| 3578 | Call add_inferior. Return 0 on success instead of a PID. |
| 3579 | (linux_attach): Renamed from myattach. |
| 3580 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). |
| 3581 | (linux_thread_alive): Renamed from mythread_alive. |
| 3582 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the |
| 3583 | child dies. |
| 3584 | (linux_resume): Renamed from myresume. Add missing ``return 0''. |
| 3585 | (regsets_store_inferior_registers): Correct error message. |
| 3586 | Add missing ``return 0''. |
| 3587 | (linux_fetch_registers): Renamed from fetch_inferior_registers. |
| 3588 | (linux_store_registers): Renamed from store_inferior_registers. |
| 3589 | (linux_read_memory): Renamed from read_inferior_memory. |
| 3590 | (linux_write_memory): Renamed from write_inferior_memory. |
| 3591 | (linux_target_ops): New structure. |
| 3592 | (initialize_low): Call set_target_ops (). |
| 3593 | * remote-utils.c (unhexify): New function. |
| 3594 | (hexify): New function. |
| 3595 | (input_interrupt): Send signals to ``signal_pid''. |
| 3596 | * server.c (inferior_pid): Remove. |
| 3597 | (start_inferior): Update create_inferior call. |
| 3598 | (attach_inferior): Call add_inferior. |
| 3599 | (handle_query): New function. |
| 3600 | (main): Call handle_query for `q' packets. |
| 3601 | * server.h: Include "target.h". Remove obsolete prototypes. |
| 3602 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. |
| 3603 | |
| 3604 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 3605 | |
| 3606 | * Makefile.in: Add WARN_CFLAGS. Update configury |
| 3607 | dependencies. |
| 3608 | * configure.in: Check for <string.h> |
| 3609 | * configure: Regenerate. |
| 3610 | * config.in: Regenerate. |
| 3611 | * gdbreplay.c: Include needed system headers. |
| 3612 | (remote_open): Remove strchr prototype. |
| 3613 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. |
| 3614 | * regcache.c (supply_register): Change buf argument to const void *. |
| 3615 | (supply_register_by_name): Likewise. |
| 3616 | (collect_register): Change buf argument to void *. |
| 3617 | (collect_register_by_name): Likewise. |
| 3618 | * regcache.h: Add missing prototypes. |
| 3619 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. |
| 3620 | * server.c (handle_query): New function. |
| 3621 | (attached): New static variable, moved out of main. |
| 3622 | (main): Quiet longjmp clobber warnings. |
| 3623 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. |
| 3624 | * utils.c (error): Remove NORETURN. |
| 3625 | (fatal): Likewise. |