| 1 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
| 2 | |
| 3 | * gdbreplay.c (gdbreplay_version): Update copyright year in |
| 4 | version message. |
| 5 | * server.c (gdbserver_version): Likewise. |
| 6 | |
| 7 | 2017-12-08 Tom Tromey <tom@tromey.com> |
| 8 | |
| 9 | * ax.c (ax_printf): Update. |
| 10 | |
| 11 | 2017-12-07 Yao Qi <yao.qi@linaro.org> |
| 12 | |
| 13 | * linux-aarch64-ipa.c (initialize_low_tracepoint): Call |
| 14 | aarch64_linux_read_description. |
| 15 | * linux-amd64-ipa.c (idx2mask): New array. |
| 16 | (get_ipa_tdesc): Move idx2mask out. |
| 17 | (initialize_low_tracepoint): Initialize target descriptions. |
| 18 | * linux-i386-ipa.c (idx2mask): New array. |
| 19 | (get_ipa_tdesc): Move idx2mask out. |
| 20 | (initialize_low_tracepoint): Initialize target descriptions. |
| 21 | |
| 22 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
| 23 | |
| 24 | * tdesc.c (struct tdesc_type): Change return type. |
| 25 | (tdesc_add_flag): Change parameter type. |
| 26 | (tdesc_add_bitfield): Likewise. |
| 27 | (tdesc_add_field): Likewise. |
| 28 | (tdesc_set_struct_size): Likewise. |
| 29 | |
| 30 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
| 31 | |
| 32 | * regcache.c (registers_to_string): Remove unused variable. |
| 33 | |
| 34 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 35 | |
| 36 | * inferiors.c (for_each_inferior_with_data): Remove. |
| 37 | * inferiors.h (for_each_inferior_with_data): Remove. |
| 38 | * server.c (handle_qxfer_threads_worker): Change parameter type. |
| 39 | (handle_qxfer_threads_proper): Use for_each_thread. |
| 40 | |
| 41 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 42 | |
| 43 | * inferiors.c (for_each_inferior): Remove. |
| 44 | (clear_inferiors): Use for_each_thread. |
| 45 | * inferiors.h (for_each_inferior): Remove. |
| 46 | * linux-low.c (linux_wait_for_event_filtered): Use |
| 47 | for_each_thread. |
| 48 | (linux_stabilize_threads): Likewise. |
| 49 | * regcache.c (regcache_release): Likewise. |
| 50 | * server.c (gdb_wants_all_threads_stopped): Likewise. |
| 51 | (clear_pending_status_callback): Remove. |
| 52 | (handle_status): Use for_each_thread. |
| 53 | (captured_main): Likewise. |
| 54 | * win32-low.c (child_init_thread_list): Likewise. |
| 55 | (win32_clear_inferiors): Likewise. |
| 56 | (fake_breakpoint_event): Likewise. |
| 57 | |
| 58 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 59 | |
| 60 | * inferiors.h (find_inferior): Remove. |
| 61 | * inferiors.c (find_inferior): Remove. |
| 62 | |
| 63 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 64 | |
| 65 | * linux-low.c (resume_status_pending_p): Update comment. |
| 66 | (need_step_over_p): Update comment. |
| 67 | |
| 68 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 69 | |
| 70 | * linux-low.c (proceed_one_lwp): Return void, change parameter |
| 71 | type. |
| 72 | (unsuspend_and_proceed_one_lwp): Likewise. |
| 73 | (proceed_all_lwps): Use for_each_thread. |
| 74 | (unstop_all_lwps): Likewise. |
| 75 | |
| 76 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 77 | |
| 78 | * linux-low.c (linux_resume_one_thread): Return void, take |
| 79 | parameter directly. |
| 80 | (linux_resume): Use for_each_thread. |
| 81 | |
| 82 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 83 | |
| 84 | * linux-low.c (send_sigstop_callback): Return void, change |
| 85 | parameter type. Rename to... |
| 86 | (send_sigstop): ... this. |
| 87 | (suspend_and_send_sigstop_callback): Return void, change parameter |
| 88 | type. Rename to... |
| 89 | (suspend_and_send_sigstop): ... this. |
| 90 | (stop_all_lwps): Use for_each_thread. |
| 91 | |
| 92 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 93 | |
| 94 | * linux-low.c (lwp_running): Return bool, remove unused |
| 95 | argument. |
| 96 | (linux_stabilize_threads): Use find_thread. |
| 97 | |
| 98 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 99 | |
| 100 | * linux-low.c (select_singlestep_lwp_callback): Remove. |
| 101 | (count_events_callback): Remove. |
| 102 | (select_event_lwp_callback): Remove. |
| 103 | (select_event_lwp): Use find_thread/for_each_thread. |
| 104 | |
| 105 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 106 | |
| 107 | * linux-low.c (not_stopped_callback): Return bool, take filter |
| 108 | argument directly. |
| 109 | (linux_wait_for_event_filtered): Use find_thread. |
| 110 | (linux_wait_1): Likewise. |
| 111 | |
| 112 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 113 | |
| 114 | * linux-low.c (same_lwp): Remove. |
| 115 | (find_lwp_pid): Use find_thread. |
| 116 | |
| 117 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 118 | |
| 119 | * linux-low.c (delete_lwp_callback): Remove. |
| 120 | (linux_mourn): Use for_each_thread. |
| 121 | |
| 122 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 123 | |
| 124 | * linux-low.c (linux_detach_lwp_callback): Return void, remove |
| 125 | args parameter, don't check for pid. |
| 126 | (linux_detach): Use for_each_thread. |
| 127 | |
| 128 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 129 | |
| 130 | * linux-low.c (struct counter): Remove. |
| 131 | (second_thread_of_pid_p): Remove. |
| 132 | (last_thread_of_process_p): Use find_thread. |
| 133 | |
| 134 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 135 | |
| 136 | * inferiors.c (find_inferior_in_random): Remove. |
| 137 | * inferiors.h (find_inferior_in_random): Remove. |
| 138 | * linux-low.c (status_pending_p_callback): Return bool, accept |
| 139 | parameter ptid directly. |
| 140 | (linux_wait_for_event_filtered): Use find_thread_in_random. |
| 141 | (linux_wait_1): Likewise. |
| 142 | |
| 143 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 144 | |
| 145 | * inferiors.c (find_inferior_id): Remove. |
| 146 | (find_thread_ptid): Move implemention from find_inferior_id to |
| 147 | here. |
| 148 | * inferiors.h (find_inferior_id): Remove. |
| 149 | * server.c (handle_status): Use find_thread_ptid. |
| 150 | (process_serial_event): Likewise. |
| 151 | * thread-db.c (find_one_thread): Likewise. |
| 152 | (thread_db_thread_handle): Likewise. |
| 153 | * win32-low.c (thread_rec): Likewise. |
| 154 | (child_delete_thread): Likewise. |
| 155 | (win32_thread_alive): Likewise. |
| 156 | (get_child_debug_event): Likewise. |
| 157 | |
| 158 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 159 | |
| 160 | * linux-mips-low.c (update_watch_registers_callback): Return |
| 161 | void, remove pid_p parameter, don't check for pid. |
| 162 | (mips_insert_point, mips_remove_point): Use for_each_thread. |
| 163 | |
| 164 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 165 | |
| 166 | * lynx.low (lynx_delete_thread_callback): Remove. |
| 167 | (lynx_mourn): Use for_each_thread. |
| 168 | |
| 169 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 170 | |
| 171 | * regcache.c (regcache_invalidate_one): Remove. |
| 172 | (regcache_invalidate_pid): use for_each_thread. |
| 173 | |
| 174 | 2017-11-26 Tom Tromey <tom@tromey.com> |
| 175 | |
| 176 | * linux-low.c (linux_create_inferior): Update. |
| 177 | |
| 178 | 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com> |
| 179 | |
| 180 | * spu-low.c (spu_create_inferior): Fix typo in argument name. |
| 181 | |
| 182 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
| 183 | |
| 184 | * configure.srv: Add linux-aarch64-tdesc-selftest.o. |
| 185 | * linux-aarch64-low.c (initialize_low_arch): Call init func. |
| 186 | * linux-aarch64-tdesc-selftest.c: New file. |
| 187 | * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration. |
| 188 | |
| 189 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
| 190 | |
| 191 | * configure.srv: Add new file. |
| 192 | * linux-aarch64-low.c (initialize_low_arch): Call init func. |
| 193 | * linux-aarch64-tdesc-selftest.c: New file. |
| 194 | * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration. |
| 195 | |
| 196 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
| 197 | |
| 198 | * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init. |
| 199 | * linux-aarch64-low.c (initialize_low_arch): Remove init. |
| 200 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init. |
| 201 | |
| 202 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
| 203 | |
| 204 | * configure.srv: Add new files. |
| 205 | * linux-aarch64-ipa.c (get_ipa_tdesc): Call |
| 206 | aarch64_linux_read_description. |
| 207 | * linux-aarch64-low.c (aarch64_linux_read_description): |
| 208 | Merge with aarch64_arch_setup. |
| 209 | (aarch64_arch_setup): Call aarch64_linux_read_description. |
| 210 | * linux-aarch64-tdesc.c: New file. |
| 211 | * linux-aarch64-tdesc.h: New file. |
| 212 | |
| 213 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
| 214 | |
| 215 | * configure.srv: Set $srv_regobj for tic6x-linux. |
| 216 | * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h". |
| 217 | (tic6x_read_description): Move some code to tic6x_arch_setup. |
| 218 | (tic6x_tdesc_test): New function. |
| 219 | (initialize_low_arch): Call selftests::register_test. |
| 220 | |
| 221 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
| 222 | |
| 223 | * remote-utils.c (prepare_resume_reply): Use memcpy. |
| 224 | |
| 225 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 226 | |
| 227 | * linux-low.c (kill_one_lwp_callback): Return void, take |
| 228 | argument directly, don't filter on pid. |
| 229 | (linux_kill): Use for_each_thread. |
| 230 | |
| 231 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 232 | |
| 233 | * linux-low.c (need_step_over_p): Return bool, remove dummy |
| 234 | argument. |
| 235 | (linux_resume, proceed_all_lwps): Use find_thread. |
| 236 | |
| 237 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 238 | |
| 239 | * linux-low.c (resume_status_pending_p): Return bool, remove |
| 240 | flag_p argument. |
| 241 | (linux_resume): Use find_thread. |
| 242 | |
| 243 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 244 | |
| 245 | * linux-low.c (struct thread_resume_array): Remove. |
| 246 | (linux_set_resume_request): Return void, take arguments |
| 247 | directly. |
| 248 | (linux_resume): Use for_each_thread. |
| 249 | |
| 250 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 251 | |
| 252 | * linux-low.c (stuck_in_jump_pad_callback): Change prototype, |
| 253 | return bool, remove data argument. |
| 254 | (linux_stabilize_threads): Use find_thread. |
| 255 | |
| 256 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 257 | |
| 258 | * linux-low.c (unsuspend_one_lwp): Remove. |
| 259 | (unsuspend_all_lwps): Use for_each_thread, inline code from |
| 260 | unsuspend_one_lwp. |
| 261 | |
| 262 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 263 | |
| 264 | * gdbthread.h (find_thread): Add overload with ptid_t filter. |
| 265 | * linux-low.c (struct iterate_over_lwps_args): Remove. |
| 266 | (iterate_over_lwps_filter): Remove. |
| 267 | (iterate_over_lwps): Use find_thread. |
| 268 | |
| 269 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 270 | |
| 271 | * linux-low.c (reset_lwp_ptrace_options_callback): Remove. |
| 272 | (linux_handle_new_gdb_connection): Use for_each_thread, inline |
| 273 | code from reset_lwp_ptrace_options_callback. |
| 274 | |
| 275 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 276 | |
| 277 | * linux-arm-low.c (struct update_registers_data): Remove. |
| 278 | (update_registers_callback): Return void, take arguments |
| 279 | directly, don't check thread's pid. |
| 280 | (arm_insert_point, arm_remove_point): Use for_each_thread. |
| 281 | |
| 282 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 283 | |
| 284 | * win32-low.c (continue_one_thread): Return void, take argument |
| 285 | directly. |
| 286 | (child_continue): Use for_each_thread. |
| 287 | |
| 288 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
| 289 | |
| 290 | * win32-i386-low.c (update_debug_registers_callback): Rename |
| 291 | to ... |
| 292 | (update_debug_registers): ... this, return void, remove pid_p arg. |
| 293 | (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread. |
| 294 | |
| 295 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 296 | |
| 297 | * inferiors.h (struct process_info): Add constructor, initialize |
| 298 | fields.. |
| 299 | <syscalls_to_catch>: Change type to std::vector<int>. |
| 300 | * inferiors.c (add_process): Allocate process_info with new. |
| 301 | (remove_process): Free process_info with delete. |
| 302 | * linux-low.c (handle_extended_wait): Adjust. |
| 303 | (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust. |
| 304 | * server.c (handle_general_set): Adjust. |
| 305 | |
| 306 | 2017-11-16 Pedro Alves <palves@redhat.com> |
| 307 | |
| 308 | * remote-utils.c (remote_close): Block SIGIO signals instead of |
| 309 | uninstalling the SIGIO handler. |
| 310 | |
| 311 | 2017-11-16 Alan Hayward <alan.hayward@arm.com> |
| 312 | |
| 313 | * tdesc.c (tdesc_get_features_xml): Allow null osabi. |
| 314 | |
| 315 | 2017-11-16 Yao Qi <yao.qi@linaro.org> |
| 316 | |
| 317 | * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf. |
| 318 | (tic6x_store_gregset): Likewise. |
| 319 | (tic6x_usrregs_info): Move it up. |
| 320 | |
| 321 | 2017-11-15 Alan Hayward <alan.hayward@arm.com> |
| 322 | |
| 323 | * Makefile.in: Update arch rules. |
| 324 | * configure.srv: Explicitly mark arch/ files. |
| 325 | |
| 326 | 2017-11-13 Andreas Schwab <schwab@suse.de> |
| 327 | |
| 328 | * linux-m68k-low.c (m68k_supports_hardware_single_step): New |
| 329 | function. |
| 330 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 331 | |
| 332 | 2017-11-06 Pedro Alves <palves@redhat.com> |
| 333 | |
| 334 | * config.in, configure: Regenerate. |
| 335 | |
| 336 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
| 337 | |
| 338 | * target.c (struct thread_search): Remove. |
| 339 | (thread_search_callback): Remove. |
| 340 | (prepare_to_access_memory): Use for_each_thread instead of |
| 341 | find_inferior. Inline code from thread_search_callback. |
| 342 | |
| 343 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
| 344 | |
| 345 | * server.c (struct visit_actioned_threads_data): Remove. |
| 346 | (visit_actioned_threads): Change prototype to take arguments |
| 347 | directly. |
| 348 | (resume): Use find_thread instead of find_inferior. |
| 349 | |
| 350 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
| 351 | |
| 352 | * server.c (queue_stop_reply_callback): Change prototype, return |
| 353 | void. |
| 354 | (find_status_pending_thread_callback): Remove. |
| 355 | (handle_status): Replace find_inferior with find_thread and |
| 356 | for_each_thread. |
| 357 | |
| 358 | 2017-10-25 Alan Hayward <alan.hayward@arm.com> |
| 359 | |
| 360 | * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines |
| 361 | with REGNO. |
| 362 | (aarch64_store_gregset): Likewise. |
| 363 | (aarch64_fill_fpregset): Likewise. |
| 364 | (aarch64_store_fpregset): Likewise. |
| 365 | |
| 366 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
| 367 | |
| 368 | * gdbthread.h (find_thread, for_each_thread): New functions. |
| 369 | * inferiors.c (thread_of_pid): Remove. |
| 370 | (find_any_thread_of_pid): Use find_thread. |
| 371 | * linux-low.c (num_lwps): Use for_each_thread. |
| 372 | |
| 373 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
| 374 | |
| 375 | * Makefile.in: Remove one rule. |
| 376 | * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o. |
| 377 | |
| 378 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
| 379 | |
| 380 | * configure.srv: Rename arm-linux.o with arch/arm-linux.o. |
| 381 | Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o. |
| 382 | |
| 383 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
| 384 | |
| 385 | * configure.srv: Rename arm.o with arch/arm.o. |
| 386 | |
| 387 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
| 388 | |
| 389 | * Makefile.in (CONFIG_SRC_SUBDIR): New variable. |
| 390 | (clean): Remove .o files in CONFIG_SRC_SUBDIR. |
| 391 | (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR. |
| 392 | (arch-i386.o, arch-amd64.o): Remove rules. |
| 393 | (arch/%.o): New rule. |
| 394 | Update POSTCOMPILE and COMPILE.pre. |
| 395 | * configure.ac: Invoke AC_CONFIG_COMMANDS. |
| 396 | * configure: Re-generated. |
| 397 | * configure.srv: Replace arch-i386.o with arch/i386.o. |
| 398 | Replace arch-amd64.o with arch/amd64.o. |
| 399 | |
| 400 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
| 401 | |
| 402 | * configure: Regenerated. |
| 403 | |
| 404 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
| 405 | |
| 406 | * inferiors.h: (struct inferior_list): Remove. |
| 407 | (struct inferior_list_entry); Remove. |
| 408 | (add_inferior_to_list, clear_inferior_list, one_inferior_p, |
| 409 | A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior, |
| 410 | get_first_inferior): Remove. |
| 411 | (for_each_inferior, for_each_inferior_with_data, find_inferior, |
| 412 | find_inferior_id, find_inferior_in_random): Change signature. |
| 413 | * inferiors.c (all_threads): Change type to |
| 414 | std::list<thread_info *>. |
| 415 | (get_thread): Remove macro. |
| 416 | (find_inferior, find_inferior_id): Change signature, implement |
| 417 | using find_thread. |
| 418 | (find_inferior_in_random): Change signature, implement using |
| 419 | find_thread_in_random. |
| 420 | (for_each_inferior, for_each_inferior_with_data): Change |
| 421 | signature, implement using for_each_thread. |
| 422 | (add_inferior_to_list, remove_inferior): Remove. |
| 423 | (add_thread, get_first_thread, thread_of_pid, |
| 424 | find_any_thread_of_pid, free_one_thread, remove_thread): Update. |
| 425 | (get_first_inferior, one_inferior_p, clear_inferior_list): |
| 426 | Remove. |
| 427 | (clear_inferiors, get_thread_process): Update. |
| 428 | * gdbthread.h: Include <list>. |
| 429 | (struct thread_info) <entry>: Remove field. |
| 430 | <id>: New field. |
| 431 | (all_threads): Change type to std::list<thread_info *>. |
| 432 | (get_first_inferior): Add doc. |
| 433 | (find_thread, for_each_thread, find_thread_in_random): New |
| 434 | functions. |
| 435 | (current_ptid, pid_of, ptid_of, lwpid_of): Update. |
| 436 | * linux-arm-low.c (update_registers_callback): Update. |
| 437 | * linux-low.c (second_thread_of_pid_p): Update. |
| 438 | (kill_one_lwp_callback, linux_detach_lwp_callback, |
| 439 | delete_lwp_callback, status_pending_p_callback, same_lwp, |
| 440 | find_lwp_pid, num_lwps, iterate_over_lwps_filter, |
| 441 | iterate_over_lwps, not_stopped_callback, |
| 442 | resume_stopped_resumed_lwps, count_events_callback, |
| 443 | select_singlestep_lwp_callback, select_event_lwp_callback, |
| 444 | unsuspend_one_lwp, linux_wait_1, send_sigstop_callback, |
| 445 | suspend_and_send_sigstop_callback, wait_for_sigstop, |
| 446 | stuck_in_jump_pad_callback, move_out_of_jump_pad_callback, |
| 447 | lwp_running, linux_set_resume_request, resume_status_pending_p, |
| 448 | need_step_over_p, start_step_over, linux_resume_one_thread, |
| 449 | proceed_one_lwp, unsuspend_and_proceed_one_lwp, |
| 450 | reset_lwp_ptrace_options_callback): Update. |
| 451 | * linux-mips-low.c (update_watch_registers_callback): Update. |
| 452 | * regcache.c (regcache_invalidate_one, regcache_invalidate): |
| 453 | Update. |
| 454 | (free_register_cache_thread_one): Remove. |
| 455 | (regcache_release): Update. |
| 456 | * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt, |
| 457 | handle_qxfer_threads_worker): Update. |
| 458 | (handle_query): Update, use list iterator. |
| 459 | (visit_actioned_threads, handle_pending_status, |
| 460 | queue_stop_reply_callback, gdb_wants_all_threads_stopped, |
| 461 | clear_pending_status_callback, set_pending_status_callback, |
| 462 | find_status_pending_thread_callback, handle_status, |
| 463 | process_serial_event): Update. |
| 464 | * target.c (thread_search_callback): Update. |
| 465 | * thread-db.c (thread_db_get_tls_address): Update. |
| 466 | * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit): |
| 467 | Update. |
| 468 | * win32-i386-low.c (update_debug_registers_callback): Update. |
| 469 | * win32-low.c (delete_thread_info, child_delete_thread, |
| 470 | continue_one_thread, suspend_one_thread, |
| 471 | get_child_debug_event): Adjust. |
| 472 | |
| 473 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
| 474 | |
| 475 | * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions. |
| 476 | * inferiors.h: Include <list>. |
| 477 | (struct process_info) <entry>: Remove field. |
| 478 | <pid>: New field. |
| 479 | (pid_of): Change macro to function. |
| 480 | (ptid_of, lwpid_of): Remove macro. |
| 481 | (all_processes): Change type to std::list<process_info *>. |
| 482 | (ALL_PROCESSES): Remove macro. |
| 483 | (for_each_process, find_process): New function. |
| 484 | * inferiors.c (all_processes): Change type to |
| 485 | std::list<process_info *>. |
| 486 | (find_thread_process): Adjust. |
| 487 | (add_process): Likewise. |
| 488 | (remove_process): Likewise. |
| 489 | (find_process_pid): Likewise. |
| 490 | (get_first_process): Likewise. |
| 491 | (started_inferior_callback): Remove. |
| 492 | (have_started_inferiors_p): Adjust. |
| 493 | (attached_inferior_callback): Remove. |
| 494 | (have_attached_inferiors_p): Adjust. |
| 495 | * linux-low.c (check_zombie_leaders): Likewise. |
| 496 | * linux-x86-low.c (x86_arch_setup_process_callback): Remove. |
| 497 | (x86_linux_update_xmltarget): Adjust. |
| 498 | * server.c (handle_query): Likewise. |
| 499 | (gdb_reattached_process): Remove. |
| 500 | (handle_status): Adjust. |
| 501 | (kill_inferior_callback): Likewise. |
| 502 | (detach_or_kill_inferior): Remove. |
| 503 | (print_started_pid): Likewise. |
| 504 | (print_attached_pid): Likewise. |
| 505 | (detach_or_kill_for_exit): Update. |
| 506 | (process_serial_event): Likewise. |
| 507 | * linux-arm-low.c (arm_new_fork): Likewise. |
| 508 | |
| 509 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
| 510 | |
| 511 | * dll.h: Include <list>. |
| 512 | (struct dll_info): Add constructor. |
| 513 | <entry>: Remove field. |
| 514 | (all_dlls): Change type to std::list<dll_info>. |
| 515 | * dll.c: Include <algorithm>. |
| 516 | (get_dll): Remove macro. |
| 517 | (all_dlls): Change type to std::list<dll_info *>. |
| 518 | (free_one_dll): Remove. |
| 519 | (match_dll): Likewise. |
| 520 | (loaded_dll): Adjust. |
| 521 | (unloaded_dll): Adjust to all_dlls type change, use |
| 522 | std::find_if. Inline code from match_dll. |
| 523 | (clear_dlls): Adjust to all_dlls type change. |
| 524 | * server.c (emit_dll_description): Remove. |
| 525 | (handle_qxfer_libraries): Adjust to all_dlls type change, |
| 526 | integrate emit_dll_description's functionality. |
| 527 | |
| 528 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
| 529 | |
| 530 | * linux-low.h (struct linux_target_ops) <delete_process>: New |
| 531 | field. |
| 532 | * linux-low.c (linux_mourn): Call the_low_target.delete_process. |
| 533 | * linux-aarch64-low.c (aarch64_linux_delete_process): New. |
| 534 | (struct linux_target_ops): Add delete_process callback. |
| 535 | * linux-arm-low.c (arm_delete_process): New. |
| 536 | (struct linux_target_ops): Add delete_process callback. |
| 537 | * linux-bfin-low.c (struct linux_target_ops): Likewise. |
| 538 | * linux-crisv32-low.c (struct linux_target_ops): Likewise. |
| 539 | * linux-m32r-low.c (struct linux_target_ops): Likewise. |
| 540 | * linux-mips-low.c (mips_linux_delete_process): New. |
| 541 | (struct linux_target_ops): Add delete_process callback. |
| 542 | * linux-ppc-low.c (struct linux_target_ops): Likewise. |
| 543 | * linux-s390-low.c (struct linux_target_ops): Likewise. |
| 544 | * linux-sh-low.c (struct linux_target_ops): Likewise. |
| 545 | * linux-tic6x-low.c (struct linux_target_ops): Likewise. |
| 546 | * linux-tile-low.c (struct linux_target_ops): Likewise. |
| 547 | * linux-x86-low.c (x86_linux_delete_process): New. |
| 548 | (struct linux_target_ops): Add delete_process callback. |
| 549 | * linux-xtensa-low.c (struct linux_target_ops): Likewise. |
| 550 | |
| 551 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
| 552 | |
| 553 | * linux-aarch64-low.c (the_low_target): Add thread delete |
| 554 | callback. |
| 555 | * linux-arm-low.c (arm_delete_thread): New function. |
| 556 | (the_low_target): Add thread delete callback. |
| 557 | * linux-bfin-low.c (the_low_target): Likewise. |
| 558 | * linux-crisv32-low.c (the_low_target): Likewise. |
| 559 | * linux-low.c (delete_lwp): Invoke delete_thread callback if |
| 560 | set. |
| 561 | * linux-low.h (struct linux_target_ops) <delete_thread>: New |
| 562 | field. |
| 563 | * linux-m32r-low.c (the_low_target): Add thread delete callback. |
| 564 | * linux-mips-low.c (mips_linux_delete_thread): New function. |
| 565 | (the_low_target): Add thread delete callback. |
| 566 | * linux-ppc-low.c (the_low_target): Likewise. |
| 567 | * linux-s390-low.c (the_low_target): Likewise. |
| 568 | * linux-sh-low.c (the_low_target): Likewise. |
| 569 | * linux-tic6x-low.c (the_low_target): Likewise. |
| 570 | * linux-tile-low.c (the_low_target): Likewise. |
| 571 | * linux-x86-low.c (the_low_target): Likewise. |
| 572 | * linux-xtensa-low.c (the_low_target): Likewise. |
| 573 | |
| 574 | 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com> |
| 575 | |
| 576 | * win32-low.c: Include "common-inferior.h". |
| 577 | |
| 578 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
| 579 | |
| 580 | * inferiors.c (set_inferior_cwd): New function. |
| 581 | * server.c (handle_general_set): Handle QSetWorkingDir packet. |
| 582 | (handle_query): Inform that QSetWorkingDir is supported. |
| 583 | * win32-low.c (create_process): Pass the inferior's cwd to |
| 584 | CreateProcess. |
| 585 | |
| 586 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
| 587 | |
| 588 | * inferiors.c (current_inferior_cwd): New global variable. |
| 589 | (get_inferior_cwd): New function. |
| 590 | * inferiors.h (struct process_info) <cwd>: New field. |
| 591 | |
| 592 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
| 593 | |
| 594 | * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c. |
| 595 | (OBS): Add gdb_tilde_expand.o. |
| 596 | |
| 597 | 2017-10-02 Simon Marchi <simon.marchi@ericsson.com> |
| 598 | |
| 599 | * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc. |
| 600 | * nto-x86-low.c (nto_x86_arch_setup): Likewise. |
| 601 | |
| 602 | 2017-09-29 Pedro Alves <palves@redhat.com> |
| 603 | |
| 604 | * ax.c (gdb_parse_agent_expr): Constify. |
| 605 | * ax.h (gdb_parse_agent_expr): Constify. |
| 606 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): |
| 607 | Constify. |
| 608 | * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify. |
| 609 | * remote-utils.c (hex_or_minus_one, read_ptid): Constify. |
| 610 | * remote-utils.h (read_ptid): Constify. |
| 611 | * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont) |
| 612 | (process_point_options, process_serial_event): Constify. |
| 613 | * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc) |
| 614 | (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp) |
| 615 | (cmd_qtbuffer): Constify. |
| 616 | |
| 617 | 2017-09-29 Pedro Alves <palves@redhat.com> |
| 618 | |
| 619 | * proc-service.c (ps_pdread): Return PS_ERR if reading memory |
| 620 | fails. |
| 621 | |
| 622 | 2017-09-29 Pedro Alves <palves@redhat.com> |
| 623 | |
| 624 | * linux-low.c (handle_extended_wait): Pass parent thread instead |
| 625 | of process to thread_db_notice_clone. |
| 626 | * linux-low.h (thread_db_notice_clone): Replace parent process |
| 627 | parameter with parent thread parameter. |
| 628 | * thread-db.c (find_one_thread): Add comment. |
| 629 | (thread_db_notice_clone): Replace parent process parameter with |
| 630 | parent thread parameter. Temporarily switch to the parent thread. |
| 631 | |
| 632 | 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com> |
| 633 | |
| 634 | * gdbthread.h: Include "common-gdbthread.h". |
| 635 | * inferiors.c (switch_to_thread): Use "gdb_assert" instead of |
| 636 | "if" when validating the ptid. |
| 637 | * remote-utils.c: Include "gdbthread.h". |
| 638 | (prepare_resume_reply): Use "switch_to_thread". |
| 639 | * target.c (done_accessing_memory): Likewise. |
| 640 | |
| 641 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 642 | |
| 643 | * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and |
| 644 | s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml, |
| 645 | s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to |
| 646 | srv_xmlfiles. Add s390-gs-linux64-ipa.o and |
| 647 | s390x-gs-linux64-ipa.o to ipa_obj. |
| 648 | * linux-s390-low.c (HWCAP_S390_GS): New define. |
| 649 | (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc): |
| 650 | New functions. |
| 651 | (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC. |
| 652 | (s390_arch_setup): Check for guarded-storage support and choose |
| 653 | appropriate tdesc. |
| 654 | (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and |
| 655 | init_registers_s390x_gs_linux64. |
| 656 | * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New |
| 657 | enum value. |
| 658 | (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64) |
| 659 | (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare. |
| 660 | |
| 661 | 2017-09-22 Simon Marchi <simon.marchi@ericsson.com> |
| 662 | |
| 663 | * win32-i386-low.c (i386_arch_setup): Call init_target_desc. |
| 664 | |
| 665 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
| 666 | |
| 667 | * linux-low.h (struct lwp_info): Add new field, thread_handle. |
| 668 | (thread_db_thread_handle): Declare. |
| 669 | * linux-low.c (linux_target_ops): Initialize thread_handle. |
| 670 | * server.c (handle_qxfer_threads_worker): Add support for |
| 671 | "handle" attribute. |
| 672 | * target.h (struct target_ops): Add new function pointer, |
| 673 | thread_handle. |
| 674 | (target_thread_handle): Define. |
| 675 | * thread-db.c (find_one_thread, attach_thread): Set thread_handle |
| 676 | field in lwp. |
| 677 | (thread_db_thread_handle): New function. |
| 678 | |
| 679 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
| 680 | |
| 681 | * linux-low.c (handle_extended_wait): Call thread_db_notice_clone(). |
| 682 | * linux-low.h (thread_db_notice_clone): Declare. |
| 683 | * thread-db.c (thread_db_notice_clone): New function. |
| 684 | |
| 685 | 2017-09-21 Pedro Alves <palves@redhat.com> |
| 686 | |
| 687 | * server.c (gdb_read_memory, handle_status, process_serial_event) |
| 688 | (handle_serial_event, handle_target_event): Adjust to |
| 689 | set_desired_thread prototype change. |
| 690 | * target.c (set_desired_thread): Remove 'use_general' parameter |
| 691 | and adjust. |
| 692 | * target.h (set_desired_thread): Remove 'use_general' parameter. |
| 693 | |
| 694 | 2017-09-20 Tom Tromey <tom@tromey.com> |
| 695 | |
| 696 | * target.c (target_terminal::terminal_state): Define. |
| 697 | (target_terminal::init): Rename from target_terminal_init. |
| 698 | (target_terminal::inferior): Rename from |
| 699 | target_terminal_inferior. |
| 700 | (target_terminal::ours): Rename from target_terminal_ours. |
| 701 | (target_terminal::ours_for_output, target_terminal::info): New. |
| 702 | |
| 703 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
| 704 | |
| 705 | * server.c (accumulate_file_name_length): Remove. |
| 706 | (emit_dll_description): Adjust to std::string change. |
| 707 | (handle_qxfer_libraries): Use std::string to hold document. |
| 708 | |
| 709 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
| 710 | |
| 711 | * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of |
| 712 | return type of xml_escape_text. |
| 713 | * server.c (emit_dll_description): Likewise. |
| 714 | |
| 715 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
| 716 | |
| 717 | * server.c (captured_main): Accept argument for --selftest. |
| 718 | Update run_tests call. |
| 719 | * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names |
| 720 | when registering selftests. |
| 721 | |
| 722 | 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com> |
| 723 | |
| 724 | * regcache.c (get_thread_regcache): Update code to use "std::vector" |
| 725 | instead of "VEC" for "target_desc.reg_defs". |
| 726 | (regcache_cpy): Likewise. |
| 727 | (registers_to_string): Likewise. |
| 728 | (registers_from_string): Likewise. |
| 729 | (find_regno): Likewise. |
| 730 | (supply_regblock): Likewise. |
| 731 | (regcache_raw_read_unsigned): Likewise. |
| 732 | * tdesc.c (init_target_desc): Likewise. |
| 733 | (tdesc_create_reg): Likewise. |
| 734 | * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>. |
| 735 | (struct target_desc) <reg_defs>: Convert to "std::vector". |
| 736 | (target_desc): Do not initialize "reg_defs". |
| 737 | (~target_desc): Update code to use "std::vector" instead of "VEC" |
| 738 | for "target_desc.reg_defs". |
| 739 | (operator==): Likewise. |
| 740 | |
| 741 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
| 742 | |
| 743 | * inferiors.h (thread_to_gdb_id): Remove. |
| 744 | * inferiors.c (thread_to_gdb_id): Remove. |
| 745 | * server.c (handle_qxfer_threads_worker, handle_query): Adjust. |
| 746 | * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers, |
| 747 | lynx_store_registers, lynx_read_memory, lynx_write_memory): |
| 748 | Likewise. |
| 749 | * nto-low.c (nto_fetch_registers, nto_store_registers, |
| 750 | nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise. |
| 751 | |
| 752 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
| 753 | |
| 754 | * inferiors.h (gdb_id_to_thread_id): Remove. |
| 755 | * inferiors.c (gdb_id_to_thread_id): Remove. |
| 756 | * server.c (process_serial_event): Adjust to gdb_id_to_thread_id |
| 757 | removal. Move pid declaration closer to where it's used. |
| 758 | |
| 759 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
| 760 | |
| 761 | * server.c (handle_detach): New function. |
| 762 | (process_serial_event): Move code out, call handle_detach. |
| 763 | |
| 764 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
| 765 | |
| 766 | * server.c (require_running): Rename to ... |
| 767 | (require_running_or_return): ... this ... |
| 768 | (require_running_or_break): ... and this. |
| 769 | (handle_query, process_serial_event): Adjust. |
| 770 | |
| 771 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
| 772 | |
| 773 | * linux-low.c (linux_set_resume_request): Remove unused |
| 774 | variables. |
| 775 | |
| 776 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
| 777 | |
| 778 | * server.c (first_thread_of): Remove. |
| 779 | (process_serial_event): Replace usage of first_thread_of with |
| 780 | find_any_thread_of_pid. |
| 781 | * tracepoint.c (same_process_p): Remove. |
| 782 | (gdb_agent_about_to_close): Replace usage of same_process_p with |
| 783 | find_any_thread_of_pid. |
| 784 | * linux-x86-low.c (same_process_callback): Remove. |
| 785 | (x86_arch_setup_process_callback): Replace usage of |
| 786 | same_process_callback with find_any_thread_of_pid. |
| 787 | * thread-db.c (any_thread_of): Remove. |
| 788 | (switch_to_process): Replace usage of any_thread_of with |
| 789 | find_any_thread_of_pid. |
| 790 | * inferiors.c (thread_pid_matches_callback): Remove. |
| 791 | (find_thread_process): Adjust to use find_any_thread_of_pid. |
| 792 | |
| 793 | 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
| 794 | |
| 795 | * regcache.c (get_thread_regcache): Guard calls to "memset" |
| 796 | with "!VEC_empty". |
| 797 | |
| 798 | 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
| 799 | |
| 800 | * linux-low.c (handle_extended_wait): Use |
| 801 | "allocate_target_description" instead of "XNEW". |
| 802 | * linux-x86-low.c (initialize_low_arch): Likewise. |
| 803 | |
| 804 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 805 | |
| 806 | * configure.srv (srv_i386_regobj): Remove. |
| 807 | (srv_amd64_regobj): Remove. |
| 808 | (srv_regobj): Set it to "" for x86 non-linux targets. |
| 809 | * linux-x86-tdesc.c (i386_linux_read_description): |
| 810 | * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h. |
| 811 | (init_registers_i386): Remove the declaration. |
| 812 | (tdesc_i386): Remove the declaration. |
| 813 | (lynx_i386_arch_setup): Call i386_create_target_description. |
| 814 | * nto-x86-low.c: Likewise. |
| 815 | * win32-i386-low.c [__x86_64__]: include arch/amd64.h. |
| 816 | [!__x86_64__]: include arch/i386.h. |
| 817 | (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description. |
| 818 | |
| 819 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 820 | |
| 821 | * configure.srv (srv_amd64_linux_xmlfiles): Remove |
| 822 | i386/amd64-XXX-linux from it. |
| 823 | |
| 824 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 825 | |
| 826 | * configure.srv: Empty srv_amd64_linux_regobj if $development is |
| 827 | false. |
| 828 | (ipa_amd64_linux_regobj): Remove. |
| 829 | (ipa_x32_linux_regobj): Remove. |
| 830 | |
| 831 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 832 | |
| 833 | * Makefile.in (arch-amd64.o): New rule. |
| 834 | * configure.srv: Append arch-amd64.o. |
| 835 | * linux-amd64-ipa.c: Include common/x86-xstate.h. |
| 836 | (get_ipa_tdesc): Call amd64_linux_read_description. |
| 837 | (initialize_low_tracepoint): Don't call init_registers_x32_XXX |
| 838 | and init_registers_amd64_XXX. |
| 839 | * linux-x86-low.c (x86_linux_read_description): Call |
| 840 | amd64_linux_read_description. |
| 841 | (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx. |
| 842 | (initialize_low_arch): Don't call init_registers_x32_XXX and |
| 843 | init_registers_amd64_XXX. |
| 844 | * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX |
| 845 | and tdesc_amd64_XXX. |
| 846 | [__x86_64__] (amd64_tdesc_test): New function. |
| 847 | (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX |
| 848 | and init_registers_amd64_XXX. |
| 849 | * linux-x86-tdesc.c: Include arch/amd64.h. |
| 850 | (xcr0_to_tdesc_idx): New function. |
| 851 | (i386_linux_read_description): New function. |
| 852 | (amd64_get_ipa_tdesc_idx): New function. |
| 853 | * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare. |
| 854 | (amd64_get_ipa_tdesc): Declare. |
| 855 | |
| 856 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 857 | |
| 858 | * configure.srv (srv_i386_linux_xmlfiles): Remove |
| 859 | i386/i386-XXX-linux.xml from it. |
| 860 | |
| 861 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 862 | |
| 863 | * configure.srv: Set srv_i386_linux_regobj empty if $development |
| 864 | is false. |
| 865 | * linux-i386-ipa.c (initialize_low_tracepoint): Don't call |
| 866 | initialize_low_tdesc. |
| 867 | * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc |
| 868 | with #if initialize_low_tdesc. |
| 869 | * linux-x86-tdesc-selftest.c: New file. |
| 870 | * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c. |
| 871 | |
| 872 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 873 | |
| 874 | * Makefile.in (arch-i386.o): New rule. |
| 875 | * configure.srv (i[34567]86-*-linux*): Add arch-i386.o. |
| 876 | (x86_64-*-linux*): Likewise. |
| 877 | * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c, |
| 878 | include arch/i386.h. |
| 879 | (i386_linux_read_description): Remove code and call |
| 880 | i386_create_target_description. |
| 881 | * tdesc.c (allocate_target_description): New function. |
| 882 | * tdesc.h (set_tdesc_architecture): Remove declaration. |
| 883 | (set_tdesc_osabi): Likewise. |
| 884 | |
| 885 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 886 | |
| 887 | * linux-x86-tdesc.c: Don't include <inttypes.h>. |
| 888 | (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call |
| 889 | set_tdesc_architecture and set_tdesc_osabi. Remove code setting |
| 890 | .xmltarget. |
| 891 | * server.c (get_features_xml): Call tdesc_get_features_xml. |
| 892 | * tdesc.c (set_tdesc_architecture): New function. |
| 893 | (set_tdesc_osabi): New function. |
| 894 | (tdesc_get_features_xml): New function. |
| 895 | (tdesc_create_feature): Add an argument. |
| 896 | * tdesc.h (struct target_desc) <features>: New field. |
| 897 | <arch, osabi>: New field. |
| 898 | (~target_desc): xfree features, arch, and osabi. |
| 899 | (target_desc::oerator==): Don't compare .xmltarget. |
| 900 | [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare. |
| 901 | (set_tdesc_osabi): Likewise. |
| 902 | (tdesc_get_features_xml): Likewise. |
| 903 | |
| 904 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 905 | |
| 906 | * linux-x86-tdesc.c: Include selftest.h. |
| 907 | (i386_tdesc_test): New function. |
| 908 | (initialize_low_tdesc): Call selftests::register_test. |
| 909 | * tdesc.h: Include regdef.h. |
| 910 | (target_desc): Override operator == and !=. |
| 911 | |
| 912 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 913 | |
| 914 | * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o. |
| 915 | (ipa_obj): Likewise. |
| 916 | * linux-i386-ipa.c: Include common/x86-xstate.h |
| 917 | (get_ipa_tdesc): Call i386_linux_read_description. |
| 918 | (initialize_low_tracepoint): Don't call init_registers_XXX |
| 919 | functions, call initialize_low_tdesc instead. |
| 920 | * linux-x86-low.c (x86_linux_read_description): Call |
| 921 | i386_linux_read_description. |
| 922 | (initialize_low_arch): Don't call init_registers_i386_XXX |
| 923 | functions, call initialize_low_tdesc. |
| 924 | * linux-x86-tdesc.c: New file. |
| 925 | * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST. |
| 926 | (i386_get_ipa_tdesc_idx): Declare. |
| 927 | (i386_get_ipa_tdesc): Declare. |
| 928 | (initialize_low_tdesc): Declare. |
| 929 | |
| 930 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 931 | |
| 932 | * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX |
| 933 | instead of 0. |
| 934 | |
| 935 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
| 936 | |
| 937 | * Makefile.in (IPA_OBJS): Add vec-ipa.o |
| 938 | * regcache.c (get_thread_regcache): Use VEC_length. |
| 939 | (init_register_cache): Likewise. |
| 940 | (regcache_cpy): Likewise. |
| 941 | (registers_to_string): Iterate reg_defs via VEC_iterate. |
| 942 | (find_regno): Likewise. |
| 943 | (find_register_by_number): Use VEC_index. |
| 944 | (register_size): Call find_register_by_number. |
| 945 | (register_data): Call find_register_by_number. |
| 946 | (supply_regblock): Use VEC_length. |
| 947 | (regcache_raw_read_unsigned): Likewise. |
| 948 | * tdesc.c (init_target_desc): Iterate reg_defs via |
| 949 | VEC_iterate. |
| 950 | (default_description): Update initializer. |
| 951 | (copy_target_description): Don't update field num_registers. |
| 952 | * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC. |
| 953 | <num_registers>: Remove. |
| 954 | |
| 955 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
| 956 | |
| 957 | * Makefile.in (.SECONDARY): Define target. |
| 958 | |
| 959 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
| 960 | |
| 961 | * linux-low.c (linux_wait_1): Adjust. |
| 962 | * server.c (queue_stop_reply_callback): Adjust. |
| 963 | |
| 964 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
| 965 | |
| 966 | * server.c (handle_general_set): Handle QEnvironmentHexEncoded, |
| 967 | QEnvironmentUnset and QEnvironmentReset packets. |
| 968 | (handle_query): Inform remote that QEnvironmentHexEncoded, |
| 969 | QEnvironmentUnset and QEnvironmentReset are supported. |
| 970 | |
| 971 | 2017-08-25 Simon Marchi <simon.marchi@ericsson.com> |
| 972 | |
| 973 | * inferiors.h (inferior_target_data): Rename to ... |
| 974 | (thread_target_data): ... this. |
| 975 | (inferior_regcache_data): Rename to ... |
| 976 | (thread_regcache_data): ... this. |
| 977 | (set_inferior_regcache_data): Rename to ... |
| 978 | (set_thread_regcache_data): ... this. |
| 979 | * inferiors.c (inferior_target_data): Rename to ... |
| 980 | (thread_target_data): ... this. |
| 981 | (inferior_regcache_data): Rename to ... |
| 982 | (thread_regcache_data): ... this. |
| 983 | (set_inferior_regcache_data): Rename to ... |
| 984 | (set_thread_regcache_data): ... this. |
| 985 | (free_one_thread): Update. |
| 986 | * linux-low.h (get_thread_lwp): Update. |
| 987 | * regcache.c (get_thread_regcache): Update. |
| 988 | (regcache_invalidate_thread): Update. |
| 989 | (free_register_cache_thread): Update. |
| 990 | * win32-i386-low.c (update_debug_registers_callback): Update. |
| 991 | (win32_get_current_dr): Update. |
| 992 | * win32-low.c (thread_rec): Update. |
| 993 | (delete_thread_info): Update. |
| 994 | (continue_one_thread): Update. |
| 995 | (suspend_one_thread): Update. |
| 996 | |
| 997 | 2017-08-24 Simon Marchi <simon.marchi@ericsson.com> |
| 998 | |
| 999 | * inferiors.c (set_inferior_target_data): Remove. |
| 1000 | * inferiors.h (set_inferior_target_data): Remove. |
| 1001 | |
| 1002 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
| 1003 | |
| 1004 | * Makefile.in (OBS): Add selftest.o. |
| 1005 | * configure.ac: AC_DEFINE GDB_SELF_TEST if $development. |
| 1006 | * configure, config.in: Re-generated. |
| 1007 | * server.c: Include common/sefltest.h. |
| 1008 | (captured_main): Handle option --selftest. |
| 1009 | |
| 1010 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
| 1011 | |
| 1012 | * configure.srv (srv_i386_regobj): Remove i386-avx.o, |
| 1013 | i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o, |
| 1014 | i386-avx-mpx.o and i386-mmx.o. |
| 1015 | (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o, |
| 1016 | amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o. |
| 1017 | (srv_i386_xmlfiles): Remove i386/i386-avx.xml, |
| 1018 | i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml, |
| 1019 | i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml. |
| 1020 | (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml, |
| 1021 | i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml, |
| 1022 | i386/amd64-avx-mpx.xml. |
| 1023 | |
| 1024 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
| 1025 | |
| 1026 | * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o |
| 1027 | and x32-avx-avx512.o. |
| 1028 | (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml |
| 1029 | i386/x32-avx-avx512.xml. |
| 1030 | |
| 1031 | 2017-07-26 Simon Marchi <simon.marchi@ericsson.com> |
| 1032 | |
| 1033 | * tracepoint.h (enum class fast_tpoint_collect_result): New |
| 1034 | enumeration. |
| 1035 | (fast_tracepoint_collecting): Change return type to |
| 1036 | fast_tpoint_collect_result. |
| 1037 | * tracepoint.c (fast_tracepoint_collecting): Likewise. |
| 1038 | * linux-low.h: Include tracepoint.h. |
| 1039 | (struct lwp_info) <collecting_fast_tracepoint>: Change type to |
| 1040 | fast_tpoint_collect_result. |
| 1041 | * linux-low.c (handle_tracepoints): Adjust. |
| 1042 | (linux_fast_tracepoint_collecting): Change return type to |
| 1043 | fast_tpoint_collect_result. |
| 1044 | (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered, |
| 1045 | linux_wait_1, stuck_in_jump_pad_callback, |
| 1046 | lwp_signal_can_be_delivered, linux_resume_one_lwp_throw, |
| 1047 | proceed_one_lwp): Adjust to type change. |
| 1048 | |
| 1049 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
| 1050 | |
| 1051 | * linux-x86-low.c (x86_linux_read_description): Re-indent the code. |
| 1052 | |
| 1053 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
| 1054 | |
| 1055 | * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>: |
| 1056 | Remove. |
| 1057 | [IN_PROCESS_AGENT] <xmltarget>: Likewise. |
| 1058 | |
| 1059 | 2017-06-20 Simon Marchi <simon.marchi@ericsson.com> |
| 1060 | |
| 1061 | * Makefile.in (IPA_OBJS): Sort and format one item per line. |
| 1062 | |
| 1063 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1064 | |
| 1065 | * linux-low.c (linux_create_inferior): Adjust code to access the |
| 1066 | environment information via 'gdb_environ' class. |
| 1067 | * lynx-low.c (lynx_create_inferior): Likewise. |
| 1068 | * server.c (our_environ): Make it an instance of 'gdb_environ'. |
| 1069 | (get_environ): Return a pointer to 'our_environ'. |
| 1070 | (captured_main): Initialize 'our_environ'. |
| 1071 | * server.h (get_environ): Adjust prototype. |
| 1072 | * spu-low.c (spu_create_inferior): Adjust code to access the |
| 1073 | environment information via 'gdb_environ' class. |
| 1074 | |
| 1075 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 1076 | |
| 1077 | * linux-low.c (linux_read_memory, linux_write_memory): Remove |
| 1078 | usage of "register" keyword. |
| 1079 | |
| 1080 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 1081 | |
| 1082 | * configure: Re-generate. |
| 1083 | |
| 1084 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 1085 | |
| 1086 | * configure: Re-generate. |
| 1087 | |
| 1088 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
| 1089 | |
| 1090 | * Makefile.in (COMPILE.pre): Add "-x c++". |
| 1091 | |
| 1092 | 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1093 | |
| 1094 | * fork-child.c: Conditionally include <signal.h>. |
| 1095 | |
| 1096 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1097 | |
| 1098 | * server.c (handle_general_set): Handle new packet |
| 1099 | "QStartupWithShell". |
| 1100 | (handle_query): Add "QStartupWithShell" to the list of supported |
| 1101 | packets. |
| 1102 | (gdbserver_usage): Add help text explaining the |
| 1103 | new "--startup-with-shell" and "--no-startup-with-shell" CLI |
| 1104 | options. |
| 1105 | (captured_main): Recognize and act upon the presence of the new |
| 1106 | CLI options. |
| 1107 | |
| 1108 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1109 | Pedro Alves <palves@redhat.com> |
| 1110 | |
| 1111 | * Makefile.in (SFILES): Add "nat/fork-inferior.o". |
| 1112 | * configure: Regenerate. |
| 1113 | * configure.srv (srv_linux_obj): Add "fork-child.o" and |
| 1114 | "fork-inferior.o". |
| 1115 | (i[34567]86-*-lynxos*): Likewise. |
| 1116 | (spu*-*-*): Likewise. |
| 1117 | * fork-child.c: New file. |
| 1118 | * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h" |
| 1119 | and "environ.h". |
| 1120 | (linux_ptrace_fun): New function. |
| 1121 | (linux_create_inferior): Adjust function prototype to reflect |
| 1122 | change on "target.h". Adjust function code to use |
| 1123 | "fork_inferior". |
| 1124 | (linux_request_interrupt): Delete "signal_pid". |
| 1125 | * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h". |
| 1126 | (lynx_ptrace_fun): New function. |
| 1127 | (lynx_create_inferior): Adjust function prototype to reflect |
| 1128 | change on "target.h". Adjust function code to use |
| 1129 | "fork_inferior". |
| 1130 | * nto-low.c (nto_create_inferior): Adjust function prototype and |
| 1131 | code to reflect change on "target.h". Update comments. |
| 1132 | * server.c: Include "common-inferior.h", "nat/fork-inferior.h", |
| 1133 | "common-terminal.h" and "environ.h". |
| 1134 | (terminal_fd): Moved to fork-child.c. |
| 1135 | (old_foreground_pgrp): Likewise. |
| 1136 | (restore_old_foreground_pgrp): Likewise. |
| 1137 | (last_status): Make it global. |
| 1138 | (last_ptid): Likewise. |
| 1139 | (our_environ): New variable. |
| 1140 | (startup_with_shell): Likewise. |
| 1141 | (program_name): Likewise. |
| 1142 | (program_argv): Rename to... |
| 1143 | (program_args): ...this. |
| 1144 | (wrapper_argv): New variable. |
| 1145 | (start_inferior): Delete function. |
| 1146 | (get_exec_wrapper): New function. |
| 1147 | (get_exec_file): Likewise. |
| 1148 | (get_environ): Likewise. |
| 1149 | (prefork_hook): Likewise. |
| 1150 | (post_fork_inferior): Likewise. |
| 1151 | (postfork_hook): Likewise. |
| 1152 | (postfork_child_hook): Likewise. |
| 1153 | (handle_v_run): Update code to deal with arguments coming from the |
| 1154 | remote host. Update calls from "start_inferior" to |
| 1155 | "create_inferior". |
| 1156 | (captured_main): Likewise. Initialize environment variable. Call |
| 1157 | "have_job_control". |
| 1158 | * server.h (post_fork_inferior): New prototype. |
| 1159 | (get_environ): Likewise. |
| 1160 | (last_status): Declare. |
| 1161 | (last_ptid): Likewise. |
| 1162 | (signal_pid): Likewise. |
| 1163 | * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h". |
| 1164 | (spu_ptrace_fun): New function. |
| 1165 | (spu_create_inferior): Adjust function prototype to reflect change |
| 1166 | on "target.h". Adjust function code to use "fork_inferior". |
| 1167 | * target.c (target_terminal_init): New function. |
| 1168 | (target_terminal_inferior): Likewise. |
| 1169 | (target_terminal_ours): Likewise. |
| 1170 | * target.h: Include <vector>. |
| 1171 | (struct target_ops) <create_inferior>: Update prototype. |
| 1172 | (create_inferior): Update macro. |
| 1173 | * utils.c (gdb_flush_out_err): New function. |
| 1174 | * win32-low.c (win32_create_inferior): Adjust function prototype |
| 1175 | and code to reflect change on "target.h". |
| 1176 | |
| 1177 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1178 | |
| 1179 | * inferiors.c (switch_to_thread): New function. |
| 1180 | |
| 1181 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1182 | |
| 1183 | * Makefile.in (SFILE): Add "common/job-control.c". |
| 1184 | (OBS): Add "job-control.o". |
| 1185 | |
| 1186 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1187 | |
| 1188 | * Makefile: Remove "@host_makefile_frag@". |
| 1189 | |
| 1190 | 2017-05-05 Pedro Alves <palves@redhat.com> |
| 1191 | |
| 1192 | * configure: Regenerate. |
| 1193 | |
| 1194 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1195 | |
| 1196 | * configure: Regenerate. |
| 1197 | |
| 1198 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 1199 | |
| 1200 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to |
| 1201 | software_single_step change of return type to |
| 1202 | std::vector<CORE_ADDR>. |
| 1203 | * linux-low.c (install_software_single_step_breakpoints): |
| 1204 | Likewise. |
| 1205 | * linux-low.h (install_software_single_step_breakpoints): |
| 1206 | Likewise. |
| 1207 | |
| 1208 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1209 | |
| 1210 | * remote-utils.c: Include "gdb_termios.h" instead of |
| 1211 | "terminal.h". |
| 1212 | * terminal.h: Delete file. |
| 1213 | |
| 1214 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1215 | |
| 1216 | * server.c: Include <vector>. |
| 1217 | <program_argv, wrapper_argv>: Convert to std::vector. |
| 1218 | (start_inferior): Rewrite function to use C++. |
| 1219 | (handle_v_run): Likewise. Update code that calculates the argv |
| 1220 | based on the vRun packet; use C++. |
| 1221 | (captured_main): Likewise. |
| 1222 | |
| 1223 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
| 1224 | |
| 1225 | * server.c (handle_v_cont): Initialize thread_resume::thread |
| 1226 | with null_ptid. |
| 1227 | |
| 1228 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 1229 | |
| 1230 | * configure: Regenerate. |
| 1231 | |
| 1232 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 1233 | |
| 1234 | * gdbreplay.c (sync_error): Constify. |
| 1235 | * linux-x86-low.c (push_opcode): Constify. |
| 1236 | |
| 1237 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 1238 | |
| 1239 | * win32-low.c (get_child_debug_event) |
| 1240 | <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD. |
| 1241 | Report TARGET_WAITKIND_SPURIOUS instead. |
| 1242 | |
| 1243 | 2017-04-05 Pedro Alves <palves@redhat.com> |
| 1244 | |
| 1245 | * remote-utils.c (remote_prepare, remote_open): Constify. |
| 1246 | * remote-utils.h (remote_prepare, remote_open): Constify. |
| 1247 | * server.c (captured_main): Constify 'port' handling. |
| 1248 | |
| 1249 | 2017-04-04 Simon Marchi <simon.marchi@ericsson.com> |
| 1250 | |
| 1251 | * Makefile.in (clean): Clear .deps. |
| 1252 | |
| 1253 | 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca> |
| 1254 | |
| 1255 | * .gitignore: Remove generated files, replace with wildcard. |
| 1256 | * (clean): Replace removal of generated files with wildcard. |
| 1257 | (version.c): Replace with... |
| 1258 | (version-generated.c): ...this. |
| 1259 | (xml-builtin.c): Replace with... |
| 1260 | (xml-builtin-generated.c): ...this. |
| 1261 | (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules. |
| 1262 | (%.c: *regformats*): Replace with... |
| 1263 | (%-generated.c: *regformats*): ...this. |
| 1264 | |
| 1265 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
| 1266 | |
| 1267 | * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member. |
| 1268 | (xtensa_fill_gregset): Call collect_register_by_name for |
| 1269 | threadptr register. |
| 1270 | (xtensa_store_gregset): Call supply_register_by_name for |
| 1271 | threadptr register. |
| 1272 | |
| 1273 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
| 1274 | |
| 1275 | * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register |
| 1276 | for all registers in a0_regnum..a0_regnum + C0_NREGS range. |
| 1277 | (xtensa_store_gregset): Call supply_register for all registers in |
| 1278 | a0_regnum..a0_regnum + C0_NREGS range. |
| 1279 | |
| 1280 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1281 | |
| 1282 | * Makefile.in (%-ipa.o: %-ipa.c): New rule. |
| 1283 | (ax-ipa.o: ax.c): Remove. |
| 1284 | (linux-i386-ipa.o: linux-i386-ipa.c): Remove. |
| 1285 | (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove. |
| 1286 | (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove. |
| 1287 | (linux-s390-ipa.o: linux-s390-ipa.c): Remove. |
| 1288 | (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove. |
| 1289 | |
| 1290 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1291 | |
| 1292 | * Makefile.in (%-ipa.o: ../common/%.c): New rule. |
| 1293 | (print-utils-ipa.o: ../common/print-utils.c): Remove. |
| 1294 | (rsp-low-ipa.o: ../common/rsp-low.c): Remove. |
| 1295 | (errors-ipa.o: ../common/errors.c): Remove. |
| 1296 | (format-ipa.o: ../common/format.c): Remove. |
| 1297 | (common-utils-ipa.o: ../common/common-utils.c): Remove. |
| 1298 | |
| 1299 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1300 | |
| 1301 | * Makefile.in (%-ipa.o: %.c): New rule. |
| 1302 | (tracepoint-ipa.o: tracepoint.c): Remove. |
| 1303 | (utils-ipa.o: utils.c): Remove. |
| 1304 | (remote-utils-ipa.o: remote-utils.c): Remove. |
| 1305 | (regcache-ipa.o: regcache.c): Remove. |
| 1306 | (i386-linux-ipa.o: i386-linux.c): Remove. |
| 1307 | (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove. |
| 1308 | (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove. |
| 1309 | (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove. |
| 1310 | (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove. |
| 1311 | (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove. |
| 1312 | (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove. |
| 1313 | (amd64-linux-ipa.o: amd64-linux.c): Remove. |
| 1314 | (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove. |
| 1315 | (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove. |
| 1316 | (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove. |
| 1317 | (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove. |
| 1318 | (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove. |
| 1319 | (aarch64-ipa.o: aarch64.c): Remove. |
| 1320 | (s390-linux32-ipa.o: s390-linux32.c): Remove. |
| 1321 | (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove. |
| 1322 | (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove. |
| 1323 | (s390-linux64-ipa.o: s390-linux64.c): Remove. |
| 1324 | (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove. |
| 1325 | (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove. |
| 1326 | (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove. |
| 1327 | (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove. |
| 1328 | (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove. |
| 1329 | (s390x-linux64-ipa.o: s390x-linux64.c): Remove. |
| 1330 | (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove. |
| 1331 | (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove. |
| 1332 | (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove. |
| 1333 | (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove. |
| 1334 | (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove. |
| 1335 | (powerpc-32l-ipa.o: powerpc-32l.c): Remove. |
| 1336 | (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove. |
| 1337 | (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove. |
| 1338 | (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove. |
| 1339 | (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove. |
| 1340 | (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove. |
| 1341 | (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove. |
| 1342 | (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove. |
| 1343 | (powerpc-64l-ipa.o: powerpc-64l.c): Remove. |
| 1344 | (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove. |
| 1345 | (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove. |
| 1346 | (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove. |
| 1347 | (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove. |
| 1348 | (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove. |
| 1349 | (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove. |
| 1350 | (tdesc-ipa.o: tdesc.c): Remove. |
| 1351 | (x32-linux-ipa.o: x32-linux.c): Remove. |
| 1352 | (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove. |
| 1353 | (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove. |
| 1354 | |
| 1355 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1356 | |
| 1357 | * Makefile.in (%.o: ../arch/%.c): New rule. |
| 1358 | (arm.o: ../arch/arm.c): Remove. |
| 1359 | (arm-linux.o: ../arch/arm-linux.c): Remove. |
| 1360 | (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove. |
| 1361 | (aarch64-insn.o: ../arch/aarch64-insn.c): Remove. |
| 1362 | |
| 1363 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1364 | |
| 1365 | * Makefile.in (%.o: ../nat/%.c): New rule. |
| 1366 | (x86-dregs.o: ../nat/x86-dregs.c): Remove. |
| 1367 | (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove. |
| 1368 | (linux-btrace.o: ../nat/linux-btrace.c): Remove. |
| 1369 | (linux-osdata.o: ../nat/linux-osdata.c): Remove. |
| 1370 | (linux-procfs.o: ../nat/linux-procfs.c): Remove. |
| 1371 | (linux-ptrace.o: ../nat/linux-ptrace.c): Remove. |
| 1372 | (linux-waitpid.o: ../nat/linux-waitpid.c): Remove. |
| 1373 | (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove. |
| 1374 | (ppc-linux.o: ../nat/ppc-linux.c): Remove. |
| 1375 | (linux-personality.o: ../nat/linux-personality.c): Remove. |
| 1376 | (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove. |
| 1377 | (aarch64-linux.o: ../nat/aarch64-linux.c): Remove. |
| 1378 | (x86-linux.o: ../nat/x86-linux.c): Remove. |
| 1379 | (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove. |
| 1380 | (linux-namespaces.o: ../nat/linux-namespaces.c): Remove. |
| 1381 | |
| 1382 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1383 | |
| 1384 | * Makefile.in (%.o: ../common/%.c): New rule. |
| 1385 | (signals.o: ../common/signals.c): Remove. |
| 1386 | (print-utils.o: ../common/print-utils.c): Remove. |
| 1387 | (rsp-low.o: ../common/rsp-low.c): Remove. |
| 1388 | (common-utils.o: ../common/common-utils.c): Remove. |
| 1389 | (posix-strerror.o: ../common/posix-strerror.c): Remove. |
| 1390 | (mingw-strerror.o: ../common/mingw-strerror.c): Remove. |
| 1391 | (vec.o: ../common/vec.c): Remove. |
| 1392 | (gdb_vecs.o: ../common/gdb_vecs.c): Remove. |
| 1393 | (xml-utils.o: ../common/xml-utils.c): Remove. |
| 1394 | (ptid.o: ../common/ptid.c): Remove. |
| 1395 | (buffer.o: ../common/buffer.c): Remove. |
| 1396 | (format.o: ../common/format.c): Remove. |
| 1397 | (filestuff.o: ../common/filestuff.c): Remove. |
| 1398 | (agent.o: ../common/agent.c): Remove. |
| 1399 | (errors.o: ../common/errors.c): Remove. |
| 1400 | (environ.o: ../common/environ.c): Remove. |
| 1401 | (common-debug.o: ../common/common-debug.c): Remove. |
| 1402 | (cleanups.o: ../common/cleanups.c): Remove. |
| 1403 | (common-exceptions.o: ../common/common-exceptions.c): Remove. |
| 1404 | (fileio.o: ../common/fileio.c): Remove. |
| 1405 | (common-regcache.o: ../common/common-regcache.c): Remove. |
| 1406 | (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove. |
| 1407 | (new-op.o: ../common/new-op.c): Remove. |
| 1408 | (btrace-common.o: ../common/btrace-common.c): Remove. |
| 1409 | |
| 1410 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1411 | |
| 1412 | * Makefile.in (%.o: ../target/%.c): New rule. |
| 1413 | (waitstatus.o: ../target/waitstatus.c): Remove. |
| 1414 | |
| 1415 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 1416 | |
| 1417 | * Makefile.in |
| 1418 | (%.c: ../regformats/%.dat, |
| 1419 | (%.c: ../regformats/arm/%.dat, |
| 1420 | (%.c: ../regformats/i386/%.dat, |
| 1421 | (%.c: ../regformats/rs6000/%.dat): New rules. |
| 1422 | (aarch64.c): Remove. |
| 1423 | (reg-arm.c): Remove. |
| 1424 | (arm-with-iwmmxt.c): Remove. |
| 1425 | (arm-with-vfpv2.c): Remove. |
| 1426 | (arm-with-vfpv3.c): Remove. |
| 1427 | (arm-with-neon.c): Remove. |
| 1428 | (reg-bfin.c): Remove. |
| 1429 | (reg-cris.c): Remove. |
| 1430 | (reg-crisv32.c): Remove. |
| 1431 | (i386.c): Remove. |
| 1432 | (i386-linux.c): Remove. |
| 1433 | (i386-avx.c): Remove. |
| 1434 | (i386-avx-linux.c): Remove. |
| 1435 | (i386-avx-avx512.c): Remove. |
| 1436 | (i386-avx-avx512-linux.c): Remove. |
| 1437 | (i386-mpx.c): Remove. |
| 1438 | (i386-mpx-linux.c): Remove. |
| 1439 | (i386-avx-mpx-avx512-pku.c): Remove. |
| 1440 | (i386-avx-mpx-avx512-pku-linux.c): Remove. |
| 1441 | (i386-avx-mpx.c): Remove. |
| 1442 | (i386-avx-mpx-linux.c): Remove. |
| 1443 | (i386-mmx.c): Remove. |
| 1444 | (i386-mmx-linux.c): Remove. |
| 1445 | (reg-ia64.c): Remove. |
| 1446 | (reg-m32r.c): Remove. |
| 1447 | (reg-m68k.c): Remove. |
| 1448 | (reg-cf.c): Remove. |
| 1449 | (mips-linux.c): Remove. |
| 1450 | (mips-dsp-linux.c): Remove. |
| 1451 | (mips64-linux.c): Remove. |
| 1452 | (mips64-dsp-linux.c): Remove. |
| 1453 | (nios2-linux.c): Remove. |
| 1454 | (powerpc-32.c): Remove. |
| 1455 | (powerpc-32l.c): Remove. |
| 1456 | (powerpc-altivec32l.c): Remove. |
| 1457 | (powerpc-cell32l.c): Remove. |
| 1458 | (powerpc-vsx32l.c): Remove. |
| 1459 | (powerpc-isa205-32l.c): Remove. |
| 1460 | (powerpc-isa205-altivec32l.c): Remove. |
| 1461 | (powerpc-isa205-vsx32l.c): Remove. |
| 1462 | (powerpc-e500l.c): Remove. |
| 1463 | (powerpc-64l.c): Remove. |
| 1464 | (powerpc-altivec64l.c): Remove. |
| 1465 | (powerpc-cell64l.c): Remove. |
| 1466 | (powerpc-vsx64l.c): Remove. |
| 1467 | (powerpc-isa205-64l.c): Remove. |
| 1468 | (powerpc-isa205-altivec64l.c): Remove. |
| 1469 | (powerpc-isa205-vsx64l.c): Remove. |
| 1470 | (s390-linux32.c): Remove. |
| 1471 | (s390-linux32v1.c): Remove. |
| 1472 | (s390-linux32v2.c): Remove. |
| 1473 | (s390-linux64.c): Remove. |
| 1474 | (s390-linux64v1.c): Remove. |
| 1475 | (s390-linux64v2.c): Remove. |
| 1476 | (s390-te-linux64.c): Remove. |
| 1477 | (s390-vx-linux64.c): Remove. |
| 1478 | (s390-tevx-linux64.c): Remove. |
| 1479 | (s390x-linux64.c): Remove. |
| 1480 | (s390x-linux64v1.c): Remove. |
| 1481 | (s390x-linux64v2.c): Remove. |
| 1482 | (s390x-te-linux64.c): Remove. |
| 1483 | (s390x-vx-linux64.c): Remove. |
| 1484 | (s390x-tevx-linux64.c): Remove. |
| 1485 | (tic6x-c64xp-linux.c): Remove. |
| 1486 | (tic6x-c64x-linux.c): Remove. |
| 1487 | (tic6x-c62x-linux.c): Remove. |
| 1488 | (reg-sh.c): Remove. |
| 1489 | (reg-sparc64.c): Remove. |
| 1490 | (reg-spu.c): Remove. |
| 1491 | (amd64.c): Remove. |
| 1492 | (amd64-linux.c): Remove. |
| 1493 | (amd64-avx.c): Remove. |
| 1494 | (amd64-avx-linux.c): Remove. |
| 1495 | (amd64-avx-avx512.c): Remove. |
| 1496 | (amd64-avx-avx512-linux.c): Remove. |
| 1497 | (amd64-mpx.c): Remove. |
| 1498 | (amd64-mpx-linux.c): Remove. |
| 1499 | (amd64-avx-mpx-avx512-pku.c): Remove. |
| 1500 | (amd64-avx-mpx-avx512-pku-linux.c): Remove. |
| 1501 | (amd64-avx-mpx.c): Remove. |
| 1502 | (amd64-avx-mpx-linux.c): Remove. |
| 1503 | (x32.c): Remove. |
| 1504 | (x32-linux.c): Remove. |
| 1505 | (x32-avx.c): Remove. |
| 1506 | (x32-avx-linux.c): Remove. |
| 1507 | (x32-avx-avx512.c): Remove. |
| 1508 | (x32-avx-avx512-linux.c): Remove. |
| 1509 | (reg-xtensa.c): Remove. |
| 1510 | (reg-tilegx.c): Remove. |
| 1511 | (reg-tilegx32.c): Remove. |
| 1512 | |
| 1513 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1514 | |
| 1515 | * Makefile.in (SFILES): Add "common/environ.c". |
| 1516 | (OBJS): Add "common/environ.h". |
| 1517 | |
| 1518 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 1519 | |
| 1520 | * configure.ac: Check if the fs_base and gs_base members of |
| 1521 | `struct user_regs_struct' exist. |
| 1522 | * config.in: Regenerated. |
| 1523 | * configure: Likewise. |
| 1524 | |
| 1525 | 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 1526 | |
| 1527 | * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use |
| 1528 | target_read_memory. |
| 1529 | * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise. |
| 1530 | (get_next_pcs_syscall_next_pc): Likewise. |
| 1531 | |
| 1532 | 2016-12-23 Luis Machado <lgustavo@codesourcery.com> |
| 1533 | |
| 1534 | * win32-i386-low.c: Fix incorrect reference to a couple source files. |
| 1535 | * nto-x86-low.c: Likewise. |
| 1536 | |
| 1537 | 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca> |
| 1538 | |
| 1539 | * Makefile.in: Include disable-implicit-rules.mk. |
| 1540 | |
| 1541 | 2016-11-23 Pedro Alves <palves@redhat.com> |
| 1542 | |
| 1543 | * debug.c: Include <chrono> instead of "gdb_sys_time.h". |
| 1544 | (debug_vprintf): Use std::chrono::steady_clock instead of |
| 1545 | gettimeofday. Use '.' instead of ':'. |
| 1546 | * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h". |
| 1547 | (get_timestamp): Use std::chrono::steady_clock instead of |
| 1548 | gettimeofday. |
| 1549 | |
| 1550 | 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 1551 | |
| 1552 | * Makefile.in: Fix whitespace formatting. |
| 1553 | |
| 1554 | 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 1555 | |
| 1556 | * Makefile.in (SFILES, OBS): Flatten list and order |
| 1557 | alphabetically. |
| 1558 | |
| 1559 | 2016-11-23 Pedro Alves <palves@redhat.com> |
| 1560 | |
| 1561 | * event-loop.c (handle_file_event): Use warning. |
| 1562 | * linux-low.c (linux_resume_one_lwp_throw): Use warning. |
| 1563 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): |
| 1564 | Use warning. |
| 1565 | |
| 1566 | 2016-11-23 Pedro Alves <palves@redhat.com> |
| 1567 | |
| 1568 | * linux-low.c (check_zombie_leaders): Use debug_printf for debug |
| 1569 | output. |
| 1570 | * notif.c (handle_notif_ack, notif_event_enque): Likewise. |
| 1571 | * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use |
| 1572 | debug_printf and debug_flush for debug output. |
| 1573 | * server.c (handle_general_set): Likewise. |
| 1574 | * thread-db.c (try_thread_db_load): Use debug_printf for debug |
| 1575 | output. |
| 1576 | |
| 1577 | 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 1578 | |
| 1579 | * Makefile.in (.c.o): Replace rule with ... |
| 1580 | (%.o: %.c): ... this one. |
| 1581 | |
| 1582 | 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 1583 | |
| 1584 | * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines |
| 1585 | prefixed with @GMAKE_FALSE@. Update comment related to non-GNU |
| 1586 | make. |
| 1587 | * configure.ac: Remove checks for the make program. |
| 1588 | * configure: Re-generate. |
| 1589 | |
| 1590 | 2016-10-28 Pedro Alves <palves@redhat.com> |
| 1591 | |
| 1592 | * Makefile.in (CXX_DIALECT): Get from configure. |
| 1593 | (COMPILE.pre, CC_LD): Append $(CXX_DIALECT). |
| 1594 | * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4. |
| 1595 | * configure.ac: Call AX_CXX_COMPILE_STDCXX. |
| 1596 | * config.in: Regenerate. |
| 1597 | * configure: Regenerate. |
| 1598 | |
| 1599 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
| 1600 | |
| 1601 | * linux-low.c (linux_supports_range_stepping): Return true if |
| 1602 | can_software_single_step return true. |
| 1603 | |
| 1604 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
| 1605 | |
| 1606 | * inferiors.c (find_inferior_in_random): New function. |
| 1607 | * inferiors.h (find_inferior_in_random): Declare. |
| 1608 | * linux-low.c (linux_wait_for_event_filtered): Call |
| 1609 | find_inferior_in_random instead of find_inferior. |
| 1610 | |
| 1611 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
| 1612 | |
| 1613 | * linux-low.c (linux_wait_1): If single-step breakpoints are |
| 1614 | inserted, remove them. |
| 1615 | |
| 1616 | 2016-10-26 Pedro Alves <palves@redhat.com> |
| 1617 | |
| 1618 | * linux-low.c (handle_extended_wait): Link parent/child fork |
| 1619 | threads. |
| 1620 | (linux_wait_1): Unlink them. |
| 1621 | (linux_set_resume_request): Ignore resume requests for |
| 1622 | already-resumed and unhandled fork child threads. |
| 1623 | * linux-low.h (struct lwp_info) <fork_relative>: New field. |
| 1624 | * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies): |
| 1625 | New functions. |
| 1626 | (handle_v_requests) <vCont>: Don't call require_running. |
| 1627 | * server.h (in_queued_stop_replies): New declaration. |
| 1628 | |
| 1629 | 2016-10-24 Yao Qi <yao.qi@linaro.org> |
| 1630 | |
| 1631 | PR server/20733 |
| 1632 | * linux-aarch64-low.c (append_insns): Cast the return value to |
| 1633 | 'uint32_t *'. |
| 1634 | |
| 1635 | 2016-10-10 Yao Qi <yao.qi@linaro.org> |
| 1636 | |
| 1637 | * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove. |
| 1638 | |
| 1639 | 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1640 | |
| 1641 | * target.c (target_supports_multi_process): New function, moved |
| 1642 | from... |
| 1643 | * target.h (target_supports_multi_process): ... here. Remove |
| 1644 | macro. |
| 1645 | |
| 1646 | 2016-10-05 Tom Tromey <tom@tromey.com> |
| 1647 | |
| 1648 | PR remote/20655: |
| 1649 | * tracepoint.c (handle_tracepoint_bkpts): Check |
| 1650 | ipa_error_tracepoint, not ipa_stopping_tracepoint. |
| 1651 | |
| 1652 | 2016-10-05 Yao Qi <yao.qi@linaro.org> |
| 1653 | |
| 1654 | * configure.srv: Update the path of arm-*.xml files. |
| 1655 | |
| 1656 | 2016-10-05 Terry Guo <terry.guo@arm.com> |
| 1657 | Yao Qi <yao.qi@linaro.org> |
| 1658 | |
| 1659 | * Makefile.in: Adjust the path of rules. |
| 1660 | * configure.srv: Update the path of xml files. |
| 1661 | * regformats/arm-with-iwmmxt.dat: Regenerated. |
| 1662 | * regformats/arm-with-neon.dat: Likewise. |
| 1663 | * regformats/arm-with-vfpv2.dat: Likewise. |
| 1664 | * regformats/arm-with-vfpv3.dat Likewise. |
| 1665 | |
| 1666 | 2016-09-30 Yao Qi <yao.qi@linaro.org> |
| 1667 | |
| 1668 | PR gdbserver/20627 |
| 1669 | * target.c (target_stop_and_wait): Don't call |
| 1670 | target_continue_no_signal, use resume_stop instead. |
| 1671 | |
| 1672 | 2016-09-26 Yao Qi <yao.qi@linaro.org> |
| 1673 | |
| 1674 | * linux-low.c (linux_wait_1): Call debug_exit. |
| 1675 | |
| 1676 | 2016-09-23 Pedro Alves <palves@redhat.com> |
| 1677 | |
| 1678 | * Makefile.in (SFILES): Add common/new-op.c. |
| 1679 | (OBS): Add common/new-op.o. |
| 1680 | (new-op.o): New rule. |
| 1681 | |
| 1682 | 2016-09-21 Simon Marchi <simon.marchi@ericsson.com> |
| 1683 | |
| 1684 | * .gitinore: Ignore more files. |
| 1685 | |
| 1686 | 2016-09-21 Yao Qi <yao.qi@linaro.org> |
| 1687 | |
| 1688 | * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to |
| 1689 | 23. |
| 1690 | |
| 1691 | 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1692 | |
| 1693 | * server.c (start_inferior): Call target_mourn_inferior instead of |
| 1694 | mourn_inferior; pass ptid_t argument to it. |
| 1695 | (resume): Likewise. |
| 1696 | (handle_target_event): Likewise. |
| 1697 | * target.c (target_mourn_inferior): New function. |
| 1698 | * target.h (mourn_inferior): Delete macro. |
| 1699 | |
| 1700 | 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 1701 | |
| 1702 | * linux-low.c (lwp_is_stepping): New function. |
| 1703 | |
| 1704 | 2016-09-06 Carl Love <cel@us.ibm.com> |
| 1705 | |
| 1706 | * server.c (start_inferior): Fixed comment, requested comment change |
| 1707 | didn't get updated correctly. Removed reference to ptrace () call as |
| 1708 | it is only true on Linux systems. |
| 1709 | |
| 1710 | 2016-09-06 Carl Love <cel@us.ibm.com> |
| 1711 | |
| 1712 | * server.c (start_inferior): Do not call |
| 1713 | function target_post_create_inferior () if the |
| 1714 | inferior process has already exited. |
| 1715 | |
| 1716 | 2016-09-05 Pedro Alves <palves@redhat.com> |
| 1717 | |
| 1718 | * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove. |
| 1719 | (COMPILE.pre, CC_LD): Use CXX directly. |
| 1720 | (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly. |
| 1721 | * acinclude.m4: Don't include build-with-cxx.m4. |
| 1722 | * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call. |
| 1723 | * configure: Regenerate. |
| 1724 | |
| 1725 | 2016-09-02 Akash Trehan <akash.trehan123@gmail.com> |
| 1726 | |
| 1727 | PR gdb/19495 |
| 1728 | * remote-utils.c (relocate_instruction): Remove redundant strcpy() |
| 1729 | call writing data to own_buf. |
| 1730 | |
| 1731 | 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1732 | |
| 1733 | * target.c (mywait): Call target_wait instead of |
| 1734 | the_target->wait. |
| 1735 | (target_wait): New function. |
| 1736 | |
| 1737 | 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com> |
| 1738 | |
| 1739 | * server.c (start_inferior): New variable 'ptid'. Replace calls |
| 1740 | to the_target->resume by target_continue{,_no_signal}, depending |
| 1741 | on the case. |
| 1742 | * target.c (target_stop_and_wait): Call target_continue_no_signal |
| 1743 | instead of the_target->resume. |
| 1744 | (target_continue): New function. |
| 1745 | |
| 1746 | 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 1747 | |
| 1748 | * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps. |
| 1749 | |
| 1750 | 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org> |
| 1751 | |
| 1752 | PR server/20491 |
| 1753 | * gdb_proc_service.h (ps_get_thread_area): Remove const from struct |
| 1754 | ps_prochandle. |
| 1755 | * linux-aarch64-low.c (ps_get_thread_area): Likewise. |
| 1756 | * linux-arm-low.c (ps_get_thread_area): Likewise. |
| 1757 | * linux-crisv32-low.c (ps_get_thread_area): Likewise. |
| 1758 | * linux-m68k-low.c (ps_get_thread_area): Likewise. |
| 1759 | * linux-mips-low.c (ps_get_thread_area): Likewise. |
| 1760 | * linux-nios2-low.c (ps_get_thread_area): Likewise. |
| 1761 | * linux-tic6x-low.c (ps_get_thread_area): Likewise. |
| 1762 | * linux-x86-low.c (ps_get_thread_area): Likewise. |
| 1763 | * linux-xtensa-low.c (ps_get_thread_area): Likewise. |
| 1764 | |
| 1765 | 2016-08-19 Pedro Alves <palves@redhat.com> |
| 1766 | |
| 1767 | * linux-x86-low.c (amd64_emit_call): Emit missing call opcode. |
| 1768 | |
| 1769 | 2016-08-19 Pedro Alves <palves@redhat.com> |
| 1770 | |
| 1771 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix |
| 1772 | comment. Use memcpy instead of casting through unsigned long. |
| 1773 | |
| 1774 | 2016-08-19 Pedro Alves <palves@redhat.com> |
| 1775 | |
| 1776 | * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try |
| 1777 | allocating around 0x80000000. |
| 1778 | |
| 1779 | 2016-08-19 Pedro Alves <palves@redhat.com> |
| 1780 | |
| 1781 | PR gdb/20415 |
| 1782 | * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o) |
| 1783 | (x32-avx512-linux-ipa.o): New rules. |
| 1784 | * configure.ac (x86_64-*-linux*): New x32 check. |
| 1785 | * configure.srv (ipa_x32_linux_regobj): New. |
| 1786 | (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32. |
| 1787 | * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32 |
| 1788 | descriptions. |
| 1789 | (initialize_low_tracepoint) [__ILP32__]: Initialize x32 |
| 1790 | descriptions. |
| 1791 | * configure: Regenerate. |
| 1792 | |
| 1793 | 2016-08-09 Pedro Alves <palves@redhat.com> |
| 1794 | |
| 1795 | PR gdb/18653 |
| 1796 | * Makefile.in (OBS): Add signals-state-save-restore.o. |
| 1797 | (signals-state-save-restore.o): New rule. |
| 1798 | * config.in: Regenerate. |
| 1799 | * configure: Regenerate. |
| 1800 | * linux-low.c: Include "signals-state-save-restore.h". |
| 1801 | (linux_create_inferior): Call |
| 1802 | restore_original_signals_state. |
| 1803 | * server.c: Include "dispositions-save-restore.h". |
| 1804 | (captured_main): Call save_original_signals_state. |
| 1805 | |
| 1806 | 2016-08-05 Pedro Alves <palves@redhat.com> |
| 1807 | |
| 1808 | * configure: Regenerate. |
| 1809 | |
| 1810 | 2016-08-04 Yao Qi <yao.qi@linaro.org> |
| 1811 | |
| 1812 | * linux-low.c (regsets_fetch_inferior_registers): Check |
| 1813 | errno is ESRCH or not. |
| 1814 | |
| 1815 | 2016-08-02 Yao Qi <yao.qi@linaro.org> |
| 1816 | |
| 1817 | * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove. |
| 1818 | <td_ta_set_event_p, td_ta_event_addr_p>: Remove. |
| 1819 | (thread_db_load_search): Update. |
| 1820 | (try_thread_db_load_1): Don't look for td_ta_event_addr, |
| 1821 | td_ta_set_event and td_ta_event_getmsg. |
| 1822 | |
| 1823 | 2016-07-26 Pedro Alves <palves@redhat.com> |
| 1824 | |
| 1825 | PR server/20414 |
| 1826 | * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead |
| 1827 | of unsigned long for 64-bit registers and use uint32_t instead of |
| 1828 | unsigned int for 32-bit registers. |
| 1829 | |
| 1830 | 2016-07-26 Pedro Alves <palves@redhat.com> |
| 1831 | |
| 1832 | * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter |
| 1833 | to 'ptrace'. |
| 1834 | |
| 1835 | 2016-07-21 Tom Tromey <tom@tromey.com> |
| 1836 | |
| 1837 | * configure: Rebuild. |
| 1838 | |
| 1839 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1840 | |
| 1841 | * mem-break.c (find_gdb_breakpoint): Cast bp to |
| 1842 | 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'. |
| 1843 | |
| 1844 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1845 | |
| 1846 | * server.c (handle_v_requests): Support s and S actions |
| 1847 | if target_supports_software_single_step return true. |
| 1848 | |
| 1849 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1850 | |
| 1851 | * linux-low.c (resume_stopped_resumed_lwps): If resume request |
| 1852 | is resume_step, call maybe_hw_step. |
| 1853 | (linux_wait_1): Stop all threads, remove reinsert breakpoints, |
| 1854 | and unstop them. |
| 1855 | (linux_resume_one_lwp_throw): Don't assert the thread has reinsert |
| 1856 | breakpoints or not. |
| 1857 | (proceed_one_lwp): If resume request is resume_step, install |
| 1858 | reinsert breakpoints and call maybe_hw_step. |
| 1859 | |
| 1860 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1861 | |
| 1862 | * linux-low.c (proceed_one_lwp): Declare. |
| 1863 | (linux_resume_one_thread): Remove local variable 'step'. |
| 1864 | Lift code enqueue signal. Call proceed_one_lwp instead of |
| 1865 | linux_resume_one_lwp. |
| 1866 | |
| 1867 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1868 | |
| 1869 | * linux-low.c (linux_resume_one_thread): Call |
| 1870 | enqueue_pending_signal. |
| 1871 | |
| 1872 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1873 | |
| 1874 | * gdbthread.h (make_cleanup_restore_current_thread): Declare. |
| 1875 | * inferiors.c (do_restore_current_thread_cleanup): New function. |
| 1876 | (make_cleanup_restore_current_thread): Likewise. |
| 1877 | * linux-low.c (install_software_single_step_breakpoints): Call |
| 1878 | make_cleanup_restore_current_thread. Switch current_thread to |
| 1879 | thread. |
| 1880 | |
| 1881 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1882 | |
| 1883 | * mem-break.c (struct reinsert_breakpoint) <ptid>: New field. |
| 1884 | (set_reinsert_breakpoint): New parameter ptid. Callers updated. |
| 1885 | (clone_one_breakpoint): Likewise. |
| 1886 | (delete_reinsert_breakpoints): Change parameter to thread. |
| 1887 | Callers updated. |
| 1888 | (has_reinsert_breakpoints): Likewise. |
| 1889 | (uninsert_reinsert_breakpoints): Likewise. |
| 1890 | (reinsert_reinsert_breakpoints): Likewise. |
| 1891 | * mem-break.h (set_reinsert_breakpoint): Update declaration. |
| 1892 | (delete_reinsert_breakpoints): Likewise. |
| 1893 | (reinsert_reinsert_breakpoints): Likewise. |
| 1894 | (uninsert_reinsert_breakpoints): Likewise. |
| 1895 | (has_reinsert_breakpoints): Likewise. |
| 1896 | |
| 1897 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1898 | |
| 1899 | * inferiors.c (get_thread_process): Make parameter const. |
| 1900 | * inferiors.h (get_thread_process): Update declaration. |
| 1901 | * mem-break.c (clone_all_breakpoints): Remove all parameters. |
| 1902 | Add new parameters child_thread and parent_thread. Callers |
| 1903 | updated. |
| 1904 | * mem-break.h (clone_all_breakpoints): Update declaration. |
| 1905 | |
| 1906 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1907 | |
| 1908 | * mem-break.c (struct breakpoint) <cond_list>: Remove. |
| 1909 | <command_list, handler>: Remove. |
| 1910 | (struct gdb_breakpoint): New. |
| 1911 | (struct other_breakpoint): New. |
| 1912 | (struct reinsert_breakpoint): New. |
| 1913 | (is_gdb_breakpoint): New function. |
| 1914 | (any_persistent_commands): Update command_list if |
| 1915 | is_gdb_breakpoint returns true. |
| 1916 | (set_breakpoint): Create breakpoints according to their types. |
| 1917 | (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'. |
| 1918 | (set_gdb_breakpoint_1): Likewise. |
| 1919 | (set_gdb_breakpoint): Likewise. |
| 1920 | (clear_breakpoint_conditions): Change parameter type to |
| 1921 | 'struct gdb_breakpoint *'. |
| 1922 | (clear_breakpoint_commands): Likewise. |
| 1923 | (clear_breakpoint_conditions_and_commands): Likewise. |
| 1924 | (add_condition_to_breakpoint): Likewise. |
| 1925 | (add_breakpoint_condition): Likewise. |
| 1926 | (add_commands_to_breakpoint): Likewise. |
| 1927 | (check_breakpoints): Check other_breakpoint. |
| 1928 | (clone_one_breakpoint): Clone breakpopint according to its type. |
| 1929 | * mem-break.h (struct gdb_breakpoint): Declare. |
| 1930 | (set_gdb_breakpoint): Update declaration. |
| 1931 | (clear_breakpoint_conditions_and_commands): Likewise. |
| 1932 | (add_breakpoint_condition): Likewise. |
| 1933 | (add_breakpoint_commands): Likewise. |
| 1934 | * server.c (process_point_options): Change parameter type to |
| 1935 | 'struct gdb_breakpoint *'. |
| 1936 | |
| 1937 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
| 1938 | |
| 1939 | * mem-break.c (set_breakpoint_at): Rename it to ... |
| 1940 | (set_breakpoint_type_at): ... it. |
| 1941 | (set_breakpoint_at): Call set_breakpoint_type_at. |
| 1942 | (set_reinsert_breakpoint): Call set_breakpoint_type_at. |
| 1943 | * mem-break.h (set_breakpoint_at): Update comments. |
| 1944 | |
| 1945 | 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com> |
| 1946 | |
| 1947 | * linux-nios2-low.c (nios2_fill_gregset): Add type cast |
| 1948 | to buf parameter. |
| 1949 | (nios2_store_gregset): Likewise. |
| 1950 | |
| 1951 | 2016-07-01 Pedro Alves <palves@redhat.com> |
| 1952 | Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 1953 | |
| 1954 | * linux-low.c: Change interface to take the target lwp_info |
| 1955 | pointer directly and return void. Handle detaching from a zombie |
| 1956 | thread. |
| 1957 | (linux_detach_lwp_callback): New function. |
| 1958 | (linux_detach): Detach from the leader thread after detaching from |
| 1959 | the clone threads. |
| 1960 | |
| 1961 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
| 1962 | |
| 1963 | * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t |
| 1964 | for variable new_offset. |
| 1965 | (aarch64_ftrace_insn_reloc_b_cond): Likewise. |
| 1966 | (aarch64_ftrace_insn_reloc_cb): Likewise. |
| 1967 | (aarch64_ftrace_insn_reloc_tb): Likewise. |
| 1968 | (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use |
| 1969 | PRIx64 instead of PRIx32. |
| 1970 | |
| 1971 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
| 1972 | |
| 1973 | * linux-arm-low.c (arm_get_syscall_trapinfo): New function. |
| 1974 | (the_low_target): Install arm_get_syscall_trapinfo. |
| 1975 | |
| 1976 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
| 1977 | |
| 1978 | * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New |
| 1979 | function. |
| 1980 | (the_low_target): Install aarch64_get_syscall_trapinfo. |
| 1981 | |
| 1982 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
| 1983 | |
| 1984 | * linux-low.c (get_syscall_trapinfo): Remove parameter sysret. |
| 1985 | Callers updated. |
| 1986 | * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>: |
| 1987 | Remove parameter sysno. |
| 1988 | * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter |
| 1989 | sysret. |
| 1990 | |
| 1991 | 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 1992 | |
| 1993 | * linux-s390-low.c (s390_emit_eq_goto): Mark function static. |
| 1994 | (s390_emit_ne_goto): Likewise. |
| 1995 | (s390_emit_lt_goto): Likewise. |
| 1996 | (s390_emit_le_goto): Likewise. |
| 1997 | (s390_emit_gt_goto): Likewise. |
| 1998 | (s390_emit_ge_goto): Likewise. |
| 1999 | (s390x_emit_eq_goto): Likewise. |
| 2000 | (s390x_emit_ne_goto): Likewise. |
| 2001 | (s390x_emit_lt_goto): Likewise. |
| 2002 | (s390x_emit_le_goto): Likewise. |
| 2003 | (s390x_emit_gt_goto): Likewise. |
| 2004 | (s390x_emit_ge_goto): Likewise. |
| 2005 | (s390_emit_ops_impl): Mark variable static. |
| 2006 | (s390x_emit_ops): Likewise. |
| 2007 | |
| 2008 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
| 2009 | |
| 2010 | * linux-low.c (handle_extended_wait): Call |
| 2011 | uninsert_reinsert_breakpoints for the parent process. Remove |
| 2012 | reinsert breakpoints from the child process. Reinsert them to |
| 2013 | the parent process when vfork is done. |
| 2014 | * mem-break.c (uninsert_reinsert_breakpoints): New function. |
| 2015 | (reinsert_reinsert_breakpoints): New function. |
| 2016 | * mem-break.h (uninsert_reinsert_breakpoints): Declare |
| 2017 | (reinsert_reinsert_breakpoints): Declare. |
| 2018 | |
| 2019 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
| 2020 | |
| 2021 | * linux-low.c (handle_extended_wait): If the parent is doing |
| 2022 | step-over, remove the reinsert breakpoints from the forked child. |
| 2023 | |
| 2024 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
| 2025 | |
| 2026 | * linux-low.c (unsuspend_all_lwps): Declare. |
| 2027 | (linux_low_filter_event): If thread exited, call finish_step_over. |
| 2028 | If step-over is finished, unsuspend other threads. |
| 2029 | |
| 2030 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
| 2031 | |
| 2032 | * linux-low.c (linux_resume_one_lwp_throw): Assert |
| 2033 | has_reinsert_breakpoints returns false. |
| 2034 | * mem-break.c (delete_disabled_breakpoints): Assert |
| 2035 | bp type isn't reinsert_breakpoint. |
| 2036 | |
| 2037 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
| 2038 | |
| 2039 | * linux-low.c (maybe_hw_step): New function. |
| 2040 | (linux_resume_one_lwp_throw): Call maybe_hw_step. |
| 2041 | (finish_step_over): Switch current_thread to lwp temporarily, |
| 2042 | and assert has_reinsert_breakpoints returns true. |
| 2043 | (proceed_one_lwp): Call maybe_hw_step. |
| 2044 | * mem-break.c (has_reinsert_breakpoints): New function. |
| 2045 | * mem-break.h (has_reinsert_breakpoints): Declare. |
| 2046 | |
| 2047 | 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk> |
| 2048 | |
| 2049 | * win32-low.c (win32_create_inferior): Add pointer casts for C++. |
| 2050 | |
| 2051 | 2016-05-17 Yao Qi <yao.qi@linaro.org> |
| 2052 | |
| 2053 | * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps |
| 2054 | instead of find_inferior. |
| 2055 | |
| 2056 | 2016-05-05 Yao Qi <yao.qi@linaro.org> |
| 2057 | |
| 2058 | * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): |
| 2059 | Initialize res to zero. |
| 2060 | |
| 2061 | 2016-05-05 Yao Qi <yao.qi@linaro.org> |
| 2062 | |
| 2063 | * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr |
| 2064 | to uint32_t. |
| 2065 | |
| 2066 | 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
| 2067 | |
| 2068 | * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value |
| 2069 | used as first ptrace argument to PTRACE_TYPE_ARG1 for C++. |
| 2070 | (fetch_ppc_memory_1, store_ppc_memory_1): Likewise. |
| 2071 | |
| 2072 | 2016-04-28 Par Olsson <par.olsson@windriver.com> |
| 2073 | Simon Marchi <simon.marchi@ericsson.com> |
| 2074 | |
| 2075 | * tracepoint.c (write_inferior_int8): New function. |
| 2076 | (cmd_qtenable_disable): Write enable flag using |
| 2077 | write_inferior_int8. |
| 2078 | |
| 2079 | 2016-04-25 Yao Qi <yao.qi@linaro.org> |
| 2080 | |
| 2081 | * linux-low.c (lwp_signal_can_be_delivered): Adjust. |
| 2082 | (need_step_over_p): Return zero if the LWP has pending signals |
| 2083 | can be delivered on software single step target. |
| 2084 | |
| 2085 | 2016-04-25 Yao Qi <yao.qi@linaro.org> |
| 2086 | |
| 2087 | * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true |
| 2088 | return instead of error. |
| 2089 | |
| 2090 | 2016-04-22 Yao Qi <yao.qi@linaro.org> |
| 2091 | |
| 2092 | * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20 |
| 2093 | to 23. |
| 2094 | |
| 2095 | 2016-04-22 Yao Qi <yao.qi@linaro.org> |
| 2096 | |
| 2097 | * linux-low.c (lwp_signal_can_be_delivered): Don't deliver |
| 2098 | signal when stepping over breakpoint with software single |
| 2099 | step. |
| 2100 | |
| 2101 | 2016-04-21 Pedro Alves <palves@redhat.com> |
| 2102 | |
| 2103 | * linux-s390-low.c (s390_collect_ptrace_register) |
| 2104 | (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and |
| 2105 | add casts. |
| 2106 | (s390_check_regset): Use void * instead of gdb_byte *. |
| 2107 | |
| 2108 | 2016-04-20 Pedro Alves <palves@redhat.com> |
| 2109 | |
| 2110 | * configure: Renegerate. |
| 2111 | |
| 2112 | 2016-04-20 Yao Qi <yao.qi@linaro.org> |
| 2113 | |
| 2114 | * linux-aarch32-low.c: Include "arch/arm-linux.h". |
| 2115 | (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic |
| 2116 | number 16. |
| 2117 | (arm_store_gregset): Likewise. |
| 2118 | |
| 2119 | 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 2120 | |
| 2121 | * Makefile.in (clean): Add removal for i386-avx-mpx.c, |
| 2122 | i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c. |
| 2123 | (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c) |
| 2124 | (amd64-avx-mpx-linux.c): New rules. |
| 2125 | (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule. |
| 2126 | * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o. |
| 2127 | (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o. |
| 2128 | (srv_amd64_regobj): Add amd64-avx-mpx.o. |
| 2129 | (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o. |
| 2130 | (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml. |
| 2131 | (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml. |
| 2132 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml. |
| 2133 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml. |
| 2134 | (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o. |
| 2135 | (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o. |
| 2136 | * linux-x86-low.c (x86_linux_read_description): Add case for |
| 2137 | X86_XSTATE_AVX_MPX_MASK. |
| 2138 | (x86_get_ipa_tdesc_idx): Add cases for avx_mpx. |
| 2139 | (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and |
| 2140 | init_registers_i386_avx_mpx_linux. |
| 2141 | * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx. |
| 2142 | (initialize_low_tracepoint): Call |
| 2143 | init_registers_i386_avx_mpx_linux. |
| 2144 | * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx. |
| 2145 | (initialize_low_tracepoint): Call |
| 2146 | init_registers_amd64_avx_mpx_linux. |
| 2147 | * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value. |
| 2148 | (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux) |
| 2149 | (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New |
| 2150 | declarations. |
| 2151 | |
| 2152 | 2016-04-18 Pedro Alves <palves@redhat.com> |
| 2153 | |
| 2154 | * configure: Regenerate. |
| 2155 | |
| 2156 | 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 2157 | |
| 2158 | * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0. |
| 2159 | (aarch64_emit_sub): Likewise. |
| 2160 | |
| 2161 | 2016-04-12 Pedro Alves <palves@redhat.com> |
| 2162 | |
| 2163 | * utils.c (prepare_to_throw_exception): Delete. |
| 2164 | |
| 2165 | 2016-04-05 Simon Marchi <simon.marchi@ericsson.com> |
| 2166 | |
| 2167 | * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib. |
| 2168 | |
| 2169 | 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net> |
| 2170 | |
| 2171 | * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT. |
| 2172 | |
| 2173 | 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net> |
| 2174 | |
| 2175 | * linux-aarch64-ipa.c: Add <elf.h> include. |
| 2176 | * linux-ppc-ipa.c: Add <elf.h> include. |
| 2177 | * linux-s390-ipa.c: Add <elf.h> include. |
| 2178 | |
| 2179 | 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net> |
| 2180 | |
| 2181 | * tracepoint.c (gdb_collect_ptr): Remove const qualifier. |
| 2182 | (get_raw_reg_ptr): Likewise. |
| 2183 | (get_trace_state_variable_value_ptr): Likewise. |
| 2184 | (set_trace_state_variable_value_ptr): Likewise. |
| 2185 | (initialize_tracepoint): Cast alloc_jump_pad_buffer result to |
| 2186 | char *. |
| 2187 | |
| 2188 | 2016-03-31 Wei-cheng Wang <cole945@gmail.com> |
| 2189 | Marcin Kościelnicki <koriakin@0x04.net> |
| 2190 | |
| 2191 | PR/17221 |
| 2192 | * linux-ppc-low.c (emit_insns): New function. |
| 2193 | (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros. |
| 2194 | (ppc_emit_prologue): New function. |
| 2195 | (ppc_emit_epilogue): New function. |
| 2196 | (ppc_emit_add): New function. |
| 2197 | (ppc_emit_sub): New function. |
| 2198 | (ppc_emit_mul): New function. |
| 2199 | (ppc_emit_lsh): New function. |
| 2200 | (ppc_emit_rsh_signed): New function. |
| 2201 | (ppc_emit_rsh_unsigned): New function. |
| 2202 | (ppc_emit_ext): New function. |
| 2203 | (ppc_emit_zero_ext): New function. |
| 2204 | (ppc_emit_log_not): New function. |
| 2205 | (ppc_emit_bit_and): New function. |
| 2206 | (ppc_emit_bit_or): New function. |
| 2207 | (ppc_emit_bit_xor): New function. |
| 2208 | (ppc_emit_bit_not): New function. |
| 2209 | (ppc_emit_equal): New function. |
| 2210 | (ppc_emit_less_signed): New function. |
| 2211 | (ppc_emit_less_unsigned): New function. |
| 2212 | (ppc_emit_ref): New function. |
| 2213 | (ppc_emit_const): New function. |
| 2214 | (ppc_emit_reg): New function. |
| 2215 | (ppc_emit_pop): New function. |
| 2216 | (ppc_emit_stack_flush): New function. |
| 2217 | (ppc_emit_swap): New function. |
| 2218 | (ppc_emit_stack_adjust): New function. |
| 2219 | (ppc_emit_call): New function. |
| 2220 | (ppc_emit_int_call_1): New function. |
| 2221 | (ppc_emit_void_call_2): New function. |
| 2222 | (ppc_emit_if_goto): New function. |
| 2223 | (ppc_emit_goto): New function. |
| 2224 | (ppc_emit_eq_goto): New function. |
| 2225 | (ppc_emit_ne_goto): New function. |
| 2226 | (ppc_emit_lt_goto): New function. |
| 2227 | (ppc_emit_le_goto): New function. |
| 2228 | (ppc_emit_gt_goto): New function. |
| 2229 | (ppc_emit_ge_goto): New function. |
| 2230 | (ppc_write_goto_address): New function. |
| 2231 | (ppc_emit_ops_impl): New static variable. |
| 2232 | (ppc64v1_emit_prologue): New function. |
| 2233 | (ppc64v2_emit_prologue): New function. |
| 2234 | (ppc64_emit_epilogue): New function. |
| 2235 | (ppc64_emit_add): New function. |
| 2236 | (ppc64_emit_sub): New function. |
| 2237 | (ppc64_emit_mul): New function. |
| 2238 | (ppc64_emit_lsh): New function. |
| 2239 | (ppc64_emit_rsh_signed): New function. |
| 2240 | (ppc64_emit_rsh_unsigned): New function. |
| 2241 | (ppc64_emit_ext): New function. |
| 2242 | (ppc64_emit_zero_ext): New function. |
| 2243 | (ppc64_emit_log_not): New function. |
| 2244 | (ppc64_emit_bit_and): New function. |
| 2245 | (ppc64_emit_bit_or): New function. |
| 2246 | (ppc64_emit_bit_xor): New function. |
| 2247 | (ppc64_emit_bit_not): New function. |
| 2248 | (ppc64_emit_equal): New function. |
| 2249 | (ppc64_emit_less_signed): New function. |
| 2250 | (ppc64_emit_less_unsigned): New function. |
| 2251 | (ppc64_emit_ref): New function. |
| 2252 | (ppc64_emit_const): New function. |
| 2253 | (ppc64v1_emit_reg): New function. |
| 2254 | (ppc64v2_emit_reg): New function. |
| 2255 | (ppc64_emit_pop): New function. |
| 2256 | (ppc64_emit_stack_flush): New function. |
| 2257 | (ppc64_emit_swap): New function. |
| 2258 | (ppc64v1_emit_call): New function. |
| 2259 | (ppc64v2_emit_call): New function. |
| 2260 | (ppc64v1_emit_int_call_1): New function. |
| 2261 | (ppc64v2_emit_int_call_1): New function. |
| 2262 | (ppc64v1_emit_void_call_2): New function. |
| 2263 | (ppc64v2_emit_void_call_2): New function. |
| 2264 | (ppc64_emit_if_goto): New function. |
| 2265 | (ppc64_emit_eq_goto): New function. |
| 2266 | (ppc64_emit_ne_goto): New function. |
| 2267 | (ppc64_emit_lt_goto): New function. |
| 2268 | (ppc64_emit_le_goto): New function. |
| 2269 | (ppc64_emit_gt_goto): New function. |
| 2270 | (ppc64_emit_ge_goto): New function. |
| 2271 | (ppc64v1_emit_ops_impl): New static variable. |
| 2272 | (ppc64v2_emit_ops_impl): New static variable. |
| 2273 | (ppc_emit_ops): New function. |
| 2274 | (linux_low_target): Wire in ppc_emit_ops. |
| 2275 | |
| 2276 | 2016-03-31 Wei-cheng Wang <cole945@gmail.com> |
| 2277 | Marcin Kościelnicki <koriakin@0x04.net> |
| 2278 | |
| 2279 | PR/17221 |
| 2280 | * Makefile.in: Add powerpc-*-ipa.o |
| 2281 | * configure.srv: Add ipa_obj for powerpc*-linux. |
| 2282 | * linux-ppc-ipa.c: New file. |
| 2283 | * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h |
| 2284 | includes. |
| 2285 | (PPC_FIELD): New macro. |
| 2286 | (PPC_SEXT): New macro. |
| 2287 | (PPC_OP6): New macro. |
| 2288 | (PPC_BO): New macro. |
| 2289 | (PPC_LI): New macro. |
| 2290 | (PPC_BD): New macro. |
| 2291 | (init_registers_*): Move prototype to linux-ppc-tdesc.h. |
| 2292 | (tdesc_*): Move declaration to linux-ppc-tdesc.h. |
| 2293 | (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter. |
| 2294 | (ppc_get_thread_area): New function. |
| 2295 | (is_elfv2_inferior): New function. |
| 2296 | (gen_ds_form): New function. |
| 2297 | (GEN_STD): New macro. |
| 2298 | (GEN_STDU): New macro. |
| 2299 | (GEN_LD): New macro. |
| 2300 | (GEN_LDU): New macro. |
| 2301 | (gen_d_form): New function. |
| 2302 | (GEN_ADDI): New macro. |
| 2303 | (GEN_ADDIS): New macro. |
| 2304 | (GEN_LI): New macro. |
| 2305 | (GEN_LIS): New macro. |
| 2306 | (GEN_ORI): New macro. |
| 2307 | (GEN_ORIS): New macro. |
| 2308 | (GEN_LWZ): New macro. |
| 2309 | (GEN_STW): New macro. |
| 2310 | (GEN_STWU): New macro. |
| 2311 | (gen_xfx_form): New function. |
| 2312 | (GEN_MFSPR): New macro. |
| 2313 | (GEN_MTSPR): New macro. |
| 2314 | (GEN_MFCR): New macro. |
| 2315 | (GEN_MTCR): New macro. |
| 2316 | (GEN_SYNC): New macro. |
| 2317 | (GEN_LWSYNC): New macro. |
| 2318 | (gen_x_form): New function. |
| 2319 | (GEN_OR): New macro. |
| 2320 | (GEN_MR): New macro. |
| 2321 | (GEN_LWARX): New macro. |
| 2322 | (GEN_STWCX): New macro. |
| 2323 | (GEN_CMPW): New macro. |
| 2324 | (gen_md_form): New function. |
| 2325 | (GEN_RLDICL): New macro. |
| 2326 | (GEN_RLDICR): New macro. |
| 2327 | (gen_i_form): New function. |
| 2328 | (GEN_B): New macro. |
| 2329 | (GEN_BL): New macro. |
| 2330 | (gen_b_form): New function. |
| 2331 | (GEN_BNE): New macro. |
| 2332 | (GEN_LOAD): New macro. |
| 2333 | (GEN_STORE): New macro. |
| 2334 | (gen_limm): New function. |
| 2335 | (gen_atomic_xchg): New function. |
| 2336 | (gen_call): New function. |
| 2337 | (ppc_relocate_instruction): New function. |
| 2338 | (ppc_install_fast_tracepoint_jump_pad): New function. |
| 2339 | (ppc_get_min_fast_tracepoint_insn_len): New function. |
| 2340 | (ppc_get_ipa_tdesc_idx): New function. |
| 2341 | (the_low_target): Wire in the new functions. |
| 2342 | (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit |
| 2343 | tdescs. |
| 2344 | * linux-ppc-tdesc.h: New file. |
| 2345 | |
| 2346 | 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net> |
| 2347 | |
| 2348 | * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes. |
| 2349 | (alloc_jump_pad_buffer): New function. |
| 2350 | * linux-amd64-ipa.c: Add <sys/mman.h> include. |
| 2351 | (alloc_jump_pad_buffer): New function. |
| 2352 | * linux-i386-ipa.c (alloc_jump_pad_buffer): New function. |
| 2353 | * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes. |
| 2354 | (alloc_jump_pad_buffer): New function. |
| 2355 | * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function. |
| 2356 | (initialize_tracepoint): Delegate to alloc_jump_pad_buffer. |
| 2357 | * tracepoint.h (alloc_jump_pad_buffer): New prototype. |
| 2358 | (getauxval) [!HAVE_GETAUXVAL]: New prototype. |
| 2359 | |
| 2360 | 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net> |
| 2361 | |
| 2362 | * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg. |
| 2363 | * linux-amd64-ipa.c: Likewise. |
| 2364 | * linux-i386-ipa.c: Likewise. |
| 2365 | * linux-s390-ipa.c: Likewise. |
| 2366 | * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect, |
| 2367 | ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr, |
| 2368 | set_trace_state_variable_value_ptr. |
| 2369 | (struct ipa_sym_addresses): Likewise. |
| 2370 | (symbol_list): Likewise. |
| 2371 | (install_fast_tracepoint): Dereference gdb_collect_ptr instead of |
| 2372 | accessing gdb_collect directly. |
| 2373 | (gdb_collect_ptr_type): New typedef. |
| 2374 | (get_raw_reg_ptr_type): New typedef. |
| 2375 | (get_trace_state_variable_value_ptr_type): New typedef. |
| 2376 | (set_trace_state_variable_value_ptr_type): New typedef. |
| 2377 | (gdb_collect_ptr): New global. |
| 2378 | (get_raw_reg_ptr): New global. |
| 2379 | (get_trace_state_variable_value_ptr): New global. |
| 2380 | (set_trace_state_variable_value_ptr): New global. |
| 2381 | (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of |
| 2382 | accessing get_raw_reg directly. |
| 2383 | (get_get_tsv_func_addr): Likewise for |
| 2384 | get_trace_state_variable_value_ptr. |
| 2385 | (get_set_tsv_func_addr): Likewise for |
| 2386 | set_trace_state_variable_value_ptr. |
| 2387 | * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg. |
| 2388 | |
| 2389 | 2016-03-30 Simon Marchi <simon.marchi@ericsson.com> |
| 2390 | |
| 2391 | * tracepoint.c (cmd_qtenable_disable): Remove whitespace. |
| 2392 | |
| 2393 | 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net> |
| 2394 | |
| 2395 | * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v' |
| 2396 | packets. |
| 2397 | (relocate_instruction): Remove own_buf. |
| 2398 | * server.c (own_buf): Make global. |
| 2399 | (handle_v_requests): Make global. |
| 2400 | * server.h (own_buf): New declaration. |
| 2401 | (handle_v_requests): New prototype. |
| 2402 | |
| 2403 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
| 2404 | |
| 2405 | PR 18377 |
| 2406 | * linux-s390-low.c (add_insns): New function. |
| 2407 | (s390_emit_prologue): New function. |
| 2408 | (s390_emit_epilogue): New function. |
| 2409 | (s390_emit_add): New function. |
| 2410 | (s390_emit_sub): New function. |
| 2411 | (s390_emit_mul): New function. |
| 2412 | (s390_emit_lsh): New function. |
| 2413 | (s390_emit_rsh_signed): New function. |
| 2414 | (s390_emit_rsh_unsigned): New function. |
| 2415 | (s390_emit_ext): New function. |
| 2416 | (s390_emit_log_not): New function. |
| 2417 | (s390_emit_bit_and): New function. |
| 2418 | (s390_emit_bit_or): New function. |
| 2419 | (s390_emit_bit_xor): New function. |
| 2420 | (s390_emit_bit_not): New function. |
| 2421 | (s390_emit_equal): New function. |
| 2422 | (s390_emit_less_signed): New function. |
| 2423 | (s390_emit_less_unsigned): New function. |
| 2424 | (s390_emit_ref): New function. |
| 2425 | (s390_emit_if_goto): New function. |
| 2426 | (s390_emit_goto): New function. |
| 2427 | (s390_write_goto_address): New function. |
| 2428 | (s390_emit_litpool): New function. |
| 2429 | (s390_emit_const): New function. |
| 2430 | (s390_emit_call): New function. |
| 2431 | (s390_emit_reg): New function. |
| 2432 | (s390_emit_pop): New function. |
| 2433 | (s390_emit_stack_flush): New function. |
| 2434 | (s390_emit_zero_ext): New function. |
| 2435 | (s390_emit_swap): New function. |
| 2436 | (s390_emit_stack_adjust): New function. |
| 2437 | (s390_emit_set_r2): New function. |
| 2438 | (s390_emit_int_call_1): New function. |
| 2439 | (s390_emit_void_call_2): New function. |
| 2440 | (s390_emit_eq_goto): New function. |
| 2441 | (s390_emit_ne_goto): New function. |
| 2442 | (s390_emit_lt_goto): New function. |
| 2443 | (s390_emit_le_goto): New function. |
| 2444 | (s390_emit_gt_goto): New function. |
| 2445 | (s390_emit_ge_goto): New function. |
| 2446 | (s390x_emit_prologue): New function. |
| 2447 | (s390x_emit_epilogue): New function. |
| 2448 | (s390x_emit_add): New function. |
| 2449 | (s390x_emit_sub): New function. |
| 2450 | (s390x_emit_mul): New function. |
| 2451 | (s390x_emit_lsh): New function. |
| 2452 | (s390x_emit_rsh_signed): New function. |
| 2453 | (s390x_emit_rsh_unsigned): New function. |
| 2454 | (s390x_emit_ext): New function. |
| 2455 | (s390x_emit_log_not): New function. |
| 2456 | (s390x_emit_bit_and): New function. |
| 2457 | (s390x_emit_bit_or): New function. |
| 2458 | (s390x_emit_bit_xor): New function. |
| 2459 | (s390x_emit_bit_not): New function. |
| 2460 | (s390x_emit_equal): New function. |
| 2461 | (s390x_emit_less_signed): New function. |
| 2462 | (s390x_emit_less_unsigned): New function. |
| 2463 | (s390x_emit_ref): New function. |
| 2464 | (s390x_emit_if_goto): New function. |
| 2465 | (s390x_emit_const): New function. |
| 2466 | (s390x_emit_call): New function. |
| 2467 | (s390x_emit_reg): New function. |
| 2468 | (s390x_emit_pop): New function. |
| 2469 | (s390x_emit_stack_flush): New function. |
| 2470 | (s390x_emit_zero_ext): New function. |
| 2471 | (s390x_emit_swap): New function. |
| 2472 | (s390x_emit_stack_adjust): New function. |
| 2473 | (s390x_emit_int_call_1): New function. |
| 2474 | (s390x_emit_void_call_2): New function. |
| 2475 | (s390x_emit_eq_goto): New function. |
| 2476 | (s390x_emit_ne_goto): New function. |
| 2477 | (s390x_emit_lt_goto): New function. |
| 2478 | (s390x_emit_le_goto): New function. |
| 2479 | (s390x_emit_gt_goto): New function. |
| 2480 | (s390x_emit_ge_goto): New function. |
| 2481 | (s390_emit_ops): New function. |
| 2482 | (struct linux_target_ops): Fill in emit_ops hook. |
| 2483 | |
| 2484 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
| 2485 | |
| 2486 | PR 18377 |
| 2487 | * Makefile.in: Add s390 IPA files. |
| 2488 | * configure.srv: Build IPA for s390. |
| 2489 | * linux-s390-ipa.c: New file. |
| 2490 | * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h. |
| 2491 | (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h. |
| 2492 | (tdesc_s390_linux32): Likewise. |
| 2493 | (init_registers_s390_linux32v1): Likewise. |
| 2494 | (tdesc_s390_linux32v1): Likewise. |
| 2495 | (init_registers_s390_linux32v2): Likewise. |
| 2496 | (tdesc_s390_linux32v2): Likewise. |
| 2497 | (init_registers_s390_linux64): Likewise. |
| 2498 | (tdesc_s390_linux64): Likewise. |
| 2499 | (init_registers_s390_linux64v1): Likewise. |
| 2500 | (tdesc_s390_linux64v1): Likewise. |
| 2501 | (init_registers_s390_linux64v2): Likewise. |
| 2502 | (tdesc_s390_linux64v2): Likewise. |
| 2503 | (init_registers_s390_te_linux64): Likewise. |
| 2504 | (tdesc_s390_te_linux64): Likewise. |
| 2505 | (init_registers_s390_vx_linux64): Likewise. |
| 2506 | (tdesc_s390_vx_linux64): Likewise. |
| 2507 | (init_registers_s390_tevx_linux64): Likewise. |
| 2508 | (tdesc_s390_tevx_linux64): Likewise. |
| 2509 | (init_registers_s390x_linux64): Likewise. |
| 2510 | (tdesc_s390x_linux64): Likewise. |
| 2511 | (init_registers_s390x_linux64v1): Likewise. |
| 2512 | (tdesc_s390x_linux64v1): Likewise. |
| 2513 | (init_registers_s390x_linux64v2): Likewise. |
| 2514 | (tdesc_s390x_linux64v2): Likewise. |
| 2515 | (init_registers_s390x_te_linux64): Likewise. |
| 2516 | (tdesc_s390x_te_linux64): Likewise. |
| 2517 | (init_registers_s390x_vx_linux64): Likewise. |
| 2518 | (tdesc_s390x_vx_linux64): Likewise. |
| 2519 | (init_registers_s390x_tevx_linux64): Likewise. |
| 2520 | (tdesc_s390x_tevx_linux64): Likewise. |
| 2521 | (have_hwcap_s390_vx): New static variable. |
| 2522 | (s390_arch_setup): Fill have_hwcap_s390_vx. |
| 2523 | (s390_get_thread_area): New function. |
| 2524 | (s390_ft_entry_gpr_esa): New const. |
| 2525 | (s390_ft_entry_gpr_zarch): New const. |
| 2526 | (s390_ft_entry_misc): New const. |
| 2527 | (s390_ft_entry_fr): New const. |
| 2528 | (s390_ft_entry_vr): New const. |
| 2529 | (s390_ft_main_31): New const. |
| 2530 | (s390_ft_main_64): New const. |
| 2531 | (s390_ft_exit_fr): New const. |
| 2532 | (s390_ft_exit_vr): New const. |
| 2533 | (s390_ft_exit_misc): New const. |
| 2534 | (s390_ft_exit_gpr_esa): New const. |
| 2535 | (s390_ft_exit_gpr_zarch): New const. |
| 2536 | (append_insns): New function. |
| 2537 | (s390_relocate_instruction): New function. |
| 2538 | (s390_install_fast_tracepoint_jump_pad): New function. |
| 2539 | (s390_get_min_fast_tracepoint_insn_len): New function. |
| 2540 | (s390_get_ipa_tdesc_idx): New function. |
| 2541 | (struct linux_target_ops): Wire in the above functions. |
| 2542 | (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs. |
| 2543 | * linux-s390-tdesc.h: New file. |
| 2544 | |
| 2545 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
| 2546 | |
| 2547 | * linux-s390-low.c (s390_supports_tracepoints): New function. |
| 2548 | (struct linux_target_ops): Fill supports_tracepoints hook. |
| 2549 | |
| 2550 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
| 2551 | |
| 2552 | * linux-low.c (lwp_signal_can_be_delivered): New function. |
| 2553 | (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered. |
| 2554 | |
| 2555 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
| 2556 | |
| 2557 | * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to |
| 2558 | 0 if signal is enqueued. Remove 'signal' from one debugging |
| 2559 | message. Move one debugging message to some lines below. |
| 2560 | Remove code setting 'signal' to 0. |
| 2561 | |
| 2562 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
| 2563 | |
| 2564 | * linux-low.c (linux_low_filter_event): Remove redundant |
| 2565 | WIFSTOPPED check together with linux_wstatus_maybe_breakpoint. |
| 2566 | |
| 2567 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
| 2568 | |
| 2569 | * linux-ppc-low.c (ppc_supports_tracepoints): New function. |
| 2570 | (struct linux_target_ops): Wire in the above. |
| 2571 | |
| 2572 | 2016-03-03 Yao Qi <yao.qi@linaro.org> |
| 2573 | |
| 2574 | * linux-low.c: Update comments to start_step_over. |
| 2575 | |
| 2576 | 2016-03-03 Yao Qi <yao.qi@linaro.org> |
| 2577 | |
| 2578 | PR server/19736 |
| 2579 | * linux-low.c (handle_extended_wait): Set child suspended |
| 2580 | if event_lwp->bp_reinsert isn't zero. |
| 2581 | |
| 2582 | 2016-03-02 Yao Qi <yao.qi@linaro.org> |
| 2583 | |
| 2584 | * linux-low.c (linux_resume_one_lwp_throw): Replace code with |
| 2585 | enqueue_pending_signal. |
| 2586 | |
| 2587 | 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net> |
| 2588 | |
| 2589 | * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent |
| 2590 | is actually loaded. |
| 2591 | |
| 2592 | 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net> |
| 2593 | |
| 2594 | * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too. |
| 2595 | (s390_regmap_3264) [!__s390x__]: New global. |
| 2596 | (s390_collect_ptrace_register): Skip map entries containing -1. |
| 2597 | (s390_supply_ptrace_register): Ditto. |
| 2598 | (s390_fill_gprs_high): New function. |
| 2599 | (s390_store_gprs_high): New function. |
| 2600 | (s390_regsets): Add NT_S390_HIGH_GPRS. |
| 2601 | (s390_get_hwcap): Enable on 31-bit. |
| 2602 | (have_hwcap_s390_high_gprs): Enable on 31-bit. |
| 2603 | (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit. |
| 2604 | Detect NT_S390_HIGH_GPRS. |
| 2605 | (s390_usrregs_info_3264): Enable on 31-bit. |
| 2606 | (s390_regs_info): Enable regs_info_3264 on 31-bit. |
| 2607 | (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit. |
| 2608 | |
| 2609 | 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net> |
| 2610 | |
| 2611 | PR gdb/13808 |
| 2612 | * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o. |
| 2613 | * configure.srv: Ditto. |
| 2614 | * linux-aarch64-ipa.c (get_ipa_tdesc): New function. |
| 2615 | (initialize_low_tracepoint): Remove ipa_tdesc assignment. |
| 2616 | * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include. |
| 2617 | (init_registers_amd64_linux): Remove prototype. |
| 2618 | (tdesc_amd64_linux): Remove declaration. |
| 2619 | (get_ipa_tdesc): New function. |
| 2620 | (initialize_low_tracepoint): Remove ipa_tdesc assignment, |
| 2621 | initialize remaining tdescs. |
| 2622 | * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include. |
| 2623 | (init_registers_i386_linux): Remove prototype. |
| 2624 | (tdesc_i386_linux): Remove declaration. |
| 2625 | (get_ipa_tdesc): New function. |
| 2626 | (initialize_low_tracepoint): Remove ipa_tdesc assignment, |
| 2627 | initialize remaining tdescs. |
| 2628 | * linux-low.c (linux_get_ipa_tdesc_idx): New function. |
| 2629 | (linux_target_ops): wire in linux_get_ipa_tdesc_idx. |
| 2630 | * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx. |
| 2631 | * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h. |
| 2632 | (x86_get_ipa_tdesc_idx): New function. |
| 2633 | (the_low_target): Wire in x86_get_ipa_tdesc_idx. |
| 2634 | * linux-x86-tdesc.h: New file. |
| 2635 | * target.h (struct target_ops): Add get_ipa_tdesc_idx. |
| 2636 | (target_get_ipa_tdesc_idx): New macro. |
| 2637 | * tracepoint.c (ipa_tdesc_idx): New macro. |
| 2638 | (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx. |
| 2639 | (symbol_list): Add ipa_tdesc_idx. |
| 2640 | (cmd_qtstart): Write ipa_tdesc_idx in the target. |
| 2641 | (ipa_tdesc): Remove. |
| 2642 | (ipa_tdesc_idx): New variable. |
| 2643 | (get_context_regcache): Use get_ipa_tdesc. |
| 2644 | (gdb_collect): Ditto. |
| 2645 | (gdb_probe): Ditto. |
| 2646 | * tracepoint.h (get_ipa_tdesc): New prototype. |
| 2647 | (ipa_tdesc): Remove. |
| 2648 | |
| 2649 | 2016-02-24 Pedro Alves <palves@redhat.com> |
| 2650 | |
| 2651 | * linux-low.c (check_stopped_by_breakpoint): Rename to ... |
| 2652 | (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and |
| 2653 | handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. |
| 2654 | Factor out common code between the USE_SIGTRAP_SIGINFO and |
| 2655 | !USE_SIGTRAP_SIGINFO blocks. |
| 2656 | (linux_low_filter_event): Call save_stop_reason instead of |
| 2657 | check_stopped_by_breakpoint and check_stopped_by_watchpoint. |
| 2658 | Update comments. |
| 2659 | (linux_wait_1): Update comments. |
| 2660 | |
| 2661 | 2016-02-24 Wei-cheng Wang <cole945@gmail.com> |
| 2662 | |
| 2663 | * linux-ppc-low.c (ppc_supports_z_point_type): New function: |
| 2664 | (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints. |
| 2665 | (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type, |
| 2666 | ppc_insert_point, ppc_remove_point. |
| 2667 | |
| 2668 | 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net> |
| 2669 | |
| 2670 | * linux-s390-low.c (s390_supports_z_point_type): New function. |
| 2671 | (struct linux_target_ops): Wire s390_supports_z_point_type in. |
| 2672 | |
| 2673 | 2016-02-16 Yao Qi <yao.qi@linaro.org> |
| 2674 | |
| 2675 | * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument |
| 2676 | PC. Get pc from regcache_read_pc. |
| 2677 | |
| 2678 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
| 2679 | |
| 2680 | * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit |
| 2681 | or linux_get_pc_32bit. |
| 2682 | (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit. |
| 2683 | |
| 2684 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
| 2685 | |
| 2686 | * linux-arm-low.c (get_next_pcs_ops): Initialize it with |
| 2687 | arm_linux_get_next_pcs_fixup. |
| 2688 | |
| 2689 | 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net> |
| 2690 | |
| 2691 | * tracepoint.c (x_tracepoint_action_download): Change |
| 2692 | write_inferior_data_ptr to write_inferior_data_pointer. |
| 2693 | (cmd_qtstart): Likewise. |
| 2694 | (write_inferior_data_ptr): Remove. |
| 2695 | (download_agent_expr): Change write_inferior_data_ptr to |
| 2696 | write_inferior_data_pointer. |
| 2697 | (download_tracepoint_1): Likewise. |
| 2698 | (download_tracepoint): Likewise. |
| 2699 | (download_trace_state_variables): Likewise. |
| 2700 | |
| 2701 | 2016-02-11 Wei-cheng Wang <cole945@gmail.com> |
| 2702 | Marcin Kościelnicki <koriakin@0x04.net> |
| 2703 | |
| 2704 | * tracepoint.c (struct tracepoint_action_ops): Remove. |
| 2705 | (struct tracepoint_action): Remove ops. |
| 2706 | (m_tracepoint_action_download, r_tracepoint_action_download) |
| 2707 | (x_tracepoint_action_download, l_tracepoint_action_download): Adjust |
| 2708 | size and offset accordingly. |
| 2709 | (m_tracepoint_action_ops, r_tracepoint_action_ops) |
| 2710 | (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove. |
| 2711 | (tracepoint_action_send, tracepoint_action_download): New functions. |
| 2712 | Helpers for trace action handlers. |
| 2713 | (add_tracepoint_action): Remove setup actions ops. |
| 2714 | (download_tracepoint_1, tracepoint_send_agent): Call helper functions. |
| 2715 | |
| 2716 | 2016-02-10 Yao Qi <yao.qi@linaro.org> |
| 2717 | |
| 2718 | * regcache.c (regcache_raw_read_unsigned): Clear *VAL. |
| 2719 | |
| 2720 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
| 2721 | |
| 2722 | * configure.ac: Use AC_CONFIG_FILES instead of passing arguments |
| 2723 | to AC_OUTPUT. |
| 2724 | * configure: Regenerate. |
| 2725 | |
| 2726 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
| 2727 | |
| 2728 | * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change |
| 2729 | void * to gdb_byte *. |
| 2730 | * linux-low.c (siginfo_fixup): Likewise. |
| 2731 | (linux_xfer_siginfo): Likewise. |
| 2732 | * linux-low.h (struct linux_target_ops) <siginfo_fixup>: |
| 2733 | Likewise. |
| 2734 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. |
| 2735 | |
| 2736 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 2737 | |
| 2738 | * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o |
| 2739 | to srv_tgtobj. |
| 2740 | (i[34567]86-*-linux*): Add amd64-linux-siginfo.o |
| 2741 | to srv_tgtobj. |
| 2742 | * linux-x86-low.c [__x86_64__]: Include |
| 2743 | "nat/amd64-linux-siginfo.h". |
| 2744 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) |
| 2745 | (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo) |
| 2746 | (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid) |
| 2747 | (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status) |
| 2748 | (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band) |
| 2749 | (cpt_si_fd, si_timerid, si_overrun): Move from |
| 2750 | nat/amd64-linux-siginfo.c. |
| 2751 | * Makefile.in (amd64-linux-siginfo.o:): New rule. |
| 2752 | |
| 2753 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
| 2754 | |
| 2755 | * server.c (skip_to_semicolon): Remove. |
| 2756 | (process_point_options): Use strchrnul instead of |
| 2757 | skip_to_semicolon. |
| 2758 | |
| 2759 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
| 2760 | |
| 2761 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc. |
| 2762 | * linux-low.c (install_software_single_step_breakpoints): Don't |
| 2763 | call regcache_read_pc. |
| 2764 | * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove |
| 2765 | argument pc. |
| 2766 | |
| 2767 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
| 2768 | |
| 2769 | * linux-low.c (install_software_single_step_breakpoints): Call |
| 2770 | regcache_read_pc instead of get_pc. |
| 2771 | |
| 2772 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
| 2773 | |
| 2774 | * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO. |
| 2775 | (unblock_async_io): Rename to ... |
| 2776 | (block_unblock_async_io): ... it. New function. |
| 2777 | (enable_async_io): Don't install SIGIO handler. Unblock it |
| 2778 | instead. |
| 2779 | (disable_async_io): Don't ignore SIGIO. Block it instead. |
| 2780 | (initialize_async_io): Install SIGIO handler. Don't call |
| 2781 | unblock_async_io. |
| 2782 | |
| 2783 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
| 2784 | |
| 2785 | * remote-utils.c (getpkt): If the buffer isn't empty, and the |
| 2786 | first character is '\003', call *the_target->request_interrupt. |
| 2787 | |
| 2788 | 2016-01-25 Yao Qi <yao.qi@linaro.org> |
| 2789 | |
| 2790 | * remote-utils.c (new_thread_notify): Remove. |
| 2791 | (dead_thread_notify): Likewise. |
| 2792 | * remote-utils.h (new_thread_notify): Remove declaration. |
| 2793 | (dead_thread_notify): Likewise. |
| 2794 | |
| 2795 | 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net> |
| 2796 | |
| 2797 | * gdb.trace/pending.exp: Fix expected message on continue. |
| 2798 | |
| 2799 | 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net> |
| 2800 | |
| 2801 | * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that |
| 2802 | it works properly on big-endian machines where sizeof (CORE_ADDR) |
| 2803 | != sizeof (void *). |
| 2804 | |
| 2805 | 2016-01-21 Pedro Alves <palves@redhat.com> |
| 2806 | |
| 2807 | * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New. |
| 2808 | (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS. |
| 2809 | * configure: Regenerate. |
| 2810 | |
| 2811 | 2016-01-21 Yao Qi <yao.qi@linaro.org> |
| 2812 | |
| 2813 | * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter |
| 2814 | is_thumb and set it according to CPSR saved on the stack. |
| 2815 | (get_next_pcs_syscall_next_pc): Pass is_thumb to |
| 2816 | arm_sigreturn_next_pc. |
| 2817 | |
| 2818 | 2016-01-18 Yao Qi <yao.qi@linaro.org> |
| 2819 | |
| 2820 | * linux-low.c (linux_set_pc_64bit): New function. |
| 2821 | (linux_get_pc_64bit): New function. |
| 2822 | * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit): |
| 2823 | Declare. |
| 2824 | * linux-sparc-low.c (debug_threads): Remove declaration. |
| 2825 | (sparc_get_pc): Remove. |
| 2826 | (the_low_target): Use linux_get_pc_64bit instead of |
| 2827 | sparc_get_pc. |
| 2828 | * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove. |
| 2829 | (the_low_target): Use linux_get_pc_64bit and |
| 2830 | linux_set_pc_64bit. |
| 2831 | |
| 2832 | 2016-01-18 Yao Qi <yao.qi@linaro.org> |
| 2833 | |
| 2834 | * linux-arm-low.c (debug_threads): Remove declaration. |
| 2835 | (arm_get_pc, arm_set_pc): Remove. |
| 2836 | (the_low_target): Use linux_get_pc_32bit and |
| 2837 | linux_set_pc_32bit. |
| 2838 | * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove. |
| 2839 | (the_low_target): Use linux_get_pc_32bit and |
| 2840 | linux_set_pc_32bit. |
| 2841 | * linux-cris-low.c (debug_threads): Remove declaration. |
| 2842 | (cris_get_pc, cris_set_pc,): Remove. |
| 2843 | (the_low_target): Use linux_get_pc_32bit and |
| 2844 | linux_set_pc_32bit. |
| 2845 | * linux-crisv32-low.c (debug_threads): Remove declaration. |
| 2846 | (cris_get_pc, cris_set_pc): Remove. |
| 2847 | (the_low_target): Use linux_get_pc_32bit and |
| 2848 | linux_set_pc_32bit. |
| 2849 | * linux-low.c: Include inttypes.h. |
| 2850 | (linux_get_pc_32bit, linux_set_pc_32bit): New functions. |
| 2851 | * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare. |
| 2852 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove. |
| 2853 | (the_low_target): Use linux_get_pc_32bit and |
| 2854 | linux_set_pc_32bit. |
| 2855 | * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove. |
| 2856 | (the_low_target): Use linux_get_pc_32bit and |
| 2857 | linux_set_pc_32bit. |
| 2858 | * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove. |
| 2859 | (the_low_target): Use linux_get_pc_32bit and |
| 2860 | linux_set_pc_32bit. |
| 2861 | * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove. |
| 2862 | (the_low_target): Use linux_get_pc_32bit and |
| 2863 | linux_set_pc_32bit. |
| 2864 | * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove. |
| 2865 | (the_low_target): Use linux_get_pc_32bit and |
| 2866 | linux_set_pc_32bit. |
| 2867 | |
| 2868 | 2016-01-18 Gary Benson <gbenson@redhat.com> |
| 2869 | |
| 2870 | * configure.ac (AC_FUNC_FORK): New check. |
| 2871 | * config.in: Regenerate. |
| 2872 | * configure: Likewise. |
| 2873 | |
| 2874 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
| 2875 | |
| 2876 | * linux-aarch32-low.c (thumb2_breakpoint): Make it static. |
| 2877 | * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration. |
| 2878 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to |
| 2879 | arm_get_next_pcs_ctor. |
| 2880 | |
| 2881 | 2016-01-12 Josh Stone <jistone@redhat.com> |
| 2882 | Philippe Waroquiers <philippe.waroquiers@skynet.be> |
| 2883 | |
| 2884 | * inferiors.h: Include "gdb_vecs.h". |
| 2885 | (struct process_info): Add syscalls_to_catch. |
| 2886 | * inferiors.c (remove_process): Free syscalls_to_catch. |
| 2887 | * remote-utils.c (prepare_resume_reply): Report syscall_entry and |
| 2888 | syscall_return stops. |
| 2889 | * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define. |
| 2890 | * server.c (handle_general_set): Handle QCatchSyscalls. |
| 2891 | (handle_query): Report support for QCatchSyscalls. |
| 2892 | * target.h (struct target_ops): Add supports_catch_syscall. |
| 2893 | (target_supports_catch_syscall): New macro. |
| 2894 | * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo. |
| 2895 | (struct lwp_info): Add syscall_state. |
| 2896 | * linux-low.c (handle_extended_wait): Mark syscall_state as an entry. |
| 2897 | Maintain syscall_state and syscalls_to_catch across exec. |
| 2898 | (get_syscall_trapinfo): New function, proxy to the_low_target. |
| 2899 | (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD. |
| 2900 | (linux_low_filter_event): Toggle syscall_state entry/return for |
| 2901 | syscall traps, and set it ignored for all others. |
| 2902 | (gdb_catching_syscalls_p): New function. |
| 2903 | (gdb_catch_this_syscall_p): New function. |
| 2904 | (linux_wait_1): Handle SYSCALL_SIGTRAP. |
| 2905 | (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility. |
| 2906 | (linux_supports_catch_syscall): New function. |
| 2907 | (linux_target_ops): Install it. |
| 2908 | * linux-x86-low.c (x86_get_syscall_trapinfo): New function. |
| 2909 | (the_low_target): Install it. |
| 2910 | |
| 2911 | 2016-01-12 Mike Frysinger <vapier@gentoo.org> |
| 2912 | |
| 2913 | * acinclude.m4: Include new ../warning.m4 file. |
| 2914 | * configure: Regenerated. |
| 2915 | * configure.ac: Replace all warning logic with AM_GDB_WARNINGS. |
| 2916 | |
| 2917 | 2016-01-12 Mike Frysinger <vapier@gentoo.org> |
| 2918 | |
| 2919 | * ax.c (is_goto_target): Mark static. |
| 2920 | * linux-low.c (register_addr): Likewise. |
| 2921 | (linux_fetch_registers, linux_store_registers): Likewise. |
| 2922 | * mem-break.c (any_persistent_commands): Fix old prototype. |
| 2923 | (add_commands_to_breakpoint): Mark static. |
| 2924 | * regcache.c (find_register_by_name): Delete unused func. |
| 2925 | * remote-utils.c (hex_or_minus_one): Mark static. |
| 2926 | * server.c (monitor_show_help): Mark static. |
| 2927 | (handle_query, handle_v_cont, handle_v_attach, handle_v_kill, |
| 2928 | handle_v_requests): Likewise. |
| 2929 | |
| 2930 | 2016-01-12 Pedro Alves <palves@redhat.com> |
| 2931 | |
| 2932 | Remove use of the registered trademark symbol throughout. |
| 2933 | |
| 2934 | 2016-01-08 Yao Qi <yao.qi@linaro.org> |
| 2935 | |
| 2936 | * remote-utils.c (getpkt): If c is '\003', call target hook |
| 2937 | request_interrupt. |
| 2938 | |
| 2939 | 2016-01-06 Yao Qi <yao.qi@linaro.org> |
| 2940 | |
| 2941 | * linux-aarch32-low.h (arm_abi_breakpoint): Move to |
| 2942 | linux-aarch32-low.c. |
| 2943 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. |
| 2944 | (arm_breakpoint_len, thumb_breakpoint_len): Likewise. |
| 2945 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. |
| 2946 | (thumb2_breakpoint): Declare. |
| 2947 | * linux-aarch32-low.c (arm_abi_breakpoint): Moved from |
| 2948 | linux-aarch32-low.h. |
| 2949 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. |
| 2950 | (arm_breakpoint_len, thumb_breakpoint_len): Likewise. |
| 2951 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. |
| 2952 | |
| 2953 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
| 2954 | |
| 2955 | * gdbreplay.c (gdbreplay_version): Change copyright year in |
| 2956 | version message. |
| 2957 | * server.c (gdbserver_version): Likewise. |
| 2958 | |
| 2959 | 2015-12-28 Patrick Palka <patrick@parcs.ath.cx> |
| 2960 | |
| 2961 | * server.c (crc32_table): Delete. |
| 2962 | (crc32): Use libiberty's xcrc32 function. |
| 2963 | |
| 2964 | 2015-12-22 Joel Brobecker <brobecker@adacore.com> |
| 2965 | |
| 2966 | * lynx-low.c (lynx_delete_thread_callback): New function. |
| 2967 | (lynx_mourn): Properly delete our process and all of its |
| 2968 | threads. Remove call to clear_inferiors. |
| 2969 | |
| 2970 | 2015-12-22 Joel Brobecker <brobecker@adacore.com> |
| 2971 | |
| 2972 | * target.c (thread_search_callback): Add check that |
| 2973 | the thread_stopped target callback is not NULL before |
| 2974 | calling it. |
| 2975 | |
| 2976 | 2015-12-21 Yao Qi <yao.qi@linaro.org> |
| 2977 | |
| 2978 | * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint |
| 2979 | arm breakpoint. |
| 2980 | |
| 2981 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 2982 | |
| 2983 | * server.c (handle_query): Call target_supports_software_single_step. |
| 2984 | |
| 2985 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 2986 | |
| 2987 | * linux-low.c (single_step): New function. |
| 2988 | (linux_resume_one_lwp_throw): Call single_step. |
| 2989 | (start_step_over): Likewise. |
| 2990 | |
| 2991 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 2992 | |
| 2993 | * Makefile.in (SFILES): Append arch/arm-linux.c, |
| 2994 | arch/arm-get-next-pcs.c. |
| 2995 | (arm-linux.o): New rule. |
| 2996 | (arm-get-next-pcs.o): New rule. |
| 2997 | * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o, |
| 2998 | arm-linux.o. |
| 2999 | * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved |
| 3000 | to linux-aarch32-low.c. |
| 3001 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. |
| 3002 | (arm_breakpoint_len, thumb_breakpoint): Likewise. |
| 3003 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. |
| 3004 | (thumb2_breakpoint_len): Likewise. |
| 3005 | (arm_is_thumb_mode): Make non-static. |
| 3006 | * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved |
| 3007 | from linux-aarch32-low.c. |
| 3008 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. |
| 3009 | (arm_breakpoint_len, thumb_breakpoint): Likewise. |
| 3010 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. |
| 3011 | (thumb2_breakpoint_len): Likewise. |
| 3012 | (arm_is_thumb_mode): New declaration. |
| 3013 | * linux-arm-low.c: Include arch/arm-linux.h |
| 3014 | aarch/arm-get-next-pcs.h, sys/syscall.h. |
| 3015 | (get_next_pcs_ops): New struct. |
| 3016 | (get_next_pcs_addr_bits_remove): New function. |
| 3017 | (get_next_pcs_is_thumb): New function. |
| 3018 | (get_next_pcs_read_memory_unsigned_integer): Likewise. |
| 3019 | (arm_sigreturn_next_pc): Likewise. |
| 3020 | (get_next_pcs_syscall_next_pc): Likewise. |
| 3021 | (arm_gdbserver_get_next_pcs): Likewise. |
| 3022 | (struct linux_target_ops) <arm_gdbserver_get_next_pcs>: |
| 3023 | Initialize. |
| 3024 | * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h. |
| 3025 | * server.h: Include gdb_vecs.h. |
| 3026 | |
| 3027 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3028 | |
| 3029 | * Makefile.in (SFILES): Append common/common-regcache.c. |
| 3030 | (OBS): Append common-regcache.o. |
| 3031 | (common-regcache.o): New rule. |
| 3032 | * regcache.c (init_register_cache): Initialize cache to |
| 3033 | REG_UNAVAILABLE. |
| 3034 | (regcache_raw_read_unsigned): New function. |
| 3035 | * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared |
| 3036 | register_status enum. |
| 3037 | |
| 3038 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3039 | |
| 3040 | * linux-aarch64-low.c (the_low_targets): Rename |
| 3041 | breakpoint_reinsert_addr to get_next_pcs. |
| 3042 | * linux-arm-low.c (the_low_targets): Likewise. |
| 3043 | * linux-bfin-low.c (the_low_targets): Likewise. |
| 3044 | * linux-cris-low.c (the_low_targets): Likewise. |
| 3045 | * linux-crisv32-low.c (the_low_targets): Likewise. |
| 3046 | * linux-low.c (can_software_single_step): Likewise. |
| 3047 | (install_software_single_step_breakpoints): New function. |
| 3048 | (start_step_over): Use install_software_single_step_breakpoints. |
| 3049 | * linux-low.h: New CORE_ADDR vector. |
| 3050 | (struct linux_target_ops) Rename breakpoint_reinsert_addr to |
| 3051 | get_next_pcs. |
| 3052 | * linux-mips-low.c (the_low_targets): Likewise. |
| 3053 | * linux-nios2-low.c (the_low_targets): Likewise. |
| 3054 | * linux-sparc-low.c (the_low_targets): Likewise. |
| 3055 | |
| 3056 | 2015-12-17 Pedro Alves <palves@redhat.com> |
| 3057 | |
| 3058 | * linux-low.c (linux_kill_one_lwp): Remove references to |
| 3059 | LinuxThreads. |
| 3060 | (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back |
| 3061 | to 'kill'. |
| 3062 | (linux_init_signals): Delete. |
| 3063 | (initialize_low): Adjust. |
| 3064 | * thread-db.c (thread_db_init): Remove LinuxThreads reference. |
| 3065 | |
| 3066 | 2015-12-16 Pedro Alves <palves@redhat.com> |
| 3067 | |
| 3068 | * configure.ac (compiler warning flags): When testing a |
| 3069 | -Wno-foo option, check whether -Wfoo works instead. |
| 3070 | * configure: Regenerate. |
| 3071 | |
| 3072 | 2015-12-11 Don Breazeal <donb@codesourcery.com> |
| 3073 | |
| 3074 | * server.c (process_serial_event): Don't exit from gdbserver |
| 3075 | in remote mode if there are still active inferiors. |
| 3076 | |
| 3077 | 2015-12-11 Yao Qi <yao.qi@linaro.org> |
| 3078 | |
| 3079 | * linux-aarch64-low.c (aarch64_breakpoint_at): Call |
| 3080 | arm_breakpoint_at if the process is 32-bit. |
| 3081 | |
| 3082 | 2015-12-11 Yao Qi <yao.qi@linaro.org> |
| 3083 | |
| 3084 | * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint |
| 3085 | arm breakpoint. |
| 3086 | |
| 3087 | 2015-12-07 Yao Qi <yao.qi@linaro.org> |
| 3088 | |
| 3089 | * configure.srv: Append arm.o to srv_tgtobj for |
| 3090 | aarch64*-*-linux* target. |
| 3091 | * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved |
| 3092 | from linux-arm-low.c. |
| 3093 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. |
| 3094 | (arm_breakpoint_len, thumb_breakpoint): Likewise. |
| 3095 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. |
| 3096 | (thumb2_breakpoint_len): Likewise. |
| 3097 | (arm_is_thumb_mode, arm_breakpoint_at): Likewise. |
| 3098 | (arm_breakpoint_kinds): Likewise. |
| 3099 | (arm_breakpoint_kind_from_pc): Likewise. |
| 3100 | (arm_sw_breakpoint_from_kind): Likewise. |
| 3101 | (arm_breakpoint_kind_from_current_state): Likewise. |
| 3102 | * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare. |
| 3103 | (arm_sw_breakpoint_from_kind): Declare. |
| 3104 | (arm_breakpoint_kind_from_current_state): Declare. |
| 3105 | (arm_breakpoint_at): Declare. |
| 3106 | * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call |
| 3107 | arm_sw_breakpoint_from_kind if process is 32-bit. |
| 3108 | (aarch64_breakpoint_kind_from_pc): New function. |
| 3109 | (aarch64_breakpoint_kind_from_current_state): New function. |
| 3110 | (the_low_target): Initialize fields breakpoint_kind_from_pc |
| 3111 | and breakpoint_kind_from_current_state. |
| 3112 | * linux-arm-low.c (arm_breakpoint_kinds): Move to |
| 3113 | linux-aarch32-low.c. |
| 3114 | (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise. |
| 3115 | (arm_breakpoint, arm_breakpoint_len): Likewise. |
| 3116 | (thumb_breakpoint, thumb_breakpoint_len): Likewise. |
| 3117 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. |
| 3118 | (arm_is_thumb_mode): Likewise. |
| 3119 | (arm_breakpoint_at): Likewise. |
| 3120 | (arm_breakpoint_kind_from_pc): Likewise. |
| 3121 | (arm_sw_breakpoint_from_kind): Likewise. |
| 3122 | (arm_breakpoint_kind_from_current_state): Likewise. |
| 3123 | |
| 3124 | Revert: |
| 3125 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
| 3126 | |
| 3127 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Return |
| 3128 | 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging. |
| 3129 | * server.c (extended_protocol): Remove "static". |
| 3130 | * server.h (extended_protocol): Declare it. |
| 3131 | |
| 3132 | 2015-12-04 Josh Stone <jistone@redhat.com> |
| 3133 | |
| 3134 | * target.h (struct target_ops) <arch_setup>: Rename to ... |
| 3135 | (struct target_ops) <post_create_inferior>: ... this. |
| 3136 | (target_arch_setup): Rename to ... |
| 3137 | (target_post_create_inferior): ... this, calling post_create_inferior. |
| 3138 | * server.c (start_inferior): Update target_arch_setup calls to |
| 3139 | target_post_create_inferior. |
| 3140 | * linux-low.c (linux_low_ptrace_options): Forward declare. |
| 3141 | (linux_arch_setup): Update its comment for general use. |
| 3142 | (linux_post_create_inferior): New, run arch_setup and setup ptrace. |
| 3143 | (struct linux_target_ops): Use linux_post_create_inferior. |
| 3144 | * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment |
| 3145 | to post_create_inferior. |
| 3146 | * nto-low.c (struct nto_target_ops): Likewise. |
| 3147 | * spu-low.c (struct spu_target_ops): Likewise. |
| 3148 | * win32-low.c (struct win32_target_ops): Likewise. |
| 3149 | |
| 3150 | 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3151 | |
| 3152 | * linux-arm-low.c: Remove duplicate arch/arm.h include. |
| 3153 | |
| 3154 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3155 | |
| 3156 | * linux-arm-low.c (arm_reinsert_addr): Remove function. |
| 3157 | (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL. |
| 3158 | * linux-cris-low.c (cris_reinsert_addr> Remove function. |
| 3159 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. |
| 3160 | * linux-crisv32-low.c (cris_reinsert_addr): Remove function. |
| 3161 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. |
| 3162 | * linux-mips-low.c (mips_reinsert_addr): Remove function. |
| 3163 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. |
| 3164 | * linux-nios2-low.c (nios2_reinsert_addr): Remove function. |
| 3165 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. |
| 3166 | * linux-sparc-low.c (sparc_reinsert_addr): Remove function. |
| 3167 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. |
| 3168 | |
| 3169 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3170 | |
| 3171 | * linux-low.c (linux_look_up_symbols): Don't call |
| 3172 | linux_supports_traceclone. |
| 3173 | * linux-low.h (thread_db_init): Remove use_events argument. |
| 3174 | * thread-db.c (thread_db_use_event): Remove global variable. |
| 3175 | (struct thread_db) <td_thr_event_enable_p>: Remove field. |
| 3176 | (struct thread_db) <td_create_bp>: Remove field. |
| 3177 | (thread_db_create_event): Remove function. |
| 3178 | (thread_db_enable_reporting): Likewise. |
| 3179 | (find_one_thread): Don't check for thread_db_use_events. |
| 3180 | (attach_thread): Likewise. |
| 3181 | (thread_db_load_search): Remove td_thr_event_enable_p initialization. |
| 3182 | (try_thread_db_load_1): Don't check for thread_db_use_events. |
| 3183 | (thread_db_init): Remove use_events argument and thread events |
| 3184 | handling. |
| 3185 | (remove_thread_event_breakpoints): Remove function. |
| 3186 | (thread_db_detach): Remove call to remove_thred_event_breakpoints. |
| 3187 | |
| 3188 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3189 | |
| 3190 | * linux-aarch64-low.c (aarch64_supports_hardware_single_step): |
| 3191 | New function. |
| 3192 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3193 | * linux-arm-low.c (arm_supports_hardware_single_step): New function. |
| 3194 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3195 | * linux-bfin-low.c (bfin_supports_hardware_single_step): New function. |
| 3196 | (struct linux_target_ops) <bfin_supports_hardware_single_step>: |
| 3197 | Initialize. |
| 3198 | * linux-crisv32-low.c (cris_supports_hardware_single_step): |
| 3199 | New function. |
| 3200 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3201 | * linux-low.c (can_hardware_single_step): Use |
| 3202 | supports_hardware_single_step. |
| 3203 | (can_software_single_step): New function. |
| 3204 | (start_step_over): Call can_software_single_step. |
| 3205 | (linux_supports_hardware_single_step): New function. |
| 3206 | (struct target_ops) <supports_software_single_step>: Initialize. |
| 3207 | * linux-low.h (struct linux_target_ops) |
| 3208 | <supports_hardware_single_step>: Initialize. |
| 3209 | * linux-m32r-low.c (m32r_supports_hardware_single_step): New function. |
| 3210 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3211 | * linux-ppc-low.c (ppc_supports_hardware_single_step): New function. |
| 3212 | (struct linux_target_ops) <supports_hardware_single_step> Initialize. |
| 3213 | * linux-s390-low.c (s390_supports_hardware_single_step): New function. |
| 3214 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3215 | * linux-sh-low.c (sh_supports_hardware_single_step): New function. |
| 3216 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3217 | * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function. |
| 3218 | (struct linux_target_ops) <tic6x_supports_hardware_single_step>: |
| 3219 | Initialize. |
| 3220 | * linux-tile-low.c (tile_supports_hardware_single_step): New function. |
| 3221 | (struct linux_target_ops) <tile_supports_hardware_single_step>: |
| 3222 | Initialize. |
| 3223 | * linux-x86-low.c (x86_supports_hardware_single_step) New function. |
| 3224 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3225 | * linux-xtensa-low.c (xtensa_supports_hardware_single_step): |
| 3226 | New function. |
| 3227 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. |
| 3228 | * target.h (struct target_ops): <supports_software_single_step>: |
| 3229 | New field. |
| 3230 | (target_supports_software_single_step): New macro. |
| 3231 | |
| 3232 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3233 | |
| 3234 | * linux-low.c (linux_wait_1): Fix pc advance condition. |
| 3235 | * mem-break.c (reinsert_breakpoint_inserted_here): New function. |
| 3236 | * mem-break.h (reinsert_breakpoint_inserted_here): New declaration. |
| 3237 | |
| 3238 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3239 | |
| 3240 | * linux-arm-low.c (arm_is_thumb_mode): New function. |
| 3241 | (arm_breakpoint_at): Use arm_is_thumb_mode. |
| 3242 | (arm_breakpoint_kind_from_current_state): New function. |
| 3243 | (struct linux_target_ops) <breakpoint_kind_from_current_state>: |
| 3244 | Initialize. |
| 3245 | * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state. |
| 3246 | (linux_breakpoint_kind_from_current_state): New function. |
| 3247 | (struct target_ops <breakpoint_kind_from_current_state>: Initialize. |
| 3248 | * linux-low.h (struct linux_target_ops) |
| 3249 | <breakpoint_kind_from_current_state>: New field. |
| 3250 | * target.h (struct target_ops): Likewise. |
| 3251 | (target_breakpoint_kind_from_current_state): New macro. |
| 3252 | |
| 3253 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3254 | |
| 3255 | * linux-low.c (linux_resume): Wake up the event loop before |
| 3256 | returning. |
| 3257 | |
| 3258 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3259 | |
| 3260 | * mem-break.c (check_gdb_bp_preconditions): Remove current_thread |
| 3261 | check. |
| 3262 | (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR |
| 3263 | to -1. |
| 3264 | * target.c (struct thread_search): New structure. |
| 3265 | (thread_search_callback): New function. |
| 3266 | (prev_general_thread): New global. |
| 3267 | (prepare_to_access_memory, done_accessing_memory): New functions. |
| 3268 | * target.h (prepare_to_access_memory, done_accessing_memory): |
| 3269 | Replace macros with function declarations. |
| 3270 | |
| 3271 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3272 | |
| 3273 | PR 14618 |
| 3274 | * linux-low.c (linux_wait_1): If the last resumed thread is gone, |
| 3275 | report TARGET_WAITKIND_NO_RESUMED. |
| 3276 | * remote-utils.c (prepare_resume_reply): Handle |
| 3277 | TARGET_WAITKIND_NO_RESUMED. |
| 3278 | * server.c (report_no_resumed): New global. |
| 3279 | (handle_query) <qSupported>: Handle "no-resumed+". Report |
| 3280 | "no-resumed+" support. |
| 3281 | (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only |
| 3282 | return error if the client doesn't support no-resumed events. |
| 3283 | (push_stop_notification): New function. |
| 3284 | (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED |
| 3285 | events if the client supports them. |
| 3286 | |
| 3287 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3288 | |
| 3289 | * linux-low.c (thread_still_has_status_pending_p): Don't check |
| 3290 | vCont;t here. |
| 3291 | (lwp_resumed): New function. |
| 3292 | (status_pending_p_callback): Return early if the LWP is not |
| 3293 | supposed to be resumed. |
| 3294 | |
| 3295 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3296 | |
| 3297 | * linux-low.c (handle_extended_wait): Assert that the LWP's |
| 3298 | waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about |
| 3299 | thread create events, leave the new child's status pending. |
| 3300 | (linux_low_filter_event): If GDB wants to hear about thread exit |
| 3301 | events, leave the LWP marked dead and don't delete it. |
| 3302 | (linux_wait_for_event_filtered): Don't check for thread exit. |
| 3303 | (filter_exit_event): New function. |
| 3304 | (linux_wait_1): Use it, when returning an exit event. |
| 3305 | (linux_resume_one_lwp_throw): Assert that the LWP's |
| 3306 | waitstatus is TARGET_WAITKIND_IGNORE. |
| 3307 | * remote-utils.c (prepare_resume_reply): Handle |
| 3308 | TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED. |
| 3309 | * server.c (report_thread_events): New global. |
| 3310 | (handle_general_set): Handle QThreadEvents. |
| 3311 | (handle_query) <qSupported>: Handle and report QThreadEvents+; |
| 3312 | (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and |
| 3313 | TARGET_WAITKIND_THREAD_EXITED. |
| 3314 | * server.h (report_thread_events): Declare. |
| 3315 | |
| 3316 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3317 | |
| 3318 | * linux-low.c (resume_stopped_resumed_lwps): Don't check whether |
| 3319 | the thread's last_resume_kind was resume_stop. |
| 3320 | |
| 3321 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3322 | |
| 3323 | * linux-low.c (linux_attach): In non-stop mode, wait for one stop |
| 3324 | before returning. |
| 3325 | |
| 3326 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3327 | |
| 3328 | * server.c (handle_v_requests): Handle vCtrlC. |
| 3329 | |
| 3330 | 2015-11-30 Pedro Alves <palves@redhat.com> |
| 3331 | |
| 3332 | * gdbthread.h (find_any_thread_of_pid): Declare. |
| 3333 | * inferiors.c (thread_of_pid, find_any_thread_of_pid): New |
| 3334 | functions. |
| 3335 | * server.c (handle_query): If current_thread is NULL, look for |
| 3336 | another thread of the selected process. |
| 3337 | |
| 3338 | 2015-11-26 Daniel Colascione <dancol@dancol.org> |
| 3339 | Simon Marchi <simon.marchi@ericsson.com> |
| 3340 | |
| 3341 | * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name. |
| 3342 | * server.c (handle_qxfer_threads_worker): Refactor to include thread |
| 3343 | name in reply. |
| 3344 | * target.h (struct target_ops) <thread_name>: New field. |
| 3345 | (target_thread_name): New macro. |
| 3346 | |
| 3347 | 2015-11-23 Joel Brobecker <brobecker@adacore.com> |
| 3348 | |
| 3349 | * regcache.h (regcache_invalidate_pid): Add declaration. |
| 3350 | * regcache.c (regcache_invalidate_pid): New function, extracted |
| 3351 | from regcache_invalidate. |
| 3352 | (regcache_invalidate): Reimplement using regcache_invalidate_pid. |
| 3353 | Add trivial documentation comment. |
| 3354 | * lynx-low.c: Use regcache_invalidate_pid instead of |
| 3355 | regcache_invalidate. |
| 3356 | |
| 3357 | 2015-11-23 Joel Brobecker <brobecker@adacore.com> |
| 3358 | |
| 3359 | * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t |
| 3360 | and Elf64_auxv_t if the target is Android. |
| 3361 | |
| 3362 | 2015-11-22 Doug Evans <xdje42@gmail.com> |
| 3363 | |
| 3364 | * target.h: #include <sys/types.h>. |
| 3365 | |
| 3366 | 2015-11-19 Pedro Alves <palves@redhat.com> |
| 3367 | |
| 3368 | * linux-low.c (linux_process_qsupported): Change prototype. |
| 3369 | Adjust. |
| 3370 | * linux-low.h (struct linux_target_ops) <process_qsupported>: |
| 3371 | Change prototype. |
| 3372 | * linux-x86-low.c (x86_linux_process_qsupported): Change prototype |
| 3373 | and adjust to loop over all features. |
| 3374 | * server.c (handle_query) <qSupported>: Adjust to call |
| 3375 | target_process_qsupported once, passing it a vector of unprocessed |
| 3376 | features. |
| 3377 | * target.h (struct target_ops) <process_qsupported>: Change |
| 3378 | prototype. |
| 3379 | (target_process_qsupported): Adjust. |
| 3380 | |
| 3381 | 2015-11-19 Pedro Alves <palves@redhat.com> |
| 3382 | |
| 3383 | * configure.ac (ERROR_ON_WARNING): Don't check whether in C++ |
| 3384 | mode. |
| 3385 | * configure: Regenerate. |
| 3386 | |
| 3387 | 2015-11-19 Pedro Alves <palves@redhat.com> |
| 3388 | |
| 3389 | * configure: Regenerate. |
| 3390 | |
| 3391 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
| 3392 | |
| 3393 | * linux-aarch64-low.c (emit_data_processing_reg): Change opcode |
| 3394 | type to uint32_t. |
| 3395 | |
| 3396 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
| 3397 | |
| 3398 | * linux-aarch64-low.c (enum aarch64_operand_type): New. |
| 3399 | (struct aarch64_operand): Move enum out. |
| 3400 | |
| 3401 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
| 3402 | |
| 3403 | * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to |
| 3404 | struct user_fpsimd_state *. |
| 3405 | (aarch64_store_fpregset): Likewise. |
| 3406 | |
| 3407 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
| 3408 | |
| 3409 | * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to |
| 3410 | struct user_pt_regs *. |
| 3411 | (aarch64_store_gregset): Likewise. |
| 3412 | |
| 3413 | 2015-11-18 Pedro Alves <palves@redhat.com> |
| 3414 | |
| 3415 | * Makefile.in (all_object_files): Add $IPA_OBJS. |
| 3416 | |
| 3417 | 2015-11-17 Pedro Alves <palves@redhat.com> |
| 3418 | |
| 3419 | * win32-low.c (win32_resume): Use gdb_signal_from_host, |
| 3420 | GDB_SIGNAL_0 and gdb_signal_to_string. |
| 3421 | |
| 3422 | 2015-11-17 Pedro Alves <palves@redhat.com> |
| 3423 | |
| 3424 | * win32-low.c (handle_output_debug_string): Remove parameter. |
| 3425 | (win32_kill): Remove our_status local and adjust call to |
| 3426 | handle_output_debug_string. |
| 3427 | (get_child_debug_event): Adjust call to |
| 3428 | handle_output_debug_string. |
| 3429 | |
| 3430 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3431 | |
| 3432 | * linux-mips-low.c (mips_fill_gregset): Add cast. |
| 3433 | (mips_store_gregset): Likewise. |
| 3434 | (mips_fill_fpregset): Likewise. |
| 3435 | (mips_store_fpregset): Likewise. |
| 3436 | |
| 3437 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3438 | |
| 3439 | * linux-mips-low.c (mips_add_watchpoint): Rename private to |
| 3440 | priv. |
| 3441 | |
| 3442 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3443 | |
| 3444 | * linux-mips-low.c (mips_linux_new_thread): Change type of |
| 3445 | watch_type to enum target_hw_bp_type. |
| 3446 | |
| 3447 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3448 | |
| 3449 | * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): |
| 3450 | Change return type to arm_hwbp_type. |
| 3451 | |
| 3452 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3453 | |
| 3454 | * linux-aarch32-low.c (arm_fill_gregset): Add cast. |
| 3455 | (arm_store_gregset): Likewise. |
| 3456 | * linux-arm-low.c (arm_get_hwcap): Likewise. |
| 3457 | (arm_read_description): Likewise. |
| 3458 | |
| 3459 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3460 | |
| 3461 | * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET. |
| 3462 | |
| 3463 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3464 | |
| 3465 | * linux-ppc-low.c (ppc_get_hwcap): Add cast. |
| 3466 | (ppc_fill_vsxregset): Likewise. |
| 3467 | (ppc_store_vsxregset): Likewise. |
| 3468 | (ppc_fill_vrregset): Likewise. |
| 3469 | (ppc_store_vrregset): Likewise. |
| 3470 | (ppc_fill_evrregset): Likewise. |
| 3471 | (ppc_store_evrregset): Likewise. |
| 3472 | |
| 3473 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 3474 | |
| 3475 | * linux-ppc-low.c (ppc_usrregs_info): Remove |
| 3476 | forward-declaration. |
| 3477 | (ppc_arch_setup): Move lower in file. |
| 3478 | |
| 3479 | 2015-10-30 Simon Marchi <simon.marchi@ericsson.com> |
| 3480 | |
| 3481 | * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t. |
| 3482 | (ps_pdwrite): Likewise. |
| 3483 | |
| 3484 | 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com> |
| 3485 | |
| 3486 | * linux-arm-low.c (arm_new_thread): Move pointer dereference |
| 3487 | to after assert checks. |
| 3488 | |
| 3489 | 2015-10-29 Simon Marchi <simon.marchi@ericsson.com> |
| 3490 | |
| 3491 | * proc-service.c (ps_pdread): Add/adjust casts. |
| 3492 | (ps_pdwrite): Add/adjust casts. |
| 3493 | |
| 3494 | 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
| 3495 | |
| 3496 | * server.c (handle_search_memory_1): Cast return value of |
| 3497 | memmem. |
| 3498 | |
| 3499 | 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
| 3500 | |
| 3501 | * server.c (write_qxfer_response): Change type of data to |
| 3502 | gdb_byte *. |
| 3503 | |
| 3504 | 2015-10-29 Pedro Alves <palves@redhat.com> |
| 3505 | |
| 3506 | * mem-break.c (Z_packet_to_bkpt_type): Add cast. |
| 3507 | |
| 3508 | 2015-10-29 Pedro Alves <palves@redhat.com> |
| 3509 | |
| 3510 | * tracepoint.c (clear_installed_tracepoints): Add casts. |
| 3511 | |
| 3512 | 2015-10-29 Pedro Alves <palves@redhat.com> |
| 3513 | |
| 3514 | * server.c (handle_v_cont, process_serial_event): Add enum |
| 3515 | gdb_signal casts to signal parsing code. |
| 3516 | |
| 3517 | 2015-10-29 Pedro Alves <palves@redhat.com> |
| 3518 | |
| 3519 | * linux-low.h (NULL_REGSET): Define. |
| 3520 | * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET. |
| 3521 | * linux-arm-low.c (arm_regsets): Likewise. |
| 3522 | * linux-crisv32-low.c (cris_regsets): Likewise. |
| 3523 | * linux-m68k-low.c (m68k_regsets): Likewise. |
| 3524 | * linux-mips-low.c (mips_regsets): Likewise. |
| 3525 | * linux-nios2-low.c (nios2_regsets): Likewise. |
| 3526 | * linux-ppc-low.c (ppc_regsets): Likewise. |
| 3527 | * linux-s390-low.c (s390_regsets): Likewise. |
| 3528 | * linux-sh-low.c (sh_regsets): Likewise. |
| 3529 | * linux-sparc-low.c (sparc_regsets): Likewise. |
| 3530 | * linux-tic6x-low.c (tic6x_regsets): Likewise. |
| 3531 | * linux-tile-low.c (tile_regsets): Likewise. |
| 3532 | * linux-x86-low.c (x86_regsets): Likewise. |
| 3533 | * linux-xtensa-low.c (xtensa_regsets): Likewise. |
| 3534 | |
| 3535 | 2015-10-29 Pedro Alves <palves@redhat.com> |
| 3536 | |
| 3537 | * linux-low.h (NULL_REGSET): Define. |
| 3538 | * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET. |
| 3539 | * linux-arm-low.c (arm_regsets): Likewise. |
| 3540 | * linux-crisv32-low.c (cris_regsets): Likewise. |
| 3541 | * linux-m68k-low.c (m68k_regsets): Likewise. |
| 3542 | * linux-mips-low.c (mips_regsets): Likewise. |
| 3543 | * linux-nios2-low.c (nios2_regsets): Likewise. |
| 3544 | * linux-ppc-low.c (ppc_regsets): Likewise. |
| 3545 | * linux-s390-low.c (s390_regsets): Likewise. |
| 3546 | * linux-sh-low.c (sh_regsets): Likewise. |
| 3547 | * linux-sparc-low.c (sparc_regsets): Likewise. |
| 3548 | * linux-tic6x-low.c (tic6x_regsets): Likewise. |
| 3549 | * linux-tile-low.c (tile_regsets): Likewise. |
| 3550 | * linux-x86-low.c (x86_regsets): Likewise. |
| 3551 | * linux-xtensa-low.c (xtensa_regsets): Likewise. |
| 3552 | |
| 3553 | 2015-10-26 Doug Evans <dje@google.com> |
| 3554 | |
| 3555 | * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h. |
| 3556 | |
| 3557 | 2015-10-26 Doug Evans <dje@google.com> |
| 3558 | |
| 3559 | * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h. |
| 3560 | |
| 3561 | 2015-10-26 Doug Evans <dje@google.com> |
| 3562 | |
| 3563 | * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long |
| 3564 | for debug_printf. |
| 3565 | (attach_thread, find_new_threads_callback): Ditto. |
| 3566 | |
| 3567 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3568 | |
| 3569 | * mem-break.h (set_breakpoint_data): Remove. |
| 3570 | |
| 3571 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3572 | |
| 3573 | * nto-low.c (nto_sw_breakpoint_from_kind): New function. |
| 3574 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize. |
| 3575 | (initialize_low): Remove set_breakpoint_data call. |
| 3576 | * spu-low.c (spu_sw_breakpoint_from_kind): New function. |
| 3577 | (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize. |
| 3578 | (initialize_low): Remove set_breakpoint_data call. |
| 3579 | * win32-low.c (win32_sw_breakpoint_from_kind): New function. |
| 3580 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize. |
| 3581 | (initialize_low): Remove set_breakpoint_data call. |
| 3582 | |
| 3583 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3584 | |
| 3585 | * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c. |
| 3586 | * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc. |
| 3587 | * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c |
| 3588 | * target.h (target_breakpoint_kind_from_pc): New macro. |
| 3589 | |
| 3590 | 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3591 | |
| 3592 | * linux-low.c (default_breakpoint_kind_from_pc): New function. |
| 3593 | (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for |
| 3594 | the default breakpoint kind. |
| 3595 | |
| 3596 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3597 | |
| 3598 | * linux-arm-low.c (arm_supports_z_point_type): Add software |
| 3599 | breakpoint support. |
| 3600 | |
| 3601 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3602 | |
| 3603 | * linux-arm-low.c: Refactor breakpoint definitions. |
| 3604 | (arm_breakpoint_at): Adjust for arm_abi_breakpoint. |
| 3605 | (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint. |
| 3606 | |
| 3607 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3608 | |
| 3609 | * Makefile.in: Add arm.c/o. |
| 3610 | * configure.srv: Likewise. |
| 3611 | * linux-arm-low.c (arm_breakpoint_kinds): New enum. |
| 3612 | (arm_breakpoint_kind_from_pc): New function. |
| 3613 | (arm_sw_breakpoint_from_kind): Return proper kind. |
| 3614 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize. |
| 3615 | |
| 3616 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3617 | |
| 3618 | * linux-low.c (initialize_low): Ajdust for breakpoint global variables |
| 3619 | removal. |
| 3620 | * mem-break.c : Remove breakpoint_data/breakpoint_len global variables. |
| 3621 | (struct raw_breakpoint) <size>: Remove. |
| 3622 | (struct raw_breakpoint) <kind>: Add. |
| 3623 | (bp_size): New function. |
| 3624 | (bp_opcode): Likewise. |
| 3625 | (find_raw_breakpoint_at): Adjust for kind. |
| 3626 | (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode. |
| 3627 | (remove_memory_breakpoint): Adjust for kind call bp_size. |
| 3628 | (set_raw_breakpoint_at): Adjust for kind. |
| 3629 | (set_breakpoint): Likewise. |
| 3630 | (set_breakpoint_at): Call breakpoint_kind_from_pc. |
| 3631 | (delete_raw_breakpoint): Adjust for kind. |
| 3632 | (delete_breakpoint): Likewise. |
| 3633 | (find_gdb_breakpoint): Likewise. |
| 3634 | (set_gdb_breakpoint_1): Likewise. |
| 3635 | (set_gdb_breakpoint): Likewise. |
| 3636 | (delete_gdb_breakpoint_1): Likewise. |
| 3637 | (delete_gdb_breakpoint): Likewise. |
| 3638 | (uninsert_raw_breakpoint): Likewise. |
| 3639 | (reinsert_raw_breakpoint): Likewise. |
| 3640 | (set_breakpoint_data): Remove. |
| 3641 | (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode. |
| 3642 | (check_mem_read): Adjust for kind call bp_size. |
| 3643 | (check_mem_write): Adjust for kind call bp_size,bp_opcode. |
| 3644 | (clone_one_breakpoint): Adjust for kind. |
| 3645 | * mem-break.h (set_gdb_breakpoint): Likewise. |
| 3646 | (delete_gdb_breakpoint): Likewise. |
| 3647 | * server.c (process_serial_event): Likewise. |
| 3648 | |
| 3649 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3650 | |
| 3651 | * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function. |
| 3652 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3653 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3654 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3655 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3656 | * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function. |
| 3657 | (arm_sw_breakpoint_from_kind): New function. |
| 3658 | * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function. |
| 3659 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3660 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3661 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3662 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3663 | * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function. |
| 3664 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3665 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3666 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3667 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3668 | * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function. |
| 3669 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3670 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3671 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3672 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3673 | * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc |
| 3674 | and sw_breakpoint_from_kind to increment the pc. |
| 3675 | (linux_breakpoint_kind_from_pc): New function. |
| 3676 | (linux_sw_breakpoint_from_kind): New function. |
| 3677 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3678 | (initialize_low): Call breakpoint_kind_from_pc and |
| 3679 | sw_breakpoint_from_kind to replace breakpoint_data/len. |
| 3680 | * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>: |
| 3681 | New field. |
| 3682 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise. |
| 3683 | * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function. |
| 3684 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3685 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3686 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3687 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3688 | * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function. |
| 3689 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3690 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3691 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3692 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3693 | * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function. |
| 3694 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3695 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3696 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3697 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3698 | * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function. |
| 3699 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3700 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3701 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3702 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3703 | * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function. |
| 3704 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3705 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3706 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3707 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3708 | * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function. |
| 3709 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3710 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3711 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3712 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3713 | * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function. |
| 3714 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3715 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3716 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3717 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3718 | * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function. |
| 3719 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3720 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3721 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3722 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3723 | * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function. |
| 3724 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3725 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3726 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3727 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3728 | * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function. |
| 3729 | * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function. |
| 3730 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3731 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3732 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3733 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3734 | * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function. |
| 3735 | (struct linux_target_ops) <breakpoint>: Remove. |
| 3736 | (struct linux_target_ops) <breakpoint_len>: Remove. |
| 3737 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. |
| 3738 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. |
| 3739 | |
| 3740 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 3741 | |
| 3742 | * linux-cris-low.c (cris_get_pc): Remove void arg. |
| 3743 | |
| 3744 | 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com> |
| 3745 | |
| 3746 | * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix |
| 3747 | variable name. |
| 3748 | |
| 3749 | 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com> |
| 3750 | |
| 3751 | * inferiors.c (thread_pid_matches_callback): New function. |
| 3752 | (find_thread_process): New function. |
| 3753 | (remove_thread): Reset current_thread. |
| 3754 | (remove_process): Assert threads have been removed first. |
| 3755 | |
| 3756 | 2015-10-15 Yao Qi <yao.qi@linaro.org> |
| 3757 | |
| 3758 | * linux-aarch64-low.c (aarch64_insert_point): Set len to 2 |
| 3759 | if it is 3. |
| 3760 | (aarch64_remove_point): Likewise. |
| 3761 | * regcache.c (regcache_register_size): New function. |
| 3762 | |
| 3763 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
| 3764 | |
| 3765 | * linux-aarch64-low.c: Update all callers as emit_load_store |
| 3766 | is renamed to aarch64_emit_load_store. |
| 3767 | |
| 3768 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
| 3769 | |
| 3770 | * linux-aarch64-low.c: Update all callers of function renaming |
| 3771 | from emit_insn to aarch64_emit_insn. |
| 3772 | |
| 3773 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
| 3774 | |
| 3775 | * linux-aarch64-low.c (enum aarch64_opcodes): Move to |
| 3776 | arch/aarch64-insn.h. |
| 3777 | (struct aarch64_memory_operand): Likewise. |
| 3778 | (ENCODE): Likewise. |
| 3779 | (emit_insn): Move to arch/aarch64-insn.c. |
| 3780 | (emit_b, emit_bcond, emit_cb, emit_tb): Remove. |
| 3781 | (emit_load_store): Move to arch/aarch64-insn.c. |
| 3782 | (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove. |
| 3783 | (can_encode_int32): Remove. |
| 3784 | |
| 3785 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
| 3786 | |
| 3787 | * linux-aarch64-low.c (extract_signed_bitfield): Remove. |
| 3788 | (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c. |
| 3789 | (aarch64_relocate_instruction): Likewise. |
| 3790 | (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h. |
| 3791 | (struct aarch64_insn_visitor): Likewise. |
| 3792 | |
| 3793 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
| 3794 | |
| 3795 | * linux-aarch64-low.c (struct aarch64_insn_data): New. |
| 3796 | (struct aarch64_insn_visitor): New. |
| 3797 | (struct aarch64_insn_relocation_data): New. |
| 3798 | (aarch64_ftrace_insn_reloc_b): New function. |
| 3799 | (aarch64_ftrace_insn_reloc_b_cond): Likewise. |
| 3800 | (aarch64_ftrace_insn_reloc_cb): Likewise. |
| 3801 | (aarch64_ftrace_insn_reloc_tb): Likewise. |
| 3802 | (aarch64_ftrace_insn_reloc_adr): Likewise. |
| 3803 | (aarch64_ftrace_insn_reloc_ldr_literal): Likewise. |
| 3804 | (aarch64_ftrace_insn_reloc_others): Likewise. |
| 3805 | (visitor): New. |
| 3806 | (aarch64_relocate_instruction): Use visitor. |
| 3807 | |
| 3808 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
| 3809 | |
| 3810 | * linux-aarch64-low.c (aarch64_relocate_instruction): Return |
| 3811 | int. Add argument buf. |
| 3812 | (aarch64_install_fast_tracepoint_jump_pad): Pass buf to |
| 3813 | aarch64_relocate_instruction. |
| 3814 | |
| 3815 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
| 3816 | |
| 3817 | * linux-aarch64-low.c (aarch64_relocate_instruction): Add |
| 3818 | argument insn. Remove local variable insn. Don't call |
| 3819 | target_read_uint32. |
| 3820 | (aarch64_install_fast_tracepoint_jump_pad): Call |
| 3821 | target_read_uint32. |
| 3822 | |
| 3823 | 2015-09-30 Yao Qi <yao.qi@linaro.org> |
| 3824 | |
| 3825 | * linux-aarch64-low.c (emit_movk): Shorten a long line. |
| 3826 | (emit_load_store_pair): Likewise. |
| 3827 | |
| 3828 | 2015-09-25 Simon Marchi <simon.marchi@ericsson.com> |
| 3829 | |
| 3830 | * dll.c (match_dll): Add cast(s). |
| 3831 | (unloaded_dll): Likewise. |
| 3832 | * linux-low.c (second_thread_of_pid_p): Likewise. |
| 3833 | (delete_lwp_callback): Likewise. |
| 3834 | (count_events_callback): Likewise. |
| 3835 | (select_event_lwp_callback): Likewise. |
| 3836 | (linux_set_resume_request): Likewise. |
| 3837 | * server.c (accumulate_file_name_length): Likewise. |
| 3838 | (emit_dll_description): Likewise. |
| 3839 | (handle_qxfer_threads_worker): Likewise. |
| 3840 | (visit_actioned_threads): Likewise. |
| 3841 | * thread-db.c (any_thread_of): Likewise. |
| 3842 | * tracepoint.c (same_process_p): Likewise. |
| 3843 | (match_blocktype): Likewise. |
| 3844 | (build_traceframe_info_xml): Likewise. |
| 3845 | |
| 3846 | 2015-09-25 Simon Marchi <simon.marchi@ericsson.com> |
| 3847 | |
| 3848 | * ax.c (gdb_parse_agent_expr): Add cast to allocation result |
| 3849 | assignment. |
| 3850 | (gdb_unparse_agent_expr): Likewise. |
| 3851 | * hostio.c (require_data): Likewise. |
| 3852 | (handle_pread): Likewise. |
| 3853 | * linux-low.c (disable_regset): Likewise. |
| 3854 | (fetch_register): Likewise. |
| 3855 | (store_register): Likewise. |
| 3856 | (get_dynamic): Likewise. |
| 3857 | (linux_qxfer_libraries_svr4): Likewise. |
| 3858 | * mem-break.c (delete_fast_tracepoint_jump): Likewise. |
| 3859 | (set_fast_tracepoint_jump): Likewise. |
| 3860 | (uninsert_fast_tracepoint_jumps_at): Likewise. |
| 3861 | (reinsert_fast_tracepoint_jumps_at): Likewise. |
| 3862 | (validate_inserted_breakpoint): Likewise. |
| 3863 | (clone_agent_expr): Likewise. |
| 3864 | * regcache.c (init_register_cache): Likewise. |
| 3865 | * remote-utils.c (putpkt_binary_1): Likewise. |
| 3866 | (decode_M_packet): Likewise. |
| 3867 | (decode_X_packet): Likewise. |
| 3868 | (look_up_one_symbol): Likewise. |
| 3869 | (relocate_instruction): Likewise. |
| 3870 | (monitor_output): Likewise. |
| 3871 | * server.c (handle_search_memory): Likewise. |
| 3872 | (handle_qxfer_exec_file): Likewise. |
| 3873 | (handle_qxfer_libraries): Likewise. |
| 3874 | (handle_qxfer): Likewise. |
| 3875 | (handle_query): Likewise. |
| 3876 | (handle_v_cont): Likewise. |
| 3877 | (handle_v_run): Likewise. |
| 3878 | (captured_main): Likewise. |
| 3879 | * target.c (write_inferior_memory): Likewise. |
| 3880 | * thread-db.c (try_thread_db_load_from_dir): Likewise. |
| 3881 | * tracepoint.c (init_trace_buffer): Likewise. |
| 3882 | (add_tracepoint_action): Likewise. |
| 3883 | (add_traceframe): Likewise. |
| 3884 | (add_traceframe_block): Likewise. |
| 3885 | (cmd_qtdpsrc): Likewise. |
| 3886 | (cmd_qtdv): Likewise. |
| 3887 | (cmd_qtstatus): Likewise. |
| 3888 | (response_source): Likewise. |
| 3889 | (response_tsv): Likewise. |
| 3890 | (cmd_qtnotes): Likewise. |
| 3891 | (gdb_collect): Likewise. |
| 3892 | (initialize_tracepoint): Likewise. |
| 3893 | |
| 3894 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
| 3895 | |
| 3896 | * linux-aarch64-low-.c: Include ax.h and tracepoint.h. |
| 3897 | (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>, |
| 3898 | <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>, |
| 3899 | <NOP>: New. |
| 3900 | (enum aarch64_condition_codes): New enum. |
| 3901 | (w0): New static global. |
| 3902 | (fp): Likewise. |
| 3903 | (lr): Likewise. |
| 3904 | (struct aarch64_memory_operand) <type>: New |
| 3905 | MEMORY_OPERAND_POSTINDEX type. |
| 3906 | (postindex_memory_operand): New helper function. |
| 3907 | (emit_ret): New function. |
| 3908 | (emit_load_store_pair): New function, factored out of emit_stp |
| 3909 | with support for MEMORY_OPERAND_POSTINDEX. |
| 3910 | (emit_stp): Rewrite using emit_load_store_pair. |
| 3911 | (emit_ldp): New function. |
| 3912 | (emit_load_store): Likewise. |
| 3913 | (emit_ldr): Mention post-index instruction in comment. |
| 3914 | (emit_ldrh): New function. |
| 3915 | (emit_ldrb): New function. |
| 3916 | (emit_ldrsw): Mention post-index instruction in comment. |
| 3917 | (emit_str): Likewise. |
| 3918 | (emit_subs): New function. |
| 3919 | (emit_cmp): Likewise. |
| 3920 | (emit_and): Likewise. |
| 3921 | (emit_orr): Likewise. |
| 3922 | (emit_orn): Likewise. |
| 3923 | (emit_eor): Likewise. |
| 3924 | (emit_mvn): Likewise. |
| 3925 | (emit_lslv): Likewise. |
| 3926 | (emit_lsrv): Likewise. |
| 3927 | (emit_asrv): Likewise. |
| 3928 | (emit_mul): Likewise. |
| 3929 | (emit_sbfm): Likewise. |
| 3930 | (emit_sbfx): Likewise. |
| 3931 | (emit_ubfm): Likewise. |
| 3932 | (emit_ubfx): Likewise. |
| 3933 | (emit_csinc): Likewise. |
| 3934 | (emit_cset): Likewise. |
| 3935 | (emit_nop): Likewise. |
| 3936 | (emit_ops_insns): New helper function. |
| 3937 | (emit_pop): Likewise. |
| 3938 | (emit_push): Likewise. |
| 3939 | (aarch64_emit_prologue): New function. |
| 3940 | (aarch64_emit_epilogue): Likewise. |
| 3941 | (aarch64_emit_add): Likewise. |
| 3942 | (aarch64_emit_sub): Likewise. |
| 3943 | (aarch64_emit_mul): Likewise. |
| 3944 | (aarch64_emit_lsh): Likewise. |
| 3945 | (aarch64_emit_rsh_signed): Likewise. |
| 3946 | (aarch64_emit_rsh_unsigned): Likewise. |
| 3947 | (aarch64_emit_ext): Likewise. |
| 3948 | (aarch64_emit_log_not): Likewise. |
| 3949 | (aarch64_emit_bit_and): Likewise. |
| 3950 | (aarch64_emit_bit_or): Likewise. |
| 3951 | (aarch64_emit_bit_xor): Likewise. |
| 3952 | (aarch64_emit_bit_not): Likewise. |
| 3953 | (aarch64_emit_equal): Likewise. |
| 3954 | (aarch64_emit_less_signed): Likewise. |
| 3955 | (aarch64_emit_less_unsigned): Likewise. |
| 3956 | (aarch64_emit_ref): Likewise. |
| 3957 | (aarch64_emit_if_goto): Likewise. |
| 3958 | (aarch64_emit_goto): Likewise. |
| 3959 | (aarch64_write_goto_address): Likewise. |
| 3960 | (aarch64_emit_const): Likewise. |
| 3961 | (aarch64_emit_call): Likewise. |
| 3962 | (aarch64_emit_reg): Likewise. |
| 3963 | (aarch64_emit_pop): Likewise. |
| 3964 | (aarch64_emit_stack_flush): Likewise. |
| 3965 | (aarch64_emit_zero_ext): Likewise. |
| 3966 | (aarch64_emit_swap): Likewise. |
| 3967 | (aarch64_emit_stack_adjust): Likewise. |
| 3968 | (aarch64_emit_int_call_1): Likewise. |
| 3969 | (aarch64_emit_void_call_2): Likewise. |
| 3970 | (aarch64_emit_eq_goto): Likewise. |
| 3971 | (aarch64_emit_ne_goto): Likewise. |
| 3972 | (aarch64_emit_lt_goto): Likewise. |
| 3973 | (aarch64_emit_le_goto): Likewise. |
| 3974 | (aarch64_emit_gt_goto): Likewise. |
| 3975 | (aarch64_emit_ge_got): Likewise. |
| 3976 | (aarch64_emit_ops_impl): New static global variable. |
| 3977 | (aarch64_emit_ops): New target function, return |
| 3978 | &aarch64_emit_ops_impl. |
| 3979 | (struct linux_target_ops): Install it. |
| 3980 | |
| 3981 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
| 3982 | |
| 3983 | * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules. |
| 3984 | * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and |
| 3985 | aarch64-ipa.o. |
| 3986 | * linux-aarch64-ipa.c: New file. |
| 3987 | * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h |
| 3988 | and endian.h. |
| 3989 | (aarch64_get_thread_area): New target method. |
| 3990 | (extract_signed_bitfield): New helper function. |
| 3991 | (aarch64_decode_ldr_literal): New function. |
| 3992 | (enum aarch64_opcodes): New enum. |
| 3993 | (struct aarch64_register): New struct. |
| 3994 | (struct aarch64_operand): New struct. |
| 3995 | (x0): New static global. |
| 3996 | (x1): Likewise. |
| 3997 | (x2): Likewise. |
| 3998 | (x3): Likewise. |
| 3999 | (x4): Likewise. |
| 4000 | (w2): Likewise. |
| 4001 | (ip0): Likewise. |
| 4002 | (sp): Likewise. |
| 4003 | (xzr): Likewise. |
| 4004 | (aarch64_register): New helper function. |
| 4005 | (register_operand): Likewise. |
| 4006 | (immediate_operand): Likewise. |
| 4007 | (struct aarch64_memory_operand): New struct. |
| 4008 | (offset_memory_operand): New helper function. |
| 4009 | (preindex_memory_operand): Likewise. |
| 4010 | (enum aarch64_system_control_registers): New enum. |
| 4011 | (ENCODE): New macro. |
| 4012 | (emit_insn): New helper function. |
| 4013 | (emit_b): New function. |
| 4014 | (emit_bcond): Likewise. |
| 4015 | (emit_cb): Likewise. |
| 4016 | (emit_tb): Likewise. |
| 4017 | (emit_blr): Likewise. |
| 4018 | (emit_stp): Likewise. |
| 4019 | (emit_ldp_q_offset): Likewise. |
| 4020 | (emit_stp_q_offset): Likewise. |
| 4021 | (emit_load_store): Likewise. |
| 4022 | (emit_ldr): Likewise. |
| 4023 | (emit_ldrsw): Likewise. |
| 4024 | (emit_str): Likewise. |
| 4025 | (emit_ldaxr): Likewise. |
| 4026 | (emit_stxr): Likewise. |
| 4027 | (emit_stlr): Likewise. |
| 4028 | (emit_data_processing_reg): Likewise. |
| 4029 | (emit_data_processing): Likewise. |
| 4030 | (emit_add): Likewise. |
| 4031 | (emit_sub): Likewise. |
| 4032 | (emit_mov): Likewise. |
| 4033 | (emit_movk): Likewise. |
| 4034 | (emit_mov_addr): Likewise. |
| 4035 | (emit_mrs): Likewise. |
| 4036 | (emit_msr): Likewise. |
| 4037 | (emit_sevl): Likewise. |
| 4038 | (emit_wfe): Likewise. |
| 4039 | (append_insns): Likewise. |
| 4040 | (can_encode_int32_in): New helper function. |
| 4041 | (aarch64_relocate_instruction): New function. |
| 4042 | (aarch64_install_fast_tracepoint_jump_pad): Likewise. |
| 4043 | (aarch64_get_min_fast_tracepoint_insn_len): Likewise. |
| 4044 | (struct linux_target_ops): Install aarch64_get_thread_area, |
| 4045 | aarch64_install_fast_tracepoint_jump_pad and |
| 4046 | aarch64_get_min_fast_tracepoint_insn_len. |
| 4047 | |
| 4048 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
| 4049 | |
| 4050 | * Makefile.in (aarch64-insn.o): New rule. |
| 4051 | * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o. |
| 4052 | |
| 4053 | 2015-09-21 Yao Qi <yao.qi@linaro.org> |
| 4054 | |
| 4055 | * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it. |
| 4056 | |
| 4057 | 2015-09-21 Yao Qi <yao.qi@linaro.org> |
| 4058 | |
| 4059 | * tracepoint.c (max_jump_pad_size): Remove. |
| 4060 | |
| 4061 | 2015-09-18 Yao Qi <yao.qi@linaro.org> |
| 4062 | |
| 4063 | * linux-aarch64-low.c: Don't include sys/uio.h. |
| 4064 | (ps_get_thread_area): Call aarch64_ps_get_thread_area. |
| 4065 | |
| 4066 | 2015-09-16 Wei-cheng Wang <cole945@gmail.com> |
| 4067 | |
| 4068 | * tracepoint.c (eval_result_type): Change prototype. |
| 4069 | (condition_true_at_tracepoint): Fix argument to compiled_cond. |
| 4070 | |
| 4071 | 2015-09-15 Pedro Alves <palves@redhat.com> |
| 4072 | |
| 4073 | * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>: |
| 4074 | Check whether to report exec events instead of checking whether |
| 4075 | multiprocess is enabled. |
| 4076 | |
| 4077 | 2015-09-15 Pedro Alves <palves@redhat.com> |
| 4078 | |
| 4079 | PR remote/18965 |
| 4080 | * remote-utils.c (prepare_resume_reply): Merge |
| 4081 | TARGET_WAITKIND_VFORK_DONE switch case with the |
| 4082 | TARGET_WAITKIND_FORKED case. |
| 4083 | |
| 4084 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
| 4085 | |
| 4086 | * server.c (handle_query): Check string comparison using |
| 4087 | "else if" instead of "if". |
| 4088 | |
| 4089 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
| 4090 | |
| 4091 | * server.c (vCont_supported): New global variable. |
| 4092 | (handle_query): Set vCont_supported to 1 if "vContSupported+" |
| 4093 | matches. Append ";vContSupported+" to own_buf. |
| 4094 | (handle_v_requests): Append ";s;S" to own_buf if target supports |
| 4095 | hardware single step or vCont_supported is false. |
| 4096 | (capture_main): Set vCont_supported to zero. |
| 4097 | |
| 4098 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
| 4099 | |
| 4100 | * linux-low.c (linux_supports_conditional_breakpoints): Rename |
| 4101 | it to ... |
| 4102 | (linux_supports_hardware_single_step): ... New function. |
| 4103 | (linux_target_ops): Update. |
| 4104 | * lynx-low.c (lynx_target_ops): Set field |
| 4105 | supports_hardware_single_step to target_can_do_hardware_single_step. |
| 4106 | * nto-low.c (nto_target_ops): Likewise. |
| 4107 | * spu-low.c (spu_target_ops): Likewise. |
| 4108 | * win32-low.c (win32_target_ops): Likewise. |
| 4109 | * target.c (target_can_do_hardware_single_step): New function. |
| 4110 | * target.h (struct target_ops) <supports_conditional_breakpoints>: |
| 4111 | Remove. <supports_hardware_single_step>: New field. |
| 4112 | (target_supports_conditional_breakpoints): Remove. |
| 4113 | (target_supports_hardware_single_step): New macro. |
| 4114 | (target_can_do_hardware_single_step): Declare. |
| 4115 | * server.c (handle_query): Use target_supports_hardware_single_step |
| 4116 | instead of target_supports_conditional_breakpoints. |
| 4117 | |
| 4118 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
| 4119 | |
| 4120 | * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New |
| 4121 | function. |
| 4122 | (struct linux_target_ops the_low_target): Install |
| 4123 | aarch64_linux_siginfo_fixup. |
| 4124 | |
| 4125 | 2015-09-11 Don Breazeal <donb@codesourcery.com> |
| 4126 | Luis Machado <lgustavo@codesourcery.com> |
| 4127 | |
| 4128 | * linux-low.c (linux_mourn): Static declaration. |
| 4129 | (linux_arch_setup): Move in front of |
| 4130 | handle_extended_wait. |
| 4131 | (linux_arch_setup_thread): New function. |
| 4132 | (handle_extended_wait): Handle exec events. Call |
| 4133 | linux_arch_setup_thread. Make event_lwp argument a |
| 4134 | pointer-to-a-pointer. |
| 4135 | (check_zombie_leaders): Do not check stopped threads. |
| 4136 | (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC. |
| 4137 | (linux_low_filter_event): Add lwp and thread for exec'ing |
| 4138 | non-leader thread if leader thread has been deleted. |
| 4139 | Refactor code into linux_arch_setup_thread and call it. |
| 4140 | Pass child lwp pointer by reference to handle_extended_wait. |
| 4141 | (linux_wait_for_event_filtered): Update comment. |
| 4142 | (linux_wait_1): Prevent clobbering exec event status. |
| 4143 | (linux_supports_exec_events): New function. |
| 4144 | (linux_target_ops) <supports_exec_events>: Initialize new member. |
| 4145 | * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize |
| 4146 | new member. |
| 4147 | * remote-utils.c (prepare_resume_reply): New stop reason 'exec'. |
| 4148 | * server.c (report_exec_events): New global variable. |
| 4149 | (handle_query): Handle qSupported query for exec-events feature. |
| 4150 | (captured_main): Initialize report_exec_events. |
| 4151 | * server.h (report_exec_events): Declare new global variable. |
| 4152 | * target.h (struct target_ops) <supports_exec_events>: New |
| 4153 | member. |
| 4154 | (target_supports_exec_events): New macro. |
| 4155 | * win32-low.c (win32_target_ops) <supports_exec_events>: |
| 4156 | Initialize new member. |
| 4157 | |
| 4158 | 2015-09-09 Markus Metzger <markus.t.metzger@intel.com> |
| 4159 | |
| 4160 | * linux-low.c (linux_low_enable_btrace): Remove. |
| 4161 | (linux_target_ops): Replace linux_low_enable_btrace with |
| 4162 | linux_enable_btrace. |
| 4163 | |
| 4164 | 2015-09-03 Yao Qi <yao.qi@linaro.org> |
| 4165 | |
| 4166 | * linux-aarch64-low.c (aarch64_insert_point): Call |
| 4167 | aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint |
| 4168 | returns true. |
| 4169 | |
| 4170 | 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
| 4171 | |
| 4172 | * linux-low.c (check_stopped_by_breakpoint): Use |
| 4173 | GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT. |
| 4174 | |
| 4175 | 2015-08-27 Pedro Alves <palves@redhat.com> |
| 4176 | |
| 4177 | * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily. |
| 4178 | |
| 4179 | 2015-08-26 Simon Marchi <simon.marchi@ericsson.com> |
| 4180 | |
| 4181 | * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with |
| 4182 | the XNEW-family equivalent. |
| 4183 | (compile_bytecodes): Likewise. |
| 4184 | * dll.c (loaded_dll): Likewise. |
| 4185 | * event-loop.c (append_callback_event): Likewise. |
| 4186 | (create_file_handler): Likewise. |
| 4187 | (create_file_event): Likewise. |
| 4188 | * hostio.c (handle_open): Likewise. |
| 4189 | * inferiors.c (add_thread): Likewise. |
| 4190 | (add_process): Likewise. |
| 4191 | * linux-aarch64-low.c (aarch64_linux_new_process): Likewise. |
| 4192 | * linux-arm-low.c (arm_new_process): Likewise. |
| 4193 | (arm_new_thread): Likewise. |
| 4194 | * linux-low.c (add_to_pid_list): Likewise. |
| 4195 | (linux_add_process): Likewise. |
| 4196 | (handle_extended_wait): Likewise. |
| 4197 | (add_lwp): Likewise. |
| 4198 | (enqueue_one_deferred_signal): Likewise. |
| 4199 | (enqueue_pending_signal): Likewise. |
| 4200 | (linux_resume_one_lwp_throw): Likewise. |
| 4201 | (linux_resume_one_thread): Likewise. |
| 4202 | (linux_read_memory): Likewise. |
| 4203 | (linux_write_memory): Likewise. |
| 4204 | * linux-mips-low.c (mips_linux_new_process): Likewise. |
| 4205 | (mips_linux_new_thread): Likewise. |
| 4206 | (mips_add_watchpoint): Likewise. |
| 4207 | * linux-x86-low.c (initialize_low_arch): Likewise. |
| 4208 | * lynx-low.c (lynx_add_process): Likewise. |
| 4209 | * mem-break.c (set_raw_breakpoint_at): Likewise. |
| 4210 | (set_breakpoint): Likewise. |
| 4211 | (add_condition_to_breakpoint): Likewise. |
| 4212 | (add_commands_to_breakpoint): Likewise. |
| 4213 | (clone_agent_expr): Likewise. |
| 4214 | (clone_one_breakpoint): Likewise. |
| 4215 | * regcache.c (new_register_cache): Likewise. |
| 4216 | * remote-utils.c (look_up_one_symbol): Likewise. |
| 4217 | * server.c (queue_stop_reply): Likewise. |
| 4218 | (start_inferior): Likewise. |
| 4219 | (queue_stop_reply_callback): Likewise. |
| 4220 | (handle_target_event): Likewise. |
| 4221 | * spu-low.c (fetch_ppc_memory): Likewise. |
| 4222 | (store_ppc_memory): Likewise. |
| 4223 | * target.c (set_target_ops): Likewise. |
| 4224 | * thread-db.c (thread_db_load_search): Likewise. |
| 4225 | (try_thread_db_load_1): Likewise. |
| 4226 | * tracepoint.c (add_tracepoint): Likewise. |
| 4227 | (add_tracepoint_action): Likewise. |
| 4228 | (create_trace_state_variable): Likewise. |
| 4229 | (cmd_qtdpsrc): Likewise. |
| 4230 | (cmd_qtro): Likewise. |
| 4231 | (add_while_stepping_state): Likewise. |
| 4232 | * win32-low.c (child_add_thread): Likewise. |
| 4233 | (get_image_name): Likewise. |
| 4234 | |
| 4235 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4236 | |
| 4237 | * linux-aarch64-low.c (aarch64_linux_new_thread): Remove. |
| 4238 | |
| 4239 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4240 | |
| 4241 | * Makefile.in (aarch64-linux.o): New rule. |
| 4242 | * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to |
| 4243 | srv_tgtobj. |
| 4244 | * linux-aarch64-low.c: Include nat/aarch64-linux.h. |
| 4245 | (aarch64_init_debug_reg_state): Make it extern. |
| 4246 | (aarch64_linux_prepare_to_resume): Remove. |
| 4247 | |
| 4248 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4249 | |
| 4250 | * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use |
| 4251 | lwp_arch_private_info and ptid_of_lwp. |
| 4252 | |
| 4253 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4254 | |
| 4255 | * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid. |
| 4256 | Find proc_info by find_process_pid. All callers updated. |
| 4257 | |
| 4258 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4259 | |
| 4260 | * linux-aarch64-low.c (struct arch64_dr_update_callback_param): |
| 4261 | Remove. |
| 4262 | (debug_reg_change_callback): Remove. |
| 4263 | (aarch64_notify_debug_reg_change): Remove. |
| 4264 | |
| 4265 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4266 | |
| 4267 | * linux-aarch64-low.c (aarch64_notify_debug_reg_change): |
| 4268 | Call current_lwp_ptid. |
| 4269 | |
| 4270 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4271 | |
| 4272 | * linux-aarch64-low.c (debug_reg_change_callback): Use |
| 4273 | debug_printf. |
| 4274 | |
| 4275 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4276 | |
| 4277 | * linux-aarch64-low.c (debug_reg_change_callback): Use phex. |
| 4278 | |
| 4279 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4280 | |
| 4281 | * linux-aarch64-low.c (debug_reg_change_callback): Remove comments. |
| 4282 | |
| 4283 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4284 | |
| 4285 | * linux-aarch64-low.c (debug_reg_change_callback): Re-indent |
| 4286 | the code. |
| 4287 | |
| 4288 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
| 4289 | |
| 4290 | * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>: |
| 4291 | Remove. |
| 4292 | (debug_reg_change_callback): Remove argument entry and add argument |
| 4293 | lwp. Remove local variable thread. Don't print thread id in the |
| 4294 | debugging output. Don't check whether pid of thread equals to pid. |
| 4295 | (aarch64_notify_debug_reg_change): Don't set param.pid. Call |
| 4296 | iterate_over_lwps instead find_inferior. |
| 4297 | |
| 4298 | 2015-08-24 Pedro Alves <palves@redhat.com> |
| 4299 | |
| 4300 | * inferiors.c (get_first_process): New function. |
| 4301 | * inferiors.h (get_first_process): New declaration. |
| 4302 | * remote-utils.c (read_ptid): Default to the first process in the |
| 4303 | list, instead of to the current thread's process. |
| 4304 | |
| 4305 | 2015-08-24 Pedro Alves <palves@redhat.com> |
| 4306 | |
| 4307 | * debug.c: Include gdb_sys_time.h instead of sys/time.h. |
| 4308 | * event-loop.c: Likewise. |
| 4309 | * remote-utils.c: Likewise. |
| 4310 | * tracepoint.c: Likewise. |
| 4311 | |
| 4312 | 2015-08-24 Pedro Alves <palves@redhat.com> |
| 4313 | |
| 4314 | * spu-low.c (spu_request_interrupt): Use lwpid_of instead of |
| 4315 | ptid_get_lwp. |
| 4316 | |
| 4317 | 2015-08-21 Pedro Alves <palves@redhat.com> |
| 4318 | |
| 4319 | * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode |
| 4320 | instead of literal 1. |
| 4321 | |
| 4322 | 2015-08-21 Pedro Alves <palves@redhat.com> |
| 4323 | |
| 4324 | * tdesc.c (default_description): Explicitly zero-initialize. |
| 4325 | |
| 4326 | 2015-08-21 Pedro Alves <palves@redhat.com> |
| 4327 | |
| 4328 | PR gdb/18749 |
| 4329 | * inferiors.c (remove_thread): Discard any pending stop reply for |
| 4330 | this thread. |
| 4331 | * server.c (remove_all_on_match_pid): Rename to ... |
| 4332 | (remove_all_on_match_ptid): ... this. Work with a filter ptid |
| 4333 | instead of a pid. |
| 4334 | (discard_queued_stop_replies): Change parameter to a ptid. Now |
| 4335 | extern. |
| 4336 | (handle_v_kill, kill_inferior_callback, captured_main) |
| 4337 | (process_serial_event): Adjust. |
| 4338 | * server.h (discard_queued_stop_replies): Declare. |
| 4339 | |
| 4340 | 2015-08-21 Pedro Alves <palves@redhat.com> |
| 4341 | |
| 4342 | * linux-low.c (wait_for_sigstop): Always switch to no thread |
| 4343 | selected if the previously current thread dies. |
| 4344 | * lynx-low.c (lynx_request_interrupt): Use the first thread's |
| 4345 | process instead of the current thread's. |
| 4346 | * remote-utils.c (input_interrupt): Don't check if there's no |
| 4347 | current thread. |
| 4348 | * server.c (gdb_read_memory, gdb_write_memory): If setting the |
| 4349 | current thread to the general thread fails, error out. |
| 4350 | (handle_qxfer_auxv, handle_qxfer_libraries) |
| 4351 | (handle_qxfer_libraries_svr4, handle_qxfer_siginfo) |
| 4352 | (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic) |
| 4353 | (handle_query): Check if there's a thread selected instead of |
| 4354 | checking whether there's any thread in the thread list. |
| 4355 | (handle_qxfer_threads, handle_qxfer_btrace) |
| 4356 | (handle_qxfer_btrace_conf): Don't error out early if there's no |
| 4357 | thread in the thread list. |
| 4358 | (handle_v_cont, myresume): Don't set the current thread to the |
| 4359 | continue thread. |
| 4360 | (process_serial_event) <Hg handling>: Also set thread_id if the |
| 4361 | previous general thread is still alive. |
| 4362 | (process_serial_event) <g/G handling>: If setting the current |
| 4363 | thread to the general thread fails, error out. |
| 4364 | * spu-low.c (spu_resume, spu_request_interrupt): Use the first |
| 4365 | thread's lwp instead of the current thread's. |
| 4366 | * target.c (set_desired_thread): If the desired thread was not |
| 4367 | found, leave the current thread pointing to NULL. Return an int |
| 4368 | (boolean) indicating success. |
| 4369 | * target.h (set_desired_thread): Change return type to int. |
| 4370 | |
| 4371 | 2015-08-20 Max Filippov <jcmvbkbc@gmail.com> |
| 4372 | |
| 4373 | * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes. |
| 4374 | * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New |
| 4375 | #includes. |
| 4376 | (ps_get_thread_area): New function. |
| 4377 | |
| 4378 | 2015-08-19 Gary Benson <gbenson@redhat.com> |
| 4379 | |
| 4380 | * hostio.c (handle_pread): Do not attempt to read more data |
| 4381 | than hostio_reply_with_data can fit in a packet. |
| 4382 | |
| 4383 | 2015-08-18 Joel Brobecker <brobecker@adacore.com> |
| 4384 | |
| 4385 | * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined. |
| 4386 | |
| 4387 | 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com> |
| 4388 | |
| 4389 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL. |
| 4390 | |
| 4391 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4392 | |
| 4393 | * tracepoint.c (expr_eval_result): Now an int. |
| 4394 | |
| 4395 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4396 | |
| 4397 | * gdbthread.h (struct regcache): Forward declare. |
| 4398 | (struct thread_info) <regcache_data>: Now a struct regcache |
| 4399 | pointer. |
| 4400 | * inferiors.c (inferior_regcache_data) |
| 4401 | (set_inferior_regcache_data): Now work with struct regcache |
| 4402 | pointers. |
| 4403 | * inferiors.h (struct regcache): Forward declare. |
| 4404 | (inferior_regcache_data, set_inferior_regcache_data): Now work |
| 4405 | with struct regcache pointers. |
| 4406 | * regcache.c (get_thread_regcache, regcache_invalidate_thread) |
| 4407 | (free_register_cache_thread): Remove struct regcache pointer |
| 4408 | casts. |
| 4409 | |
| 4410 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4411 | |
| 4412 | * server.c (captured_main): On error, print the exception message |
| 4413 | to stderr, and if run_once is set, throw a quit. |
| 4414 | |
| 4415 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4416 | |
| 4417 | * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch |
| 4418 | the current thread. |
| 4419 | |
| 4420 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4421 | |
| 4422 | * linux-low.c (linux_write_memory): Rewrite debug output to avoid |
| 4423 | reading beyond the passed in buffer length. |
| 4424 | |
| 4425 | 2015-08-06 Pierre Langlois <pierre.langlois@arm.com> |
| 4426 | |
| 4427 | * tracepoint.c (symbol_list) <required>: Remove. |
| 4428 | |
| 4429 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4430 | |
| 4431 | * linux-low.c (handle_extended_wait): Set the fork child's suspend |
| 4432 | count if stopping and suspending threads. |
| 4433 | (check_stopped_by_breakpoint): If stopped by trace, set the LWP's |
| 4434 | stop reason to TARGET_STOPPED_BY_SINGLE_STEP. |
| 4435 | (linux_detach): Complete an ongoing step-over. |
| 4436 | (lwp_suspended_inc, lwp_suspended_decr): New functions. Use |
| 4437 | throughout. |
| 4438 | (resume_stopped_resumed_lwps): Don't resume a suspended thread. |
| 4439 | (linux_wait_1): If passing a signal to the inferior after |
| 4440 | finishing a step-over, unsuspend and re-resume all lwps. If we |
| 4441 | see a single-step event but the thread should be continuing, don't |
| 4442 | pass the trap to gdb. |
| 4443 | (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use |
| 4444 | internal_error instead of gdb_assert. |
| 4445 | (enqueue_pending_signal): New function. |
| 4446 | (check_ptrace_stopped_lwp_gone): Add debug output. |
| 4447 | (start_step_over): Use internal_error instead of gdb_assert. |
| 4448 | (complete_ongoing_step_over): New function. |
| 4449 | (linux_resume_one_thread): Don't resume a suspended thread. |
| 4450 | (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset |
| 4451 | it stepping. |
| 4452 | |
| 4453 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4454 | |
| 4455 | * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE. |
| 4456 | (linux_thread_alive): Use lwp_is_marked_dead. |
| 4457 | (extended_event_reported): Delete. |
| 4458 | (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE |
| 4459 | instead of extended_event_reported. |
| 4460 | (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus |
| 4461 | as well. |
| 4462 | (lwp_is_marked_dead): New function. |
| 4463 | (lwp_running): Use lwp_is_marked_dead. |
| 4464 | * linux-low.h: Delete 'dead' field, and update 'waitstatus's |
| 4465 | comment. |
| 4466 | |
| 4467 | 2015-08-06 Pedro Alves <palves@redhat.com> |
| 4468 | |
| 4469 | * linux-low.c (linux_wait_1): Move fork event output out of the |
| 4470 | !report_to_gdb check. Pass event_child->waitstatus to |
| 4471 | target_waitstatus_to_string instead of ourstatus. |
| 4472 | |
| 4473 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
| 4474 | |
| 4475 | * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0 |
| 4476 | if current_thread is 32 bit. |
| 4477 | |
| 4478 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
| 4479 | |
| 4480 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Return |
| 4481 | 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging. |
| 4482 | * server.c (extended_protocol): Remove "static". |
| 4483 | * server.h (extended_protocol): Declare it. |
| 4484 | |
| 4485 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
| 4486 | |
| 4487 | * linux-aarch64-low.c (aarch64_get_pc): Get PC register on |
| 4488 | both aarch64 and aarch32. |
| 4489 | (aarch64_set_pc): Likewise. |
| 4490 | |
| 4491 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
| 4492 | |
| 4493 | * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o |
| 4494 | to srv_regobj and append arm-core.xml arm-vfpv3.xml and |
| 4495 | arm-with-neon.xml to srv_xmlfiles. |
| 4496 | * linux-aarch64-low.c: Include linux-aarch32-low.h. |
| 4497 | (is_64bit_tdesc): New function. |
| 4498 | (aarch64_linux_read_description): New function. |
| 4499 | (aarch64_arch_setup): Call aarch64_linux_read_description. |
| 4500 | (regs_info): Rename to regs_info_aarch64. |
| 4501 | (aarch64_regs_info): Return right regs_info. |
| 4502 | (initialize_low_arch): Call initialize_low_arch_aarch32. |
| 4503 | |
| 4504 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
| 4505 | |
| 4506 | * configure.srv (srv_tgtobj): Add linux-aarch32-low.o. |
| 4507 | * linux-aarch32-low.c: New file. |
| 4508 | * linux-aarch32-low.h: New file. |
| 4509 | * linux-arm-low.c (arm_fill_gregset): Move it to |
| 4510 | linux-aarch32-low.c. |
| 4511 | (arm_store_gregset): Likewise. |
| 4512 | (arm_fill_vfpregset): Call arm_fill_vfpregset_num |
| 4513 | (arm_store_vfpregset): Call arm_store_vfpregset_num. |
| 4514 | (arm_arch_setup): Check if PTRACE_GETREGSET works. |
| 4515 | (regs_info): Rename to regs_info_arm. |
| 4516 | (arm_regs_info): Return regs_info_aarch32 if |
| 4517 | have_ptrace_getregset is 1 and target description is |
| 4518 | arm_with_neon or arm_with_vfpv3. |
| 4519 | (initialize_low_arch): Don't call init_registers_arm_with_neon. |
| 4520 | Call initialize_low_arch_aarch32 instead. |
| 4521 | |
| 4522 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
| 4523 | |
| 4524 | * linux-x86-low.c (have_ptrace_getregset): Move it to ... |
| 4525 | * linux-low.c: ... here. |
| 4526 | * linux-low.h (have_ptrace_getregset): Declare it. |
| 4527 | |
| 4528 | 2015-08-04 Pedro Alves <palves@redhat.com> |
| 4529 | |
| 4530 | * thread-db.c (struct thread_db): Use new typedefs. |
| 4531 | (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in |
| 4532 | CHK calls. |
| 4533 | (disable_thread_event_reporting): Cast result of dlsym to |
| 4534 | destination function pointer type. |
| 4535 | (thread_db_mourn): Use td_ta_delete_ftype. |
| 4536 | |
| 4537 | 2015-08-03 Sandra Loosemore <sandra@codesourcery.com> |
| 4538 | |
| 4539 | * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for |
| 4540 | arch variant. |
| 4541 | (CDX_BREAKPOINT): Define for R2. |
| 4542 | (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2. |
| 4543 | (the_low_target): Add comments. |
| 4544 | |
| 4545 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
| 4546 | |
| 4547 | * linux-arm-low.c (arm_hwcap): Remove it. |
| 4548 | (arm_read_description): New local variable arm_hwcap. Don't |
| 4549 | set arm_hwcap to zero. |
| 4550 | |
| 4551 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
| 4552 | |
| 4553 | * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap. |
| 4554 | Use regcache->tdesc instead. |
| 4555 | (arm_store_wmmxregset): Likewise. |
| 4556 | (arm_fill_vfpregset): Likewise. |
| 4557 | (arm_store_vfpregset): Likewise. |
| 4558 | |
| 4559 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
| 4560 | |
| 4561 | * linux-arm-low.c: Include arch/arm.h. |
| 4562 | (arm_fill_gregset): Don't use arm_num_regs and arm_regmap. |
| 4563 | (arm_store_gregset): Likewise. |
| 4564 | |
| 4565 | 2015-07-29 Simon Marchi <simon.marchi@ericsson.com> |
| 4566 | |
| 4567 | * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as |
| 4568 | ptrace's 4th parameter. |
| 4569 | |
| 4570 | 2015-07-27 Yao Qi <yao.qi@linaro.org> |
| 4571 | |
| 4572 | * configure.srv (case aarch64*-*-linux*): Don't set |
| 4573 | srv_linux_usrregs. |
| 4574 | |
| 4575 | 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om> |
| 4576 | |
| 4577 | * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of |
| 4578 | sys/ptrace.h. |
| 4579 | * linux-arm-low.c: Likewise. |
| 4580 | * linux-cris-low.c: Likewise. |
| 4581 | * linux-crisv32-low.c: Likewise. |
| 4582 | * linux-low.c: Likewise. |
| 4583 | * linux-m68k-low.c: Likewise. |
| 4584 | * linux-mips-low.c: Likewise. |
| 4585 | * linux-nios2-low.c: Likewise. |
| 4586 | * linux-s390-low.c: Likewise. |
| 4587 | * linux-sparc-low.c: Likewise. |
| 4588 | * linux-tic6x-low.c: Likewise. |
| 4589 | * linux-tile-low.c: Likewise. |
| 4590 | * linux-x86-low.c: Likewise. |
| 4591 | |
| 4592 | 2015-07-24 Pedro Alves <palves@redhat.com> |
| 4593 | |
| 4594 | * config.in: Regenerate. |
| 4595 | * configure: Regenerate. |
| 4596 | |
| 4597 | 2015-07-24 Pedro Alves <palves@redhat.com> |
| 4598 | |
| 4599 | * acinclude.m4: Include ../ptrace.m4. |
| 4600 | * configure.ac: Call GDB_AC_PTRACE. |
| 4601 | * config.in, configure: Regenerate. |
| 4602 | |
| 4603 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
| 4604 | |
| 4605 | * linux-low.c (linux_create_inferior): Remove setting to |
| 4606 | proc->priv->new_inferior. |
| 4607 | (linux_attach): Likewise. |
| 4608 | (linux_low_filter_event): Likewise. |
| 4609 | * linux-low.h (struct process_info_private) <new_inferior>: Remove. |
| 4610 | |
| 4611 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
| 4612 | |
| 4613 | * linux-low.c (linux_arch_setup): New function. |
| 4614 | (linux_low_filter_event): If proc->tdesc is NULL and |
| 4615 | proc->attached is true, call the_low_target.arch_setup. |
| 4616 | Otherwise, keep status pending, and return. |
| 4617 | (linux_resume_one_lwp_throw): Don't call get_pc if |
| 4618 | thread->while_stepping isn't NULL. Don't call |
| 4619 | get_thread_regcache if proc->tdesc is NULL. |
| 4620 | (need_step_over_p): Return 0 if proc->tdesc is NULL. |
| 4621 | (linux_target_ops): Install arch_setup. |
| 4622 | * server.c (start_inferior): Call the_target->arch_setup. |
| 4623 | * target.h (struct target_ops) <arch_setup>: New field. |
| 4624 | (target_arch_setup): New marco. |
| 4625 | * lynx-low.c (lynx_target_ops): Update. |
| 4626 | * nto-low.c (nto_target_ops): Update. |
| 4627 | * spu-low.c (spu_target_ops): Update. |
| 4628 | * win32-low.c (win32_target_ops): Update. |
| 4629 | |
| 4630 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
| 4631 | |
| 4632 | * linux-low.c (linux_add_process): Don't set |
| 4633 | proc->priv->new_inferior. |
| 4634 | (linux_create_inferior): Set proc->priv->new_inferior to 1. |
| 4635 | (linux_attach): Likewise. |
| 4636 | |
| 4637 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
| 4638 | |
| 4639 | * server.c (start_inferior): Code refactor. |
| 4640 | |
| 4641 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
| 4642 | |
| 4643 | * server.c (process_serial_event): Set general_thread. |
| 4644 | |
| 4645 | 2015-07-21 Yao Qi <yao.qi@linaro.org> |
| 4646 | |
| 4647 | * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call |
| 4648 | aarch64_linux_get_debug_reg_capacity. |
| 4649 | |
| 4650 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
| 4651 | |
| 4652 | * Makefile.in (aarch64-linux-hw-point.o): New rule. |
| 4653 | * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o. |
| 4654 | * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h. |
| 4655 | (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h. |
| 4656 | (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise. |
| 4657 | (AARCH64_HWP_ALIGNMENT): Likewise. |
| 4658 | (AARCH64_HWP_MAX_LEN_PER_REG): Likewise. |
| 4659 | (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise. |
| 4660 | (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise. |
| 4661 | (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise. |
| 4662 | (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise. |
| 4663 | (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise. |
| 4664 | (struct aarch64_debug_reg_state): Likewise. |
| 4665 | (struct arch_lwp_info): Likewise. |
| 4666 | (aarch64_align_watchpoint): Likewise. |
| 4667 | (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise. |
| 4668 | (aarch64_watchpoint_length): Likewise. |
| 4669 | (aarch64_point_encode_ctrl_reg): Likewise |
| 4670 | (aarch64_point_is_aligned): Likewise. |
| 4671 | (aarch64_align_watchpoint): Likewise. |
| 4672 | (aarch64_linux_set_debug_regs): |
| 4673 | (aarch64_dr_state_insert_one_point): Likewise. |
| 4674 | (aarch64_dr_state_remove_one_point): Likewise. |
| 4675 | (aarch64_handle_breakpoint): Likewise. |
| 4676 | (aarch64_handle_aligned_watchpoint): Likewise. |
| 4677 | (aarch64_handle_unaligned_watchpoint): Likewise. |
| 4678 | (aarch64_handle_watchpoint): Likewise. |
| 4679 | |
| 4680 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
| 4681 | |
| 4682 | * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state |
| 4683 | and don't aarch64_get_debug_reg_state. All callers update. |
| 4684 | (aarch64_handle_aligned_watchpoint): Likewise. |
| 4685 | (aarch64_handle_unaligned_watchpoint): Likewise. |
| 4686 | (aarch64_handle_watchpoint): Likewise. |
| 4687 | (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier. |
| 4688 | (aarch64_remove_point): Likewise. |
| 4689 | |
| 4690 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
| 4691 | |
| 4692 | * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use |
| 4693 | debug_printf. |
| 4694 | (aarch64_handle_unaligned_watchpoint): Likewise. |
| 4695 | |
| 4696 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4697 | |
| 4698 | Revert the previous 3 commits: |
| 4699 | Move gdb_regex* to common/ |
| 4700 | Move linux_find_memory_regions_full & co. |
| 4701 | gdbserver build-id attribute generator |
| 4702 | |
| 4703 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
| 4704 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4705 | |
| 4706 | gdbserver build-id attribute generator. |
| 4707 | * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include. |
| 4708 | (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New. |
| 4709 | (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New. |
| 4710 | (find_phdr): New. |
| 4711 | (get_dynamic): Use find_pdhr to traverse program headers. |
| 4712 | (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec) |
| 4713 | (compare_mapping_entry_range, struct find_memory_region_callback_data) |
| 4714 | (read_build_id, find_memory_region_callback, lrfind_mapping_entry) |
| 4715 | (get_hex_build_id): New. |
| 4716 | (linux_qxfer_libraries_svr4): Add optional build-id attribute |
| 4717 | to reply XML document. |
| 4718 | |
| 4719 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
| 4720 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4721 | |
| 4722 | * target.c: Include target/target-utils.h and fcntl.h. |
| 4723 | (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1) |
| 4724 | (target_fileio_read_stralloc): New functions. |
| 4725 | |
| 4726 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4727 | |
| 4728 | * Makefile.in (OBS): Add gdb_regex.o. |
| 4729 | (gdb_regex.o): New. |
| 4730 | * config.in: Rebuilt. |
| 4731 | * configure: Rebuilt. |
| 4732 | |
| 4733 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
| 4734 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4735 | |
| 4736 | Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. |
| 4737 | * Makefile.in (OBS): Add target-utils.o. |
| 4738 | (linux-maps.o, target-utils.o): New. |
| 4739 | * configure.srv (srv_linux_obj): Add linux-maps.o. |
| 4740 | |
| 4741 | 2015-07-15 Pierre Langlois <pierre.langlois@arm.com> |
| 4742 | |
| 4743 | * linux-aarch64-low.c (aarch64_supports_range_stepping): New |
| 4744 | function, return 1. |
| 4745 | (the_low_target): Install it. |
| 4746 | |
| 4747 | 2015-07-14 Pedro Alves <palves@redhat.com> |
| 4748 | |
| 4749 | * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails. |
| 4750 | Instead, ignore ECHILD, and throw an error for other errnos. |
| 4751 | |
| 4752 | 2015-07-10 Pedro Alves <palves@redhat.com> |
| 4753 | |
| 4754 | * event-loop.c (struct callback_event) <data>: Change type to |
| 4755 | gdb_client_data instance instead of gdb_client_data pointer. |
| 4756 | (append_callback_event): Adjust. |
| 4757 | |
| 4758 | 2015-07-10 Pierre Langlois <pierre.langlois@arm.com> |
| 4759 | |
| 4760 | * linux-aarch64-low.c: Add comments for each linux_target_ops |
| 4761 | method. Remove comments already covered in target_ops and |
| 4762 | linux_target_ops definitions. |
| 4763 | (the_low_target): Add comments for each unimplemented method. |
| 4764 | |
| 4765 | 2015-07-09 Yao Qi <yao.qi@linaro.org> |
| 4766 | |
| 4767 | * linux-aarch64-low.c (aarch64_regmap): Remove. |
| 4768 | (aarch64_usrregs_info): Remove. |
| 4769 | (regs_info): Set field usrregs to NULL. |
| 4770 | |
| 4771 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
| 4772 | |
| 4773 | * linux-low.c: Include "rsp-low.h" |
| 4774 | (linux_low_encode_pt_config, linux_low_encode_raw): New. |
| 4775 | (linux_low_read_btrace): Support BTRACE_FORMAT_PT. |
| 4776 | (linux_low_btrace_conf): Support BTRACE_FORMAT_PT. |
| 4777 | (handle_btrace_enable_pt): New. |
| 4778 | (handle_btrace_general_set): Support "pt". |
| 4779 | (handle_btrace_conf_general_set): Support "pt:size". |
| 4780 | |
| 4781 | 2015-06-29 Pierre Langlois <pierre.langlois@arm.com> |
| 4782 | |
| 4783 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for |
| 4784 | Z_PACKET_SW_BP. |
| 4785 | |
| 4786 | 2015-06-29 Pierre Langlois <pierre.langlois@arm.com> |
| 4787 | |
| 4788 | * linux-aarch64-low.c: Remove comment about endianness. |
| 4789 | (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0". |
| 4790 | (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use |
| 4791 | memcmp. |
| 4792 | |
| 4793 | 2015-06-24 Gary Benson <gbenson@redhat.com> |
| 4794 | |
| 4795 | * linux-i386-ipa.c (stdint.h): Do not include. |
| 4796 | * lynx-i386-low.c (stdint.h): Likewise. |
| 4797 | * lynx-ppc-low.c (stdint.h): Likewise. |
| 4798 | * mem-break.c (stdint.h): Likewise. |
| 4799 | * thread-db.c (stdint.h): Likewise. |
| 4800 | * tracepoint.c (stdint.h): Likewise. |
| 4801 | * win32-low.c (stdint.h): Likewise. |
| 4802 | |
| 4803 | 2015-06-18 Simon Marchi <simon.marchi@ericsson.com> |
| 4804 | |
| 4805 | * server.c (write_qxfer_response): Update call to |
| 4806 | remote_escape_output. |
| 4807 | |
| 4808 | 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com |
| 4809 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4810 | |
| 4811 | Merge multiple hex conversions. |
| 4812 | * gdbreplay.c (tohex): Rename to 'fromhex'. |
| 4813 | (logchar): Use fromhex. |
| 4814 | |
| 4815 | 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 4816 | |
| 4817 | * server.c (handle_qxfer_libraries): Set `version' attribute for |
| 4818 | <library-list>. |
| 4819 | |
| 4820 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
| 4821 | |
| 4822 | * target.h (struct target_ops) <multifs_open>: New field. |
| 4823 | <multifs_unlink>: Likewise. |
| 4824 | <multifs_readlink>: Likewise. |
| 4825 | * linux-low.c (nat/linux-namespaces.h): New include. |
| 4826 | (linux_target_ops): Initialize the_target->multifs_open, |
| 4827 | the_target->multifs_unlink and the_target->multifs_readlink. |
| 4828 | * hostio.h (hostio_handle_new_gdb_connection): New declaration. |
| 4829 | * hostio.c (hostio_fs_pid): New static variable. |
| 4830 | (hostio_handle_new_gdb_connection): New function. |
| 4831 | (handle_setfs): Likewise. |
| 4832 | (handle_open): Use the_target->multifs_open as appropriate. |
| 4833 | (handle_unlink): Use the_target->multifs_unlink as appropriate. |
| 4834 | (handle_readlink): Use the_target->multifs_readlink as |
| 4835 | appropriate. |
| 4836 | (handle_vFile): Handle vFile:setfs packets. |
| 4837 | * server.c (handle_query): Call hostio_handle_new_gdb_connection |
| 4838 | after target_handle_new_gdb_connection. |
| 4839 | |
| 4840 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
| 4841 | |
| 4842 | * configure.ac (AC_CHECK_FUNCS): Add setns. |
| 4843 | * config.in: Regenerate. |
| 4844 | * configure: Likewise. |
| 4845 | * Makefile.in (SFILES): Add nat/linux-namespaces.c. |
| 4846 | (linux-namespaces.o): New rule. |
| 4847 | * configure.srv (srv_linux_obj): Add linux-namespaces.o. |
| 4848 | |
| 4849 | 2015-06-09 Gary Benson <gbenson@redhat.com> |
| 4850 | |
| 4851 | * hostio.c (handle_open): Process mode argument with |
| 4852 | fileio_to_host_mode. |
| 4853 | |
| 4854 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
| 4855 | |
| 4856 | * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove. |
| 4857 | * linux-x86-low.c: Likewise. |
| 4858 | |
| 4859 | 2015-05-28 Don Breazeal <donb@codesourcery.com> |
| 4860 | |
| 4861 | * linux-low.c (handle_extended_wait): Initialize |
| 4862 | thread_info.last_resume_kind for new fork children. |
| 4863 | |
| 4864 | 2015-05-15 Pedro Alves <palves@redhat.com> |
| 4865 | |
| 4866 | * target.h (target_handle_new_gdb_connection): Rewrite using if |
| 4867 | wrapped in do/while. |
| 4868 | |
| 4869 | 2015-05-14 Joel Brobecker <brobecker@adacore.com> |
| 4870 | |
| 4871 | * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check. |
| 4872 | * configure, config.in: Regenerate. |
| 4873 | * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t): |
| 4874 | Declare typedef. |
| 4875 | |
| 4876 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
| 4877 | |
| 4878 | * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and |
| 4879 | PTRACE_EVENT_VFORK_DONE. |
| 4880 | (linux_low_ptrace_options, extended_event_reported): Add vfork |
| 4881 | events. |
| 4882 | * remote-utils.c (prepare_resume_reply): New stop reasons "vfork" |
| 4883 | and "vforkdone" for RSP 'T' Stop Reply Packet. |
| 4884 | * server.h (report_vfork_events): Declare |
| 4885 | global variable. |
| 4886 | |
| 4887 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
| 4888 | |
| 4889 | * linux-aarch64-low.c (aarch64_linux_new_fork): New function. |
| 4890 | (the_low_target) <new_fork>: Initialize new member. |
| 4891 | * linux-arm-low.c (arm_new_fork): New function. |
| 4892 | (the_low_target) <new_fork>: Initialize new member. |
| 4893 | * linux-low.c (handle_extended_wait): Call new target function |
| 4894 | new_fork. |
| 4895 | * linux-low.h (struct linux_target_ops) <new_fork>: New member. |
| 4896 | * linux-mips-low.c (mips_add_watchpoint): New function |
| 4897 | extracted from mips_insert_point. |
| 4898 | (the_low_target) <new_fork>: Initialize new member. |
| 4899 | (mips_linux_new_fork): New function. |
| 4900 | (mips_insert_point): Call mips_add_watchpoint. |
| 4901 | * linux-x86-low.c (x86_linux_new_fork): New function. |
| 4902 | (the_low_target) <new_fork>: Initialize new member. |
| 4903 | |
| 4904 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
| 4905 | |
| 4906 | * linux-low.c (handle_extended_wait): Implement return value, |
| 4907 | rename argument 'event_child' to 'event_lwp', handle |
| 4908 | PTRACE_EVENT_FORK, call internal_error for unrecognized event. |
| 4909 | (linux_low_ptrace_options): New function. |
| 4910 | (linux_low_filter_event): Call linux_low_ptrace_options, |
| 4911 | use different argument fo linux_enable_event_reporting, |
| 4912 | use return value from handle_extended_wait. |
| 4913 | (extended_event_reported): New function. |
| 4914 | (linux_wait_1): Call extended_event_reported and set |
| 4915 | status to report fork events. |
| 4916 | (linux_write_memory): Add pid to debug message. |
| 4917 | (reset_lwp_ptrace_options_callback): New function. |
| 4918 | (linux_handle_new_gdb_connection): New function. |
| 4919 | (linux_target_ops): Initialize new structure member. |
| 4920 | * linux-low.h (struct lwp_info) <waitstatus>: New member. |
| 4921 | * lynx-low.c: Initialize new structure member. |
| 4922 | * remote-utils.c (prepare_resume_reply): Implement stop reason |
| 4923 | "fork" for "T" stop message. |
| 4924 | * server.c (handle_query): Call handle_new_gdb_connection. |
| 4925 | * server.h (report_fork_events): Declare global flag. |
| 4926 | * target.h (struct target_ops) <handle_new_gdb_connection>: |
| 4927 | New member. |
| 4928 | (target_handle_new_gdb_connection): New macro. |
| 4929 | * win32-low.c: Initialize new structure member. |
| 4930 | |
| 4931 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
| 4932 | |
| 4933 | * mem-break.c (APPEND_TO_LIST): Define macro. |
| 4934 | (clone_agent_expr): New function. |
| 4935 | (clone_one_breakpoint): New function. |
| 4936 | (clone_all_breakpoints): New function. |
| 4937 | * mem-break.h: Declare new functions. |
| 4938 | |
| 4939 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
| 4940 | |
| 4941 | * linux-low.c (linux_supports_fork_events): New function. |
| 4942 | (linux_supports_vfork_events): New function. |
| 4943 | (linux_target_ops): Initialize new structure members. |
| 4944 | (initialize_low): Call linux_check_ptrace_features. |
| 4945 | * lynx-low.c (lynx_target_ops): Initialize new structure |
| 4946 | members. |
| 4947 | * server.c (report_fork_events, report_vfork_events): |
| 4948 | New global flags. |
| 4949 | (handle_query): Add new features to qSupported packet and |
| 4950 | response. |
| 4951 | (captured_main): Initialize new global variables. |
| 4952 | * target.h (struct target_ops) <supports_fork_events>: |
| 4953 | New member. |
| 4954 | <supports_vfork_events>: New member. |
| 4955 | (target_supports_fork_events): New macro. |
| 4956 | (target_supports_vfork_events): New macro. |
| 4957 | * win32-low.c (win32_target_ops): Initialize new structure |
| 4958 | members. |
| 4959 | |
| 4960 | 2015-05-12 Gary Benson <gbenson@redhat.com> |
| 4961 | |
| 4962 | * server.c (handle_qxfer_exec_file): Use current process |
| 4963 | if annex is empty. |
| 4964 | |
| 4965 | 2015-05-08 Sandra Loosemore <sandra@codesourcery.com> |
| 4966 | |
| 4967 | * linux-nios2-low.c: Include elf/common.h. Adjust comments. |
| 4968 | Remove HAVE_PTRACE_GETREGS conditionals. |
| 4969 | (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET |
| 4970 | instead of PTRACE_GETREGS and PTRACE_SETREGS. |
| 4971 | |
| 4972 | 2015-05-08 Yao Qi <yao.qi@linaro.org> |
| 4973 | |
| 4974 | * linux-low.c (linux_supports_conditional_breakpoints): New |
| 4975 | function. |
| 4976 | (linux_target_ops): Install new target method. |
| 4977 | * lynx-low.c (lynx_target_ops): Install NULL hook for |
| 4978 | supports_conditional_breakpoints. |
| 4979 | * nto-low.c (nto_target_ops): Likewise. |
| 4980 | * spu-low.c (spu_target_ops): Likewise. |
| 4981 | * win32-low.c (win32_target_ops): Likewise. |
| 4982 | * server.c (handle_query): Check |
| 4983 | target_supports_conditional_breakpoints. |
| 4984 | * target.h (struct target_ops) <supports_conditional_breakpoints>: |
| 4985 | New field. |
| 4986 | (target_supports_conditional_breakpoints): New macro. |
| 4987 | |
| 4988 | 2015-05-06 Pedro Alves <palves@redhat.com> |
| 4989 | |
| 4990 | PR server/18081 |
| 4991 | * server.c (start_inferior): If the process exits, mourn it. |
| 4992 | |
| 4993 | 2015-04-21 Gary Benson <gbenson@redhat.com> |
| 4994 | |
| 4995 | * hostio.c (fileio_open_flags_to_host): Factored out to |
| 4996 | fileio_to_host_openflags in common/fileio.c. Single use |
| 4997 | updated. |
| 4998 | |
| 4999 | 2015-04-17 Max Filippov <jcmvbkbc@gmail.com> |
| 5000 | |
| 5001 | * linux-xtensa-low.c (xtensa_fill_gregset) |
| 5002 | (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of |
| 5003 | XCHAL_HAVE_LOOP. |
| 5004 | |
| 5005 | 2015-04-17 Max Filippov <jcmvbkbc@gmail.com> |
| 5006 | |
| 5007 | * linux-xtensa-low.c (xtensa_usrregs_info): Remove. |
| 5008 | (regs_info): Replace usrregs pointer with NULL. |
| 5009 | |
| 5010 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
| 5011 | |
| 5012 | * target.h (struct target_ops) <pid_to_exec_file>: New field. |
| 5013 | * linux-low.c (linux_target_ops): Initialize pid_to_exec_file. |
| 5014 | * server.c (handle_qxfer_exec_file): New function. |
| 5015 | (qxfer_packets): Add exec-file entry. |
| 5016 | (handle_query): Report qXfer:exec-file:read as supported packet. |
| 5017 | |
| 5018 | 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change) |
| 5019 | |
| 5020 | * linux-low.c (linux_read_offsets): Remove get_thread_lwp. |
| 5021 | |
| 5022 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
| 5023 | |
| 5024 | * hostio-errno.c (errno_to_fileio_error): Remove function. |
| 5025 | Update caller to use remote_fileio_to_fio_error. |
| 5026 | |
| 5027 | 2015-04-09 Yao Qi <yao.qi@linaro.org> |
| 5028 | |
| 5029 | * linux-low.c (linux_insert_point): Call |
| 5030 | insert_memory_breakpoint if TYPE is raw_bkpt_type_sw. |
| 5031 | (linux_remove_point): Call remove_memory_breakpoint if type is |
| 5032 | raw_bkpt_type_sw. |
| 5033 | * linux-x86-low.c (x86_insert_point): Don't call |
| 5034 | insert_memory_breakpoint. |
| 5035 | (x86_remove_point): Don't call remove_memory_breakpoint. |
| 5036 | |
| 5037 | 2015-04-01 Pedro Alves <palves@redhat.com> |
| 5038 | Cleber Rosa <crosa@redhat.com> |
| 5039 | |
| 5040 | * server.c (gdbserver_usage): Reorganize and extend the usage |
| 5041 | message. |
| 5042 | |
| 5043 | 2015-03-24 Pedro Alves <palves@redhat.com> |
| 5044 | |
| 5045 | * linux-low.c (check_stopped_by_breakpoint): Tweak debug log |
| 5046 | output. Also dump TRAP_TRACE. |
| 5047 | (linux_low_filter_event): In debug output, distinguish a |
| 5048 | resume_stop SIGSTOP from a delayed SIGSTOP. |
| 5049 | |
| 5050 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5051 | |
| 5052 | * linux-x86-low.c (x86_linux_new_thread): Moved to |
| 5053 | nat/x86-linux.c. |
| 5054 | (x86_linux_prepare_to_resume): Likewise. |
| 5055 | |
| 5056 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5057 | |
| 5058 | * Makefile.in (x86-linux-dregs.o): New rule. |
| 5059 | * configure.srv: Add x86-linux-dregs.o to relevant targets. |
| 5060 | * linux-x86-low.c: Include nat/x86-linux-dregs.h. |
| 5061 | (u_debugreg_offset): Moved to nat/x86-linux-dregs.c. |
| 5062 | (x86_linux_dr_get): Likewise. |
| 5063 | (x86_linux_dr_set): Likewise. |
| 5064 | (update_debug_registers_callback): Likewise. |
| 5065 | (x86_linux_dr_set_addr): Likewise. |
| 5066 | (x86_linux_dr_get_addr): Likewise. |
| 5067 | (x86_linux_dr_set_control): Likewise. |
| 5068 | (x86_linux_dr_get_control): Likewise. |
| 5069 | (x86_linux_dr_get_status): Likewise. |
| 5070 | (x86_linux_update_debug_registers): Likewise. |
| 5071 | |
| 5072 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5073 | |
| 5074 | * linux-x86-low.c (x86_linux_update_debug_registers): |
| 5075 | New function, factored out from... |
| 5076 | (x86_linux_prepare_to_resume): ...this. |
| 5077 | |
| 5078 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5079 | |
| 5080 | * linux-x86-low.c (x86_linux_dr_get): Update comments. |
| 5081 | (x86_linux_dr_set): Likewise. |
| 5082 | (update_debug_registers_callback): Likewise. |
| 5083 | (x86_linux_dr_set_addr): Likewise. |
| 5084 | (x86_linux_dr_get_addr): Likewise. |
| 5085 | (x86_linux_dr_set_control): Likewise. |
| 5086 | (x86_linux_dr_get_control): Likewise. |
| 5087 | (x86_linux_dr_get_status): Likewise. |
| 5088 | (x86_linux_prepare_to_resume): Likewise. |
| 5089 | |
| 5090 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5091 | |
| 5092 | * linux-x86-low.c (x86_linux_dr_get): Add assertion. |
| 5093 | Use perror_with_name. Pass string through gettext. |
| 5094 | (x86_linux_dr_set): Likewise. |
| 5095 | |
| 5096 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5097 | |
| 5098 | * linux-x86-low.c (x86_dr_low_set_addr): Rename to... |
| 5099 | (x86_linux_dr_set_addr): ...this. |
| 5100 | (x86_dr_low_get_addr): Rename to... |
| 5101 | (x86_linux_dr_get_addr): ...this. |
| 5102 | (x86_dr_low_set_control): Rename to... |
| 5103 | (x86_linux_dr_set_control): ...this. |
| 5104 | (x86_dr_low_get_control): Rename to... |
| 5105 | (x86_linux_dr_get_control): ...this. |
| 5106 | (x86_dr_low_get_status): Rename to... |
| 5107 | (x86_linux_dr_get_status): ...this. |
| 5108 | (x86_dr_low): Update with new function names. |
| 5109 | |
| 5110 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5111 | |
| 5112 | * Makefile.in (x86-linux.o): New rule. |
| 5113 | * configure.srv: Add x86-linux.o to relevant targets. |
| 5114 | * linux-low.c (lwp_set_arch_private_info): New function. |
| 5115 | (lwp_arch_private_info): Likewise. |
| 5116 | * linux-x86-low.c: Include nat/x86-linux.h. |
| 5117 | (arch_lwp_info): Removed structure. |
| 5118 | (update_debug_registers_callback): |
| 5119 | Use lwp_set_debug_registers_changed. |
| 5120 | (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed |
| 5121 | and lwp_set_debug_registers_changed. |
| 5122 | (x86_linux_new_thread): Use lwp_set_debug_registers_changed. |
| 5123 | |
| 5124 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5125 | |
| 5126 | * linux-low.h (linux_target_ops) <new_thread>: Changed signature. |
| 5127 | * linux-arm-low.c (arm_new_thread): Likewise. |
| 5128 | * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise. |
| 5129 | * linux-mips-low.c (mips_linux_new_thread): Likewise. |
| 5130 | * linux-x86-low.c (x86_linux_new_thread): Likewise. |
| 5131 | * linux-low.c (add_lwp): Update the_low_target.new_thread call. |
| 5132 | |
| 5133 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5134 | |
| 5135 | * linux-low.c (ptid_of_lwp): New function. |
| 5136 | (lwp_is_stopped): Likewise. |
| 5137 | (lwp_stop_reason): Likewise. |
| 5138 | * linux-x86-low.c (update_debug_registers_callback): |
| 5139 | Use lwp_is_stopped. |
| 5140 | (x86_linux_prepare_to_resume): Use ptid_of_lwp and |
| 5141 | lwp_stop_reason. |
| 5142 | |
| 5143 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5144 | |
| 5145 | * linux-low.h (linux_stop_lwp): Remove declaration. |
| 5146 | |
| 5147 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5148 | |
| 5149 | * linux-low.h: Include nat/linux-nat.h. |
| 5150 | * linux-low.c (iterate_over_lwps_args): New structure. |
| 5151 | (iterate_over_lwps_filter): New function. |
| 5152 | (iterate_over_lwps): Likewise. |
| 5153 | * linux-x86-low.c (update_debug_registers_callback): |
| 5154 | Update signature to what iterate_over_lwps expects. |
| 5155 | Remove PID check that iterate_over_lwps now performs. |
| 5156 | (x86_dr_low_set_addr): Use iterate_over_lwps. |
| 5157 | (x86_dr_low_set_control): Likewise. |
| 5158 | |
| 5159 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5160 | |
| 5161 | * linux-x86-low.c (x86_debug_reg_state): New function. |
| 5162 | (x86_linux_prepare_to_resume): Use the above. |
| 5163 | |
| 5164 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
| 5165 | |
| 5166 | * linux-low.c (current_lwp_ptid): New function. |
| 5167 | * linux-x86-low.c: Include nat/linux-nat.h. |
| 5168 | (x86_dr_low_get_addr): Use current_lwp_ptid. |
| 5169 | (x86_dr_low_get_control): Likewise. |
| 5170 | (x86_dr_low_get_status): Likewise. |
| 5171 | |
| 5172 | 2015-03-20 Pedro Alves <palves@redhat.com> |
| 5173 | |
| 5174 | * tracepoint.c (cmd_qtstatus): Make "str" const. |
| 5175 | |
| 5176 | 2015-03-20 Pedro Alves <palves@redhat.com> |
| 5177 | |
| 5178 | * server.c (handle_general_set): Make "req_str" const. |
| 5179 | |
| 5180 | 2015-03-19 Pedro Alves <palves@redhat.com> |
| 5181 | |
| 5182 | * linux-low.c (linux_resume_one_lwp): Rename to ... |
| 5183 | (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here, |
| 5184 | instead call perror_with_name. |
| 5185 | (check_ptrace_stopped_lwp_gone): New function. |
| 5186 | (linux_resume_one_lwp): Reimplement as wrapper around |
| 5187 | linux_resume_one_lwp_throw that swallows errors if the LWP is |
| 5188 | gone. |
| 5189 | |
| 5190 | 2015-03-19 Pedro Alves <palves@redhat.com> |
| 5191 | |
| 5192 | * linux-low.c (count_events_callback, select_event_lwp_callback): |
| 5193 | No longer check whether the thread has resume_stop as last resume |
| 5194 | kind. |
| 5195 | |
| 5196 | 2015-03-19 Pedro Alves <palves@redhat.com> |
| 5197 | |
| 5198 | * linux-low.c (count_events_callback, select_event_lwp_callback): |
| 5199 | Use the lwp's status_pending_p field, not the thread's. |
| 5200 | |
| 5201 | 2015-03-19 Pedro Alves <palves@redhat.com> |
| 5202 | |
| 5203 | * linux-low.c (select_event_lwp_callback): Update comments to |
| 5204 | no longer mention SIGTRAP. |
| 5205 | |
| 5206 | 2015-03-18 Gary Benson <gbenson@redhat.com> |
| 5207 | |
| 5208 | * server.c (handle_query): Do not report vFile:fstat as supported. |
| 5209 | |
| 5210 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
| 5211 | |
| 5212 | * hostio.c (sys/types.h): New include. |
| 5213 | (sys/stat.h): Likewise. |
| 5214 | (common-remote-fileio.h): Likewise. |
| 5215 | (handle_fstat): New function. |
| 5216 | (handle_vFile): Handle vFile:fstat packets. |
| 5217 | |
| 5218 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
| 5219 | |
| 5220 | * configure.ac (AC_CHECK_MEMBERS): Add checks for |
| 5221 | struct stat.st_blocks and struct stat.st_blksize. |
| 5222 | * configure: Regenerate. |
| 5223 | * config.in: Likewise. |
| 5224 | * Makefile.in (SFILES): Add common/common-remote-fileio.c. |
| 5225 | (OBS): Add common-remote-fileio.o. |
| 5226 | (common-remote-fileio.o): New rule. |
| 5227 | |
| 5228 | 2015-03-09 Pedro Alves <palves@redhat.com> |
| 5229 | |
| 5230 | * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to |
| 5231 | 'struct sockaddr' pointer in 'accept' call. |
| 5232 | |
| 5233 | 2015-03-09 Pedro Alves <palves@redhat.com> |
| 5234 | |
| 5235 | Revert: |
| 5236 | 2015-03-07 Pedro Alves <palves@redhat.com> |
| 5237 | * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>, |
| 5238 | or <winsock2.h> here. Instead include "gdb_socket.h". |
| 5239 | (remote_open): Use union gdb_sockaddr_u. |
| 5240 | * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h> |
| 5241 | or <winsock2.h> here. Instead include "gdb_socket.h". |
| 5242 | (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u. |
| 5243 | * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h> |
| 5244 | or <sys/un.h>. |
| 5245 | (init_named_socket, gdb_agent_helper_thread): Use union |
| 5246 | gdb_sockaddr_u. |
| 5247 | |
| 5248 | 2015-03-07 Pedro Alves <palves@redhat.com> |
| 5249 | |
| 5250 | * configure.ac (build_warnings): Move |
| 5251 | -Wdeclaration-after-statement to the C-specific set. |
| 5252 | * configure: Regenerate. |
| 5253 | |
| 5254 | 2015-03-07 Pedro Alves <palves@redhat.com> |
| 5255 | |
| 5256 | * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>, |
| 5257 | or <winsock2.h> here. Instead include "gdb_socket.h". |
| 5258 | (remote_open): Use union gdb_sockaddr_u. |
| 5259 | * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h> |
| 5260 | or <winsock2.h> here. Instead include "gdb_socket.h". |
| 5261 | (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u. |
| 5262 | * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h> |
| 5263 | or <sys/un.h>. |
| 5264 | (init_named_socket, gdb_agent_helper_thread): Use union |
| 5265 | gdb_sockaddr_u. |
| 5266 | |
| 5267 | 2015-03-07 Pedro Alves <palves@redhat.com> |
| 5268 | |
| 5269 | Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH |
| 5270 | instead. |
| 5271 | |
| 5272 | 2015-03-06 Yao Qi <yao.qi@linaro.org> |
| 5273 | |
| 5274 | * linux-aarch64-low.c (aarch64_insert_point): Use |
| 5275 | show_debug_regs as a boolean. |
| 5276 | (aarch64_remove_point): Likewise. |
| 5277 | |
| 5278 | 2015-03-05 Pedro Alves <palves@redhat.com> |
| 5279 | |
| 5280 | * lynx-low.c (lynx_target_ops): Install NULL hooks for |
| 5281 | stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, |
| 5282 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint. |
| 5283 | * nto-low.c (nto_target_ops): Likewise. |
| 5284 | * spu-low.c (spu_target_ops): Likewise. |
| 5285 | * win32-low.c (win32_target_ops): Likewise. |
| 5286 | |
| 5287 | 2015-03-04 Pedro Alves <palves@redhat.com> |
| 5288 | |
| 5289 | * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: |
| 5290 | Decide whether a breakpoint triggered based on the SIGTRAP's |
| 5291 | siginfo.si_code. |
| 5292 | (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a |
| 5293 | breakpoint is inserted if relying on SIGTRAP's siginfo.si_code. |
| 5294 | (linux_low_filter_event): Check for breakpoints before checking |
| 5295 | watchpoints. |
| 5296 | (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's |
| 5297 | siginfo.si_code. |
| 5298 | (linux_stopped_by_sw_breakpoint) |
| 5299 | (linux_supports_stopped_by_sw_breakpoint) |
| 5300 | (linux_stopped_by_hw_breakpoint) |
| 5301 | (linux_supports_stopped_by_hw_breakpoint): New functions. |
| 5302 | (linux_target_ops): Install new target methods. |
| 5303 | |
| 5304 | 2015-03-04 Pedro Alves <palves@redhat.com> |
| 5305 | |
| 5306 | * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak. |
| 5307 | * server.c (swbreak_feature, hwbreak_feature): New globals. |
| 5308 | (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+". |
| 5309 | (captured_main): Clear swbreak_feature and hwbreak_feature. |
| 5310 | * server.h (swbreak_feature, hwbreak_feature): Declare. |
| 5311 | * target.h (struct target_ops) <stopped_by_sw_breakpoint, |
| 5312 | supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint, |
| 5313 | supports_stopped_by_hw_breakpoint>: New fields. |
| 5314 | (target_supports_stopped_by_sw_breakpoint) |
| 5315 | (target_stopped_by_sw_breakpoint) |
| 5316 | (target_supports_stopped_by_hw_breakpoint) |
| 5317 | (target_stopped_by_hw_breakpoint): Declare. |
| 5318 | |
| 5319 | 2015-03-04 Pedro Alves <palves@redhat.com> |
| 5320 | |
| 5321 | enum lwp_stop_reason -> enum target_stop_reason |
| 5322 | * linux-low.c (check_stopped_by_breakpoint): Adjust. |
| 5323 | (thread_still_has_status_pending_p, check_stopped_by_watchpoint) |
| 5324 | (linux_wait_1, stuck_in_jump_pad_callback) |
| 5325 | (move_out_of_jump_pad_callback, linux_resume_one_lwp) |
| 5326 | (linux_stopped_by_watchpoint): |
| 5327 | * linux-low.h (enum lwp_stop_reason): Delete. |
| 5328 | (struct lwp_info) <stop_reason>: Now an enum target_stop_reason. |
| 5329 | * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust. |
| 5330 | |
| 5331 | 2015-03-04 Yao Qi <yao.qi@linaro.org> |
| 5332 | |
| 5333 | * Makefile.in (SFILES): Add linux-aarch64-low.c. |
| 5334 | |
| 5335 | 2015-03-03 Gary Benson <gbenson@redhat.com> |
| 5336 | |
| 5337 | * hostio.c (handle_vFile): Fix prefix lengths. |
| 5338 | |
| 5339 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
| 5340 | |
| 5341 | * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero |
| 5342 | ptr_bits. |
| 5343 | |
| 5344 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 5345 | |
| 5346 | * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c) |
| 5347 | (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules. |
| 5348 | (clean): Add "rm -f" for above C files. |
| 5349 | * configure.srv (srv_regobj): Add s390-vx-linux64.o, |
| 5350 | s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o. |
| 5351 | (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml, |
| 5352 | s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml. |
| 5353 | * linux-s390-low.c (HWCAP_S390_VX): New macro. |
| 5354 | (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64) |
| 5355 | (init_registers_s390x_vx_linux64) |
| 5356 | (init_registers_s390x_tevx_linux64) |
| 5357 | (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64) |
| 5358 | (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern |
| 5359 | declarations. |
| 5360 | (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high) |
| 5361 | (s390_store_vxrs_high): New functions. |
| 5362 | (s390_regsets): Add entries for NT_S390_VXRS_LOW and |
| 5363 | NT_S390_VXRS_HIGH. |
| 5364 | (s390_arch_setup): Add logic for selecting one of the new target |
| 5365 | descriptions. Activate the new vector regsets if applicable. |
| 5366 | (initialize_low_arch): Also invoke init_registers_s390_vx_linux64, |
| 5367 | init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64, |
| 5368 | and init_registers_s390x_tevx_linux64. |
| 5369 | |
| 5370 | 2015-03-01 Pedro Alves <palves@redhat.com> |
| 5371 | |
| 5372 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs' |
| 5373 | parameter. |
| 5374 | |
| 5375 | 2015-02-27 Pedro Alves <palves@redhat.com> |
| 5376 | |
| 5377 | * linux-x86-low.c (u_debugreg_offset): New function. |
| 5378 | (x86_linux_dr_get, x86_linux_dr_set): Use it. |
| 5379 | |
| 5380 | 2015-02-27 Pedro Alves <palves@redhat.com> |
| 5381 | |
| 5382 | * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP. |
| 5383 | [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare. |
| 5384 | [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread) |
| 5385 | ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs) |
| 5386 | (ps_lsetfpregs, ps_getpid) |
| 5387 | (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue) |
| 5388 | (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs) |
| 5389 | (ps_lsetxregs, ps_plog): Declare. |
| 5390 | |
| 5391 | 2015-02-27 Pedro Alves <palves@redhat.com> |
| 5392 | |
| 5393 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use |
| 5394 | IP_AGENT_EXPORT_FUNC. |
| 5395 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use |
| 5396 | IP_AGENT_EXPORT_FUNC. |
| 5397 | * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR) |
| 5398 | (IP_AGENT_EXPORT): Delete. |
| 5399 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) |
| 5400 | (gdb_trampoline_buffer, gdb_trampoline_buffer_end) |
| 5401 | (gdb_trampoline_buffer_error, collecting, gdb_collect) |
| 5402 | (stop_tracing, flush_trace_buffer, about_to_request_buffer_space) |
| 5403 | (trace_buffer_is_full, stopping_tracepoint, expr_eval_result) |
| 5404 | (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl) |
| 5405 | (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi) |
| 5406 | (traceframe_read_count, traceframe_write_count) |
| 5407 | (traceframes_created, trace_state_variables, get_raw_reg) |
| 5408 | (get_trace_state_variable_value, set_trace_state_variable_value) |
| 5409 | (ust_loaded, helper_thread_id, cmd_buf): Use |
| 5410 | IPA_SYM_EXPORTED_NAME. |
| 5411 | (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC. |
| 5412 | (tracepoints) Use IP_AGENT_EXPORT_VAR. |
| 5413 | (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use |
| 5414 | IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP. |
| 5415 | (last_tracepoint): Move into !IN_PROCESS_AGENT block. |
| 5416 | (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in |
| 5417 | EXTERN_C_PUSH/EXTERN_C_POP. |
| 5418 | (trace_state_variables): Use IP_AGENT_EXPORT_VAR. |
| 5419 | (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and |
| 5420 | wrap in EXTERN_C_PUSH/EXTERN_C_POP. |
| 5421 | (trace_buffer_ctrl, trace_buffer_ctrl_curr) |
| 5422 | (traceframe_write_count, traceframe_read_count) |
| 5423 | (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR. |
| 5424 | (about_to_request_buffer_space, get_trace_state_variable_value) |
| 5425 | (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC. |
| 5426 | (collecting): Use IP_AGENT_EXPORT_VAR and wrap in |
| 5427 | EXTERN_C_PUSH/EXTERN_C_POP. |
| 5428 | (gdb_collect): Use IP_AGENT_EXPORT_FUNC. |
| 5429 | (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR. |
| 5430 | (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR |
| 5431 | and wrap in EXTERN_C_PUSH/EXTERN_C_POP. |
| 5432 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) |
| 5433 | (gdb_trampoline_buffer, gdb_trampoline_buffer_end) |
| 5434 | (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR. |
| 5435 | * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL): |
| 5436 | Define. |
| 5437 | (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR) |
| 5438 | (IP_AGENT_EXPORT_VAR_DECL): Define. |
| 5439 | (tracing): Declare. |
| 5440 | (gdb_agent_get_raw_reg): Declare. |
| 5441 | |
| 5442 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
| 5443 | Pedro Alves <palves@redhat.com> |
| 5444 | |
| 5445 | Rename symbols whose names are reserved C++ keywords throughout. |
| 5446 | |
| 5447 | 2015-02-27 Pedro Alves <palves@redhat.com> |
| 5448 | |
| 5449 | * Makefile.in (COMPILER): New, get it from autoconf. |
| 5450 | (CXX): Get from autoconf instead. |
| 5451 | (COMPILE.pre): Use COMPILER. |
| 5452 | (CC-LD): Rename to ... |
| 5453 | (CC_LD): ... this. Use COMPILER. |
| 5454 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust. |
| 5455 | (CXX_FOR_TARGET): Default to g++ instead of gcc. |
| 5456 | * acinclude.m4: Include build-with-cxx.m4. |
| 5457 | * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX. |
| 5458 | Disable -Werror by default if building in C++ mode. |
| 5459 | (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and |
| 5460 | -Wno-narrowing in C++ mode. Run supported-warning-flags tests with |
| 5461 | the C++ compiler. Save/restore CXXFLAGS too. |
| 5462 | * configure: Regenerate. |
| 5463 | |
| 5464 | 2015-02-27 Pedro Alves <palves@redhat.com> |
| 5465 | |
| 5466 | * acinclude.m4: Include libiberty.m4. |
| 5467 | * configure.ac: Call libiberty_INIT. |
| 5468 | * config.in, configure: Regenerate. |
| 5469 | |
| 5470 | 2015-02-26 Pedro Alves <palves@redhat.com> |
| 5471 | |
| 5472 | * linux-low.c (linux_wait_1): When incrementing the PC past a |
| 5473 | program breakpoint always use the_low_target.breakpoint_len as |
| 5474 | increment, rather than the maximum between that and |
| 5475 | the_low_target.decr_pc_after_break. |
| 5476 | |
| 5477 | 2015-02-23 Pedro Alves <palves@redhat.com> |
| 5478 | |
| 5479 | * linux-low.c (check_stopped_by_breakpoint): Don't check if the |
| 5480 | thread was doing a step-over; always adjust the PC if |
| 5481 | we stepped over a permanent breakpoint. |
| 5482 | (linux_wait_1): If we stepped over breakpoint that was on top of a |
| 5483 | permanent breakpoint, manually advance the PC past it. |
| 5484 | |
| 5485 | 2015-02-23 Pedro Alves <palves@redhat.com> |
| 5486 | |
| 5487 | * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit |
| 5488 | modes. |
| 5489 | (x86_fill_gregset, x86_store_gregset): Use it when handling |
| 5490 | $orig_eax. |
| 5491 | |
| 5492 | 2015-02-20 Pedro Alves <palves@redhat.com> |
| 5493 | |
| 5494 | * thread-db.c: Include "nat/linux-procfs.h". |
| 5495 | (thread_db_init): Skip listing new threads if the kernel supports |
| 5496 | PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible. |
| 5497 | |
| 5498 | 2015-02-20 Pedro Alves <palves@redhat.com> |
| 5499 | |
| 5500 | * linux-low.c (status_pending_p_callback): Use ptid_match. |
| 5501 | |
| 5502 | 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 5503 | |
| 5504 | PR breakpoints/16812 |
| 5505 | * linux-low.c (wstatus_maybe_breakpoint): Remove. |
| 5506 | (linux_low_filter_event): Update wstatus_maybe_breakpoint name. |
| 5507 | (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV. |
| 5508 | |
| 5509 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
| 5510 | |
| 5511 | PR breakpoints/15956 |
| 5512 | * tracepoint.c (cmd_qtinit): Add check for current_thread. |
| 5513 | |
| 5514 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
| 5515 | |
| 5516 | * linux-low.c (linux_low_btrace_conf): Print size. |
| 5517 | * server.c (handle_btrace_conf_general_set): New. |
| 5518 | (hanle_general_set): Call handle_btrace_conf_general_set. |
| 5519 | (handle_query): Report Qbtrace-conf:bts:size as supported. |
| 5520 | |
| 5521 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
| 5522 | |
| 5523 | * linux-low.c (linux_low_enable_btrace): Update parameters. |
| 5524 | (linux_low_btrace_conf): New. |
| 5525 | (linux_target_ops)<to_btrace_conf>: Initialize. |
| 5526 | * server.c (current_btrace_conf): New. |
| 5527 | (handle_btrace_enable): Rename to ... |
| 5528 | (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf |
| 5529 | to target_enable_btrace. Update comment. Update users. |
| 5530 | (handle_qxfer_btrace_conf): New. |
| 5531 | (qxfer_packets): Add btrace-conf entry. |
| 5532 | (handle_query): Report qXfer:btrace-conf:read as supported packet. |
| 5533 | * target.h (target_ops)<enable_btrace>: Update parameters and comment. |
| 5534 | (target_ops)<read_btrace_conf>: New. |
| 5535 | (target_enable_btrace): Update parameters. |
| 5536 | (target_read_btrace_conf): New. |
| 5537 | |
| 5538 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
| 5539 | |
| 5540 | * server.c (handle_btrace_general_set): Remove call to |
| 5541 | target_supports_btrace. |
| 5542 | (supported_btrace_packets): New. |
| 5543 | (handle_query): Call supported_btrace_packets. |
| 5544 | * target.h: include btrace-common.h. |
| 5545 | (btrace_target_info): Removed. |
| 5546 | (supports_btrace, target_supports_btrace): Update parameters. |
| 5547 | |
| 5548 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
| 5549 | |
| 5550 | * Makefile.in (SFILES): Add common/btrace-common.c. |
| 5551 | (OBS): Add common/btrace-common.o. |
| 5552 | (btrace-common.o): Add build rules. |
| 5553 | * linux-low: Include btrace-common.h. |
| 5554 | (linux_low_read_btrace): Use struct btrace_data. Call |
| 5555 | btrace_data_init and btrace_data_fini. |
| 5556 | |
| 5557 | 2015-02-06 Pedro Alves <palves@redhat.com> |
| 5558 | |
| 5559 | * thread-db.c (find_new_threads_callback): Add debug output. |
| 5560 | |
| 5561 | 2015-02-04 Pedro Alves <palves@redhat.com> |
| 5562 | |
| 5563 | * linux-low.c (handle_extended_wait): Don't resume LWPs here. |
| 5564 | (resume_stopped_resumed_lwps): New function. |
| 5565 | (linux_wait_for_event_filtered): Use it. |
| 5566 | |
| 5567 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
| 5568 | |
| 5569 | * Makefile.in (SFILES): Add linux-personality.c. |
| 5570 | (linux-personality.o): New rule. |
| 5571 | * configure.srv (srv_linux_obj): Add linux-personality.o to the |
| 5572 | list of objects to be built. |
| 5573 | * linux-low.c: Include nat/linux-personality.h. |
| 5574 | (linux_create_inferior): Remove code to disable address space |
| 5575 | randomization (moved to ../nat/linux-personality.c). Create |
| 5576 | cleanup to disable address space randomization. |
| 5577 | |
| 5578 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
| 5579 | |
| 5580 | * Makefile.in (posix-strerror.o): New rule. |
| 5581 | (mingw-strerror.o): Likewise. |
| 5582 | * configure: Regenerated. |
| 5583 | * configure.ac: Source file ../common/common.host. Initialize new |
| 5584 | variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES. |
| 5585 | |
| 5586 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
| 5587 | |
| 5588 | * Makefile.in (SFILES): Add nat/ppc-linux.c. |
| 5589 | (ppc-linux.o): New rule. |
| 5590 | * configure.srv (powerpc*-*-linux*): Add ppc-linux.o. |
| 5591 | * configure.ac: AC_CHECK_FUNCS(getauxval). |
| 5592 | * config.in: Re-generated. |
| 5593 | * configure: Re-generated. |
| 5594 | * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call |
| 5595 | ppc64_64bit_inferior_p |
| 5596 | |
| 5597 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
| 5598 | |
| 5599 | * linux-ppc-low.c: Include "nat/ppc-linux.h". |
| 5600 | (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h. |
| 5601 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise. |
| 5602 | (PT_ORIG_R3, PT_TRAP): Likewise. |
| 5603 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. |
| 5604 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. |
| 5605 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. |
| 5606 | |
| 5607 | 2015-01-10 Joel Brobecker <brobecker@adacore.com> |
| 5608 | |
| 5609 | * i387-fp.c (i387_cache_to_xsave): In look over |
| 5610 | num_avx512_zmmh_high_registers, replace use of struct i387_xsave |
| 5611 | zmmh_low_space field by use of zmmh_high_space. |
| 5612 | |
| 5613 | 2015-01-09 Pedro Alves <palves@redhat.com> |
| 5614 | |
| 5615 | * linux-low.c (step_over_bkpt): Move higher up in the file. |
| 5616 | (handle_extended_wait): Don't store the stop_pc here. |
| 5617 | (get_stop_pc): Adjust comments and rename to ... |
| 5618 | (check_stopped_by_breakpoint): ... this. Record whether the LWP |
| 5619 | stopped for a software breakpoint or hardware breakpoint. |
| 5620 | (thread_still_has_status_pending_p): New function. |
| 5621 | (status_pending_p_callback): Use |
| 5622 | thread_still_has_status_pending_p. If the event is no longer |
| 5623 | interesting, resume the LWP. |
| 5624 | (handle_tracepoints): Add assert. |
| 5625 | (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call. |
| 5626 | (wstatus_maybe_breakpoint): New function. |
| 5627 | (cancel_breakpoint): Delete function. |
| 5628 | (check_stopped_by_watchpoint): New function, factored out from |
| 5629 | linux_low_filter_event. |
| 5630 | (lp_status_maybe_breakpoint): Delete function. |
| 5631 | (linux_low_filter_event): Remove filter_ptid argument. |
| 5632 | Leave thread group exits pending here. Store the LWP's stop PC. |
| 5633 | Always leave events pending. |
| 5634 | (linux_wait_for_event_filtered): Pull all events out of the |
| 5635 | kernel, and leave them all pending. |
| 5636 | (count_events_callback, select_event_lwp_callback): Consider all |
| 5637 | events. |
| 5638 | (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete. |
| 5639 | (select_event_lwp): Only give preference to the stepping LWP in |
| 5640 | all-stop mode. Adjust comments. |
| 5641 | (ignore_event): New function. |
| 5642 | (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove |
| 5643 | references to cancel_breakpoints. Adjust to renames. Also give |
| 5644 | equal priority to all LWPs that have had events in non-stop mode. |
| 5645 | If reporting a software breakpoint event, unadjust the LWP's PC. |
| 5646 | (linux_wait): If linux_wait_1 returned an ignored event, retry. |
| 5647 | (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): |
| 5648 | Adjust. |
| 5649 | (linux_resume_one_lwp): Store the LWP's PC. Adjust. |
| 5650 | (resume_status_pending_p): Use thread_still_has_status_pending_p. |
| 5651 | (linux_stopped_by_watchpoint): Adjust. |
| 5652 | (linux_target_ops): Remove reference to linux_cancel_breakpoints. |
| 5653 | * linux-low.h (enum lwp_stop_reason): New. |
| 5654 | (struct lwp_info) <stop_pc>: Adjust comment. |
| 5655 | <stopped_by_watchpoint>: Delete field. |
| 5656 | <stop_reason>: New field. |
| 5657 | * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust. |
| 5658 | * mem-break.c (software_breakpoint_inserted_here) |
| 5659 | (hardware_breakpoint_inserted_here): New function. |
| 5660 | * mem-break.h (software_breakpoint_inserted_here) |
| 5661 | (hardware_breakpoint_inserted_here): Declare. |
| 5662 | * target.h (struct target_ops) <cancel_breakpoints>: Remove field. |
| 5663 | (cancel_breakpoints): Delete. |
| 5664 | * tracepoint.c (clear_installed_tracepoints, stop_tracing) |
| 5665 | (upload_fast_traceframes): Remove references to |
| 5666 | cancel_breakpoints. |
| 5667 | |
| 5668 | 2015-01-09 Pedro Alves <palves@redhat.com> |
| 5669 | |
| 5670 | * thread-db.c (find_new_threads_callback): Ignore thread if the |
| 5671 | kernel thread ID is -1. |
| 5672 | |
| 5673 | 2015-01-09 Pedro Alves <palves@redhat.com> |
| 5674 | |
| 5675 | * linux-low.c (linux_attach_fail_reason_string): Move to |
| 5676 | nat/linux-ptrace.c, and rename. |
| 5677 | (linux_attach_lwp): Update comment. |
| 5678 | (attach_proc_task_lwp_callback): New function. |
| 5679 | (linux_attach): Adjust to rename and use |
| 5680 | linux_proc_attach_tgid_threads. |
| 5681 | (linux_attach_fail_reason_string): Delete declaration. |
| 5682 | |
| 5683 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
| 5684 | |
| 5685 | * gdbreplay.c (gdbreplay_version): Update copyright year to 2015. |
| 5686 | * server.c (gdbserver_version): Likewise. |
| 5687 | |
| 5688 | 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com> |
| 5689 | |
| 5690 | * remote-utils.c: Include ctype.h. |
| 5691 | (input_interrupt): Explicitly handle the case when the char |
| 5692 | received is the NUL byte. Improve the printing of non-ASCII |
| 5693 | characters. |
| 5694 | |
| 5695 | 2014-12-16 Joel Brobecker <brobecker@adacore.com> |
| 5696 | |
| 5697 | * linux-low.c (linux_low_filter_event): Update call to |
| 5698 | linux_enable_event_reporting following the addition of |
| 5699 | a new parameter to that function. |
| 5700 | |
| 5701 | 2014-12-16 Catalin Udma <catalin.udma@freescale.com> |
| 5702 | |
| 5703 | PR server/17457 |
| 5704 | * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define. |
| 5705 | (AARCH64_FPCR_REGNO): Likewise. |
| 5706 | (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers. |
| 5707 | (aarch64_fill_fpregset): Add missing fpsr/fpcr registers. |
| 5708 | (aarch64_store_fpregset): Likewise. |
| 5709 | |
| 5710 | 2014-12-15 Joel Brobecker <brobecker@adacore.com> |
| 5711 | |
| 5712 | * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1. |
| 5713 | Remove FIXME comment about assumption about N. |
| 5714 | |
| 5715 | 2014-12-13 Joel Brobecker <brobecker@adacore.com> |
| 5716 | |
| 5717 | * configure.ac: If large-file support is disabled in GDBserver, |
| 5718 | pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib". |
| 5719 | * configure: Regenerate. |
| 5720 | |
| 5721 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 5722 | |
| 5723 | * linux-low.c (regsets_fetch_inferior_registers): Suppress the |
| 5724 | warning upon ENODATA from ptrace. |
| 5725 | * linux-s390-low.c (s390_store_tdb): New. |
| 5726 | (s390_regsets): Add regset for NT_S390_TDB. |
| 5727 | |
| 5728 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 5729 | |
| 5730 | * linux-low.c (regsets_store_inferior_registers): Skip regsets |
| 5731 | without a fill_function. |
| 5732 | * linux-s390-low.c (s390_fill_last_break): Remove. |
| 5733 | (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK. |
| 5734 | (s390_arch_setup): Use regset's size instead of fill_function for |
| 5735 | loop end condition. |
| 5736 | |
| 5737 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 5738 | |
| 5739 | * linux-low.c (regsets_fetch_inferior_registers): Do not invoke |
| 5740 | the regset's store function when ptrace returned an error. |
| 5741 | * regcache.c (get_thread_regcache): Invalidate register cache |
| 5742 | before fetching inferior's registers. |
| 5743 | |
| 5744 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 5745 | |
| 5746 | * linux-low.c (regsets_fetch_inferior_registers): Rephrase |
| 5747 | while-loop as for-loop. |
| 5748 | (regsets_store_inferior_registers): Likewise. |
| 5749 | |
| 5750 | 2014-11-28 Yao Qi <yao@codesourcery.com> |
| 5751 | |
| 5752 | * configure.ac(AC_CHECK_FUNCS): Remove readlink. |
| 5753 | * config.in, configure: Re-generate. |
| 5754 | * hostio.c (handle_unlink): Remove code checking HAVE_READLINK |
| 5755 | is defined. |
| 5756 | |
| 5757 | 2014-11-21 Yao Qi <yao@codesourcery.com> |
| 5758 | |
| 5759 | * configure.ac: Don't invoke AC_FUNC_ALLOCA. |
| 5760 | (AC_CHECK_HEADERS): Remove malloc.h. |
| 5761 | * configure: Re-generated. |
| 5762 | * config.in: Re-generated. |
| 5763 | * server.h: Don't include alloca.h and malloc.h. |
| 5764 | * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined. |
| 5765 | Don't include malloc.h. |
| 5766 | |
| 5767 | 2014-11-17 Joel Brobecker <brobecker@adacore.com> |
| 5768 | |
| 5769 | * lynx-low.c (lynx_write_memory): Put lynx_read_memory and |
| 5770 | corresponding ERRNO check in same block. |
| 5771 | |
| 5772 | 2014-11-12 Pedro Alves <palves@redhat.com> |
| 5773 | |
| 5774 | * server.c (cont_thread): Update comment. |
| 5775 | (start_inferior, attach_inferior): No longer clear cont_thread. |
| 5776 | (handle_v_cont): No longer set cont_thread. |
| 5777 | (captured_main): Clear cont_thread each time a GDB connects. |
| 5778 | |
| 5779 | 2014-11-12 Pedro Alves <palves@redhat.com> |
| 5780 | |
| 5781 | * linux-low.c (linux_wait_1): Don't force a wait for the Hc |
| 5782 | thread, and don't resume all threads if the Hc thread has exited. |
| 5783 | |
| 5784 | 2014-11-12 Pedro Alves <palves@redhat.com> |
| 5785 | |
| 5786 | * linux-low.c (linux_request_interrupt): Always send a SIGINT to |
| 5787 | the process group instead of to a specific LWP. |
| 5788 | |
| 5789 | 2014-10-15 Pedro Alves <palves@redhat.com> |
| 5790 | |
| 5791 | PR server/17487 |
| 5792 | * win32-arm-low.c (arm_set_thread_context): Remove current_event |
| 5793 | parameter. |
| 5794 | (arm_set_thread_context): Delete. |
| 5795 | (the_low_target): Adjust. |
| 5796 | * win32-i386-low.c (debug_registers_changed) |
| 5797 | (debug_registers_used): Delete. |
| 5798 | (update_debug_registers_callback): New function. |
| 5799 | (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as |
| 5800 | needing to update their debug registers. |
| 5801 | (win32_get_current_dr): New function. |
| 5802 | (x86_dr_low_get_addr, x86_dr_low_get_control) |
| 5803 | (x86_dr_low_get_status): Fetch the debug register from the thread |
| 5804 | record's context. |
| 5805 | (i386_initial_stuff): Adjust. |
| 5806 | (i386_get_thread_context): Remove current_event parameter. Don't |
| 5807 | clear debug_registers_changed nor copy DR values to |
| 5808 | debug_reg_state. |
| 5809 | (i386_set_thread_context): Delete. |
| 5810 | (i386_prepare_to_resume): New function. |
| 5811 | (i386_thread_added): Mark the thread as needing to update irs |
| 5812 | debug registers. |
| 5813 | (the_low_target): Remove i386_set_thread_context and install |
| 5814 | i386_prepare_to_resume. |
| 5815 | * win32-low.c (win32_get_thread_context): Adjust. |
| 5816 | (win32_set_thread_context): Use SetThreadContext |
| 5817 | directly. |
| 5818 | (win32_prepare_to_resume): New function. |
| 5819 | (win32_require_context): New function, factored out from ... |
| 5820 | (thread_rec): ... this. |
| 5821 | (continue_one_thread): Call win32_prepare_to_resume on each thread |
| 5822 | we're about to continue. |
| 5823 | (win32_resume): Call win32_prepare_to_resume on the event thread. |
| 5824 | * win32-low.h (struct win32_thread_info) |
| 5825 | <debug_registers_changed>: New field. |
| 5826 | (struct win32_target_ops): Change prototype of set_thread_context, |
| 5827 | delete set_thread_context and add prepare_to_resume. |
| 5828 | (win32_require_context): New declaration. |
| 5829 | |
| 5830 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
| 5831 | |
| 5832 | * server.h: Do not include common-exceptions.h. |
| 5833 | |
| 5834 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
| 5835 | |
| 5836 | * server.h: Do not include cleanups.h. |
| 5837 | |
| 5838 | 2014-09-30 James Hogan <james.hogan@imgtec.com> |
| 5839 | |
| 5840 | * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and |
| 5841 | mips64-dsp-linux.c. |
| 5842 | |
| 5843 | 2014-09-23 Yao Qi <yao@codesourcery.com> |
| 5844 | |
| 5845 | * linux-low.c (lp_status_maybe_breakpoint): New function. |
| 5846 | (linux_low_filter_event): Call lp_status_maybe_breakpoint. |
| 5847 | (count_events_callback): Likewise. |
| 5848 | (select_event_lwp_callback): Likewise. |
| 5849 | (cancel_breakpoints_callback): Likewise. |
| 5850 | |
| 5851 | 2014-09-19 Don Breazeal <donb@codesourcery.com> |
| 5852 | |
| 5853 | * linux-low.c (handle_extended_wait): Call |
| 5854 | linux_ptrace_get_extended_event. |
| 5855 | (get_stop_pc, get_detach_signal, linux_low_filter_event): Call |
| 5856 | linux_is_extended_waitstatus. |
| 5857 | |
| 5858 | 2014-09-16 Joel Brobecker <brobecker@adacore.com> |
| 5859 | |
| 5860 | * Makefile.in (CPPFLAGS): Define. |
| 5861 | (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}. |
| 5862 | (IPAGENT_CFLAGS): Remove ${CPPFLAGS}. |
| 5863 | |
| 5864 | 2014-09-16 Gary Benson <gbenson@redhat.com> |
| 5865 | |
| 5866 | * inferiors.h (current_inferior): Renamed as... |
| 5867 | (current_thread): New variable. All uses updated. |
| 5868 | * linux-low.c (get_pc): Renamed saved_inferior as saved_thread. |
| 5869 | (maybe_move_out_of_jump_pad): Likewise. |
| 5870 | (cancel_breakpoint): Likewise. |
| 5871 | (linux_low_filter_event): Likewise. |
| 5872 | (wait_for_sigstop): Likewise. |
| 5873 | (linux_resume_one_lwp): Likewise. |
| 5874 | (need_step_over_p): Likewise. |
| 5875 | (start_step_over): Likewise. |
| 5876 | (linux_stabilize_threads): Renamed save_inferior as saved_thread. |
| 5877 | * linux-x86-low.c (x86_linux_update_xmltarget): Likewise. |
| 5878 | * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread |
| 5879 | and save_inferior as saved_thread. |
| 5880 | * regcache.c (get_thread_regcache): Renamed saved_inferior as |
| 5881 | saved_thread. |
| 5882 | (regcache_invalidate_thread): Likewise. |
| 5883 | * remote-utils.c (prepare_resume_reply): Likewise. |
| 5884 | * thread-db.c (thread_db_get_tls_address): Likewise. |
| 5885 | (disable_thread_event_reporting): Likewise. |
| 5886 | (remove_thread_event_breakpoints): Likewise. |
| 5887 | * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior |
| 5888 | as saved_thread. |
| 5889 | * target.h (set_desired_inferior): Renamed as... |
| 5890 | (set_desired_thread): New declaration. All uses updated. |
| 5891 | * server.c (myresume): Updated comment to reference thread instead |
| 5892 | of inferior. |
| 5893 | (handle_serial_event): Likewise. |
| 5894 | (handle_target_event): Likewise. |
| 5895 | |
| 5896 | 2014-09-12 Tom Tromey <tromey@redhat.com> |
| 5897 | Gary Benson <gbenson@redhat.com> |
| 5898 | |
| 5899 | * regcache.h: Include common-regcache.h. |
| 5900 | (regcache_read_pc): Don't declare. |
| 5901 | * regcache.c (get_thread_regcache_for_ptid): New function. |
| 5902 | |
| 5903 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
| 5904 | Gary Benson <gbenson@redhat.com> |
| 5905 | |
| 5906 | * symbol.c: New file. |
| 5907 | * Makefile.in (SFILES): Add symbol.c. |
| 5908 | (OBS): Add symbol.o. |
| 5909 | |
| 5910 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
| 5911 | |
| 5912 | * target.c (target_stop_ptid, target_continue_ptid): New |
| 5913 | functions. |
| 5914 | |
| 5915 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
| 5916 | Gary Benson <gbenson@redhat.com> |
| 5917 | |
| 5918 | * target.h: Include target/target.h. |
| 5919 | * target.c (target_read_memory, target_read_uint32) |
| 5920 | (target_write_memory): New functions. |
| 5921 | |
| 5922 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
| 5923 | |
| 5924 | * server.h (debug_hw_points): Don't declare. |
| 5925 | * server.c (debug_hw_points): Don't define. Replace all uses |
| 5926 | with show_debug_regs. |
| 5927 | * linux-aarch64-low.c (debug_hw_points): Don't define. Replace |
| 5928 | all uses with show_debug_regs. |
| 5929 | |
| 5930 | 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
| 5931 | |
| 5932 | * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take |
| 5933 | endianness into account. |
| 5934 | (ppc_supply_ptrace_register): Likewise. |
| 5935 | |
| 5936 | 2014-09-03 James Hogan <james.hogan@imgtec.com> |
| 5937 | |
| 5938 | * linux-mips-low.c (mips_read_description): Reset errno to 0 prior |
| 5939 | to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call. |
| 5940 | |
| 5941 | 2014-09-03 Gary Benson <gbenson@redhat.com> |
| 5942 | |
| 5943 | * linux-x86-low.c (x86_linux_prepare_to_resume): Use |
| 5944 | ALL_DEBUG_ADDRESS_REGISTERS. |
| 5945 | |
| 5946 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
| 5947 | |
| 5948 | * i386-low.h: Renamed as... |
| 5949 | * x86-low.h: New file. All type, function and variable name |
| 5950 | prefixes changed from "i386_" to "x86_". All references updated. |
| 5951 | * i386-low.c: Renamed as... |
| 5952 | * x86-low.c: New file. All type, function and variable name |
| 5953 | prefixes changed from "i386_" to "x86_". All references updated. |
| 5954 | |
| 5955 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
| 5956 | |
| 5957 | * linux-x86-low.c (x86_linux_new_process): Use XCNEW. |
| 5958 | (x86_linux_new_thread): Likewise. |
| 5959 | |
| 5960 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
| 5961 | |
| 5962 | * server.h (setjmp.h): Do not include. |
| 5963 | (toplevel): Do not declare. |
| 5964 | (common-exceptions.h): Include. |
| 5965 | (cleanups.h): Likewise. |
| 5966 | * server.c (toplevel): Do not define. |
| 5967 | (exit_code): New static global. |
| 5968 | (detach_or_kill_for_exit_cleanup): New function. |
| 5969 | (main): New function. Original main renamed to... |
| 5970 | (captured_main): New function. |
| 5971 | * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror. |
| 5972 | |
| 5973 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
| 5974 | |
| 5975 | * Makefile.in (SFILES): Add common/common-exceptions.c. |
| 5976 | (OBS): Add common-exceptions.o. |
| 5977 | (common-exceptions.o): New rule. |
| 5978 | * utils.c (prepare_to_throw_exception): New function. |
| 5979 | |
| 5980 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
| 5981 | |
| 5982 | * config.in: Regenerate. |
| 5983 | * configure: Likewise. |
| 5984 | |
| 5985 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
| 5986 | |
| 5987 | * Makefile.in (SFILES): Add common/cleanups.c. |
| 5988 | (OBS): cleanups.o. |
| 5989 | (cleanups.o): New rule. |
| 5990 | |
| 5991 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
| 5992 | |
| 5993 | * utils.c (internal_vwarning): New function. |
| 5994 | |
| 5995 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
| 5996 | |
| 5997 | * utils.h (fatal): Remove declaration. |
| 5998 | * utils.c (fatal): Remove function. |
| 5999 | |
| 6000 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
| 6001 | |
| 6002 | * tracepoint.c (gdb_agent_init): Replace fatal with |
| 6003 | perror_with_name. |
| 6004 | (initialize_tracepoint): Likewise. |
| 6005 | |
| 6006 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
| 6007 | |
| 6008 | * remote-utils.c (remote_prepare): Replace fatal with error. |
| 6009 | |
| 6010 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
| 6011 | |
| 6012 | * linux-low.c (linux_async): Replace fatal with warning. |
| 6013 | Tidy up and return. |
| 6014 | (linux_start_non_stop): Return -1 if linux_async failed. |
| 6015 | |
| 6016 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
| 6017 | |
| 6018 | * linux-x86-low.c (i386_dr_low_set_addr): Replace check with |
| 6019 | gdb_assert. |
| 6020 | (i386_dr_low_get_addr): Remove vague comment. |
| 6021 | * win32-i386-low.c (i386_dr_low_set_addr): Replace check with |
| 6022 | gdb_assert. |
| 6023 | |
| 6024 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
| 6025 | |
| 6026 | * inferiors.c (get_thread_process): Replace check with gdb_assert. |
| 6027 | * linux-low.c (linux_wait_for_event_filtered): Replace fatal with |
| 6028 | internal_error. |
| 6029 | (linux_resume_one_lwp): Likewise. |
| 6030 | * linux-x86-low.c (x86_siginfo_fixup): Replace checks with |
| 6031 | gdb_assert. |
| 6032 | * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal |
| 6033 | with internal_error. |
| 6034 | * regcache.c (get_thread_regcache): Replace check with gdb_assert. |
| 6035 | (init_register_cache): Replace fatal with gdb_assert_not_reached. |
| 6036 | (find_register_by_name): Replace fatal with internal_error. |
| 6037 | (find_regno): Likewise. |
| 6038 | * tdesc.c (init_target_desc): Replace check with gdb_assert. |
| 6039 | * thread-db.c (thread_db_create_event): Likewise. |
| 6040 | (thread_db_load_search): Likewise. |
| 6041 | (try_thread_db_load_1): Likewise. |
| 6042 | * tracepoint.c (get_jump_space_head): Replace fatal with |
| 6043 | internal_error. |
| 6044 | (claim_trampoline_space): Likewise. |
| 6045 | (have_fast_tracepoint_trampoline_buffer): Likewise. |
| 6046 | (cmd_qtstart): Likewise. |
| 6047 | (stop_tracing): Likewise. |
| 6048 | (fast_tracepoint_collecting): Likewise. |
| 6049 | (target_malloc): Likewise. |
| 6050 | (download_tracepoint): Likewise. |
| 6051 | (download_trace_state_variables): Replace check with gdb_assert. |
| 6052 | (upload_fast_traceframes): Replace fatal with internal_error. |
| 6053 | |
| 6054 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
| 6055 | Gary Benson <gbenson@redhat.com> |
| 6056 | |
| 6057 | * Makefile.in (SFILES): Add common/common-debug.c. |
| 6058 | (OBS): Add common-debug.o. |
| 6059 | (common-debug.o): New rule. |
| 6060 | * debug.h (debug_printf): Don't declare. |
| 6061 | * debug.c (debug_printf): Renamed and rewritten as... |
| 6062 | (debug_vprintf): New function. |
| 6063 | |
| 6064 | 2014-08-19 Gary Benson <gbenson@redhat.com> |
| 6065 | |
| 6066 | * utils.h: Do not include print-utils.h. |
| 6067 | |
| 6068 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
| 6069 | Gary Benson <gbenson@redhat.com> |
| 6070 | |
| 6071 | * server.h: Add static assertion. |
| 6072 | (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove. |
| 6073 | |
| 6074 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
| 6075 | Gary Benson <gbenson@redhat.com> |
| 6076 | |
| 6077 | * Makefile.in (SFILES): Add common/errors.c. |
| 6078 | (OBS): Add errors.o. |
| 6079 | (IPA_OBS): Add errors-ipa.o. |
| 6080 | (errors.o): New rule. |
| 6081 | (errors-ipa.o): Likewise. |
| 6082 | * utils.h (perror_with_name, error, warning): Don't declare. |
| 6083 | * utils.c (warning): Renamed and rewritten as... |
| 6084 | (vwarning): New function. |
| 6085 | (error): Renamed and rewritten as... |
| 6086 | (verror): New function. |
| 6087 | (internal_error): Renamed and rewritten as... |
| 6088 | (internal_verror): New function. |
| 6089 | |
| 6090 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6091 | |
| 6092 | * configure.ac (AC_CHECK_HEADERS): Remove errno.h. |
| 6093 | * configure: Regenerate. |
| 6094 | * config.in: Likewise. |
| 6095 | * server.h: Do not include errno.h. |
| 6096 | * event-loop.c: Likewise. |
| 6097 | * hostio-errno.c: Likewise. |
| 6098 | * linux-low.c: Likewise. |
| 6099 | * remote-utils.c: Likewise. |
| 6100 | * spu-low.c: Likewise. |
| 6101 | * utils.c: Likewise. |
| 6102 | * gdbreplay.c: Unconditionally include errno.h. |
| 6103 | |
| 6104 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6105 | |
| 6106 | * server.h: Do not include string.h. |
| 6107 | * event-loop.c: Likewise. |
| 6108 | * linux-low.c: Likewise. |
| 6109 | * regcache.c: Likewise. |
| 6110 | * remote-utils.c: Likewise. |
| 6111 | * spu-low.c: Likewise. |
| 6112 | * utils.c: Likewise. |
| 6113 | |
| 6114 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6115 | |
| 6116 | * server.h: Do not include gdb_assert.h. |
| 6117 | |
| 6118 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6119 | |
| 6120 | * server.h: Do not include common-utils.h. |
| 6121 | |
| 6122 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6123 | |
| 6124 | * server.h: Do not include ptid.h. |
| 6125 | * notif.h: Likewise. |
| 6126 | |
| 6127 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6128 | |
| 6129 | * server.h: Do not include gdb_locale.h. |
| 6130 | |
| 6131 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6132 | |
| 6133 | * server.h: Do not include gdb/signals.h. |
| 6134 | * win32-low.c: Likewise. |
| 6135 | |
| 6136 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6137 | |
| 6138 | * server.h: Do not include pathmax.h. |
| 6139 | |
| 6140 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6141 | |
| 6142 | * server.h: Do not include libiberty.h. |
| 6143 | * linux-bfin-low.c: Likewise. |
| 6144 | |
| 6145 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6146 | |
| 6147 | * server.h: Do not include ansidecl.h. |
| 6148 | |
| 6149 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6150 | |
| 6151 | * linux-x86-low.c: Do not include stddef.h. |
| 6152 | * lynx-ppc-low.c: Likewise. |
| 6153 | * tracepoint.c: Likewise. |
| 6154 | |
| 6155 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6156 | |
| 6157 | * server.h: Do not include stdarg.h. |
| 6158 | * nto-low.c: Likewise. |
| 6159 | |
| 6160 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6161 | |
| 6162 | * server.h: Do not include stdlib.h. |
| 6163 | * inferiors.c: Likewise. |
| 6164 | * linux-low.c: Likewise. |
| 6165 | * regcache.c: Likewise. |
| 6166 | * spu-low.c: Likewise. |
| 6167 | * tracepoint.c: Likewise. |
| 6168 | * utils.c: Likewise. |
| 6169 | |
| 6170 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
| 6171 | |
| 6172 | * server.h: Do not include stdio.h. |
| 6173 | * linux-low.c: Likewise. |
| 6174 | * remote-utils.c: Likewise. |
| 6175 | * spu-low.c: Likewise. |
| 6176 | * utils.c: Likewise. |
| 6177 | * wincecompat.c: Likewise. |
| 6178 | |
| 6179 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
| 6180 | |
| 6181 | * regcache.c (init_register_cache): Move conditionals inside if. |
| 6182 | |
| 6183 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
| 6184 | |
| 6185 | * linux-low.c (linux_supports_non_stop): Use target_is_async_p. |
| 6186 | |
| 6187 | 2014-07-31 Gary Benson <gbenson@redhat.com> |
| 6188 | |
| 6189 | * ax.h: Do not include server.h. |
| 6190 | * gdbthread.h: Likewise. |
| 6191 | * lynx-low.h: Likewise. |
| 6192 | * notif.h: Likewise. |
| 6193 | |
| 6194 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
| 6195 | |
| 6196 | * server.h: Include common-defs.h. |
| 6197 | Do not include config.h or build-gnulib-gdbserver/config.h. |
| 6198 | |
| 6199 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
| 6200 | |
| 6201 | * hostio-errno.c: Move server.h to top of includes list. |
| 6202 | * inferiors.c: Likewise. |
| 6203 | * linux-x86-low.c: Likewise. |
| 6204 | * notif.c: Include server.h. |
| 6205 | |
| 6206 | 2014-07-24 Tom Tromey <tromey@redhat.com> |
| 6207 | Gary Benson <gbenson@redhat.com> |
| 6208 | |
| 6209 | * server.h (CORE_ADDR): Now unsigned. |
| 6210 | |
| 6211 | 2014-07-16 Pedro Alves <palves@redhat.com> |
| 6212 | |
| 6213 | * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill. |
| 6214 | |
| 6215 | 2014-07-15 Pedro Alves <palves@redhat.com> |
| 6216 | |
| 6217 | * linux-low.c (linux_kill_one_lwp): Save errno and work with saved |
| 6218 | copy. |
| 6219 | |
| 6220 | 2014-07-11 Pedro Alves <palves@redhat.com> |
| 6221 | |
| 6222 | * linux-low.c (kill_wait_lwp): New function, based on |
| 6223 | kill_one_lwp_callback, but use my_waitpid directly. |
| 6224 | (kill_one_lwp_callback, linux_kill): Use it. |
| 6225 | |
| 6226 | 2014-06-23 Pedro Alves <palves@redhat.com> |
| 6227 | |
| 6228 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL |
| 6229 | before setting DR0..DR3. |
| 6230 | |
| 6231 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
| 6232 | |
| 6233 | * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed. |
| 6234 | * configure: Regenerated. |
| 6235 | * config.in: Likewise. |
| 6236 | |
| 6237 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
| 6238 | |
| 6239 | * Makefile.in (SFILES): Update locations for files moved |
| 6240 | from common to nat. |
| 6241 | (object file files): Reordered. |
| 6242 | |
| 6243 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
| 6244 | |
| 6245 | * i386-low.h (i386_dr_low_can_set_addr): Removed. |
| 6246 | (i386_dr_low_set_addr): Likewise. |
| 6247 | (i386_dr_low_get_addr): Likewise. |
| 6248 | (i386_dr_low_can_set_control): Likewise. |
| 6249 | (i386_dr_low_set_control): Likewise. |
| 6250 | (i386_dr_low_get_control): Likewise. |
| 6251 | (i386_dr_low_get_status): Likewise. |
| 6252 | (i386_get_debug_register_length): Likewise. |
| 6253 | * linux-x86-low.c (i386_dr_low_set_addr): |
| 6254 | Changed signature. Made static. |
| 6255 | (i386_dr_low_get_addr): Likewise. |
| 6256 | (i386_dr_low_set_control): Likewise. |
| 6257 | (i386_dr_low_get_control): Likewise. |
| 6258 | (i386_dr_low_get_status): Likewise. |
| 6259 | (i386_dr_low): New global variable. |
| 6260 | * win32-i386-low.c (i386_dr_low_set_addr): |
| 6261 | Changed signature. Made static. |
| 6262 | (i386_dr_low_get_addr): Likewise. |
| 6263 | (i386_dr_low_set_control): Likewise. |
| 6264 | (i386_dr_low_get_control): Likewise. |
| 6265 | (i386_dr_low_get_status): Likewise. |
| 6266 | (i386_dr_low): New global variable. |
| 6267 | |
| 6268 | 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com> |
| 6269 | |
| 6270 | * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar). |
| 6271 | * Makefile.in (AR, AR_FLAGS): Define. |
| 6272 | * configure: Regenerate. |
| 6273 | |
| 6274 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
| 6275 | |
| 6276 | * Makefile.in (i386-dregs.o): New rule. |
| 6277 | * configure.srv: Add i386-dregs.o to all targets using i386-low.o. |
| 6278 | * i386-low.c (target.h): Remove include. |
| 6279 | (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c. |
| 6280 | (DR_CONTROL_SHIFT): Likewise. |
| 6281 | (DR_CONTROL_SIZE): Likewise. |
| 6282 | (DR_RW_EXECUTE): Likewise. |
| 6283 | (DR_RW_WRITE): Likewise. |
| 6284 | (DR_RW_READ): Likewise. |
| 6285 | (DR_RW_IORW): Likewise. |
| 6286 | (DR_LEN_1): Likewise. |
| 6287 | (DR_LEN_2): Likewise. |
| 6288 | (DR_LEN_4): Likewise. |
| 6289 | (DR_LEN_8): Likewise. |
| 6290 | (DR_LOCAL_ENABLE_SHIFT): Likewise. |
| 6291 | (DR_GLOBAL_ENABLE_SHIFT): Likewise. |
| 6292 | (DR_ENABLE_SIZE): Likewise. |
| 6293 | (DR_LOCAL_SLOWDOWN): Likewise. |
| 6294 | (DR_GLOBAL_SLOWDOWN): Likewise. |
| 6295 | (DR_CONTROL_RESERVED): Likewise. |
| 6296 | (I386_DR_CONTROL_MASK): Likewise. |
| 6297 | (I386_DR_VACANT): Likewise. |
| 6298 | (I386_DR_LOCAL_ENABLE): Likewise. |
| 6299 | (I386_DR_GLOBAL_ENABLE): Likewise. |
| 6300 | (I386_DR_DISABLE): Likewise. |
| 6301 | (I386_DR_SET_RW_LEN): Likewise. |
| 6302 | (I386_DR_GET_RW_LEN): Likewise. |
| 6303 | (I386_DR_WATCH_HIT): Likewise. |
| 6304 | (i386_wp_op_t): Likewise. |
| 6305 | (i386_show_dr): Likewise. |
| 6306 | (i386_length_and_rw_bits): Likewise. |
| 6307 | (i386_insert_aligned_watchpoint): Likewise. |
| 6308 | (i386_remove_aligned_watchpoint): Likewise. |
| 6309 | (i386_handle_nonaligned_watchpoint): Likewise. |
| 6310 | i386_update_inferior_debug_regs(): Likewise. |
| 6311 | (i386_dr_insert_watchpoint): Likewise. |
| 6312 | (i386_dr_remove_watchpoint): Likewise. |
| 6313 | (i386_dr_region_ok_for_watchpoint): Likewise. |
| 6314 | (i386_dr_stopped_data_address): Likewise. |
| 6315 | (i386_dr_stopped_by_watchpoint): Likewise. |
| 6316 | |
| 6317 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
| 6318 | |
| 6319 | * i386-low.c (i386_dr_show): Renamed to |
| 6320 | i386_show_dr and made static. All uses updated. |
| 6321 | (i386_dr_length_and_rw_bits): Renamed to |
| 6322 | i386_length_and_rw_bits and made static. |
| 6323 | All uses updated. |
| 6324 | (i386_dr_insert_aligned_watchpoint): Renamed to |
| 6325 | i386_insert_aligned_watchpoint and made static. |
| 6326 | All uses updated. |
| 6327 | (i386_dr_remove_aligned_watchpoint): Renamed to |
| 6328 | i386_remove_aligned_watchpoint and made static. |
| 6329 | All uses updated. |
| 6330 | (i386_dr_update_inferior_debug_regs): Renamed to |
| 6331 | i386_update_inferior_debug_regs and made static. |
| 6332 | All uses updated. |
| 6333 | |
| 6334 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6335 | |
| 6336 | * i386-low.h (i386_dr_low_can_set_addr): New macro. |
| 6337 | (i386_dr_low_can_set_control): Likewise. |
| 6338 | (i386_get_debug_register_length): Likewise. |
| 6339 | * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h. |
| 6340 | (i386_dr_low_can_set_control): Likewise. |
| 6341 | (i386_get_debug_register_length): Likewise. |
| 6342 | |
| 6343 | 2014-06-17 Gary Benson <gbenson@redhat.com> |
| 6344 | |
| 6345 | * i386-low.h (i386-dregs.h): New include. |
| 6346 | (DR_FIRSTADDR): Now in i386-dregs.h. |
| 6347 | (DR_LASTADDR): Likewise. |
| 6348 | (DR_NADDR): Likewise. |
| 6349 | (DR_STATUS): Likewise. |
| 6350 | (DR_CONTROL): Likewise. |
| 6351 | (i386_debug_reg_state): Likewise. |
| 6352 | (i386_dr_insert_watchpoint): Likewise. |
| 6353 | (i386_dr_remove_watchpoint): Likewise. |
| 6354 | (i386_dr_region_ok_for_watchpoint): Likewise. |
| 6355 | (i386_dr_stopped_data_address): Likewise. |
| 6356 | (i386_dr_stopped_by_watchpoint): Likewise. |
| 6357 | * i386-low.c (ALL_DEBUG_REGISTERS): Likewise. |
| 6358 | |
| 6359 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6360 | |
| 6361 | * i386-low.h (i386_low_insert_watchpoint): Renamed to |
| 6362 | i386_dr_insert_watchpoint. |
| 6363 | (i386_low_remove_watchpoint): Renamed to |
| 6364 | i386_dr_remove_watchpoint. |
| 6365 | (i386_low_region_ok_for_watchpoint): Renamed to |
| 6366 | i386_dr_region_ok_for_watchpoint. |
| 6367 | (i386_low_stopped_data_address): Renamed to |
| 6368 | i386_dr_stopped_data_address. |
| 6369 | (i386_low_stopped_by_watchpoint): Renamed to |
| 6370 | i386_dr_stopped_by_watchpoint. |
| 6371 | * i386-low.c (i386_show_dr): Renamed to |
| 6372 | i386_dr_show and made nonstatic. All uses updated. |
| 6373 | (i386_length_and_rw_bits): Renamed to |
| 6374 | i386_dr_length_and_rw_bits and made nonstatic. |
| 6375 | All uses updated. |
| 6376 | (i386_insert_aligned_watchpoint): Renamed to |
| 6377 | i386_dr_insert_aligned_watchpoint and made nonstatic. |
| 6378 | All uses updated. |
| 6379 | (i386_remove_aligned_watchpoint): Renamed to |
| 6380 | i386_dr_remove_aligned_watchpoint and made nonstatic. |
| 6381 | All uses updated. |
| 6382 | (i386_update_inferior_debug_regs): Renamed to |
| 6383 | i386_dr_update_inferior_debug_regs and made nonstatic. |
| 6384 | All uses updated. |
| 6385 | (i386_low_insert_watchpoint): Renamed to |
| 6386 | i386_dr_insert_watchpoint. All uses updated. |
| 6387 | (i386_low_remove_watchpoint): Renamed to |
| 6388 | i386_dr_remove_watchpoint. All uses updated. |
| 6389 | (i386_low_region_ok_for_watchpoint): Renamed to |
| 6390 | i386_dr_region_ok_for_watchpoint. All uses updated. |
| 6391 | (i386_low_stopped_data_address): Renamed to |
| 6392 | i386_dr_stopped_data_address. All uses updated. |
| 6393 | (i386_low_stopped_by_watchpoint): Renamed to |
| 6394 | i386_dr_stopped_by_watchpoint. All uses updated. |
| 6395 | |
| 6396 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6397 | |
| 6398 | * i386-low.c (i386_dr_low_can_set_addr): New macro. |
| 6399 | (i386_dr_low_can_set_control): Likewise. |
| 6400 | (i386_insert_aligned_watchpoint): New check. |
| 6401 | |
| 6402 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6403 | |
| 6404 | * i386-low.c (i386_update_inferior_debug_regs) <inf_state>: |
| 6405 | Renamed to state. |
| 6406 | |
| 6407 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6408 | |
| 6409 | * i386-low.c (i386_length_and_rw_bits): Use internal_error |
| 6410 | instead of fatal and error. |
| 6411 | (i386_handle_nonaligned_watchpoint): Likewise. |
| 6412 | |
| 6413 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6414 | |
| 6415 | * i386-low.c (i386_get_debug_register_length): New macro. |
| 6416 | (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro. |
| 6417 | (i386_show_dr): Use debug_printf instead of fprintf. Use |
| 6418 | phex to format values. |
| 6419 | |
| 6420 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6421 | |
| 6422 | * i386-low.h: Comment changes. |
| 6423 | * i386-low.c: Likewise. |
| 6424 | |
| 6425 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
| 6426 | |
| 6427 | * i386-low.c: Whitespace changes. |
| 6428 | |
| 6429 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
| 6430 | |
| 6431 | * utils.c (freeargv): Remove. |
| 6432 | |
| 6433 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
| 6434 | |
| 6435 | * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks. |
| 6436 | * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check. |
| 6437 | (parse_debug_format_options): Likewise. |
| 6438 | (gdbserver_usage): Likewise. |
| 6439 | * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables. |
| 6440 | (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty. |
| 6441 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link |
| 6442 | against libiberty. |
| 6443 | ($(LIBGNU)): Depend on libiberty. |
| 6444 | (all-lib): Recurse into all subdirs. |
| 6445 | (install-only): Invoke "install" target in subdirs. |
| 6446 | (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove |
| 6447 | targets. |
| 6448 | * configure: Rebuild. |
| 6449 | * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check |
| 6450 | for vasprintf, vsnprintf, or gettimeofday. |
| 6451 | * configure.srv: Don't add safe-ctype.o or lbasename.o to |
| 6452 | srv_tgtobj. |
| 6453 | |
| 6454 | 2014-06-05 Joel Brobecker <brobecker@adacore.com> |
| 6455 | |
| 6456 | * development.sh: Delete. |
| 6457 | * Makefile.in (config.status): Adjust dependency on development.sh. |
| 6458 | * configure.ac: Adjust development.sh source call. |
| 6459 | * configure: Regenerate. |
| 6460 | |
| 6461 | 2014-06-02 Pedro Alves <palves@redhat.com> |
| 6462 | |
| 6463 | * ax.c (gdb_free_agent_expr): New function. |
| 6464 | * ax.h (gdb_free_agent_expr): New declaration. |
| 6465 | * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands |
| 6466 | list. |
| 6467 | (clear_breakpoint_conditions, clear_breakpoint_commands): Make |
| 6468 | static. |
| 6469 | (clear_breakpoint_conditions_and_commands): New function. |
| 6470 | * mem-break.h (clear_breakpoint_conditions): Delete declaration. |
| 6471 | (clear_breakpoint_conditions_and_commands): New declaration. |
| 6472 | |
| 6473 | 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
| 6474 | |
| 6475 | * linux-aarch64-low.c (asm/ptrace.h): Include. |
| 6476 | |
| 6477 | 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6478 | |
| 6479 | Fix TLS access for -static -pthread. |
| 6480 | * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p. |
| 6481 | (thread_db_get_tls_address): Call it if LOAD_MODULE is zero. |
| 6482 | (thread_db_load_search, try_thread_db_load_1): Initialize it. |
| 6483 | |
| 6484 | 2014-05-20 Pedro Alves <palves@redhat.com> |
| 6485 | |
| 6486 | * linux-aarch64-low.c (aarch64_insert_point) |
| 6487 | (aarch64_remove_point): No longer check whether the type is |
| 6488 | supported here. Adjust to new interface. |
| 6489 | (the_low_target): Install aarch64_supports_z_point_type as |
| 6490 | supports_z_point_type method. |
| 6491 | * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function. |
| 6492 | (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type |
| 6493 | instead of a Z packet char. Adjust. |
| 6494 | (arm_supports_z_point_type): New function. |
| 6495 | (arm_insert_point, arm_remove_point): Adjust to new interface. |
| 6496 | (the_low_target): Install arm_supports_z_point_type. |
| 6497 | * linux-crisv32-low.c (cris_supports_z_point_type): New function. |
| 6498 | (cris_insert_point, cris_remove_point): Adjust to new interface. |
| 6499 | Don't check whether the type is supported here. |
| 6500 | (the_low_target): Install cris_supports_z_point_type. |
| 6501 | * linux-low.c (linux_supports_z_point_type): New function. |
| 6502 | (linux_insert_point, linux_remove_point): Adjust to new interface. |
| 6503 | * linux-low.h (struct linux_target_ops) <insert_point, |
| 6504 | remove_point>: Take an enum raw_bkpt_type instead of a char. Add |
| 6505 | raw_breakpoint pointer parameter. |
| 6506 | <supports_z_point_type>: New method. |
| 6507 | * linux-mips-low.c (mips_supports_z_point_type): New function. |
| 6508 | (mips_insert_point, mips_remove_point): Adjust to new interface. |
| 6509 | Use mips_supports_z_point_type. |
| 6510 | (the_low_target): Install mips_supports_z_point_type. |
| 6511 | * linux-ppc-low.c (the_low_target): Install NULL as |
| 6512 | supports_z_point_type method. |
| 6513 | * linux-s390-low.c (the_low_target): Install NULL as |
| 6514 | supports_z_point_type method. |
| 6515 | * linux-sparc-low.c (the_low_target): Install NULL as |
| 6516 | supports_z_point_type method. |
| 6517 | * linux-x86-low.c (x86_supports_z_point_type): New function. |
| 6518 | (x86_insert_point): Adjust to new insert_point interface. Use |
| 6519 | insert_memory_breakpoint. Adjust to new |
| 6520 | i386_low_insert_watchpoint interface. |
| 6521 | (x86_remove_point): Adjust to remove_point interface. Use |
| 6522 | remove_memory_breakpoint. Adjust to new |
| 6523 | i386_low_remove_watchpoint interface. |
| 6524 | (the_low_target): Install x86_supports_z_point_type. |
| 6525 | * lynx-low.c (lynx_target_ops): Install NULL as |
| 6526 | supports_z_point_type callback. |
| 6527 | * nto-low.c (nto_supports_z_point_type): New. |
| 6528 | (nto_insert_point, nto_remove_point): Adjust to new interface. |
| 6529 | (nto_target_ops): Install nto_supports_z_point_type. |
| 6530 | * mem-break.c: Adjust intro comment. |
| 6531 | (struct raw_breakpoint) <raw_type, size>: New fields. |
| 6532 | <inserted>: Update comment. |
| 6533 | <shlib_disabled>: Delete field. |
| 6534 | (enum bkpt_type) <gdb_breakpoint>: Delete value. |
| 6535 | <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2, |
| 6536 | gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values. |
| 6537 | (raw_bkpt_type_to_target_hw_bp_type): New function. |
| 6538 | (find_enabled_raw_code_breakpoint_at): New function. |
| 6539 | (find_raw_breakpoint_at): New type and size parameters. Use them. |
| 6540 | (insert_memory_breakpoint): New function, based off |
| 6541 | set_raw_breakpoint_at. |
| 6542 | (remove_memory_breakpoint): New function. |
| 6543 | (set_raw_breakpoint_at): Reimplement. |
| 6544 | (set_breakpoint): New, based on set_breakpoint_at. |
| 6545 | (set_breakpoint_at): Reimplement. |
| 6546 | (delete_raw_breakpoint): Go through the_target->remove_point |
| 6547 | instead of assuming memory breakpoints. |
| 6548 | (find_gdb_breakpoint_at): Delete. |
| 6549 | (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions. |
| 6550 | (find_gdb_breakpoint): New function. |
| 6551 | (set_gdb_breakpoint_at): Delete. |
| 6552 | (z_type_supported): New function. |
| 6553 | (set_gdb_breakpoint_1): New function, loosely based off |
| 6554 | set_gdb_breakpoint_at. |
| 6555 | (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions. |
| 6556 | (delete_gdb_breakpoint_at): Delete. |
| 6557 | (delete_gdb_breakpoint_1): New function, loosely based off |
| 6558 | delete_gdb_breakpoint_at. |
| 6559 | (delete_gdb_breakpoint): New function. |
| 6560 | (clear_gdb_breakpoint_conditions): Rename to ... |
| 6561 | (clear_breakpoint_conditions): ... this. Don't handle a NULL |
| 6562 | breakpoint. |
| 6563 | (add_condition_to_breakpoint): Make static. |
| 6564 | (add_breakpoint_condition): Take a struct breakpoint pointer |
| 6565 | instead of an address. Adjust. |
| 6566 | (gdb_condition_true_at_breakpoint): Rename to ... |
| 6567 | (gdb_condition_true_at_breakpoint_z_type): ... this, and add |
| 6568 | z_type parameter. |
| 6569 | (gdb_condition_true_at_breakpoint): Reimplement. |
| 6570 | (add_breakpoint_commands): Take a struct breakpoint pointer |
| 6571 | instead of an address. Adjust. |
| 6572 | (gdb_no_commands_at_breakpoint): Rename to ... |
| 6573 | (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type |
| 6574 | parameter. Return true if no breakpoint was found. Change debug |
| 6575 | output. |
| 6576 | (gdb_no_commands_at_breakpoint): Reimplement. |
| 6577 | (run_breakpoint_commands): Rename to ... |
| 6578 | (run_breakpoint_commands_z_type): ... this. Add z_type parameter, |
| 6579 | and change return type to boolean. |
| 6580 | (run_breakpoint_commands): New function. |
| 6581 | (gdb_breakpoint_here): Also check for Z1 breakpoints. |
| 6582 | (uninsert_raw_breakpoint): Don't try to reinsert a disabled |
| 6583 | breakpoint. Go through the_target->remove_point instead of |
| 6584 | assuming memory breakpoint. |
| 6585 | (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert |
| 6586 | software and hardware breakpoints. |
| 6587 | (reinsert_raw_breakpoint): Go through the_target->insert_point |
| 6588 | instead of assuming memory breakpoint. |
| 6589 | (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert |
| 6590 | software and hardware breakpoints. |
| 6591 | (check_breakpoints, breakpoint_here, breakpoint_inserted_here): |
| 6592 | Check both software and hardware breakpoints. |
| 6593 | (validate_inserted_breakpoint): Assert the breakpoint is a |
| 6594 | software breakpoint. Set the inserted flag to -1 instead of |
| 6595 | setting shlib_disabled. |
| 6596 | (delete_disabled_breakpoints): Adjust. |
| 6597 | (validate_breakpoints): Only validate software breakpoints. |
| 6598 | Adjust to inserted flag change. |
| 6599 | (check_mem_read, check_mem_write): Skip breakpoint types other |
| 6600 | than software breakpoints. Adjust to inserted flag change. |
| 6601 | * mem-break.h (enum raw_bkpt_type): New enum. |
| 6602 | (raw_breakpoint, struct process_info): Forward declare. |
| 6603 | (Z_packet_to_target_hw_bp_type): Delete declaration. |
| 6604 | (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type) |
| 6605 | (set_gdb_breakpoint, delete_gdb_breakpoint) |
| 6606 | (clear_breakpoint_conditions): New declarations. |
| 6607 | (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete. |
| 6608 | (breakpoint_inserted_here): Update comment. |
| 6609 | (add_breakpoint_condition, add_breakpoint_commands): Replace |
| 6610 | address parameter with a breakpoint pointer parameter. |
| 6611 | (gdb_breakpoint_here): Update comment. |
| 6612 | (delete_gdb_breakpoint_at): Delete. |
| 6613 | (insert_memory_breakpoint, remove_memory_breakpoint): Declare. |
| 6614 | * server.c (process_point_options): Take a struct breakpoint |
| 6615 | pointer instead of an address. Adjust. |
| 6616 | (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and |
| 6617 | delete_gdb_breakpoint. |
| 6618 | * spu-low.c (spu_target_ops): Install NULL as |
| 6619 | supports_z_point_type method. |
| 6620 | * target.h: Include mem-break.h. |
| 6621 | (struct target_ops) <prepare_to_access_memory>: Update comment. |
| 6622 | <supports_z_point_type>: New field. |
| 6623 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument |
| 6624 | instead of a char. Also take a raw breakpoint pointer. |
| 6625 | * win32-arm-low.c (the_low_target): Install NULL as |
| 6626 | supports_z_point_type. |
| 6627 | * win32-i386-low.c (i386_supports_z_point_type): New function. |
| 6628 | (i386_insert_point, i386_remove_point): Adjust to new interface. |
| 6629 | (the_low_target): Install i386_supports_z_point_type. |
| 6630 | * win32-low.c (win32_supports_z_point_type): New function. |
| 6631 | (win32_insert_point, win32_remove_point): Adjust to new interface. |
| 6632 | (win32_target_ops): Install win32_supports_z_point_type. |
| 6633 | * win32-low.h (struct win32_target_ops): |
| 6634 | <supports_z_point_type>: New method. |
| 6635 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument |
| 6636 | instead of a char. Also take a raw breakpoint pointer. |
| 6637 | |
| 6638 | 2014-05-20 Pedro Alves <palves@redhat.com> |
| 6639 | |
| 6640 | * mem-break.h: Include break-common.h. |
| 6641 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) |
| 6642 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines. |
| 6643 | (Z_packet_to_target_hw_bp_type): New declaration. |
| 6644 | * mem-break.c (Z_packet_to_target_hw_bp_type): New function. |
| 6645 | * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP) |
| 6646 | (Z_PACKET_ACCESS_WP): Delete macros. |
| 6647 | (Z_packet_to_hw_type): Delete function. |
| 6648 | * i386-low.h: Don't include break-common.h here. |
| 6649 | (Z_packet_to_hw_type): Delete declaration. |
| 6650 | * linux-x86-low.c (x86_insert_point, x86_insert_point): Call |
| 6651 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. |
| 6652 | * win32-i386-low.c (i386_insert_point, i386_remove_point): Call |
| 6653 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. |
| 6654 | * linux-aarch64-low.c: Don't include break-common.h here. |
| 6655 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) |
| 6656 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros. |
| 6657 | (Z_packet_to_target_hw_bp_type): Delete function. |
| 6658 | * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete |
| 6659 | function. |
| 6660 | (mips_insert_point, mips_remove_point): Use |
| 6661 | Z_packet_to_target_hw_bp_type. |
| 6662 | |
| 6663 | 2014-05-20 Pedro Alves <palves@redhat.com> |
| 6664 | |
| 6665 | * linux-aarch64-low.c: Include break-common.h. |
| 6666 | (enum target_point_type): Delete. |
| 6667 | (Z_packet_to_point_type): Rename to ... |
| 6668 | (Z_packet_to_target_hw_bp_type): ... this, and return a |
| 6669 | target_hw_bp_type instead. |
| 6670 | (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type |
| 6671 | instead of an enum target_point_type. |
| 6672 | (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from |
| 6673 | breakpoint type. |
| 6674 | (aarch64_dr_state_insert_one_point) |
| 6675 | (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint) |
| 6676 | (aarch64_handle_aligned_watchpoint) |
| 6677 | (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint): |
| 6678 | Take an enum target_hw_bp_type instead of an enum |
| 6679 | target_point_type. |
| 6680 | (aarch64_supports_z_point_type): New function. |
| 6681 | (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to |
| 6682 | use Z_packet_to_target_hw_bp_type. |
| 6683 | |
| 6684 | 2014-05-20 Joel Brobecker <brobecker@adacore.com> |
| 6685 | |
| 6686 | * configure.ac: Only use -Werror by default when DEVELOPMENT |
| 6687 | is true. |
| 6688 | * configure: Regenerate. |
| 6689 | |
| 6690 | 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 6691 | |
| 6692 | Fix gdbserver qGetTLSAddr for x86_64 -m32. |
| 6693 | * linux-x86-low.c (X86_64_USER_REGS): New. |
| 6694 | (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case. |
| 6695 | |
| 6696 | 2014-04-28 Yao Qi <yao@codesourcery.com> |
| 6697 | |
| 6698 | * Makefile.in (i386-avx512.c): Fix the typo of generated file |
| 6699 | name. |
| 6700 | |
| 6701 | 2014-04-25 Pedro Alves <palves@redhat.com> |
| 6702 | |
| 6703 | PR server/16255 |
| 6704 | * linux-low.c (linux_attach_fail_reason_string): New function. |
| 6705 | (linux_attach_lwp): Delete. |
| 6706 | (linux_attach_lwp_1): Rename to ... |
| 6707 | (linux_attach_lwp): ... this. Take a ptid instead of a pid as |
| 6708 | argument. Remove "initial" parameter. Return int instead of |
| 6709 | void. Don't error or warn here. |
| 6710 | (linux_attach): Adjust to call linux_attach_lwp. Call error on |
| 6711 | failure to attach to the tgid. Call warning when failing to |
| 6712 | attach to an lwp. |
| 6713 | * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as |
| 6714 | argument. Remove "initial" parameter. Return int instead of |
| 6715 | void. Don't error or warn here. |
| 6716 | (linux_attach_fail_reason_string): New declaration. |
| 6717 | * thread-db.c (attach_thread): Adjust to linux_attach_lwp's |
| 6718 | interface change. Use linux_attach_fail_reason_string. |
| 6719 | |
| 6720 | 2014-04-24 Michael Sturm <michael.sturm@mintel.com> |
| 6721 | Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 6722 | |
| 6723 | * Makefile.in: Added rules to handle new files |
| 6724 | i386-avx512.c i386-avx512-linux.c amd64-avx512.c |
| 6725 | amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c. |
| 6726 | * configure.srv (srv_i386_regobj): Add i386-avx512.o. |
| 6727 | (srv_i386_linux_regobj): Add i386-avx512-linux.o. |
| 6728 | (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o. |
| 6729 | (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and |
| 6730 | x32-avx512-linux.o. |
| 6731 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml. |
| 6732 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml. |
| 6733 | (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and |
| 6734 | i386/x32-avx512.xml. |
| 6735 | (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml. |
| 6736 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and |
| 6737 | i386/x32-avx512-linux.xml. |
| 6738 | * i387-fp.c (num_avx512_k_registers): New constant for number |
| 6739 | of K registers. |
| 6740 | (num_avx512_zmmh_low_registers): New constant for number of |
| 6741 | lower ZMM registers (0-15). |
| 6742 | (num_avx512_zmmh_high_registers): New constant for number of |
| 6743 | higher ZMM registers (16-31). |
| 6744 | (num_avx512_ymmh_registers): New contant for number of higher |
| 6745 | YMM registers (ymm16-31 added by avx521 on x86_64). |
| 6746 | (num_avx512_xmm_registers): New constant for number of higher |
| 6747 | XMM registers (xmm16-31 added by AVX512 on x86_64). |
| 6748 | (struct i387_xsave): Add space for AVX512 registers. |
| 6749 | (i387_cache_to_xsave): Change raw buffer size to 64 characters. |
| 6750 | Add code to handle AVX512 registers. |
| 6751 | (i387_xsave_to_cache): Add code to handle AVX512 registers. |
| 6752 | * linux-x86-low.c (init_registers_amd64_avx512_linux): New |
| 6753 | prototypei from generated file. |
| 6754 | (tdesc_amd64_avx512_linux): Likewise. |
| 6755 | (init_registers_x32_avx512_linux): Likewise. |
| 6756 | (tdesc_x32_avx512_linux): Likewise. |
| 6757 | (init_registers_i386_avx512_linux): Likewise. |
| 6758 | (tdesc_i386_avx512_linux): Likewise. |
| 6759 | (x86_64_regmap): Add AVX512 registers. |
| 6760 | (x86_linux_read_description): Add code to handle AVX512 XSTATE |
| 6761 | mask. |
| 6762 | (initialize_low_arch): Add code to initialize AVX512 registers. |
| 6763 | |
| 6764 | 2014-04-23 Pedro Alves <palves@redhat.com> |
| 6765 | |
| 6766 | * mem-break.c (find_gdb_breakpoint_at): Make static. |
| 6767 | * mem-break.h (find_gdb_breakpoint_at): Delete declaration. |
| 6768 | |
| 6769 | 2014-04-23 Pedro Alves <palves@redhat.com> |
| 6770 | |
| 6771 | * i386-low.c: Don't include break-common.h here. |
| 6772 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change |
| 6773 | prototype to take target_hw_bp_type as argument instead of a Z |
| 6774 | packet char. |
| 6775 | * i386-low.h: Include break-common.h here. |
| 6776 | (Z_packet_to_hw_type): Declare. |
| 6777 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change |
| 6778 | prototypes. |
| 6779 | * linux-x86-low.c (x86_insert_point): Convert the packet number to |
| 6780 | a target_hw_bp_type before calling i386_low_insert_watchpoint. |
| 6781 | (x86_remove_point): Convert the packet number to a |
| 6782 | target_hw_bp_type before calling i386_low_remove_watchpoint. |
| 6783 | * win32-i386-low.c (i386_insert_point): Convert the packet number |
| 6784 | to a target_hw_bp_type before calling i386_low_insert_watchpoint. |
| 6785 | (i386_remove_point): Convert the packet number to a |
| 6786 | target_hw_bp_type before calling i386_low_remove_watchpoint. |
| 6787 | |
| 6788 | 2014-04-23 Pedro Alves <palves@redhat.com> |
| 6789 | |
| 6790 | * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN. |
| 6791 | |
| 6792 | 2014-04-10 Pedro Alves <palves@redhat.com> |
| 6793 | |
| 6794 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): |
| 6795 | Check if the condition or command is NULL before checking if the |
| 6796 | breakpoint is known. On success, return true. |
| 6797 | * mem-break.h (add_breakpoint_condition): Document return. |
| 6798 | (add_breakpoint_commands): Add describing comment. |
| 6799 | * server.c (skip_to_semicolon): New function. |
| 6800 | (process_point_options): Use it. |
| 6801 | |
| 6802 | 2014-04-09 Pedro Alves <palves@redhat.com> |
| 6803 | |
| 6804 | * linux-low.c (linux_read_loadmap): Pass current_inferior directly |
| 6805 | to lwpid_of. |
| 6806 | |
| 6807 | 2014-02-27 Pedro Alves <palves@redhat.com> |
| 6808 | |
| 6809 | PR 12702 |
| 6810 | * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New |
| 6811 | macros. |
| 6812 | * linux-low.c (delete_lwp, handle_extended_wait): Add debug |
| 6813 | output. |
| 6814 | (last_thread_of_process_p): Take a PID argument instead of a |
| 6815 | thread pointer. |
| 6816 | (linux_wait_for_lwp): Delete. |
| 6817 | (num_lwps, check_zombie_leaders, not_stopped_callback): New |
| 6818 | functions. |
| 6819 | (linux_low_filter_event): New function, party factored out from |
| 6820 | linux_wait_for_event. |
| 6821 | (linux_wait_for_event): Rename to ... |
| 6822 | (linux_wait_for_event_filtered): ... this. Add new filter ptid |
| 6823 | argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and |
| 6824 | sigsuspend. Check for zombie leaders. |
| 6825 | (linux_wait_for_event): Reimplement as wrapper around |
| 6826 | linux_wait_for_event_filtered. |
| 6827 | (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if |
| 6828 | a normal or signal exit is seen, it's the whole process exiting. |
| 6829 | (wait_for_sigstop): No longer a for_each_inferior callback. |
| 6830 | Rewrite on top of linux_wait_for_event_filtered. |
| 6831 | (stop_all_lwps): Call wait_for_sigstop directly. |
| 6832 | * server.c (resume, handle_target_event): Handle |
| 6833 | TARGET_WAITKIND_NO_RESUMED. |
| 6834 | |
| 6835 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
| 6836 | |
| 6837 | * win32-low.c (psapi_get_dll_name, |
| 6838 | * win32_CreateToolhelp32Snapshot): Delete. |
| 6839 | (win32_CreateToolhelp32Snapshot, win32_Module32First) |
| 6840 | (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name): |
| 6841 | Delete. |
| 6842 | (handle_load_dll): Add function description. |
| 6843 | Remove code using psapi_get_dll_name and toolhelp_get_dll_name. |
| 6844 | |
| 6845 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
| 6846 | |
| 6847 | * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr. |
| 6848 | Add comment. |
| 6849 | (win32_add_all_dlls): Remove 0x1000 offset applied to DLL |
| 6850 | base address when calling win32_add_one_solib. |
| 6851 | (handle_load_dll): Delete local variable load_addr. |
| 6852 | Remove 0x1000 offset applied to DLL base address when calling |
| 6853 | win32_add_one_solib. |
| 6854 | (handle_unload_dll): Add comment. |
| 6855 | |
| 6856 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
| 6857 | |
| 6858 | * win32-low.c (win32_add_all_dlls): Renames |
| 6859 | win32_ensure_ntdll_loaded. Rewrite function documentation. |
| 6860 | Adjust implementation to always load all DLLs. |
| 6861 | Add 0x1000 offset to DLL base address when calling |
| 6862 | win32_add_one_solib. |
| 6863 | (child_initialization_done): New static global. |
| 6864 | (do_initial_child_stuff): Set child_initialization_done to |
| 6865 | zero during child initialization, and 1 after. Replace call |
| 6866 | to win32_ensure_ntdll_loaded by call to win32_add_all_dlls. |
| 6867 | Add comment. |
| 6868 | (match_dll_by_basename, dll_is_loaded_by_basename): Delete. |
| 6869 | (handle_unload_dll): Add function documentation. |
| 6870 | (get_child_debug_event): Ignore load and unload DLL events |
| 6871 | during child initialization. |
| 6872 | |
| 6873 | 2014-02-20 Doug Evans <dje@google.com> |
| 6874 | |
| 6875 | Remove global all_lwps. |
| 6876 | * inferiors.h (ptid_of): Move here from linux-low.h. |
| 6877 | (pid_of, lwpid_of): Ditto. |
| 6878 | * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry" |
| 6879 | parameter is a struct thread_info * now. |
| 6880 | (aarch64_notify_debug_reg_change): Fetch pid from current_inferior |
| 6881 | directly. Pass &all_threads to find_inferior instead of &all_lwps. |
| 6882 | (aarch64_stopped_data_address): Fetch lwpid from current_inferior |
| 6883 | directly. |
| 6884 | (aarch64_linux_prepare_to_resume): Fetch ptid from thread. |
| 6885 | (aarch64_arch_setup): Fetch lwpid from current_inferior directly. |
| 6886 | * linux-arm-low.c (update_registers_callback): Update, "entry" |
| 6887 | parameter is a struct thread_info * now. |
| 6888 | Fetch lwpid from current_inferior directly. |
| 6889 | (arm_insert_point): Pass &all_threads to find_inferior instead of |
| 6890 | &all_lwps. |
| 6891 | (arm_remove_point): Ditto. |
| 6892 | (arm_stopped_by_watchpoint): Fetch lwp from current_inferior. |
| 6893 | (arm_prepare_to_resume): Fetch pid from thread. |
| 6894 | (arm_read_description): Fetch lwpid from current_inferior directly. |
| 6895 | * linux-low.c (all_lwps): Delete. |
| 6896 | (delete_lwp): Delete call to remove_inferior. |
| 6897 | (handle_extended_wait): Fetch lwpid from thread. |
| 6898 | (add_lwp): Don't set lwp->entry.id. Remove call to |
| 6899 | add_inferior_to_list. |
| 6900 | (linux_attach_lwp_1): Fetch pid from current_inferior directly. |
| 6901 | (linux_kill_one_lwp): Fetch ptid,lwpid from thread. |
| 6902 | (kill_one_lwp_callback): Ditto. |
| 6903 | (linux_kill): Don't dereference NULL pointer. |
| 6904 | Fetch ptid,lwpid from thread. |
| 6905 | (get_detach_signal): Fetch ptid from thread. |
| 6906 | (linux_detach_one_lwp): Fetch ptid,lwpid from thread. |
| 6907 | Simplify call to regcache_invalidate_thread. |
| 6908 | (delete_lwp_callback): Update, "entry" parameter is a |
| 6909 | struct thread_info * now. Fetch pid from thread. |
| 6910 | (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps. |
| 6911 | (status_pending_p_callback): Update, "entry" parameter is a |
| 6912 | struct thread_info * now. Fetch ptid from thread. |
| 6913 | (find_lwp_pid): Update, "entry" parameter is a |
| 6914 | struct thread_info * now. |
| 6915 | (linux_wait_for_lwp): Fetch pid from thread. |
| 6916 | (linux_fast_tracepoint_collecting): Fetch lwpid from thread. |
| 6917 | (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior. |
| 6918 | (enqueue_one_deferred_signal): Fetch lwpid from thread. |
| 6919 | (dequeue_one_deferred_signal): Ditto. |
| 6920 | (cancel_breakpoint): Fetch ptid from current_inferior. |
| 6921 | (linux_wait_for_event): Pass &all_threads to find_inferior, |
| 6922 | not &all_lwps. Fetch ptid, lwpid from thread. |
| 6923 | (count_events_callback): Update, "entry" parameter is a |
| 6924 | struct thread_info * now. |
| 6925 | (select_singlestep_lwp_callback): Ditto. |
| 6926 | (select_event_lwp_callback): Ditto. |
| 6927 | (cancel_breakpoints_callback): Ditto. |
| 6928 | (linux_cancel_breakpoints): Pass &all_threads to find_inferior, |
| 6929 | not &all_lwps. |
| 6930 | (select_event_lwp): Ditto. Fetch ptid from event_thread. |
| 6931 | (unsuspend_one_lwp): Update, "entry" parameter is a |
| 6932 | struct thread_info * now. |
| 6933 | (unsuspend_all_lwps): Pass &all_threads to find_inferior, |
| 6934 | not &all_lwps. |
| 6935 | (linux_stabilize_threads): Ditto. And for for_each_inferior. |
| 6936 | Fetch lwpid from thread, not lwp. |
| 6937 | (linux_wait_1): Fetch ptid, lwpid from current_inferior. |
| 6938 | Pass &all_threads to find_inferior, not &all_lwps. |
| 6939 | (send_sigstop): Fetch lwpid from thread, not lwp. |
| 6940 | (send_sigstop_callback): Update, "entry" parameter is a |
| 6941 | struct thread_info * now. |
| 6942 | (suspend_and_send_sigstop_callback): Ditto. |
| 6943 | (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp. |
| 6944 | (stuck_in_jump_pad_callback): Update, "entry" parameter is a |
| 6945 | struct thread_info * now. |
| 6946 | (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid |
| 6947 | from thread, lwp. |
| 6948 | (lwp_running): Update, "entry" parameter is a |
| 6949 | struct thread_info * now. |
| 6950 | (stop_all_lwps): Fetch ptid from thread. |
| 6951 | Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps. |
| 6952 | (linux_resume_one_lwp): Fetch lwpid from thread. |
| 6953 | (linux_set_resume_request): Update, "entry" parameter is a |
| 6954 | struct thread_info * now. Fetch pid, lwpid from thread. |
| 6955 | (resume_status_pending_p): Update, "entry" parameter is a |
| 6956 | struct thread_info * now. |
| 6957 | (need_step_over_p): Ditto. Fetch lwpid from thread. |
| 6958 | (start_step_over): Fetch lwpid from thread. |
| 6959 | (linux_resume_one_thread): Update, "entry" parameter is a |
| 6960 | struct thread_info * now. Fetch lwpid from thread. |
| 6961 | (linux_resume): Pass &all_threads to find_inferior, not &all_lwps. |
| 6962 | (proceed_one_lwp): Update, "entry" parameter is a |
| 6963 | struct thread_info * now. Fetch lwpid from thread. |
| 6964 | (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a |
| 6965 | struct thread_info * now. |
| 6966 | (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps. |
| 6967 | (unstop_all_lwps): Ditto. Fetch lwpid from thread. |
| 6968 | (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior |
| 6969 | directly. |
| 6970 | (regsets_store_inferior_registers): Ditto. |
| 6971 | (fetch_register, store_register): Ditto. |
| 6972 | (linux_read_memory, linux_write_memory): Ditto. |
| 6973 | (linux_request_interrupt): Ditto. |
| 6974 | (linux_read_auxv): Ditto. |
| 6975 | (linux_xfer_siginfo): Ditto. |
| 6976 | (linux_qxfer_spu): Ditto. |
| 6977 | (linux_qxfer_libraries_svr4): Ditto. |
| 6978 | * linux-low.h (ptid_of, pid_of, lwpid_of): Delete, |
| 6979 | moved to inferiors.h. |
| 6980 | (get_lwp): Delete. |
| 6981 | (get_thread_lwp): Update. |
| 6982 | (struct lwp_info): Delete member "entry". Simplify comment for |
| 6983 | member "thread". |
| 6984 | (all_lwps): Delete. |
| 6985 | * linux-mips-low.c (mips_read_description): Fetch lwpid from |
| 6986 | current_inferior directly. |
| 6987 | (update_watch_registers_callback): Update, "entry" parameter is a |
| 6988 | struct thread_info * now. Fetch pid from thread. |
| 6989 | (mips_linux_prepare_to_resume): Fetch ptid from thread. |
| 6990 | (mips_insert_point): Fetch lwpid from current_inferior. |
| 6991 | Pass &all_threads to find_inferior, not &all_lwps. |
| 6992 | (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps. |
| 6993 | (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior |
| 6994 | directly. |
| 6995 | (mips_stopped_data_address): Ditto. |
| 6996 | * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior |
| 6997 | directly. |
| 6998 | * linux-tile-low.c (tile_arch_setup): Ditto. |
| 6999 | * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread. |
| 7000 | (update_debug_registers_callback): Update, "entry" parameter is a |
| 7001 | struct thread_info * now. Fetch pid from thread. |
| 7002 | (i386_dr_low_set_addr): Fetch pid from current_inferior directly. |
| 7003 | Pass &all_threads to find_inferior, not &all_lwps. |
| 7004 | (i386_dr_low_get_addr): Fetch ptid from current_inferior directly. |
| 7005 | (i386_dr_low_set_control): Fetch pid from current_inferior directly. |
| 7006 | Pass &all_threads to find_inferior, not &all_lwps. |
| 7007 | (i386_dr_low_get_control): Fetch ptid from current_inferior directly. |
| 7008 | (i386_dr_low_get_status): Ditto. |
| 7009 | (x86_linux_prepare_to_resume): Fetch ptid from thread. |
| 7010 | (x86_siginfo_fixup): Fetch lwpid from current_inferior directly. |
| 7011 | (x86_linux_read_description): Ditto. |
| 7012 | * proc-service.c (ps_getpid): Fetch pid from current_inferior directly. |
| 7013 | |
| 7014 | 2014-02-20 Doug Evans <dje@google.com> |
| 7015 | |
| 7016 | * inferiors.c (get_first_inferior): Fix buglet. |
| 7017 | |
| 7018 | 2014-02-19 Doug Evans <dje@google.com> |
| 7019 | |
| 7020 | * gdbthread.h (add_thread): Change result type to struct thread_info *. |
| 7021 | * inferiors.c (add_thread): Change result type to struct thread_info *. |
| 7022 | All callers updated. |
| 7023 | (add_lwp): Call add_thread here instead of in callers. |
| 7024 | All callers updated. |
| 7025 | * linux-low.h (get_lwp_thread): Rewrite. |
| 7026 | (struct lwp_info): New member "thread". |
| 7027 | |
| 7028 | 2014-02-19 Doug Evans <dje@google.com> |
| 7029 | |
| 7030 | * linux-low.c (add_lwp): Change result to struct lwp_info *. |
| 7031 | All callers updated. |
| 7032 | |
| 7033 | 2014-02-19 Doug Evans <dje@google.com> |
| 7034 | |
| 7035 | * inferiors.c (add_thread): Fix whitespace. |
| 7036 | |
| 7037 | 2014-02-19 Doug Evans <dje@google.com> |
| 7038 | |
| 7039 | * dll.c (clear_dlls): Replace accessing list implemention details |
| 7040 | with API function. |
| 7041 | * gdbthread.h (get_first_thread): Declare. |
| 7042 | * inferiors.c (for_each_inferior_with_data): New function. |
| 7043 | (get_first_thread): New function. |
| 7044 | (find_thread_ptid): Simplify. |
| 7045 | (get_first_inferior): New function. |
| 7046 | (clear_list): Delete. |
| 7047 | (one_inferior_p): New function. |
| 7048 | (clear_inferior_list): New function. |
| 7049 | (clear_inferiors): Update. |
| 7050 | * inferiors.h (for_each_inferior_with_data): Declare. |
| 7051 | (clear_inferior_list): Declare. |
| 7052 | (one_inferior_p): Declare. |
| 7053 | (get_first_inferior): Declare. |
| 7054 | * linux-low.c (linux_wait_for_event): Replace accessing list |
| 7055 | implemention details with API function. |
| 7056 | * server.c (target_running): Ditto. |
| 7057 | (accumulate_file_name_length): New function. |
| 7058 | (emit_dll_description): New function. |
| 7059 | (handle_qxfer_libraries): Replace accessing list implemention |
| 7060 | details with API function. |
| 7061 | (handle_qxfer_threads_worker): New function. |
| 7062 | (handle_qxfer_threads_proper): Replace accessing list implemention |
| 7063 | details with API function. |
| 7064 | (handle_query): Ditto. |
| 7065 | (visit_actioned_threads_callback_ftype): New typedef. |
| 7066 | (visit_actioned_threads_data): New struct. |
| 7067 | (visit_actioned_threads): Rewrite to be find_inferior callback. |
| 7068 | (resume): Call find_inferior. |
| 7069 | (handle_status): Replace accessing list implemention |
| 7070 | details with API function. |
| 7071 | (process_serial_event): Replace accessing list implemention details |
| 7072 | with API function. |
| 7073 | * target.c (set_desired_inferior): Replace accessing list implemention |
| 7074 | details with API function. |
| 7075 | * tracepoint.c (same_process_p): New function. |
| 7076 | (gdb_agent_about_to_close): Replace accessing list implemention |
| 7077 | details with API function. |
| 7078 | * win32-low.c (child_delete_thread): Replace accessing list |
| 7079 | implemention details with API function. |
| 7080 | (match_dll_by_basename): New function. |
| 7081 | (dll_is_loaded_by_basename): New function. |
| 7082 | (win32_ensure_ntdll_loaded): Replace accessing list implemention |
| 7083 | details call to dll_is_loaded_by_basename. |
| 7084 | |
| 7085 | 2014-02-19 Doug Evans <dje@google.com> |
| 7086 | |
| 7087 | * dll.h (struct dll_info): Add comment. |
| 7088 | * gdbthread.h (struct thread_info): Add comment. |
| 7089 | (current_ptid): Simplify. |
| 7090 | * inferiors.c (add_process): Update. |
| 7091 | (remove_process): Update. |
| 7092 | * inferiors.h (struct process_info): Rename member "head" to "entry". |
| 7093 | * linux-low.c (delete_lwp): Update. |
| 7094 | (add_lwp): Update. |
| 7095 | (last_thread_of_process_p): Update. |
| 7096 | (kill_one_lwp_callback, linux_kill): Update. |
| 7097 | (status_pending_p_callback): Update. |
| 7098 | (wait_for_sigstop): Update. Simplify read of ptid. |
| 7099 | (start_step_over): Update. |
| 7100 | * linux-low.h (ptid_of, pid_of, lwpid_of): Update. |
| 7101 | (get_lwp_thread): Update. |
| 7102 | (struct lwp_info): Rename member "head" to "entry". |
| 7103 | * regcache.h (inferior_list_entry): Delete. |
| 7104 | * server.c (kill_inferior_callback): Update. |
| 7105 | (detach_or_kill_inferior_callback): Update. |
| 7106 | (print_started_pid): Update. |
| 7107 | (print_attached_pid): Update. |
| 7108 | (process_serial_event): Simplify read of ptid. |
| 7109 | * thread-db.c (thread_db_create_event): Update. |
| 7110 | (thread_db_get_tls_address): Update. |
| 7111 | * win32-low.c (current_inferior_ptid): Simplify. |
| 7112 | |
| 7113 | 2014-02-19 Tom Tromey <tromey@redhat.com> |
| 7114 | |
| 7115 | * target.h (struct target_ops) <supports_btrace>: Add target_ops |
| 7116 | argument. |
| 7117 | (target_supports_btrace): Update. |
| 7118 | |
| 7119 | 2014-02-14 Yao Qi <yao@codesourcery.com> |
| 7120 | |
| 7121 | * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o. |
| 7122 | (rsp-low-ipa.o): New target. |
| 7123 | |
| 7124 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
| 7125 | |
| 7126 | * ax.c (gdb_parse_agent_expr): Use hex2bin, not |
| 7127 | convert_ascii_to_int. |
| 7128 | * regcache.c (registers_to_string): Likewise. |
| 7129 | * remote-utils.c (decode_M_packet): Likewise. |
| 7130 | * server.c (process_serial_event): Likewise. |
| 7131 | |
| 7132 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
| 7133 | |
| 7134 | * server.c (handle_query, handle_v_run): Use hex2bin, not |
| 7135 | unhexify. |
| 7136 | * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise. |
| 7137 | |
| 7138 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
| 7139 | |
| 7140 | * ax.c (gdb_unparse_agent_expr): Use bin2hex, not |
| 7141 | convert_int_to_ascii. |
| 7142 | * regcache.c (registers_to_string, collect_register_as_string): |
| 7143 | Likewise. |
| 7144 | * remote-utils.c (look_up_one_symbol, relocate_instruction): |
| 7145 | Likewise. |
| 7146 | * server.c (process_serial_event): Likewise. |
| 7147 | * tracepoint.c (cmd_qtstatus, response_source, response_tsv) |
| 7148 | (cmd_qtbuffer, cstr_to_hexstr): Likewise. |
| 7149 | |
| 7150 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
| 7151 | |
| 7152 | * remote-utils.c (look_up_one_symbol, monitor_output): Use |
| 7153 | bin2hex, not hexify. |
| 7154 | * tracepoint.c (cmd_qtstatus): Likewise. |
| 7155 | |
| 7156 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
| 7157 | |
| 7158 | * remote-utils.c (monitor_output): Pass explicit length to |
| 7159 | hexify. |
| 7160 | |
| 7161 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
| 7162 | |
| 7163 | * tracepoint.c: Include rsp-low.h. |
| 7164 | * server.c: Include rsp-low.h. |
| 7165 | * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii) |
| 7166 | (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't |
| 7167 | declare. |
| 7168 | * remote-utils.c: Include rsp-low.h. |
| 7169 | (fromhex, hexchars, ishex, unhexify, tohex, hexify) |
| 7170 | (remote_escape_output, remote_unescape_input, unpack_varlen_hex) |
| 7171 | (convert_int_to_ascii, convert_ascii_to_int): Move to |
| 7172 | common/rsp-low.c. |
| 7173 | * regcache.c: Include rsp-low.h. |
| 7174 | * ax.c: Include rsp-low.h. |
| 7175 | * Makefile.in (SFILES): Add common/rsp-low.c. |
| 7176 | (OBS): Add rsp-low.o. |
| 7177 | (rsp-low.o): New target. |
| 7178 | |
| 7179 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
| 7180 | |
| 7181 | * utils.h (pulongest, plongest, phex_nz): Don't declare. |
| 7182 | Include print-utils.h. |
| 7183 | * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest) |
| 7184 | (plongest, thirty_two, phex_nz): Remove. |
| 7185 | * Makefile.in (SFILES): Add common/print-utils.c. |
| 7186 | (OBS): Add print-utils.o. |
| 7187 | (print-utils-ipa.o): New target. |
| 7188 | (print-utils.o): New target. |
| 7189 | (IPA_OBJS): Add print-utils-ipa.o. |
| 7190 | |
| 7191 | 2014-02-06 Tom Tromey <tromey@redhat.com> |
| 7192 | |
| 7193 | * Makefile.in (SFILES): Fix indentation. |
| 7194 | |
| 7195 | 2014-02-05 Doug Evans <dje@google.com> |
| 7196 | |
| 7197 | * linux-low.c (linux_wait_for_event): Improve comment. |
| 7198 | (linux_wait_1): Keep current_inferior in sync with event_child. |
| 7199 | |
| 7200 | 2014-01-22 Doug Evans <dje@google.com> |
| 7201 | |
| 7202 | * gdbthread.h (gdb_id_to_thread): Delete, unused. |
| 7203 | |
| 7204 | 2014-01-22 Doug Evans <dje@google.com> |
| 7205 | |
| 7206 | * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday. |
| 7207 | * configure: Regenerate. |
| 7208 | * config.in: Regenerate. |
| 7209 | * Makefile.in (SFILES): Add debug.c. |
| 7210 | (OBS): Add debug.o. |
| 7211 | * debug.c: New file. |
| 7212 | * debug.h: New file. |
| 7213 | * linux-aarch64-low.c (*): Update all debugging printfs to use |
| 7214 | debug_printf instead of fprintf. |
| 7215 | * linux-arm-low.c (*): Ditto. |
| 7216 | * linux-cris-low.c (*): Ditto. |
| 7217 | * linux-crisv32-low.c (*): Ditto. |
| 7218 | * linux-m32r-low.c (*): Ditto. |
| 7219 | * linux-sparc-low.c (*): Ditto. |
| 7220 | * linux-x86.c (*): Ditto. |
| 7221 | * linux-low.c (*): Ditto. |
| 7222 | (linux_wait_1): Add calls to debug_enter, debug_exit. |
| 7223 | (linux_wait): Remove redundant debugging printf. |
| 7224 | (stop_all_lwps): Add calls to debug_enter, debug_exit. |
| 7225 | (linux_resume, unstop_all_lwps): Ditto. |
| 7226 | * mem-break.c (*): Update all debugging printfs to use |
| 7227 | debug_printf instead of fprintf. |
| 7228 | * remote-utils.c (*): Ditto. |
| 7229 | * thread-db.c (*): Ditto. |
| 7230 | * server.c #include <ctype.h>, "gdb_vecs.h". |
| 7231 | (debug_threads): Moved to debug.c. |
| 7232 | (*): Update all debugging printfs to use debug_printf instead of |
| 7233 | fprintf. |
| 7234 | (start_inferior): Replace call to fflush with call to debug_flush. |
| 7235 | (monitor_show_help): Mention set debug-format. |
| 7236 | (parse_debug_format_options): New function. |
| 7237 | (handle_monitor_command): Handle "monitor set debug-format". |
| 7238 | (gdbserver_usage): Mention --debug-format. |
| 7239 | (main): Parse --debug-format. |
| 7240 | * server.h (debug_threads): Declaration moved to debug.h. |
| 7241 | #include "debug.h". |
| 7242 | * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of |
| 7243 | trace_debug_1 that uses debug_printf. |
| 7244 | (tracepoint_look_up_symbols): Update all debugging printfs to use |
| 7245 | debug_printf instead of fprintf. |
| 7246 | |
| 7247 | 2014-01-20 Baruch Siach <baruch@tkos.co.il> |
| 7248 | |
| 7249 | * linux-xtensa-low.c: Include asm/ptrace.h instead of |
| 7250 | sys/ptrace.h. |
| 7251 | |
| 7252 | 2014-01-17 Pedro Alves <palves@redhat.com> |
| 7253 | |
| 7254 | PR build/16445 |
| 7255 | * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is |
| 7256 | defined after including gdb_proc_service.h. |
| 7257 | |
| 7258 | 2014-01-16 Doug Evans <dje@google.com> |
| 7259 | |
| 7260 | * dll.c (UNSPECIFIED_CORE_ADDR): New macro. |
| 7261 | (match_dll): Use it. |
| 7262 | |
| 7263 | 2014-01-16 Markus Metzger <markus.t.metzger@intel.com> |
| 7264 | |
| 7265 | * target.h (target_ops) <read_btrace>: Change parameters and |
| 7266 | return type to allow error reporting. |
| 7267 | * server.c (handle_qxfer_btrace): Support delta reads. Pass |
| 7268 | trace reading errors on. |
| 7269 | * linux-low.c (linux_low_read_btrace): Pass trace reading |
| 7270 | errors on. |
| 7271 | (linux_low_disable_btrace): New. |
| 7272 | |
| 7273 | 2014-01-15 Doug Evans <dje@google.com> |
| 7274 | |
| 7275 | * inferiors.c (thread_id_to_gdb_id): Delete. |
| 7276 | * inferiors.h (thread_id_to_gdb_id): Delete. |
| 7277 | |
| 7278 | 2014-01-13 Eli Zaretskii <eliz@gnu.org> |
| 7279 | |
| 7280 | * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from |
| 7281 | "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC |
| 7282 | versions. |
| 7283 | |
| 7284 | 2014-01-08 Pedro Alves <palves@redhat.com> |
| 7285 | |
| 7286 | * server.c (handle_status): Don't discard previous queued stop |
| 7287 | replies or thread's pending status here. |
| 7288 | (main) <disconnection>: Do it here instead. |
| 7289 | |
| 7290 | 2014-01-08 Pedro Alves <palves@redhat.com> |
| 7291 | |
| 7292 | * gdbthread.h (struct thread_info) <status_pending_p>: New field. |
| 7293 | * server.c (visit_actioned_threads, handle_pending_status): New |
| 7294 | function. |
| 7295 | (handle_v_cont): Factor out parts to ... |
| 7296 | (resume): ... this new function. If in all-stop, and a thread |
| 7297 | being resumed has a pending status, report it without actually |
| 7298 | resuming. |
| 7299 | (myresume): Adjust to use the new 'resume' function. |
| 7300 | (clear_pending_status_callback, set_pending_status_callback) |
| 7301 | (find_status_pending_thread_callback): New functions. |
| 7302 | (handle_status): Handle the case of multiple threads having |
| 7303 | interesting statuses to report. Report threads' real last signal |
| 7304 | instead of always reporting GDB_SIGNAL_TRAP. Look for a thread |
| 7305 | with an interesting thread to report the status for, instead of |
| 7306 | always reporting the status of the first thread. |
| 7307 | |
| 7308 | 2014-01-01 Joel Brobecker <brobecker@adacore.com> |
| 7309 | |
| 7310 | * gdbserver.c (gdbserver_version): Set copyright year to 2014. |
| 7311 | * gdbreplay.c (gdbreplay_version): Likewise. |
| 7312 | |
| 7313 | 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com> |
| 7314 | |
| 7315 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set |
| 7316 | iov.iov_len with the real length in use. |
| 7317 | |
| 7318 | 2013-12-13 Joel Brobecker <brobecker@adacore.com> |
| 7319 | |
| 7320 | * Makefile.in (safe-ctype.o, lbasename.o): New rules. |
| 7321 | * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj |
| 7322 | for all targets that use win32-low.c. |
| 7323 | * win32-low.c (win32_ensure_ntdll_loaded): New function. |
| 7324 | (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded. |
| 7325 | |
| 7326 | 2013-12-13 Pedro Alves <palves@redhat.com> |
| 7327 | |
| 7328 | * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED |
| 7329 | if equal to TARGET_WAITKIND_LOADED. |
| 7330 | * win32-low.c (cached_status): New static global. |
| 7331 | (win32_wait): Add declaration. |
| 7332 | (do_initial_child_stuff): Flush all initial pending debug events |
| 7333 | up to the initial breakpoint. |
| 7334 | (win32_wait): If CACHED_STATUS was set, return that instead |
| 7335 | of doing a real wait. Remove the code resuming the execution |
| 7336 | of the inferior after receiving a TARGET_WAITKIND_LOADED event |
| 7337 | during the initial phase. Also remove the code changing |
| 7338 | OURSTATUS->KIND from TARGET_WAITKIND_LOADED to |
| 7339 | TARGET_WAITKIND_STOPPED. |
| 7340 | |
| 7341 | 2013-12-11 Yao Qi <yao@codesourcery.com> |
| 7342 | |
| 7343 | * notif.c (handle_notif_ack): Return 0 if no notification |
| 7344 | matches. |
| 7345 | |
| 7346 | 2013-11-20 Doug Evans <dje@google.com> |
| 7347 | |
| 7348 | * linux-low.c (linux_set_resume_request): Fix comment. |
| 7349 | |
| 7350 | 2013-11-20 Doug Evans <dje@google.com> |
| 7351 | |
| 7352 | * linux-low.c (resume_status_pending_p): Tweak comment. |
| 7353 | |
| 7354 | 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
| 7355 | |
| 7356 | * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c, |
| 7357 | amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation. |
| 7358 | * configure.srv (srv_i386_regobj): Add i386-mpx.o. |
| 7359 | (srv_i386_linux_regobj): Add i386-mpx-linux.o. |
| 7360 | (srv_amd64_regobj): Add amd64-mpx.o. |
| 7361 | (srv_amd64_linux_regobj): Add amd64-mpx-linux.o. |
| 7362 | (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml. |
| 7363 | (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml. |
| 7364 | * i387-fp.c (num_pl_bnd_register) Added constant. |
| 7365 | (num_pl_bnd_cfg_registers) Added constant. |
| 7366 | (struct i387_xsave) Added reserved area and MPX fields. |
| 7367 | (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX. |
| 7368 | * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new |
| 7369 | function. |
| 7370 | (tdesc_i386_mpx_linux): Add MPX amd64 target. |
| 7371 | (init_registers_amd64_mpx_linux): Declare new function. |
| 7372 | (tdesc_amd64_mpx_linux): Add MPX amd64 target. |
| 7373 | (x86_64_regmap): Add MPX registers. |
| 7374 | (x86_linux_read_description): Add MPX case. |
| 7375 | (initialize_low_arch): Initialize MPX targets. |
| 7376 | |
| 7377 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
| 7378 | |
| 7379 | * configure: Rebuild. |
| 7380 | * configure.ac: Don't check for stdlib.h. |
| 7381 | * gdbreplay.c: Unconditionally include stdlib.h. |
| 7382 | |
| 7383 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
| 7384 | |
| 7385 | * config.in: Rebuild. |
| 7386 | * configure: Rebuild. |
| 7387 | * configure.ac: Don't use AC_HEADER_DIRENT. |
| 7388 | |
| 7389 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
| 7390 | |
| 7391 | * server.h: Don't check HAVE_STRING_H. |
| 7392 | * gdbreplay.c: Don't check HAVE_STRING_H. |
| 7393 | * configure: Rebuild. |
| 7394 | |
| 7395 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
| 7396 | |
| 7397 | * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against |
| 7398 | LIBGNU. |
| 7399 | |
| 7400 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
| 7401 | |
| 7402 | * configure, config.in: Rebuild. |
| 7403 | * configure.ac: Remove unused configury. |
| 7404 | |
| 7405 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
| 7406 | |
| 7407 | * acinclude.m4: Include common.m4, codeset.m4. |
| 7408 | * configure, config.in: Rebuild. |
| 7409 | * configure.ac: Use GDB_AC_COMMON. |
| 7410 | |
| 7411 | 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com> |
| 7412 | |
| 7413 | * linux-s390-low.c (HWCAP_S390_TE): New define. |
| 7414 | (s390_arch_setup): Consider the TE field in the HWCAP for |
| 7415 | determining 'have_regset_tdb'. |
| 7416 | |
| 7417 | 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com> |
| 7418 | |
| 7419 | PR gdb/16014 |
| 7420 | * tracepoint.c (download_tracepoint_1): Remove unnecessary double |
| 7421 | call to sizeof. |
| 7422 | |
| 7423 | 2013-10-02 Pedro Alves <palves@redhat.com> |
| 7424 | |
| 7425 | * server.c (process_serial_event): Don't output "GDBserver |
| 7426 | exiting" if GDB is connected through stdio. |
| 7427 | * target.c (mywait): Likewise, be silent if GDB is connected |
| 7428 | through stdio. |
| 7429 | |
| 7430 | 2013-10-01 Joel Brobecker <brobecker@adacore.com> |
| 7431 | |
| 7432 | * lynx-low.c (lynx_add_threads_after_attach): New function. |
| 7433 | (lynx_attach): Remove call to add_thread. Add call to |
| 7434 | lynx_add_threads_after_attach instead. |
| 7435 | |
| 7436 | 2013-09-28 Mike Frysinger <vapier@gentoo.org> |
| 7437 | |
| 7438 | * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h |
| 7439 | * config.in, configure: Regenerated. |
| 7440 | |
| 7441 | 2013-09-18 Yao Qi <yao@codesourcery.com> |
| 7442 | |
| 7443 | PR server/15959 |
| 7444 | * server.c (start_inferior): Clear 'resume_info'. |
| 7445 | |
| 7446 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
| 7447 | |
| 7448 | * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit |
| 7449 | for each register. |
| 7450 | |
| 7451 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
| 7452 | |
| 7453 | * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add |
| 7454 | linux-tile-low.o to srv_tgtobj. |
| 7455 | |
| 7456 | 2013-09-16 Will Newton <will.newton@linaro.org> |
| 7457 | |
| 7458 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero |
| 7459 | out regs. |
| 7460 | |
| 7461 | 2013-09-06 Pedro Alves <palves@redhat.com> |
| 7462 | |
| 7463 | * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) |
| 7464 | (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h) |
| 7465 | (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h) |
| 7466 | (server_h, gdbthread_h, linux_low_h, linux_ptrace_h) |
| 7467 | (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h) |
| 7468 | (mips_linux_watch_h, i386_low_h, win32_low_h): Delete. |
| 7469 | |
| 7470 | 2013-09-06 Pedro Alves <palves@redhat.com> |
| 7471 | |
| 7472 | * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove |
| 7473 | explicit header dependencies and use $COMPILE/$POSTCOMPILE. |
| 7474 | |
| 7475 | 2013-09-06 Pedro Alves <palves@redhat.com> |
| 7476 | |
| 7477 | * linux-amd64-ipa.c: Include tracepoint.h. |
| 7478 | * linux-i386-ipa.c: Include tracepoint.h. |
| 7479 | |
| 7480 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
| 7481 | |
| 7482 | * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro. |
| 7483 | (ps_get_thread_area): New function. |
| 7484 | |
| 7485 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
| 7486 | |
| 7487 | * linux-crisv32-low.c (elf_gregset_t): Delete typedef. |
| 7488 | (initialize_low_arch): Call init_registers_crisv32 rather than |
| 7489 | init_register_crisv32. |
| 7490 | |
| 7491 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7492 | |
| 7493 | * server.h (handle_vFile, hostio_last_error_from_errno): Move |
| 7494 | to ... |
| 7495 | * hostio.h: ... this new file. |
| 7496 | * hostio.c, server.c, linux-low.c, nto-low.c, spu-low, |
| 7497 | win32-low.c: Include hostio.h. |
| 7498 | |
| 7499 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7500 | |
| 7501 | * server.h (gdb_client_data, handler_func, callback_handler_func) |
| 7502 | (delete_file_handler, add_file_handler, append_callback_event) |
| 7503 | (delete_callback_event, start_event_loop, initialize_event_loop): |
| 7504 | Move to event-loop.h and include it. |
| 7505 | * event-loop.h: New file. |
| 7506 | |
| 7507 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7508 | |
| 7509 | * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h". |
| 7510 | * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls) |
| 7511 | (loaded_dll, unloaded_dll): Move to ... |
| 7512 | * dll.h: ... this new file. |
| 7513 | * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h". |
| 7514 | |
| 7515 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7516 | |
| 7517 | * server.h (current_process, get_thread_process, all_processes) |
| 7518 | (add_inferior_to_list, for_each_inferior, current_inferior) |
| 7519 | (remove_inferior, add_process, remove_process, find_process_pid) |
| 7520 | (have_started_inferiors_p, have_attached_inferiors_p) |
| 7521 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id) |
| 7522 | (clear_inferiors, find_inferior, find_inferior_id) |
| 7523 | (inferior_target_data, set_inferior_target_data) |
| 7524 | (inferior_regcache_data, set_inferior_regcache_data): Move to |
| 7525 | inferiors.h, and include it. |
| 7526 | * inferiors.h: New file. |
| 7527 | |
| 7528 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7529 | |
| 7530 | * server.h (struct emit_ops, current_insn_ptr, emit_error): |
| 7531 | Move ... |
| 7532 | * ax.h: ... here. |
| 7533 | |
| 7534 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7535 | |
| 7536 | * ax.c, linux-low.c, linux-x86-low.c, server.c: Include |
| 7537 | tracepoint.h. |
| 7538 | * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing) |
| 7539 | (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing |
| 7540 | (handle_tracepoint_general_set, handle_tracepoint_query) |
| 7541 | (tracepoint_finished_step, tracepoint_was_hit) |
| 7542 | (release_while_stepping_state_list, current_traceframe) |
| 7543 | (in_readonly_region, traceframe_read_mem) |
| 7544 | (fetch_traceframe_registers, traceframe_read_sdata) |
| 7545 | (traceframe_read_info, struct fast_tpoint_collect_status) |
| 7546 | (fast_tracepoint_collecting, force_unlock_trace_buffer) |
| 7547 | (handle_tracepoit_bkpts, initialize_low_tracepoint) |
| 7548 | (supply_fast_tracepoint_registers) |
| 7549 | (supply_static_tracepoint_registers, set_trampoline_buffer_space) |
| 7550 | (ipa_tdesc, claim_trampoline_space) |
| 7551 | (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close) |
| 7552 | (agent_mem_read, agent_get_trace_state_variable_value) |
| 7553 | (agent_set_trace_state_variable_value, agent_tsv_read) |
| 7554 | (agent_mem_read_string, get_raw_reg_func_addr) |
| 7555 | (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ... |
| 7556 | * tracepoint.h: ... this new file. |
| 7557 | |
| 7558 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7559 | |
| 7560 | * server.h (perror_with_name, error, fatal, warning, paddress) |
| 7561 | (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and |
| 7562 | include it. |
| 7563 | * utils.h: New file. |
| 7564 | |
| 7565 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7566 | |
| 7567 | * server.h (remote_debug, noack_mode, transport_is_reliable) |
| 7568 | (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) |
| 7569 | (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) |
| 7570 | (getpkt, remote_prepare, remote_open, remote_close, write_ok) |
| 7571 | (write_enn, initialize_async_io, enable_async_io) |
| 7572 | (disable_async_io, check_remote_input_interrupt_request) |
| 7573 | (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify) |
| 7574 | (dead_thread_notify, prepare_resume_reply) |
| 7575 | (decode_address_to_semicolon, decode_address, decode_m_packet) |
| 7576 | (decode_M_packet, decode_X_packet, decode_xfer_write) |
| 7577 | (decode_search_memory_packet, unhexify, hexify) |
| 7578 | (remote_escape_output, unpack_varlen_hex, clear_symbol_cache) |
| 7579 | (look_up_one_symbol, relocate_instruction) |
| 7580 | (monitor_output): Move to remote-utils.h, and include it. |
| 7581 | * remote-utils.h: New file. |
| 7582 | |
| 7583 | 2013-09-05 Pedro Alves <palves@redhat.com> |
| 7584 | |
| 7585 | * server.h (_): Delete. |
| 7586 | |
| 7587 | 2013-09-02 Pedro Alves <palves@redhat.com> |
| 7588 | |
| 7589 | * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro. |
| 7590 | (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is |
| 7591 | allocated. |
| 7592 | (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE. |
| 7593 | |
| 7594 | 2013-09-02 Pierre Muller <muller@sourceware.org> |
| 7595 | |
| 7596 | * win32-low.c (child_xfer_memory): Check if ReadProcessMemory |
| 7597 | or WriteProcessMemory complete successfully and handle |
| 7598 | ERROR_PARTIAL_COPY error. |
| 7599 | |
| 7600 | 2013-09-02 Pedro Alves <palves@redhat.com> |
| 7601 | |
| 7602 | * server.c (gdb_read_memory): Return -1 on traceframe memory read |
| 7603 | error instead of EIO. |
| 7604 | |
| 7605 | 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 7606 | |
| 7607 | PR server/15604 |
| 7608 | * linux-low.c: Include filestuff.h. |
| 7609 | (linux_create_inferior) <pid == 0>: Call close_most_fds. |
| 7610 | * lynx-low.c: Include filestuff.h. |
| 7611 | (lynx_create_inferior) <pid == 0>: Call close_most_fds. |
| 7612 | * server.c: Include filestuff.h. |
| 7613 | (main): Call notice_open_fds. |
| 7614 | * spu-low.c: Include filestuff.h. |
| 7615 | (spu_create_inferior) <pid == 0>: Call close_most_fds. |
| 7616 | |
| 7617 | 2013-08-22 Luis Machado <lgustavo@codesourcery.com> |
| 7618 | |
| 7619 | * Makefile.in: Explain why ../target and ../nat are not |
| 7620 | listed as include file search paths. |
| 7621 | (linux-waitpid.o): New object file rule. |
| 7622 | * configure.srv (srv_native_linux_obj): New variable. |
| 7623 | Replace all occurrences of linux native object files with |
| 7624 | $srv_native_linux_obj. |
| 7625 | * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. |
| 7626 | (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. |
| 7627 | (linux_enable_event_reporting): Remove declaration. |
| 7628 | (my_waitpid): Moved to common/linux-waitpid.c. |
| 7629 | (linux_wait_for_event): Pass ptid when calling |
| 7630 | linux_enable_event_reporting. |
| 7631 | (linux_supports_tracefork_flag): Remove. |
| 7632 | (linux_enable_event_reporting): Likewise. |
| 7633 | (linux_tracefork_grandchild): Remove. |
| 7634 | (STACK_SIZE): Moved to common/linux-ptrace.c. |
| 7635 | (linux_tracefork_child): Remove. |
| 7636 | (linux_test_for_tracefork): Remove. |
| 7637 | (linux_look_up_symbols): Call linux_supports_traceclone. |
| 7638 | (initialize_low): Remove call to linux_test_for_tracefork. |
| 7639 | * linux-low.h (PTRACE_TYPE_ARG3): Move to |
| 7640 | common/linux-ptrace.h. |
| 7641 | (PTRACE_TYPE_ARG4): Likewise. |
| 7642 | Include linux-ptrace.h. |
| 7643 | |
| 7644 | 2013-08-21 Pedro Alves <palves@redhat.com> |
| 7645 | |
| 7646 | * config.in: Renegerate. |
| 7647 | |
| 7648 | 2013-08-19 Luis Machado <lgustavo@codesourcery.com> |
| 7649 | |
| 7650 | * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. |
| 7651 | (SFILES): Remove $(srcdir)/common/target-common.c and |
| 7652 | add $(srcdir)/target/waitstatus.c. |
| 7653 | (OBS): Remove target-common.o and add waitstatus.o. |
| 7654 | (server_h): Remove $(srcdir)/../common/target-common.h and |
| 7655 | add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h |
| 7656 | and $(srcdir)/../target/waitstatus.h. |
| 7657 | (target-common.o): Remove. |
| 7658 | (waitstatus.o): New target object file. |
| 7659 | * target.h: Do not include target-common.h and |
| 7660 | include target/resume.h, target/wait.h and |
| 7661 | target/waitstatus.h. |
| 7662 | |
| 7663 | 2013-08-13 Luis Machado <lgustavo@codesourcery.com> |
| 7664 | |
| 7665 | * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE |
| 7666 | to PTRACE_TYPE_ARG3. |
| 7667 | * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE |
| 7668 | to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to |
| 7669 | PTRACE_TYPE_ARG4. |
| 7670 | * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. |
| 7671 | (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4. |
| 7672 | |
| 7673 | 2013-07-27 Jie Zhang <jie@codesourcery.com> |
| 7674 | Daniel Jacobowitz <dan@codesourcery.com> |
| 7675 | Yao Qi <yao@codesourcery.com> |
| 7676 | |
| 7677 | * Makefile.in (SFILES): Add common/mips-linux-watch.c. |
| 7678 | (mips-linux-watch.o): New rule. |
| 7679 | (mips_linux_watch_h): New variable. |
| 7680 | * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to |
| 7681 | srv_tgtobj. |
| 7682 | * linux-mips-low.c: Include mips-linux-watch.h. |
| 7683 | (struct arch_process_info, struct arch_lwp_info): New. |
| 7684 | (update_watch_registers_callback): New function. |
| 7685 | (mips_linux_new_process, mips_linux_new_thread) New functions. |
| 7686 | (mips_linux_prepare_to_resume, mips_insert_point): New |
| 7687 | functions. |
| 7688 | (mips_remove_point, mips_stopped_by_watchpoint): New |
| 7689 | functions. |
| 7690 | (rsp_bp_type_to_target_hw_bp_type): New function. |
| 7691 | (mips_stopped_data_address): New function. |
| 7692 | (the_low_target): Add watchpoint support functions. |
| 7693 | |
| 7694 | 2013-07-27 Yao Qi <yao@codesourcery.com> |
| 7695 | |
| 7696 | * i386-low.c: Include break-common.h. |
| 7697 | (enum target_hw_bp_type): Remove. |
| 7698 | |
| 7699 | 2013-07-24 Luis Machado <lgustavo@codesourcery.com> |
| 7700 | |
| 7701 | * Makefile.in (SFILES): /common/target-common.c. |
| 7702 | (OBS): Add target-common.o. |
| 7703 | (server_h): Add $(srcdir)/../common/target-common.h. |
| 7704 | (target-common.o): New target. |
| 7705 | * server.c (queue_stop_reply_callback): Free |
| 7706 | status string after use. |
| 7707 | * target.c (target_waitstatus_to_string): Remove. |
| 7708 | * target.h: Include target-common.h. |
| 7709 | (resume_kind): Likewise. |
| 7710 | (target_waitkind): Likewise. |
| 7711 | (target_waitstatus): Likewise. |
| 7712 | (TARGET_WNOHANG): Likewise. |
| 7713 | |
| 7714 | 2013-07-04 Yao Qi <yao@codesourcery.com> |
| 7715 | |
| 7716 | * Makefile.in (host_alias): Use @host_noncanonical@. |
| 7717 | (target_alias): Use @target_noncanonical@. |
| 7718 | * configure.ac: Use ACX_NONCANONICAL_TARGET and |
| 7719 | ACX_NONCANONICAL_HOST. |
| 7720 | * configure: Regenerated. |
| 7721 | |
| 7722 | Revert: |
| 7723 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
| 7724 | |
| 7725 | * configure.ac (version_host, version_target): Set and AC_SUBST them. |
| 7726 | * configure: Rebuild. |
| 7727 | * Makefile.in (version_host, version_target): Get from configure. |
| 7728 | (version.c): Use $(version_host) and $(version_target). |
| 7729 | |
| 7730 | 2013-07-03 Pedro Alves <palves@redhat.com> |
| 7731 | |
| 7732 | * Makefile.in (config.status): Depend on development.sh. |
| 7733 | * acinclude.m4: Include libmcheck.m4. |
| 7734 | * configure: Regenerate. |
| 7735 | |
| 7736 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
| 7737 | |
| 7738 | * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI |
| 7739 | attribute inside the parentheses. |
| 7740 | (winapi_DebugSetProcessKillOnExit): Ditto. |
| 7741 | (winapi_DebugBreakProcess): Ditto. |
| 7742 | (winapi_GenerateConsoleCtrlEvent): Ditto. |
| 7743 | |
| 7744 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
| 7745 | |
| 7746 | * notif.h (notif_event): Add a dummy member to avoid compiler |
| 7747 | errors. |
| 7748 | |
| 7749 | 2013-07-01 Pedro Alves <palves@redhat.com> |
| 7750 | |
| 7751 | * hostio.c (HOSTIO_PATH_MAX): Define. |
| 7752 | (require_filename, handle_open, handle_unlink, handle_readlink): |
| 7753 | Use it. |
| 7754 | |
| 7755 | 2013-07-01 Pedro Alves <palves@redhat.com> |
| 7756 | |
| 7757 | * server.h: Include "pathmax.h". |
| 7758 | * linux-low.c: Don't include sys/param.h. |
| 7759 | (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of |
| 7760 | MAXPATHLEN. |
| 7761 | * win32-low.c: Don't include sys/param.h. |
| 7762 | (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN. |
| 7763 | |
| 7764 | 2013-07-01 Pedro Alves <palves@redhat.com> |
| 7765 | |
| 7766 | * event-loop.c: Don't check HAVE_UNISTD_H before including |
| 7767 | <unistd.h>. |
| 7768 | * gdbreplay.c: Likewise. |
| 7769 | * remote-utils.c: Likewise. |
| 7770 | * server.c: Likewise. |
| 7771 | * configure.ac: Don't check for unistd.h. |
| 7772 | * configure: Regenerate. |
| 7773 | |
| 7774 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
| 7775 | |
| 7776 | * Makefile.in (version.c): Use version.in, not |
| 7777 | common/version.in. |
| 7778 | |
| 7779 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
| 7780 | |
| 7781 | * configure.ac (version_host, version_target): Set and AC_SUBST them. |
| 7782 | * configure: Rebuild. |
| 7783 | * Makefile.in (version_host, version_target): Get from configure. |
| 7784 | (version.c): Use $(version_host) and $(version_target). |
| 7785 | |
| 7786 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
| 7787 | |
| 7788 | Fix trace-status to output user name without trailing colon. |
| 7789 | * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name. |
| 7790 | |
| 7791 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
| 7792 | |
| 7793 | Fix trace-status to output proper start-time and stop-time. |
| 7794 | * tracepoint.c (cmd_qtstatus): Modify trace-status output to |
| 7795 | output start time and stop time in hex as gdb expects. |
| 7796 | |
| 7797 | 2013-06-26 Pedro Alves <pedro@codesourcery.com> |
| 7798 | |
| 7799 | * tracepoint.c (build_traceframe_info_xml): Output trace state |
| 7800 | variables present in the trace buffer. |
| 7801 | |
| 7802 | 2013-06-24 Tom Tromey <tromey@redhat.com> |
| 7803 | |
| 7804 | * Makefile.in (version.c): Use bfd/version.h, common/version.in, |
| 7805 | create-version.sh. |
| 7806 | (version.o): Remove. |
| 7807 | * gdbreplay.c: Include version.h. |
| 7808 | (version, host_name): Don't declare. |
| 7809 | * server.h: Include version.h. |
| 7810 | (version, host_name): Don't declare. |
| 7811 | |
| 7812 | 2013-06-12 Pedro Alves <palves@redhat.com> |
| 7813 | |
| 7814 | * linux-x86-low.c (linux_is_elf64): Delete global. |
| 7815 | (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global |
| 7816 | with local linux_pid_exe_is_elf_64_file use. |
| 7817 | |
| 7818 | 2013-06-11 Pedro Alves <palves@redhat.com> |
| 7819 | |
| 7820 | * linux-low.c (regset_disabled, disable_regset): New functions. |
| 7821 | (regsets_fetch_inferior_registers) |
| 7822 | (regsets_store_inferior_registers): Use them. |
| 7823 | (initialize_regsets_info); Don't allocate the disabled_regsets |
| 7824 | array here. |
| 7825 | * linux-low.h (struct regsets_info) <disabled_regsets>: Extend |
| 7826 | comment. |
| 7827 | |
| 7828 | 2013-06-11 Pedro Alves <palves@redhat.com> |
| 7829 | |
| 7830 | * linux-low.c (initialize_regsets_info): Use xcalloc instead of |
| 7831 | xmalloc. |
| 7832 | |
| 7833 | 2013-06-11 Pedro Alves <palves@redhat.com> |
| 7834 | |
| 7835 | * linux-x86-low.c (initialize_low_arch): Call |
| 7836 | init_registers_x32_avx_linux. |
| 7837 | |
| 7838 | 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 7839 | |
| 7840 | Fix compatibility with Android Bionic. |
| 7841 | * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if |
| 7842 | it is not empty. |
| 7843 | |
| 7844 | 2013-06-07 Pedro Alves <palves@redhat.com> |
| 7845 | |
| 7846 | PR server/14823 |
| 7847 | * Makefile.in (OBS): Add tdesc.o. |
| 7848 | (IPA_OBJS): Add tdesc-ipa.o. |
| 7849 | (tdesc-ipa.o): New rule. |
| 7850 | * ax.c (gdb_eval_agent_expr): Adjust register_size call to new |
| 7851 | interface. |
| 7852 | * linux-low.c (new_inferior): Delete. |
| 7853 | (disabled_regsets, num_regsets): Delete. |
| 7854 | (linux_add_process): Adjust to set the new per-process |
| 7855 | new_inferior flag. |
| 7856 | (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread. |
| 7857 | (linux_wait_for_lwp): Adjust. Only call arch_setup if the event |
| 7858 | was a stop. When calling arch_setup, switch the current inferior |
| 7859 | to the thread that got an event. |
| 7860 | (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread. |
| 7861 | (regsets_fetch_inferior_registers) |
| 7862 | (regsets_store_inferior_registers): New regsets_info parameter. |
| 7863 | Adjust to use it. |
| 7864 | (linux_register_in_regsets): New regs_info parameter. Adjust to |
| 7865 | use it. |
| 7866 | (register_addr, fetch_register, store_register): New usrregs_info |
| 7867 | parameter. Adjust to use it. |
| 7868 | (usr_fetch_inferior_registers, usr_store_inferior_registers): New |
| 7869 | parameter regs_info. Adjust to use it. |
| 7870 | (linux_fetch_registers): Get the current inferior's regs_info, and |
| 7871 | adjust to use it. |
| 7872 | (linux_store_registers): Ditto. |
| 7873 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): New. |
| 7874 | (initialize_low): Don't initialize the target_regsets here. Call |
| 7875 | initialize_low_arch. |
| 7876 | * linux-low.h (target_regsets): Delete declaration. |
| 7877 | (struct regsets_info): New. |
| 7878 | (struct usrregs_info): New. |
| 7879 | (struct regs_info): New. |
| 7880 | (struct process_info_private) <new_inferior>: New field. |
| 7881 | (struct linux_target_ops): Delete the num_regs, regmap, and |
| 7882 | regset_bitmap fields. New field regs_info. |
| 7883 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare. |
| 7884 | * i387-fp.c (num_xmm_registers): Delete. |
| 7885 | (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno |
| 7886 | calls to new interface. |
| 7887 | (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache) |
| 7888 | (i387_xsave_to_cache): Adjust find_regno calls to new interface. |
| 7889 | Infer the number of xmm registers from the regcache's target |
| 7890 | description. |
| 7891 | * i387-fp.h (num_xmm_registers): Delete. |
| 7892 | * inferiors.c (add_thread): Don't install the thread's regcache |
| 7893 | here. |
| 7894 | * proc-service.c (gregset_info): Fetch the current inferior's |
| 7895 | regs_info. Adjust to use it. |
| 7896 | * regcache.c: Include tdesc.h. |
| 7897 | (register_bytes, reg_defs, num_registers) |
| 7898 | (gdbserver_expedite_regs): Delete. |
| 7899 | (get_thread_regcache): If the thread doesn't have a regcache yet, |
| 7900 | create one, instead of aborting gdbserver. |
| 7901 | (regcache_invalidate_one): Rename to ... |
| 7902 | (regcache_invalidate_thread): ... this. |
| 7903 | (regcache_invalidate_one): New. |
| 7904 | (regcache_invalidate): Only invalidate registers of the current |
| 7905 | process. |
| 7906 | (init_register_cache): Add target_desc parameter, and use it. |
| 7907 | (new_register_cache): Ditto. Assert the target description has a |
| 7908 | non zero registers_size. |
| 7909 | (regcache_cpy): Add assertions. Adjust. |
| 7910 | (realloc_register_cache, set_register_cache): Delete. |
| 7911 | (registers_to_string, registers_from_string): Adjust. |
| 7912 | (find_register_by_name, find_regno, find_register_by_number) |
| 7913 | (register_cache_size): Add target_desc parameter, and use it. |
| 7914 | (free_register_cache_thread, free_register_cache_thread_one) |
| 7915 | (regcache_release, register_cache_size): New. |
| 7916 | (register_size): Add target_desc parameter, and use it. |
| 7917 | (register_data, supply_register, supply_register_zeroed) |
| 7918 | (supply_regblock, supply_register_by_name, collect_register) |
| 7919 | (collect_register_as_string, collect_register_by_name): Adjust. |
| 7920 | * regcache.h (struct target_desc): Forward declare. |
| 7921 | (struct regcache) <tdesc>: New field. |
| 7922 | (init_register_cache, new_register_cache): Add target_desc |
| 7923 | parameter. |
| 7924 | (regcache_invalidate_thread): Declare. |
| 7925 | (regcache_invalidate_one): Delete declaration. |
| 7926 | (regcache_release): Declare. |
| 7927 | (find_register_by_number, register_cache_size, register_size) |
| 7928 | (find_regno): Add target_desc parameter. |
| 7929 | (gdbserver_expedite_regs, gdbserver_xmltarget): Delete |
| 7930 | declarations. |
| 7931 | * remote-utils.c: Include tdesc.h. |
| 7932 | (outreg, prepare_resume_reply): Adjust. |
| 7933 | * server.c: Include tdesc.h. |
| 7934 | (gdbserver_xmltarget): Delete declaration. |
| 7935 | (get_features_xml, process_serial_event): Adjust. |
| 7936 | * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward |
| 7937 | declare. |
| 7938 | (struct process_info) <tdesc>: New field. |
| 7939 | (ipa_tdesc): Declare. |
| 7940 | * tdesc.c: New file. |
| 7941 | * tdesc.h: New file. |
| 7942 | * tracepoint.c: Include tdesc.h. |
| 7943 | [IN_PROCESS_AGENT] (ipa_tdesc): Define. |
| 7944 | (get_context_regcache): Adjust to pass ipa_tdesc down. |
| 7945 | (do_action_at_tracepoint): Adjust to get the register cache size |
| 7946 | from the context regcache's description. |
| 7947 | (traceframe_walk_blocks): Adjust to get the register cache size |
| 7948 | from the current trace frame's description. |
| 7949 | (traceframe_get_pc): Adjust to get current trace frame's |
| 7950 | description and pass it down. |
| 7951 | (gdb_collect): Adjust to get the register cache size from the |
| 7952 | IPA's description. |
| 7953 | * linux-amd64-ipa.c (tdesc_amd64_linux): Declare. |
| 7954 | (gdbserver_xmltarget): Delete. |
| 7955 | (initialize_low_tracepoint): Set the ipa's target description. |
| 7956 | * linux-i386-ipa.c (tdesc_i386_linux): Declare. |
| 7957 | (initialize_low_tracepoint): Set the ipa's target description. |
| 7958 | * linux-x86-low.c: Include tdesc.h. |
| 7959 | [__x86_64__] (is_64bit_tdesc): New. |
| 7960 | (ps_get_thread_area, x86_get_thread_area): Use it. |
| 7961 | (i386_cannot_store_register): Rename to ... |
| 7962 | (x86_cannot_store_register): ... this. Use is_64bit_tdesc. |
| 7963 | (i386_cannot_fetch_register): Rename to ... |
| 7964 | (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc. |
| 7965 | (x86_fill_gregset, x86_store_gregset): Adjust register_size calls |
| 7966 | to new interface. |
| 7967 | (target_regsets): Rename to ... |
| 7968 | (x86_regsets): ... this. |
| 7969 | (x86_get_pc, x86_set_pc): Adjust register_size calls to new |
| 7970 | interface. |
| 7971 | (x86_siginfo_fixup): Use is_64bit_tdesc. |
| 7972 | [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux) |
| 7973 | (tdesc_x32_avx_linux, tdesc_x32_linux) |
| 7974 | (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux): |
| 7975 | Declare. |
| 7976 | (x86_linux_update_xmltarget): Delete. |
| 7977 | (I386_LINUX_XSAVE_XCR0_OFFSET): Define. |
| 7978 | (have_ptrace_getfpxregs, have_ptrace_getregset): New. |
| 7979 | (AMD64_LINUX_USER64_CS): New. |
| 7980 | (x86_linux_read_description): New, based on |
| 7981 | x86_linux_update_xmltarget. |
| 7982 | (same_process_callback): New. |
| 7983 | (x86_arch_setup_process_callback): New. |
| 7984 | (x86_linux_update_xmltarget): New. |
| 7985 | (x86_regsets_info): New. |
| 7986 | (amd64_linux_regs_info): New. |
| 7987 | (i386_linux_usrregs_info): New. |
| 7988 | (i386_linux_regs_info): New. |
| 7989 | (x86_linux_regs_info): New. |
| 7990 | (x86_arch_setup): Reimplement. |
| 7991 | (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc. |
| 7992 | (x86_emit_ops): Ditto. |
| 7993 | (the_low_target): Adjust. Install x86_linux_regs_info, |
| 7994 | x86_cannot_fetch_register, and x86_cannot_store_register. |
| 7995 | (initialize_low_arch): New. |
| 7996 | * linux-ia64-low.c (tdesc_ia64): Declare. |
| 7997 | (ia64_fetch_register): Adjust. |
| 7998 | (ia64_usrregs_info, regs_info): New globals. |
| 7999 | (ia64_regs_info): New function. |
| 8000 | (the_low_target): Adjust. |
| 8001 | (initialize_low_arch): New function. |
| 8002 | * linux-sparc-low.c (tdesc_sparc64): Declare. |
| 8003 | (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack): |
| 8004 | Adjust. |
| 8005 | (sparc_arch_setup): New function. |
| 8006 | (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals. |
| 8007 | (the_low_target): Adjust. |
| 8008 | (initialize_low_arch): New function. |
| 8009 | * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l) |
| 8010 | (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l) |
| 8011 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l) |
| 8012 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l) |
| 8013 | (tdesc_powerpc_64l, tdesc_powerpc_altivec64l) |
| 8014 | (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l) |
| 8015 | (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l) |
| 8016 | (tdesc_powerpc_isa205_vsx64l): Declare. |
| 8017 | (ppc_cannot_store_register, ppc_collect_ptrace_register) |
| 8018 | (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc) |
| 8019 | (ppc_set_pc, ppc_get_hwcap): Adjust. |
| 8020 | (ppc_usrregs_info): Forward declare. |
| 8021 | (!__powerpc64__) ppc_regmap_adjusted: New global. |
| 8022 | (ppc_arch_setup): Adjust to the current process'es target |
| 8023 | description. |
| 8024 | (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset) |
| 8025 | (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse) |
| 8026 | (ppc_store_evrregset): Adjust. |
| 8027 | (target_regsets): Rename to ... |
| 8028 | (ppc_regsets): ... this, and make static. |
| 8029 | (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals. |
| 8030 | (ppc_regs_info): New function. |
| 8031 | (the_low_target): Adjust. |
| 8032 | (initialize_low_arch): New function. |
| 8033 | * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1) |
| 8034 | (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1) |
| 8035 | (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1) |
| 8036 | (tdesc_s390x_linux64v2): Declare. |
| 8037 | (s390_collect_ptrace_register, s390_supply_ptrace_register) |
| 8038 | (s390_fill_gregset, s390_store_last_break): Adjust. |
| 8039 | (target_regsets): Rename to ... |
| 8040 | (s390_regsets): ... this, and make static. |
| 8041 | (s390_get_pc, s390_set_pc): Adjust. |
| 8042 | (s390_get_hwcap): New target_desc parameter, and use it. |
| 8043 | [__s390x__] (have_hwcap_s390_high_gprs): New global. |
| 8044 | (s390_arch_setup): Adjust to set the current process'es target |
| 8045 | description. Don't adjust the regmap. |
| 8046 | (s390_usrregs_info, s390_regsets_info, regs_info): New globals. |
| 8047 | [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264) |
| 8048 | (regs_info_3264): New globals. |
| 8049 | (s390_regs_info): New function. |
| 8050 | (the_low_target): Adjust. |
| 8051 | (initialize_low_arch): New function. |
| 8052 | * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux) |
| 8053 | (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare. |
| 8054 | [__mips64] (init_registers_mips_linux) |
| 8055 | (init_registers_mips_dsp_linux): Delete defines. |
| 8056 | [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines. |
| 8057 | (have_dsp): New global. |
| 8058 | (mips_read_description): New, based on mips_arch_setup. |
| 8059 | (mips_arch_setup): Reimplement. |
| 8060 | (get_usrregs_info): New function. |
| 8061 | (mips_cannot_fetch_register, mips_cannot_store_register) |
| 8062 | (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset) |
| 8063 | (mips_fill_fpregset, mips_store_fpregset): Adjust. |
| 8064 | (target_regsets): Rename to ... |
| 8065 | (mips_regsets): ... this, and make static. |
| 8066 | (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info) |
| 8067 | (dsp_regs_info, regs_info): New globals. |
| 8068 | (mips_regs_info): New function. |
| 8069 | (the_low_target): Adjust. |
| 8070 | (initialize_low_arch): New function. |
| 8071 | * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt) |
| 8072 | (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon): |
| 8073 | Declare. |
| 8074 | (arm_fill_vfpregset, arm_store_vfpregset): Adjust. |
| 8075 | (arm_read_description): New, with bits factored from |
| 8076 | arm_arch_setup. |
| 8077 | (arm_arch_setup): Reimplement. |
| 8078 | (target_regsets): Rename to ... |
| 8079 | (arm_regsets): ... this, and make static. |
| 8080 | (arm_regsets_info, arm_usrregs_info, regs_info): New globals. |
| 8081 | (arm_regs_info): New function. |
| 8082 | (the_low_target): Adjust. |
| 8083 | (initialize_low_arch): New function. |
| 8084 | * linux-m68k-low.c (tdesc_m68k): Declare. |
| 8085 | (target_regsets): Rename to ... |
| 8086 | (m68k_regsets): ... this, and make static. |
| 8087 | (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals. |
| 8088 | (m68k_regs_info): New function. |
| 8089 | (m68k_arch_setup): New function. |
| 8090 | (the_low_target): Adjust. |
| 8091 | (initialize_low_arch): New function. |
| 8092 | * linux-sh-low.c (tdesc_sharch): Declare. |
| 8093 | (target_regsets): Rename to ... |
| 8094 | (sh_regsets): ... this, and make static. |
| 8095 | (sh_regsets_info, sh_usrregs_info, regs_info): New globals. |
| 8096 | (sh_regs_info, sh_arch_setup): New functions. |
| 8097 | (the_low_target): Adjust. |
| 8098 | (initialize_low_arch): New function. |
| 8099 | * linux-bfin-low.c (tdesc_bfin): Declare. |
| 8100 | (bfin_arch_setup): New function. |
| 8101 | (bfin_usrregs_info, regs_info): New globals. |
| 8102 | (bfin_regs_info): New function. |
| 8103 | (the_low_target): Adjust. |
| 8104 | (initialize_low_arch): New function. |
| 8105 | * linux-cris-low.c (tdesc_cris): Declare. |
| 8106 | (cris_arch_setup): New function. |
| 8107 | (cris_usrregs_info, regs_info): New globals. |
| 8108 | (cris_regs_info): New function. |
| 8109 | (the_low_target): Adjust. |
| 8110 | (initialize_low_arch): New function. |
| 8111 | * linux-cris-low.c (tdesc_crisv32): Declare. |
| 8112 | (cris_arch_setup): New function. |
| 8113 | (cris_regsets_info, cris_usrregs_info, regs_info): New globals. |
| 8114 | (cris_regs_info): New function. |
| 8115 | (the_low_target): Adjust. |
| 8116 | (initialize_low_arch): New function. |
| 8117 | * linux-m32r-low.c (tdesc_m32r): Declare. |
| 8118 | (m32r_arch_setup): New function. |
| 8119 | (m32r_usrregs_info, regs_info): New globals. |
| 8120 | (m32r_regs_info): Adjust. |
| 8121 | (initialize_low_arch): New function. |
| 8122 | * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux) |
| 8123 | (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare. |
| 8124 | (tic6x_usrregs_info): Forward declare. |
| 8125 | (tic6x_read_description): New function, based on ... |
| 8126 | (tic6x_arch_setup): ... this. Reimplement. |
| 8127 | (target_regsets): Rename to ... |
| 8128 | (tic6x_regsets): ... this, and make static. |
| 8129 | (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals. |
| 8130 | (tic6x_regs_info): New function. |
| 8131 | (the_low_target): Adjust. |
| 8132 | (initialize_low_arch): New function. |
| 8133 | * linux-xtensa-low.c (tdesc_xtensa): Declare. |
| 8134 | (xtensa_fill_gregset, xtensa_store_gregset): Adjust. |
| 8135 | (target_regsets): Rename to ... |
| 8136 | (xtensa_regsets): ... this, and make static. |
| 8137 | (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New |
| 8138 | globals. |
| 8139 | (xtensa_arch_setup, xtensa_regs_info): New functions. |
| 8140 | (the_low_target): Adjust. |
| 8141 | (initialize_low_arch): New function. |
| 8142 | * linux-nios2-low.c (tdesc_nios2_linux): Declare. |
| 8143 | (nios2_arch_setup): Set the current process'es tdesc. |
| 8144 | (target_regsets): Rename to ... |
| 8145 | (nios2_regsets): ... this. |
| 8146 | (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals. |
| 8147 | (nios2_regs_info): New function. |
| 8148 | (the_low_target): Adjust. |
| 8149 | (initialize_low_arch): New function. |
| 8150 | * linux-aarch64-low.c (tdesc_aarch64): Declare. |
| 8151 | (aarch64_arch_setup): Set the current process'es tdesc. |
| 8152 | (target_regsets): Rename to ... |
| 8153 | (aarch64_regsets): ... this. |
| 8154 | (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals. |
| 8155 | (aarch64_regs_info): New function. |
| 8156 | (the_low_target): Adjust. |
| 8157 | (initialize_low_arch): New function. |
| 8158 | * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare |
| 8159 | globals. |
| 8160 | (target_regsets): Rename to ... |
| 8161 | (tile_regsets): ... this. |
| 8162 | (tile_regsets_info, tile_usrregs_info, regs_info): New globals. |
| 8163 | (tile_regs_info): New function. |
| 8164 | (tile_arch_setup): Set the current process'es tdesc. |
| 8165 | (the_low_target): Adjust. |
| 8166 | (initialize_low_arch): New function. |
| 8167 | * spu-low.c (tdesc_spu): Declare. |
| 8168 | (spu_create_inferior, spu_attach): Set the new process'es tdesc. |
| 8169 | * win32-arm-low.c (tdesc_arm): Declare. |
| 8170 | (arm_arch_setup): New function. |
| 8171 | (the_low_target): Install arm_arch_setup instead of |
| 8172 | init_registers_arm. |
| 8173 | * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare. |
| 8174 | (init_windows_x86): Rename to ... |
| 8175 | (i386_arch_setup): ... this. Set `win32_tdesc'. |
| 8176 | (the_low_target): Adjust. |
| 8177 | * win32-low.c (win32_tdesc): New global. |
| 8178 | (child_add_thread): Don't create the thread cache here. |
| 8179 | (do_initial_child_stuff): Set the new process'es tdesc. |
| 8180 | * win32-low.h (struct target_desc): Forward declare. |
| 8181 | (win32_tdesc): Declare. |
| 8182 | * lynx-i386-low.c (tdesc_i386): Declare global. |
| 8183 | (lynx_i386_arch_setup): Set `lynx_tdesc'. |
| 8184 | * lynx-low.c (lynx_tdesc): New global. |
| 8185 | (lynx_add_process): Set the new process'es tdesc. |
| 8186 | * lynx-low.h (struct target_desc): Forward declare. |
| 8187 | (lynx_tdesc): Declare global. |
| 8188 | * lynx-ppc-low.c (tdesc_powerpc_32): Declare global. |
| 8189 | (lynx_ppc_arch_setup): Set `lynx_tdesc'. |
| 8190 | * nto-low.c (nto_tdesc): New global. |
| 8191 | (do_attach): Set the new process'es tdesc. |
| 8192 | * nto-low.h (struct target_desc): Forward declare. |
| 8193 | (nto_tdesc): Declare. |
| 8194 | * nto-x86-low.c (tdesc_i386): Declare. |
| 8195 | (nto_x86_arch_setup): Set `nto_tdesc'. |
| 8196 | |
| 8197 | 2013-06-04 Gary Benson <gbenson@redhat.com> |
| 8198 | |
| 8199 | * server.c (handle_query): Add "augmented-libraries-svr4-read+" |
| 8200 | to qSupported response when appropriate. |
| 8201 | (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read |
| 8202 | with nonzero-length annex. |
| 8203 | * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle |
| 8204 | arguments supplied in annex. |
| 8205 | |
| 8206 | 2013-05-31 Doug Evans <dje@google.com> |
| 8207 | |
| 8208 | PR server/15594 |
| 8209 | * linux-x86-low.c (ps_get_thread_area): Properly extend address to |
| 8210 | 64 bits in 64-cross-32 environment. |
| 8211 | |
| 8212 | 2013-05-28 Pedro Alves <palves@redhat.com> |
| 8213 | |
| 8214 | * Makefile.in (clean): Remove reference to aarch64-without-fpu.c. |
| 8215 | (aarch64-without-fpu.c): Delete rule. |
| 8216 | * configure.srv (aarch64*-*-linux*): Remove references to |
| 8217 | aarch64-without-fpu.o and aarch64-without-fpu.xml. |
| 8218 | * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove |
| 8219 | declaration. |
| 8220 | |
| 8221 | 2013-05-24 Pedro Alves <palves@redhat.com> |
| 8222 | |
| 8223 | * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex |
| 8224 | instead of strchr/decode_address. Error if the range isn't split |
| 8225 | with a ','. Don't assume there's be a ':' in the action. |
| 8226 | |
| 8227 | 2013-05-23 Yao Qi <yao@codesourcery.com> |
| 8228 | Pedro Alves <palves@redhat.com> |
| 8229 | |
| 8230 | * linux-low.c (lwp_in_step_range): New function. |
| 8231 | (linux_wait_1): If the thread was range stepping and stopped |
| 8232 | outside the stepping range, report the stop to GDB. Otherwise, |
| 8233 | continue stepping. Add range stepping debug output. |
| 8234 | (linux_set_resume_request): Copy the step range from the resume |
| 8235 | request to the lwp. |
| 8236 | (linux_supports_range_stepping): New. |
| 8237 | (linux_target_ops) <supports_range_stepping>: Set to |
| 8238 | linux_supports_range_stepping. |
| 8239 | * linux-low.h (struct linux_target_ops) |
| 8240 | <supports_range_stepping>: New field. |
| 8241 | (struct lwp_info) <step_range_start, step_range_end>: New fields. |
| 8242 | * linux-x86-low.c (x86_supports_range_stepping): New. |
| 8243 | (the_low_target) <supports_range_stepping>: Set to |
| 8244 | x86_supports_range_stepping. |
| 8245 | * server.c (handle_v_cont): Handle 'r' action. |
| 8246 | (handle_v_requests): Append ";r" if the target supports range |
| 8247 | stepping. |
| 8248 | * target.h (struct thread_resume) <step_range_start, |
| 8249 | step_range_end>: New fields. |
| 8250 | (struct target_ops) <supports_range_stepping>: |
| 8251 | New field. |
| 8252 | (target_supports_range_stepping): New macro. |
| 8253 | |
| 8254 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
| 8255 | |
| 8256 | * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid |
| 8257 | confusion in comment. |
| 8258 | |
| 8259 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
| 8260 | |
| 8261 | * lynx-low.c (struct process_info_private): New type. |
| 8262 | (lynx_add_process): New function. |
| 8263 | (lynx_create_inferior, lynx_attach): Replace calls to |
| 8264 | add_process by calls to lynx_add_process. |
| 8265 | (lynx_resume): If PTID is null, then try using |
| 8266 | current_process()->private->last_wait_event_ptid. |
| 8267 | Add comments. |
| 8268 | (lynx_clear_inferiors): Delete. The contents of that function |
| 8269 | has been inlined in lynx_mourn; |
| 8270 | (lynx_wait_1): Save the ptid in the process's private data. |
| 8271 | (lynx_mourn): Free the process' private data. Replace call |
| 8272 | to lynx_clear_inferiors by call to clear_inferiors. |
| 8273 | |
| 8274 | 2013-05-17 Yao Qi <yao@codesourcery.com> |
| 8275 | |
| 8276 | * i386-low.c (i386_length_and_rw_bits): Move the comment to |
| 8277 | the right place. |
| 8278 | |
| 8279 | 2013-05-16 Luis Machado <lgustavo@codesourcery.com> |
| 8280 | |
| 8281 | * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR, |
| 8282 | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. |
| 8283 | (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and |
| 8284 | PT_TEXT_END_ADDR guards. Update comments. |
| 8285 | (linux_target_op) <read_offsets>: Conditionally define to |
| 8286 | linux_read_offsets if the target is UCLIBC and if it defines |
| 8287 | PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR. |
| 8288 | |
| 8289 | 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> |
| 8290 | Andrew Jenner <andrew@codesourcery.com> |
| 8291 | |
| 8292 | * Makefile.in (SFILES): Add linux-nios2-low.c. |
| 8293 | (clean): Add action to delete nios2-linux.c. |
| 8294 | (nios2-linux.c): New rule. |
| 8295 | * configure.srv: Add nios2*-*-linux*. |
| 8296 | * linux-nios2-low.c: New. |
| 8297 | |
| 8298 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
| 8299 | |
| 8300 | * tracepoint.c (cmd_qtinit): Call 'stop_tracing'. |
| 8301 | |
| 8302 | 2013-04-25 Hui Zhu <hui@codesourcery.com> |
| 8303 | |
| 8304 | PR gdb/15186 |
| 8305 | * ax.c (ax_printf): Add fflush. |
| 8306 | |
| 8307 | 2013-04-22 Tom Tromey <tromey@redhat.com> |
| 8308 | |
| 8309 | * Makefile.in (SFILES): Add filestuff.c. |
| 8310 | (OBS): Add filestuff.o. |
| 8311 | (filestuff.o): New target. |
| 8312 | * config.in, configure: Rebuild. |
| 8313 | * configure.ac: Check for fdwalk, pipe2. |
| 8314 | |
| 8315 | 2013-04-17 Pedro Alves <palves@redhat.com> |
| 8316 | |
| 8317 | * configure.ac (USE_THREAD_DB): Delete variable. |
| 8318 | (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB. |
| 8319 | Don't AC_SUBST USE_THREAD_DB. |
| 8320 | * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@. |
| 8321 | * config.in, configure: Regenerate. |
| 8322 | |
| 8323 | 2013-04-16 Pedro Alves <palves@redhat.com> |
| 8324 | |
| 8325 | * linux-low.h (struct lwp_info) <thread_known>: Move under |
| 8326 | the USE_THREAD_DB #ifdef. |
| 8327 | |
| 8328 | 2013-04-16 Pedro Alves <palves@redhat.com> |
| 8329 | |
| 8330 | * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. |
| 8331 | (linux-low.o): Delete rule. |
| 8332 | * linux-low.h: Always include "gdb_thread_db.h" instead of |
| 8333 | conditionally including thread_db.h. |
| 8334 | (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of |
| 8335 | HAVE_THREAD_DB_H. |
| 8336 | |
| 8337 | 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 8338 | |
| 8339 | * Makefile.in (install-only): Fix make install regression. |
| 8340 | |
| 8341 | 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 8342 | |
| 8343 | Convert man pages to texinfo, new gdbinit.5 texinfo page. |
| 8344 | * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1 |
| 8345 | installation. |
| 8346 | * gdbserver.1: Remove. |
| 8347 | |
| 8348 | 2013-03-22 Pedro Alves <palves@redhat.com> |
| 8349 | |
| 8350 | * linux-low.c (handle_extended_wait): Don't call |
| 8351 | linux_enable_event_reporting. |
| 8352 | |
| 8353 | 2013-03-15 Tony Theodore <tonyt@logyst.com> |
| 8354 | |
| 8355 | PR build/9098: |
| 8356 | * Makefile.in (SHELL): Use @SHELL@. |
| 8357 | |
| 8358 | 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com> |
| 8359 | |
| 8360 | * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing |
| 8361 | compiler warning. |
| 8362 | |
| 8363 | 2013-03-13 Joel Brobecker <brobecker@adacore.com> |
| 8364 | |
| 8365 | * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: |
| 8366 | Remove extraneous NULL element. |
| 8367 | |
| 8368 | 2013-03-13 Yao Qi <yao@codesourcery.com> |
| 8369 | |
| 8370 | * tracepoint.c (traceframe_read_tsv): Look for the last matched |
| 8371 | 'V' block in trace frame. |
| 8372 | |
| 8373 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
| 8374 | |
| 8375 | * target.h (struct target_ops): Add btrace ops. |
| 8376 | (target_supports_btrace): New macro. |
| 8377 | (target_enable_btrace): New macro. |
| 8378 | (target_disable_btrace): New macro. |
| 8379 | (target_read_btrace): New macro. |
| 8380 | * gdbthread.h (struct thread_info): Add btrace field. |
| 8381 | * server.c: Include btrace-common.h. |
| 8382 | (handle_btrace_general_set): New function. |
| 8383 | (handle_btrace_enable): New function. |
| 8384 | (handle_btrace_disable): New function. |
| 8385 | (handle_general_set): Call handle_btrace_general_set. |
| 8386 | (handle_qxfer_btrace): New function. |
| 8387 | (struct qxfer qxfer_packets[]): Add btrace entry. |
| 8388 | * inferiors.c (remove_thread): Disable btrace. |
| 8389 | * linux-low: Include linux-btrace.h. |
| 8390 | (linux_low_enable_btrace): New function. |
| 8391 | (linux_low_read_btrace): New function. |
| 8392 | (linux_target_ops): Add btrace ops. |
| 8393 | * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o. |
| 8394 | Add srv_linux_btrace=yes. |
| 8395 | (x86_64-*-linux*): Add linux-btrace.o. |
| 8396 | Add srv_linux_btrace=yes. |
| 8397 | * configure.ac: Define HAVE_LINUX_BTRACE. |
| 8398 | * config.in: Regenerated. |
| 8399 | * configure: Regenerated. |
| 8400 | |
| 8401 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
| 8402 | |
| 8403 | * server.c (handle_qxfer): Preserve error message if -3 is |
| 8404 | returned. |
| 8405 | (qxfer): Document the -3 return value. |
| 8406 | |
| 8407 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
| 8408 | |
| 8409 | * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c. |
| 8410 | (linux_btrace_h): New variable. |
| 8411 | (linux-btrace.o): New rule. |
| 8412 | |
| 8413 | 2013-03-08 Stan Shebs <stan@codesourcery.com> |
| 8414 | Hafiz Abid Qadeer <abidh@codesourcery.com> |
| 8415 | |
| 8416 | * tracepoint.c (trace_buffer_size): New global. |
| 8417 | (DEFAULT_TRACE_BUFFER_SIZE): New define. |
| 8418 | (init_trace_buffer): Change to one-argument function. Allocate |
| 8419 | trace buffer memory. |
| 8420 | (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to |
| 8421 | handle QTBuffer:size packet. |
| 8422 | (cmd_bigqtbuffer_size): New function. |
| 8423 | (initialize_tracepoint): Call init_trace_buffer with |
| 8424 | DEFAULT_TRACE_BUFFER_SIZE. |
| 8425 | * server.c (handle_query): Add QTBuffer:size in the |
| 8426 | supported packets. |
| 8427 | |
| 8428 | 2013-03-07 Yao Qi <yao@codesourcery.com> |
| 8429 | |
| 8430 | * tracepoint.c (cur_action, cur_step_action): Make them unsigned. |
| 8431 | (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead |
| 8432 | of -1. |
| 8433 | (cmd_qtsp): Adjust condition. Do post increment. |
| 8434 | Set cur_action and cur_step_action back to 0. |
| 8435 | |
| 8436 | 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
| 8437 | |
| 8438 | PR server/15236 |
| 8439 | * linux-low.c (linux_write_memory): Return early success if LEN is |
| 8440 | zero. |
| 8441 | |
| 8442 | 2013-03-05 Corinna Vinschen <vinschen@redhat.de> |
| 8443 | |
| 8444 | * configure.srv: Add x86_64-*-cygwin* as target. |
| 8445 | |
| 8446 | 2013-02-28 Tom Tromey <tromey@redhat.com> |
| 8447 | |
| 8448 | * configure.ac: Invoke AC_SYS_LARGEFILE. |
| 8449 | * configure, config.in: Rebuild. |
| 8450 | |
| 8451 | 2013-02-28 Corinna Vinschen <vinschen@redhat.com> |
| 8452 | |
| 8453 | * win32-low.c: Throughout, fix format strings and casts of |
| 8454 | printf-like functions to avoid type related warnings on all |
| 8455 | platforms. |
| 8456 | (get_child_debug_event): Print dwDebugEventCode as hex since |
| 8457 | that's how it's usually documented. |
| 8458 | |
| 8459 | 2013-02-28 Yao Qi <yao@codesourcery.com> |
| 8460 | |
| 8461 | * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of |
| 8462 | pulongest. |
| 8463 | |
| 8464 | 2013-02-27 Jiong Wang <jiwang@tilera.com> |
| 8465 | |
| 8466 | * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. |
| 8467 | (reg-tilegx32.c): New rule. |
| 8468 | * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. |
| 8469 | * linux-tile-low.c (tile_arch_setup): New function. Invoke |
| 8470 | different register info initializer according to elf class. |
| 8471 | (init_registers_tilgx32): New function. The tilegx32 register info |
| 8472 | initializer. |
| 8473 | (tile_fill_gregset): Use "uint_reg_t" to represent register size. |
| 8474 | (tile_store_gregset): Likewise. |
| 8475 | |
| 8476 | 2013-02-27 Yao Qi <yao@codesourcery.com> |
| 8477 | |
| 8478 | * server.c (process_point_options): Print debug message when |
| 8479 | debug_threads is true. |
| 8480 | |
| 8481 | 2013-02-26 Yao Qi <yao@codesourcery.com> |
| 8482 | |
| 8483 | * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. |
| 8484 | |
| 8485 | 2013-02-19 Pedro Alves <palves@redhat.com> |
| 8486 | Kai Tietz <ktietz@redhat.com> |
| 8487 | |
| 8488 | PR gdb/15161 |
| 8489 | |
| 8490 | * server.c (handle_query) <CRC check>: Use unpack_varlen_hex |
| 8491 | instead of strtoul to extract address from packet. |
| 8492 | (process_serial_event) <'z'>: Likewise. |
| 8493 | |
| 8494 | 2013-02-18 Yao Qi <yao@codesourcery.com> |
| 8495 | |
| 8496 | * linux-bfin-low.c (the_low_target): Use NULL instead of 0. |
| 8497 | |
| 8498 | 2013-02-14 Pedro Alves <palves@redhat.com> |
| 8499 | |
| 8500 | Plug memory leak. |
| 8501 | |
| 8502 | * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, |
| 8503 | TRACING_NOTES and TRACING_STOP_NOTE before clobbering. |
| 8504 | |
| 8505 | 2013-02-14 Pedro Alves <palves@redhat.com> |
| 8506 | |
| 8507 | * tracepoint.c (cmd_qtdpsrc): Use savestring. |
| 8508 | |
| 8509 | 2013-02-14 Pedro Alves <palves@redhat.com> |
| 8510 | |
| 8511 | * tracepoint.c (save_string): Delete. |
| 8512 | (add_tracepoint_action): Use savestring instead of save_string. |
| 8513 | |
| 8514 | 2013-02-12 Pedro Alves <palves@redhat.com> |
| 8515 | |
| 8516 | * linux-xtensa-low.c: Ditto. |
| 8517 | * xtensa-xtregs.c: Ditto. |
| 8518 | |
| 8519 | 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> |
| 8520 | |
| 8521 | * thread-db.c (thread_db_get_tls_address): NULL pointer check |
| 8522 | thread_db. |
| 8523 | |
| 8524 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
| 8525 | |
| 8526 | * linux-aarch64-low.c (aarch64_arch_setup): Clamp |
| 8527 | aarch64_num_wp_regs and aarch64_num_bp_regs to |
| 8528 | AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively. |
| 8529 | |
| 8530 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
| 8531 | |
| 8532 | * linux-aarch64-low.c (ps_get_thread_area): Replace |
| 8533 | PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET. |
| 8534 | |
| 8535 | 2013-02-04 Jim MacArthur <jim.macarthur@arm.com> |
| 8536 | Marcus Shawcroft <marcus.shawcroft@arm.com> |
| 8537 | Nigel Stephens <nigel.stephens@arm.com> |
| 8538 | Yufeng Zhang <yufeng.zhang@arm.com> |
| 8539 | |
| 8540 | * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c. |
| 8541 | (aarch64.c, aarch64-without-fpu.c): New targets. |
| 8542 | * configure.srv (aarch64*-*-linux*): New. |
| 8543 | * linux-aarch64-low.c: New file. |
| 8544 | |
| 8545 | 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
| 8546 | |
| 8547 | * linux-low.c (handle_extended_wait, linux_create_inferior) |
| 8548 | (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp) |
| 8549 | (dequeue_one_deferred_signal, linux_resume_one_thread) |
| 8550 | (fetch_register, linux_write_memory, linux_enable_event_reporting) |
| 8551 | (linux_tracefork_grandchild, linux_test_for_tracefork) |
| 8552 | (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add |
| 8553 | PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments |
| 8554 | where the argument is 0. |
| 8555 | |
| 8556 | 2013-01-25 Yao Qi <yao@codesourcery.com> |
| 8557 | |
| 8558 | * event-loop.c: Include "queue.h". |
| 8559 | (gdb_event_p): New typedef. |
| 8560 | (struct gdb_event) <next_event>: Remove. |
| 8561 | (event_queue): Change to QUEUE(gdb_event_p). |
| 8562 | (async_queue_event): Remove. |
| 8563 | (gdb_event_xfree): New. |
| 8564 | (initialize_event_loop): New. |
| 8565 | (process_event): Use API from QUEUE. |
| 8566 | (wait_for_event): Likewise. |
| 8567 | * server.c (main): Call initialize_event_loop. |
| 8568 | * server.h (initialize_event_loop): Declare. |
| 8569 | |
| 8570 | 2013-01-18 Yao Qi <yao@codesourcery.com> |
| 8571 | |
| 8572 | * ax.h (struct eval_agent_expr_context): New. |
| 8573 | (gdb_eval_agent_expr): Update declaration. |
| 8574 | * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and |
| 8575 | TFRAME. Add new argument CTX. |
| 8576 | * server.h (struct eval_agent_expr_context): Declare. |
| 8577 | (agent_mem_read, agent_tsv_read): Update declaration. |
| 8578 | (agent_mem_read_string): Likewise. |
| 8579 | * tracepoint.c (eval_tracepoint_agent_expr): Remove. |
| 8580 | (add_traceframe_block): Add new argument TPOINT. |
| 8581 | Increase TPOINT->traceframe_usage. |
| 8582 | (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of |
| 8583 | eval_tracepoint_agent_expr. |
| 8584 | (condition_true_at_tracepoint): Likewise. |
| 8585 | (agent_mem_read): Remove argument TFRAME. Add argument CTX. |
| 8586 | (agent_mem_read_string, agent_tsv_read): Likewise. |
| 8587 | |
| 8588 | 2013-01-16 Yao Qi <yao@codesourcery.com> |
| 8589 | |
| 8590 | * linux-low.c (linux_resume_one_lwp): Don't check |
| 8591 | 'lwp->bp_reinsert != 0'. |
| 8592 | |
| 8593 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
| 8594 | Pedro Alves <palves@redhat.com> |
| 8595 | |
| 8596 | * lynx-low.c (ptrace_request_to_str): Define a temporary |
| 8597 | macro and use it to simplify this function's implementation. |
| 8598 | |
| 8599 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
| 8600 | |
| 8601 | * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace |
| 8602 | sets errno. |
| 8603 | |
| 8604 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
| 8605 | |
| 8606 | * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles. |
| 8607 | |
| 8608 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
| 8609 | |
| 8610 | * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. |
| 8611 | |
| 8612 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
| 8613 | |
| 8614 | * lynx-low.c (lynx_resume): Use the resume_info parameter |
| 8615 | to determine the ptid for the lynx_ptrace call, unless |
| 8616 | it is equal to minus_one_ptid, in which case we use the |
| 8617 | ptid of the current_inferior. |
| 8618 | (lynx_wait_1): After having received a thread create/exit |
| 8619 | event, resume the inferior's execution using the signaling |
| 8620 | thread's ptid, rather than the old ptid. |
| 8621 | |
| 8622 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
| 8623 | |
| 8624 | * lynx-low.c (lynx_resume): Delete variable ret. |
| 8625 | |
| 8626 | 2013-01-01 Joel Brobecker <brobecker@adacore.com> |
| 8627 | |
| 8628 | * gdbreplay.c (gdbreplay_version): Update copyright year. |
| 8629 | * server.c (gdbserver_version): Likewise. |
| 8630 | |
| 8631 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
| 8632 | |
| 8633 | * lynx-low.c (lynx_wait_1): Add debug trace before adding |
| 8634 | new thread. |
| 8635 | |
| 8636 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
| 8637 | |
| 8638 | * lynx-low.c (ptrace_request_to_str): Add handling for |
| 8639 | PTRACE_GETTRACESIG. |
| 8640 | |
| 8641 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
| 8642 | |
| 8643 | * lynx-low.c (lynx_attach): Delete variable new_process. |
| 8644 | |
| 8645 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
| 8646 | |
| 8647 | * lynx-low.c (lynx_create_inferior): Delete variable |
| 8648 | new_process. |
| 8649 | |
| 8650 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
| 8651 | |
| 8652 | * lynx-low.c (ptrace_request_to_str): Do not handle |
| 8653 | PTRACE_GETTHREADLIST if this macro does not exist. |
| 8654 | |
| 8655 | 2012-12-15 Yao Qi <yao@codesourcery.com> |
| 8656 | |
| 8657 | * Makefile.in (OBS): Add notif.o. |
| 8658 | * notif.c, notif.h: New. |
| 8659 | * server.c: Include "notif.h". |
| 8660 | (struct vstop_notif) <next>: Remove. |
| 8661 | <base>: New field. |
| 8662 | (queue_stop_reply): Update. |
| 8663 | (push_event, send_next_stop_reply): Remove. |
| 8664 | (discard_queued_stop_replies): Update. |
| 8665 | (notif_stop): New variable. |
| 8666 | (handle_v_stopped): Remove. |
| 8667 | (handle_v_requests): Don't call handle_v_stopped. Call |
| 8668 | handle_ack_notif instead. |
| 8669 | (queue_stop_reply_callback): Call notif_event_enque instead |
| 8670 | of queue_stop_reply. |
| 8671 | (handle_status): Don't call send_next_stop_reply, call |
| 8672 | notif_write_event instead. |
| 8673 | (kill_inferior_callback): Likewise. |
| 8674 | (detach_or_kill_inferior_callback): Likewise. |
| 8675 | (main): Call initialize_notif. |
| 8676 | (process_serial_event): Call QUEUE_is_empty. |
| 8677 | (handle_target_event): Call notif_push instead of push event. |
| 8678 | * server.h (push_event): Remove declaration. |
| 8679 | |
| 8680 | 2012-12-10 Tom Tromey <tromey@redhat.com> |
| 8681 | |
| 8682 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre) |
| 8683 | (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New |
| 8684 | macros. |
| 8685 | (.c.o): Rewrite. |
| 8686 | (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o) |
| 8687 | (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o) |
| 8688 | (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o) |
| 8689 | (amd64-linux-ipa.o, ax.o): Rewrite. |
| 8690 | (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o) |
| 8691 | (proc-service.o, regcache.o, remote-utils.o, server.o, target.o) |
| 8692 | (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove. |
| 8693 | (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o) |
| 8694 | (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o) |
| 8695 | (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite. |
| 8696 | (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o) |
| 8697 | (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o) |
| 8698 | (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o) |
| 8699 | (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o) |
| 8700 | (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o) |
| 8701 | (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o) |
| 8702 | (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o) |
| 8703 | (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o) |
| 8704 | (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o) |
| 8705 | (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o) |
| 8706 | (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o) |
| 8707 | (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o) |
| 8708 | (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o) |
| 8709 | (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o) |
| 8710 | (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o) |
| 8711 | (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o) |
| 8712 | (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o) |
| 8713 | (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o) |
| 8714 | (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o) |
| 8715 | (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o) |
| 8716 | (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o) |
| 8717 | (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o) |
| 8718 | (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o) |
| 8719 | (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o) |
| 8720 | (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o) |
| 8721 | (reg-tilegx.o): Remove. |
| 8722 | (all_object_files): New macro. |
| 8723 | Include .deps files. |
| 8724 | * aclocal.m4, configure: Rebuild. |
| 8725 | * acinclude.m4: Include depstand.m4, lead-dot.m4. |
| 8726 | * configure.ac: Invoke ZW_CREATE_DEPDIR, |
| 8727 | ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition. |
| 8728 | |
| 8729 | 2012-12-05 Tom Tromey <tromey@redhat.com> |
| 8730 | |
| 8731 | PR gdb/14917: |
| 8732 | * server.h (current_insn_ptr, emit_error): Declare 'extern'. |
| 8733 | |
| 8734 | 2012-11-28 Markus Metzger <markus.t.metzger@intel.com> |
| 8735 | |
| 8736 | * configure.ac: Check for linux/perf_event.h. |
| 8737 | * config.in: Regenerated. |
| 8738 | * configure: Regenerated. |
| 8739 | |
| 8740 | 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> |
| 8741 | |
| 8742 | * hostio.c (handle_readlink): Decrease buffer size |
| 8743 | parameter passed to readlink by one byte. |
| 8744 | |
| 8745 | 2012-11-26 Yao Qi <yao@codesourcery.com> |
| 8746 | |
| 8747 | * configure.ac (build_warnings): Append '-Wempty-body'. |
| 8748 | * configure: Regenerated. |
| 8749 | * linux-low.c (linux_create_inferior): Use braces for empty 'if' |
| 8750 | body. |
| 8751 | |
| 8752 | 2012-11-15 Pierre Muller <muller@sourceware.org> |
| 8753 | |
| 8754 | * configure.ac (AC_CHECK_HEADERS): Add wait.h header. |
| 8755 | * config.in: Regenerate. |
| 8756 | * configure: Regenerate. |
| 8757 | * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. |
| 8758 | Use "gdb_wait.h" header instead of <sys/wait.h> header. |
| 8759 | * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. |
| 8760 | * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> |
| 8761 | header. |
| 8762 | * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header |
| 8763 | instead of <sys/wait.h> header. |
| 8764 | * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. |
| 8765 | |
| 8766 | 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> |
| 8767 | |
| 8768 | * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER |
| 8769 | (various make rules): Remove -DGDBSERVER |
| 8770 | |
| 8771 | 2012-11-09 Yao Qi <yao@codesourcery.com> |
| 8772 | |
| 8773 | * spu-low.c (current_ptid): Move it to .. |
| 8774 | * gdbthread.h: ... here. New. |
| 8775 | * remote-utils.c (read_ptid): Use macro 'current_ptid'. |
| 8776 | * server.c (myresume, process_serial_event): Likewise. |
| 8777 | * thread-db.c (thread_db_find_new_threads): Likewise. |
| 8778 | * tracepoint.c (run_inferior_command): Likewise. |
| 8779 | |
| 8780 | 2012-10-01 Andrew Burgess <aburgess@broadcom.com> |
| 8781 | |
| 8782 | * server.c (handle_search_memory_1): Include access length in |
| 8783 | warning message. |
| 8784 | |
| 8785 | 2012-09-05 Michael Brandt <michael.brandt@axis.com> |
| 8786 | |
| 8787 | * linux-crisv32-low.c: Fix compile errors. |
| 8788 | |
| 8789 | 2012-09-04 Yao Qi <yao@codesourcery.com> |
| 8790 | |
| 8791 | * tracepoint.c (cmd_qtsv): Adjust debug message. |
| 8792 | Don't check CUR_TPOINT. |
| 8793 | |
| 8794 | 2012-08-28 Yao Qi <yao@codesourcery.com> |
| 8795 | |
| 8796 | * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. |
| 8797 | * server.h: Include 'libiberty.h' and 'ansidecl.h'. |
| 8798 | (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. |
| 8799 | Remove declarations of xmalloc, xreallloc, xstrdup and |
| 8800 | freeargv. |
| 8801 | * Makefile.in (libiberty_h): New. |
| 8802 | (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. |
| 8803 | (linux-bfin-low.o): Append dependency 'libiberty.h'. |
| 8804 | |
| 8805 | 2012-08-23 Yao Qi <yao@codesourcery.com> |
| 8806 | |
| 8807 | * server.h: Remove declaration of 'xsnprintf'. |
| 8808 | |
| 8809 | 2012-08-22 Keith Seitz <keiths@redhat.com> |
| 8810 | |
| 8811 | * server.h: Include build-gnulib-gbserver/config.h. |
| 8812 | * gdbreplay.c: Likewise. |
| 8813 | |
| 8814 | 2012-08-08 Doug Evans <dje@google.com> |
| 8815 | |
| 8816 | * Makefile.in (SFILES): Add gdb_vecs.c. |
| 8817 | (OBS): Add gdb_vecs.o. |
| 8818 | (gdb_vecs_h, host_defs_h): New variables. |
| 8819 | (thread-db.o): Add $(gdb_vecs_h) dependency. |
| 8820 | (gdb_vecs.o): New rule. |
| 8821 | * thread-db.c: #include "gdb_vecs.h". |
| 8822 | (thread_db_load_search): Use a vector to iterate over path elements. |
| 8823 | Handle text appearing after "$pdir". |
| 8824 | |
| 8825 | * configure.ac: Add check for strstr. |
| 8826 | * config.in: Regenerate. |
| 8827 | * configure: Regenerate. |
| 8828 | |
| 8829 | 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
| 8830 | |
| 8831 | * hostio.c (handle_pread): If pread fails, fall back to attempting |
| 8832 | lseek/read. |
| 8833 | (handle_pwrite): Likewise for pwrite. |
| 8834 | |
| 8835 | 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
| 8836 | |
| 8837 | * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish |
| 8838 | between unsupported TYPE and unimplementable ADDR/LEN combination. |
| 8839 | (arm_insert_point): Act on new return value. |
| 8840 | |
| 8841 | 2012-07-31 Pedro Alves <palves@redhat.com> |
| 8842 | |
| 8843 | * server.c (process_point_options): Only skip tokens if we find |
| 8844 | one that is unrecognized. Don't treat 'X' specially while |
| 8845 | skipping unrecognized tokens. |
| 8846 | |
| 8847 | 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org> |
| 8848 | |
| 8849 | * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt |
| 8850 | to 4-byte-align HW breakpoint addresses for Thumb. |
| 8851 | |
| 8852 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
| 8853 | |
| 8854 | PR remote/14161. |
| 8855 | |
| 8856 | * server.h: Declare gdb_agent_about_to_close. |
| 8857 | * target.c (kill_inferior): Include "agent.h". |
| 8858 | New. Send command 'kill'. |
| 8859 | * target.h (kill_inferior): Removed macro. |
| 8860 | * tracepoint.c (gdb_agent_about_to_close): New. |
| 8861 | (gdb_agent_helper_thread): Handle command 'close'. |
| 8862 | Wait endlessly until the inferior stops. |
| 8863 | Install gdb_agent_remove_socket to atexit hook. |
| 8864 | (agent_socket_name): New static variable. |
| 8865 | (gdb_agent_socket_init): Replace local variable 'name' with |
| 8866 | 'agent_socket_name'. |
| 8867 | (gdb_agent_remove_socket): New. |
| 8868 | |
| 8869 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
| 8870 | |
| 8871 | * server.c (process_point_options): Stop at 'X' when parsing. |
| 8872 | |
| 8873 | 2012-07-19 Michael Eager <eager@eagercon.com> |
| 8874 | |
| 8875 | * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate |
| 8876 | to hw_execute. |
| 8877 | * linux-x86-low.c (x86_insert_point, x86_remove_point): |
| 8878 | Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del |
| 8879 | hardware breakpoint. |
| 8880 | |
| 8881 | 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 8882 | |
| 8883 | * gdbserver/linux-low.c (initialize_low): Call |
| 8884 | linux_ptrace_init_warnings. |
| 8885 | |
| 8886 | 2012-07-02 Doug Evans <dje@google.com> |
| 8887 | |
| 8888 | * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from |
| 8889 | pointer to int. |
| 8890 | |
| 8891 | 2012-07-02 Stan Shebs <stan@codesourcery.com> |
| 8892 | |
| 8893 | * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. |
| 8894 | (ax.o): Add it to build rule. |
| 8895 | (ax-ipa.o): Ditto. |
| 8896 | (OBS): Add format.o. |
| 8897 | (IPA_OBS): Add format.o. |
| 8898 | * server.c (handle_query): Claim support for breakpoint commands. |
| 8899 | (process_point_options): Add command case. |
| 8900 | (process_serial_event): Leave running if there are printfs in |
| 8901 | effect. |
| 8902 | * mem-break.h (any_persistent_commands): Declare. |
| 8903 | (add_breakpoint_commands): Declare. |
| 8904 | (gdb_no_commands_at_breakpoint): Declare. |
| 8905 | (run_breakpoint_commands): Declare. |
| 8906 | * mem-break.c (struct point_command_list): New struct. |
| 8907 | (struct breakpoint): New field command_list. |
| 8908 | (any_persistent_commands): New function. |
| 8909 | (add_commands_to_breakpoint): New function. |
| 8910 | (add_breakpoint_commands): New function. |
| 8911 | (gdb_no_commands_at_breakpoint): New function. |
| 8912 | (run_breakpoint_commands): New function. |
| 8913 | * linux-low.c (linux_wait_1): Test for and run breakpoint commands |
| 8914 | locally. |
| 8915 | * ax.c: Include format.h. |
| 8916 | (ax_printf): New function. |
| 8917 | (gdb_eval_agent_expr): Add printf opcode. |
| 8918 | |
| 8919 | 2012-06-13 Yao Qi <yao@codesourcery.com> |
| 8920 | |
| 8921 | * server.c (start_inferior): Remove duplicated writes to fields |
| 8922 | 'last_resume_kind' and 'last_status' of 'current_inferior'. |
| 8923 | |
| 8924 | 2012-06-12 Yao Qi <yao@codesourcery.com> |
| 8925 | Pedro Alves <palves@redhat.com> |
| 8926 | |
| 8927 | * linux-low.c (linux_set_resume_request): Simplify predicate. Add |
| 8928 | comment. |
| 8929 | * server.c (handle_v_cont): Extend comment. |
| 8930 | |
| 8931 | 2012-06-11 Yao Qi <yao@codesourcery.com> |
| 8932 | |
| 8933 | * linux-low.c (linux_attach): Add 'static'. |
| 8934 | |
| 8935 | 2012-06-06 Yao Qi <yao@codesourcery.com> |
| 8936 | |
| 8937 | * ax.c (gdb_eval_agent_expr): Print `top' in hex. |
| 8938 | |
| 8939 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 8940 | |
| 8941 | Fix gcc -flto compilation warning. |
| 8942 | * server.c (main): Make variable multi_mode and attach volatile. |
| 8943 | |
| 8944 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
| 8945 | |
| 8946 | * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP |
| 8947 | if the platform doesn't know about it. |
| 8948 | |
| 8949 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
| 8950 | |
| 8951 | * Makefile.in (SFILES): Add linux-tile-low.c. |
| 8952 | (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules. |
| 8953 | * configure.srv: Handle tilegx-*-linux*. |
| 8954 | * linux-tile-low.c: New file. |
| 8955 | |
| 8956 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 8957 | |
| 8958 | * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1. |
| 8959 | |
| 8960 | 2012-05-24 Pedro Alves <palves@redhat.com> |
| 8961 | |
| 8962 | PR gdb/7205 |
| 8963 | |
| 8964 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
| 8965 | |
| 8966 | 2012-05-24 Pedro Alves <palves@redhat.com> |
| 8967 | |
| 8968 | PR gdb/7205 |
| 8969 | |
| 8970 | Replace target_signal with gdb_signal throughout. |
| 8971 | |
| 8972 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
| 8973 | |
| 8974 | * linux-low.c (linux_store_registers): Avoid the copying sequence |
| 8975 | when no data has been retrieved by ptrace. |
| 8976 | |
| 8977 | 2012-05-22 Will Deacon <will.deacon@arm.com> |
| 8978 | |
| 8979 | * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)): |
| 8980 | Include asm/ptrace.h. |
| 8981 | (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not |
| 8982 | already defined. |
| 8983 | |
| 8984 | 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com> |
| 8985 | |
| 8986 | * linux-low.c (linux_store_registers): Don't re-retrieve data |
| 8987 | with ptrace that has already been obtained from /proc. Always |
| 8988 | copy any data retrieved with ptrace to the buffer supplied. |
| 8989 | |
| 8990 | 2012-05-11 Yao Qi <yao@codesourcery.com> |
| 8991 | Pedro Alves <palves@redhat.com> |
| 8992 | |
| 8993 | * linux-low.c (enum stopping_threads_kind): New. |
| 8994 | (stopping_threads): Change type to `enum stopping_threads_kind'. |
| 8995 | (handle_extended_wait): If stopping and suspending threads, leave |
| 8996 | the new_lwp suspended too. |
| 8997 | (linux_wait_for_event): Adjust. |
| 8998 | (stop_all_lwps): Set `stopping_threads' to |
| 8999 | STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on |
| 9000 | whether we're suspending threads or just stopping them. Assert no |
| 9001 | recursion happens. |
| 9002 | |
| 9003 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
| 9004 | |
| 9005 | * server.h: Move some code to ... |
| 9006 | * gdbthread.h: ... here. New. |
| 9007 | * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h |
| 9008 | (remote-utils.o, server.o, target.o tracepoint.o): Likewise. |
| 9009 | (nto-low.o, win32-low.o): Likewise. |
| 9010 | * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h. |
| 9011 | * regcache.c, remote-utils.c, server.c: Likewise. |
| 9012 | * target.c, tracepoint.c, win32-low.c: Likewise. |
| 9013 | |
| 9014 | 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
| 9015 | |
| 9016 | * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c. |
| 9017 | (PTRACE_ARG4_TYPE): Likewise. |
| 9018 | (PTRACE_XFER_TYPE): Likewise. |
| 9019 | * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of |
| 9020 | ptrace to PTRACE_ARG3_TYPE. |
| 9021 | * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. |
| 9022 | (PTRACE_ARG4_TYPE): Likewise. |
| 9023 | (PTRACE_XFER_TYPE): Likewise. |
| 9024 | (linux_detach_one_lwp): Cast fourth argument of |
| 9025 | ptrace to long then PTRACE_ARG4_TYPE. |
| 9026 | (regsets_fetch_inferior_registers): Cast third argument of |
| 9027 | ptrace to long then PTRACE_ARG3_TYPE. |
| 9028 | (regsets_store_inferior_registers): Likewise. |
| 9029 | |
| 9030 | 2012-04-20 Pedro Alves <palves@redhat.com> |
| 9031 | |
| 9032 | * configure: Regenerate. |
| 9033 | |
| 9034 | 2012-04-19 Pedro Alves <palves@redhat.com> |
| 9035 | |
| 9036 | * Makefile.in (GNULIB_BUILDDIR): New. |
| 9037 | (LIBGNU, INCGNU, GNULIB_H): Adjust. |
| 9038 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. |
| 9039 | (all, install-only, uninstall, clean-info, all-lib, clean): No |
| 9040 | longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. |
| 9041 | (maintainer-clean realclean distclean): Use subdir_do. |
| 9042 | (subdir_do): New. |
| 9043 | (gnulib/import/Makefile): Adjust. Replace gnulib/import with |
| 9044 | $(GNULIB_BUILDDIR). Don't pass argument to config.status. |
| 9045 | * acinclude.m4: Include acx_configure_dir.m4. |
| 9046 | * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE |
| 9047 | calls. Call AC_PROG_RANLIB. Configure gnulib using |
| 9048 | ACX_CONFIGURE_DIR. |
| 9049 | (GNULIB): New. |
| 9050 | (GNULIB_STDINT_H): Adjust. |
| 9051 | (AC_OUTPUT): Don't output gnulib/Makefile anymore. |
| 9052 | * gdbreplay.c: Include build-gnulib/config.h. |
| 9053 | * server.h: Likewise. |
| 9054 | * aclocal.m4: Regenerate. |
| 9055 | * config.in: Regenerate. |
| 9056 | * configure: Regenerate. |
| 9057 | |
| 9058 | 2012-04-19 Pedro Alves <palves@redhat.com> |
| 9059 | |
| 9060 | * Makefile.in (LIBGNU, INCGNU): Adjust. |
| 9061 | (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust. |
| 9062 | (all, install-only, uninstall, clean-info, all-lib, clean) |
| 9063 | (maintainer-clean, Makefile, gnulib/Makefile): Adjust. |
| 9064 | * configure.ac: Adjust AC_OUTPUT output. |
| 9065 | * aclocal.m4: Regenerate. |
| 9066 | * configure: Regenerate. |
| 9067 | |
| 9068 | 2012-04-19 Pedro Alves <palves@redhat.com> |
| 9069 | |
| 9070 | * Makefile.in (generated_files): New. |
| 9071 | (server_h): Remove the explicit dependency on config.h, and depend |
| 9072 | on $generated_files. |
| 9073 | |
| 9074 | 2012-04-19 Pedro Alves <palves@redhat.com> |
| 9075 | |
| 9076 | * Makefile.in (INCGNU): Add -Ignulib. |
| 9077 | |
| 9078 | 2012-04-19 Pedro Alves <palves@redhat.com> |
| 9079 | |
| 9080 | * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ... |
| 9081 | (INCGNU): ... this, and spell out -I here. |
| 9082 | (GNULIB_LIB): Rename to ... |
| 9083 | (LIBGNU): ... this. |
| 9084 | (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust. |
| 9085 | |
| 9086 | 2012-04-19 Pedro Alves <palves@redhat.com> |
| 9087 | |
| 9088 | * config.in: Regenerate. |
| 9089 | |
| 9090 | 2012-04-19 Pedro Alves <palves@redhat.com> |
| 9091 | |
| 9092 | * configure.ac: Remove AC_CHECK_DECLS check for memmem. |
| 9093 | * server.h (memmem): Remove declaration. |
| 9094 | * config.in: Regenerate. |
| 9095 | * configure: Regenerate. |
| 9096 | |
| 9097 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
| 9098 | |
| 9099 | * Makefile.in (SFILES): Add common/vec.c. |
| 9100 | (OBS): Add vec.o. |
| 9101 | (vec.o): New rule. |
| 9102 | |
| 9103 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
| 9104 | |
| 9105 | * remote-utils.c (prepare_resume_reply): Replace with macro |
| 9106 | target_core_of_thread. |
| 9107 | * server.c (handle_qxfer_threads_proper): Likewise. |
| 9108 | * target.h (traget_core_of_thread): New macro. |
| 9109 | |
| 9110 | 2012-04-18 Pedro Alves <palves@redhat.com> |
| 9111 | |
| 9112 | * aclocal.m4: Regenerate. |
| 9113 | * configure: Regenerate. |
| 9114 | |
| 9115 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
| 9116 | |
| 9117 | * tracepoint.c (cmd_qtstart): Download tracepoints even when they are |
| 9118 | duplicated on address. |
| 9119 | |
| 9120 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
| 9121 | |
| 9122 | * tracepoint.c (COPY_FIELD_TO_BUF): New macro. |
| 9123 | (struct tracepoint_action_ops) <send>: New field. |
| 9124 | (m_tracepoint_action_send, r_tracepoint_action_send): New. |
| 9125 | (agent_expr_send, x_tracepoint_action_send): New. |
| 9126 | (l_tracepoint_action_send): New. |
| 9127 | (cmd_qtdp): Download and install tracepoint |
| 9128 | according to `use_agent'. |
| 9129 | (run_inferior_command): Add one more parameter `len'. |
| 9130 | Update callers. |
| 9131 | (tracepoint_send_agent): New. |
| 9132 | (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent. |
| 9133 | |
| 9134 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
| 9135 | |
| 9136 | * tracepoint.c (download_tracepoints): Moved to ... |
| 9137 | (cmd_qtstart): ... here. |
| 9138 | |
| 9139 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
| 9140 | |
| 9141 | * tracepoint.c: Include inttypes.h. |
| 9142 | (struct collect_memory_action): Use sized types. |
| 9143 | (struct tracepoint): Likewise. |
| 9144 | (cmd_qtdp, stop_tracing): Update print specifiers. |
| 9145 | (cmd_qtp, response_tracepoint): Likewise. |
| 9146 | (collect_data_at_tracepoint): Likewise. |
| 9147 | (collect_data_at_step): Likewise. |
| 9148 | |
| 9149 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
| 9150 | |
| 9151 | Import gnulib module inttypes. |
| 9152 | * aclocal.m4, config.in, configure: Regenerated. |
| 9153 | |
| 9154 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
| 9155 | |
| 9156 | * Makefile.in (maintainer-clean, realclean, distclean): Remove |
| 9157 | Makefile and config.status at last. |
| 9158 | |
| 9159 | 2012-04-13 Yao Qi <yao@codesourcery.com> |
| 9160 | |
| 9161 | * tracepoint.c: Include stdint.h unconditionally. |
| 9162 | |
| 9163 | 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
| 9164 | |
| 9165 | * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based |
| 9166 | on BFD_HAVE_SYS_PROCFS_TYPE. |
| 9167 | * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. |
| 9168 | * configure: Regenerate. |
| 9169 | * config.in: Likewise. |
| 9170 | |
| 9171 | 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> |
| 9172 | |
| 9173 | * Makefile.in (clean): Also remove x32.c x32-linux.c |
| 9174 | x32-avx.c x32-avx-linux.c. |
| 9175 | (x32.o): New target. |
| 9176 | (x32.c): Likewise. |
| 9177 | (x32-linux.o): Likewise. |
| 9178 | (x32-linux.c): Likewise. |
| 9179 | (x32-avx.o): Likewise. |
| 9180 | (x32-avx.c): Likewise. |
| 9181 | (x32-avx-linux.o): Likewise. |
| 9182 | (x32-avx-linux.c): Likewise. |
| 9183 | |
| 9184 | * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. |
| 9185 | (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. |
| 9186 | (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. |
| 9187 | (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. |
| 9188 | (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml |
| 9189 | i386/x32-avx-linux.xml. |
| 9190 | |
| 9191 | * linux-x86-low.c (init_registers_x32_linux): New prototype. |
| 9192 | (init_registers_x32_avx_linux): Likwise. |
| 9193 | (x86_linux_update_xmltarget): Call init_registers_x32_linux |
| 9194 | or init_registers_x32_avx_linux if linux_is_elf64 is false. |
| 9195 | |
| 9196 | 2012-04-13 Pedro Alves <palves@redhat.com> |
| 9197 | |
| 9198 | * Makefile.in (GNULIB_FLAGS_TO_PASS): New. |
| 9199 | (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. |
| 9200 | (all, uninstall, clean-info, all-lib, clean, maintainer-clean) |
| 9201 | (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to |
| 9202 | the sub-make. |
| 9203 | |
| 9204 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
| 9205 | |
| 9206 | * linux-x86-low.c (compat_x32_clock_t): New. |
| 9207 | (compat_x32_siginfo_t): Likewise. |
| 9208 | (compat_x32_siginfo_from_siginfo): Likewise. |
| 9209 | (siginfo_from_compat_x32_siginfo): Likewise. |
| 9210 | (linux_is_elf64): Likewise. |
| 9211 | (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo |
| 9212 | and siginfo_from_compat_x32_siginfo for x32. |
| 9213 | (x86_arch_setup): Set linux_is_elf64. |
| 9214 | |
| 9215 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
| 9216 | |
| 9217 | PR gdb/13969 |
| 9218 | * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the |
| 9219 | e_machine field. |
| 9220 | (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. |
| 9221 | * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. |
| 9222 | * linux-x86-low.c (x86_arch_setup): Check if GDBserver is |
| 9223 | compatible with process. |
| 9224 | |
| 9225 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
| 9226 | |
| 9227 | * Makefile.in: Define abs_top_srcdir and abs_srcdir. |
| 9228 | (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. |
| 9229 | (install-only, install-info, clean): Handle sub dir gnulib. |
| 9230 | (all-lib, am--refresh): New targets. |
| 9231 | (memmem.o): Remove target. |
| 9232 | * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. |
| 9233 | Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. |
| 9234 | (AC_REPLACE_FUNCS): Remove memmem. |
| 9235 | Invoke gl_INIT and AM_INIT_AUTOMAKE. |
| 9236 | (AC_OUTPUT): Generate Makefile in gnulib/. |
| 9237 | * aclocal.m4, config.in, configure: Regenerated. |
| 9238 | |
| 9239 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
| 9240 | |
| 9241 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP. |
| 9242 | |
| 9243 | 2012-04-05 Pedro Alves <palves@redhat.com> |
| 9244 | |
| 9245 | -Werror=strict-aliasing |
| 9246 | |
| 9247 | * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned |
| 9248 | pointer. |
| 9249 | |
| 9250 | 2012-04-04 Pedro Alves <palves@redhat.com> |
| 9251 | |
| 9252 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) |
| 9253 | (sparc_store_gregset_from_stack, sparc_store_gregset) |
| 9254 | (sparc_breakpoint_at): Fix formatting. |
| 9255 | |
| 9256 | 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
| 9257 | |
| 9258 | * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t |
| 9259 | are available. |
| 9260 | * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. |
| 9261 | [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. |
| 9262 | * config.in: Regenerate. |
| 9263 | * configure: Likewise. |
| 9264 | |
| 9265 | 2012-03-29 Pedro Alves <palves@redhat.com> |
| 9266 | |
| 9267 | * linux-low.c (regsets_store_inferior_registers) [__sparc__]: |
| 9268 | Correct ptrace arguments. |
| 9269 | |
| 9270 | 2012-03-28 Pedro Alves <palves@redhat.com> |
| 9271 | |
| 9272 | * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. |
| 9273 | (IA64_GR0_REGNUM, IA64_FR0_REGNUM) |
| 9274 | (IA64_FR1_REGNUM): New defines. |
| 9275 | (ia64_fetch_register): New. |
| 9276 | (the_low_target): Install it. |
| 9277 | * linux-low.h (struct linux_target_ops) <fetch_register>: New |
| 9278 | field. |
| 9279 | * linux-low.c (linux_fetch_registers): Try the |
| 9280 | the_low_target.fetch_register hook first. |
| 9281 | |
| 9282 | * linux-arm-low.c (the_low_target): Adjust. |
| 9283 | * linux-bfin-low.c (the_low_target): Adjust. |
| 9284 | * linux-cris-low.c (the_low_target): Adjust. |
| 9285 | * linux-crisv32-low.c (the_low_target): Adjust. |
| 9286 | * linux-m32r-low.c (the_low_target): Adjust. |
| 9287 | * linux-m68k-low.c (the_low_target): Adjust. |
| 9288 | * linux-mips-low.c (the_low_target): Adjust. |
| 9289 | * linux-ppc-low.c (the_low_target): Adjust. |
| 9290 | * linux-s390-low.c (the_low_target): Adjust. |
| 9291 | * linux-sh-low.c (the_low_target): Adjust. |
| 9292 | * linux-sparc-low.c (the_low_target): Adjust. |
| 9293 | * linux-tic6x-low.c (the_low_target): Adjust. |
| 9294 | * linux-x86-low.c (the_low_target): Adjust. |
| 9295 | * linux-xtensa-low.c (the_low_target): Adjust. |
| 9296 | |
| 9297 | 2012-03-26 Pedro Alves <palves@redhat.com> |
| 9298 | |
| 9299 | * server.c (handle_qxfer_libraries): Don't bail early if |
| 9300 | the_target->qxfer_libraries_svr4 is not NULL. |
| 9301 | |
| 9302 | 2012-03-26 Pedro Alves <palves@redhat.com> |
| 9303 | |
| 9304 | * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment. |
| 9305 | |
| 9306 | 2012-03-23 Pedro Alves <palves@redhat.com> |
| 9307 | |
| 9308 | * linux-low.c (linux_qxfer_libraries_svr4): Terminate the |
| 9309 | "library-list-svr4" element's start tag when the the DSO list is |
| 9310 | empty. |
| 9311 | |
| 9312 | 2012-03-23 Pedro Alves <palves@redhat.com> |
| 9313 | |
| 9314 | * linux-low.c (read_one_ptr): Read the inferior's pointer through |
| 9315 | a variable whose type size is the same as the inferior's pointer |
| 9316 | size. |
| 9317 | |
| 9318 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
| 9319 | |
| 9320 | * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of |
| 9321 | struct siginfo. |
| 9322 | * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise. |
| 9323 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. |
| 9324 | * linux-low.h: Include <signal.h>. |
| 9325 | (struct siginfo): Remove forward declaration. |
| 9326 | (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of |
| 9327 | struct siginfo. |
| 9328 | |
| 9329 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
| 9330 | |
| 9331 | * .gitignore: Ignore more files. |
| 9332 | |
| 9333 | 2012-03-19 Pedro Alves <palves@redhat.com> |
| 9334 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9335 | |
| 9336 | * server.c (cont_thread, general_thread): Add describing comments. |
| 9337 | (start_inferior): Clear `cont_thread'. |
| 9338 | (handle_v_cont): Don't set `cont_thread' if resuming all threads |
| 9339 | of a process. |
| 9340 | |
| 9341 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
| 9342 | |
| 9343 | * tracepoint.c (install_tracepoint): Move duplicated tracepoint |
| 9344 | handling to ... |
| 9345 | (cmd_qtdp): ... here. |
| 9346 | |
| 9347 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
| 9348 | |
| 9349 | * tracepoint.c (struct tracepoint_action_ops): New. |
| 9350 | (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field. |
| 9351 | (m_tracepoint_action_download): New. |
| 9352 | (r_tracepoint_action_download): New. |
| 9353 | (x_tracepoint_action_download): New. |
| 9354 | (l_tracepoint_action_download): New. |
| 9355 | (add_tracepoint_action): Install `action->ops' according type. |
| 9356 | (download_tracepoint_1): Move code `download' function pointer |
| 9357 | of various tracepoint_action_ops. |
| 9358 | |
| 9359 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9360 | |
| 9361 | * linux-low.c (linux_attach_lwp_1): New variable buffer. Call |
| 9362 | linux_ptrace_attach_warnings. |
| 9363 | |
| 9364 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9365 | |
| 9366 | * Makefile.in (linux-ptrace.o): New. |
| 9367 | * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*) |
| 9368 | (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*) |
| 9369 | (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*) |
| 9370 | (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux) |
| 9371 | (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ |
| 9372 | of these targets. |
| 9373 | * linux-low.c (linux_attach_lwp_1): Remove redundent else clause. |
| 9374 | |
| 9375 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
| 9376 | Pedro Alves <palves@redhat.com> |
| 9377 | |
| 9378 | Fix PR server/13392. |
| 9379 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check |
| 9380 | offset of JMP insn. |
| 9381 | * tracepoint.c (remove_tracepoint): New. |
| 9382 | (cmd_qtdp): Call remove_tracepoint when failed to install. |
| 9383 | |
| 9384 | 2012-03-07 Pedro Alves <palves@redhat.com> |
| 9385 | |
| 9386 | * linux-low.c (get_detach_signal): New. |
| 9387 | (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT. |
| 9388 | Pass on pending signals to PTRACE_DETACH. Check the result of the |
| 9389 | ptrace call. |
| 9390 | * server.c (program_signals, program_signals_p): New. |
| 9391 | (handle_general_set): Handle QProgramSignals. |
| 9392 | * server.h (program_signals, program_signals_p): Declare. |
| 9393 | |
| 9394 | 2012-03-05 Pedro Alves <palves@redhat.com> |
| 9395 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9396 | |
| 9397 | * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. |
| 9398 | New comment why. |
| 9399 | |
| 9400 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
| 9401 | |
| 9402 | * tracepoint.c (tracepoint_look_up_symbols): Update call to |
| 9403 | agent_look_up_symbols. |
| 9404 | |
| 9405 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
| 9406 | |
| 9407 | * Makefile.in (linux-low.o): Keep dependence on agent.h. |
| 9408 | (linux-x86-low.o): Likewise. |
| 9409 | * server.h: Remove in_process_agent_loaded. |
| 9410 | * tracepoint.c (in_process_agent_loaded): Removed. Moved it |
| 9411 | common/agent.c. |
| 9412 | Update callers. |
| 9413 | |
| 9414 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
| 9415 | |
| 9416 | * tracepoint.c (gdb_agent_capability): New global. |
| 9417 | (in_process_agent_loaded_ust): Renamed to |
| 9418 | `in_process_agent_supports_ust'. |
| 9419 | Update callers. |
| 9420 | (in_process_agent_supports_ust): Call agent_capability_check. |
| 9421 | (clear_installed_tracepoints): Assert that agent supports |
| 9422 | agent. |
| 9423 | |
| 9424 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
| 9425 | |
| 9426 | * linux-low.c (linux_supports_agent): New. |
| 9427 | (linux_target_ops): Initialize field `supports_agent' with |
| 9428 | linux_supports_agent. |
| 9429 | * target.h (struct target_ops) <supports_agent>: New. |
| 9430 | (target_supports_agent): New macro. |
| 9431 | * server.c (handle_general_set): Handle packet 'QAgent'. |
| 9432 | (handle_query): Send `QAgent+'. |
| 9433 | * Makefile.in (server.o): Depends on agent.h. |
| 9434 | |
| 9435 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
| 9436 | |
| 9437 | * Makefile.in (OBS): Add agent.o. |
| 9438 | Add new rule for agent.o. |
| 9439 | Track dependence of tracepoint.c on agent.h. |
| 9440 | * tracepoint.c (run_inferior_command_1): |
| 9441 | (run_inferior_command): Call agent_run_command. |
| 9442 | (gdb_ust_connect_sync_socket): Deleted. Move it to |
| 9443 | common/agent.c. |
| 9444 | (resume_thread, stop_thread): Likewise. |
| 9445 | (gdb_ust_socket_init): Renamed to ... |
| 9446 | (gdb_agent_socket_init): ... New. |
| 9447 | (gdb_ust_thread): Renamed to ... |
| 9448 | (gdb_agent_helper_thread): ... New. |
| 9449 | (gdb_ust_init): Move some code to ... |
| 9450 | (gdb_agent_init): ... here. New. |
| 9451 | [HAVE_UST]: Call gdb_ust_init. |
| 9452 | (initialize_tracepoint_ftlib): Call gdb_agent_init. |
| 9453 | * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. |
| 9454 | * config.in, configure: Regenerated. |
| 9455 | |
| 9456 | 2012-03-02 Pedro Alves <palves@redhat.com> |
| 9457 | |
| 9458 | * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. |
| 9459 | * linux-low.c (struct simple_pid_list): New. |
| 9460 | (stopped_pids): New a struct simple_pid_list pointer. |
| 9461 | (add_to_pid_list, pull_pid_from_list): New. |
| 9462 | (handle_extended_wait): Don't assume the first signal new children |
| 9463 | report is SIGSTOP. Adjust call to pull_pid_from_list. |
| 9464 | (linux_wait_for_lwp): Adjust. |
| 9465 | |
| 9466 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
| 9467 | |
| 9468 | * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in |
| 9469 | debug log. |
| 9470 | |
| 9471 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
| 9472 | |
| 9473 | * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters |
| 9474 | `stop_pc' and `tpoint'. Update caller. |
| 9475 | |
| 9476 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
| 9477 | |
| 9478 | * linux-low.h (linux_target_ops): Add regset_bitmap member. |
| 9479 | * linux-low.c (use_linux_regsets): New macro. |
| 9480 | [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise. |
| 9481 | [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise. |
| 9482 | (linux_register_in_regsets): New function. |
| 9483 | (usr_fetch_inferior_registers): Skip registers covered by |
| 9484 | regsets. |
| 9485 | (usr_store_inferior_registers): Likewise. |
| 9486 | (usr_fetch_inferior_registers): New macro. |
| 9487 | (usr_store_inferior_registers): Likewise. |
| 9488 | (linux_fetch_registers): Handle mixed regset/non-regset targets. |
| 9489 | (linux_store_registers): Likewise. |
| 9490 | * linux-mips-low.c (init_registers_mips_dsp_linux): New |
| 9491 | prototype. |
| 9492 | (init_registers_mips64_dsp_linux): Likewise. |
| 9493 | (init_registers_mips_linux): New macro. |
| 9494 | (init_registers_mips_dsp_linux): Likewise. |
| 9495 | (mips_dsp_num_regs): Likewise. |
| 9496 | (DSP_BASE, DSP_CONTROL): New fallback macros. |
| 9497 | (mips_base_regs): New macro. |
| 9498 | (mips_regmap): Use it. Fix the size. |
| 9499 | (mips_dsp_regmap): New variable. |
| 9500 | (mips_dsp_regset_bitmap): Likewise. |
| 9501 | (mips_arch_setup): New function. |
| 9502 | (mips_cannot_fetch_register): Use the_low_target.regmap rather |
| 9503 | than mips_regmap. |
| 9504 | (mips_cannot_store_register): Likewise. |
| 9505 | (the_low_target): Update .arch_setup, .num_regs and .regmap |
| 9506 | initializers. Add .regset_bitmap initializer. |
| 9507 | * linux-arm-low.c (the_low_target): Add .regset_bitmap |
| 9508 | initializer. |
| 9509 | * linux-bfin-low.c (the_low_target): Likewise. |
| 9510 | * linux-cris-low.c (the_low_target): Likewise. |
| 9511 | * linux-crisv32-low.c (the_low_target): Likewise. |
| 9512 | * linux-ia64-low.c (the_low_target): Likewise. |
| 9513 | * linux-m32r-low.c (the_low_target): Likewise. |
| 9514 | * linux-m68k-low.c (the_low_target): Likewise. |
| 9515 | * linux-ppc-low.c (the_low_target): Likewise. |
| 9516 | * linux-s390-low.c (the_low_target): Likewise. |
| 9517 | * linux-sh-low.c (the_low_target): Likewise. |
| 9518 | * linux-sparc-low.c (the_low_target): Likewise. |
| 9519 | * linux-tic6x-low.c (the_low_target): Likewise. |
| 9520 | * linux-x86-low.c (the_low_target): Likewise. |
| 9521 | * linux-xtensa-low.c (the_low_target): Likewise. |
| 9522 | * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and |
| 9523 | mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml, |
| 9524 | mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to |
| 9525 | srv_xmlfiles. |
| 9526 | * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets. |
| 9527 | (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise. |
| 9528 | |
| 9529 | 2012-02-29 Yao Qi <yao@codesourcery.com> |
| 9530 | Pedro Alves <palves@redhat.com> |
| 9531 | |
| 9532 | * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when |
| 9533 | `step_over_finished' is true. |
| 9534 | |
| 9535 | 2012-02-27 Pedro Alves <palves@redhat.com> |
| 9536 | |
| 9537 | * linux-low.c (pid_is_stopped): Delete, moved to common/. |
| 9538 | (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped. |
| 9539 | |
| 9540 | 2012-02-27 Pedro Alves <palves@redhat.com> |
| 9541 | |
| 9542 | PR server/9684 |
| 9543 | * linux-low.c (pid_is_stopped): New. |
| 9544 | (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes. |
| 9545 | |
| 9546 | 2012-02-25 Luis Machado <lgustavo@codesourcery.com> |
| 9547 | |
| 9548 | * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation |
| 9549 | of conditions. |
| 9550 | |
| 9551 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
| 9552 | |
| 9553 | * linux-mips-low.c (mips_regmap): Correct the index of $f9. |
| 9554 | |
| 9555 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
| 9556 | |
| 9557 | * server.c (handle_query): Advertise support for target-side |
| 9558 | breakpoint condition evaluation. |
| 9559 | (process_point_options): New function. |
| 9560 | (process_serial_event): When inserting a breakpoint, check for |
| 9561 | a target-side condition that should be evaluated. |
| 9562 | |
| 9563 | * mem-break.c: Include regcache.h and ax.h. |
| 9564 | (point_cond_list_t): New data structure. |
| 9565 | (breakpoint) <cond_list>: New field. |
| 9566 | (find_gdb_breakpoint_at): Make non-static. |
| 9567 | (delete_gdb_breakpoint_at): Clear any target-side |
| 9568 | conditions. |
| 9569 | (clear_gdb_breakpoint_conditions): New function. |
| 9570 | (add_condition_to_breakpoint): Likewise. |
| 9571 | (add_breakpoint_condition): Likewise. |
| 9572 | (gdb_condition_true_at_breakpoint): Likewise. |
| 9573 | (gdb_breakpoint_here): Return result directly instead |
| 9574 | of going through a local variable. |
| 9575 | |
| 9576 | * mem-break.h (find_gdb_breakpoint_at): New prototype. |
| 9577 | (clear_gdb_breakpoint_conditions): Likewise. |
| 9578 | (add_breakpoint_condition): Likewise. |
| 9579 | (gdb_condition_true_at_breakpoint): Likewise. |
| 9580 | |
| 9581 | * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition. |
| 9582 | (need_step_over_p): Take target-side breakpoint condition into |
| 9583 | consideration. |
| 9584 | |
| 9585 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
| 9586 | |
| 9587 | * server.h: Include tracepoint.h. |
| 9588 | (agent_mem_read, agent_get_trace_state_variable_value, |
| 9589 | agent_set_trace_state_variable_value, |
| 9590 | agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr, |
| 9591 | get_set_tsv_func_addr): New prototypes. |
| 9592 | |
| 9593 | * ax.h: New include file. |
| 9594 | * ax.c: New source file. |
| 9595 | |
| 9596 | * tracepoint.c: Include ax.h. |
| 9597 | (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes, |
| 9598 | agent_expr, eval_result_type): Move to ax.h. |
| 9599 | (parse_agent_expr): Rename to ... |
| 9600 | (gdb_parse_agent_expr): ... this, make it non-static and move |
| 9601 | to ax.h. |
| 9602 | (unparse_agent_expr) Rename to ... |
| 9603 | (gdb_unparse_agent_expr): ... this, make it non-static and move |
| 9604 | to ax.h. |
| 9605 | (eval_agent_expr): Rename to ... |
| 9606 | (eval_tracepoint_agent_expr): ... this. |
| 9607 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove |
| 9608 | forward declarations. |
| 9609 | (add_tracepoint_action): Call gdb_parse_agent_expr (...). |
| 9610 | (agent_get_trace_state_variable_value): New function. |
| 9611 | (agent_set_trace_state_variable_value): New function. |
| 9612 | (cmd_qtdp): Call gdb_parse_agent_expr (...). |
| 9613 | (response_tracepoint): Call gdb_unparse_agent_expr (...). |
| 9614 | (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...). |
| 9615 | (condition_true_at_tracepoint): Likewise. |
| 9616 | (parse_agent_expr): Rename to ... |
| 9617 | (gdb_parse_agent_expr): ... this and move to ax.c. |
| 9618 | (unparse_agent_expr): Rename to ... |
| 9619 | (gdb_unparse_agent_expr): ... this and move to ax.c. |
| 9620 | (gdb_agent_op_name): Move to ax.c. |
| 9621 | (eval_agent_expr): Rename to ... |
| 9622 | (gdb_eval_agent_expr): ... this, use regcache passed as parameter |
| 9623 | and move to ax.c. |
| 9624 | (eval_tracepoint_agent_expr): New function. |
| 9625 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make |
| 9626 | non-static. |
| 9627 | (current_insn_ptr, emit_error, struct bytecode_address): Move to |
| 9628 | ax.c. |
| 9629 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh, |
| 9630 | emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not, |
| 9631 | emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal, |
| 9632 | emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto, |
| 9633 | emit_goto, write_goto_address, emit_const, emit_reg, emit_pop, |
| 9634 | emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust, |
| 9635 | emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto, |
| 9636 | emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c. |
| 9637 | (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions. |
| 9638 | (compile_bytecodes): Remove forward declaration. |
| 9639 | (is_goto_target): Move to ax.c. |
| 9640 | (compile_bytecodes): Move to ax.c and call |
| 9641 | agent_get_trace_state_variable_value (...) and |
| 9642 | agent_set_trace_state_variable_value (...). |
| 9643 | |
| 9644 | * Makefile.in: Update ax.c and IPA dependencies. |
| 9645 | |
| 9646 | 2012-02-24 Pedro Alves <palves@redhat.com> |
| 9647 | |
| 9648 | * tracepoint.c (cmd_bigqtbuffer): Rename as ... |
| 9649 | (cmd_bigqtbuffer_circular): ... this. Only handle |
| 9650 | 'QTBuffer:circular:'. |
| 9651 | (handle_tracepoint_general_set): Adjust. |
| 9652 | |
| 9653 | 2012-02-16 Yao Qi <yao@codesourcery.com> |
| 9654 | |
| 9655 | * inferiors.c: Move code to ... |
| 9656 | * dll.c: .... here. New. |
| 9657 | * server.h: Declare clear_dlls. |
| 9658 | * Makefile.in (SFILES): Add dll.c. |
| 9659 | (OBS): Add dll.o |
| 9660 | (dll.o): New rule. |
| 9661 | |
| 9662 | 2012-02-11 Yao Qi <yao@codesourcery.com> |
| 9663 | |
| 9664 | * server.c: (handle_monitor_command): Add a new parameter |
| 9665 | `own_buf'. |
| 9666 | (handle_query): Update caller. |
| 9667 | |
| 9668 | 2012-02-09 Joel Brobecker <brobecker@adacore.com> |
| 9669 | |
| 9670 | * configure.ac: Add readlink to AC_CHECK_FUNCS list. |
| 9671 | * configure, config.in: Regenerate. |
| 9672 | * hostio.c: Provide an alternate implementation if HAVE_READLINK |
| 9673 | is not defined. |
| 9674 | |
| 9675 | 2012-02-02 Pedro Alves <palves@redhat.com> |
| 9676 | |
| 9677 | Try SIGKILL first, then PTRACE_KILL. |
| 9678 | * linux-low.c (linux_kill_one_lwp): New. |
| 9679 | (linux_kill_one_lwp): Rename to ... |
| 9680 | (kill_one_lwp_callback): ... this. Use the new |
| 9681 | linux_kill_one_lwp. |
| 9682 | |
| 9683 | 2012-02-02 Pedro Alves <palves@redhat.com> |
| 9684 | |
| 9685 | * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current |
| 9686 | inferior. |
| 9687 | |
| 9688 | 2012-01-27 Pedro Alves <palves@redhat.com> |
| 9689 | |
| 9690 | * linux-low.c (linux_child_pid_to_exec_file): Delete. |
| 9691 | (elf_64_file_p): Make static. |
| 9692 | (linux_pid_exe_is_elf_64_file): New. |
| 9693 | * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): |
| 9694 | Delete declarations. |
| 9695 | (linux_pid_exe_is_elf_64_file): Declare. |
| 9696 | * linux-x86-low.c (x86_arch_setup): Use |
| 9697 | linux_pid_exe_is_elf_64_file. |
| 9698 | |
| 9699 | 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9700 | |
| 9701 | * linux-low.c (linux_wait_for_event_1): Rename to ... |
| 9702 | (linux_wait_for_event): ... here and merge it with former |
| 9703 | linux_wait_for_event - new variable wait_ptid, use it. |
| 9704 | (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1. |
| 9705 | |
| 9706 | 2012-01-23 Pedro Alves <palves@redhat.com> |
| 9707 | |
| 9708 | * server.c (main): Avoid yet another case of infinite loop while |
| 9709 | detaching/killing after a longjmp. |
| 9710 | |
| 9711 | 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9712 | |
| 9713 | Code cleanup. |
| 9714 | * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid. |
| 9715 | |
| 9716 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
| 9717 | |
| 9718 | * hostio.c (handle_readlink): New function. |
| 9719 | (handle_vFile): Call it to handle "vFile:readlink" packets. |
| 9720 | |
| 9721 | 2012-01-20 Pedro Alves <palves@redhat.com> |
| 9722 | Ulrich Weigand <ulrich.weigand@linaro.org> |
| 9723 | |
| 9724 | * server.c (handle_v_requests): Only support vAttach and vRun to |
| 9725 | start multiple processes when in extended protocol mode. |
| 9726 | |
| 9727 | 2012-01-17 Pedro Alves <palves@redhat.com> |
| 9728 | |
| 9729 | * tracepoint.c (initialize_tracepoint): Use mmap instead of |
| 9730 | memalign plus mprotect to allocate the scratch buffer. |
| 9731 | |
| 9732 | 2012-01-13 Pedro Alves <palves@redhat.com> |
| 9733 | |
| 9734 | * server.c (attach_inferior): Clear `cont_thread'. |
| 9735 | |
| 9736 | 2012-01-13 Pedro Alves <palves@redhat.com> |
| 9737 | |
| 9738 | * server.c (main): Avoid infinite loop while detaching/killing |
| 9739 | after a longjmp. |
| 9740 | |
| 9741 | 2012-01-09 Doug Evans <dje@google.com> |
| 9742 | |
| 9743 | * server.c (start_inferior): Set last_ptid in --wrapper case. |
| 9744 | |
| 9745 | 2012-01-06 Yao Qi <yao@codesourcery.com> |
| 9746 | |
| 9747 | * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro |
| 9748 | defined. |
| 9749 | [IN_PROCESS_AGENT] (debug_agent): New global variable. |
| 9750 | |
| 9751 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
| 9752 | |
| 9753 | * tracepoint.c (cmd_qtdp): Print debug message |
| 9754 | for static tracepoint. |
| 9755 | |
| 9756 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
| 9757 | |
| 9758 | * tracepoint.c (trace_vdebug): Differentiate debug message |
| 9759 | between gdbserver and IPA. |
| 9760 | |
| 9761 | 2012-01-03 Yao Qi <yao@codesourcery.com> |
| 9762 | |
| 9763 | * tracepoint.c (tracepoint_was_hit): Don't collect for |
| 9764 | static tracepoint. |
| 9765 | |
| 9766 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
| 9767 | |
| 9768 | * terminal.h: Reformat copyright header. |
| 9769 | |
| 9770 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
| 9771 | |
| 9772 | * server.c (gdbserver_version): Update copyright year. |
| 9773 | * gdbreplay.c (gdbreplay_version): Likewise. |
| 9774 | |
| 9775 | 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9776 | |
| 9777 | * linux-low.c (linux_create_inferior): Put empty if clause for write. |
| 9778 | |
| 9779 | Revert: |
| 9780 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
| 9781 | * linux-low.c (linux_create_inferior): Save return value to ret. |
| 9782 | |
| 9783 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
| 9784 | |
| 9785 | * linux-low.c (linux_create_inferior): Save return value to ret. |
| 9786 | |
| 9787 | 2011-12-16 Doug Evans <dje@google.com> |
| 9788 | |
| 9789 | * linux-low.c (linux_create_inferior): If stdio connection, |
| 9790 | redirect stdin from /dev/null, stdout to stderr. |
| 9791 | * remote-utils.c (remote_is_stdio): New static global. |
| 9792 | (remote_connection_is_stdio): New function. |
| 9793 | (remote_prepare): Handle stdio connection. |
| 9794 | (remote_open): Ditto. |
| 9795 | (remote_close): Don't close stdin for stdio connections. |
| 9796 | (read_prim,write_prim): New functions. Replace all calls to |
| 9797 | read/write to these. |
| 9798 | * server.c (main): Watch for "-" argument. Move call to |
| 9799 | remote_prepare before start_inferior. |
| 9800 | * server.h (STDIO_CONNECTION_NAME): New macro. |
| 9801 | (remote_connection_is_stdio): Declare. |
| 9802 | |
| 9803 | * remote-utils.c (prepare_resume_reply): Remove extraneous \n |
| 9804 | in debugging output. |
| 9805 | |
| 9806 | 2011-12-15 Yao Qi <yao@codesourcery.com> |
| 9807 | |
| 9808 | * tracepoint.c: Include sys/syscall.h. |
| 9809 | (gdb_ust_thread): Remove preprocessor conditional. |
| 9810 | |
| 9811 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
| 9812 | |
| 9813 | * linux-low.c (linux_detach_one_lwp): Call |
| 9814 | the_low_target.prepare_to_resume before detaching. |
| 9815 | |
| 9816 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
| 9817 | |
| 9818 | * tracepoint.c (gdb_ust_thread): Don't ignore return value |
| 9819 | of write. |
| 9820 | |
| 9821 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
| 9822 | |
| 9823 | * i386-low.c (i386_low_stopped_data_address): Initialize local |
| 9824 | variable `control'. |
| 9825 | |
| 9826 | 2011-12-13 Pedro Alves <pedro@codesourcery.com> |
| 9827 | |
| 9828 | PR remote/13492 |
| 9829 | |
| 9830 | * i386-low.c (i386_low_stopped_data_address): Avoid fetching |
| 9831 | DR_CONTROL unless necessary. Extend comments. |
| 9832 | * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to |
| 9833 | DR0-3 if not used. If any watchpoint was set, clear DR_STATUS. |
| 9834 | |
| 9835 | 2011-12-13 Yao Qi <yao@codesourcery.com> |
| 9836 | |
| 9837 | * tracepoint.c (trace_buffer_alloc): Replace magic numbers with |
| 9838 | macros. |
| 9839 | (upload_fast_traceframes, upload_fast_traceframes): Likewise. |
| 9840 | |
| 9841 | 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9842 | |
| 9843 | * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist. |
| 9844 | Print new debug message for such case. |
| 9845 | |
| 9846 | 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9847 | |
| 9848 | Fix overlapping memcpy. |
| 9849 | * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for |
| 9850 | the read_inferior_memory transfer. |
| 9851 | (delete_fast_tracepoint_jump): New variable buf. Use it for the |
| 9852 | write_inferior_memory transfer. |
| 9853 | (set_fast_tracepoint_jump): New variable buf. Use it for the |
| 9854 | read_inferior_memory and write_inferior_memory transfers. |
| 9855 | (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at) |
| 9856 | (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf. |
| 9857 | Use it for the write_inferior_memory transfer. |
| 9858 | (check_mem_read, check_mem_write): New gdb_asserts for overlapping |
| 9859 | buffers. |
| 9860 | |
| 9861 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
| 9862 | |
| 9863 | * linux-low.c (fetch_register, store_register): Make code |
| 9864 | consistent, fix formatting. |
| 9865 | |
| 9866 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
| 9867 | |
| 9868 | * linux-low.c (usr_store_inferior_registers): Factor out code |
| 9869 | to handle individual registers into... |
| 9870 | (store_register): ... this new function. |
| 9871 | |
| 9872 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
| 9873 | |
| 9874 | * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules. |
| 9875 | (s390-linux32v2.o, s390-linux32v2.c): Likewise. |
| 9876 | (s390-linux64v1.o, s390-linux64v1.c): Likewise. |
| 9877 | (s390-linux64v2.o, s390-linux64v2.c): Likewise. |
| 9878 | (s390x-linux64v1.o, s390x-linux64v1.c): Likewise. |
| 9879 | (s390x-linux64v2.o, s390x-linux64v2.c): Likewise. |
| 9880 | * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects. |
| 9881 | (srv_xmlfiles): Add new XML files. |
| 9882 | |
| 9883 | * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>, |
| 9884 | and <sys/uio.h>. |
| 9885 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. |
| 9886 | (init_registers_s390_linux32v1): Add prototype. |
| 9887 | (init_registers_s390_linux32v2): Likewise. |
| 9888 | (init_registers_s390_linux64v1): Likewise. |
| 9889 | (init_registers_s390_linux64v2): Likewise. |
| 9890 | (init_registers_s390x_linux64v1): Likewise. |
| 9891 | (init_registers_s390x_linux64v2): Likewise. |
| 9892 | (s390_num_regs): Increment to 52. |
| 9893 | (s390_regmap): Add orig_r2 register. |
| 9894 | (s390_num_regs_3264): Increment to 68. |
| 9895 | (s390_regmap_3264): Add orig_r2 register. |
| 9896 | (s390_collect_ptrace_register): Handle orig_r2 register. |
| 9897 | (s390_supply_ptrace_register): Likewise. |
| 9898 | (s390_fill_last_break): New function. |
| 9899 | (s390_store_last_break): Likewise. |
| 9900 | (s390_fill_system_call): New function. |
| 9901 | (s390_store_system_call): Likewise. |
| 9902 | (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL |
| 9903 | register sets. |
| 9904 | (s390_check_regset): New function. |
| 9905 | (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and |
| 9906 | NT_S390_SYSTEM_CALL regsets and use appropriate description. |
| 9907 | Update target_regsets for available register sets. |
| 9908 | |
| 9909 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 9910 | Jan Kratochvil <jan.kratochvil@redhat.com> |
| 9911 | |
| 9912 | * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) |
| 9913 | (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): |
| 9914 | New. |
| 9915 | (struct linux_target_ops): Install linux_qxfer_libraries_svr4. |
| 9916 | * linux-low.h (struct process_info_private): New member r_debug. |
| 9917 | * server.c (handle_qxfer_libraries): Call |
| 9918 | the_target->qxfer_libraries_svr4. |
| 9919 | (handle_qxfer_libraries_svr4): New function. |
| 9920 | (qxfer_packets): New entry "libraries-svr4". |
| 9921 | (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. |
| 9922 | * target.h (struct target_ops): New member qxfer_libraries_svr4. |
| 9923 | * remote.c (remote_xfer_partial): Call add_packet_config_cmd for |
| 9924 | PACKET_qXfer_libraries_svr4. |
| 9925 | |
| 9926 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
| 9927 | |
| 9928 | * linux-s390-low.c (s390_collect_ptrace_register): Fully convert |
| 9929 | PSW address/mask between 8-byte and 16-byte formats. |
| 9930 | (s390_supply_ptrace_register): Likewise. |
| 9931 | (s390_get_pc, s390_set_pc): 4-byte PSW address always includes |
| 9932 | basic addressing mode bit. |
| 9933 | |
| 9934 | 2011-11-24 Stan Shebs <stan@codesourcery.com> |
| 9935 | |
| 9936 | * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx. |
| 9937 | |
| 9938 | 2011-11-17 Stan Shebs <stan@codesourcery.com> |
| 9939 | |
| 9940 | * tracepoint.c (struct tracepoint): New field traceframe_usage. |
| 9941 | (tracing_start_time): New global. |
| 9942 | (tracing_stop_time): New global. |
| 9943 | (tracing_user_name): New global. |
| 9944 | (tracing_notes): New global. |
| 9945 | (tracing_stop_note): New global. |
| 9946 | (cmd_qtstart): Set traceframe_usage, start_time. |
| 9947 | (stop_tracing): Set stop_time. |
| 9948 | (cmd_qtstatus): Report additional status. |
| 9949 | (cmd_qtp): New function. |
| 9950 | (handle_tracepoint_query): Call it. |
| 9951 | (cmd_qtnotes): New function. |
| 9952 | (handle_tracepoint_general_set): Call it. |
| 9953 | (get_timestamp): Rename from tsv_get_timestamp. |
| 9954 | |
| 9955 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
| 9956 | Kwok Cheung Yeung <kcy@codesourcery.com> |
| 9957 | |
| 9958 | * linux-x86-low.c (small_jump_insn): New. |
| 9959 | (i386_install_fast_tracepoint_jump_pad): Add arguments for |
| 9960 | trampoline and error message, build a trampoline and issue a small |
| 9961 | jump instruction to it. |
| 9962 | (x86_install_fast_tracepoint_jump_pad): Add arguments for |
| 9963 | trampoline and error message. |
| 9964 | (x86_get_min_fast_tracepoint_insn_len): New. |
| 9965 | (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len. |
| 9966 | * linux-low.h (struct linux_target_ops): Add arguments to |
| 9967 | install_fast_tracepoint_jump_pad operation, add new operation. |
| 9968 | * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add |
| 9969 | arguments. |
| 9970 | (linux_get_min_fast_tracepoint_insn_len): New function. |
| 9971 | (linux_target_op): Add new operation. |
| 9972 | * tracepoint.c (gdb_trampoline_buffer): New IPA variable. |
| 9973 | (gdb_trampoline_buffer_end): Ditto. |
| 9974 | (gdb_trampoline_buffer_error): Ditto. |
| 9975 | (struct ipa_sym_addresses): Add fields for new IPA variables. |
| 9976 | (symbol_list): Add entries for new IPA variables. |
| 9977 | (struct tracepoint): Add fields to hold the address range of the |
| 9978 | trampoline used by the tracepoint. |
| 9979 | (trampoline_buffer_head): New static variable. |
| 9980 | (trampoline_buffer_tail): Ditto. |
| 9981 | (claim_trampoline_space): New function. |
| 9982 | (have_fast_tracepoint_trampoline_buffer): New function. |
| 9983 | (clone_fast_tracepoint): Fill in trampoline fields of tracepoint |
| 9984 | structure. |
| 9985 | (install_fast_tracepoint): Ditto, also add error buffer argument. |
| 9986 | (cmd_qtminftpilen): New function. |
| 9987 | (handle_tracepoint_query): Add response to qTMinFTPILen packet. |
| 9988 | (fast_tracepoint_from_trampoline_address): New function. |
| 9989 | (fast_tracepoint_collecting): Handle trampoline as part of jump |
| 9990 | pad space. |
| 9991 | (set_trampoline_buffer_space): New function. |
| 9992 | (initialize_tracepoint): Initialize new IPA variables. |
| 9993 | * target.h (struct target_ops): Add arguments to |
| 9994 | install_fast_tracepoint_jump_pad operation, add new |
| 9995 | get_min_fast_tracepoint_insn_len operation. |
| 9996 | (target_get_min_fast_tracepoint_insn_len): New. |
| 9997 | (install_fast_tracepoint_jump_pad): Add arguments. |
| 9998 | * server.h (IPA_BUFSIZ): Define. |
| 9999 | * linux-i386-ipa.c: Include extra header files. |
| 10000 | (initialize_fast_tracepoint_trampoline_buffer): New function. |
| 10001 | (initialize_low_tracepoint): Call it. |
| 10002 | * server.h (set_trampoline_buffer_space): Declare. |
| 10003 | (claim_trampoline_space): Ditto. |
| 10004 | (have_fast_tracepoint_trampoline_buffer): Ditto. |
| 10005 | |
| 10006 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
| 10007 | |
| 10008 | * server.c (handle_query): Handle InstallInTrace for qSupported. |
| 10009 | * tracepoint.c (add_tracepoint): Sort list. |
| 10010 | (install_tracepoint, download_tracepoint): New. |
| 10011 | (cmd_qtdp): Call them to install and download tracepoints. |
| 10012 | (sort_tracepoints): Removed. |
| 10013 | (cmd_qtstart): Update. |
| 10014 | |
| 10015 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
| 10016 | |
| 10017 | * mem-break.c (inc_ref_fast_tracepoint_jump): New. |
| 10018 | * mem-break.h: Declare. |
| 10019 | * tracepoint.c (cmd_qtstart): Move some code to ... |
| 10020 | (clone_fast_tracepoint, install_fast_tracepoint): ... here. |
| 10021 | New. |
| 10022 | (download_tracepoints): Move some code to ... |
| 10023 | (download_tracepoint_1): ... here. New. |
| 10024 | |
| 10025 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
| 10026 | |
| 10027 | * remote-utils.c (relocate_instruction): A comment fix. |
| 10028 | |
| 10029 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
| 10030 | |
| 10031 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete. |
| 10032 | (i386_dr_low_get_control, i386_dr_low_get_status): Use |
| 10033 | dr_status_mirror and dr_control_mirror from debug_reg_state. |
| 10034 | (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror |
| 10035 | (i386_initial_stuff): Remove use of deleted globals. |
| 10036 | (i386_get_thread_context, i386_set_thread_context, |
| 10037 | i386_thread_added): Use dr_status_mirror and dr_control_mirror |
| 10038 | from debug_reg_state. |
| 10039 | |
| 10040 | 2011-11-05 Yao Qi <yao@codesourcery.com> |
| 10041 | |
| 10042 | * tracepoint.c (gdb_collect): Loop over tracepoints of same |
| 10043 | address as TPOINT's. |
| 10044 | |
| 10045 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
| 10046 | |
| 10047 | * tracepoint.c (agent_mem_read_string): New function. |
| 10048 | (eval_agent_expr): Call it for tracenz. |
| 10049 | * server.c (handle_query): Report support for tracenz. |
| 10050 | |
| 10051 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
| 10052 | |
| 10053 | * tracepoint.c (cmd_qtstart): Remove unused local variables. |
| 10054 | |
| 10055 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
| 10056 | |
| 10057 | * target.h: Fix a typo in comment. |
| 10058 | |
| 10059 | 2011-10-31 Pedro Alves <pedro@codesourcery.com> |
| 10060 | |
| 10061 | * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't |
| 10062 | clobber the breakpoints' shadows with fast tracepoint jumps. |
| 10063 | * mem-break.h (check_mem_write): Add `myaddr' parameter. |
| 10064 | * target.c (write_inferior_memory): Also pass MYADDR down to |
| 10065 | check_mem_write. |
| 10066 | |
| 10067 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
| 10068 | |
| 10069 | * configure.ac: Check support for personality routine. |
| 10070 | * configure: Regenerate. |
| 10071 | * config.in: Likewise. |
| 10072 | * linux-low.c: Include <sys/personality.h>. |
| 10073 | Define ADDR_NO_RANDOMIZE if necessary. |
| 10074 | (linux_create_inferior): Disable address space randomization when |
| 10075 | forking inferior, if requested. |
| 10076 | (linux_supports_disable_randomization): New function. |
| 10077 | (linux_target_ops): Install it. |
| 10078 | * server.h (disable_randomization): Declare. |
| 10079 | * server.c (disable_randomization): New global variable. |
| 10080 | (handle_general_set): Handle QDisableRandomization. |
| 10081 | (handle_query): Likewise for qSupported. |
| 10082 | (main): Support --disable-randomization and --no-disable-randomization |
| 10083 | command line arguments. |
| 10084 | * target.h (struct target_ops): Add supports_disable_randomization. |
| 10085 | (target_supports_disable_randomization): New macro. |
| 10086 | |
| 10087 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
| 10088 | |
| 10089 | * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the |
| 10090 | ifdef check. |
| 10091 | [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check. |
| 10092 | [!PT_GETDSBT] (target_loadmap): New definition. |
| 10093 | (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define. |
| 10094 | (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to |
| 10095 | LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP, |
| 10096 | and PT_GETDSBT to LINUX_LOADMAP. |
| 10097 | [!PT_GETDSBT] (linux_read_loadmap): Define to NULL. |
| 10098 | (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check. |
| 10099 | |
| 10100 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
| 10101 | |
| 10102 | * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove. |
| 10103 | (arm_linux_hwbp_cap): New static variable. |
| 10104 | (arm_linux_get_hwbp_cap): Replace by ... |
| 10105 | (arm_linux_init_hwbp_cap): ... this new function. |
| 10106 | (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. |
| 10107 | (arm_linux_get_hw_watchpoint_count): Likewise. |
| 10108 | (arm_linux_get_hw_watchpoint_max_length): Likewise. |
| 10109 | (arm_arch_setup): Call arm_linux_init_hwbp_cap. |
| 10110 | (arm_prepare_to_resume): Use perror_with_name instead of error. |
| 10111 | |
| 10112 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
| 10113 | |
| 10114 | * linux-arm-low.c: Include <signal.h>. |
| 10115 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. |
| 10116 | (struct arm_linux_hwbp_cap): New data type. |
| 10117 | (arm_hwbp_type, arm_hwbp_control_t): New typedefs. |
| 10118 | (struct arm_linux_hw_breakpoint): New data type. |
| 10119 | (MAX_BPTS, MAX_WPTS): Define. |
| 10120 | (struct arch_process_info, struct arch_lwp_info): New data types. |
| 10121 | (arm_linux_get_hwbp_cap): New function. |
| 10122 | (arm_linux_get_hw_breakpoint_count): Likewise. |
| 10123 | (arm_linux_get_hw_watchpoint_count): Likewise. |
| 10124 | (arm_linux_get_hw_watchpoint_max_length): Likewise. |
| 10125 | (arm_hwbp_control_initialize): Likewise. |
| 10126 | (arm_hwbp_control_is_enabled): Likewise. |
| 10127 | (arm_hwbp_control_is_initialized): Likewise. |
| 10128 | (arm_hwbp_control_disable): Likewise. |
| 10129 | (arm_linux_hw_breakpoint_equal): Likewise. |
| 10130 | (arm_linux_hw_point_initialize): Likewise. |
| 10131 | (struct update_registers_data): New data structure. |
| 10132 | (update_registers_callback: New function. |
| 10133 | (arm_insert_point): Likewise. |
| 10134 | (arm_remove_point): Likewise. |
| 10135 | (arm_stopped_by_watchpoint): Likewise. |
| 10136 | (arm_stopped_data_address): Likewise. |
| 10137 | (arm_new_process): Likewise. |
| 10138 | (arm_new_thread): Likewise. |
| 10139 | (arm_prepare_to_resume): Likewise. |
| 10140 | (the_low_target): Register arm_insert_point, arm_remove_point, |
| 10141 | arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, |
| 10142 | arm_new_thread, and arm_prepare_to_resume. |
| 10143 | |
| 10144 | 2011-09-15 Stan Shebs <stan@codesourcery.com> |
| 10145 | |
| 10146 | * server.h (struct emit_ops): Add compare-goto fields. |
| 10147 | * tracepoint.c (gdb_agent_op_sizes): New table. |
| 10148 | (emit_eq_goto): New function. |
| 10149 | (emit_ne_goto): New function. |
| 10150 | (emit_lt_goto): New function. |
| 10151 | (emit_le_goto): New function. |
| 10152 | (emit_gt_goto): New function. |
| 10153 | (emit_ge_goto): New function. |
| 10154 | (is_goto_target): New function. |
| 10155 | (compile_bytecodes): Recognize special cases of compare-goto |
| 10156 | combinations and call specialized emitters for them. |
| 10157 | * linux-x86-low.c (amd64_emit_eq_goto): New function. |
| 10158 | (amd64_emit_ne_goto): New function. |
| 10159 | (amd64_emit_lt_goto): New function. |
| 10160 | (amd64_emit_le_goto): New function. |
| 10161 | (amd64_emit_gt_goto): New function. |
| 10162 | (amd64_emit_ge_goto): New function. |
| 10163 | (amd64_emit_ops): Add the new functions. |
| 10164 | (i386_emit_eq_goto): New function. |
| 10165 | (i386_emit_ne_goto): New function. |
| 10166 | (i386_emit_lt_goto): New function. |
| 10167 | (i386_emit_le_goto): New function. |
| 10168 | (i386_emit_gt_goto): New function. |
| 10169 | (i386_emit_ge_goto): New function. |
| 10170 | (i386_emit_ops): Add the new functions. |
| 10171 | |
| 10172 | 2011-09-08 Stan Shebs <stan@codesourcery.com> |
| 10173 | |
| 10174 | * linux-x86-low.c (i386_emit_prologue): Save %ebx. |
| 10175 | (i386_emit_epilogue): Restore %ebx. |
| 10176 | |
| 10177 | 2011-08-31 Jie Zhang <jzhang918@gmail.com> |
| 10178 | |
| 10179 | * server.c (step_thread): Remove definition. |
| 10180 | (process_serial_event): Don't handle Hs. |
| 10181 | * server.h (step_thread): Remove declaration. |
| 10182 | * target.c (set_desired_inferior): Remove use of step_thread. |
| 10183 | |
| 10184 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
| 10185 | |
| 10186 | * linux-low.c: Include linux-procfs.h. |
| 10187 | (linux_attach_lwp_1): Update comments. |
| 10188 | (linux_attach): Scan for existing threads when attaching to a |
| 10189 | process that is the tgid. |
| 10190 | * Makefile.in: Update dependencies. |
| 10191 | |
| 10192 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
| 10193 | |
| 10194 | * configure.srv: Add linux-procfs.o dependencies. |
| 10195 | |
| 10196 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
| 10197 | |
| 10198 | * target.h (struct target_ops): Fix indent. |
| 10199 | * win32-low.c (win32_target_ops): Fix comment. |
| 10200 | |
| 10201 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
| 10202 | Yao Qi <yao@codesourcery.com> |
| 10203 | |
| 10204 | * Makefile.in (clean): Remove tic6x-*.c files. |
| 10205 | (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. |
| 10206 | (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. |
| 10207 | (tic6x-c64xp-linux.c): Likewise. |
| 10208 | * configure.srv: Add support for tic6x-*-uclinux. |
| 10209 | * linux-tic6x-low.c: New. |
| 10210 | * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define. |
| 10211 | |
| 10212 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
| 10213 | Yao Qi <yao@codesourcery.com> |
| 10214 | |
| 10215 | * target.h (struct target_ops): Add read_loadmap. |
| 10216 | * linux-low.c (struct target_loadseg): New type. |
| 10217 | (struct target_loadmap): New type. |
| 10218 | (linux_read_loadmap): New function. |
| 10219 | (linux_target_ops): Add linux_read_loadmap. |
| 10220 | * server.c (handle_query): Support qXfer:fdpic:read packet. |
| 10221 | * win32-low.c (win32_target_ops): Initialize field `read_loadmap' |
| 10222 | to NULL. |
| 10223 | |
| 10224 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
| 10225 | |
| 10226 | * win32-low.c: Include <stdint.h>. |
| 10227 | |
| 10228 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
| 10229 | |
| 10230 | * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info |
| 10231 | to the inferior here. |
| 10232 | (i386_remove_aligned_watchpoint): Ditto. |
| 10233 | (i386_handle_nonaligned_watchpoint): Return immediate on fail to |
| 10234 | fit part of the watchpoint in the debug registers. |
| 10235 | (i386_update_inferior_debug_regs): New. |
| 10236 | (i386_low_insert_watchpoint): Work on a local mirror of the debug |
| 10237 | registers, and only update the inferior on success. |
| 10238 | (i386_low_remove_watchpoint): Ditto. |
| 10239 | |
| 10240 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
| 10241 | |
| 10242 | * linux-low.c (compare_ints, unique, list_threads, show_process, |
| 10243 | linux_core_of_thread): Delete. |
| 10244 | (linux_target_ops): Change linux_core_of_thread to |
| 10245 | linux_common_core_of_thread. |
| 10246 | (linux_qxfer_osdata): Defer to linux_common_xfer_osdata. |
| 10247 | * utils.c (malloc_failure): Change type of argument. |
| 10248 | (xmalloc, xrealloc, xcalloc, xsnprintf): Delete. |
| 10249 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, |
| 10250 | common/linux-osdata.c, common/ptid.c and common/buffer.c. |
| 10251 | (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o. |
| 10252 | (IPA_OBJS): Add common-utils-ipa.o. |
| 10253 | (ptid_h, linux_osdata_h): New macros. |
| 10254 | (server_h): Add common/common-utils.h, common/xml-utils.h, |
| 10255 | common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and |
| 10256 | common/ptid.h. |
| 10257 | (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o, |
| 10258 | ptid.o, buffer.o): New rules. |
| 10259 | (linux-low.o): Add common/linux-osdata.h as a dependency. |
| 10260 | * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets. |
| 10261 | * configure.ac: Add AC_HEADER_DIRENT check. |
| 10262 | * config.in: Regenerate. |
| 10263 | * configure: Regenerate. |
| 10264 | * remote-utils.c (xml_escape_text): Delete. |
| 10265 | (buffer_grow, buffer_free, buffer_init, buffer_finish, |
| 10266 | buffer_xml_printf): Move to common/buffer.c. |
| 10267 | * server.c (main): Remove call to initialize_inferiors. |
| 10268 | * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid, |
| 10269 | ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid, |
| 10270 | ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text, |
| 10271 | internal_error, gdb_assert, gdb_assert_fail): Delete. |
| 10272 | (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish, |
| 10273 | buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to |
| 10274 | common/buffer.h. |
| 10275 | * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, |
| 10276 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid, |
| 10277 | initialize_inferiors): Delete. |
| 10278 | |
| 10279 | 2011-07-20 Pedro Alves <pedro@codesourcery.com> |
| 10280 | |
| 10281 | * tracepoint.c (tracepoint_look_up_symbols): Return upon the first |
| 10282 | symbol error. |
| 10283 | |
| 10284 | 2011-05-31 Pedro Alves <pedro@codesourcery.com> |
| 10285 | |
| 10286 | * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in |
| 10287 | assertion. |
| 10288 | * win32-i386-low.c (i386_dr_low_get_addr): Ditto. |
| 10289 | |
| 10290 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
| 10291 | |
| 10292 | * Makefile.in (thread-db.o): Track dependence to |
| 10293 | common/gdb_thread_db.h. |
| 10294 | * thread-db.c: include gdb_thread_db.h from right place. |
| 10295 | |
| 10296 | 2011-05-16 Adrian Cornish <gnu@bluedreamer.com> |
| 10297 | |
| 10298 | * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass |
| 10299 | __FILE__ and __LINE__ to internal_error. |
| 10300 | |
| 10301 | 2011-05-13 Doug Evans <dje@google.com> |
| 10302 | |
| 10303 | * thread-db.c (try_thread_db_load_from_sdir): New function. |
| 10304 | (try_thread_db_load_from_dir): New function. |
| 10305 | (thread_db_load_search): Handle $sdir, ignore $pdir. |
| 10306 | Remove trying of system directories if search of |
| 10307 | libthread-db-search-path fails, that is now done via $sdir. |
| 10308 | |
| 10309 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
| 10310 | |
| 10311 | * server.c (handle_query): Add EnableDisableTracepoints to the list |
| 10312 | of supported features. |
| 10313 | * tracepoint.c (clear_installed_tracepoints): Uninstall disabled |
| 10314 | tracepoints. |
| 10315 | (cmd_qtenable_disable): New. |
| 10316 | (cmd_qtstart): Install tracepoints even if disabled. |
| 10317 | (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on |
| 10318 | receiving a QTEnable or QTDisable packet. |
| 10319 | (gdb_collect): Skip data collection if fast tracepoint is disabled. |
| 10320 | (ust_marker_to_static_tracepoint): Do not ignore disabled static |
| 10321 | tracepoints. |
| 10322 | (gdb_probe): Skip data collection if static tracepoint is disabled. |
| 10323 | |
| 10324 | 2011-05-10 Doug Evans <dje@google.com> |
| 10325 | |
| 10326 | * thread-db.c (thread_db_handle_monitor_command): Handle elided path. |
| 10327 | |
| 10328 | 2011-05-04 Doug Evans <dje@google.com> |
| 10329 | |
| 10330 | * linux-low.c (linux_join): Skip process lookup. |
| 10331 | * spu-low.c (spu_join): Ditto. |
| 10332 | * server.c (join_inferiors_callback): Delete. |
| 10333 | (process_serial_event): For 'D' packet (detach) call join_inferior |
| 10334 | directly. |
| 10335 | |
| 10336 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
| 10337 | |
| 10338 | * README: Don't mention xscale*-*-linux*. |
| 10339 | * configure.srv (xscale*-*-linux*): Don't handle target. |
| 10340 | |
| 10341 | 2011-04-27 Nathan Froyd <froydnj@codesourcery.com> |
| 10342 | |
| 10343 | * linux-x86-low.c (amd64_emit_const): Call memcpy instead of |
| 10344 | casting pointers. |
| 10345 | (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): |
| 10346 | (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): |
| 10347 | (i386_emit_void_call_2): Likewise. |
| 10348 | |
| 10349 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
| 10350 | |
| 10351 | * linux-low.c: Move common macros to linux-ptrace.h. |
| 10352 | Include linux-ptrace.h. |
| 10353 | * Makefile.in (linux_ptrace_h): New. |
| 10354 | (linux-low.o): Depends on linux-ptrace.h. |
| 10355 | |
| 10356 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 10357 | |
| 10358 | * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if |
| 10359 | RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call. |
| 10360 | (remote_prepare): New function with most of the TCP code from ... |
| 10361 | (remote_open): ... here. Detect PORT here unconditionally. Move also |
| 10362 | setting transport_is_reliable. |
| 10363 | * server.c (run_once): New variable. |
| 10364 | (gdbserver_usage): Document it. |
| 10365 | (main): Set run_once for `--once'. Call remote_prepare. Exit after |
| 10366 | the first run if RUN_ONCE. |
| 10367 | * server.h (run_once, remote_prepare): New declarations. |
| 10368 | |
| 10369 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
| 10370 | |
| 10371 | * win32-low.c (handle_load_dll): Remove duplicate "the". |
| 10372 | |
| 10373 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
| 10374 | |
| 10375 | Remove support for old Cygwin 1.5 versions. |
| 10376 | * win32-low.c (win32_create_inferior): Use new cygwin_path_list |
| 10377 | function to avoid warning. |
| 10378 | (win32_add_one_solib): Use cygwin_conv_path function to avoid |
| 10379 | warning. |
| 10380 | |
| 10381 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
| 10382 | |
| 10383 | * gdbserver/server.h (Macro _): Define it if not available. |
| 10384 | |
| 10385 | 2011-03-14 Michael Snyder <msnyder@vmware.com> |
| 10386 | |
| 10387 | * hostio.c (handle_close): Remove unnecessary null test. |
| 10388 | |
| 10389 | 2011-03-10 Joel Brobecker <brobecker@adacore.com> |
| 10390 | |
| 10391 | * Makefile.in (maintainer-clean realclean distclean): Remove |
| 10392 | "make ... subdir_do" command. |
| 10393 | |
| 10394 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
| 10395 | |
| 10396 | * tracepoint.c (tracepoint_finish_step): Fix loop variable. |
| 10397 | |
| 10398 | * server.c (handle_v_run): Free alloced buffer on early return. |
| 10399 | |
| 10400 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
| 10401 | |
| 10402 | Revert: |
| 10403 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
| 10404 | |
| 10405 | * Makefile.in: Remove GNU make feature --directory. |
| 10406 | |
| 10407 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
| 10408 | |
| 10409 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. |
| 10410 | (subdir_do): New make target. Copied from gdb/Makefile. |
| 10411 | (maintainer-clean, realclean, distclean, clean): Call corresponding |
| 10412 | make targets in common/Makefile. |
| 10413 | |
| 10414 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
| 10415 | |
| 10416 | * configure.ac: Call AC_PROG_RANLIB. |
| 10417 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. |
| 10418 | * configure: Regenerate. |
| 10419 | |
| 10420 | 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 10421 | |
| 10422 | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. |
| 10423 | |
| 10424 | 2011-03-06 Yao Qi <yao@codesourcery.com> |
| 10425 | |
| 10426 | * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR). |
| 10427 | |
| 10428 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
| 10429 | |
| 10430 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. |
| 10431 | (subdir_do): New make target. Copied from gdb/Makefile. |
| 10432 | (maintainer-clean, realclean, distclean, clean): Call corresponding |
| 10433 | make targets in common/Makefile. |
| 10434 | |
| 10435 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
| 10436 | |
| 10437 | * Makefile.in: Remove GNU make feature --directory. |
| 10438 | |
| 10439 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
| 10440 | |
| 10441 | * server.c (queue_stop_reply): Call xmalloc not malloc. |
| 10442 | |
| 10443 | 2011-03-02 Michael Snyder <msnyder@vmware.com> |
| 10444 | |
| 10445 | * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. |
| 10446 | |
| 10447 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
| 10448 | |
| 10449 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
| 10450 | (cmd_qtframe): Ditto. |
| 10451 | (cmd_qtbuffer): Ditto. |
| 10452 | (cmd_bigqtbuffer): Ditto. |
| 10453 | |
| 10454 | * utils.c (decimal2str): Initialize 'width' to nine, then |
| 10455 | don't mess with it. |
| 10456 | |
| 10457 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 10458 | |
| 10459 | * hostio.c (require_data): Free *data, not data. |
| 10460 | |
| 10461 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 10462 | |
| 10463 | * hostio.c (require_data): Use free, not xfree. |
| 10464 | |
| 10465 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
| 10466 | |
| 10467 | * server.c (handle_query): Discard unused value. |
| 10468 | |
| 10469 | * hostio.c (require_data): Free malloc memory before returning |
| 10470 | error. |
| 10471 | |
| 10472 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
| 10473 | |
| 10474 | * linux-low.c (list_threads): Call closedir for dirent. |
| 10475 | |
| 10476 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
| 10477 | |
| 10478 | * i386-low.c (i386-length_and_rw_bits): Comment the fact that |
| 10479 | a case statement falls through. |
| 10480 | |
| 10481 | * linux-low.c (linux_xfer_siginfo): Fix fencepost error. |
| 10482 | |
| 10483 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error |
| 10484 | in comparison. |
| 10485 | |
| 10486 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
| 10487 | |
| 10488 | * utils.c (decimal2str): Eliminate dead code and dead param. |
| 10489 | (pulongest): Drop dead param from call to decimal2str. |
| 10490 | (plongest): Ditto. |
| 10491 | |
| 10492 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
| 10493 | |
| 10494 | Revert the following patch (not approved yet): |
| 10495 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
| 10496 | * tracepoint.c (tp_printf): New function. |
| 10497 | (eval_agent_expr): Handle gdb_agent_op_printf. |
| 10498 | |
| 10499 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
| 10500 | |
| 10501 | * tracepoint.c (tp_printf): New function. |
| 10502 | (eval_agent_expr): Handle gdb_agent_op_printf. |
| 10503 | |
| 10504 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
| 10505 | |
| 10506 | * Makefile.in (tracepoint-ipa.o): Depend on ax.def. |
| 10507 | (tracepoint.o): Likewise. |
| 10508 | * tracepoint.c (enum gdb_agent_op): Use ax.def. |
| 10509 | (gdb_agent_op_names): Likewise. |
| 10510 | |
| 10511 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
| 10512 | |
| 10513 | * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, |
| 10514 | gdb_agent_op_rot>: New constants. |
| 10515 | (gdb_agent_op_names): Add pick and roll. |
| 10516 | (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New |
| 10517 | cases. |
| 10518 | |
| 10519 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 10520 | |
| 10521 | * aclocal.m4: Regenerated with aclocal-1.11.1. |
| 10522 | |
| 10523 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
| 10524 | |
| 10525 | * server.c (handle_qxfer_traceframe_info): New. |
| 10526 | (qxfer_packets): Register "traceframe-info". |
| 10527 | (handle_query): Report support for qXfer:traceframe-info:read+. |
| 10528 | * tracepoint.c (match_blocktype): New. |
| 10529 | (traceframe_find_block_type): Rename to ... |
| 10530 | (traceframe_walk_blocks): ... this. Add callback filter argument, |
| 10531 | and use it. |
| 10532 | (traceframe_find_block_type): New, reimplemented on top of |
| 10533 | traceframe_walk_blocks. |
| 10534 | (build_traceframe_info_xml): New. |
| 10535 | (traceframe_read_info): New. |
| 10536 | * server.h (traceframe_read_info): Declare. |
| 10537 | |
| 10538 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
| 10539 | |
| 10540 | * configure.ac: Call AC_PROG_RANLIB. |
| 10541 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. |
| 10542 | * configure: Regenerate. |
| 10543 | |
| 10544 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
| 10545 | |
| 10546 | * server.c (gdb_read_memory): Change return semantics to allow |
| 10547 | partial transfers. |
| 10548 | (handle_search_memory_1): Adjust. |
| 10549 | (process_serial_event) <'m' packet>: Handle partial transfers. |
| 10550 | * tracepoint.c (traceframe_read_mem): Handle partial transfers. |
| 10551 | |
| 10552 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
| 10553 | |
| 10554 | * regcache.c (init_register_cache): Initialize |
| 10555 | regcache->register_status. |
| 10556 | (free_register_cache): Release regcache->register_status. |
| 10557 | (regcache_cpy): Copy register_status. |
| 10558 | (registers_to_string): Print 'x's for unavailable registers. |
| 10559 | (supply_register): Mark the register's status valid or |
| 10560 | unavailable, depending on whether a buffer was passed in or not. |
| 10561 | (supply_register_zeroed): New. |
| 10562 | (supply_regblock): Mark the registers' status valid or |
| 10563 | unavailable, depending on whether a buffer was passed in or not. |
| 10564 | * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. |
| 10565 | (struct regcache): New `register_status' field. |
| 10566 | (supply_register_zeroed): Declare. |
| 10567 | * i387-fp.c (i387_xsave_to_cache): Zero out registers using |
| 10568 | supply_register_zeroed, rather than passing a NULL buffer to |
| 10569 | supply_register. |
| 10570 | * tracepoint.c (fetch_traceframe_registers): Update comment. |
| 10571 | |
| 10572 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
| 10573 | |
| 10574 | * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register |
| 10575 | buffer explicit. |
| 10576 | |
| 10577 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
| 10578 | |
| 10579 | * server.h (decode_xfer_write): Change prototype. |
| 10580 | * remote-utils.c (decode_xfer_write): Remove `annex' parameter, |
| 10581 | and don't extract the annex here. |
| 10582 | * server.c (decode_xfer_read): Remove `annex' parameter, |
| 10583 | and don't extract the annex here. |
| 10584 | (decode_xfer): New. |
| 10585 | (struct qxfer): New. |
| 10586 | (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries) |
| 10587 | (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu) |
| 10588 | (handle_qxfer_statictrace): New functions, abstracted out from |
| 10589 | handle_query, and made to use the struct qxfer interface. |
| 10590 | (handle_threads_qxfer_proper): Rename to ... |
| 10591 | (handle_qxfer_threads_proper): ... this. |
| 10592 | (handle_threads_qxfer): Rename to ... |
| 10593 | (handle_qxfer_threads): ... this. Adjust. |
| 10594 | (qxfer_packets): New array. |
| 10595 | (handle_qxfer): New function. |
| 10596 | (handle_query): Use handle_qxfer. |
| 10597 | |
| 10598 | 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
| 10599 | |
| 10600 | * gdbreplay.c: Shorten lines of >= 80 columns. |
| 10601 | * linux-low.c: Ditto. |
| 10602 | * linux-ppc-low.c: Ditto. |
| 10603 | * linux-s390-low.c: Ditto. |
| 10604 | * linux-sparc-low.c: Ditto. |
| 10605 | * linux-x86-low.c: Ditto. |
| 10606 | * linux-xtensa-low.c: Ditto. |
| 10607 | * mem-break.c: Ditto. |
| 10608 | * nto-low.c: Ditto. |
| 10609 | * regcache.h: Ditto. |
| 10610 | * remote-utils.c: Ditto. |
| 10611 | * server.c: Ditto. |
| 10612 | * server.h: Ditto. |
| 10613 | * thread-db.c: Ditto. |
| 10614 | * tracepoint.c: Ditto. |
| 10615 | * utils.c: Ditto. |
| 10616 | * win32-low.h: Ditto. |
| 10617 | |
| 10618 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
| 10619 | |
| 10620 | * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year |
| 10621 | update. |
| 10622 | |
| 10623 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
| 10624 | |
| 10625 | * server.c (gdbserver_version): Update copyright year in version |
| 10626 | output. |
| 10627 | * gdbreplay.c (gdbreplay_version): Ditto. |
| 10628 | |
| 10629 | 2010-12-29 Jie Zhang <jie.zhang@analog.com> |
| 10630 | |
| 10631 | * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets. |
| 10632 | * linux-bfin-low.c: New file. |
| 10633 | * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and |
| 10634 | PT_DATA_ADDR for BFIN targets. |
| 10635 | * Makefile.in (SFILES): Add linux-bfin-low.c. |
| 10636 | (clean): Remove reg-bfin.c. |
| 10637 | (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets. |
| 10638 | * README: Mention supported Blackfin targets. |
| 10639 | |
| 10640 | 2010-12-23 Mike Frysinger <vapier@gentoo.org> |
| 10641 | |
| 10642 | * .gitignore: New file. |
| 10643 | |
| 10644 | 2010-11-16 Mike Frysinger <vapier@gentoo.org> |
| 10645 | |
| 10646 | * linux-low.c (linux_tracefork_child): Add char* cast to arg. |
| 10647 | |
| 10648 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
| 10649 | |
| 10650 | * Makefile.in: Add FLAGS_TO_PASS variable. |
| 10651 | (install): Remove dependency of install-only and recursively |
| 10652 | invoke make for install-only. |
| 10653 | |
| 10654 | 2010-10-04 Doug Evans <dje@google.com> |
| 10655 | |
| 10656 | * Makefile.in (uninstall): Use $(DESTDIR). |
| 10657 | |
| 10658 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
| 10659 | |
| 10660 | PR gdb/11842 |
| 10661 | |
| 10662 | * linux-x86-low.c (compat_siginfo_from_siginfo) |
| 10663 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when |
| 10664 | si_code is < 0. Check for si_code == SI_TIMER before checking for |
| 10665 | si_code < 0. |
| 10666 | |
| 10667 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
| 10668 | |
| 10669 | * lynx-i386-low.c: New file. |
| 10670 | * configure.srv: Add handling of i[34567]86-*-lynxos* targets. |
| 10671 | |
| 10672 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
| 10673 | |
| 10674 | * lynx-low.c (ptrace_request_to_str): Remove handling for |
| 10675 | request values that have been removed in LynxOS 5.x. |
| 10676 | |
| 10677 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
| 10678 | |
| 10679 | * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of |
| 10680 | <ptrace.h> |
| 10681 | |
| 10682 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
| 10683 | |
| 10684 | * configure.ac: Add --enable-inprocess-agent option. |
| 10685 | * configure: Rebuilt. |
| 10686 | |
| 10687 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
| 10688 | |
| 10689 | * linux-low.c (linux_kill): Remove unused variable. |
| 10690 | (linux_stabilize_threads): Likewise. |
| 10691 | * server.c (start_inferior): Likewise. |
| 10692 | (queue_stop_reply_callback): Likewise. |
| 10693 | * tracepoint.c (do_action_at_tracepoint): Likewise. |
| 10694 | |
| 10695 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
| 10696 | |
| 10697 | * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior |
| 10698 | on return. |
| 10699 | |
| 10700 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 10701 | |
| 10702 | * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. |
| 10703 | |
| 10704 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
| 10705 | |
| 10706 | * Makefile.in (install-only): Replace $IPA_DEPFILES with |
| 10707 | "$(IPA_DEPFILES)". |
| 10708 | |
| 10709 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 10710 | |
| 10711 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, |
| 10712 | gdbserver/lynx-ppc-low.c: New files. |
| 10713 | * Makefile.in (lynx_low_h): New variable. |
| 10714 | (lynx-low.o, lynx-ppc-low.o): New rules. |
| 10715 | * configure.ac: On LynxOS, link with -lnetinet. |
| 10716 | * configure.srv: Add handling of powerpc-*-lynxos* targets. |
| 10717 | * configure: regenerate. |
| 10718 | |
| 10719 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 10720 | |
| 10721 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. |
| 10722 | * configure.ac: Add check for vasprintf and vsnprintf. |
| 10723 | * configure, config.in: Regenerate. |
| 10724 | * server.h (vasprintf, vsnprintf): Add conditional declarations. |
| 10725 | |
| 10726 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 10727 | |
| 10728 | * gdbreplay.c: Move include of alloca.h up, next to include of |
| 10729 | malloc.h. |
| 10730 | * server.h: Add include of malloc.h. |
| 10731 | * mem-break.c: Remove include of malloc.h. |
| 10732 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. |
| 10733 | |
| 10734 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 10735 | |
| 10736 | * Makefile.in (memmem.o): Build with -Wno-error. |
| 10737 | |
| 10738 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 10739 | |
| 10740 | * utils.c (xsnprintf): Make non-static. |
| 10741 | * server.h: Add xsnprintf declaration. |
| 10742 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: |
| 10743 | replace calls to snprintf by calls to xsnprintf throughout. |
| 10744 | |
| 10745 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
| 10746 | |
| 10747 | * configure.ac: Add configure check for alloca. |
| 10748 | * configure, config.in: Regenerate. |
| 10749 | * server.h: Include alloca.h if it exists. |
| 10750 | * gdbreplay.c: Include alloca.h if it exists. |
| 10751 | |
| 10752 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
| 10753 | |
| 10754 | * linux-low.c (__SIGRTMIN): Define if not already defined. |
| 10755 | (linux_create_inferior): Check for __ANDROID__ rather than |
| 10756 | __SIGRTMIN. |
| 10757 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that |
| 10758 | are already deferred. |
| 10759 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. |
| 10760 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is |
| 10761 | stopped and already has a pending signal to report. |
| 10762 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has |
| 10763 | a pending signal to report or is moving out of a jump pad. |
| 10764 | (linux_init_signals): Check for __ANDROID__ rather than |
| 10765 | __SIGRTMIN. |
| 10766 | |
| 10767 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
| 10768 | |
| 10769 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a |
| 10770 | debug_threads check. Avoid a linear search when not doing debug |
| 10771 | output. |
| 10772 | |
| 10773 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
| 10774 | |
| 10775 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. |
| 10776 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. |
| 10777 | (struct file_handler) <fd>: Change type to gdb_fildes_t. |
| 10778 | (process_event): Change local fd's type to gdb_fildes_t. |
| 10779 | (create_file_handler): Adjust prototype. |
| 10780 | (delete_file_handler): Adjust prototype. |
| 10781 | (handle_file_event): Adjust prototype. Use pfildes. |
| 10782 | (create_file_event): Adjsut prototype. |
| 10783 | * remote-utils.c (remote_desc, listen_desc): Change type to |
| 10784 | gdb_fildes_t. |
| 10785 | * server.h: New gdb_fildes_t typedef. |
| 10786 | [USE_WIN32API]: Include winsock2.h. |
| 10787 | (delete_file_handler, add_file_handler): Adjust prototypes. |
| 10788 | (pfildes): Declare. |
| 10789 | * utils.c (pfildes): New. |
| 10790 | |
| 10791 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
| 10792 | |
| 10793 | * configure.ac (build_warnings): Add -Wno-char-subscripts. |
| 10794 | * configure: Regenerate. |
| 10795 | |
| 10796 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
| 10797 | |
| 10798 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... |
| 10799 | (linux_done_accessing_memory): ... this. |
| 10800 | (linux_target_ops): Adjust. |
| 10801 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. |
| 10802 | * nto-low.c (nto_target_ops): Adjust comment. |
| 10803 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. |
| 10804 | * spu-low.c (spu_target_ops): Adjust comment. |
| 10805 | * target.h (target_ops): Rename unprepare_to_access_memory field |
| 10806 | to done_accessing_memory. |
| 10807 | (unprepare_to_access_memory): Rename to ... |
| 10808 | (done_accessing_memory): ... this. |
| 10809 | |
| 10810 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 10811 | |
| 10812 | * linux-low.c (linux_prepare_to_access_memory): New. |
| 10813 | (linux_unprepare_to_access_memory): New. |
| 10814 | (linux_target_ops): Install them. |
| 10815 | * server.c (read_memory): Rename to ... |
| 10816 | (gdb_read_memory): ... this. Use |
| 10817 | prepare_to_access_memory/prepare_to_access_memory. |
| 10818 | (write_memory): Rename to ... |
| 10819 | (gdb_write_memory): ... this. Use |
| 10820 | prepare_to_access_memory/prepare_to_access_memory. |
| 10821 | (handle_search_memory_1): Adjust. |
| 10822 | (process_serial_event): Adjust. |
| 10823 | * target.h (struct target_ops): New fields |
| 10824 | prepare_to_access_memory and unprepare_to_access_memory. |
| 10825 | (prepare_to_access_memory, unprepare_to_access_memory): New. |
| 10826 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use |
| 10827 | prepare_to_access_memory/prepare_to_access_memory. |
| 10828 | * nto-low.c (nto_target_ops): Adjust. |
| 10829 | * spu-low.c (spu_target_ops): Adjust. |
| 10830 | * win32-low.c (win32_target_ops): Adjust. |
| 10831 | |
| 10832 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 10833 | |
| 10834 | * Makefile.in (WARN_CFLAGS): Get it from configure. |
| 10835 | (WERROR_CFLAGS): New. |
| 10836 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. |
| 10837 | * configure.ac: Introduce --enable-werror, which adds -Werror to |
| 10838 | the compiler command line. Enabled by default. Disable with |
| 10839 | --disable-werror. Add -Wdeclaration-after-statement |
| 10840 | Wpointer-arith and -Wformat-nonliteral to warning flags. |
| 10841 | * configure: Regenerate. |
| 10842 | |
| 10843 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 10844 | |
| 10845 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. |
| 10846 | |
| 10847 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
| 10848 | |
| 10849 | * gdbreplay.c (remote_error): New. |
| 10850 | (gdbchar): New. |
| 10851 | (expect): Use gdbchar. Check for error reading from GDB. |
| 10852 | Clarify sync error output. |
| 10853 | (play): Check for errors writing to GDB. |
| 10854 | * linux-low.c (sigchld_handler): Really ignore `write' errors. |
| 10855 | * remote-utils.c (getpkt): Check for errors writing to the remote |
| 10856 | descriptor. |
| 10857 | |
| 10858 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
| 10859 | |
| 10860 | * linux-low.c (linux_wait_1): Move non-debugging code out of |
| 10861 | `debug_threads' control. |
| 10862 | |
| 10863 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
| 10864 | |
| 10865 | * linux-low.c (linux_wait_1): Don't set last_status here. |
| 10866 | * server.c (push_event, queue_stop_reply_callback): Assert we're |
| 10867 | not pushing a TARGET_WAITKIND_IGNORE event. |
| 10868 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) |
| 10869 | (myresume, handle_target_event): Set the thread's last_resume_kind |
| 10870 | and last_status from the target returned status. |
| 10871 | |
| 10872 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
| 10873 | |
| 10874 | PR threads/10729 |
| 10875 | |
| 10876 | * linux-x86-low.c (update_debug_registers_callback): New. |
| 10877 | (i386_dr_low_set_addr): Use it. |
| 10878 | (i386_dr_low_get_addr): New. |
| 10879 | (i386_dr_low_set_control): Use update_debug_registers_callback. |
| 10880 | (i386_dr_low_get_control): New. |
| 10881 | (i386_dr_low_get_status): Adjust. |
| 10882 | * linux-low.c (linux_stop_lwp): New. |
| 10883 | * linux-low.h (linux_stop_lwp): Declare. |
| 10884 | |
| 10885 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as |
| 10886 | argument instead of a i386_debug_reg_state. |
| 10887 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of |
| 10888 | a i386_debug_reg_state. |
| 10889 | (i386_insert_aligned_watchpoint): Adjust. |
| 10890 | (i386_remove_aligned_watchpoint): Adjust. |
| 10891 | (i386_low_stopped_data_address): Read the debug registers from the |
| 10892 | inferior instead of from the mirrors. |
| 10893 | * i386-low.h (struct i386_debug_reg_state): Extend comment. |
| 10894 | (i386_dr_low_get_addr): Declare. |
| 10895 | (i386_dr_low_get_control): Declare. |
| 10896 | (i386_dr_low_get_status): Change prototype. |
| 10897 | |
| 10898 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. |
| 10899 | (i386_dr_low_get_addr): New. |
| 10900 | (i386_dr_low_get_control): New. |
| 10901 | (i386_dr_low_get_status): Adjust prototype. Return |
| 10902 | dr_status_mirror. |
| 10903 | (i386_initial_stuff): Clear dr_status_mirror and |
| 10904 | dr_control_mirror. |
| 10905 | (i386_get_thread_context): Adjust. |
| 10906 | (i386_set_thread_context): Adjust. |
| 10907 | (i386_thread_added): Adjust. |
| 10908 | |
| 10909 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
| 10910 | |
| 10911 | * linux-low.h (linux_thread_area): Delete declaration. |
| 10912 | |
| 10913 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
| 10914 | |
| 10915 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child |
| 10916 | after its termination. |
| 10917 | |
| 10918 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
| 10919 | |
| 10920 | * linux-low.c (gdb_wants_lwp_stopped): Delete. |
| 10921 | (gdb_wants_all_stopped): Delete. |
| 10922 | (linux_wait_1): Don't call them. |
| 10923 | * server.c (handle_v_cont): Tag all threads as want-stopped. |
| 10924 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that |
| 10925 | stopped as "client-wants-stopped". |
| 10926 | |
| 10927 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
| 10928 | |
| 10929 | * Makefile.in (signals_h): New. |
| 10930 | (server_h): Depend on it. |
| 10931 | (server.o): Don't depend on $(signals_def). |
| 10932 | (signals.o): Depend on $(signals_def). |
| 10933 | |
| 10934 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 10935 | |
| 10936 | * Makefile.in (signals_def): New. |
| 10937 | (server_h): Append include/gdb/signals.h and signals_def. |
| 10938 | (server.o): Append signals_def. |
| 10939 | |
| 10940 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 10941 | |
| 10942 | * server.c (handle_target_event): Use target_signal_to_host for |
| 10943 | resume_info.sig initialization. |
| 10944 | * target.h (struct thread_resume) <sig>: New comment. |
| 10945 | |
| 10946 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
| 10947 | |
| 10948 | * server.c (handle_query): strcpy() the returned string from paddress() |
| 10949 | instead of sprintf(). |
| 10950 | * utils.c (paddress): Return phex_nz(). |
| 10951 | |
| 10952 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
| 10953 | |
| 10954 | * server.c (handle_v_cont): Call mourn_inferior if process |
| 10955 | just exited. |
| 10956 | (myresume): Likewise. |
| 10957 | |
| 10958 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
| 10959 | |
| 10960 | Static tracepoints, and integration with UST. |
| 10961 | |
| 10962 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. |
| 10963 | * mem-break.c (uninsert_all_breakpoints) |
| 10964 | (reinsert_all_breakpoints): New. |
| 10965 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): |
| 10966 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. |
| 10967 | (gdb_agent_ust_loaded, helper_thread_id) |
| 10968 | (gdb_agent_helper_thread_id): New macros. |
| 10969 | (struct ipa_sym_addresses): Add addr_ust_loaded, |
| 10970 | addr_helper_thread_id, addr_cmd_buf. |
| 10971 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. |
| 10972 | (in_process_agent_loaded_ust): New. |
| 10973 | (write_e_ust_not_loaded): New. |
| 10974 | (maybe_write_ipa_ust_not_loaded): New. |
| 10975 | (struct collect_static_trace_data_action): New. |
| 10976 | (enum tracepoint_type) <static_tracepoint>: New. |
| 10977 | (struct tracepoint) <handle>: Mention static tracepoints. |
| 10978 | (struct static_tracepoint_ctx): New. |
| 10979 | (CMD_BUF_SIZE): New. |
| 10980 | (add_tracepoint_action): Handle static tracepoint actions. |
| 10981 | (unprobe_marker_at): New. |
| 10982 | (clear_installed_tracepoints): Handle static tracepoints. |
| 10983 | (cmd_qtdp): Handle static tracepoints. |
| 10984 | (probe_marker_at): New. |
| 10985 | (cmd_qtstart): Handle static tracepoints. |
| 10986 | (response_tracepoint): Handle static tracepoints. |
| 10987 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. |
| 10988 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. |
| 10989 | (get_context_regcache): Handle static tracepoints. |
| 10990 | (do_action_at_tracepoint): Handle static tracepoint actions. |
| 10991 | (traceframe_find_block_type): Handle static trace data blocks. |
| 10992 | (traceframe_read_sdata): New. |
| 10993 | (download_tracepoints): Download static tracepoint actions. |
| 10994 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. |
| 10995 | (GDB_PROBE_NAME): New. |
| 10996 | (ust_ops): New. |
| 10997 | (GET_UST_SYM): New. |
| 10998 | (USTF): New. |
| 10999 | (dlsym_ust): New. |
| 11000 | (ust_marker_to_static_tracepoint): New. |
| 11001 | (gdb_probe): New. |
| 11002 | (collect_ust_data_at_tracepoint): New. |
| 11003 | (gdb_ust_probe): New. |
| 11004 | (UNIX_PATH_MAX, SOCK_DIR): New. |
| 11005 | (gdb_ust_connect_sync_socket): New. |
| 11006 | (resume_thread, stop_thread): New. |
| 11007 | (run_inferior_command): New. |
| 11008 | (init_named_socket): New. |
| 11009 | (gdb_ust_socket_init): New. |
| 11010 | (cstr_to_hexstr): New. |
| 11011 | (next_st): New. |
| 11012 | (first_marker, next_marker): New. |
| 11013 | (response_ust_marker): New. |
| 11014 | (cmd_qtfstm, cmd_qtsstm): New. |
| 11015 | (unprobe_marker_at, probe_marker_at): New. |
| 11016 | (cmd_qtstmat, gdb_ust_thread): New. |
| 11017 | (gdb_ust_init): New. |
| 11018 | (initialize_tracepoint_ftlib): Call gdb_ust_init. |
| 11019 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h |
| 11020 | (ST_REGENTRY): New. |
| 11021 | (x86_64_st_collect_regmap): New. |
| 11022 | (X86_64_NUM_ST_COLLECT_GREGS): New. |
| 11023 | (AMD64_RIP_REGNUM): New. |
| 11024 | (supply_static_tracepoint_registers): New. |
| 11025 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h |
| 11026 | (ST_REGENTRY): New. |
| 11027 | (i386_st_collect_regmap): New. |
| 11028 | (i386_NUM_ST_COLLECT_GREGS): New. |
| 11029 | (supply_static_tracepoint_registers): New. |
| 11030 | * server.c (handle_query): Handle qXfer:statictrace:read. |
| 11031 | <qSupported>: Report support for StaticTracepoints, and |
| 11032 | qXfer:statictrace:read features. |
| 11033 | * server.h (traceframe_read_sdata) |
| 11034 | (supply_static_tracepoint_registers): Declare. |
| 11035 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) |
| 11036 | (unpack_varlen_hex): Include in IPA build. |
| 11037 | * Makefile.in (ustlibs, ustinc): New. |
| 11038 | (IPA_OBJS): Add remote-utils-ipa.o. |
| 11039 | ($(IPA_LIB)): Link -ldl and -lpthread. |
| 11040 | (UST_CFLAGS): New. |
| 11041 | (IPAGENT_CFLAGS): Add UST_CFLAGS. |
| 11042 | * config.in, configure: Regenerate. |
| 11043 | |
| 11044 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
| 11045 | Pedro Alves <pedro@codesourcery.com> |
| 11046 | |
| 11047 | * linux-x86-low.c (always_true): Delete. |
| 11048 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of |
| 11049 | trying to fool the compiler with always_true. |
| 11050 | |
| 11051 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
| 11052 | |
| 11053 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled |
| 11054 | conditions in gdbserver. |
| 11055 | |
| 11056 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
| 11057 | |
| 11058 | * spu-low.c (spu_read_memory): Wrap around local store limit. |
| 11059 | (spu_write_memory): Likewise. |
| 11060 | |
| 11061 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
| 11062 | |
| 11063 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) |
| 11064 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with |
| 11065 | LONGEST uses. |
| 11066 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST |
| 11067 | uses. |
| 11068 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t |
| 11069 | uses with LONGEST uses. |
| 11070 | |
| 11071 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
| 11072 | Pedro Alves <pedro@codesourcery.com> |
| 11073 | |
| 11074 | Bytecode compiler. |
| 11075 | |
| 11076 | * linux-x86-low.c: Include limits.h. |
| 11077 | (add_insns): New. |
| 11078 | (always_true): New. |
| 11079 | (EMIT_ASM): New. |
| 11080 | (EMIT_ASM32): New. |
| 11081 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) |
| 11082 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) |
| 11083 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, |
| 11084 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) |
| 11085 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, |
| 11086 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, |
| 11087 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) |
| 11088 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) |
| 11089 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) |
| 11090 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) |
| 11091 | (amd64_emit_void_call_2): New. |
| 11092 | (amd64_emit_ops): New. |
| 11093 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) |
| 11094 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) |
| 11095 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) |
| 11096 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) |
| 11097 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) |
| 11098 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) |
| 11099 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) |
| 11100 | (i386_emit_call, i386_emit_reg, i386_emit_pop) |
| 11101 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) |
| 11102 | (i386_emit_stack_adjust, i386_emit_int_call_1) |
| 11103 | (i386_emit_void_call_2): New. |
| 11104 | (i386_emit_ops): New. |
| 11105 | (x86_emit_ops): New. |
| 11106 | (the_low_target): Install x86_emit_ops. |
| 11107 | * server.h (struct emit_ops): New. |
| 11108 | (get_raw_reg_func_addr): Declare. |
| 11109 | (current_insn_ptr, emit_error): Declare. |
| 11110 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) |
| 11111 | (set_trace_state_variable_value): New defines. |
| 11112 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, |
| 11113 | addr_get_trace_state_variable_value and |
| 11114 | addr_set_trace_state_variable_value. |
| 11115 | (symbol_list): New fields for get_raw_reg, |
| 11116 | get_trace_state_variable_value and set_trace_state_variable_value. |
| 11117 | (condfn): New typedef. |
| 11118 | (struct tracepoint): New field `compiled_cond'. |
| 11119 | (do_action_at_tracepoint): Clear compiled_cond. |
| 11120 | (get_trace_state_variable_value, set_trace_state_variable_value): |
| 11121 | Export in the IPA. |
| 11122 | (condition_true_at_tracepoint): If there's a compiled condition, |
| 11123 | run that. |
| 11124 | (current_insn_ptr, emit_error): New globals. |
| 11125 | (struct bytecode_address): New. |
| 11126 | (get_raw_reg_func_addr): New. |
| 11127 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) |
| 11128 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) |
| 11129 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) |
| 11130 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) |
| 11131 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) |
| 11132 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) |
| 11133 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. |
| 11134 | (compile_tracepoint_condition, compile_bytecodes): New. |
| 11135 | * target.h (emit_ops): Forward declare. |
| 11136 | (struct target_ops): New field emit_ops. |
| 11137 | (target_emit_ops): New. |
| 11138 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. |
| 11139 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. |
| 11140 | * linux-low.c (linux_emit_ops): New. |
| 11141 | (linux_target_ops): Install it. |
| 11142 | * linux-low.h (struct linux_target_ops): New field emit_ops. |
| 11143 | |
| 11144 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
| 11145 | |
| 11146 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. |
| 11147 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. |
| 11148 | |
| 11149 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
| 11150 | Stan Shebs <stan@codesourcery.com> |
| 11151 | |
| 11152 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. |
| 11153 | (all): Depend on $(extra_libraries). |
| 11154 | (install-only): Install the IPA. |
| 11155 | (IPA_OBJS, IPA_LIB): New. |
| 11156 | (clean): Remove the IPA lib. |
| 11157 | (IPAGENT_CFLAGS): New. |
| 11158 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) |
| 11159 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) |
| 11160 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. |
| 11161 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. |
| 11162 | * configure.ac: Check for atomic builtins support in the compiler. |
| 11163 | (IPA_DEPFILES, extra_libraries): Define. |
| 11164 | * configure.srv (ipa_obj): Add description. |
| 11165 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. |
| 11166 | (i[34567]86-*-linux*): Set ipa_obj. |
| 11167 | (x86_64-*-linux*): Set ipa_obj. |
| 11168 | * linux-low.c (stabilizing_threads): New. |
| 11169 | (supports_fast_tracepoints): New. |
| 11170 | (linux_detach): Stabilize threads before detaching. |
| 11171 | (handle_tracepoints): Handle internal tracing breakpoints. Assert |
| 11172 | the lwp is either not stabilizing, or is moving out of a jump pad. |
| 11173 | (linux_fast_tracepoint_collecting): New. |
| 11174 | (maybe_move_out_of_jump_pad): New. |
| 11175 | (enqueue_one_deferred_signal): New. |
| 11176 | (dequeue_one_deferred_signal): New. |
| 11177 | (linux_wait_for_event_1): If moving out of a jump pad, defer |
| 11178 | pending signals to later. |
| 11179 | (linux_stabilize_threads): New. |
| 11180 | (linux_wait_1): Check if threads need moving out of jump pads, and |
| 11181 | do it if so. |
| 11182 | (stuck_in_jump_pad_callback): New. |
| 11183 | (move_out_of_jump_pad_callback): New. |
| 11184 | (lwp_running): New. |
| 11185 | (linux_resume_one_lwp): Handle moving out of jump pads. |
| 11186 | (linux_set_resume_request): Dequeue deferred signals. |
| 11187 | (need_step_over_p): Also step over fast tracepoint jumps. |
| 11188 | (start_step_over): Also uninsert fast tracepoint jumps. |
| 11189 | (finish_step_over): Also reinsert fast tracepoint jumps. |
| 11190 | (linux_install_fast_tracepoint_jump): New. |
| 11191 | (linux_target_ops): Install linux_stabilize_threads and |
| 11192 | linux_install_fast_tracepoint_jump_pad. |
| 11193 | * linux-low.h (linux_target_ops) <get_thread_area, |
| 11194 | install_fast_tracepoint_jump_pad>: New fields. |
| 11195 | (struct lwp_info) <collecting_fast_tracepoint, |
| 11196 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. |
| 11197 | (linux_get_thread_area): Declare. |
| 11198 | * linux-x86-low.c (jump_insn): New. |
| 11199 | (x86_get_thread_area): New. |
| 11200 | (append_insns): New. |
| 11201 | (push_opcode): New. |
| 11202 | (amd64_install_fast_tracepoint_jump_pad): New. |
| 11203 | (i386_install_fast_tracepoint_jump_pad): New. |
| 11204 | (x86_install_fast_tracepoint_jump_pad): New. |
| 11205 | (the_low_target): Install x86_get_thread_area and |
| 11206 | x86_install_fast_tracepoint_jump_pad. |
| 11207 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. |
| 11208 | (struct fast_tracepoint_jump): New. |
| 11209 | (fast_tracepoint_jump_insn): New. |
| 11210 | (fast_tracepoint_jump_shadow): New. |
| 11211 | (find_fast_tracepoint_jump_at): New. |
| 11212 | (fast_tracepoint_jump_here): New. |
| 11213 | (delete_fast_tracepoint_jump): New. |
| 11214 | (set_fast_tracepoint_jump): New. |
| 11215 | (uninsert_fast_tracepoint_jumps_at): New. |
| 11216 | (reinsert_fast_tracepoint_jumps_at): New. |
| 11217 | (set_breakpoint_at): Use write_inferior_memory. |
| 11218 | (uninsert_raw_breakpoint): Use write_inferior_memory. |
| 11219 | (check_mem_read): Mask out fast tracepoint jumps. |
| 11220 | (check_mem_write): Mask out fast tracepoint jumps. |
| 11221 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. |
| 11222 | (set_fast_tracepoint_jump): Declare. |
| 11223 | (delete_fast_tracepoint_jump) |
| 11224 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) |
| 11225 | (reinsert_fast_tracepoint_jumps_at): Declare. |
| 11226 | * regcache.c: Don't compile many functions when building the |
| 11227 | in-process agent library. |
| 11228 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating |
| 11229 | the register buffer in the heap. |
| 11230 | (free_register_cache): If the register buffer isn't owned by the |
| 11231 | regcache, don't free it. |
| 11232 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate |
| 11233 | pre-existing register caches. |
| 11234 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter |
| 11235 | type. |
| 11236 | (convert_ascii_to_int): : Constify `from' parameter type. |
| 11237 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by |
| 11238 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc |
| 11239 | the needed buffer in-place. |
| 11240 | (relocate_instruction): New. |
| 11241 | * server.c (handle_query) <qSymbols>: If the target supports |
| 11242 | tracepoints, give it a chance of looking up symbols. Report |
| 11243 | support for fast tracepoints. |
| 11244 | (handle_status): Stabilize threads. |
| 11245 | (process_serial_event): Adjust. |
| 11246 | * server.h (struct fast_tracepoint_jump): Forward declare. |
| 11247 | (struct process_info) <fast_tracepoint_jumps>: New field. |
| 11248 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. |
| 11249 | (decode_X_packet, decode_M_packet): Adjust. |
| 11250 | (relocate_instruction): Declare. |
| 11251 | (in_process_agent_loaded): Declare. |
| 11252 | (tracepoint_look_up_symbols): Declare. |
| 11253 | (struct fast_tpoint_collect_status): Declare. |
| 11254 | (fast_tracepoint_collecting): Declare. |
| 11255 | (force_unlock_trace_buffer): Declare. |
| 11256 | (handle_tracepoint_bkpts): Declare. |
| 11257 | (initialize_low_tracepoint) |
| 11258 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. |
| 11259 | * target.h (struct target_ops) <stabilize_threads, |
| 11260 | install_fast_tracepoint_jump_pad>: New fields. |
| 11261 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. |
| 11262 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. |
| 11263 | [HAVE_STDINT_H]: Include stdint.h. |
| 11264 | (trace_debug_1): Rename to ... |
| 11265 | (trace_vdebug): ... this. |
| 11266 | (trace_debug): Rename to ... |
| 11267 | (trace_debug_1): ... this. Add `level' parameter. |
| 11268 | (trace_debug): New. |
| 11269 | (ATTR_USED, ATTR_NOINLINE): New. |
| 11270 | (IP_AGENT_EXPORT): New. |
| 11271 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) |
| 11272 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) |
| 11273 | (about_to_request_buffer_space, trace_buffer_is_full) |
| 11274 | (stopping_tracepoint, expr_eval_result, error_tracepoint) |
| 11275 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) |
| 11276 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) |
| 11277 | (traceframe_write_count, traceframes_created) |
| 11278 | (trace_state_variables) |
| 11279 | New renaming defines. |
| 11280 | (struct ipa_sym_addresses): New. |
| 11281 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. |
| 11282 | (symbol_list): New. |
| 11283 | (ipa_sym_addrs): New. |
| 11284 | (all_tracepoint_symbols_looked_up): New. |
| 11285 | (in_process_agent_loaded): New. |
| 11286 | (write_e_ipa_not_loaded): New. |
| 11287 | (maybe_write_ipa_not_loaded): New. |
| 11288 | (tracepoint_look_up_symbols): New. |
| 11289 | (debug_threads) [IN_PROCESS_AGENT]: New. |
| 11290 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. |
| 11291 | (UNKNOWN_SIDE_EFFECTS): New. |
| 11292 | (stop_tracing): New. |
| 11293 | (flush_trace_buffer): New. |
| 11294 | (stop_tracing_bkpt): New. |
| 11295 | (flush_trace_buffer_bkpt): New. |
| 11296 | (read_inferior_integer): New. |
| 11297 | (read_inferior_uinteger): New. |
| 11298 | (read_inferior_data_pointer): New. |
| 11299 | (write_inferior_data_pointer): New. |
| 11300 | (write_inferior_integer): New. |
| 11301 | (write_inferior_uinteger): New. |
| 11302 | (struct collect_static_trace_data_action): Delete. |
| 11303 | (enum tracepoint_type): New. |
| 11304 | (struct tracepoint) <type>: New field `type'. |
| 11305 | <actions_str, step_actions, step_actions_str>: Only include in |
| 11306 | GDBserver. |
| 11307 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
| 11308 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. |
| 11309 | (tracepoints): Use IP_AGENT_EXPORT. |
| 11310 | (last_tracepoint): Don't include in the IPA. |
| 11311 | (stopping_tracepoint): Use IP_AGENT_EXPORT. |
| 11312 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. |
| 11313 | (alloced_trace_state_variables): New. |
| 11314 | (trace_state_variables): Use IP_AGENT_EXPORT. |
| 11315 | (traceframe_t): Delete unused variable. |
| 11316 | (circular_trace_buffer): Don't include in the IPA. |
| 11317 | (trace_buffer_start): Delete. |
| 11318 | (struct trace_buffer_control): New. |
| 11319 | (trace_buffer_free): Delete. |
| 11320 | (struct ipa_trace_buffer_control): New. |
| 11321 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) |
| 11322 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): |
| 11323 | New. |
| 11324 | (trace_buffer_ctrl): New. |
| 11325 | (TRACE_BUFFER_CTRL_CURR): New. |
| 11326 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): |
| 11327 | Reimplement as macros. |
| 11328 | (trace_buffer_wrap): Delete. |
| 11329 | (traceframe_write_count, traceframe_read_count) |
| 11330 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. |
| 11331 | (struct tracepoint_hit_ctx) <type>: New field. |
| 11332 | (struct fast_tracepoint_ctx): New. |
| 11333 | (memory_barrier): New. |
| 11334 | (cmpxchg): New. |
| 11335 | (record_tracepoint_error): Update atomically in the IPA. |
| 11336 | (clear_inferior_trace_buffer): New. |
| 11337 | (about_to_request_buffer_space): New. |
| 11338 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous |
| 11339 | updating the same buffer. |
| 11340 | (add_tracepoint): Default the tracepoint's type to trap |
| 11341 | tracepoint, and orig_size to -1. |
| 11342 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated |
| 11343 | internal variables. |
| 11344 | (create_trace_state_variable): New parameter `gdb'. Handle it. |
| 11345 | (clear_installed_tracepoints): Clear fast tracepoint jumps. |
| 11346 | (cmd_qtdp): Handle fast tracepoints. |
| 11347 | (cmd_qtdv): Adjust. |
| 11348 | (max_jump_pad_size): New. |
| 11349 | (gdb_jump_pad_head): New. |
| 11350 | (get_jump_space_head): New. |
| 11351 | (claim_jump_space): New. |
| 11352 | (sort_tracepoints): New. |
| 11353 | (MAX_JUMP_SIZE): New. |
| 11354 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the |
| 11355 | IPA. |
| 11356 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected |
| 11357 | support. Upload fast traceframes, and delete internal IPA |
| 11358 | breakpoints. |
| 11359 | (stop_tracing_handler): New. |
| 11360 | (flush_trace_buffer_handler): New. |
| 11361 | (cmd_qtstop): Upload fast tracepoints. |
| 11362 | (response_tracepoint): Handle fast tracepoints. |
| 11363 | (tracepoint_finished_step): Upload fast traceframes. Set the |
| 11364 | tracepoint hit context's tracepoint type. |
| 11365 | (handle_tracepoint_bkpts): New. |
| 11366 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint |
| 11367 | type. Add comment about fast tracepoints. |
| 11368 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the |
| 11369 | non-existing action_str field. |
| 11370 | (get_context_regcache): Handle fast tracepoints. |
| 11371 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC |
| 11372 | to the regcache. |
| 11373 | (fast_tracepoint_from_jump_pad_address): New. |
| 11374 | (fast_tracepoint_from_ipa_tpoint_address): New. |
| 11375 | (collecting_t): New. |
| 11376 | (force_unlock_trace_buffer): New. |
| 11377 | (fast_tracepoint_collecting): New. |
| 11378 | (collecting): New. |
| 11379 | (gdb_collect): New. |
| 11380 | (write_inferior_data_ptr): New. |
| 11381 | (target_tp_heap): New. |
| 11382 | (target_malloc): New. |
| 11383 | (download_agent_expr): New. |
| 11384 | (UALIGN): New. |
| 11385 | (download_tracepoints): New. |
| 11386 | (download_trace_state_variables): New. |
| 11387 | (upload_fast_traceframes): New. |
| 11388 | (IPA_FIRST_TRACEFRAME): New. |
| 11389 | (IPA_NEXT_TRACEFRAME_1): New. |
| 11390 | (IPA_NEXT_TRACEFRAME): New. |
| 11391 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. |
| 11392 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) |
| 11393 | (gdb_jump_pad_buffer_end): New. |
| 11394 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. |
| 11395 | (initialize_tracepoint): Adjust. |
| 11396 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch |
| 11397 | buffer. Initialize the low module. |
| 11398 | * utils.c (PREFIX, TOOLNAME): New. |
| 11399 | (malloc_failure): Use PREFIX. |
| 11400 | (error): In the IPA, an error causes an exit. |
| 11401 | (fatal, warning): Use PREFIX. |
| 11402 | (internal_error): Use TOOLNAME. |
| 11403 | (NUMCELLS): Increase to 10. |
| 11404 | * configure, config.in: Regenerate. |
| 11405 | |
| 11406 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
| 11407 | |
| 11408 | * server.c (handle_query) <qSupported>: Do two passes over the |
| 11409 | qSupported string to avoid nesting strtok. |
| 11410 | |
| 11411 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 11412 | |
| 11413 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. |
| 11414 | (CDEPS): New. |
| 11415 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also |
| 11416 | -Wl,--dynamic-list. |
| 11417 | * configure: Regenerate. |
| 11418 | * proc-service.list: New. |
| 11419 | |
| 11420 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 11421 | |
| 11422 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. |
| 11423 | New comment. |
| 11424 | |
| 11425 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
| 11426 | |
| 11427 | * gdbreplay.c (remote_open): Check error return from socket() call by |
| 11428 | its equality to -1 not by it being negative. |
| 11429 | * remote-utils.c (remote_open): Likewise. |
| 11430 | |
| 11431 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
| 11432 | |
| 11433 | * config.h: Regenerate. |
| 11434 | |
| 11435 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 11436 | |
| 11437 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel |
| 11438 | doesn't provide PTRACE_GET_THREAD_AREA. |
| 11439 | |
| 11440 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 11441 | |
| 11442 | * linux-m68k-low.c: Include <asm/ptrace.h> |
| 11443 | (ps_get_thread_area): Implement. |
| 11444 | |
| 11445 | 2010-05-03 Doug Evans <dje@google.com> |
| 11446 | |
| 11447 | * event-loop.c (struct callback_event): New struct. |
| 11448 | (callback_list): New global. |
| 11449 | (append_callback_event, delete_callback_event): New functions. |
| 11450 | (process_callback): New function. |
| 11451 | (start_event_loop): Call it. |
| 11452 | * remote-utils.c (NOT_SCHEDULED): Define. |
| 11453 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, |
| 11454 | moved out of readchar. |
| 11455 | (readchar): Rewrite. Call reschedule before returning. |
| 11456 | (reset_readchar): New function. |
| 11457 | (remote_close): Call it. |
| 11458 | (process_remaining, reschedule): New functions. |
| 11459 | * server.h (callback_handler_func): New typedef. |
| 11460 | (append_callback_event, delete_callback_event): Declare. |
| 11461 | |
| 11462 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
| 11463 | |
| 11464 | * proc-service.c (ps_pglobal_lookup): Use |
| 11465 | thread_db_look_up_one_symbol. |
| 11466 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' |
| 11467 | parameter. Use it instead of all_symbols_looked_up. |
| 11468 | * server.h (struct process_info) <all_symbols_looked_up>: Delete |
| 11469 | field. |
| 11470 | (all_symbols_looked_up): Don't declare. |
| 11471 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. |
| 11472 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New |
| 11473 | field. |
| 11474 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. |
| 11475 | Set all_symbols_looked_up here. |
| 11476 | (thread_db_look_up_one_symbol): New. |
| 11477 | (thread_db_get_tls_address): Adjust. |
| 11478 | (thread_db_load_search, try_thread_db_load_1): Always allocate the |
| 11479 | thread_db object on the heap, and tentatively set it in the |
| 11480 | process structure. |
| 11481 | (thread_db_init): Don't set all_symbols_looked_up here. |
| 11482 | * linux-low.h (thread_db_look_up_one_symbol): Declare. |
| 11483 | |
| 11484 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
| 11485 | |
| 11486 | * linux-low.c (linux_kill, linux_detach): Adjust. |
| 11487 | (status_pending_p_callback): Remove redundant statement. Check |
| 11488 | for !TARGET_WAITIKIND_IGNORE, instead of |
| 11489 | TARGET_WAITKIND_STOPPED. |
| 11490 | (handle_tracepoints): Make sure LWP is locked. Adjust. |
| 11491 | (linux_wait_for_event_1): Adjust. |
| 11492 | (linux_cancel_breakpoints): New. |
| 11493 | (unsuspend_one_lwp): New. |
| 11494 | (unsuspend_all_lwps): New. |
| 11495 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. |
| 11496 | (send_sigstop_callback): Change return type to int, add new |
| 11497 | `except' parameter and handle it. |
| 11498 | (suspend_and_send_sigstop_callback): New. |
| 11499 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and |
| 11500 | pass them down. If SUSPEND, also increment the lwp's suspend |
| 11501 | count. |
| 11502 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. |
| 11503 | (need_step_over_p): Don't consider suspended LWPs. |
| 11504 | (start_step_over): Adjust. |
| 11505 | (proceed_one_lwp): Change return type to int, add new `except' |
| 11506 | parameter and handle it. |
| 11507 | (unsuspend_and_proceed_one_lwp): New. |
| 11508 | (proceed_all_lwps): Use find_inferior instead of |
| 11509 | for_each_inferior. |
| 11510 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them |
| 11511 | also decrement the suspend count of LWPs. Pass `except' down, |
| 11512 | instead of hacking its suspend count. |
| 11513 | (linux_pause_all): Add `freeze' parameter. Adjust. |
| 11514 | (linux_unpause_all): New. |
| 11515 | (linux_target_ops): Install linux_unpause_all. |
| 11516 | * server.c (handle_status): Adjust. |
| 11517 | * target.h (struct target_ops): New fields `unpause_all' and |
| 11518 | `cancel_breakpoints'. Add new parameter to `pause_all'. |
| 11519 | (pause_all): Add new `freeze' parameter. |
| 11520 | (unpause_all): New. |
| 11521 | (cancel_breakpoints): New. |
| 11522 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and |
| 11523 | cancel breakpoints. |
| 11524 | (cmd_qtstart): Pause threads. |
| 11525 | (stop_tracing): Pause threads, and cancel breakpoints. |
| 11526 | * win32-low.c (win32_target_ops): Adjust. |
| 11527 | |
| 11528 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
| 11529 | |
| 11530 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to |
| 11531 | the inferior right away from here... |
| 11532 | (linux_wait_1): ... to here, and adjust to check the thread's |
| 11533 | last_resume_kind instead of the lwp's step or stop_expected flags. |
| 11534 | |
| 11535 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
| 11536 | |
| 11537 | * README: Use consistent `GDB' and `GDBserver' spellings. |
| 11538 | |
| 11539 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
| 11540 | |
| 11541 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. |
| 11542 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. |
| 11543 | (linux_detach_one_lwp): Assume the lwp is stopped. |
| 11544 | (any_thread_of): Delete. |
| 11545 | (linux_detach): Stop all lwps here. Don't blindly delete all |
| 11546 | breakpoints. |
| 11547 | (delete_lwp_callback): New. |
| 11548 | (linux_mourn): Delete all lwps of the process that is gone. |
| 11549 | (linux_wait_1): Don't delete the last lwp of the process here. |
| 11550 | * mem-break.h (mark_breakpoints_out): Declare. |
| 11551 | * mem-break.c (mark_breakpoints_out): New. |
| 11552 | (free_all_breakpoints): Use it. |
| 11553 | * server.c (handle_target_event): If the process is gone, mark |
| 11554 | breakpoints out. |
| 11555 | * thread-db.c (struct thread_db) <create_bp>: New field. |
| 11556 | (thread_db_enable_reporting): Fix prototype. Store a thread event |
| 11557 | breakpoint reference in the thread_db struct. |
| 11558 | (thread_db_load_search): Clear the thread_db object. |
| 11559 | (try_thread_db_load_1): Ditto. |
| 11560 | (switch_to_process): New. |
| 11561 | (disable_thread_event_reporting): Use it. |
| 11562 | (remove_thread_event_breakpoints): New. |
| 11563 | (thread_db_detach, thread_db_mourn): Use it. |
| 11564 | |
| 11565 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
| 11566 | |
| 11567 | * linux-low.c (linux_enable_event_reporting): New. |
| 11568 | (linux_wait_for_event_1, handle_extended_wait): Use it. |
| 11569 | |
| 11570 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
| 11571 | |
| 11572 | * linux-low.c (linux_kill_one_lwp, linux_kill) |
| 11573 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. |
| 11574 | (send_sigstop): Take an lwp_info as parameter instead. Queue a |
| 11575 | SIGSTOP even if the LWP is stopped. |
| 11576 | (send_sigstop_callback): New. |
| 11577 | (stop_all_lwps): Use send_sigstop_callback instead. |
| 11578 | (linux_resume_one_thread): Adjust. |
| 11579 | (proceed_one_lwp): Still proceed an LWP that the client has |
| 11580 | requested to stop, if we haven't reported it as stopped yet. Make |
| 11581 | sure that LWPs the client want stopped, have a pending SIGSTOP. |
| 11582 | |
| 11583 | 2010-04-26 Doug Evans <dje@google.com> |
| 11584 | |
| 11585 | * server.c (handle_general_set): Make static. |
| 11586 | |
| 11587 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
| 11588 | Print received char after testing for error/eof instead of before. |
| 11589 | (input_interrupt): Tweak comment. |
| 11590 | |
| 11591 | 2010-04-23 Doug Evans <dje@google.com> |
| 11592 | |
| 11593 | * server.c (start_inferior): Print inferior argv if --debug. |
| 11594 | |
| 11595 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
| 11596 | |
| 11597 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. |
| 11598 | * nto-x86-low.c: Include server.h |
| 11599 | |
| 11600 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11601 | |
| 11602 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to |
| 11603 | be consistent with other sources of this directory. |
| 11604 | (init_registers_amd64): Correct name of source file of this function |
| 11605 | in the comment. |
| 11606 | |
| 11607 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11608 | |
| 11609 | * configure.srv (x86_64-*-mingw*): New configuration for Windows |
| 11610 | 64-bit executables. |
| 11611 | |
| 11612 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11613 | |
| 11614 | * win32-i386-low.c: Add 64-bit support. |
| 11615 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. |
| 11616 | (init_registers_amd64): Declare. |
| 11617 | (mappings): Add 64-bit version of array. |
| 11618 | (init_windows_x86): New function. |
| 11619 | (the_low_target): Change init_arch field to init_windows_x86. |
| 11620 | |
| 11621 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11622 | |
| 11623 | * win32-low.c: Adapt to support also 64-bit architecture. |
| 11624 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. |
| 11625 | (get_image_name): Use SIZE_T type for local variable `done'. |
| 11626 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. |
| 11627 | (toolhelp_get_dll_name): Idem. |
| 11628 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. |
| 11629 | Use uintptr_t typecast to avoid warning. |
| 11630 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. |
| 11631 | (handle_exception): Use phex_nz to avoid warning. |
| 11632 | (win32_wait): Remove unused local variable `process'. |
| 11633 | |
| 11634 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11635 | |
| 11636 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by |
| 11637 | `amd64-avx.o'. |
| 11638 | |
| 11639 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11640 | |
| 11641 | * configure.ac: Use `ws2_32' library for srv_mingw. |
| 11642 | * configure: Regenerate. |
| 11643 | * gdbreplay.c: Include winsock2.h instead of winsock.h. |
| 11644 | * remote-utils.c: Likewise. |
| 11645 | |
| 11646 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
| 11647 | |
| 11648 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only |
| 11649 | if __x86_64__ is defined. |
| 11650 | |
| 11651 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11652 | |
| 11653 | * configure: Regenerate. |
| 11654 | |
| 11655 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
| 11656 | |
| 11657 | * server.c (handle_query): Handle 'qGetTIBAddr' query. |
| 11658 | * target.h (target_ops): New get_tib_address field. |
| 11659 | * win32-low.h (win32_thread_info): Add thread_local_base field. |
| 11660 | * win32-low.c (child_add_thread): Add tlb argument. |
| 11661 | Set thread_local_base field to TLB. |
| 11662 | (get_child_debug_event): Adapt to child_add_thread change. |
| 11663 | (win32_get_tib_address): New function. |
| 11664 | (win32_target_ops): Set get_tib_address field to |
| 11665 | win32_get_tib_address. |
| 11666 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. |
| 11667 | |
| 11668 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
| 11669 | |
| 11670 | * linux-low.c (linux_mourn): Also remove the process. |
| 11671 | * server.c (handle_target_event): Don't remove the process here. |
| 11672 | * nto-low.c (nto_mourn): New. |
| 11673 | (nto_target_ops): Install it. |
| 11674 | * spu-low.c (spu_mourn): New. |
| 11675 | (spu_target_ops): Install it. |
| 11676 | * win32-low.c (win32_mourn): New. |
| 11677 | (win32_target_ops): Install it. |
| 11678 | |
| 11679 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
| 11680 | |
| 11681 | * server.h (buffer_xml_printf): Remove redundant `;'. |
| 11682 | |
| 11683 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
| 11684 | |
| 11685 | * regcache.c (set_register_cache): Invalidate regcaches before |
| 11686 | changing the register cache layout. |
| 11687 | (regcache_invalidate_one): Allow a NULL regcache. |
| 11688 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate |
| 11689 | regcaches before changing the register cache layout or the target |
| 11690 | regsets. |
| 11691 | |
| 11692 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
| 11693 | |
| 11694 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused |
| 11695 | variable warning on Linux/x86-64. |
| 11696 | |
| 11697 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
| 11698 | |
| 11699 | GDBserver disconnected tracing support. |
| 11700 | |
| 11701 | * linux-low.c (linux_remove_process): Delete. |
| 11702 | (add_lwp): Don't set last_resume_kind here. |
| 11703 | (linux_kill): Use `mourn'. |
| 11704 | (linux_detach): Use `thread_db_detach', and `mourn'. |
| 11705 | (linux_mourn): New. |
| 11706 | (linux_attach_lwp_1): Adjust comment. |
| 11707 | (linux_attach): last_resume_kind moved the thread_info; adjust. |
| 11708 | (status_pending_p_callback): Adjust. |
| 11709 | (linux_wait_for_event_1): Adjust. |
| 11710 | (count_events_callback, select_singlestep_lwp_callback) |
| 11711 | (select_event_lwp_callback, cancel_breakpoints_callback) |
| 11712 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) |
| 11713 | (proceed_one_lwp): Adjust. |
| 11714 | (linux_async): Add debug output. |
| 11715 | (linux_thread_stopped): New. |
| 11716 | (linux_pause_all): New. |
| 11717 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and |
| 11718 | linux_pause_all. |
| 11719 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. |
| 11720 | (thread_db_free): Delete declaration. |
| 11721 | (thread_db_detach, thread_db_mourn): Declare. |
| 11722 | * thread-db.c (thread_db_init): Use thread_db_mourn. |
| 11723 | (thread_db_free): Delete, split in two. |
| 11724 | (disable_thread_event_reporting): New. |
| 11725 | (thread_db_detach): New. |
| 11726 | (thread_db_mourn): New. |
| 11727 | |
| 11728 | * server.h (struct thread_info) <last_resume_kind>: New field. |
| 11729 | <attached>: Add comment. |
| 11730 | <gdb_detached>: New field. |
| 11731 | (handler_func): Change return type to int. |
| 11732 | (handle_serial_event, handle_target_event): Ditto. |
| 11733 | (gdb_connected): Declare. |
| 11734 | (tracing): Delete. |
| 11735 | (disconnected_tracing): Declare. |
| 11736 | (stop_tracing): Declare. |
| 11737 | |
| 11738 | * server.c (handle_query) <qSupported>: Report support for |
| 11739 | disconnected tracing. |
| 11740 | (queue_stop_reply_callback): Account for running threads. |
| 11741 | (gdb_wants_thread_stopped): New. |
| 11742 | (gdb_wants_all_threads_stopped): New. |
| 11743 | (gdb_reattached_process): New. |
| 11744 | (handle_status): Clear the `gdb_detached' flag of all processes. |
| 11745 | In all-stop, stop all threads. |
| 11746 | (main): Be sure to leave tfind mode. Handle disconnected tracing. |
| 11747 | (process_serial_event): If the remote connection breaks, or if an |
| 11748 | exit was forced with "monitor exit", force an event loop exit. |
| 11749 | Handle disconnected tracing on detach. |
| 11750 | (handle_serial_event): Adjust. |
| 11751 | (handle_target_event): If GDB isn't connected, forward events back |
| 11752 | to the inferior, unless the last process exited, in which case, |
| 11753 | exit gdbserver. Adjust interface. |
| 11754 | |
| 11755 | * remote-utils.c (remote_open): Don't block in accept. Instead |
| 11756 | register an event loop source on the listen socket file |
| 11757 | descriptor. Refactor bits into ... |
| 11758 | (listen_desc): ... this new global. |
| 11759 | (gdb_connected): ... this new function. |
| 11760 | (enable_async_notification): ... this new function. |
| 11761 | (handle_accept_event): ... this new function. |
| 11762 | (remote_close): Clear remote_desc. |
| 11763 | |
| 11764 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. |
| 11765 | |
| 11766 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: |
| 11767 | New fields. |
| 11768 | (mourn_inferior): Define. |
| 11769 | (target_process_qsupported): Avoid the dangling else problem. |
| 11770 | (thread_stopped): Define. |
| 11771 | (pause_all): Define. |
| 11772 | (target_waitstatus_to_string): Declare. |
| 11773 | * target.c (target_waitstatus_to_string): New. |
| 11774 | |
| 11775 | * tracepoint.c (tracing): Make extern. |
| 11776 | (disconnected_tracing): New. |
| 11777 | (stop_tracing): Make extern. Handle tracing stops due to GDB |
| 11778 | disconnecting. |
| 11779 | (cmd_qtdisconnected): New. |
| 11780 | (cmd_qtstatus): Report disconnected tracing status in trace reply. |
| 11781 | (handle_tracepoint_general_set): Handle QTDisconnected. |
| 11782 | |
| 11783 | * event-loop.c (event_handler_func): Change return type to int. |
| 11784 | (process_event): Bail out if the event handler wants the event |
| 11785 | loop to stop. |
| 11786 | (handle_file_event): Ditto. |
| 11787 | (start_event_loop): Bail out if the event handler wants the event |
| 11788 | loop to stop. |
| 11789 | |
| 11790 | * nto-low.c (nto_target_ops): Adjust. |
| 11791 | * spu-low.c (spu_wait): Don't remove the process here. |
| 11792 | (spu_target_ops): Adjust. |
| 11793 | * win32-low.c (win32_wait): Don't remove the process here. |
| 11794 | (win32_target_ops): Adjust. |
| 11795 | |
| 11796 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
| 11797 | |
| 11798 | * regcache.c (realloc_register_cache): Invalidate inferior's |
| 11799 | regcache before recreating it. |
| 11800 | |
| 11801 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
| 11802 | |
| 11803 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. |
| 11804 | |
| 11805 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
| 11806 | Pedro Alves <pedro@codesourcery.com> |
| 11807 | |
| 11808 | * server.h (LONGEST): New. |
| 11809 | (struct thread_info) <while_stepping>: New field. |
| 11810 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): |
| 11811 | Declare. |
| 11812 | (initialize_tracepoint, handle_tracepoint_general_set) |
| 11813 | (handle_tracepoint_query, tracepoint_finished_step) |
| 11814 | (tracepoint_was_hit, release_while_stepping_state_list): |
| 11815 | (current_traceframe): Declare. |
| 11816 | * server.c (handle_general_set): Handle tracepoint packets. |
| 11817 | (read_memory): New. |
| 11818 | (write_memory): New. |
| 11819 | (handle_search_memory_1): Use read_memory. |
| 11820 | (handle_query): Report support for conditional tracepoints, trace |
| 11821 | state variables, and tracepoint sources. Handle tracepoint |
| 11822 | queries. |
| 11823 | (main): Initialize the tracepoints module. |
| 11824 | (process_serial_event): Handle traceframe reads/writes. |
| 11825 | |
| 11826 | * linux-low.c (handle_tracepoints): New. |
| 11827 | (linux_wait_1): Call it. |
| 11828 | (linux_resume_one_lwp): Handle while-stepping. |
| 11829 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. |
| 11830 | (linux_target_ops): Install them. |
| 11831 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: |
| 11832 | New field. |
| 11833 | * linux-x86-low.c (x86_supports_tracepoints): New. |
| 11834 | (the_low_target). Install it. |
| 11835 | |
| 11836 | * mem-break.h (delete_breakpoint): Declare. |
| 11837 | * mem-break.c (delete_breakpoint): Make external. |
| 11838 | |
| 11839 | * target.h (struct target_ops): Add `supports_tracepoints', |
| 11840 | `read_pc', and `write_pc' fields. |
| 11841 | (target_supports_tracepoints): Define. |
| 11842 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) |
| 11843 | (phex_nz): New. |
| 11844 | |
| 11845 | * regcache.h (struct regcache) <registers_owned>: New field. |
| 11846 | (init_register_cache, regcache_cpy): Declare. |
| 11847 | (regcache_read_pc, regcache_write_pc): Declare. |
| 11848 | (register_cache_size): Declare. |
| 11849 | (supply_regblock): Declare. |
| 11850 | * regcache.c (init_register_cache): New. |
| 11851 | (new_register_cache): Use it. |
| 11852 | (regcache_cpy): New. |
| 11853 | (register_cache_size): New. |
| 11854 | (supply_regblock): New. |
| 11855 | (regcache_read_pc, regcache_write_pc): New. |
| 11856 | |
| 11857 | * tracepoint.c: New. |
| 11858 | |
| 11859 | * Makefile.in (OBS): Add tracepoint.o. |
| 11860 | (tracepoint.o): New rule. |
| 11861 | |
| 11862 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
| 11863 | |
| 11864 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. |
| 11865 | (i386-mmx.o): New. |
| 11866 | (i386-mmx.c): Likewise. |
| 11867 | (i386-mmx-linux.o): Likewise. |
| 11868 | (i386-mmx-linux.c): Likewise. |
| 11869 | |
| 11870 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. |
| 11871 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. |
| 11872 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. |
| 11873 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. |
| 11874 | |
| 11875 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. |
| 11876 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux |
| 11877 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. |
| 11878 | |
| 11879 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
| 11880 | |
| 11881 | * Makefile.in (clean): Updated. |
| 11882 | (i386-avx.o): New. |
| 11883 | (i386-avx.c): Likewise. |
| 11884 | (i386-avx-linux.o): Likewise. |
| 11885 | (i386-avx-linux.c): Likewise. |
| 11886 | (amd64-avx.o): Likewise. |
| 11887 | (amd64-avx.c): Likewise. |
| 11888 | (amd64-avx-linux.o): Likewise. |
| 11889 | (amd64-avx-linux.c): Likewise. |
| 11890 | |
| 11891 | * configure.srv (srv_i386_regobj): Add i386-avx.o. |
| 11892 | (srv_i386_linux_regobj): Add i386-avx-linux.o. |
| 11893 | (srv_amd64_regobj): Add amd64-avx.o. |
| 11894 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. |
| 11895 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. |
| 11896 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. |
| 11897 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. |
| 11898 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. |
| 11899 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. |
| 11900 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. |
| 11901 | |
| 11902 | * i387-fp.c: Include "i386-xstate.h". |
| 11903 | (i387_xsave): New. |
| 11904 | (i387_cache_to_xsave): Likewise. |
| 11905 | (i387_xsave_to_cache): Likewise. |
| 11906 | (x86_xcr0): Likewise. |
| 11907 | |
| 11908 | * i387-fp.h (i387_cache_to_xsave): Likewise. |
| 11909 | (i387_xsave_to_cache): Likewise. |
| 11910 | (x86_xcr0): Likewise. |
| 11911 | |
| 11912 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. |
| 11913 | * linux-crisv32-low.c (target_regsets): Likewise. |
| 11914 | * linux-m68k-low.c (target_regsets): Likewise. |
| 11915 | * linux-mips-low.c (target_regsets): Likewise. |
| 11916 | * linux-ppc-low.c (target_regsets): Likewise. |
| 11917 | * linux-s390-low.c (target_regsets): Likewise. |
| 11918 | * linux-sh-low.c (target_regsets): Likewise. |
| 11919 | * linux-sparc-low.c (target_regsets): Likewise. |
| 11920 | * linux-xtensa-low.c (target_regsets): Likewise. |
| 11921 | |
| 11922 | * linux-low.c: Include <sys/uio.h>. |
| 11923 | (regsets_fetch_inferior_registers): Support nt_type. |
| 11924 | (regsets_store_inferior_registers): Likewise. |
| 11925 | (linux_process_qsupported): New. |
| 11926 | (linux_target_ops): Add linux_process_qsupported. |
| 11927 | |
| 11928 | * linux-low.h (regset_info): Add nt_type. |
| 11929 | (linux_target_ops): Add process_qsupported. |
| 11930 | |
| 11931 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" |
| 11932 | and <sys/uio.h>. |
| 11933 | (init_registers_i386_avx_linux): New. |
| 11934 | (init_registers_amd64_avx_linux): Likewise. |
| 11935 | (xmltarget_i386_linux_no_xml): Likewise. |
| 11936 | (xmltarget_amd64_linux_no_xml): Likewise. |
| 11937 | (PTRACE_GETREGSET): Likewise. |
| 11938 | (PTRACE_SETREGSET): Likewise. |
| 11939 | (x86_fill_xstateregset): Likewise. |
| 11940 | (x86_store_xstateregset): Likewise. |
| 11941 | (use_xml): Likewise. |
| 11942 | (x86_linux_update_xmltarget): Likewise. |
| 11943 | (x86_linux_process_qsupported): Likewise. |
| 11944 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. |
| 11945 | (x86_arch_setup): Don't call init_registers_amd64_linux nor |
| 11946 | init_registers_i386_linux here. Call |
| 11947 | x86_linux_update_xmltarget. |
| 11948 | (the_low_target): Add x86_linux_process_qsupported. |
| 11949 | |
| 11950 | * server.c (handle_query): Call target_process_qsupported. |
| 11951 | |
| 11952 | * target.h (target_ops): Add process_qsupported. |
| 11953 | (target_process_qsupported): New. |
| 11954 | |
| 11955 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
| 11956 | |
| 11957 | * inferiors.c (add_thread): Set last_status kind to |
| 11958 | TARGET_WAITKIND_IGNORE. |
| 11959 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache |
| 11960 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. |
| 11961 | (linux_wait_1): Move `thread' local definition to block that uses |
| 11962 | it. Don't NULL initialize `event_child'. |
| 11963 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. |
| 11964 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. |
| 11965 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. |
| 11966 | |
| 11967 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
| 11968 | |
| 11969 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with |
| 11970 | an extended waitstatus, or by a watchpoint. |
| 11971 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the |
| 11972 | thread was stepping or has been stopped by a watchpoint. |
| 11973 | |
| 11974 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
| 11975 | |
| 11976 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. |
| 11977 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top |
| 11978 | of another, then delete the previous, and validate all |
| 11979 | breakpoints. |
| 11980 | (validate_inserted_breakpoint): New. |
| 11981 | (delete_disabled_breakpoints): New. |
| 11982 | (validate_breakpoints): New. |
| 11983 | (check_mem_read): Validate breakpoints before trusting their |
| 11984 | shadow. Delete disabled breakpoints. |
| 11985 | (check_mem_write): Validate breakpoints before trusting they |
| 11986 | should be inserted. Delete disabled breakpoints. |
| 11987 | * mem-break.h (validate_breakpoints): |
| 11988 | * server.c (handle_query): Validate breakpoints when we see a |
| 11989 | qSymbol query. |
| 11990 | |
| 11991 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
| 11992 | |
| 11993 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is |
| 11994 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB |
| 11995 | if we could tell there's a GDB breakpoint at stop_pc. |
| 11996 | (need_step_over_p): Don't do a step over if we find a GDB |
| 11997 | breakpoint at the resume PC. |
| 11998 | |
| 11999 | * mem-break.c (struct raw_breakpoint): New. |
| 12000 | (enum bkpt_type): New type `gdb_breakpoint'. |
| 12001 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' |
| 12002 | fields. New field `raw'. |
| 12003 | (find_raw_breakpoint_at): New. |
| 12004 | (set_raw_breakpoint_at): Handle refcounting. Create a raw |
| 12005 | breakpoint instead. |
| 12006 | (set_breakpoint_at): Adjust. |
| 12007 | (delete_raw_breakpoint): New. |
| 12008 | (release_breakpoint): New. |
| 12009 | (delete_breakpoint): Rename to... |
| 12010 | (delete_breakpoint_1): ... this. Add proc parameter. Use |
| 12011 | release_breakpoint. Return ENOENT. |
| 12012 | (delete_breakpoint): Reimplement. |
| 12013 | (find_breakpoint_at): Delete. |
| 12014 | (find_gdb_breakpoint_at): New. |
| 12015 | (delete_breakpoint_at): Delete. |
| 12016 | (set_gdb_breakpoint_at): New. |
| 12017 | (delete_gdb_breakpoint_at): New. |
| 12018 | (gdb_breakpoint_here): New. |
| 12019 | (set_reinsert_breakpoint): Use release_breakpoint. |
| 12020 | (uninsert_breakpoint): Rename to ... |
| 12021 | (uninsert_raw_breakpoint): ... this. |
| 12022 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. |
| 12023 | (reinsert_raw_breakpoint): Change parameter type to |
| 12024 | raw_breakpoint. |
| 12025 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints |
| 12026 | instead. |
| 12027 | (check_breakpoints): Adjust. Use release_breakpoint. |
| 12028 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. |
| 12029 | (breakpoint_inserted_here): Ditto. |
| 12030 | (check_mem_read): Adjust to iterate over raw breakpoints instead. |
| 12031 | Don't trust the breakpoint's shadow if it is not inserted. |
| 12032 | (check_mem_write): Adjust to iterate over raw breakpoints instead. |
| 12033 | (delete_all_breakpoints): Adjust. |
| 12034 | (free_all_breakpoints): Mark all breakpoints as uninserted, and |
| 12035 | use delete_breakpoint_1. |
| 12036 | |
| 12037 | * mem-break.h (breakpoints_supported): Delete declaration. |
| 12038 | (set_gdb_breakpoint_at): Declare. |
| 12039 | (gdb_breakpoint_here): Declare. |
| 12040 | (delete_breakpoint_at): Delete. |
| 12041 | (delete_gdb_breakpoint_at): Declare. |
| 12042 | |
| 12043 | * server.h (struct raw_breakpoint): Forward declare. |
| 12044 | (struct process_info): New field `raw_breakpoints'. |
| 12045 | |
| 12046 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 |
| 12047 | breakpoints. |
| 12048 | |
| 12049 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 12050 | |
| 12051 | * linux-low.c (status_pending_p_callback): Fix comment. |
| 12052 | (linux_wait_for_event_1): Move most of the internal breakpoint |
| 12053 | handling from here... |
| 12054 | (linux_wait_1): ... to here. |
| 12055 | (count_events_callback): New. |
| 12056 | (select_singlestep_lwp_callback): New. |
| 12057 | (select_event_lwp_callback): New. |
| 12058 | (cancel_breakpoints_callback): New. |
| 12059 | (select_event_lwp): New. |
| 12060 | (linux_wait_1): Simplify internal breakpoint handling. Give equal |
| 12061 | priority to all LWPs that have had events that should be reported |
| 12062 | to the client. Cancel breakpoints when about to reporting the |
| 12063 | event to the client, not while stopping lwps. No longer cancel |
| 12064 | finished single-steps here. |
| 12065 | (cancel_finished_single_step): Delete. |
| 12066 | (cancel_finished_single_steps): Delete. |
| 12067 | |
| 12068 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 12069 | |
| 12070 | * mem-break.c (enum bkpt_type): New. |
| 12071 | (struct breakpoint): New field `type'. |
| 12072 | (set_breakpoint_at): Change return type to struct breakpoint |
| 12073 | pointer. Set type to `other_breakpoint' by default. |
| 12074 | (delete_breakpoint): Rewrite, supporting more than one breakpoint |
| 12075 | in the breakpoint list. |
| 12076 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. |
| 12077 | (reinsert_breakpoint): Rename to ... |
| 12078 | (reinsert_raw_breakpoint): ... this. |
| 12079 | (reinsert_breakpoints_at): Adjust. |
| 12080 | * mem-break.h (struct breakpoint): Declare. |
| 12081 | (set_breakpoint_at): Change return type to struct breakpoint |
| 12082 | pointer. |
| 12083 | |
| 12084 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 12085 | |
| 12086 | * server.c (handle_query): Assign, not compare. |
| 12087 | |
| 12088 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
| 12089 | |
| 12090 | Teach linux gdbserver to step-over-breakpoints. |
| 12091 | |
| 12092 | * linux-low.c (can_hardware_single_step): New. |
| 12093 | (supports_breakpoints): New. |
| 12094 | (handle_extended_wait): If stopping threads, read the stop pc of |
| 12095 | the new cloned LWP. |
| 12096 | (get_pc): New. |
| 12097 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the |
| 12098 | low target doesn't support retrieving the PC. |
| 12099 | (add_lwp): Set last_resume_kind to resume_continue. |
| 12100 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. |
| 12101 | (linux_attach): Don't clear stop_expected. Set the lwp's |
| 12102 | last_resume_kind to resume_stop. |
| 12103 | (linux_detach_one_lwp): Don't check for removed breakpoints. |
| 12104 | (check_removed_breakpoint): Delete. |
| 12105 | (status_pending_p): Rename to ... |
| 12106 | (status_pending_p_callback): ... this. Don't check for removed |
| 12107 | breakpoints. Don't consider threads that are stopped from GDB's |
| 12108 | perspective. |
| 12109 | (linux_wait_for_lwp): Always read the stop_pc here. |
| 12110 | (cancel_breakpoint): New. |
| 12111 | (step_over_bkpt): New global. |
| 12112 | (linux_wait_for_event_1): Implement stepping over breakpoints. |
| 12113 | (gdb_wants_lwp_stopped): New. |
| 12114 | (gdb_wants_all_stopped): New. |
| 12115 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished |
| 12116 | single-step traps here. Store the thread's last reported target |
| 12117 | wait status. |
| 12118 | (send_sigstop): Don't clear stop_expected. Always set it, |
| 12119 | instead. |
| 12120 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. |
| 12121 | (cancel_finished_single_step): New. |
| 12122 | (cancel_finished_single_steps): New. |
| 12123 | (wait_for_sigstop): Don't cancel finished single-step traps here. |
| 12124 | (linux_resume_one_lwp): Don't check for removed breakpoints. |
| 12125 | Don't set `step' on non-hardware step archs. |
| 12126 | (linux_set_resume_request): Ignore resume_stop requests if already |
| 12127 | stopping or stopped. Set the lwp's last_resume_kind. |
| 12128 | (resume_status_pending_p): Don't check for removed breakpoints. |
| 12129 | (need_step_over_p): New. |
| 12130 | (start_step_over): New. |
| 12131 | (finish_step_over): New. |
| 12132 | (linux_resume_one_thread): Always queue a sigstop for resume_stop |
| 12133 | requests. Clear the thread's last reported target waitstatus. |
| 12134 | Don't use the `suspended' flag. Don't consider pending breakpoints. |
| 12135 | (linux_resume): Start a step-over if necessary. |
| 12136 | (proceed_one_lwp): New. |
| 12137 | (proceed_all_lwps): New. |
| 12138 | (unstop_all_lwps): New. |
| 12139 | * linux-low.h (struct lwp_info): Rewrite comment for the |
| 12140 | `suspended' flag. Add the `stop_pc' field. Delete the |
| 12141 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. |
| 12142 | Add `'last_resume_kind' and `need_step_over' fields. |
| 12143 | * inferiors.c (struct thread_info): Delete, moved elsewhere. |
| 12144 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. |
| 12145 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. |
| 12146 | (set_raw_breakpoint_at): New. |
| 12147 | (set_breakpoint_at): Rewrite to use it. |
| 12148 | (reinsert_breakpoint_handler): Delete. |
| 12149 | (set_reinsert_breakpoint): New. |
| 12150 | (reinsert_breakpoint_by_bp): Delete. |
| 12151 | (delete_reinsert_breakpoints): New. |
| 12152 | (uninsert_breakpoint): Rewrite. |
| 12153 | (uninsert_breakpoints_at): New. |
| 12154 | (reinsert_breakpoint): Rewrite. |
| 12155 | (reinsert_breakpoints_at): New. |
| 12156 | (check_breakpoints): Rewrite. |
| 12157 | (breakpoint_here): New. |
| 12158 | (breakpoint_inserted_here): New. |
| 12159 | (check_mem_read): Adjust. |
| 12160 | * mem-break.h (breakpoints_supported, breakpoint_here) |
| 12161 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. |
| 12162 | (reinsert_breakpoint_by_bp): Delete declaration. |
| 12163 | (delete_reinsert_breakpoints): Declare. |
| 12164 | (reinsert_breakpoint): Delete declaration. |
| 12165 | (reinsert_breakpoints_at): Declare. |
| 12166 | (uninsert_breakpoint): Delete declaration. |
| 12167 | (uninsert_breakpoints_at): Declare. |
| 12168 | (check_breakpoints): Adjust prototype. |
| 12169 | * server.h: Adjust include order. |
| 12170 | (struct thread_info): Declare here. Add a `last_status' field. |
| 12171 | |
| 12172 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
| 12173 | |
| 12174 | * server.c (crc32): New function. |
| 12175 | (handle_query): Add handling for 'qCRC:' request. |
| 12176 | |
| 12177 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
| 12178 | |
| 12179 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the |
| 12180 | lwp had been stopped by a watchpoint. |
| 12181 | |
| 12182 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
| 12183 | |
| 12184 | * server.h (internal_error): Declare. |
| 12185 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. |
| 12186 | * utils.c (internal_error): New function. |
| 12187 | |
| 12188 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
| 12189 | |
| 12190 | * configure.srv: Fix typo setting srv_regobj. |
| 12191 | |
| 12192 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
| 12193 | |
| 12194 | * linux-low.c (fetch_register): Avoid passing a non string literal |
| 12195 | format to `error'. |
| 12196 | (usr_store_inferior_registers): Ditto. |
| 12197 | |
| 12198 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
| 12199 | |
| 12200 | * linux-low.c (linux_write_memory): Bail out early if peeking |
| 12201 | memory failed. |
| 12202 | |
| 12203 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
| 12204 | |
| 12205 | * linux-low.h (struct lwp_info): New fields |
| 12206 | `stopped_by_watchpoint' and `stopped_data_address'. |
| 12207 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers |
| 12208 | here, and cache them in the lwp object. |
| 12209 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field |
| 12210 | directly. |
| 12211 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint |
| 12212 | field. |
| 12213 | (linux_stopped_by_watchpoint): Rewrite. |
| 12214 | (linux_stopped_data_address): Rewrite. |
| 12215 | |
| 12216 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
| 12217 | |
| 12218 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after |
| 12219 | switching the current inferior, not before. |
| 12220 | |
| 12221 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
| 12222 | |
| 12223 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, |
| 12224 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, |
| 12225 | i386-linux.c and amd64-linux.c. |
| 12226 | (reg-i386.o): Removed. |
| 12227 | (reg-i386.c): Likewise. |
| 12228 | (reg-i386-linux.o): Likewise. |
| 12229 | (reg-i386-linux.c): Likewise. |
| 12230 | (reg-x86-64.o): Likewise. |
| 12231 | (reg-x86-64.c): Likewise. |
| 12232 | (reg-x86-64-linux.o): Likewise. |
| 12233 | (reg-x86-64-linux.c): Likewise. |
| 12234 | (i386.o): New. |
| 12235 | (i386.c): Likewise. |
| 12236 | (i386-linux.o): Likewise. |
| 12237 | (i386-linux.c): Likewise. |
| 12238 | (amd64.o): Likewise. |
| 12239 | (amd64.c): Likewise. |
| 12240 | (amd64-linux.o): Likewise. |
| 12241 | (amd64-linux.c): Likewise. |
| 12242 | |
| 12243 | * configure.srv (srv_i386_regobj): New. |
| 12244 | (srv_i386_linux_regobj): Likewise. |
| 12245 | (srv_amd64_regobj): Likewise. |
| 12246 | (srv_amd64_linux_regobj): Likewise. |
| 12247 | (srv_i386_32bit_xmlfiles): Likewise. |
| 12248 | (srv_i386_64bit_xmlfiles): Likewise. |
| 12249 | (srv_i386_xmlfiles): Likewise. |
| 12250 | (srv_amd64_xmlfiles): Likewise. |
| 12251 | (srv_i386_linux_xmlfiles): Likewise. |
| 12252 | (srv_amd64_linux_xmlfiles): Likewise. |
| 12253 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set |
| 12254 | srv_xmlfiles to $srv_i386_xmlfiles. |
| 12255 | (i[34567]86-*-mingw32ce*): Likewise. |
| 12256 | (i[34567]86-*-mingw*): Likewise. |
| 12257 | (i[34567]86-*-nto*): Likewise. |
| 12258 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj |
| 12259 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to |
| 12260 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. |
| 12261 | (x86_64-*-linux*): Likewise. |
| 12262 | |
| 12263 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. |
| 12264 | (init_registers_amd64_linux): New. |
| 12265 | (x86_arch_setup): Replace init_registers_x86_64_linux with |
| 12266 | init_registers_amd64_linux. |
| 12267 | |
| 12268 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 12269 | |
| 12270 | * configure.ac: Check for libdl. If it is not available link against |
| 12271 | static libthread_db. |
| 12272 | * configure: Regenerate. |
| 12273 | |
| 12274 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
| 12275 | |
| 12276 | PR9605 |
| 12277 | |
| 12278 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if |
| 12279 | handing a read watchpoint. |
| 12280 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. |
| 12281 | |
| 12282 | 2010-02-12 Doug Evans <dje@google.com> |
| 12283 | |
| 12284 | * linux-low.c (linux_supports_tracefork_flag): Document. |
| 12285 | (linux_look_up_symbols): Add comment. |
| 12286 | |
| 12287 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
| 12288 | |
| 12289 | * regcache.c (supply_register): Clear regcache if buf is NULL. |
| 12290 | |
| 12291 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
| 12292 | Joel Brobecker <brobecker@adacore.com> |
| 12293 | |
| 12294 | * inferiors.c (find_inferior): Add function documentation. |
| 12295 | (unloaded_dll): Handle the case where the unloaded dll has not |
| 12296 | been previously registered in the dll list. |
| 12297 | |
| 12298 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 12299 | |
| 12300 | * linux-arm-low.c (thumb_breakpoint_len): Delete. |
| 12301 | (thumb2_breakpoint): New. |
| 12302 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. |
| 12303 | |
| 12304 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 12305 | |
| 12306 | * linux-low.c (get_stop_pc): Check for SIGTRAP. |
| 12307 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible |
| 12308 | breakpoints. |
| 12309 | |
| 12310 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
| 12311 | |
| 12312 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. |
| 12313 | |
| 12314 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 12315 | |
| 12316 | * linux-s390-low.c (s390_collect_ptrace_register) |
| 12317 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. |
| 12318 | |
| 12319 | 2010-01-21 Doug Evans <dje@google.com> |
| 12320 | |
| 12321 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
| 12322 | (PTRACE_ARG4_TYPE): New macro. |
| 12323 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. |
| 12324 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. |
| 12325 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. |
| 12326 | (usr_store_inferior_registers): Ditto. |
| 12327 | (linux_read_memory, linux_write_memory): Ditto. |
| 12328 | (linux_test_for_tracefork): Ditto. |
| 12329 | |
| 12330 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
| 12331 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. |
| 12332 | |
| 12333 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
| 12334 | |
| 12335 | * proc-service.c (ps_lgetregs): Don't refetch registers from the |
| 12336 | target. |
| 12337 | |
| 12338 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
| 12339 | |
| 12340 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change |
| 12341 | prototype to take a regcache. Adjust. |
| 12342 | |
| 12343 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
| 12344 | |
| 12345 | * regcache.h (struct thread_info): Forward declare. |
| 12346 | (struct regcache): New. |
| 12347 | (new_register_cache): Adjust prototype. |
| 12348 | (get_thread_regcache): Declare. |
| 12349 | (free_register_cache): Adjust prototype. |
| 12350 | (registers_to_string, registers_from_string): Ditto. |
| 12351 | (supply_register, supply_register_by_name, collect_register) |
| 12352 | (collect_register_as_string, collect_register_by_name): Ditto. |
| 12353 | * regcache.c (struct inferior_regcache_data): Delete. |
| 12354 | (get_regcache): Rename to ... |
| 12355 | (get_thread_regcache): ... this. Adjust. Switch inferior before |
| 12356 | fetching registers. |
| 12357 | (regcache_invalidate_one): Adjust. |
| 12358 | (regcache_invalidate): Fix prototype. |
| 12359 | (new_register_cache): Return the new register cache. |
| 12360 | (free_register_cache): Change prototype. |
| 12361 | (realloc_register_cache): Adjust. |
| 12362 | (registers_to_string): Change prototype to take a regcache. Adjust. |
| 12363 | (registers_from_string): Ditto. |
| 12364 | (register_data): Ditto. |
| 12365 | (supply_register): Ditto. |
| 12366 | (supply_register_by_name): Ditto. |
| 12367 | (collect_register): Ditto. |
| 12368 | (collect_register_as_string): Ditto. |
| 12369 | (collect_register_by_name): Ditto. |
| 12370 | * server.c (process_serial_event): Adjust. |
| 12371 | * linux-low.h (regset_fill_func, regset_store_func): Change |
| 12372 | prototype. |
| 12373 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): |
| 12374 | Change prototype. |
| 12375 | * linux-low.c (get_stop_pc): Adjust. |
| 12376 | (check_removed_breakpoint): Adjust. |
| 12377 | (linux_wait_for_event): Adjust. |
| 12378 | (linux_resume_one_lwp): Adjust. |
| 12379 | (fetch_register): Add regcache parameter. Adjust. |
| 12380 | (usr_store_inferior_registers): Ditto. |
| 12381 | (regsets_fetch_inferior_registers): Ditto. |
| 12382 | (regsets_store_inferior_registers): Ditto. |
| 12383 | (linux_fetch_registers, linux_store_registers): Ditto. |
| 12384 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a |
| 12385 | regcache. Adjust. |
| 12386 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): |
| 12387 | Ditto. |
| 12388 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
| 12389 | prototype to take a regcache. |
| 12390 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. |
| 12391 | * remote-utils.c (convert_ascii_to_int, outreg) |
| 12392 | (prepare_resume_reply): Change prototype to take a regcache. |
| 12393 | Adjust. |
| 12394 | * target.h (struct target_ops) <fetch_registers, store_registers>: |
| 12395 | Change prototype to take a regcache. |
| 12396 | (fetch_inferior_registers, store_inferior_registers): Change |
| 12397 | prototype to take a regcache. Adjust. |
| 12398 | * proc-service.c (ps_lgetregs): Adjust. |
| 12399 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) |
| 12400 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) |
| 12401 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to |
| 12402 | take a regcache. Adjust. |
| 12403 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) |
| 12404 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) |
| 12405 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): |
| 12406 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. |
| 12407 | * linux-cris-low.c (cris_get_pc, cris_set_pc) |
| 12408 | (cris_cannot_fetch_register): |
| 12409 | (cris_breakpoint_at): Change prototype to take a regcache. |
| 12410 | Adjust. |
| 12411 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, |
| 12412 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype |
| 12413 | to take a regcache. Adjust. |
| 12414 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): |
| 12415 | Adjust. |
| 12416 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to |
| 12417 | take a regcache. Adjust. |
| 12418 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) |
| 12419 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, |
| 12420 | (m68k_set_pc): Change prototype to take a regcache. Adjust. |
| 12421 | * linux-mips-low.c (mips_get_pc): |
| 12422 | (mips_set_pc): Change prototype to take a regcache. Adjust. |
| 12423 | (mips_reinsert_addr): Adjust. |
| 12424 | (mips_collect_register): Change prototype to take a regcache. |
| 12425 | Adjust. |
| 12426 | (mips_supply_register): |
| 12427 | (mips_collect_register_32bit, mips_supply_register_32bit) |
| 12428 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) |
| 12429 | (mips_store_fpregset): Ditto. |
| 12430 | * linux-ppc-low.c (ppc_supply_ptrace_register) |
| 12431 | (ppc_supply_ptrace_register): Ditto. |
| 12432 | (parse_spufs_run): Adjust. |
| 12433 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) |
| 12434 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) |
| 12435 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to |
| 12436 | take a regcache. Adjust. |
| 12437 | * linux-s390-low.c (s390_collect_ptrace_register) |
| 12438 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) |
| 12439 | (s390_set_pc): Change prototype to take a regcache. Adjust. |
| 12440 | (s390_arch_setup): Adjust. |
| 12441 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) |
| 12442 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. |
| 12443 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) |
| 12444 | (sparc_fill_gregset, sparc_store_gregset_from_stack) |
| 12445 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a |
| 12446 | regcache. Adjust. |
| 12447 | (sparc_breakpoint_at): Adjust. |
| 12448 | * linux-xtensa-low.c (xtensa_fill_gregset): |
| 12449 | (xtensa_store_gregset): |
| 12450 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) |
| 12451 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. |
| 12452 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change |
| 12453 | prototype to take a regcache. Adjust. |
| 12454 | * win32-arm-low.c (arm_fetch_inferior_register) |
| 12455 | (arm_store_inferior_register): Change prototype to take a |
| 12456 | regcache. Adjust. |
| 12457 | * win32-i386-low.c (i386_fetch_inferior_register) |
| 12458 | (i386_store_inferior_register): Change prototype to take a |
| 12459 | regcache. Adjust. |
| 12460 | * win32-low.c (child_fetch_inferior_registers) |
| 12461 | (child_store_inferior_registers): Change prototype to take a |
| 12462 | regcache. Adjust. |
| 12463 | (win32_wait): Adjust. |
| 12464 | (win32_fetch_inferior_registers): Change prototype to take a |
| 12465 | regcache. Adjust. |
| 12466 | (win32_store_inferior_registers): Adjust. |
| 12467 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, |
| 12468 | store_inferior_register>: Change prototype to take a regcache. |
| 12469 | |
| 12470 | 2010-01-20 Doug Evans <dje@google.com> |
| 12471 | |
| 12472 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in |
| 12473 | #ifdef. |
| 12474 | (linux_wait_for_event1, linux_init_signals): Ditto. |
| 12475 | (W_STOPCODE): Provide definition if missing. |
| 12476 | |
| 12477 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
| 12478 | |
| 12479 | * linux-low.c (linux_core_of_thread): New. |
| 12480 | (compare_ints, show_process, list_threads): New. |
| 12481 | (linux_qxfer_osdata): Report threads and cores. |
| 12482 | (linux_target_op): Register linux_core_of_thread. |
| 12483 | * remote-utils.c (prepare_resume_reply): Report the core. |
| 12484 | (buffer_xml_printf): Support %d specifier. |
| 12485 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): |
| 12486 | New. |
| 12487 | (handle_query): Handle qXfer:threads. Announce availability |
| 12488 | thereof. |
| 12489 | * target.h (struct target_ops): New field core_of_thread. |
| 12490 | |
| 12491 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
| 12492 | |
| 12493 | * Makefile.in (clean): Remove new generated files. |
| 12494 | (reg-s390.o, reg-s390.c): Remove rules. |
| 12495 | (reg-s390x.o, reg-s390x.c): Likewise. |
| 12496 | (s390-linux32.o, s390-linux32.c): Add rules. |
| 12497 | (s390-linux64.o, s390-linux64.c): Likewise. |
| 12498 | (s390x-linux64.o, s390x-linux64.c): Likewise. |
| 12499 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. |
| 12500 | * linux-s390-low.c: Include <elf.h>. |
| 12501 | (HWCAP_S390_HIGH_GPRS): Define if undefined. |
| 12502 | (init_registers_s390): Remove prototype. |
| 12503 | (init_registers_s390x): Likewise. |
| 12504 | (init_registers_s390_linux32): Add prototype. |
| 12505 | (init_registers_s390_linux64): Likewise. |
| 12506 | (init_registers_s390x_linux64): Likewise. |
| 12507 | (s390_num_regs_3264): New define. |
| 12508 | (s390_regmap_3264): New global variable. |
| 12509 | (s390_cannot_fetch_register): Remove obsolete check. |
| 12510 | (s390_cannot_store_register): Likewise. |
| 12511 | (s390_collect_ptrace_register): Handle upper/lower register halves. |
| 12512 | (s390_supply_ptrace_register): Likewise. |
| 12513 | (s390_fill_gregset): Update to register number changes. |
| 12514 | (s390_get_hwcap): New routine. |
| 12515 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. |
| 12516 | Install appropriate regmap and register set. |
| 12517 | |
| 12518 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
| 12519 | |
| 12520 | * server.c (gdbserver_version): Update copyright year to 2010. |
| 12521 | * gdbreplay.c (gdbreplay_version): Likewise. |
| 12522 | |
| 12523 | 2009-12-28 Doug Evans <dje@google.com> |
| 12524 | |
| 12525 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, |
| 12526 | elf/external.h. Include <elf.h> instead but only if necessary. |
| 12527 | |
| 12528 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
| 12529 | |
| 12530 | * linux-low.c (linux_remove_process): Remove `detaching' |
| 12531 | parameter. Don't release/detach from thread_db here. |
| 12532 | (linux_kill): Release/detach from thread_db here, ... |
| 12533 | (linux_detach): ... and here, before actually detaching. |
| 12534 | (linux_wait_1): ... and here, when a process exits. |
| 12535 | * thread-db.c (any_thread_of): New. |
| 12536 | (thread_db_free): Switch the current inferior to a thread of the |
| 12537 | passed in process. |
| 12538 | |
| 12539 | 2009-12-21 Doug Evans <dje@google.com> |
| 12540 | |
| 12541 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
| 12542 | |
| 12543 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
| 12544 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc |
| 12545 | warning ifndef __NR_tkill. Move setting of errno there too. |
| 12546 | Delete unnecessary resetting of errno after syscall. |
| 12547 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. |
| 12548 | |
| 12549 | * configure.ac: Check for dladdr. |
| 12550 | * config.in: Regenerate. |
| 12551 | * configure: Regenerate. |
| 12552 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. |
| 12553 | (try_thread_db_load): Update. |
| 12554 | |
| 12555 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
| 12556 | |
| 12557 | 2009-12-18 Doug Evans <dje@google.com> |
| 12558 | |
| 12559 | * event-loop.c: Include unistd.h if it exists. |
| 12560 | |
| 12561 | * linux-low.c (my_waitpid): Move definition away from being in |
| 12562 | between linux_tracefork_child/linux_test_for_tracefork. |
| 12563 | |
| 12564 | * gdb_proc_service.h (psaddr_t): Fix type. |
| 12565 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix |
| 12566 | signature to match glibc. |
| 12567 | |
| 12568 | 2009-12-16 Doug Evans <dje@google.com> |
| 12569 | |
| 12570 | * linux-low.c (linux_read_memory): Fix argument to read. |
| 12571 | |
| 12572 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 12573 | |
| 12574 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT |
| 12575 | events, don't leave current_inferior pointing at null. |
| 12576 | |
| 12577 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 12578 | |
| 12579 | * win32-low.c (LOG): Delete. |
| 12580 | (OUTMSG): Output to stderr. |
| 12581 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of |
| 12582 | on compile time LOG macro. |
| 12583 | (win32_wait): Fix debug output. |
| 12584 | |
| 12585 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
| 12586 | |
| 12587 | * win32-low.c (win32_add_one_solib): If the dll name is |
| 12588 | "ntdll.dll", prepend the system directory to the dll path. |
| 12589 | |
| 12590 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 12591 | |
| 12592 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. |
| 12593 | |
| 12594 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
| 12595 | Vladimir Prus <vladimir@codesourcery.com> |
| 12596 | |
| 12597 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. |
| 12598 | * configure.ac: Check for __mcoldfire__ and set |
| 12599 | gdb_cv_m68k_is_coldfire. |
| 12600 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between |
| 12601 | reg-cf.o and reg-m68k.o. |
| 12602 | * configure: Regenerated. |
| 12603 | |
| 12604 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
| 12605 | |
| 12606 | * linux-low.c (linux_remove_process): Add `detaching' parameter. |
| 12607 | Pass it to thread_db_free. |
| 12608 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the |
| 12609 | proper `detaching' argument to linux_remove_process. |
| 12610 | * linux-low.h (thread_db_free): Add `detaching' parameter. |
| 12611 | * thread-db.c (thread_db_init): Pass false as `detaching' argument |
| 12612 | to thread_db_free. |
| 12613 | (thread_db_free): Add `detaching' parameter. Only |
| 12614 | call td_ta_clear_event if detaching from process. |
| 12615 | |
| 12616 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 12617 | |
| 12618 | * thread-db.c (thread_db_free): Fix typo. |
| 12619 | |
| 12620 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 12621 | |
| 12622 | PR gdb/10838 |
| 12623 | * thread-db.c (thread_db_free): Call td_ta_clear_event. |
| 12624 | |
| 12625 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
| 12626 | |
| 12627 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 |
| 12628 | with an i686 compiler. |
| 12629 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if |
| 12630 | needed. |
| 12631 | * configure: Rebuilt. |
| 12632 | |
| 12633 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
| 12634 | |
| 12635 | PR gdb/10783 |
| 12636 | |
| 12637 | * server.c (handle_search_memory_1): Correct read_addr initialization |
| 12638 | in loop for searching subsequent chunks. |
| 12639 | |
| 12640 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 12641 | |
| 12642 | * configure.ac: New --with-libthread-db option. |
| 12643 | * thread-db.c: Allow direct dependence on libthread_db. |
| 12644 | (thread_db_free): Adjust. |
| 12645 | * config.in: Regenerate. |
| 12646 | * configure: Likewise. |
| 12647 | |
| 12648 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 12649 | |
| 12650 | PR gdb/10757 |
| 12651 | * thread-db.c (attach_thread): New function. |
| 12652 | (maybe_attach_thread): Return success/failure. |
| 12653 | (find_new_threads_callback): Adjust. |
| 12654 | (thread_db_find_new_threads): Loop until no new threads. |
| 12655 | |
| 12656 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
| 12657 | |
| 12658 | * proc-service.c (ps_lgetregs): Formatting. |
| 12659 | |
| 12660 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
| 12661 | |
| 12662 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. |
| 12663 | * configure.ac: Adjust. |
| 12664 | * linux-low.h (struct process_info_private): Move members to struct |
| 12665 | thread_db. |
| 12666 | (thread_db_free, thread_db_handle_monitor_command): New prototype. |
| 12667 | * linux-low.c (linux_remove_process): Adjust. |
| 12668 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. |
| 12669 | * server.c (handle_query): Move code ... |
| 12670 | (handle_monitor_command): ... here. New function. |
| 12671 | * target.h (struct target_ops): New member. |
| 12672 | * thread-db.c (struct thread_db): New. |
| 12673 | (libthread_db_search_path): New variable. |
| 12674 | (thread_db_create_event, thread_db_enable_reporting) |
| 12675 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) |
| 12676 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. |
| 12677 | (try_thread_db_load_1, dladdr_to_soname): New functions. |
| 12678 | (try_thread_db_load, thread_db_load_search): New functions. |
| 12679 | (thread_db_init): Search for libthread_db. |
| 12680 | (thread_db_free): New function. |
| 12681 | (thread_db_handle_monitor_command): Likewise. |
| 12682 | * config.in: Regenerate. |
| 12683 | * configure: Regenerate. |
| 12684 | |
| 12685 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 12686 | |
| 12687 | * spu-low.c (spu_kill): Wait for inferior to terminate. |
| 12688 | Call clear_inferiors. |
| 12689 | (spu_detach): Call clear_inferiors. |
| 12690 | |
| 12691 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 12692 | |
| 12693 | * aclocal.m4: Regenerate. |
| 12694 | * config.in: Likewise. |
| 12695 | * configure: Likewise. |
| 12696 | |
| 12697 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 12698 | |
| 12699 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. |
| 12700 | (parse_spufs_run): New function. |
| 12701 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. |
| 12702 | (ppc_breakpoint_at): Handle SPU breakpoints. |
| 12703 | |
| 12704 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 12705 | |
| 12706 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. |
| 12707 | (SPUFS_MAGIC): Define. |
| 12708 | (spu_enumerate_spu_ids): New function. |
| 12709 | (linux_qxfer_spu): New function. |
| 12710 | (linux_target_ops): Install linux_qxfer_spu. |
| 12711 | |
| 12712 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
| 12713 | |
| 12714 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o |
| 12715 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml |
| 12716 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. |
| 12717 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. |
| 12718 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. |
| 12719 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. |
| 12720 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. |
| 12721 | (init_registers_powerpc_cell32l): Add prototype. |
| 12722 | (init_registers_powerpc_cell64l): Likewise. |
| 12723 | (ppc_arch_setup): Detect Cell/B.E. architecture. |
| 12724 | |
| 12725 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 12726 | |
| 12727 | * Makefile.in (datarootdir): New variable. |
| 12728 | |
| 12729 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 12730 | |
| 12731 | * linux-low.c (linux_write_memory): Update debugging output. |
| 12732 | * Makefile.in (clean): Add new descriptions. |
| 12733 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) |
| 12734 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. |
| 12735 | * configure.srv: Add new files for arm*-*-linux*. |
| 12736 | * linux-arm-low.c: Add new declarations. |
| 12737 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. |
| 12738 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) |
| 12739 | (HWCAP_VFPv3D16): New. |
| 12740 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT |
| 12741 | instead of __IWMMXT__. |
| 12742 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) |
| 12743 | (arm_arch_setup): New. |
| 12744 | (target_regsets): Remove #ifdef. Add VFP regset. |
| 12745 | (the_low_target): Use arm_arch_setup. |
| 12746 | |
| 12747 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 12748 | |
| 12749 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip |
| 12750 | the main thread again. |
| 12751 | |
| 12752 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
| 12753 | |
| 12754 | Adding Neutrino gdbserver. |
| 12755 | * configure: Regenerated. |
| 12756 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. |
| 12757 | * configure.srv (i[34567]86-*-nto*): New target. |
| 12758 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. |
| 12759 | * remote-utils.c [__QNX__]: Include sys/iomgr.h |
| 12760 | (nto_comctrl) [__QNX__]: New function. |
| 12761 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. |
| 12762 | |
| 12763 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
| 12764 | |
| 12765 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to |
| 12766 | srv_tgtobj. |
| 12767 | |
| 12768 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
| 12769 | Pedro Alves <pedro@codesourcery.com> |
| 12770 | |
| 12771 | * win32-i386-low.c (i386_get_thread_context): Handle systems that |
| 12772 | don't support CONTEXT_EXTENDED_REGISTERS. |
| 12773 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. |
| 12774 | (the_low_target): Install them. |
| 12775 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent |
| 12776 | failing with ERROR_PIPE_NOT_CONNECTED. |
| 12777 | |
| 12778 | 2009-06-30 Doug Evans <dje@google.com> |
| 12779 | Pierre Muller <muller@ics.u-strasbg.fr> |
| 12780 | |
| 12781 | Add h/w watchpoint support to x86-linux, win32-i386. |
| 12782 | * Makefile.in (SFILES): Add i386-low.c |
| 12783 | (i386_low_h): Define. |
| 12784 | (i386-low.o): Add dependencies. |
| 12785 | (linux-x86-low.o): Add i386-low.h dependency. |
| 12786 | (win32-i386-low.o): Ditto. |
| 12787 | * i386-low.c: New file. |
| 12788 | * i386-low.h: New file. |
| 12789 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. |
| 12790 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. |
| 12791 | * linux-low.c (linux_add_process): Initialize arch_private. |
| 12792 | (linux_remove_process): Free arch_private. |
| 12793 | (add_lwp): Initialize arch_private. |
| 12794 | (delete_lwp): Free arch_private. |
| 12795 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if |
| 12796 | provided. |
| 12797 | * linux-low.h (process_info_private): New member arch_private. |
| 12798 | (lwp_info): New member arch_private. |
| 12799 | (linux_target_ops): New members new_process, new_thread, |
| 12800 | prepare_to_resume. |
| 12801 | (ptid_of): New macro. |
| 12802 | * linux-x86-low.c: Include stddef.h, i386-low.h. |
| 12803 | (arch_process_info): New struct. |
| 12804 | (arch_lwp_info): New struct. |
| 12805 | (x86_linux_dr_get, x86_linux_dr_set): New functions. |
| 12806 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. |
| 12807 | (i386_dr_low_get_status): New function. |
| 12808 | (x86_insert_point, x86_remove_point): New functions. |
| 12809 | (x86_stopped_by_watchpoint): New function. |
| 12810 | (x86_stopped_data_address): New function. |
| 12811 | (x86_linux_new_process, x86_linux_new_thread): New functions. |
| 12812 | (x86_linux_prepare_to_resume): New function. |
| 12813 | (the_low_target): Add entries for insert_point, remove_point, |
| 12814 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, |
| 12815 | prepare_to_resume. |
| 12816 | * server.c (debug_hw_points): New global. |
| 12817 | (monitor_show_help): Document set debug-hw-points. |
| 12818 | (handle_query): Process "set debug-hw-points". |
| 12819 | * server.h (debug_hw_points): Declare. |
| 12820 | (paddress): Declare. |
| 12821 | * utils.c (NUMCELLS, CELLSIZE): New macros. |
| 12822 | (get_sell, xsnprintf, paddress): New functions. |
| 12823 | * win32-arm-low.c (the_low_target): Add entries for insert_point, |
| 12824 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 12825 | * win32-i386-low.c: Include i386-low.h. |
| 12826 | (debug_reg_state): Replaces dr. |
| 12827 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. |
| 12828 | (i386_dr_low_get_status): New function. |
| 12829 | (i386_insert_point, i386_remove_point): New functions. |
| 12830 | (i386_stopped_by_watchpoint): New function. |
| 12831 | (i386_stopped_data_address): New function. |
| 12832 | (i386_initial_stuff): Update. |
| 12833 | (get_thread_context,set_thread_context,i386_thread_added): Update. |
| 12834 | (the_low_target): Add entries for insert_point, |
| 12835 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 12836 | * win32-low.c (win32_insert_watchpoint): New function. |
| 12837 | (win32_remove_watchpoint): New function. |
| 12838 | (win32_stopped_by_watchpoint): New function. |
| 12839 | (win32_stopped_data_address): New function. |
| 12840 | (win32_target_ops): Add entries for insert_watchpoint, |
| 12841 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. |
| 12842 | * win32-low.h (win32_target_ops): New members insert_point, |
| 12843 | remove_point, stopped_by_watchpoint, stopped_data_address. |
| 12844 | |
| 12845 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
| 12846 | |
| 12847 | * server.c (process_serial_event): Re-return unsupported, not |
| 12848 | error, if the type isn't recognized. Re-allow supporting only |
| 12849 | insert or remove packets. Also call require_running for |
| 12850 | breakpoints. Add missing break statement to default case. Tidy. |
| 12851 | * target.h (struct target_ops): Rename insert_watchpoint to |
| 12852 | insert_point, and remove_watchpoint to remove_point. |
| 12853 | |
| 12854 | * linux-low.h (struct linux_target_ops): Likewise. |
| 12855 | * linux-low.c (linux_insert_watchpoint): Rename to ... |
| 12856 | (linux_insert_point): ... this. Adjust. |
| 12857 | (linux_remove_watchpoint): Rename to ... |
| 12858 | (linux_remove_point): ... this. Adjust. |
| 12859 | (linux_target_ops): Adjust. |
| 12860 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... |
| 12861 | (cris_insert_point): ... this. |
| 12862 | (cris_remove_watchpoint): Rename to ... |
| 12863 | (cris_remove_point): ... this. |
| 12864 | (the_low_target): Adjust. |
| 12865 | |
| 12866 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
| 12867 | |
| 12868 | * server.c (handle_v_kill): Pass signal_pid to |
| 12869 | kill_inferior if multi_process is zero. |
| 12870 | |
| 12871 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
| 12872 | |
| 12873 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. |
| 12874 | * target.h (target_ops): Comment for *_watchpoint to make it clear |
| 12875 | the functions can get types '0' and '1'. |
| 12876 | |
| 12877 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
| 12878 | |
| 12879 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. |
| 12880 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. |
| 12881 | * regcache.c (get_regcache): Likewise. |
| 12882 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. |
| 12883 | * win32-low.c (child_fetch_inferior_registers): Remove check for |
| 12884 | regno 0. |
| 12885 | |
| 12886 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
| 12887 | Pedro Alves <pedro@codesourcery.com> |
| 12888 | |
| 12889 | * target.h (struct target_ops) <supports_multi_process>: New |
| 12890 | callback. |
| 12891 | (target_supports_multi_process): New. |
| 12892 | * server.c (handle_query): Even if GDB reports support, only |
| 12893 | enable multi-process if the target also supports it. Report |
| 12894 | multi-process support only if the target backend supports it. |
| 12895 | * linux-low.c (linux_supports_multi_process): New function. |
| 12896 | (linux_target_ops): Install it as target_supports_multi_process |
| 12897 | callback. |
| 12898 | |
| 12899 | 2009-05-24 Doug Evans <dje@google.com> |
| 12900 | |
| 12901 | Global renaming of find_thread_pid to find_thread_ptid. |
| 12902 | * server.h (find_thread_ptid): Renamed from find_thread_pid. |
| 12903 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. |
| 12904 | All callers updated. |
| 12905 | |
| 12906 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
| 12907 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) |
| 12908 | directly. |
| 12909 | |
| 12910 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
| 12911 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. |
| 12912 | (linux_resume_one_lwp): Ditto. |
| 12913 | |
| 12914 | 2009-05-23 Doug Evans <dje@google.com> |
| 12915 | |
| 12916 | * linux-low.c (linux_resume_one_lwp): Change type of first arg |
| 12917 | from struct inferior_list_entry * to struct lwp_info *. |
| 12918 | All callers updated. |
| 12919 | |
| 12920 | 2009-05-13 Doug Evans <dje@google.com> |
| 12921 | |
| 12922 | * linux-x86-low.c: Don't include assert.h. |
| 12923 | (x86_siginfo_fixup): Use fatal, not assert. |
| 12924 | (x86_arch_setup): Fix comment. |
| 12925 | |
| 12926 | 2009-05-12 Doug Evans <dje@google.com> |
| 12927 | |
| 12928 | Biarch support for i386/amd64 gdbserver. |
| 12929 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. |
| 12930 | Add linux-x86-low.c. |
| 12931 | (linux-i386-low.o, linux-x86-64-low.o): Delete. |
| 12932 | (linux-x86-low.o): Add. |
| 12933 | * linux-x86-64-low.c: Delete. |
| 12934 | * linux-i386-low.c: Delete. |
| 12935 | * linux-x86-low.c: New file. |
| 12936 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with |
| 12937 | linux-x86-low.o. |
| 12938 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with |
| 12939 | linux-x86-low.o. |
| 12940 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. |
| 12941 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. |
| 12942 | (linux_child_pid_to_exec_file): New function. |
| 12943 | (elf_64_header_p, elf_64_file_p): New functions. |
| 12944 | (siginfo_fixup): New function. |
| 12945 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to |
| 12946 | give target a chance to convert layout. |
| 12947 | * linux-low.h (linux_target_ops): New member siginfo_fixup. |
| 12948 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. |
| 12949 | |
| 12950 | 2009-05-07 Doug Evans <dje@google.com> |
| 12951 | |
| 12952 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. |
| 12953 | (regsets_store_inferior_registers): Ditto. |
| 12954 | |
| 12955 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
| 12956 | |
| 12957 | PR server/10048 |
| 12958 | |
| 12959 | * linux-low.c (must_set_ptrace_flags): Delete. |
| 12960 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead |
| 12961 | of the global. |
| 12962 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set |
| 12963 | `lwp->must_set_ptrace_flags' instead. |
| 12964 | (linux_wait_for_event_1): Set ptrace options here. |
| 12965 | (linux_wait_1): ... not here. |
| 12966 | |
| 12967 | 2009-04-30 Doug Evans <dje@google.com> |
| 12968 | |
| 12969 | * inferiors.c (started_inferior_callback): New function. |
| 12970 | (attached_inferior_callback): New function. |
| 12971 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. |
| 12972 | * server.c (print_started_pid, print_attached_pid): New functions. |
| 12973 | (detach_or_kill_for_exit): New function. |
| 12974 | (main): Call it instead of for_each_inferior (kill_inferior_callback). |
| 12975 | * server.h (have_started_inferiors_p): Declare. |
| 12976 | (have_attached_inferiors_p): Declare. |
| 12977 | |
| 12978 | * inferiors.c (remove_process): Fix memory leak, free process. |
| 12979 | * linux-low.c (linux_remove_process): New function. |
| 12980 | (linux_kill): Call it instead of remove_process. |
| 12981 | (linux_detach, linux_wait_1): Ditto. |
| 12982 | |
| 12983 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
| 12984 | |
| 12985 | * configure.srv: Add x86 Windows CE target. |
| 12986 | |
| 12987 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 12988 | |
| 12989 | * inferiors.c (get_thread_process): Make global. |
| 12990 | * server.h (get_thread_process): Add prototype. |
| 12991 | * thread-db.c (find_one_thread): Use get_thread_process |
| 12992 | instead of current_process. |
| 12993 | (thread_db_get_tls_address): Do not crash if called when |
| 12994 | thread layer is not yet initialized. |
| 12995 | |
| 12996 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 12997 | |
| 12998 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. |
| 12999 | * spu-low.c (current_tid): Rename to ... |
| 13000 | (current_ptid): ... this. |
| 13001 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, |
| 13002 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use |
| 13003 | ptid_get_lwp (current_ptid) instead of current_tid. |
| 13004 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument |
| 13005 | instead of current_tid. Use find_process_pid to verify pid |
| 13006 | argument is valid. Pass proper argument to remove_process. |
| 13007 | (spu_thread_alive): Compare current_ptid instead of current_tid. |
| 13008 | (spu_resume): Likewise. |
| 13009 | |
| 13010 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
| 13011 | |
| 13012 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' |
| 13013 | variable. |
| 13014 | |
| 13015 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 13016 | |
| 13017 | Implement the multiprocess extensions, and add linux multiprocess |
| 13018 | support. |
| 13019 | |
| 13020 | * server.h (ULONGEST): Declare. |
| 13021 | (struct ptid, ptid_t): New. |
| 13022 | (minus_one_ptid, null_ptid): Declare. |
| 13023 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) |
| 13024 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. |
| 13025 | (struct inferior_list_entry): Change `id' type from unsigned from |
| 13026 | to ptid_t. |
| 13027 | (struct sym_cache, struct breakpoint, struct |
| 13028 | process_info_private): Forward declare. |
| 13029 | (struct process_info): Declare. |
| 13030 | (current_process): Declare. |
| 13031 | (all_processes): Declare. |
| 13032 | (initialize_inferiors): Declare. |
| 13033 | (add_thread): Adjust to use ptid_t. |
| 13034 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. |
| 13035 | (add_process, remove_process, find_thread_pid): Declare. |
| 13036 | (find_inferior_id): Adjust to use ptid_t. |
| 13037 | (cont_thread, general_thread, step_thread): Change type to ptid_t. |
| 13038 | (multi_process): Declare. |
| 13039 | (push_event): Adjust to use ptid_t. |
| 13040 | (read_ptid, write_ptid): Declare. |
| 13041 | (prepare_resume_reply): Adjust to use ptid_t. |
| 13042 | (clear_symbol_cache): Declare. |
| 13043 | * inferiors.c (all_processes): New. |
| 13044 | (null_ptid, minus_one_ptid): New. |
| 13045 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) |
| 13046 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. |
| 13047 | (add_thread): Change unsigned long to ptid. Remove gdb_id |
| 13048 | parameter. Adjust. |
| 13049 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. |
| 13050 | (gdb_id_to_thread): Rename to ... |
| 13051 | (find_thread_pid): ... this. Change unsigned long to ptid. |
| 13052 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. |
| 13053 | (loaded_dll, pull_pid_from_list): Adjust. |
| 13054 | (add_process, remove_process, find_process_pid) |
| 13055 | (get_thread_process, current_process, initialize_inferiors): New. |
| 13056 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. |
| 13057 | (struct target_waitstatus) <related_pid>: Ditto. |
| 13058 | (struct target_ops) <kill, detach>: Add `pid' argument. Change |
| 13059 | return type to int. |
| 13060 | (struct target_ops) <join>: Add `pid' argument. |
| 13061 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. |
| 13062 | (struct target_ops) <wait>: Add `ptid' field. Change return type |
| 13063 | to ptid. |
| 13064 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. |
| 13065 | (mywait): Add `ptid' argument. Change return type to ptid_t. |
| 13066 | (target_pid_to_str): Declare. |
| 13067 | * target.c (set_desired_inferior): Adjust to use ptids. |
| 13068 | (mywait): Add new `ptid' argument. Adjust. |
| 13069 | (target_pid_to_str): New. |
| 13070 | * mem-break.h (free_all_breakpoints): Declare. |
| 13071 | * mem-break.c (breakpoints): Delelete. |
| 13072 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) |
| 13073 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust |
| 13074 | to use per-process breakpoint list. |
| 13075 | (free_all_breakpoints): New. |
| 13076 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. |
| 13077 | (symbol_cache, all_symbols_looked_up): Delete. |
| 13078 | (hexchars): New. |
| 13079 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, |
| 13080 | read_ptid): New. |
| 13081 | (prepare_resume_reply): Change ptid argument's type from unsigned |
| 13082 | long to ptid_t. Adjust. Implement W;process and X;process. |
| 13083 | (free_sym_cache, clear_symbol_cache): New. |
| 13084 | (look_up_one_symbol): Adjust to per-process symbol cache. * |
| 13085 | * server.c (cont_thread, general_thread, step_thread): Change type |
| 13086 | to ptid_t. |
| 13087 | (attached): Delete. |
| 13088 | (multi_process): New. |
| 13089 | (last_ptid): Change type to ptid_t. |
| 13090 | (struct vstop_notif) <ptid>: Change type to ptid_t. |
| 13091 | (queue_stop_reply, push_event): Change `ptid' argument's type to |
| 13092 | ptid_t. |
| 13093 | (discard_queued_stop_replies): Add `pid' argument. |
| 13094 | (start_inferior): Adjust to use ptids. Adjust to mywait interface |
| 13095 | changes. Don't reference the `attached' global. |
| 13096 | (attach_inferior): Adjust to mywait interface changes. |
| 13097 | (handle_query): Adjust to use ptids. Parse GDB's qSupported |
| 13098 | features. Handle and report "multiprocess+". Handle |
| 13099 | "qAttached:PID". |
| 13100 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface |
| 13101 | changes. |
| 13102 | (handle_v_kill): New. |
| 13103 | (handle_v_stopped): Adjust to use target_pid_to_str. |
| 13104 | (handle_v_requests): Allow multiple attaches and runs when |
| 13105 | multiprocess extensions are in effect. Handle "vKill". |
| 13106 | (myresume): Adjust to use ptids. |
| 13107 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. |
| 13108 | (handle_status): Adjust to discard_queued_stop_replies interface |
| 13109 | change. |
| 13110 | (first_thread_of, kill_inferior_callback) |
| 13111 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. |
| 13112 | (main): Call initialize_inferiors. Adjust to use ptids, killing |
| 13113 | and detaching from all inferiors. Handle multiprocess packet |
| 13114 | variants. |
| 13115 | * linux-low.h: Include gdb_proc_service.h. |
| 13116 | (struct process_info_private): New. |
| 13117 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. |
| 13118 | <lwpid_of>: Use ptid_get_lwp. |
| 13119 | (get_lwp_thread): Adjust. |
| 13120 | (struct lwp_info): Add `dead' member. |
| 13121 | (find_lwp_pid): Declare. |
| 13122 | * linux-low.c (thread_db_active): Delete. |
| 13123 | (new_inferior): Adjust comment. |
| 13124 | (inferior_pid): Delete. |
| 13125 | (linux_add_process): New. |
| 13126 | (handle_extended_wait): Adjust. |
| 13127 | (add_lwp): Change unsigned long to ptid. |
| 13128 | (linux_create_inferior): Add process to processes table. Adjust |
| 13129 | to use ptids. Don't set new_inferior here. |
| 13130 | (linux_attach_lwp): Rename to ... |
| 13131 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle |
| 13132 | it. Adjust to use ptids. |
| 13133 | (linux_attach_lwp): New. |
| 13134 | (linux_attach): Add process to processes table. Don't set |
| 13135 | new_inferior here. |
| 13136 | (struct counter): New. |
| 13137 | (second_thread_of_pid_p, last_thread_of_process_p): New. |
| 13138 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to |
| 13139 | multiple processes. |
| 13140 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple |
| 13141 | processes. Remove process from process table. |
| 13142 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust |
| 13143 | to multiple processes. |
| 13144 | (any_thread_of): New. |
| 13145 | (linux_detach): Add `pid' argument, and handle it. Remove process |
| 13146 | from processes table. |
| 13147 | (linux_join): Add `pid' argument. Handle it. |
| 13148 | (linux_thread_alive): Change unsighed long argument to ptid_t. |
| 13149 | Consider dead lwps as not being alive. |
| 13150 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out |
| 13151 | threads we're not interested in. |
| 13152 | (same_lwp, find_lwp_pid): New. |
| 13153 | (linux_wait_for_lwp): Change `pid' argument's type from int to |
| 13154 | ptid_t. Adjust. |
| 13155 | (linux_wait_for_event): Rename to ... |
| 13156 | (linux_wait_for_event_1): ... this. Change `pid' argument's type |
| 13157 | from int to ptid_t. Adjust. |
| 13158 | (linux_wait_for_event): New. |
| 13159 | (linux_wait_1): Add `ptid' argument. Change return type to |
| 13160 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes |
| 13161 | that exit from the process table. |
| 13162 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. |
| 13163 | Adjust. |
| 13164 | (mark_lwp_dead): New. |
| 13165 | (wait_for_sigstop): Adjust to use ptids. If a process exits while |
| 13166 | stopping all threads, mark its main lwp as dead. |
| 13167 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use |
| 13168 | ptids. |
| 13169 | (fetch_register, usr_store_inferior_registers) |
| 13170 | (regsets_fetch_inferior_registers) |
| 13171 | (regsets_store_inferior_registers, linux_read_memory) |
| 13172 | (linux_write_memory): Inline `inferior_pid'. |
| 13173 | (linux_look_up_symbols): Adjust to use per-process |
| 13174 | `thread_db_active'. |
| 13175 | (linux_request_interrupt): Adjust to use ptids. |
| 13176 | (linux_read_auxv): Inline `inferior_pid'. |
| 13177 | (initialize_low): Don't reference thread_db_active. |
| 13178 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. |
| 13179 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. |
| 13180 | (ps_getpid): Return the pid of the current inferior. |
| 13181 | * thread-db.c (proc_handle, thread_agent): Delete. |
| 13182 | (thread_db_create_event, thread_db_enable_reporting): Adjust to |
| 13183 | per-process data. |
| 13184 | (find_one_thread): Change argument type to ptid_t. Adjust to |
| 13185 | per-process data. |
| 13186 | (maybe_attach_thread): Adjust to per-process data and ptids. |
| 13187 | (thread_db_find_new_threads): Ditto. |
| 13188 | (thread_db_init): Ditto. |
| 13189 | * spu-low.c (spu_create_inferior, spu_attach): Add process to |
| 13190 | processes table. Adjust to use ptids. |
| 13191 | (spu_kill, spu_detach): Adjust interface. Remove process from |
| 13192 | processes table. |
| 13193 | (spu_join, spu_thread_alive): Adjust interface. |
| 13194 | (spu_wait): Adjust interface. Remove process from processes |
| 13195 | table. Adjust to use ptids. |
| 13196 | * win32-low.c (current_inferior_tid): Delete. |
| 13197 | (current_inferior_ptid): New. |
| 13198 | (debug_event_ptid): New. |
| 13199 | (thread_rec): Take a ptid. Adjust. |
| 13200 | (child_add_thread): Add `pid' argument. Adjust to use ptids. |
| 13201 | (child_delete_thread): Ditto. |
| 13202 | (do_initial_child_stuff): Add `attached' argument. Add process to |
| 13203 | processes table. |
| 13204 | (child_fetch_inferior_registers, child_store_inferior_registers): |
| 13205 | Adjust. |
| 13206 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. |
| 13207 | (win32_attach): Pass 1 to do_initial_child_stuff. |
| 13208 | (win32_kill): Adjust interface. Remove process from processes |
| 13209 | table. |
| 13210 | (win32_detach): Ditto. |
| 13211 | (win32_join): Adjust interface. |
| 13212 | (win32_thread_alive): Take a ptid. |
| 13213 | (win32_resume): Adjust to use ptids. |
| 13214 | (get_child_debug_event): Ditto. |
| 13215 | (win32_wait): Adjust interface. Remove exiting process from |
| 13216 | processes table. |
| 13217 | |
| 13218 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 13219 | |
| 13220 | Non-stop mode support. |
| 13221 | |
| 13222 | * server.h (non_stop): Declare. |
| 13223 | (gdb_client_data, handler_func): Declare. |
| 13224 | (delete_file_handler, add_file_handler, start_event_loop): |
| 13225 | Declare. |
| 13226 | (handle_serial_event, handle_target_event, push_event) |
| 13227 | (putpkt_notif): Declare. |
| 13228 | * target.h (enum resume_kind): New. |
| 13229 | (struct thread_resume): Replace `step' field by `kind' field. |
| 13230 | (TARGET_WNOHANG): Define. |
| 13231 | (struct target_ops) <wait>: Add `options' argument. |
| 13232 | <supports_non_stop, async, start_non_stop>: New fields. |
| 13233 | (target_supports_non_stop, target_async): New. |
| 13234 | (start_non_stop): Declare. |
| 13235 | (mywait): Add `options' argument. |
| 13236 | * target.c (mywait): Add `options' argument. Print child exit |
| 13237 | notifications here. |
| 13238 | (start_non_stop): New. |
| 13239 | * server.c (non_stop, own_buf, mem_buf): New globals. |
| 13240 | (struct vstop_notif): New. |
| 13241 | (notif_queue): New global. |
| 13242 | (queue_stop_reply, push_event, discard_queued_stop_replies) |
| 13243 | (send_next_stop_reply): New. |
| 13244 | (start_inferior): Adjust to use resume_kind. Adjust to mywait |
| 13245 | interface changes. |
| 13246 | (attach_inferior): In non-stop mode, don't wait for the target |
| 13247 | here. |
| 13248 | (handle_general_set): Handle QNonStop. |
| 13249 | (handle_query): When handling qC, return the current general |
| 13250 | thread, instead of the first thread of the list. |
| 13251 | (handle_query): If the backend supports non-stop mode, include |
| 13252 | QNonStop+ in the qSupported query response. |
| 13253 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop |
| 13254 | and non-stop mode. |
| 13255 | (handle_v_attach, handle_v_run): Handle non-stop mode. |
| 13256 | (handle_v_stopped): New. |
| 13257 | (handle_v_requests): Report support for vCont;t. Handle vStopped. |
| 13258 | (myresume): Adjust to use resume_kind. Handle non-stop. |
| 13259 | (queue_stop_reply_callback): New. |
| 13260 | (handle_status): Handle non-stop mode. |
| 13261 | (main): Clear non_stop flag on reconnection. Use the event-loop. |
| 13262 | Refactor serial protocol handling from here ... |
| 13263 | (process_serial_event): ... to this new function. When GDB |
| 13264 | selects any thread, select one here. In non-stop mode, wait until |
| 13265 | GDB acks all pending events before exiting. |
| 13266 | (handle_serial_event, handle_target_event): New. |
| 13267 | * remote-utils.c (remote_open): Install remote_desc in the event |
| 13268 | loop. |
| 13269 | (remote_close): Remove remote_desc from the event loop. |
| 13270 | (putpkt_binary): Rename to... |
| 13271 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. |
| 13272 | (putpkt_binary): New as wrapper around putpkt_binary_1. |
| 13273 | (putpkt_notif): New. |
| 13274 | (prepare_resume_reply): In non-stop mode, don't change the |
| 13275 | general_thread. |
| 13276 | * event-loop.c: New. |
| 13277 | * Makefile.in (OBJ): Add event-loop.o. |
| 13278 | (event-loop.o): New rule. |
| 13279 | |
| 13280 | * linux-low.h (pid_of): Moved here. |
| 13281 | (lwpid_of): New. |
| 13282 | (get_lwp_thread): Use lwpid_of. |
| 13283 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. |
| 13284 | * linux-low.c (pid_of): Delete. |
| 13285 | (inferior_pid): Use lwpid_of. |
| 13286 | (linux_event_pipe): New. |
| 13287 | (target_is_async_p): New. |
| 13288 | (delete_lwp): New. |
| 13289 | (handle_extended_wait): Use lwpid_of. |
| 13290 | (add_lwp): Don't set lwpid field. |
| 13291 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. |
| 13292 | (linux_kill_one_lwp): If killing a running lwp, stop it first. |
| 13293 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. |
| 13294 | (linux_detach_one_lwp): If detaching from a running lwp, stop it |
| 13295 | first. Adjust to linux_wait_for_event interface changes. Use |
| 13296 | lwpid_of. |
| 13297 | (linux_detach): Don't delete the main lwp here. |
| 13298 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. |
| 13299 | (status_pending_p): Don't consider explicitly suspended lwps. |
| 13300 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info |
| 13301 | pointer. Add OPTIONS argument. Change return type to int. Use |
| 13302 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. |
| 13303 | (linux_wait_for_event): Take an integer pid instead of a lwp_info |
| 13304 | pointer. Add status pointer argument. Return a pid instead of a |
| 13305 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface |
| 13306 | changes. In non-stop mode, don't switch to a random thread. |
| 13307 | (linux_wait): Rename to... |
| 13308 | (linux_wait_1): ... this. Add target_options argument, and handle |
| 13309 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, |
| 13310 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge |
| 13311 | clean exit and signal exit code. Don't stop all threads in |
| 13312 | non-stop mode. In all-stop mode, only stop all threads when |
| 13313 | reporting a stop to GDB. Handle explicit thread stop requests. |
| 13314 | (async_file_flush, async_file_mark): New. |
| 13315 | (linux_wait): New. |
| 13316 | (send_sigstop): Use lwpid_of. |
| 13317 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event |
| 13318 | interface changes. In non-stop mode, don't switch to a random |
| 13319 | thread. |
| 13320 | (linux_resume_one_lwp): Use lwpid_of. |
| 13321 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... |
| 13322 | (linux_resume_one_thread): ... this. Handle resume_stop. In |
| 13323 | non-stop mode, don't look for pending flag in all threads. |
| 13324 | (resume_status_pending_p): Don't consider explicitly suspended |
| 13325 | threads. |
| 13326 | (my_waitpid): Reimplement. Emulate __WALL. |
| 13327 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): |
| 13328 | Use lwpid_of. |
| 13329 | (sigchld_handler, linux_supports_non_stop, linux_async) |
| 13330 | (linux_start_non_stop): New. |
| 13331 | (linux_target_ops): Register linux_supports_non_stop, linux_async |
| 13332 | and linux_start_non_stop. |
| 13333 | (initialize_low): Install SIGCHLD handler. |
| 13334 | * thread-db.c (thread_db_create_event, find_one_thread) |
| 13335 | (thread_db_get_tls_address): Use lwpid_of. |
| 13336 | * win32-low.c (win32_detach): Adjust to use resume_kind. |
| 13337 | (win32_wait): Add `options' argument. |
| 13338 | * spu-low.c (spu_resume): Adjust to use resume_kind. |
| 13339 | (spu_wait): Add `options' argument. |
| 13340 | |
| 13341 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 13342 | |
| 13343 | Decouple target code from remote protocol. |
| 13344 | |
| 13345 | * target.h (enum target_waitkind): New. |
| 13346 | (struct target_waitstatus): New. |
| 13347 | (struct target_ops) <wait>: Return an unsigned long. Take a |
| 13348 | target_waitstatus pointer instead of a char pointer. |
| 13349 | (mywait): Likewise. |
| 13350 | * target.c (mywait): Change prototype to return an unsigned long. |
| 13351 | Take a target_waitstatus pointer instead of a char pointer. Adjust. |
| 13352 | * server.h (thread_from_wait, old_thread_from_wait): Delete |
| 13353 | declarations. |
| 13354 | (prepare_resume_reply): Change prototype to take a |
| 13355 | target_waitstatus. |
| 13356 | * server.c (thread_from_wait, old_thread_from_wait): Delete. |
| 13357 | (last_status, last_ptid): New. |
| 13358 | (start_inferior): Remove "statusptr" argument. Adjust. Return a |
| 13359 | pid instead of a signal. |
| 13360 | (attach_inferior): Remove "status" and "signal" parameters. |
| 13361 | Adjust. |
| 13362 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, |
| 13363 | not as an address. |
| 13364 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) |
| 13365 | (handle_v_requests, myresume): Remove "status" and "signal" |
| 13366 | parameters. Adjust. |
| 13367 | (handle_status): New. |
| 13368 | (main): Delete local `status'. Adjust. |
| 13369 | * remote-utils.c: Include target.h. |
| 13370 | (prepare_resume_reply): Change prototype to take a |
| 13371 | target_waitstatus. Adjust. |
| 13372 | |
| 13373 | * linux-low.c (linux_wait): Adjust to new target_ops->wait |
| 13374 | interface. |
| 13375 | * spu-low.c (spu_wait): Adjust. |
| 13376 | * win32-low.c (enum target_waitkind, struct target_waitstatus): |
| 13377 | Delete. |
| 13378 | (win32_wait): Adjust. |
| 13379 | |
| 13380 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 13381 | |
| 13382 | * target.h (struct thread_resume): Delete leave_stopped member. |
| 13383 | (struct target_ops): Add a `n' argument to the `resume' callback. |
| 13384 | * server.c (start_inferior): Adjust. |
| 13385 | (handle_v_cont, myresume): Adjust. |
| 13386 | * linux-low.c (check_removed_breakpoint): Adjust to resume |
| 13387 | interface change, and to removed leave_stopped field. |
| 13388 | (resume_ptr): Delete. |
| 13389 | (struct thread_resume_array): New. |
| 13390 | (linux_set_resume_request): Add new `arg' parameter. Adjust to |
| 13391 | resume interface change. |
| 13392 | (linux_continue_one_thread, linux_queue_one_thread) |
| 13393 | (resume_status_pending_p): Check if the resume field is NULL |
| 13394 | instead of checking the leave_stopped member. |
| 13395 | (linux_resume): Adjust to the target resume interface change. |
| 13396 | * spu-low.c (spu_resume): Adjust to the target resume interface |
| 13397 | change. |
| 13398 | * win32-low.c (win32_detach, win32_resume): Ditto. |
| 13399 | |
| 13400 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
| 13401 | |
| 13402 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' |
| 13403 | flag. |
| 13404 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP |
| 13405 | pending. |
| 13406 | (linux_continue_one_thread): Only preserve the stepping flag if |
| 13407 | there's a pending breakpoint. |
| 13408 | |
| 13409 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
| 13410 | |
| 13411 | * server.c (main): After the inferior having exited, call |
| 13412 | remote_close before exiting gdbserver. |
| 13413 | |
| 13414 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 13415 | |
| 13416 | Fix size of FPSCR in Power 7 processors. |
| 13417 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. |
| 13418 | (PPC_FEATURE_HAS_DFP): New #define. |
| 13419 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on |
| 13420 | size of the FPSCR. |
| 13421 | |
| 13422 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
| 13423 | |
| 13424 | * server.c (handle_query) Whitespace and formatting. |
| 13425 | |
| 13426 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 13427 | |
| 13428 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, |
| 13429 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, |
| 13430 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, |
| 13431 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, |
| 13432 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, |
| 13433 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, |
| 13434 | Makefile.in, configure.ac: Fix whitespace throughout. |
| 13435 | * configure: Regenerate. |
| 13436 | |
| 13437 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 13438 | |
| 13439 | * inferiors.c (find_inferior): Make it safe for the callback |
| 13440 | function to delete the currently iterated inferior. |
| 13441 | |
| 13442 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
| 13443 | |
| 13444 | * Makefile.in (linuw_low_h): Move higher. |
| 13445 | (thread-db.o): Depend on $(linux_low_h). |
| 13446 | |
| 13447 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
| 13448 | |
| 13449 | Rename "process" to "lwp" throughout. |
| 13450 | |
| 13451 | * linux-low.c (all_processes): Rename to... |
| 13452 | (all_lwps): ... this. |
| 13453 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. |
| 13454 | (add_process): Rename to ... |
| 13455 | (add_lwp): ... this. Adjust. |
| 13456 | (linux_create_inferior): Adjust. |
| 13457 | (linux_attach_lwp): Adjust. |
| 13458 | (linux_attach): Adjust. |
| 13459 | (linux_kill_one_process): Rename to ... |
| 13460 | (linux_kill_one_lwp): ... this. Adjust. |
| 13461 | (linux_kill): Adjust. |
| 13462 | (linux_detach_one_process): Rename to ... |
| 13463 | (linux_detach_one_lwp): ... this. Adjust. |
| 13464 | (linux_detach): Adjust. |
| 13465 | (check_removed_breakpoint): Adjust. |
| 13466 | (status_pending_p): Adjust. |
| 13467 | (linux_wait_for_process): Rename to ... |
| 13468 | (linux_wait_for_lwp): ... this. Adjust. |
| 13469 | (linux_wait_for_event): Adjust. |
| 13470 | (send_sigstop): Adjust. |
| 13471 | (wait_for_sigstop): Adjust. |
| 13472 | (stop_all_processes): Rename to ... |
| 13473 | (stop_all_lwps): ... this. |
| 13474 | (linux_resume_one_process): Rename to ... |
| 13475 | (linux_resume_one_lwp): ... this. Adjust. |
| 13476 | (linux_set_resume_request, linux_continue_one_thread) |
| 13477 | (linux_queue_one_thread, resume_status_pending_p) |
| 13478 | (usr_store_inferior_registers, regsets_store_inferior_registers) |
| 13479 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): |
| 13480 | Adjust. |
| 13481 | * linux-low.h (get_process): Rename to ... |
| 13482 | (get_lwp): ... this. Adjust. |
| 13483 | (get_thread_process): Rename to ... |
| 13484 | (get_thread_lwp): ... this. Adjust. |
| 13485 | (get_process_thread): Rename to ... |
| 13486 | (get_lwp_thread): ... this. Adjust. |
| 13487 | (struct process_info): Rename to ... |
| 13488 | (struct lwp_info): ... this. |
| 13489 | (all_processes): Rename to ... |
| 13490 | (all_lwps): ... this. |
| 13491 | * proc-service.c (ps_lgetregs): Adjust. |
| 13492 | * thread-db.c (thread_db_create_event, find_one_thread) |
| 13493 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. |
| 13494 | |
| 13495 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
| 13496 | |
| 13497 | * server.c (handle_query): Handle "qAttached". |
| 13498 | |
| 13499 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
| 13500 | |
| 13501 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to |
| 13502 | GPLv3, update license URL. |
| 13503 | |
| 13504 | 2009-03-01 Doug Evans <dje@google.com> |
| 13505 | |
| 13506 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
| 13507 | (server_h): Add gdb_signals.h. |
| 13508 | (signals.o): Update. |
| 13509 | * server.h (target_signal_from_host,target_signal_to_host_p) |
| 13510 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. |
| 13511 | |
| 13512 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
| 13513 | |
| 13514 | * remote-utils.c (getpkt): Also generate remote-debug |
| 13515 | information if noack_mode is set. |
| 13516 | |
| 13517 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
| 13518 | |
| 13519 | * server.c (handle_query): Report qXfer:siginfo:read and |
| 13520 | qXfer:siginfo:write as supported and handle them. |
| 13521 | * target.h (struct target_ops) <qxfer_siginfo>: New field. |
| 13522 | * linux-low.c (linux_xfer_siginfo): New. |
| 13523 | (linux_target_ops): Set it. |
| 13524 | |
| 13525 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
| 13526 | |
| 13527 | * server.c (gdbserver_usage): Mention --remote-debug. |
| 13528 | (main): Accept '--remote-debug' switch. |
| 13529 | |
| 13530 | 2009-01-18 Doug Evans <dje@google.com> |
| 13531 | |
| 13532 | * regcache.c (new_register_cache): No need to check result of xcalloc. |
| 13533 | * server.c (handle_search_memory): Back out calls to xmalloc, |
| 13534 | result is checked and error is returned to user upon failure. |
| 13535 | (handle_query): Ditto. Add more checks for result of malloc. |
| 13536 | (handle_v_cont): Check result of malloc, report error back to |
| 13537 | user upon failure. |
| 13538 | (handle_v_run): Ditto. Call freeargv. |
| 13539 | * server.h (freeargv): Declare. |
| 13540 | * utils.c (freeargv): New fn. |
| 13541 | |
| 13542 | 2009-01-15 Doug Evans <dje@google.com> |
| 13543 | |
| 13544 | * gdbreplay.c (perror_with_name): Make arg const char *. |
| 13545 | * server.h (target_signal_to_name): Make return type const char *. |
| 13546 | * thread-db.c (thread_db_err_str): Make return type const char *. |
| 13547 | * utils.c (perror_with_name): Make arg const char *. |
| 13548 | |
| 13549 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
| 13550 | |
| 13551 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE |
| 13552 | when handling a EXIT_PROCESS_DEBUG_EVENT. |
| 13553 | |
| 13554 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
| 13555 | |
| 13556 | * gdbreplay.c (gdbreplay_version): Update copyright year. |
| 13557 | * server.c (gdbserver_version): Likewise. |
| 13558 | |
| 13559 | 2009-01-05 Doug Evans <dje@google.com> |
| 13560 | |
| 13561 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. |
| 13562 | (handle_extended_wait): Improve comment. |
| 13563 | |
| 13564 | 2008-12-13 Doug Evans <dje@google.com> |
| 13565 | |
| 13566 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. |
| 13567 | * server.h (ATTR_MALLOC): New macro. |
| 13568 | (xmalloc,xcalloc,xstrdup): Declare. |
| 13569 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. |
| 13570 | * inferiors.c: Ditto. |
| 13571 | * linux-low.c: Ditto. |
| 13572 | * mem-break.c: Ditto. |
| 13573 | * regcache.c: Ditto. |
| 13574 | * remote-utils.c: Ditto. |
| 13575 | * server.c: Ditto. |
| 13576 | * target.c: Ditto. |
| 13577 | * win32-low.c: Ditto. |
| 13578 | |
| 13579 | 2008-12-12 Doug Evans <dje@google.com> |
| 13580 | |
| 13581 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
| 13582 | in debugging printf. |
| 13583 | |
| 13584 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
| 13585 | |
| 13586 | 2008-12-09 Doug Evans <dje@google.com> |
| 13587 | |
| 13588 | * linux-low.h (struct process_info): Delete member tid, unused. |
| 13589 | * thread-db.c (find_one_thread): Update. |
| 13590 | (maybe_attach_thread): Update. |
| 13591 | |
| 13592 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
| 13593 | |
| 13594 | * target.h (struct target_ops): Add qxfer_osdata member. |
| 13595 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h |
| 13596 | and dirent.h. |
| 13597 | (linux_qxfer_osdata): New functions. |
| 13598 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata |
| 13599 | callback. |
| 13600 | * server.c (handle_query): Handle "qXfer:osdata:read:". |
| 13601 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) |
| 13602 | (buffer_xml_printf): New functions. |
| 13603 | * server.h (struct buffer): New. |
| 13604 | (buffer_grow_str, buffer_grow_str0): New macros. |
| 13605 | (buffer_grow, buffer_free, buffer_init, buffer_finish) |
| 13606 | (buffer_xml_printf): Declare. |
| 13607 | |
| 13608 | 2008-11-24 Doug Evans <dje@google.com> |
| 13609 | |
| 13610 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. |
| 13611 | |
| 13612 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 13613 | |
| 13614 | * server.c (handle_v_run): Always use the supplied argument list. |
| 13615 | |
| 13616 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
| 13617 | |
| 13618 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
| 13619 | (xtensa_regmap_table): Add entry for scompare1. |
| 13620 | |
| 13621 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
| 13622 | |
| 13623 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, |
| 13624 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, |
| 13625 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, |
| 13626 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, |
| 13627 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, |
| 13628 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. |
| 13629 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and |
| 13630 | XML target descriptions. |
| 13631 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR |
| 13632 | when inferior is running on an ISA 2.05 or later processor. Add |
| 13633 | special case to return offset for full 64-bit slot of FPSCR when |
| 13634 | in 32-bits. |
| 13635 | |
| 13636 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
| 13637 | |
| 13638 | * Makefile.in (SFILES, clean): Added sparc64 files. |
| 13639 | (reg-sparc64.o, reg-sparc64.c): New. |
| 13640 | * configure.srv (sparc*-*-linux*): New configuration. |
| 13641 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace |
| 13642 | syscall arguments for SPARC. |
| 13643 | (regsets_store_inferior_registers): Likewise. |
| 13644 | * linux-sparc-low.c: New file. |
| 13645 | |
| 13646 | 2008-10-21 Doug Evans <dje@google.com> |
| 13647 | |
| 13648 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. |
| 13649 | (READLINE_DIR,READLINE_DEP): Delete. |
| 13650 | (INTERNAL_CFLAGS): Update. |
| 13651 | (LINTFLAGS): Update. |
| 13652 | |
| 13653 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
| 13654 | |
| 13655 | * server.c (handle_v_run): If GDB didn't specify an argv, use the |
| 13656 | whole argv from the last run, not just argv[0]. |
| 13657 | |
| 13658 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
| 13659 | |
| 13660 | * regcache.c (new_register_cache): Return NULL if the register |
| 13661 | cache size isn't known yet. |
| 13662 | (free_register_cache): Avoid dereferencing a NULL regcache. |
| 13663 | |
| 13664 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 13665 | |
| 13666 | * configure.srv: Merge MIPS and MIPS64. |
| 13667 | |
| 13668 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
| 13669 | |
| 13670 | * Makefile.in (uninstall): Apply $(EXEEXT) too. |
| 13671 | |
| 13672 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
| 13673 | |
| 13674 | * Makefile.in: Add required vsx dependencies. |
| 13675 | |
| 13676 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. |
| 13677 | Declare init_registers_powerpc_vsx32l. |
| 13678 | Declare init_registers_powerpc_vsx64l. |
| 13679 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. |
| 13680 | (ppc_arch_setup): Check for VSX in hwcap. |
| 13681 | (ppc_fill_vsxregset): New function. |
| 13682 | (ppc_store_vsxregset): New function. |
| 13683 | Add new VSX entry in regset_info target_regsets. |
| 13684 | |
| 13685 | * configure.srv: Add new VSX dependencies. |
| 13686 | |
| 13687 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
| 13688 | |
| 13689 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. |
| 13690 | (remote_open): Set or clear transport_is_reliable. |
| 13691 | (putpkt_binary): Don't expect acks in noack mode. |
| 13692 | (getpkt): Don't send ack/nac in noack mode. |
| 13693 | * server.c (handle_general_set): Handle QStartNoAckMode. |
| 13694 | (handle_query): If connected by tcp pass QStartNoAckMode+ in |
| 13695 | qSupported. |
| 13696 | (main): Reset noack_mode on every connection. |
| 13697 | * server.h (noack_mode): Declare. |
| 13698 | |
| 13699 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 13700 | |
| 13701 | * Makefile.in (GDBREPLAY_OBS): New variable. |
| 13702 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. |
| 13703 | |
| 13704 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
| 13705 | Daniel Jacobowitz <dan@codesourcery.com> |
| 13706 | |
| 13707 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. |
| 13708 | (usr_store_inferior_registers): Likewise. |
| 13709 | (regsets_store_inferior_registers): Likewise. |
| 13710 | |
| 13711 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
| 13712 | Pedro Alves <pedro@codesourcery.com> |
| 13713 | |
| 13714 | * configure.ac: Check for memmem declaration. |
| 13715 | * server.c [HAVE_MALLOC_H]: Include malloc.h. |
| 13716 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) |
| 13717 | (disable_packet_qfThreadInfo): Unconditionally compile. |
| 13718 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. |
| 13719 | * configure, config.in: Regenerate. |
| 13720 | |
| 13721 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
| 13722 | |
| 13723 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. |
| 13724 | (linux_write_memory): Remove declaration of errno. |
| 13725 | |
| 13726 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 13727 | |
| 13728 | * linux-low.c (handle_extended_wait): Do not use "status" |
| 13729 | variable uninitialized. |
| 13730 | |
| 13731 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
| 13732 | |
| 13733 | * server.c (handle_v_attach): Inhibit reporting dll changes. |
| 13734 | |
| 13735 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
| 13736 | |
| 13737 | * remote-utils.c (prepare_resume_reply): If requested, don't |
| 13738 | output "thread:TID" in the T stop reply. |
| 13739 | |
| 13740 | * server.c (disable_packet_vCont, disable_packet_Tthread) |
| 13741 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. |
| 13742 | (handle_query): If requested, disable support for qC, qfThreadInfo |
| 13743 | and qsThreadInfo. |
| 13744 | (handle_v_requests): If requested, disable support for vCont. |
| 13745 | (gdbserver_show_disableable): New. |
| 13746 | (main): Handle --disable-packet and --disable-packet=LIST. |
| 13747 | |
| 13748 | * server.h (disable_packet_vCont, disable_packet_Tthread) |
| 13749 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. |
| 13750 | |
| 13751 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
| 13752 | |
| 13753 | * server.c (gdbserver_usage): Mention --version. |
| 13754 | |
| 13755 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 13756 | |
| 13757 | * Makefile.in (gdbreplay.o): New rule. |
| 13758 | |
| 13759 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
| 13760 | |
| 13761 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version |
| 13762 | message, not gdbserver. |
| 13763 | |
| 13764 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
| 13765 | Nathan Sidwell <nathan@codesourcery.com> |
| 13766 | Joseph Myers <joseph@codesourcery.com> |
| 13767 | |
| 13768 | * acinclude.m4: Include ../../config/acx.m4. |
| 13769 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. |
| 13770 | * configure, config.in: Regenerate. |
| 13771 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. |
| 13772 | * server.c (gdbserver_version): Print PKGVERSION. |
| 13773 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. |
| 13774 | (main): Adjust gdbserver_usage calls. |
| 13775 | * gdbreplay.c (version, host_name): Add declarations. |
| 13776 | (gdbreplay_version, gdbreplay_usage): New. |
| 13777 | (main): Accept --version and --help options. |
| 13778 | |
| 13779 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 13780 | |
| 13781 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. |
| 13782 | (arm_breakpoint_at): Handle Thumb. |
| 13783 | (the_low_target): Add comment. |
| 13784 | |
| 13785 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
| 13786 | |
| 13787 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. |
| 13788 | |
| 13789 | 2008-05-09 Doug Evans <dje@google.com> |
| 13790 | |
| 13791 | * server.h (decode_search_memory_packet): Declare. |
| 13792 | * remote-utils.c (decode_search_memory_packet): New fn. |
| 13793 | * server.c (handle_search_memory_1): New fn. |
| 13794 | (handle_search_memory): New fn. |
| 13795 | (handle_query): Process qSearch:memory packets. |
| 13796 | |
| 13797 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
| 13798 | |
| 13799 | * regcache.c (registers_length): Remove. |
| 13800 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a |
| 13801 | full register packet. |
| 13802 | * regcache.h (registers_length): Remove prototype. |
| 13803 | * server.h (PBUFSIZ): Define to 16384. |
| 13804 | |
| 13805 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
| 13806 | |
| 13807 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to |
| 13808 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, |
| 13809 | powerpc-64l.o, and powerpc-altivec64l.o. |
| 13810 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and |
| 13811 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, |
| 13812 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, |
| 13813 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, |
| 13814 | rs6000/power-linux.xml, and rs6000/power64-linux.xml |
| 13815 | to srv_xmlfiles. |
| 13816 | |
| 13817 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... |
| 13818 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. |
| 13819 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... |
| 13820 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. |
| 13821 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... |
| 13822 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. |
| 13823 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... |
| 13824 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. |
| 13825 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... |
| 13826 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. |
| 13827 | (clean): Update. |
| 13828 | |
| 13829 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... |
| 13830 | (init_registers_powerpc_32l): ... this new prototype. |
| 13831 | (init_registers_powerpc_32): Remove, replace by ... |
| 13832 | (init_registers_powerpc_altivec32l): ... this new prototype. |
| 13833 | (init_registers_powerpc_e500): Remove, replace by ... |
| 13834 | (init_registers_powerpc_e500l): ... this new prototype. |
| 13835 | (init_registers_ppc64): Remove, replace by ... |
| 13836 | (init_registers_powerpc_64l): ... this new prototype. |
| 13837 | (init_registers_powerpc_64): Remove, replace by ... |
| 13838 | (init_registers_powerpc_altivec64l): ... this new prototype. |
| 13839 | (ppc_num_regs): Set to 73. |
| 13840 | (PT_ORIG_R3, PT_TRAP): Define if necessary. |
| 13841 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. |
| 13842 | (ppc_cannot_store_register): Handle orig_r3 and trap. |
| 13843 | (ppc_arch_setup): Update init_registers_... calls. |
| 13844 | (ppc_fill_gregset): Handle orig_r3 and trap. |
| 13845 | |
| 13846 | * inferiors.c (clear_inferiors): Reset current_inferior. |
| 13847 | |
| 13848 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
| 13849 | |
| 13850 | * acinclude.m4: Add override.m4. |
| 13851 | * configure: Regenerate. |
| 13852 | |
| 13853 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
| 13854 | |
| 13855 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the |
| 13856 | initial call to init_register_ppc64. |
| 13857 | |
| 13858 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
| 13859 | |
| 13860 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into |
| 13861 | single powerpc*-*-linux* case. |
| 13862 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
| 13863 | |
| 13864 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
| 13865 | |
| 13866 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from |
| 13867 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
| 13868 | from reg_xmlfiles. |
| 13869 | * linux-ppc-low.c: Include <elf.h>. |
| 13870 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. |
| 13871 | (ppc_hwcap): New global variable. |
| 13872 | (ppc_regmap): Remove __SPE__ #ifdef sections. |
| 13873 | (ppc_regmap_e500): New global variable. |
| 13874 | (ppc_cannot_store_register): Update __SPE__ special case. |
| 13875 | (ppc_get_hwcap): New function. |
| 13876 | (ppc_arch_setup): Use it to determine whether inferior supports |
| 13877 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. |
| 13878 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. |
| 13879 | Do not access registers if target does not support AltiVec. |
| 13880 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. |
| 13881 | Do not access registers if target does not support SPE. |
| 13882 | (target_regsets): Unconditionally include AltiVec and SPE regsets. |
| 13883 | |
| 13884 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 13885 | |
| 13886 | * linux-low.c (disabled_regsets, num_regsets): New. |
| 13887 | (use_regsets_p): Delete. |
| 13888 | (linux_wait_for_process): Clear disabled_regsets. |
| 13889 | (regsets_fetch_inferior_registers): Check and set it. |
| 13890 | (regsets_store_inferior_registers): Likewise. |
| 13891 | (linux_fetch_registers, linux_store_registers): Do not use |
| 13892 | use_regsets_p. |
| 13893 | (initialize_low): Allocate disabled_regsets. |
| 13894 | |
| 13895 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 13896 | |
| 13897 | * Makefile.in (LIBOBJS): New. |
| 13898 | (OBS): Use LIBOBJS. |
| 13899 | (memmem.o): New rule. |
| 13900 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. |
| 13901 | * configure: Regenerated. |
| 13902 | |
| 13903 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
| 13904 | |
| 13905 | * server.c (handle_query): Never return "unsupported" for |
| 13906 | qXfer:features:read queries. |
| 13907 | |
| 13908 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 13909 | |
| 13910 | * server.c (get_features_xml): Fix inverted condition. |
| 13911 | (handle_query): Always support qXfer:feature:read. |
| 13912 | |
| 13913 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
| 13914 | |
| 13915 | * server.c (wrapper_argv): New. |
| 13916 | (start_inferior): Handle wrapper_argv. If set, expect an extra |
| 13917 | trap. |
| 13918 | (gdbserver_usage): Document --wrapper. |
| 13919 | (main): Parse --wrapper. |
| 13920 | |
| 13921 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 13922 | |
| 13923 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for |
| 13924 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. |
| 13925 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. |
| 13926 | (ppc_set_pc): Likewise. |
| 13927 | (ppc_arch_setup): New function. |
| 13928 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead |
| 13929 | of collect_register. |
| 13930 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
| 13931 | |
| 13932 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 13933 | |
| 13934 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o |
| 13935 | instead of linux-ppc64-low.o. |
| 13936 | * linux-ppc64-low.c: Remove file. |
| 13937 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. |
| 13938 | (linux-ppc64-low.o): Remove rule. |
| 13939 | |
| 13940 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. |
| 13941 | (init_registers_powerpc_64): Likewise. |
| 13942 | (ppc_regmap): Conditionally define depending on __powerpc64__. |
| 13943 | (ppc_cannot_store_register): Do not special-case "fpscr" when |
| 13944 | compiled on __powerpc64__. |
| 13945 | (ppc_collect_ptrace_register): New function. |
| 13946 | (ppc_supply_ptrace_register): New function. |
| 13947 | (ppc_breakpoint): Change type to "unsigned int". |
| 13948 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". |
| 13949 | (the_low_target): Conditionally provide initializers for the |
| 13950 | arch_setup member depending on __powerpc64__. Install |
| 13951 | collect_ptrace_register and supply_ptrace_register members. |
| 13952 | |
| 13953 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
| 13954 | |
| 13955 | * regcache.h (gdbserver_xmltarget): Add extern declaration. |
| 13956 | * server.c (gdbserver_xmltarget): Define. |
| 13957 | (get_features_xml): Use it to replace "target.xml" and arch_string. |
| 13958 | |
| 13959 | * configure.srv: Remove srv_xmltarget. Add XML files that were |
| 13960 | mentioned there to srv_xmlfiles instead. Remove conditional tests |
| 13961 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set |
| 13962 | srv_xmlfiles and srv_regobj to include all possible choices. |
| 13963 | * configure.ac (srv_xmltarget): Remove. |
| 13964 | (srv_xmlfiles): Do not add "target.xml". |
| 13965 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove |
| 13966 | checks for supplementary target information. |
| 13967 | * configure: Regenerate. |
| 13968 | * Makefile.in (XML_TARGET): Remove. |
| 13969 | (target.xml): Remove rule. |
| 13970 | (clean): Do not clean up target.xml. |
| 13971 | (.PRECIOUS): Do not mention target.xml. |
| 13972 | |
| 13973 | * target.h (struct target_ops): Remove arch_string member. |
| 13974 | * linux-low.c (linux_arch_string): Remove. |
| 13975 | (linux_target_ops): Remove arch_string initializer. |
| 13976 | * linux-low.h (struct linux_target_ops): Remove arch_string member. |
| 13977 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. |
| 13978 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. |
| 13979 | * spu-low.c (spu_arch_string): Remove. |
| 13980 | (spu_target_ops): Remove arch_string initializer. |
| 13981 | * win32-low.c (win32_arch_string): Remove. |
| 13982 | (win32_target_ops): Remove arch_string initializer. |
| 13983 | * win32-low.h (struct win32_target_ops): Remove arch_string member. |
| 13984 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. |
| 13985 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. |
| 13986 | |
| 13987 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 13988 | |
| 13989 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field |
| 13990 | by collect_ptrace_register and supply_ptrace_register hooks. |
| 13991 | * linux-low.c (fetch_register): Use supply_ptrace_register callback |
| 13992 | instead of checking for the_low_target.left_pad_xfer. |
| 13993 | (usr_store_inferior_registers): Use collect_ptrace_register callback |
| 13994 | instead of checking for the_low_target.left_pad_xfer. |
| 13995 | |
| 13996 | * linux-s390-low.c (s390_collect_ptrace_register): New function. |
| 13997 | (s390_supply_ptrace_register): Likewise. |
| 13998 | (s390_fill_gregset): Call s390_collect_ptrace_register. |
| 13999 | (the_low_target): Update. |
| 14000 | |
| 14001 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. |
| 14002 | (ppc_supply_ptrace_register): Likewise. |
| 14003 | (the_low_target): Update. |
| 14004 | |
| 14005 | * linux-i386-low.c (the_low_target): Update. |
| 14006 | * linux-x86-64-low.c (the_low_target): Update. |
| 14007 | |
| 14008 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 14009 | |
| 14010 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both |
| 14011 | reg-s390.o and reg-s390x.o. |
| 14012 | |
| 14013 | * linux-low.c (new_inferior): New global variable. |
| 14014 | (linux_create_inferior, linux_attach): Set it. |
| 14015 | (linux_wait_for_process): Call the_low_target.arch_setup after the |
| 14016 | target has stopped for the first time. |
| 14017 | (initialize_low): Do not call the_low_target.arch_setup. |
| 14018 | |
| 14019 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. |
| 14020 | (s390_set_pc): Likewise. |
| 14021 | (s390_arch_setup): New function. |
| 14022 | (the_low_target): Use s390_arch_setup as arch_setup routine. |
| 14023 | |
| 14024 | * regcache.c (realloc_register_cache): New function. |
| 14025 | (set_register_cache): Call it for each existing regcache. |
| 14026 | |
| 14027 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
| 14028 | |
| 14029 | * server.h (init_registers): Remove prototype. |
| 14030 | |
| 14031 | * linux-low.h (struct linux_target_ops): Add arch_setup field. |
| 14032 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () |
| 14033 | instead of init_registers (). |
| 14034 | * linux-arm-low.c (init_registers_arm): Add prototype. |
| 14035 | (init_registers_arm_with_iwmmxt): Likewise. |
| 14036 | (the_low_target): Add initializer for arch_setup field. |
| 14037 | * linux-cris-low.c (init_registers_cris): Add prototype. |
| 14038 | (the_low_target): Add initializer for arch_setup field. |
| 14039 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. |
| 14040 | (the_low_target): Add initializer for arch_setup field. |
| 14041 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. |
| 14042 | (the_low_target): Add initializer for arch_setup field. |
| 14043 | * linux-ia64-low.c (init_registers_ia64): Add prototype. |
| 14044 | (the_low_target): Add initializer for arch_setup field. |
| 14045 | * linux-m32r-low.c (init_registers_m32r): Add prototype. |
| 14046 | (the_low_target): Add initializer for arch_setup field. |
| 14047 | * linux-m68k-low.c (init_registers_m68k): Add prototype. |
| 14048 | (the_low_target): Add initializer for arch_setup field. |
| 14049 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. |
| 14050 | (init_registers_mips64_linux): Likewise. |
| 14051 | (the_low_target): Add initializer for arch_setup field. |
| 14052 | * linux-ppc-low.c (init_registers_ppc): Add prototype. |
| 14053 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. |
| 14054 | (the_low_target): Add initializer for arch_setup field. |
| 14055 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. |
| 14056 | (init_registers_powerpc_64): Likewise. |
| 14057 | (the_low_target): Add initializer for arch_setup field. |
| 14058 | * linux-s390-low.c (init_registers_s390): Add prototype. |
| 14059 | (init_registers_s390x): Likewise. |
| 14060 | (the_low_target): Add initializer for arch_setup field. |
| 14061 | * linux-sh-low.c (init_registers_sh): Add prototype. |
| 14062 | (the_low_target): Add initializer for arch_setup field. |
| 14063 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. |
| 14064 | (the_low_target): Add initializer for arch_setup field. |
| 14065 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. |
| 14066 | (the_low_target): Add initializer for arch_setup field. |
| 14067 | |
| 14068 | * win32-low.h (struct win32_target_ops): Add arch_setup field. |
| 14069 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () |
| 14070 | instead of init_registers (). |
| 14071 | * win32-arm-low.c (init_registers_arm): Add prototype. |
| 14072 | (the_low_target): Add initializer for arch_setup field. |
| 14073 | * win32-i386-low.c (init_registers_i386): Add prototype. |
| 14074 | (the_low_target): Add initializer for arch_setup field. |
| 14075 | |
| 14076 | * spu-low.c (init_registers_spu): Add prototype. |
| 14077 | (initialize_low): Call initialie_registers_spu () instead of |
| 14078 | initialize_registers (). |
| 14079 | |
| 14080 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
| 14081 | |
| 14082 | * server.c (handle_v_requests): When handling the vRun and vAttach |
| 14083 | packets, if already debugging a process, don't kill it. Return an |
| 14084 | error instead. |
| 14085 | |
| 14086 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 14087 | |
| 14088 | * server.c (handle_query): Correct length check. |
| 14089 | |
| 14090 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14091 | |
| 14092 | * win32-low.c (do_initial_child_stuff): Add process handle |
| 14093 | parameter. Set current_process_handle and current_process_id from the |
| 14094 | parameters. Clear globals. |
| 14095 | (win32_create_inferior): Don't set current_process_handle and |
| 14096 | current_process_id here. Instead pass them on the call to |
| 14097 | do_initial_child_stuff. |
| 14098 | (win32_attach): Likewise. |
| 14099 | (win32_clear_inferiors): New. |
| 14100 | (win32_kill): Don't close the current process handle or the |
| 14101 | current thread handle here. Instead call win32_clear_inferiors. |
| 14102 | (win32_detach): Don't open a new handle to the process. Call |
| 14103 | win32_clear_inferiors. |
| 14104 | (win32_join): Don't rely on current_process_handle; open a new |
| 14105 | handle using the process id. |
| 14106 | (win32_wait): Call win32_clear_inferiors when the inferior process |
| 14107 | has exited. |
| 14108 | |
| 14109 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
| 14110 | |
| 14111 | * server.c (monitor_show_help): Add "exit". |
| 14112 | |
| 14113 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
| 14114 | |
| 14115 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
| 14116 | (clean): Add reg-xtensa.c. |
| 14117 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. |
| 14118 | * configure.srv (xtensa*-*-linux*) New target. |
| 14119 | * linux-xtensa-low.c: New. |
| 14120 | * xtensa-xtregs.c: New. |
| 14121 | |
| 14122 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14123 | |
| 14124 | * hostio.c: Don't include errno.h. |
| 14125 | (errno_to_fileio_errno): Move to hostio-errno. |
| 14126 | * hostio.c: (hostio_error): Remove the error parameter. Defer the |
| 14127 | error number outputting to the target->hostio_last_error callback. |
| 14128 | (hostio_packet_error): Use FILEIO_EINVAL directly. |
| 14129 | (handle_open, handle_pread, hostio_error, handle_unlink): Update |
| 14130 | calls to hostio_error. |
| 14131 | * hostio-errno.c: New. |
| 14132 | * server.h (hostio_last_error_from_errno): Declare. |
| 14133 | * target.h (target_ops): Add hostio_last_error member. |
| 14134 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno |
| 14135 | as hostio_last_error handler. |
| 14136 | * spu-low.c (spu_target_ops): Likewise. |
| 14137 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
| 14138 | (wince_hostio_last_error): New functions. |
| 14139 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error |
| 14140 | as hostio_last_error handler. |
| 14141 | (win32_target_ops) [!_WIN32_WCE]: Register |
| 14142 | hostio_last_error_from_errno as hostio_last_error handler. |
| 14143 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. |
| 14144 | (hostio-errno.o): New rule. |
| 14145 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. |
| 14146 | * configure.srv (srv_hostio_err_objs): New variable. Default to |
| 14147 | hostio-errno.o. |
| 14148 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". |
| 14149 | * configure: Regenerate. |
| 14150 | |
| 14151 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 14152 | |
| 14153 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. |
| 14154 | (linux_kill, linux_detach): Clean up the process list. |
| 14155 | * remote-utils.c (remote_open): Improve port number parsing. |
| 14156 | (putpkt_binary, input_interrupt): Only send interrupts if the target |
| 14157 | is running. |
| 14158 | * server.c (extended_protocol): Make static. |
| 14159 | (attached): Define earlier. |
| 14160 | (exit_requested, response_needed, program_argv): New variables. |
| 14161 | (target_running): New. |
| 14162 | (start_inferior): Clear attached here. |
| 14163 | (attach_inferior): Set attached here. |
| 14164 | (require_running): Define. |
| 14165 | (handle_query): Use require_running and target_running. Implement |
| 14166 | "monitor exit". |
| 14167 | (handle_v_attach, handle_v_run): New. |
| 14168 | (handle_v_requests): Use require_running. Handle vAttach and vRun. |
| 14169 | (gdbserver_usage): Update. |
| 14170 | (main): Redo argument parsing. Handle --debug and --multi. Handle |
| 14171 | --attach along with other options or after the port. Save |
| 14172 | program_argv. Support no initial program. Resynchronize |
| 14173 | communication with GDB after an error. Handle "monitor exit". |
| 14174 | Use require_running and target_running. Always allow the extended |
| 14175 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically |
| 14176 | restart in extended mode. |
| 14177 | * README: Refer to the GDB manual. Update --attach usage. |
| 14178 | |
| 14179 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
| 14180 | |
| 14181 | * linux-low.c (STACK_SIZE): Define. |
| 14182 | (linux_tracefork_child): Use it. Use __clone2 on ia64. |
| 14183 | (linux_test_for_tracefork): Likewise. |
| 14184 | |
| 14185 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
| 14186 | |
| 14187 | * linux-low.c (linux_wait_for_event): Update messages. Do not |
| 14188 | reinsert auto-delete breakpoints. |
| 14189 | * mem-break.c (struct breakpoint): Change return type of handler to |
| 14190 | int. |
| 14191 | (set_breakpoint_at): Update handler type. |
| 14192 | (reinsert_breakpoint_handler): Return 1 instead of calling |
| 14193 | delete_breakpoint. |
| 14194 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before |
| 14195 | setting a new one. |
| 14196 | (check_breakpoints): Delete auto-delete breakpoints and return 2. |
| 14197 | * mem-break.h (set_breakpoint_at): Update handler type. |
| 14198 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. |
| 14199 | * win32-low.c (auto_delete_breakpoint): New. |
| 14200 | (get_child_debug_event): Use it. |
| 14201 | |
| 14202 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 14203 | |
| 14204 | * configure.ac: Check for pread and pwrite. |
| 14205 | * hostio.c (handle_pread): Fall back to lseek and read. |
| 14206 | (handle_pwrite): Fall back to lseek and write. |
| 14207 | * config.in, configure: Regenerated. |
| 14208 | |
| 14209 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
| 14210 | |
| 14211 | * server.c (myresume): Add own_buf argument. |
| 14212 | (main): Update calls. |
| 14213 | |
| 14214 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 14215 | |
| 14216 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. |
| 14217 | * remote-utils.c (remote_open): Do not call disable_async_io. |
| 14218 | (block_async_io): Delete. |
| 14219 | (unblock_async_io): Make static. |
| 14220 | (initialize_async_io): New. |
| 14221 | * server.c (handle_v_cont): Handle async I/O here. |
| 14222 | (myresume): Likewise. Move other common resume tasks here... |
| 14223 | (main): ... from here. Call initialize_async_io. Disable async |
| 14224 | I/O before the main loop. |
| 14225 | * server.h (initialize_async_io): Declare. |
| 14226 | (block_async_io, unblock_async_io): Delete prototypes. |
| 14227 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. |
| 14228 | |
| 14229 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
| 14230 | |
| 14231 | * remote-utils.c (readchar): Allow binary data in received messages. |
| 14232 | |
| 14233 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14234 | |
| 14235 | * win32-low.c (attaching): New global. |
| 14236 | (win32_create_inferior): Clear the `attaching' global. |
| 14237 | (win32_attach): Set the `attaching' global. |
| 14238 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when |
| 14239 | attaching. Only set a breakpoint at the entry point if not |
| 14240 | attaching. |
| 14241 | |
| 14242 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14243 | |
| 14244 | * server.c (main): Don't report dll events on the initial |
| 14245 | connection on attaches. |
| 14246 | |
| 14247 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14248 | |
| 14249 | * server.c (main): Relax numerical bases supported for the pid of |
| 14250 | the --attach command line argument. |
| 14251 | |
| 14252 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14253 | |
| 14254 | * win32-low.c (win32_attach): Call OpenProcess before |
| 14255 | DebugActiveProcess, not after. Add last error output to error |
| 14256 | call. |
| 14257 | |
| 14258 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14259 | |
| 14260 | * win32-low.c (win32_get_thread_context) |
| 14261 | (win32_set_thread_context): New functions. |
| 14262 | (thread_rec): Use win32_get_thread_context. |
| 14263 | (continue_one_thread, win32_resume): Use win32_set_thread_context. |
| 14264 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' |
| 14265 | field. |
| 14266 | |
| 14267 | 2007-12-03 Leo Zayas |
| 14268 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 14269 | |
| 14270 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New |
| 14271 | global variables. |
| 14272 | (child_add_thread): Minor cleanup. |
| 14273 | (child_continue): Resume artificially suspended threads before |
| 14274 | calling ContinueDebugEvent. |
| 14275 | (suspend_one_thread): New. |
| 14276 | (fake_breakpoint_event): New. |
| 14277 | (get_child_debug_event): Change return type to int. Check here if |
| 14278 | gdb sent an interrupt request. If a soft interrupt was requested, |
| 14279 | fake a breakpoint event. Return 0 if there is no event to handle, |
| 14280 | and 1 otherwise. |
| 14281 | (win32_wait): Don't check here if gdb sent an interrupt request. |
| 14282 | Ensure there is a valid event to handle. |
| 14283 | (win32_request_interrupt): Add soft interruption method as last |
| 14284 | resort. |
| 14285 | |
| 14286 | 2007-12-03 Leo Zayas |
| 14287 | Pedro Alves <pedro_alves@portugalmail.pt> |
| 14288 | |
| 14289 | * win32-low.h (win32_thread_info): Add descriptions to the |
| 14290 | structure members. Replace `suspend_count' counter by a |
| 14291 | `suspended' flag. |
| 14292 | * win32-low.c (thread_rec): Update condition of when to get the |
| 14293 | context from the inferior. Rely on ContextFlags being set if it |
| 14294 | has already been retrieved. Only suspend the inferior thread if |
| 14295 | we haven't already. Warn if that fails. |
| 14296 | (continue_one_thread): s/suspend_count/suspended/. Only call |
| 14297 | ResumeThread once. Warn if that fails. |
| 14298 | |
| 14299 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14300 | |
| 14301 | * win32-low.c (win32_wait): Don't read from the inferior when it |
| 14302 | has already exited. |
| 14303 | |
| 14304 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14305 | |
| 14306 | * Makefile.in (win32_low_h): New variable. |
| 14307 | (win32-low.o): Add dependency on $(win32_low_h). |
| 14308 | (win32-arm-low.o, win32-i386-low.o): New rules. |
| 14309 | |
| 14310 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 14311 | |
| 14312 | * hostio.c: Correct copyright year. |
| 14313 | |
| 14314 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 14315 | |
| 14316 | * Makefile.in (OBS): Add hostio.o. |
| 14317 | (hostio.o): New rule. |
| 14318 | * server.h (handle_vFile): Declare. |
| 14319 | * hostio.c: New file. |
| 14320 | * server.c (handle_v_requests): Take packet_len and new_packet_len |
| 14321 | for binary packets. Call handle_vFile. |
| 14322 | (main): Update call to handle_v_requests. |
| 14323 | |
| 14324 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
| 14325 | |
| 14326 | * linux-low.c: Include <sched.h>. |
| 14327 | |
| 14328 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 14329 | |
| 14330 | * linux-low.c (linux_tracefork_grandchild): New. |
| 14331 | (linux_tracefork_child): Use clone. |
| 14332 | (linux_test_for_tracefork): Use clone; allocate and free a stack. |
| 14333 | |
| 14334 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
| 14335 | |
| 14336 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. |
| 14337 | |
| 14338 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 14339 | |
| 14340 | * linux-low.c (handle_extended_wait): Handle unexpected signals. |
| 14341 | |
| 14342 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
| 14343 | |
| 14344 | * inferiors.c (change_inferior_id): Delete. |
| 14345 | (add_pid_to_list, pull_pid_from_list): New. |
| 14346 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) |
| 14347 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) |
| 14348 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) |
| 14349 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) |
| 14350 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) |
| 14351 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. |
| 14352 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. |
| 14353 | (using_threads): Always set to 1. |
| 14354 | (handle_extended_wait): New. |
| 14355 | (add_process): Do not set TID. |
| 14356 | (linux_create_inferior): Set must_set_ptrace_flags. |
| 14357 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. |
| 14358 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. |
| 14359 | (linux_thread_alive): Rename TID argument to LWPID. |
| 14360 | (linux_wait_for_process): Handle unknown processes. Do not use TID. |
| 14361 | (linux_wait_for_event): Do not use TID or check using_threads. Update |
| 14362 | call to dead_thread_notify. Call handle_extended_wait. |
| 14363 | (linux_create_inferior): Use PTRACE_SETOPTIONS. |
| 14364 | (send_sigstop): Delete sigstop_sent. |
| 14365 | (wait_for_sigstop): Avoid TID. |
| 14366 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) |
| 14367 | (linux_test_for_tracefork): New. |
| 14368 | (linux_lookup_signals): Use thread_db_active and |
| 14369 | linux_supports_tracefork_flag. |
| 14370 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. |
| 14371 | * linux-low.h (get_process_thread): Avoid TID. |
| 14372 | (struct process_ifo): Move thread_known and tid to the end. Remove |
| 14373 | sigstop_sent. |
| 14374 | (linux_attach_lwp, thread_db_init): Update prototypes. |
| 14375 | * server.h (change_inferior_id): Delete prototype. |
| 14376 | (add_pid_to_list, pull_pid_from_list): New prototypes. |
| 14377 | * thread-db.c (thread_db_use_events): New. |
| 14378 | (find_first_thread): Rename to... |
| 14379 | (find_one_thread): ...this. Update callers and messages. Do not |
| 14380 | call fatal. Check thread_db_use_events. Do not call |
| 14381 | change_inferior_id or new_thread_notify. |
| 14382 | (maybe_attach_thread): Update. Do not call new_thread_notify. |
| 14383 | (thread_db_init): Set thread_db_use_events. Check use_events. |
| 14384 | * utils.c (fatal, warning): Correct message prefix. |
| 14385 | |
| 14386 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 14387 | |
| 14388 | * Makefile.in (clean): Remove new files. |
| 14389 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) |
| 14390 | (powerpc-64.o, powerpc-64.c): New rules. |
| 14391 | * configure.srv: Use alternate register sets for powerpc64-*-linux* |
| 14392 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* |
| 14393 | with SPE. |
| 14394 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for |
| 14395 | SPE targets. |
| 14396 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. |
| 14397 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) |
| 14398 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) |
| 14399 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. |
| 14400 | (target_regsets): Add AltiVec and SPE register sets. |
| 14401 | * configure.ac: Check for AltiVec and SPE. |
| 14402 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) |
| 14403 | (ppc_fill_vrregset, ppc_store_vrregset): New. |
| 14404 | (target_regsets): Add AltiVec register set. |
| 14405 | * configure: Regenerated. |
| 14406 | |
| 14407 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 14408 | |
| 14409 | * linux-low.c (O_LARGEFILE): Define. |
| 14410 | (linux_read_memory): Use /proc/PID/mem. |
| 14411 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. |
| 14412 | * configure, config.in: Regenerated. |
| 14413 | |
| 14414 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 14415 | |
| 14416 | * linux-low.c (linux_wait_for_event): Do not pass signals while |
| 14417 | single-stepping. |
| 14418 | |
| 14419 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14420 | |
| 14421 | * win32-low.c (create_process): New. |
| 14422 | (win32_create_inferior): Use create_process instead of |
| 14423 | CreateProcess. If create_process failed retry appending an ".exe" |
| 14424 | suffix. Store the GetLastError result immediatelly after |
| 14425 | create_process calls and use it on the call to error. |
| 14426 | |
| 14427 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14428 | |
| 14429 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. |
| 14430 | |
| 14431 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
| 14432 | |
| 14433 | * configure.ac: Switch license to GPLv3. |
| 14434 | |
| 14435 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
| 14436 | |
| 14437 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. |
| 14438 | |
| 14439 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14440 | |
| 14441 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New |
| 14442 | typedef. |
| 14443 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. |
| 14444 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get |
| 14445 | CloseToolhelp32Snapshot. |
| 14446 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with |
| 14447 | CloseToolhelp32Snapshot. |
| 14448 | |
| 14449 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
| 14450 | |
| 14451 | * server.c (main): Check for inferior exit before main loop. |
| 14452 | |
| 14453 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14454 | |
| 14455 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc |
| 14456 | instead of on tmp_desc. |
| 14457 | |
| 14458 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14459 | Daniel Jacobowitz <dan@codesourcery.com> |
| 14460 | |
| 14461 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. |
| 14462 | (add_thread): Minor cleanups. |
| 14463 | (clear_inferiors): Move lower in the file. Clear the DLL |
| 14464 | list. |
| 14465 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. |
| 14466 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. |
| 14467 | (xml_escape_text): New. |
| 14468 | * server.c (handle_query): Handle qXfer:libraries:read. Report it |
| 14469 | for qSupported. |
| 14470 | (handle_v_cont): Report errors. |
| 14471 | (gdbserver_version): Update. |
| 14472 | (main): Correct size of own_buf. Do not report initial DLL events. |
| 14473 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) |
| 14474 | (unloaded_dll, xml_escape_text): New. |
| 14475 | * win32-low.c (enum target_waitkind): Update comments. |
| 14476 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) |
| 14477 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) |
| 14478 | (win32_EnumProcessModules, win32_GetModuleInformation) |
| 14479 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) |
| 14480 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) |
| 14481 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) |
| 14482 | (win32_Module32First, win32_Module32Next, load_toolhelp) |
| 14483 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. |
| 14484 | (get_child_debug_event): Handle DLL events. |
| 14485 | (win32_wait): Likewise. |
| 14486 | |
| 14487 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 14488 | |
| 14489 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. |
| 14490 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. |
| 14491 | |
| 14492 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14493 | |
| 14494 | * win32-low.c (handle_output_debug_string): Ignore event if not |
| 14495 | waiting. |
| 14496 | |
| 14497 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14498 | |
| 14499 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. |
| 14500 | |
| 14501 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 14502 | |
| 14503 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. |
| 14504 | |
| 14505 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 14506 | |
| 14507 | * inferiors.c (change_inferior_id): Add comment. |
| 14508 | * linux-low.c (check_removed_breakpoint): Add an early |
| 14509 | prototype. Improve debug output. |
| 14510 | (linux_attach): Doc update. |
| 14511 | (linux_detach_one_process, linux_detach): Clean up before releasing |
| 14512 | each process. |
| 14513 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. |
| 14514 | * linux-low.h (struct process_info): Doc improvement. |
| 14515 | * mem-break.c (delete_all_breakpoints): New. |
| 14516 | * mem-break.h (delete_all_breakpoints): New prototype. |
| 14517 | * thread-db.c (find_first_thread): New. |
| 14518 | (thread_db_create_event): Call it instead of |
| 14519 | thread_db_find_new_threads. Clean up unused variables. |
| 14520 | (maybe_attach_thread): Remove first thread handling. |
| 14521 | (thread_db_find_new_threads): Use find_first_thread. |
| 14522 | (thread_db_get_tls_address): Likewise. |
| 14523 | |
| 14524 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 14525 | |
| 14526 | * thread-db.c (thread_db_find_new_threads): Add prototype. |
| 14527 | (thread_db_create_event): Check for the main thread before adding |
| 14528 | a new thread. |
| 14529 | (maybe_attach_thread): Only enable event reporting if TID == 0. |
| 14530 | (thread_db_get_tls_address): Check for new threads. |
| 14531 | |
| 14532 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
| 14533 | |
| 14534 | * linux-low.c (linux_create_inferior): Try execv before execvp. |
| 14535 | * spu-low.c (spu_create_inferior): Likewise. |
| 14536 | |
| 14537 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
| 14538 | |
| 14539 | * linux-low.c (linux_create_inferior): Change execv to execvp. |
| 14540 | * spu-low.c (spu_create_inferior): Likewies. |
| 14541 | |
| 14542 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 14543 | |
| 14544 | * Makefile.in (clean): Clean new files instead of deleted ones. |
| 14545 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. |
| 14546 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New |
| 14547 | rules. |
| 14548 | * configure.srv: Specify XML files and new regformats for MIPS and |
| 14549 | MIPS64 GNU/Linux. |
| 14550 | * linux-mips-low.c (mips_num_regs): Set to only used registers. |
| 14551 | (mips_regmap): Do not fetch $0. Remove unused registers. Add |
| 14552 | an entry for the restart register. |
| 14553 | (mips_cannot_fetch_register, mips_cannot_store_register) |
| 14554 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update |
| 14555 | register names to match the XML descriptions. |
| 14556 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the |
| 14557 | restart register instead of $0. |
| 14558 | |
| 14559 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 14560 | Markus Deuling <deuling@de.ibm.com> |
| 14561 | |
| 14562 | * remote-utils.c (decode_xfer_write): New function. |
| 14563 | * server.h (decode_xfer_write): Add prototype. |
| 14564 | * server.c (handle_query): Add PACKET_LEN argument. Support |
| 14565 | qXfer:spu:read and qXfer:spu:write packets. |
| 14566 | (main): Pass packet_len to handle_query. |
| 14567 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. |
| 14568 | * target.h (target_ops): Add qxfer_spu. |
| 14569 | |
| 14570 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
| 14571 | |
| 14572 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when |
| 14573 | accessing non-seekable spufs files. |
| 14574 | |
| 14575 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
| 14576 | |
| 14577 | * server.c (handle_query): Add reply for qC packet. |
| 14578 | |
| 14579 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14580 | Leo Zayas <lerele@champenstudios@com> |
| 14581 | |
| 14582 | * server.h (check_remote_input_interrupt_request): New function. |
| 14583 | * remote_utils.c (INVALID_DESCRIPTOR): New define. |
| 14584 | (remote_desc): Initialize with INVALID_DESCRIPTOR. |
| 14585 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. |
| 14586 | (check_remote_input_interrupt_request): New function. |
| 14587 | * server.h (check_remote_input_interrupt_request): Declare. |
| 14588 | * win32-low.c (winapi_DebugBreakProcess, |
| 14589 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
| 14590 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec |
| 14591 | to 250 ms. |
| 14592 | (win32_wait): Check for remote interrupt request |
| 14593 | with check_remote_input_interrupt_request. |
| 14594 | (win32_request_interrupt): New function. |
| 14595 | (win32_target_op): Set request_interrupt to win32_request_interrupt. |
| 14596 | |
| 14597 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14598 | |
| 14599 | * win32-low.c (debug_registers_changed, |
| 14600 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, |
| 14601 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, |
| 14602 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. |
| 14603 | (thread_rec): Get context using the low target. |
| 14604 | (child_add_thread): Call thread_added on the low target, |
| 14605 | which does the same thing. |
| 14606 | (regptr): Delete. |
| 14607 | (do_initial_child_stuff): Remove debug registers references. |
| 14608 | Set context using the low target. Resume threads after |
| 14609 | setting the contexts. |
| 14610 | (child_continue): Remove dead variable. Remove debug |
| 14611 | registers references. |
| 14612 | (child_fetch_inferior_registers): Go through the low target. |
| 14613 | (do_child_store_inferior_registers): Remove. |
| 14614 | (child_store_inferior_registers): Go through the low target. |
| 14615 | (win32_resume): Remove debug registers references. |
| 14616 | Set context using the low target. |
| 14617 | (handle_exception): Change return type to void. Don't record |
| 14618 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a |
| 14619 | first chance exception. |
| 14620 | (get_child_debug_event): Change return type to void. Remove |
| 14621 | goto loop. Always return after waiting for debug event. |
| 14622 | (win32_wait): Convert to switch statement. Handle spurious |
| 14623 | events. |
| 14624 | |
| 14625 | * win32-i386-low.c (debug_registers_changed, |
| 14626 | debug_registers_used): New. |
| 14627 | (initial_stuff): Rename to ... |
| 14628 | (i386_initial_stuff): ... this. Clear debug registers |
| 14629 | state variables. |
| 14630 | (store_debug_registers): Delete. |
| 14631 | (i386_get_thread_context): New. |
| 14632 | (load_debug_registers): Delete. |
| 14633 | (i386_set_thread_context): New. |
| 14634 | (i386_thread_added): New. |
| 14635 | (single_step): Rename to ... |
| 14636 | (i386_single_step): ... this. |
| 14637 | (do_fetch_inferior_registers): Rename to ... |
| 14638 | (i386_fetch_inferior_register): ... this. |
| 14639 | (i386_store_inferior_register): New. |
| 14640 | (the_low_target): Adapt to new interface. |
| 14641 | |
| 14642 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. |
| 14643 | (arm_get_thread_context): New. |
| 14644 | (arm_set_thread_context): New. |
| 14645 | (regptr): New. |
| 14646 | (do_fetch_inferior_registers): Rename to ... |
| 14647 | (arm_fetch_inferior_register): ... this. |
| 14648 | (arm_store_inferior_register): New. |
| 14649 | (arm_wince_breakpoint): Reimplement as unsigned long. |
| 14650 | (arm_wince_breakpoint_len): Define. |
| 14651 | (the_low_target): Adapt to new interface. |
| 14652 | |
| 14653 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and |
| 14654 | load_debug_registers. Add get_thread_context, set_thread_context, |
| 14655 | thread_added and store_inferior_register. Rename |
| 14656 | fetch_inferior_registers to fetch_inferior_register. |
| 14657 | (regptr): Remove declaration. |
| 14658 | |
| 14659 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14660 | |
| 14661 | * linux-low.c (linux_detach): Change return type to int. Return 0. |
| 14662 | * spu-low.c (spu_detach): Likewise. |
| 14663 | |
| 14664 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14665 | |
| 14666 | * target.h (target_ops): Change return type of detach to int. |
| 14667 | Add join. |
| 14668 | (join_inferior): New. |
| 14669 | * server.c (main): Don't skip detach support on mingw32. |
| 14670 | If the inferior doesn't support detaching return error. |
| 14671 | Call join_inferior instead of using waitpid. |
| 14672 | * linux-low.c (linux_join): New. |
| 14673 | (linux_target_op): Add linux_join. |
| 14674 | * spu-low.c (spu_join): New. |
| 14675 | (spu_target_ops): Add spu_join. |
| 14676 | * win32-low.c (win32_detach): Adapt to new interface. |
| 14677 | Reopen current_process_handle before detaching. Issue a child |
| 14678 | resume before detaching. |
| 14679 | (win32_join): New. |
| 14680 | (win32_target_op): Add win32_join. |
| 14681 | |
| 14682 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14683 | |
| 14684 | * win32-low.c (win32-attach): Fix return value. |
| 14685 | * target.h (target_ops): Describe ATTACH return values. |
| 14686 | |
| 14687 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14688 | |
| 14689 | * win32-low.c (GETPROCADDRESS): Define. |
| 14690 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. |
| 14691 | (winapi_DebugSetProcessKillOnExit): Likewise. |
| 14692 | (win32_create_inferior): Force usage of ansi CreateProcessA. |
| 14693 | (win32_attach): Use GETPROCADDRESS. |
| 14694 | (win32_detach): Likewise. |
| 14695 | |
| 14696 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14697 | |
| 14698 | * win32-low.c (win32_wait): Don't use WSTOPSIG. |
| 14699 | |
| 14700 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14701 | |
| 14702 | * win32-low.c: Commit leftover changes from 2007-03-29. |
| 14703 | |
| 14704 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 14705 | |
| 14706 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit |
| 14707 | fields short instead of int. Add explicit padding. |
| 14708 | (i387_cache_to_fsave): Remove unnecessary casts. |
| 14709 | (i387_fsave_to_cache): Doc fix. |
| 14710 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. |
| 14711 | |
| 14712 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 14713 | |
| 14714 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. |
| 14715 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. |
| 14716 | |
| 14717 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14718 | |
| 14719 | * configure.srv (arm*-*-mingw32ce*): Move near the other |
| 14720 | arm targets. |
| 14721 | |
| 14722 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14723 | |
| 14724 | * configure.ac: Add errno checking. |
| 14725 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
| 14726 | sys/file.h and malloc.h. |
| 14727 | (AC_CHECK_DECLS): Add perror. |
| 14728 | (srv_mingwce): Handle. |
| 14729 | * configure.srv (i[34567]86-*-cygwin*): Add |
| 14730 | win32-i386-low.o to srv_tgtobj. |
| 14731 | (i[34567]86-*-mingw*): Likewise. |
| 14732 | (arm*-*-mingw32ce*): Add case. |
| 14733 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 14734 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. |
| 14735 | [__MINGW32CE__] (strerror): New function. |
| 14736 | [__MINGW32CE__] (errno): Define to GetLastError. |
| 14737 | [__MINGW32CE__] (COUNTOF): New macro. |
| 14738 | (remote_open): Remove extra close call. |
| 14739 | * mem-break.c (delete_breakpoint_at): New function. |
| 14740 | * mem-break.h (delete_breakpoint_at): Declare. |
| 14741 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, |
| 14742 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. |
| 14743 | [USE_WIN32API] (read, write): Add char* casts. |
| 14744 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. |
| 14745 | * server.h: Include wincecompat.h on Windows CE. |
| 14746 | [HAVE_ERRNO_H]: Check. |
| 14747 | (perror): Declare if not declared. |
| 14748 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. |
| 14749 | (perror_with_name): Remove errno declaration. |
| 14750 | * wincecompat.h: New. |
| 14751 | * wincecompat.c: New. |
| 14752 | * win32-low.h: New. |
| 14753 | * win32-arm-low.c: New. |
| 14754 | * win32-i386-low.c: New. |
| 14755 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. |
| 14756 | (OUTMSG2): Make it safe. |
| 14757 | (_T): New macro. |
| 14758 | (COUNTOF): New macro. |
| 14759 | (NUM_REGS): Get it from the low target. |
| 14760 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, |
| 14761 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. |
| 14762 | (thread_rec): Let low target handle debug registers. |
| 14763 | (child_add_thread): Likewise. |
| 14764 | (child_init_thread_list): Likewise. |
| 14765 | (continue_one_thread): Likewise. |
| 14766 | (regptr): New. |
| 14767 | (do_child_fetch_inferior_registers): Move to ... |
| 14768 | * win32-i386-low.c: ... here, and rename to ... |
| 14769 | (do_fetch_inferior_registers): ... this. |
| 14770 | * win32-low.c (child_fetch_inferior_registers): |
| 14771 | Go through the low target. |
| 14772 | (do_child_store_inferior_registers): Use regptr. |
| 14773 | (strwinerror): New function. |
| 14774 | (win32_create_inferior): Handle Windows CE. |
| 14775 | Use strwinerror instead of strerror on Windows error |
| 14776 | codes. Add program to the error output. |
| 14777 | Don't close the main thread handle on Windows CE. |
| 14778 | (win32_attach): Use coredll.dll on Windows CE. |
| 14779 | (win32_kill): Close current process and current |
| 14780 | thread handles. |
| 14781 | (win32_detach): Use coredll.dll on Windows CE. |
| 14782 | (win32_resume): Let low target handle debug registers, and |
| 14783 | step request. |
| 14784 | (handle_exception): Add/Remove initial breakpoint. Avoid |
| 14785 | non-existant WSTOPSIG on Windows CE. |
| 14786 | (win32_read_inferior_memory): Cast to remove warning. |
| 14787 | (win32_arch_string): Go through the low target. |
| 14788 | (initialize_low): Call set_breakpoint_data with the low |
| 14789 | target's breakpoint. |
| 14790 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, |
| 14791 | FOP_REGNUM, mappings): Move to ... |
| 14792 | * win32-i386-low.c: ... here. |
| 14793 | * win32-low.c (win32_thread_info): Move to ... |
| 14794 | * win32-low.h: ... here. |
| 14795 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, |
| 14796 | win32-arm-low.c and wincecompat.c. |
| 14797 | (all:): Add $EXEEXT. |
| 14798 | (install-only:): Likewise. |
| 14799 | (gdbserver:): Likewise. |
| 14800 | (gdbreplay:): Likewise. |
| 14801 | * config.in: Regenerate. |
| 14802 | * configure: Regenerate. |
| 14803 | |
| 14804 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14805 | |
| 14806 | * win32-low.c: Rename typedef thread_info to |
| 14807 | win32_thread_info throughout. |
| 14808 | |
| 14809 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14810 | |
| 14811 | * win32-i386-low.c: Rename to ... |
| 14812 | * win32-low.c: ... this. |
| 14813 | * configure.srv: Replace win32-i386-low.o with win32-low.o. |
| 14814 | * Makefile.in: Likewise. |
| 14815 | |
| 14816 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14817 | |
| 14818 | * remote-utils.c (monitor_output): Constify msg parameter. |
| 14819 | * server.h (monitor_output): Likewise. |
| 14820 | * win32-i386-low.c (handle_output_debug_string): New. |
| 14821 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using |
| 14822 | handle_output_debug_string. |
| 14823 | (get_child_debug_event): Likewise. |
| 14824 | |
| 14825 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
| 14826 | |
| 14827 | * server.c (main): Correct strtoul check. |
| 14828 | |
| 14829 | 2007-03-27 Jon Ringle <jon@ringle.org> |
| 14830 | |
| 14831 | * linux-low.c: Check __ARCH_HAS_MMU__ also. |
| 14832 | |
| 14833 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
| 14834 | |
| 14835 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. |
| 14836 | |
| 14837 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
| 14838 | |
| 14839 | * terminal.h: Check HAVE_SGTTY_H. |
| 14840 | |
| 14841 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> |
| 14842 | |
| 14843 | * remote-utils.c (remote_open): Print out the assigned port number. |
| 14844 | |
| 14845 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 14846 | |
| 14847 | * remote-utils.c (monitor_output): New function. |
| 14848 | * server.c (debug_threads): Define here. |
| 14849 | (monitor_show_help): New function. |
| 14850 | (handle_query): Handle qRcmd. |
| 14851 | (main): Do not handle 'd' packet. |
| 14852 | * server.h (debug_threads, remote_debug, monitor_output): Declare. |
| 14853 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions |
| 14854 | of debug_threads. |
| 14855 | |
| 14856 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14857 | |
| 14858 | * Makefile.in (EXEEXT): New. |
| 14859 | (clean): Use $(EXEEXT). |
| 14860 | |
| 14861 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14862 | |
| 14863 | * target.h (target_ops): Rename send_signal to request_interrupt, |
| 14864 | and remove enum target_signal parameter. |
| 14865 | * linux-low.c (linux_request_interrupt): Rename from |
| 14866 | linux_send_signal, and always send SIGINT. |
| 14867 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, |
| 14868 | and always send SIGINT. |
| 14869 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead |
| 14870 | of send_signal. |
| 14871 | (input_interrupt): Likewise. |
| 14872 | |
| 14873 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
| 14874 | |
| 14875 | * server.c (get_features_xml): Check if target implemented |
| 14876 | arch_string. |
| 14877 | * win32-i386-low.c (win32_arch_string): New. |
| 14878 | (win32_target_ops): Add win32_arch_string as arch_string member. |
| 14879 | |
| 14880 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
| 14881 | |
| 14882 | * spu-low.c (spu_arch_string): New. |
| 14883 | (spu_target_ops): Add spu_arch_string. |
| 14884 | |
| 14885 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 14886 | |
| 14887 | * remote-utils.c: Remove HAVE_TERMINAL_H check. |
| 14888 | * configure.ac: Do not check for terminal.h. |
| 14889 | * configure, config.in: Regenerated. |
| 14890 | |
| 14891 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 14892 | |
| 14893 | * Makefile.in (OBS): Add $(XML_BUILTIN). |
| 14894 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. |
| 14895 | (clean): Update. |
| 14896 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) |
| 14897 | (arm-with-iwmmxt.c): New. |
| 14898 | * config.in, configure: Regenerate. |
| 14899 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, |
| 14900 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. |
| 14901 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. |
| 14902 | (arm*-*-linux*): Add iWMMXt and regset support. |
| 14903 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. |
| 14904 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) |
| 14905 | (arm_store_wmmxregset, target_regsets): New. |
| 14906 | * server.c (get_features_xml): Take annex argument. Check builtin |
| 14907 | XML documents. |
| 14908 | (handle_query): Handle multiple annexes. |
| 14909 | |
| 14910 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 14911 | |
| 14912 | * remote-utils.c [USE_WIN32API] (read, write): Define. |
| 14913 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and |
| 14914 | write. |
| 14915 | |
| 14916 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
| 14917 | |
| 14918 | * linux-i386-low.c (the_low_target): Set arch_string. |
| 14919 | * linux-x86-64-low.c (the_low_target): Likewise. |
| 14920 | * linux-low.c (linux_arch_string): New. |
| 14921 | (linux_target_ops): Add it. |
| 14922 | * linux-low.h (struct linux_target_ops): Add arch_string. |
| 14923 | * server.c (write_qxfer_response): Use const void * for DATA. |
| 14924 | (get_features_xml): New. |
| 14925 | (handle_query): Handle qXfer:features:read. Report it for qSupported. |
| 14926 | * target.h (struct target_ops): Add arch_string method. |
| 14927 | |
| 14928 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
| 14929 | Daniel Jacobowitz <dan@codesourcery.com> |
| 14930 | |
| 14931 | * linux-low.c (linux_kill): Handle being called with no threads. |
| 14932 | * win32-i386-low.c (win32_kill): Likewise. |
| 14933 | (get_child_debug_event): Clear current_process_handle. |
| 14934 | |
| 14935 | 2006-12-30 Denis PILAT <denis.pilat@st.com> |
| 14936 | Daniel Jacobowitz <dan@codesourcery.com> |
| 14937 | |
| 14938 | * remote-utils.c (remote_open): Check the type of specified |
| 14939 | serial port devices before opening them. |
| 14940 | * server.c (main): Kill the inferior if an error occurs during |
| 14941 | the first remote_open. |
| 14942 | |
| 14943 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
| 14944 | |
| 14945 | * README: Update supported targets. |
| 14946 | |
| 14947 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 14948 | |
| 14949 | * Makefile.in (clean): Remove reg-mips64.c. |
| 14950 | (reg-mips64.c, reg-mips64.o): New rules. |
| 14951 | * configure.srv: Handle mips64. Include regset support for mips. |
| 14952 | * linux-mips-low.c (union mips_register): New. |
| 14953 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. |
| 14954 | (mips_breakpoint, mips_breakpoint_at): Use int. |
| 14955 | (mips_collect_register, mips_supply_register) |
| 14956 | (mips_collect_register_32bit, mips_supply_register_32bit) |
| 14957 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) |
| 14958 | (mips_store_fpregset, target_regsets): New. |
| 14959 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. |
| 14960 | |
| 14961 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
| 14962 | |
| 14963 | * configure.srv: Add target "spu*-*-*". |
| 14964 | * Makefile.in (clean): Remove reg-spu.c. |
| 14965 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. |
| 14966 | * spu-low.c: New file. |
| 14967 | |
| 14968 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 14969 | |
| 14970 | * configure.ac: Correct td_thr_tls_get_addr test. |
| 14971 | * configure: Regenerated. |
| 14972 | |
| 14973 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 14974 | |
| 14975 | * linux-low.c (linux_wait_for_event): Reformat. Use the |
| 14976 | pass_signals array. |
| 14977 | * remote-utils.c (decode_address_to_semicolon): New. |
| 14978 | * server.c (pass_signals, handle_general_set): New. |
| 14979 | (handle_query): Mention QPassSignals for qSupported. |
| 14980 | (main): Call handle_general_set. |
| 14981 | * server.h (pass_signals, decode_address_to_semicolon): New. |
| 14982 | |
| 14983 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
| 14984 | |
| 14985 | * server.c (handle_query): Correct error handling for read_auxv. |
| 14986 | |
| 14987 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
| 14988 | |
| 14989 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets |
| 14990 | and srv_linux_thread_db to yes. |
| 14991 | * linux-s390-low.c (s390_fill_gregset): New function. |
| 14992 | (target_regsets): Define data structure. |
| 14993 | |
| 14994 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 14995 | |
| 14996 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. |
| 14997 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. |
| 14998 | * config.in, configure: Regenerated. |
| 14999 | * inferiors.c (gdb_id_to_thread): New function. |
| 15000 | (gdb_id_to_thread_id): Use it. |
| 15001 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. |
| 15002 | * linux-low.h (struct process_info): Add th member. |
| 15003 | (thread_db_get_tls_address): New prototype. |
| 15004 | * remote-utils.c (decode_address): Make non-static. |
| 15005 | * server.c (handle_query): Handle qGetTLSAddr. |
| 15006 | * server.h (gdb_id_to_thread, decode_address): New prototypes. |
| 15007 | * target.h (struct target_ops): Add get_tls_address. |
| 15008 | * thread-db.c (maybe_attach_thread): Save the thread handle. |
| 15009 | (thread_db_get_tls_address): New. |
| 15010 | |
| 15011 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 15012 | |
| 15013 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. |
| 15014 | (linux_resume_one_process): Take a siginfo_t *. Update all |
| 15015 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. |
| 15016 | (struct pending_signals): Add a siginfo_t. |
| 15017 | (linux_wait_for_process): Always set last_status. |
| 15018 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. |
| 15019 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. |
| 15020 | * linux-low.h (struct process_info): Add last_status. |
| 15021 | |
| 15022 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 15023 | |
| 15024 | * remote-utils.c (try_rle): New function. |
| 15025 | (putpkt_binary): Use it. |
| 15026 | |
| 15027 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
| 15028 | |
| 15029 | * Makefile.in (clean): Clean reg-x86-64-linux.c. |
| 15030 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. |
| 15031 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. |
| 15032 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. |
| 15033 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating |
| 15034 | point registers. |
| 15035 | |
| 15036 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
| 15037 | |
| 15038 | * server.c (terminal_fd): New variable. |
| 15039 | (old_foreground_pgrp): Likewise. |
| 15040 | (restore_old_foreground_pgrp): New function. |
| 15041 | (start_inferior): Record the terminal file descriptor in terminal_fd |
| 15042 | and its original foreground group in old_foreground_pgrp. Register |
| 15043 | restore_old_foreground_pgrp with atexit(). |
| 15044 | |
| 15045 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
| 15046 | |
| 15047 | * server.c (handle_query): Correct qPart to qXfer. |
| 15048 | |
| 15049 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 15050 | |
| 15051 | * configure.ac: Check for more headers which are missing on |
| 15052 | Windows. Automatically supply -lwsock32 and USE_WIN32API. |
| 15053 | * configure.srv: Add Cygwin and mingw32. |
| 15054 | * remote-utils.c: Don't include headers unconditionally which |
| 15055 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 15056 | (remote_open): Adjust for mingw32 support. Flush |
| 15057 | standard error after writing to it. |
| 15058 | (remote_close, putpkt_binary, input_interrupt, block_async_io) |
| 15059 | (unblock_async_io, enable_async_io, disable_async_io) |
| 15060 | (readchar, getpkt): Update for Winsock support. |
| 15061 | (prepare_resume_reply): Expect a protocol signal number. |
| 15062 | * server.c: Disable <sys/wait.h> on mingw32. |
| 15063 | (start_inferior): Adjust for mingw32 support. Flush |
| 15064 | standard error after writing to it. |
| 15065 | (attach_inferior): Likewise. Use protocol signal |
| 15066 | numbers. |
| 15067 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers |
| 15068 | and names. |
| 15069 | * win32-i386-low.c: New file. |
| 15070 | * Makefile.in (XM_CLIBS): Set. |
| 15071 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). |
| 15072 | (win32-i386-low.o): New dependency rule. |
| 15073 | * linux-low.c (linux_wait): Use target signal numbers. |
| 15074 | * target.h (struct target_ops): Doc fix. |
| 15075 | * server.h (target_signal_to_name): New prototype. |
| 15076 | * gdbreplay.c: Don't include headers unconditionally which |
| 15077 | are missing on mingw32. Include <winsock.h> for mingw32. |
| 15078 | (remote_close, remote_open): Adjust for Winsock support. |
| 15079 | * configure, config.in: Regenerated. |
| 15080 | |
| 15081 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 15082 | |
| 15083 | * server.c (decode_xfer_read, write_qxfer_response): New. |
| 15084 | (handle_query): Take a packet length argument. Handle |
| 15085 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in |
| 15086 | the qSupported response. |
| 15087 | (main): Update call to handle_query. |
| 15088 | |
| 15089 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
| 15090 | |
| 15091 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. |
| 15092 | (putpkt_binary): Renamed from putpkt and adjusted for binary |
| 15093 | data. |
| 15094 | (putpkt): New wrapper for putpkt_binary. |
| 15095 | (readchar): Don't mask off the high bit. |
| 15096 | (decode_X_packet): New function. |
| 15097 | * server.c (main): Call putpkt_binary if a handler sets the packet |
| 15098 | length. Save the length of the incoming packet. Handle 'X'. |
| 15099 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. |
| 15100 | |
| 15101 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
| 15102 | |
| 15103 | * server.c (handle_query): Handle qSupported. |
| 15104 | |
| 15105 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 15106 | |
| 15107 | * remote-utils.c (all_symbols_looked_up): New variable. |
| 15108 | (look_up_one_symbol): Check it. |
| 15109 | * server.h (look_up_one_symbol): New declaration. |
| 15110 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. |
| 15111 | |
| 15112 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
| 15113 | |
| 15114 | * Makefile.in (linux-arm-low.o): Update dependencies. |
| 15115 | * linux-arm-low.c: Include "gdb_proc_service.h". |
| 15116 | (PTRACE_GET_THREAD_AREA): Define. |
| 15117 | (ps_get_thread_area): New function. |
| 15118 | |
| 15119 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
| 15120 | |
| 15121 | * configure.srv (m68k*-*-uclinux*): New target. |
| 15122 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. |
| 15123 | (linux_resume_one_process): Remove extraneous cast. |
| 15124 | (linux_read_offsets): New. |
| 15125 | (linux_target_op): Add linux_read_offsets on mmuless systems. |
| 15126 | * server.c (handle_query): Add qOffsets logic. |
| 15127 | * target.h (struct target_ops): Add read_offsets. |
| 15128 | |
| 15129 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 15130 | |
| 15131 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". |
| 15132 | (PTRACE_GET_THREAD_AREA): Define. |
| 15133 | (ps_get_thread_area): New function. |
| 15134 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) |
| 15135 | (linux-x86-64-low.o): Update. |
| 15136 | |
| 15137 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 15138 | |
| 15139 | * configure.ac: Remove checks for prfpregset_t. |
| 15140 | * gdb_proc_service.h: New file. |
| 15141 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the |
| 15142 | new "gdb_proc_service.h". |
| 15143 | * proc-service.c: Likewise. |
| 15144 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. |
| 15145 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. |
| 15146 | * Makefile.in (gdb_proc_service_h): Updated. |
| 15147 | * configure, config.in: Regenerated. |
| 15148 | |
| 15149 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 15150 | |
| 15151 | * remote-utils.c (prepare_resume_reply): Move declaration |
| 15152 | of gdb_id_from_wait to the top of the block. |
| 15153 | |
| 15154 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
| 15155 | |
| 15156 | * linux-low.c (regsets_store_inferior_registers): Read the regset |
| 15157 | from the target before filling it. |
| 15158 | |
| 15159 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
| 15160 | |
| 15161 | * server.c (attach_inferior): Return SIGTRAP for a successful |
| 15162 | attach. |
| 15163 | |
| 15164 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
| 15165 | |
| 15166 | * Makefile.in (OBS): Add version.o. |
| 15167 | (STAGESTUFF): Delete. |
| 15168 | (version.o): Add dependencies. |
| 15169 | (version.c): Replace rule. |
| 15170 | (clean): Remove version.c. |
| 15171 | * server.c (gdbserver_version): New. |
| 15172 | (gdbserver_usage): Use printf. |
| 15173 | (main): Handle --version and --help. |
| 15174 | * server.h (version, host_name): Add declarations. |
| 15175 | |
| 15176 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
| 15177 | |
| 15178 | * linux-arm-low.c: |
| 15179 | * linux-arm-low.c: |
| 15180 | * inferiors.c: |
| 15181 | * i387-fp.h: |
| 15182 | * i387-fp.c: |
| 15183 | * gdbreplay.c: |
| 15184 | * regcache.c: |
| 15185 | * proc-service.c: |
| 15186 | * mem-break.h: |
| 15187 | * mem-break.c: |
| 15188 | * linux-x86-64-low.c: |
| 15189 | * linux-sh-low.c: |
| 15190 | * linux-s390-low.c: |
| 15191 | * linux-ppc64-low.c: |
| 15192 | * linux-ppc-low.c: |
| 15193 | * linux-mips-low.c: |
| 15194 | * linux-m68k-low.c: |
| 15195 | * linux-m32r-low.c: |
| 15196 | * linux-low.h: |
| 15197 | * linux-low.c: |
| 15198 | * linux-ia64-low.c: |
| 15199 | * linux-i386-low.c: |
| 15200 | * linux-crisv32-low.c: |
| 15201 | * thread-db.c: |
| 15202 | * terminal.h: |
| 15203 | * target.h: |
| 15204 | * target.c: |
| 15205 | * server.h: |
| 15206 | * server.c: |
| 15207 | * remote-utils.c: |
| 15208 | * regcache.h: |
| 15209 | * utils.c: |
| 15210 | * Makefile.in: |
| 15211 | * configure.ac: |
| 15212 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
| 15213 | address. |
| 15214 | |
| 15215 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 15216 | |
| 15217 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. |
| 15218 | (arm_breakpoint_at): Recognize both breakpoints. |
| 15219 | (the_low_target): Use the correct breakpoint instruction. |
| 15220 | |
| 15221 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
| 15222 | |
| 15223 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. |
| 15224 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) |
| 15225 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. |
| 15226 | (the_low_target): Update. |
| 15227 | |
| 15228 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
| 15229 | |
| 15230 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. |
| 15231 | |
| 15232 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. |
| 15233 | (ia64_num_regs): Reduce to 462. |
| 15234 | |
| 15235 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
| 15236 | |
| 15237 | * acinclude.m4: Correct quoting. |
| 15238 | * aclocal.m4: Regenerated. |
| 15239 | |
| 15240 | Suggested by SZOKOVACS Robert <szo@ies.hu>: |
| 15241 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. |
| 15242 | (thread_db_init): Call thread_db_err_str. |
| 15243 | * configure.ac: Check for TD_VERSION. |
| 15244 | * config.in, configure: Regenerated. |
| 15245 | |
| 15246 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
| 15247 | |
| 15248 | * server.h (error, fatal, warning): Add ATTR_FORMAT. |
| 15249 | |
| 15250 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 15251 | |
| 15252 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS |
| 15253 | is not available. Define HAVE_PTRACE_GETREGS if it is. |
| 15254 | * config.in, configure: Regenerated. |
| 15255 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. |
| 15256 | * linux-i386-low.c, linux-m68k-low.c: Update to use |
| 15257 | HAVE_PTRACE_GETREGS. |
| 15258 | * linux-low.c (regsets_fetch_inferior_registers) |
| 15259 | (regsets_store_inferior_registers): Only return 0 if we processed |
| 15260 | GENERAL_REGS. |
| 15261 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. |
| 15262 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. |
| 15263 | |
| 15264 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 15265 | |
| 15266 | * inferiors.c (struct thread_info): Add gdb_id. |
| 15267 | (add_thread): Add gdb_id argument. |
| 15268 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. |
| 15269 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update |
| 15270 | calls to add_thread. |
| 15271 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. |
| 15272 | * server.c (handle_query): Use thread_to_gdb_id. |
| 15273 | (handle_v_cont, main): Use gdb_id_to_thread_id. |
| 15274 | * server.h (add_thread): Update prototype. |
| 15275 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New |
| 15276 | prototypes. |
| 15277 | |
| 15278 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
| 15279 | |
| 15280 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle |
| 15281 | left-padded registers. |
| 15282 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. |
| 15283 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. |
| 15284 | |
| 15285 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
| 15286 | |
| 15287 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. |
| 15288 | * configure: Regenerate. |
| 15289 | * config.in: Regenerate. |
| 15290 | * server.h (NEED_DECLARATION_STRERROR): |
| 15291 | Replace with !HAVE_DECL_STRERROR. |
| 15292 | |
| 15293 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
| 15294 | |
| 15295 | * linux-low.c (linux_wait, linux_send_signal): Don't test |
| 15296 | an unsigned long variable for > 0 if it could be MAX_ULONG. |
| 15297 | * server.c (myresume): Likewise. |
| 15298 | * target.c (set_desired_inferior): Likewise. |
| 15299 | |
| 15300 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
| 15301 | |
| 15302 | * configure.ac: Simplify and improve check for socklen_t. |
| 15303 | * configure, config.in: Regenerate. |
| 15304 | |
| 15305 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
| 15306 | |
| 15307 | * acconfig.h: Remove. |
| 15308 | * configure.ac: Add a test for socklen_t. Use three-argument |
| 15309 | AC_DEFINE throughout. |
| 15310 | * config.in: Regenerated using autoheader 2.59. |
| 15311 | * configure: Regenerated. |
| 15312 | |
| 15313 | * gdbreplay.c (socklen_t): Provide a default. |
| 15314 | (remote_open): Use socklen_t. |
| 15315 | * remote-utils.c (socklen_t): Provide a default. |
| 15316 | (remote_open): Use socklen_t. |
| 15317 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use |
| 15318 | unsigned char. |
| 15319 | |
| 15320 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned |
| 15321 | char for buffers. |
| 15322 | * linux-low.c (linux_read_memory, linux_write_memory) |
| 15323 | (linux_read_auxv): Likewise. |
| 15324 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) |
| 15325 | (check_mem_write): Likewise. |
| 15326 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): |
| 15327 | Likewise. |
| 15328 | * regcache.c (struct inferior_rgcache_data, registers_to_string) |
| 15329 | (registers_from_string, register_data): Likewise. |
| 15330 | * server.c (handle_query, main): Likewise. |
| 15331 | * server.h (convert_ascii_to_int, convert_int_to_ascii) |
| 15332 | (decode_M_packet): Likewise. |
| 15333 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. |
| 15334 | * target.h (struct target_ops): Update read_memory, write_memory, |
| 15335 | and read_auxv. |
| 15336 | (read_inferior_memory, write_inferior_memory): Update. |
| 15337 | * linux-low.h (struct linux_target_ops): Change type of breakpoint |
| 15338 | to unsigned char *. |
| 15339 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, |
| 15340 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, |
| 15341 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, |
| 15342 | linux-s390-low.c, linux-sh-low.c: Update for changes in |
| 15343 | read_inferior_memory and the_low_target->breakpoint. |
| 15344 | |
| 15345 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
| 15346 | |
| 15347 | * Makefile.in (SFILES): Add linux-ppc64-low.c. |
| 15348 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. |
| 15349 | * configure.srv: Add powerpc64-*-linux*. |
| 15350 | * linux-ppc64-low.c: New file. |
| 15351 | |
| 15352 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
| 15353 | |
| 15354 | * linux-cris-low.c: New file with support for CRIS. |
| 15355 | * linux-crisv32-low.c: Ditto for CRISv32. |
| 15356 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. |
| 15357 | (clean): Add reg-cris.c and reg-crisv32.c. |
| 15358 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
| 15359 | reg-crisv32.o, and reg-crisv32.c to make rules. |
| 15360 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of |
| 15361 | recognized targets. |
| 15362 | |
| 15363 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
| 15364 | |
| 15365 | * linux-low.c (fetch_register): Ensure buffer size is a multiple |
| 15366 | of sizeof (PTRACE_XFER_TYPE). |
| 15367 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. |
| 15368 | |
| 15369 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
| 15370 | |
| 15371 | * target.h (struct target_ops): Add insert_watchpoint, |
| 15372 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
| 15373 | pointers for hardware watchpoint support. |
| 15374 | * linux-low.h (struct linux_target_ops): Ditto. |
| 15375 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) |
| 15376 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add |
| 15377 | to linux_target_ops. |
| 15378 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to |
| 15379 | reply packet. |
| 15380 | * server.c (main): Recognize 'Z' and 'z' packets. |
| 15381 | |
| 15382 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
| 15383 | |
| 15384 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. |
| 15385 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. |
| 15386 | (the_low_target): Add new members. |
| 15387 | |
| 15388 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 15389 | |
| 15390 | * proc-service.c (ps_lgetregs): Search all_processes instead of |
| 15391 | all_threads. |
| 15392 | |
| 15393 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 15394 | |
| 15395 | * server.c (start_inferior): Change return type to int. |
| 15396 | (attach_inferior): Change sigptr to int *. |
| 15397 | (handle_v_cont, handle_v_requests): Change signal to int *. |
| 15398 | (main): Change signal to int. |
| 15399 | |
| 15400 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> |
| 15401 | |
| 15402 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. |
| 15403 | * configure.srv: Add m32r*-*-linux*. |
| 15404 | * linux-m32r-low.c: New file. |
| 15405 | |
| 15406 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
| 15407 | |
| 15408 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. |
| 15409 | |
| 15410 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
| 15411 | |
| 15412 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): |
| 15413 | Take unsigned long arguments for PIDs. |
| 15414 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) |
| 15415 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) |
| 15416 | (wait_for_sigstop, linux_resume_one_process) |
| 15417 | (regsets_fetch_inferior_registers, linux_send_signal) |
| 15418 | (linux_read_auxv): Likewise. Update the types of variables holding |
| 15419 | PIDs. Update format string specifiers. |
| 15420 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. |
| 15421 | * remote-utils.c (prepare_resume_reply): Likewise. |
| 15422 | * server.c (cont_thread, general_thread, step_thread) |
| 15423 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to |
| 15424 | unsigned long. |
| 15425 | (handle_query): Update format specifiers. |
| 15426 | (handle_v_cont, main): Use strtoul for thread IDs. |
| 15427 | * server.h (struct inferior_list_entry): Use unsigned long for ID. |
| 15428 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) |
| 15429 | (general_thread, step_thread, thread_from_wait) |
| 15430 | (old_thread_from_wait): Update. |
| 15431 | * target.h (struct thread_resume): Use unsigned long for THREAD. |
| 15432 | (struct target_ops): Use unsigned long for arguments to attach and |
| 15433 | thread_alive. |
| 15434 | |
| 15435 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 15436 | |
| 15437 | * acinclude.m4: Include bfd/bfd.m4 directly. |
| 15438 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis |
| 15439 | <agriffis@toolchain.org>. |
| 15440 | * aclocal.m4, configure: Regenerated. |
| 15441 | |
| 15442 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
| 15443 | |
| 15444 | * configure.ac: Rename configure.in, require autoconf 2.59. |
| 15445 | * configure: Re-generate. |
| 15446 | |
| 15447 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
| 15448 | |
| 15449 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset |
| 15450 | LIBS when finished. |
| 15451 | * aclocal.m4: Regenerated. |
| 15452 | * configure: Regenerated. |
| 15453 | |
| 15454 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
| 15455 | |
| 15456 | * linux-m68k-low.c (m68k_num_gregs): Define. |
| 15457 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) |
| 15458 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. |
| 15459 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) |
| 15460 | (m68k_breakpoint_at): New. Add to the_low_target. |
| 15461 | |
| 15462 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and |
| 15463 | srv_linux_thread_db to yes. |
| 15464 | |
| 15465 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
| 15466 | |
| 15467 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. |
| 15468 | (ARCH_SET_FS): Likewise. |
| 15469 | (ARCH_GET_FS): Likewise. |
| 15470 | (ARCH_GET_GS): Likewise. |
| 15471 | |
| 15472 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 15473 | |
| 15474 | * linux-i386-low.c (ps_get_thread_area): New. |
| 15475 | * linux-x86-64-low.c (ps_get_thread_area): New. |
| 15476 | * linux-low.c: Include <sys/syscall.h>. |
| 15477 | (linux_kill_one_process): Don't kill the first thread here. |
| 15478 | (linux_kill): Kill the first thread here. |
| 15479 | (kill_lwp): New function. |
| 15480 | (send_sigstop, linux_send_signal): Use it. |
| 15481 | * proc-service.c: Clean up #ifdefs. |
| 15482 | (fpregset_info): Delete. |
| 15483 | (ps_lgetregs): Update and enable implementation. |
| 15484 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled |
| 15485 | implementations. |
| 15486 | * remote-utils.c (struct sym_cache, symbol_cache): New. |
| 15487 | (input_interrupt): Print a clearer message. |
| 15488 | (async_io_enabled): New variable. |
| 15489 | (enable_async_io, disable_async_io): Use it. Update comments. |
| 15490 | (look_up_one_symbol): Use the symbol cache. |
| 15491 | * thread-db.c (thread_db_look_up_symbols): New function. |
| 15492 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. |
| 15493 | |
| 15494 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
| 15495 | |
| 15496 | * configure.in: Test for -rdynamic. |
| 15497 | * configure: Regenerated. |
| 15498 | * Makefile (INTERNAL_LDFLAGS): New. |
| 15499 | (gdbserver, gdbreplay): Use it. |
| 15500 | |
| 15501 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
| 15502 | |
| 15503 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. |
| 15504 | |
| 15505 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
| 15506 | |
| 15507 | * linux-low.c (linux_wait): Clear all_processes list also. |
| 15508 | |
| 15509 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 15510 | |
| 15511 | * linux-low.c: Include <errno.h>. Remove extern declaration of |
| 15512 | errno. |
| 15513 | |
| 15514 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
| 15515 | |
| 15516 | * gdbreplay.c, server.h, utils.c: Update copyright years. |
| 15517 | |
| 15518 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 15519 | |
| 15520 | * server.c (main): Print child status or termination signal from |
| 15521 | variable 'signal', not 'sig'. |
| 15522 | |
| 15523 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
| 15524 | |
| 15525 | * linux-low.c (linux_read_memory): Change return type to |
| 15526 | int. Check for and return error from ptrace(). |
| 15527 | * target.c (read_inferior_memory): Change return type to int. Pass |
| 15528 | back return status from the_target->read_memory(). |
| 15529 | * target.h (struct target_ops): Adapt *read_memory() prototype. |
| 15530 | Update comment. |
| 15531 | (read_inferior_memory): Adapt prototype. |
| 15532 | * server.c (main): Return an error packet if |
| 15533 | read_inferior_memory() returns an error. |
| 15534 | |
| 15535 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
| 15536 | |
| 15537 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. |
| 15538 | Unify with other clean targets. |
| 15539 | |
| 15540 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 15541 | |
| 15542 | * server.c (handle_v_cont): Call set_desired_inferior. |
| 15543 | |
| 15544 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 15545 | |
| 15546 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". |
| 15547 | |
| 15548 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 15549 | |
| 15550 | * linux-low.c (linux_wait): Unblock async I/O. |
| 15551 | (linux_resume): Block and enable async I/O. |
| 15552 | * remote-utils.c (block_async_io, unblock_async_io): New functions. |
| 15553 | * server.h (block_async_io, unblock_async_io): Add prototypes. |
| 15554 | |
| 15555 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 15556 | |
| 15557 | * remote-utils.c (remote_open): Print a status notice after |
| 15558 | opening a TCP port. |
| 15559 | * server.c (attach_inferior): Print a status notice after |
| 15560 | attaching. |
| 15561 | |
| 15562 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
| 15563 | |
| 15564 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. |
| 15565 | |
| 15566 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
| 15567 | |
| 15568 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the |
| 15569 | error packet. |
| 15570 | * server.c, target.h: Update copyright years. |
| 15571 | |
| 15572 | 2004-02-25 Roland McGrath <roland@redhat.com> |
| 15573 | |
| 15574 | * target.h (struct target_ops): New member `read_auxv'. |
| 15575 | * server.c (handle_query): Handle qPart:auxv:read: query using that. |
| 15576 | * linux-low.c (linux_read_auxv): New function. |
| 15577 | (linux_target_ops): Initialize `read_auxv' member to that. |
| 15578 | |
| 15579 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
| 15580 | |
| 15581 | Committed by Jim Blandy <jimb@redhat.com>. |
| 15582 | |
| 15583 | * linux-s390-low.c (s390_num_regs): Update. |
| 15584 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
| 15585 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
| 15586 | |
| 15587 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
| 15588 | |
| 15589 | * linux-low.c: Update copyright year. |
| 15590 | (check_removed_breakpoint): Clear pending_is_breakpoint. |
| 15591 | (linux_set_resume_request, linux_queue_one_thread) |
| 15592 | (resume_status_pending_p): New functions. |
| 15593 | (linux_continue_one_thread): Use process->resume. |
| 15594 | (linux_resume): Only resume threads if there are no pending events. |
| 15595 | * linux-low.h (struct process_info): Add resume request |
| 15596 | pointer. |
| 15597 | |
| 15598 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
| 15599 | |
| 15600 | * regcache.c (new_register_cache): Clear the allocated register |
| 15601 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. |
| 15602 | |
| 15603 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
| 15604 | |
| 15605 | * linux-low.c (linux_resume): Take a struct thread_resume * |
| 15606 | argument. |
| 15607 | (linux_wait): Update call. |
| 15608 | (resume_ptr): New static variable. |
| 15609 | (linux_continue_one_thread): Renamed from |
| 15610 | linux_continue_one_process. Use resume_ptr. |
| 15611 | (linux_resume): Use linux_continue_one_thread. |
| 15612 | * server.c (handle_v_cont, handle_v_requests): New functions. |
| 15613 | (myresume): New function. |
| 15614 | (main): Handle 'v' case. |
| 15615 | * target.h (struct thread_resume): New type. |
| 15616 | (struct target_ops): Change argument of "resume" to struct |
| 15617 | thread_resume *. |
| 15618 | (myresume): Delete macro. |
| 15619 | |
| 15620 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
| 15621 | |
| 15622 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. |
| 15623 | (uninstall): Support DESTDIR. |
| 15624 | |
| 15625 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
| 15626 | |
| 15627 | * configure.srv: Add xscale*linux copy of arm*linux entry. |
| 15628 | |
| 15629 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
| 15630 | |
| 15631 | * linux-arm-low.c (arm_reinsert_addr): New function. |
| 15632 | (the_low_target): Add arm_reinsert_addr. |
| 15633 | |
| 15634 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
| 15635 | |
| 15636 | * mem-break.c: Remove whitespace at end of file. |
| 15637 | |
| 15638 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 15639 | |
| 15640 | * configure.in: Check whether we need to prototype strerror. |
| 15641 | * server.h: Optionally prototype strerror. |
| 15642 | * gdbreplay.c (perror_with_name): Use strerror. |
| 15643 | * linux-low.c (linux_attach_lwp): Use strerror. |
| 15644 | * utils.c (perror_with_name): Use strerror. |
| 15645 | * config.in, configure: Regenerated. |
| 15646 | |
| 15647 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
| 15648 | |
| 15649 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by |
| 15650 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. |
| 15651 | |
| 15652 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
| 15653 | |
| 15654 | * Makefile.in (SFILES): Update. |
| 15655 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, |
| 15656 | low-sun3.c: Remove files. |
| 15657 | |
| 15658 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
| 15659 | |
| 15660 | * linux-low.c: Move comment to linux_thread_alive where it belonged. |
| 15661 | (linux_detach_one_process, linux_detach): New functions. |
| 15662 | (linux_target_ops): Add linux_detach. |
| 15663 | * server.c (main): Handle 'D' packet. |
| 15664 | * target.h (struct target_ops): Add "detach" member. |
| 15665 | (detach_inferior): Define. |
| 15666 | |
| 15667 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
| 15668 | |
| 15669 | From Kelley Cook <kelleycook@wideopenwest.com>: |
| 15670 | * configure.srv: Accept i[34567]86 variants. |
| 15671 | |
| 15672 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
| 15673 | |
| 15674 | * linux-low.c (linux_wait_for_event): Correct comment typos. |
| 15675 | (linux_resume_one_process): Call check_removed_breakpoint. |
| 15676 | (linux_send_signal): New function. |
| 15677 | (linux_target_ops): Add linux_send_signal. |
| 15678 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead |
| 15679 | of kill. |
| 15680 | * target.h (struct target_ops): Add send_signal. |
| 15681 | |
| 15682 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
| 15683 | |
| 15684 | * linux-low.c (usr_store_inferior_registers): Transfer buf in |
| 15685 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, |
| 15686 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing |
| 15687 | away part of the register's value. |
| 15688 | |
| 15689 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
| 15690 | |
| 15691 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. |
| 15692 | (linux_wait_for_event, linux_init_signals): Likewise. |
| 15693 | |
| 15694 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
| 15695 | |
| 15696 | * configure.in: Check for stdlib.h. |
| 15697 | * configure: Regenerated. |
| 15698 | * config.in: Regenerated. |
| 15699 | |
| 15700 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
| 15701 | |
| 15702 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. |
| 15703 | |
| 15704 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
| 15705 | |
| 15706 | * Makefile.in: Remove obsolete code. |
| 15707 | |
| 15708 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
| 15709 | |
| 15710 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of |
| 15711 | defined(PT_FPR0_HI). |
| 15712 | |
| 15713 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
| 15714 | |
| 15715 | * linux-arm-low.c (arm_num_regs): Increase. |
| 15716 | (arm_regmap): Include status register. |
| 15717 | |
| 15718 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> |
| 15719 | |
| 15720 | * linux-low.c (register_addr): Remove incorrect -1 check. |
| 15721 | |
| 15722 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
| 15723 | |
| 15724 | * linux-low.c (linux_create_inferior): Call setpgid. Return |
| 15725 | the new PID. |
| 15726 | (unstopped_p, linux_signal_pid): Remove. |
| 15727 | (linux_target_ops): Remove linux_signal_pid. |
| 15728 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid |
| 15729 | global instead of target method. |
| 15730 | * target.h (struct target_ops): Remove signal_pid. Update comment |
| 15731 | for create_inferior. |
| 15732 | * server.c (signal_pid): New variable. |
| 15733 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in |
| 15734 | gdbserver. Set the child to be the foreground process group. |
| 15735 | (attach_inferior): Set signal_pid. |
| 15736 | |
| 15737 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
| 15738 | |
| 15739 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. |
| 15740 | |
| 15741 | 2002-08-20 Jim Blandy <jimb@redhat.com> |
| 15742 | |
| 15743 | * Makefile.in (LDFLAGS): Allow the configure script to establish a |
| 15744 | default for this. |
| 15745 | |
| 15746 | 2002-08-01 Andrew Cagney <cagney@redhat.com> |
| 15747 | |
| 15748 | * Makefile.in: Make chill references obsolete. |
| 15749 | |
| 15750 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> |
| 15751 | |
| 15752 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. |
| 15753 | * configure: Regenerate. |
| 15754 | * config.in: Regenerate. |
| 15755 | |
| 15756 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> |
| 15757 | |
| 15758 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. |
| 15759 | (perror_with_name, remote_close, remote_open, expect, play): Static. |
| 15760 | |
| 15761 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> |
| 15762 | |
| 15763 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
| 15764 | byte offsets instead of an array of indexes. |
| 15765 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. |
| 15766 | |
| 15767 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> |
| 15768 | |
| 15769 | * regcache.c: Add comment. |
| 15770 | |
| 15771 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> |
| 15772 | |
| 15773 | * thread-db.c: New file. |
| 15774 | * proc-service.c: New file. |
| 15775 | * acinclude.m4: New file. |
| 15776 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, |
| 15777 | proc-service.o, and thread-db.o. |
| 15778 | (linux-low.o): Add USE_THREAD_DB. |
| 15779 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, |
| 15780 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. |
| 15781 | * aclocal.m4: Regenerated. |
| 15782 | * config.in: Regenerated. |
| 15783 | * configure: Regenerated. |
| 15784 | * configure.in: Check for proc_service.h, sys/procfs.h, |
| 15785 | thread_db.h, and linux/elf.h headrs. |
| 15786 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and |
| 15787 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. |
| 15788 | Check for -lthread_db and thread support. |
| 15789 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, |
| 15790 | PowerPC, and SuperH. |
| 15791 | * i387-fp.c: Constify arguments. |
| 15792 | * i387-fp.h: Likewise. |
| 15793 | * inferiors.c: (struct thread_info): Renamed from |
| 15794 | `struct inferior_info'. Remove PID member. Use generic inferior |
| 15795 | list header. All uses updated. |
| 15796 | (inferiors, signal_pid): Removed. |
| 15797 | (all_threads): New variable. |
| 15798 | (get_thread): Define. |
| 15799 | (add_inferior_to_list): New function. |
| 15800 | (for_each_inferior): New function. |
| 15801 | (change_inferior_id): New function. |
| 15802 | (add_inferior): Removed. |
| 15803 | (remove_inferior): New function. |
| 15804 | (add_thread): New function. |
| 15805 | (free_one_thread): New function. |
| 15806 | (remove_thread): New function. |
| 15807 | (clear_inferiors): Use for_each_inferior and free_one_thread. |
| 15808 | (find_inferior): New function. |
| 15809 | (find_inferior_id): New function. |
| 15810 | (inferior_target_data): Update argument type. |
| 15811 | (set_inferior_target_data): Likewise. |
| 15812 | (inferior_regcache_data): Likewise. |
| 15813 | (set_inferior_regcache_data): Likewise. |
| 15814 | * linux-low.c (linux_bp_reinsert): Remove. |
| 15815 | (all_processes, stopping_threads, using_thrads) |
| 15816 | (struct pending_signals, debug_threads, pid_of): New. |
| 15817 | (inferior_pid): Replace with macro. |
| 15818 | (struct inferior_linux_data): Remove. |
| 15819 | (get_stop_pc, add_process): New functions. |
| 15820 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. |
| 15821 | Use add_process and add_thread. |
| 15822 | (linux_attach_lwp): New function, based on old linux_attach. Use |
| 15823 | add_process and add_thread. Set stop_expected for new threads. |
| 15824 | (linux_attach): New function. |
| 15825 | (linux_kill_one_process): New function. |
| 15826 | (linux_kill): Kill all LWPs. |
| 15827 | (linux_thread_alive): Use find_inferior_id. |
| 15828 | (check_removed_breakpoints, status_pending_p): New functions. |
| 15829 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. |
| 15830 | Update. Use WNOHANG. Wait for cloned processes also. Update process |
| 15831 | struct for the found process. |
| 15832 | (linux_wait_for_event): New function. |
| 15833 | (linux_wait): Use it. Support LWPs. |
| 15834 | (send_sigstop, wait_for_sigstop, stop_all_processes) |
| 15835 | (linux_resume_one_process, linux_continue_one_process): New functions. |
| 15836 | (linux_resume): Support LWPs. |
| 15837 | (REGISTER_RAW_SIZE): Remove. |
| 15838 | (fetch_register): Use register_size instead. Call supply_register. |
| 15839 | (usr_store_inferior_registers): Likewise. Call collect_register. |
| 15840 | Fix recursive case. |
| 15841 | (regsets_fetch_inferior_registers): Improve error message. |
| 15842 | (regsets_store_inferior_registers): Add debugging. |
| 15843 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. |
| 15844 | (unstopped_p, linux_signal_pid): New functions. |
| 15845 | (linux_target_ops): Add linux_signal_pid. |
| 15846 | (linux_init_signals): New function. |
| 15847 | (initialize_low): Call it. Initialize using_threads. |
| 15848 | * regcache.c (inferior_regcache_data): Add valid |
| 15849 | flag. |
| 15850 | (get_regcache): Fetch registers lazily. Add fetch argument |
| 15851 | and update all callers. |
| 15852 | (regcache_invalidate_one, regcache_invalidate): New |
| 15853 | functions. |
| 15854 | (new_register_cache): Renamed from create_register_cache. |
| 15855 | Return the new regcache. |
| 15856 | (free_register_cache): Change argument to a void *. |
| 15857 | (registers_to_string, registers_from_string): Call get_regcache |
| 15858 | with fetch flag set. |
| 15859 | (register_data): Make static. Pass fetch flag to get_regcache. |
| 15860 | (supply_register): Call get_regcache with fetch flag clear. |
| 15861 | (collect_register): Call get_regcache with fetch flag set. |
| 15862 | (collect_register_as_string): New function. |
| 15863 | * regcache.h: Update. |
| 15864 | * remote-utils.c (putpkt): Flush after debug output and use |
| 15865 | stderr. |
| 15866 | Handle input interrupts while waiting for an ACK. |
| 15867 | (input_interrupt): Use signal_pid method. |
| 15868 | (getpkt): Flush after debug output and use stderr. |
| 15869 | (outreg): Use collect_register_as_string. |
| 15870 | (new_thread_notify, dead_thread_notify): New functions. |
| 15871 | (prepare_resume_reply): Check using_threads. Set thread_from_wait |
| 15872 | and general_thread. |
| 15873 | (look_up_one_symbol): Flush after debug output. |
| 15874 | * server.c (step_thread, server_waiting): New variables. |
| 15875 | (start_inferior): Don't use signal_pid. Update call to mywait. |
| 15876 | (attach_inferior): Update call to mywait. |
| 15877 | (handle_query): Handle qfThreadInfo and qsThreadInfo. |
| 15878 | (main): Don't fetch/store registers explicitly. Use |
| 15879 | set_desired_inferior. Support proposed ``Hs'' packet. Update |
| 15880 | calls to mywait. |
| 15881 | * server.h: Update. |
| 15882 | (struct inferior_list, struct_inferior_list_entry): New. |
| 15883 | * target.c (set_desired_inferior): New. |
| 15884 | (write_inferior_memory): Constify. |
| 15885 | (mywait): New function. |
| 15886 | * target.h: Update. |
| 15887 | (struct target_ops): New signal_pid method. |
| 15888 | (mywait): Removed macro, added prototype. |
| 15889 | |
| 15890 | * linux-low.h (regset_func): Removed. |
| 15891 | (regset_fill_func, regset_store_func): New. |
| 15892 | (enum regset_type): New. |
| 15893 | (struct regset_info): Add type field. Use new operation types. |
| 15894 | (struct linux_target_ops): stop_pc renamed to get_pc. |
| 15895 | Add decr_pc_after_break and breakpoint_at. |
| 15896 | (get_process, get_thread_proess, get_process_thread) |
| 15897 | (strut process_info, all_processes, linux_attach_lwp) |
| 15898 | (thread_db_init): New. |
| 15899 | |
| 15900 | * linux-arm-low.c (arm_get_pc, arm_set_pc, |
| 15901 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. |
| 15902 | (the_low_target): Add new members. |
| 15903 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) |
| 15904 | (i386_store_fpxregset): Constify. |
| 15905 | (target_regsets): Add new kind identifier. |
| 15906 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. |
| 15907 | (i386_set_pc): Add debugging. |
| 15908 | (i386_breakpoint_at): New function. |
| 15909 | (the_low_target): Add new members. |
| 15910 | * linux-mips-low.c (mips_get_pc, mips_set_pc) |
| 15911 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) |
| 15912 | (mips_breakpoint_at): New. |
| 15913 | (the_low_target): Add new members. |
| 15914 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) |
| 15915 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. |
| 15916 | (the_low_target): Add new members. |
| 15917 | * linux-sh-low.c (sh_get_pc, sh_set_pc) |
| 15918 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. |
| 15919 | (the_low_target): Add new members. |
| 15920 | * linux-x86-64-low.c (target_regsets): Add new kind |
| 15921 | identifier. |
| 15922 | |
| 15923 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> |
| 15924 | |
| 15925 | From Martin Pool <mbp@samba.org>: |
| 15926 | * server.c (gdbserver_usage): New function. |
| 15927 | (main): Call it. |
| 15928 | |
| 15929 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> |
| 15930 | |
| 15931 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo |
| 15932 | stop_at -> stop_pc. |
| 15933 | |
| 15934 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> |
| 15935 | |
| 15936 | * Makefile.in: Remove obsolete code. |
| 15937 | |
| 15938 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> |
| 15939 | |
| 15940 | * linux-low.c (regsets_fetch_inferior_registers), |
| 15941 | (regsets_store_inferior_registers): Removed cast to int from |
| 15942 | ptrace() calls. |
| 15943 | * regcache.h: Added declaration of struct inferior_info. |
| 15944 | |
| 15945 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 15946 | |
| 15947 | * inferiors.c (struct inferior_info): Add regcache_data. |
| 15948 | (add_inferior): Call create_register_cache. |
| 15949 | (clear_inferiors): Call free_register_cache. |
| 15950 | (inferior_regcache_data, set_inferior_regcache_data): New functions. |
| 15951 | * regcache.c (struct inferior_regcache_data): New. |
| 15952 | (registers): Remove. |
| 15953 | (get_regcache): New function. |
| 15954 | (create_register_cache, free_register_cache): New functions. |
| 15955 | (set_register_cache): Don't initialize the register cache here. |
| 15956 | (registers_to_string, registers_from_string, register_data): Call |
| 15957 | get_regcache. |
| 15958 | * regcache.h: Add prototypes. |
| 15959 | * server.h: Likewise. |
| 15960 | |
| 15961 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> |
| 15962 | |
| 15963 | * mem-break.c: New file. |
| 15964 | * mem-break.h: New file. |
| 15965 | * Makefile.in: Add mem-break.o rule; update server.h |
| 15966 | dependencies. |
| 15967 | * inferiors.c (struct inferior_info): Add target_data |
| 15968 | member. |
| 15969 | (clear_inferiors): Free target_data member if set. |
| 15970 | (inferior_target_data, set_inferior_target_data): New functions. |
| 15971 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) |
| 15972 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. |
| 15973 | * linux-low.c (linux_bp_reinsert): New variable. |
| 15974 | (struct inferior_linux_data): New. |
| 15975 | (linux_create_inferior): Use set_inferior_target_data. |
| 15976 | (linux_attach): Likewise. Call add_inferior. |
| 15977 | (linux_wait_for_one_inferior): New function. |
| 15978 | (linux_wait): Call it. |
| 15979 | (linux_write_memory): Add const. |
| 15980 | (initialize_low): Call set_breakpoint_data. |
| 15981 | * linux-low.h (struct linux_target_ops): Add breakpoint |
| 15982 | handling members. |
| 15983 | * server.c (attach_inferior): Remove extra add_inferior |
| 15984 | call. |
| 15985 | * server.h: Include mem-break.h. Update inferior.c |
| 15986 | prototypes. |
| 15987 | * target.c (read_inferior_memory) |
| 15988 | (write_inferior_memory): New functions. |
| 15989 | * target.h (read_inferior_memory) |
| 15990 | (write_inferior_memory): Change macros to prototypes. |
| 15991 | (struct target_ops): Update comments. Add const to write_memory |
| 15992 | definition. |
| 15993 | |
| 15994 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> |
| 15995 | |
| 15996 | * linux-low.c (usr_store_inferior_registers): Support |
| 15997 | registers which are allowed to fail to store. |
| 15998 | * linux-low.h (linux_target_ops): Likewise. |
| 15999 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. |
| 16000 | (ppc_cannot_store_register): FPSCR may not be storable. |
| 16001 | |
| 16002 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 16003 | |
| 16004 | * server.h: Include <string.h> if HAVE_STRING_H. |
| 16005 | * ChangeLog: Correct paths in last ChangeLog entry. |
| 16006 | |
| 16007 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 16008 | |
| 16009 | * linux-low.h: Remove obsolete prototypes. |
| 16010 | (struct linux_target_ops): New. |
| 16011 | (extern the_low_target): New. |
| 16012 | * linux-low.c (num_regs, regmap): Remove declarations. |
| 16013 | (register_addr): Use the_low_target explicitly. |
| 16014 | (fetch_register): Likewise. |
| 16015 | (usr_fetch_inferior_registers): Likewise. |
| 16016 | (usr_store_inferior_registers): Likewise. |
| 16017 | * linux-arm-low.c (num_regs): Remove. |
| 16018 | (arm_num_regs): Define. |
| 16019 | (arm_regmap): Renamed from regmap, made static. |
| 16020 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16021 | made static. |
| 16022 | (arm_cannot_store_register): Renamed from cannot_store_register, |
| 16023 | made static. |
| 16024 | (the_low_target): New. |
| 16025 | * linux-i386-low.c (num_regs): Remove. |
| 16026 | (i386_num_regs): Define. |
| 16027 | (i386_regmap): Renamed from regmap, made static. |
| 16028 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16029 | made static. |
| 16030 | (i386_cannot_store_register): Renamed from cannot_store_register, |
| 16031 | made static. |
| 16032 | (the_low_target): New. |
| 16033 | * linux-ia64-low.c (num_regs): Remove. |
| 16034 | (ia64_num_regs): Define. |
| 16035 | (ia64_regmap): Renamed from regmap, made static. |
| 16036 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16037 | made static. |
| 16038 | (ia64_cannot_store_register): Renamed from cannot_store_register, |
| 16039 | made static. |
| 16040 | (the_low_target): New. |
| 16041 | * linux-m68k-low.c (num_regs): Remove. |
| 16042 | (m68k_num_regs): Define. |
| 16043 | (m68k_regmap): Renamed from regmap, made static. |
| 16044 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16045 | made static. |
| 16046 | (m68k_cannot_store_register): Renamed from cannot_store_register, |
| 16047 | made static. |
| 16048 | (the_low_target): New. |
| 16049 | * linux-mips-low.c (num_regs): Remove. |
| 16050 | (mips_num_regs): Define. |
| 16051 | (mips_regmap): Renamed from regmap, made static. |
| 16052 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16053 | made static. |
| 16054 | (mips_cannot_store_register): Renamed from cannot_store_register, |
| 16055 | made static. |
| 16056 | (the_low_target): New. |
| 16057 | * linux-ppc-low.c (num_regs): Remove. |
| 16058 | (ppc_num_regs): Define. |
| 16059 | (ppc_regmap): Renamed from regmap, made static. |
| 16060 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16061 | made static. |
| 16062 | (ppc_cannot_store_register): Renamed from cannot_store_register, |
| 16063 | made static. |
| 16064 | (the_low_target): New. |
| 16065 | * linux-s390-low.c (num_regs): Remove. |
| 16066 | (s390_num_regs): Define. |
| 16067 | (s390_regmap): Renamed from regmap, made static. |
| 16068 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16069 | made static. |
| 16070 | (s390_cannot_store_register): Renamed from cannot_store_register, |
| 16071 | made static. |
| 16072 | (the_low_target): New. |
| 16073 | * linux-sh-low.c (num_regs): Remove. |
| 16074 | (sh_num_regs): Define. |
| 16075 | (sh_regmap): Renamed from regmap, made static. |
| 16076 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, |
| 16077 | made static. |
| 16078 | (sh_cannot_store_register): Renamed from cannot_store_register, |
| 16079 | made static. |
| 16080 | (the_low_target): New. |
| 16081 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. |
| 16082 | (the_low_target): New. |
| 16083 | |
| 16084 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 16085 | |
| 16086 | * Makefile.in: Add stamp-h target. |
| 16087 | * configure.in: Create stamp-h. |
| 16088 | * configure: Regenerated. |
| 16089 | |
| 16090 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 16091 | |
| 16092 | * inferiors.c: New file. |
| 16093 | * target.c: New file. |
| 16094 | * target.h: New file. |
| 16095 | * Makefile.in: Add target.o and inferiors.o. Update |
| 16096 | dependencies. |
| 16097 | * linux-low.c (inferior_pid): New static variable, |
| 16098 | moved from server.c. |
| 16099 | (linux_create_inferior): Renamed from create_inferior. |
| 16100 | Call add_inferior. Return 0 on success instead of a PID. |
| 16101 | (linux_attach): Renamed from myattach. |
| 16102 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). |
| 16103 | (linux_thread_alive): Renamed from mythread_alive. |
| 16104 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the |
| 16105 | child dies. |
| 16106 | (linux_resume): Renamed from myresume. Add missing ``return 0''. |
| 16107 | (regsets_store_inferior_registers): Correct error message. |
| 16108 | Add missing ``return 0''. |
| 16109 | (linux_fetch_registers): Renamed from fetch_inferior_registers. |
| 16110 | (linux_store_registers): Renamed from store_inferior_registers. |
| 16111 | (linux_read_memory): Renamed from read_inferior_memory. |
| 16112 | (linux_write_memory): Renamed from write_inferior_memory. |
| 16113 | (linux_target_ops): New structure. |
| 16114 | (initialize_low): Call set_target_ops (). |
| 16115 | * remote-utils.c (unhexify): New function. |
| 16116 | (hexify): New function. |
| 16117 | (input_interrupt): Send signals to ``signal_pid''. |
| 16118 | * server.c (inferior_pid): Remove. |
| 16119 | (start_inferior): Update create_inferior call. |
| 16120 | (attach_inferior): Call add_inferior. |
| 16121 | (handle_query): New function. |
| 16122 | (main): Call handle_query for `q' packets. |
| 16123 | * server.h: Include "target.h". Remove obsolete prototypes. |
| 16124 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. |
| 16125 | |
| 16126 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> |
| 16127 | |
| 16128 | * Makefile.in: Add WARN_CFLAGS. Update configury |
| 16129 | dependencies. |
| 16130 | * configure.in: Check for <string.h> |
| 16131 | * configure: Regenerate. |
| 16132 | * config.in: Regenerate. |
| 16133 | * gdbreplay.c: Include needed system headers. |
| 16134 | (remote_open): Remove strchr prototype. |
| 16135 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. |
| 16136 | * regcache.c (supply_register): Change buf argument to const void *. |
| 16137 | (supply_register_by_name): Likewise. |
| 16138 | (collect_register): Change buf argument to void *. |
| 16139 | (collect_register_by_name): Likewise. |
| 16140 | * regcache.h: Add missing prototypes. |
| 16141 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. |
| 16142 | * server.c (handle_query): New function. |
| 16143 | (attached): New static variable, moved out of main. |
| 16144 | (main): Quiet longjmp clobber warnings. |
| 16145 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. |
| 16146 | * utils.c (error): Remove NORETURN. |
| 16147 | (fatal): Likewise. |