]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdb/jit: return bool in jit_breakpoint_re_set_internal and jit_read_descriptor
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
7d458ea5
SM
12020-06-17 Simon Marchi <simon.marchi@efficios.com>
2
3 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
4 Remove.
5
84b300de
SM
62020-06-12 Simon Marchi <simon.marchi@efficios.com>
7
8 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
9 * configure.srv: Remove mingw32ce cases.
10 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
11 * win32-low.h (to_back_slashes): Remove.
12 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
13
96c16e2b
SM
142020-06-12 Simon Marchi <simon.marchi@efficios.com>
15
16 * Makefile.in (SFILES): linux-tile-low.cc.
17 * configure.srv: Remove tilegx case.
18 * linux-tile-low.cc: Remove.
19
bd1467ae
SM
202020-06-12 Simon Marchi <simon.marchi@efficios.com>
21
22 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
23 * configure.srv: Remove m32r case.
24 * linux-m32r-low.cc: Remove.
25
7b46bf6f
SM
262020-06-12 Simon Marchi <simon.marchi@efficios.com>
27
28 * Makefile.in (SFILES): Remove linux-cris-low.c.
29 * configure.srv: Remove cris cases.
30 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
31
1fa29f56
SM
322020-06-12 Simon Marchi <simon.marchi@efficios.com>
33
34 * Makefile.in (SFILES): Remove linux-bfin-low.c.
35 * configure.srv: Remove bfin case.
36 * linux-bfin-low.cc: Remove.
37 * linux-low.cc: Remove BFIN-conditional code.
38
613f149a
SM
392020-06-12 Simon Marchi <simon.marchi@efficios.com>
40
41 * configure: Re-generate.
42 * configure.ac: Remove srv_qnx test.
43 * configure.srv: Remove nto case.
44 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
45 * remote-utils.c: Remove __QNX__-guarded code.
46
fdb95bf5
SM
472020-06-12 Simon Marchi <simon.marchi@efficios.com>
48
49 * configure: Re-generate.
50 * configure.ac: Remove srv_lynxos test.
51 * configure.srv: Remove lynxos cases.
52 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
53 Remove.
54
c00094dc
SM
552020-06-12 Simon Marchi <simon.marchi@efficios.com>
56
57 * README: Fix a few outdated or incoherent things.
58
6479bf85
HD
592020-05-27 Hannes Domani <ssbssa@yahoo.de>
60
61 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
62 (win32_clear_inferiors): Use open_process_used.
63 (get_child_debug_event): Likewise.
64
bea571eb
MW
652020-05-25 Michael Weghorn <m.weghorn@posteo.de>
66
67 PR gdbserver/25893
68 * linux-low.cc (linux_process_target::create_inferior),
69 lynx-low.cc (lynx_process_target::create_inferior),
70 win32-low.cc (win32_process_target::create_inferior): Use
71 construct_inferior_arguments instead of stringify_argv
72 to get string representation which properly escapes
73 special characters.
74 * server.cc (handle_v_run): Just pass empty program arg
75 as such, since any further processing is now handled via
76 construct_inferior_arguments.
77
ace6b919
MW
782020-05-25 Michael Weghorn <m.weghorn@posteo.de>
79
80 * nto-low.cc (nto_process_target::create_inferior): Pass
81 argv to spawnp function as char **.
82
b69ca137
MW
832020-05-25 Michael Weghorn <m.weghorn@posteo.de>
84
85 * server.cc (captured_main), (handle_v_run): No longer
86 insert extra NULL element to args vector.
87
51e2cfa2
PA
882020-05-23 Pedro Alves <palves@redhat.com>
89
90 * gdb-safe-ctype.h: New.
91
8bbf0394
TBA
922020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
93
94 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
95 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
96 (ia64_target::low_breakpoint_at): Ditto.
97
01370779
HD
982020-05-15 Hannes Domani <ssbssa@yahoo.de>
99
100 * win32-i386-low.cc (i386_supports_z_point_type): Handle
101 Z_PACKET_HW_BP z_type.
102 (i386_insert_point): Handle raw_bkpt_type type.
103 (i386_remove_point): Likewise.
104
7d186bc0
HD
1052020-04-30 Hannes Domani <ssbssa@yahoo.de>
106
107 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
108 Add arch/i386.o.
109 * win32-arm-low.cc (arm_num_regs): New function.
110 (struct win32_target_ops): Use arm_num_regs.
111 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
112 processes.
113 (i386_get_thread_context): Likewise.
114 (i386_prepare_to_resume): Likewise.
115 (i386_thread_added): Likewise.
116 (i386_single_step): Likewise.
117 (i386_fetch_inferior_register): Likewise.
118 (i386_store_inferior_register): Likewise.
119 (i386_arch_setup): Likewise.
120 (i386_win32_num_regs): New function.
121 (struct win32_target_ops): Use i386_win32_num_regs.
122 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
123 processes.
124 (win32_require_context): Likewise.
125 (child_add_thread): Likewise.
126 (do_initial_child_stuff): Likewise.
127 (continue_one_thread): Likewise.
128 (win32_process_target::resume): Likewise.
129 (load_psapi): Likewise.
130 (win32_add_all_dlls): Likewise.
131 (maybe_adjust_pc): Likewise.
132 (win32_process_target::qxfer_siginfo): Likewise.
133 (initialize_low): Likewise.
134 * win32-low.h (struct win32_target_ops): Change num_regs to
135 callback function.
136
1eb39914
SM
1372020-04-27 Simon Marchi <simon.marchi@efficios.com>
138
139 * configure.ac: Remove check for fs_base/gs_base in
140 user_regs_struct.
141 * configure: Re-generate.
142 * config.in: Re-generate.
143 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
144 x86_store_gregset): Adjust.
145
51ac8e22
HD
1462020-04-22 Hannes Domani <ssbssa@yahoo.de>
147
148 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
149 comparison.
150
a010605f
TT
1512020-04-16 Tom Tromey <tromey@adacore.com>
152
153 * win32-low.cc (windows_nat::handle_access_violation): New
154 function.
155
e2275c6e
SM
1562020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * win32-low.cc (get_child_debug_event): Fix format string warning.
159
73944e9f
TT
1602020-04-13 Tom Tromey <tom@tromey.com>
161
162 * server.h (gdb_fildes_t): Remove typedef.
163 * remote-utils.c (remote_desc, list_desc): Now int.
164 (INVALID_DESCRIPTOR): Remove.
165 (gdb_connected, remote_close)
166 (check_remote_input_interrupt_request): Update.
167 * utils.h (pfildes): Don't declare.
168 * utils.c (pfildes): Remove.
169
55d7aec8
TT
1702020-04-13 Tom Tromey <tom@tromey.com>
171
172 * server.h (handle_serial_event, handle_target_event): Update.
173 * server.c: Don't call initialize_event_loop.
174 (keep_processing_events): New global.
175 (handle_serial_event): Return void. Set keep_processing_events.
176 (handle_target_event): Return void.
177 (start_event_loop): Move from event-loop.c. Rewrite.
178 * remote-utils.c (handle_accept_event): Return void.
179 (reset_readchar): Use delete_timer.
180 (process_remaining): Return void.
181 (reschedule): Use create_timer.
182 * event-loop.h: Remove.
183 * event-loop.cc: Remove.
184 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
185
e487f994
TT
1862020-04-13 Tom Tromey <tom@tromey.com>
187
188 * server.c (invoke_async_signal_handlers)
189 (check_async_event_handlers, flush_streams, gdb_select): New
190 functions.
191
8ae8e197
TT
1922020-04-13 Tom Tromey <tom@tromey.com>
193
194 * configure: Rebuild.
195 * config.in: Rebuild.
196
360ad8b3
TT
1972020-04-08 Tom Tromey <tromey@adacore.com>
198
199 PR gdb/22992
200 * win32-low.c (child_continue): Call matching_pending_stop.
201 (get_child_debug_event): Call fetch_pending_stop. Push pending
202 stop when needed.
203
523d4f80
TT
2042020-04-08 Tom Tromey <tromey@adacore.com>
205
206 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
207 (win32_process_target::supports_stopped_by_sw_breakpoint):
208 Declare.
209 * win32-low.c (win32_supports_z_point_type): Always handle
210 Z_PACKET_SW_BP.
211 (win32_insert_point): Call insert_memory_breakpoint when needed.
212 (win32_remove_point): Call remove_memory_breakpoint when needed.
213 (win32_process_target::stopped_by_sw_breakpoint)
214 (win32_process_target::supports_stopped_by_sw_breakpoint): New
215 methods.
216 (win32_target_ops): Update.
217 (maybe_adjust_pc): New function.
218 (win32_wait): Call maybe_adjust_pc.
219
e54e5929
TT
2202020-04-08 Tom Tromey <tromey@adacore.com>
221
222 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
223 field.
224 * win32-i386-low.c (the_low_target): Update.
225 * win32-arm-low.c (the_low_target): Update.
226
d6225aff
TT
2272020-04-08 Tom Tromey <tromey@adacore.com>
228
229 * win32-low.h (win32_process_target::read_pc)
230 (win32_process_target::write_pc): Declare.
231 * win32-low.c (win32_process_target::read_pc)
232 (win32_process_target::write_pc): New methods.
233 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
234 functions.
235 (the_low_target): Update.
236 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
237 functions.
238 (the_low_target): Update.
239
2c1d95e8
TT
2402020-04-08 Tom Tromey <tromey@adacore.com>
241
242 * win32-low.c (win32_kill, get_child_debug_event): Use
243 wait_for_debug_event.
244
e758e19c
TT
2452020-04-08 Tom Tromey <tromey@adacore.com>
246
247 * win32-low.c (child_continue): Call continue_last_debug_event.
248
8d30e395
TT
2492020-04-08 Tom Tromey <tromey@adacore.com>
250
251 * win32-low.c (handle_exception): Remove.
252 (windows_nat::handle_ms_vc_exception): New function.
253 (get_child_debug_event): Add "continue_status" parameter.
254 Update.
255 (win32_wait): Update.
256
a816ba18
TT
2572020-04-08 Tom Tromey <tromey@adacore.com>
258
259 * win32-low.c (windows_nat::handle_load_dll): Rename from
260 handle_load_dll. No longer static.
261 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
262 No longer static.
263
d41b524f
TT
2642020-04-08 Tom Tromey <tromey@adacore.com>
265
266 * win32-low.c (handle_output_debug_string): Add parameter. Change
267 return type.
268 (win32_kill, get_child_debug_event): Update.
269
3c76026d
TT
2702020-04-08 Tom Tromey <tromey@adacore.com>
271
272 * win32-low.c (current_process_handle, current_process_id)
273 (main_thread_id, last_sig, current_event, siginfo_er): Move to
274 nat/windows-nat.c.
275
9d8679cc
TT
2762020-04-08 Tom Tromey <tromey@adacore.com>
277
278 * win32-low.c (get_image_name): Remove.
279 (handle_load_dll): Update.
280
28688adf
TT
2812020-04-08 Tom Tromey <tromey@adacore.com>
282
283 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
284 No longer static. Change parameters.
285 (child_add_thread, child_fetch_inferior_registers)
286 (child_store_inferior_registers, win32_resume)
287 (win32_get_tib_address): Update.
288
4834dad0
TT
2892020-04-08 Tom Tromey <tromey@adacore.com>
290
291 * win32-low.h (struct win32_target_ops): Use qualified names where
292 needed.
293 * win32-i386-low.c: Add "using namespace".
294 * win32-low.c: Add "using namespace".
295 * win32-arm-low.c: Add "using namespace".
296
65bafd5b
TT
2972020-04-08 Tom Tromey <tromey@adacore.com>
298
299 * win32-low.c (delete_thread_info): Don't call CloseHandle.
300
98a03287
TT
3012020-04-08 Tom Tromey <tromey@adacore.com>
302
303 * win32-low.c (win32_require_context, suspend_one_thread): Use
304 windows_thread_info::suspend.
305 (continue_one_thread): Use windows_thread_info::resume.
306 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
307
62fe396b
TT
3082020-04-08 Tom Tromey <tromey@adacore.com>
309
310 * win32-i386-low.c (update_debug_registers)
311 (i386_prepare_to_resume, i386_thread_added): Update.
312
e9534bd2
TT
3132020-04-08 Tom Tromey <tromey@adacore.com>
314
315 * win32-low.c (child_add_thread): Use new.
316 (delete_thread_info): Use delete.
317
ae1f8880
TT
3182020-04-08 Tom Tromey <tromey@adacore.com>
319
320 * win32-low.h (struct windows_thread_info): Remove.
321
e56f8ccb
TT
3222020-04-08 Tom Tromey <tromey@adacore.com>
323
324 * win32-low.h (struct windows_thread_info): Rename from
325 win32_thread_info. Remove typedef.
326 (struct win32_target_ops, win32_require_context): Update.
327 * win32-low.c (win32_get_thread_context)
328 (win32_set_thread_context, win32_prepare_to_resume)
329 (win32_require_context, thread_rec, child_add_thread)
330 (delete_thread_info, continue_one_thread)
331 (child_fetch_inferior_registers, child_store_inferior_registers)
332 (win32_resume, suspend_one_thread, win32_get_tib_address):
333 Update.
334 * win32-i386-low.c (update_debug_registers)
335 (win32_get_current_dr, i386_get_thread_context)
336 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
337 (i386_fetch_inferior_register, i386_store_inferior_register):
338 Update.
339 * win32-arm-low.c (arm_get_thread_context)
340 (arm_fetch_inferior_register, arm_store_inferior_register):
341 Update.
342
0dd7b52e
TBA
3432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
344
345 * linux-low.h (struct linux_target_ops): Remove.
346 (the_low_target): Remove.
347 * linux-x86-low.cc (the_low_target): Remove.
348 * linux-aarch64-low.cc (the_low_target): Ditto.
349 * linux-arm-low.cc (the_low_target): Ditto.
350 * linux-bfin-low.cc (the_low_target): Ditto.
351 * linux-cris-low.cc (the_low_target): Ditto.
352 * linux-crisv32-low.cc (the_low_target): Ditto.
353 * linux-ia64-low.cc (the_low_target): Ditto.
354 * linux-m32r-low.cc (the_low_target): Ditto.
355 * linux-m68k-low.cc (the_low_target): Ditto.
356 * linux-mips-low.cc (the_low_target): Ditto.
357 * linux-nios2-low.cc (the_low_target): Ditto.
358 * linux-ppc-low.cc (the_low_target): Ditto.
359 * linux-riscv-low.cc (the_low_target): Ditto.
360 * linux-s390-low.cc (the_low_target): Ditto.
361 * linux-sh-low.cc (the_low_target): Ditto.
362 * linux-sparc-low.cc (the_low_target): Ditto.
363 * linux-tic6x-low.cc (the_low_target): Ditto.
364 * linux-tile-low.cc (the_low_target): Ditto.
365 * linux-xtensa-low.cc (the_low_target): Ditto.
366
fc5ecdb6
TBA
3672020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
368
369 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
370 linux target define the op by overriding the declaration in
371 process_stratum_target.
372
373 * linux-low.h (struct linux_target_ops): Remove the op.
374 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
375 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
376 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
377 (x86_get_ipa_tdesc_idx): Turn into...
378 (x86_target::get_ipa_tdesc_idx): ...this.
379 (the_low_target): Remove the op field.
380 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
381 (ppc_get_ipa_tdesc_idx): Turn into...
382 (ppc_target::get_ipa_tdesc_idx): ...this.
383 (the_low_target): Remove the op field.
384 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
385 (s390_get_ipa_tdesc_idx): Turn into...
386 (s390_target::get_ipa_tdesc_idx): ...this.
387 (the_low_target): Remove the op field.
388
9eedd27d
TBA
3892020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
390
391 Turn the 'get_syscall_trapinfo' linux target op into a method
392 of process_stratum_target.
393
394 * linux-low.h (struct linux_target_ops): Remove the op.
395 (class linux_process_target) <get_syscall_trapinfo>
396 <gdb_catch_this_syscall>
397 <low_supports_catch_syscall>
398 <low_get_syscall_trapinfo>: Declare.
399 * linux-low.cc (get_syscall_trapinfo): Turn into...
400 (linux_process_target::get_syscall_trapinfo): ...this.
401 (linux_process_target::low_get_syscall_trapinfo): Define.
402 (gdb_catch_this_syscall_p): Turn into...
403 (linux_process_target::gdb_catch_this_syscall): ...this.
404 (linux_process_target::low_supports_catch_syscall): Define.
405
406 Update the callers below.
407
408 (linux_process_target::wait_1)
409 (linux_process_target::supports_catch_syscall)
410
411 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
412 <low_get_syscall_trapinfo>: Declare.
413 (x86_target::low_supports_catch_syscall): Define.
414 (x86_get_syscall_trapinfo): Turn into...
415 (x86_target::low_get_syscall_trapinfo): ...this.
416 (the_low_target): Remove the op field.
417 * linux-aarch64-low.cc (class aarch64_target)
418 <low_supports_catch_syscall>
419 <low_get_syscall_trapinfo>: Declare.
420 (aarch64_target::low_supports_catch_syscall): Define.
421 (aarch64_get_syscall_trapinfo): Turn into...
422 (aarch64_target::low_get_syscall_trapinfo): ...this.
423 (the_low_target): Remove the op field.
424 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
425 <low_get_syscall_trapinfo>: Declare.
426 (arm_target::low_supports_catch_syscall): Define.
427 (arm_get_syscall_trapinfo): Turn into...
428 (arm_target::low_get_syscall_trapinfo): ...this.
429 (the_low_target): Remove the op field.
430 * linux-ppc-low.cc (the_low_target): Remove the op field.
431 * linux-s390-low.cc (the_low_target): Remove the op field.
432
b31cdfa6
TBA
4332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
434
435 Remove the 'supports_hardware_single_step' linux target op and
436 override the process_stratum_target's op definition in
437 linux_process_target to return true.
438
439 * linux-low.h (struct linux_target_ops): Remove the op.
440 (class linux_process_target) <finish_step_over>
441 <maybe_hw_step>: Declare.
442 * linux-low.cc (can_hardware_single_step): Remove.
443 (maybe_hw_step): Turn into...
444 (linux_process_target::maybe_hw_step): ...this.
445 (finish_step_over): Turn into...
446 (linux_process_target::finish_step_over): ...this.
447 (linux_process_target::supports_hardware_single_step): Update
448 to return true.
449
450 Update the callers below.
451
452 (linux_process_target::single_step)
453 (linux_process_target::resume_one_lwp_throw)
454
455 * linux-arm-low.cc (class arm_target)
456 <supports_hardware_single_step>: Declare.
457 (arm_supports_hardware_single_step): Turn into...
458 (arm_target::supports_hardware_single_step): ...this.
459 (the_low_target): Remove the op field.
460 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
461 (the_low_target): Remove the op field.
462 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
463 Remove.
464 (the_low_target): Remove the op field.
465 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
466 (the_low_target): Remove the op field.
467 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
468 (the_low_target): Remove the op field.
469 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
470 (the_low_target): Remove the op field.
471 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
472 (the_low_target): Remove the op field.
473 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
474 (the_low_target): Remove the op field.
475 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
476 (the_low_target): Remove the op field.
477 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
478 (the_low_target): Remove the op field.
479 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
480 (the_low_target): Remove the op field.
481 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
482 (the_low_target): Remove the op field.
483 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
484 Remove.
485 (the_low_target): Remove the op field.
486
9cfd8715
TBA
4872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
488
489 Turn the 'supports_range_stepping' linux target op into a method
490 of linux_process_target.
491
492 * linux-low.h (struct linux_target_ops): Remove the op.
493 (class linux_process_target) <low_supports_range_stepping>: Declare.
494 * linux-low.cc (linux_process_target::low_supports_range_stepping):
495 Define.
496 (linux_process_target::supports_range_stepping): Update the call
497 site.
498 * linux-x86-low.cc (class x86_target)
499 <low_supports_range_stepping>: Declare.
500 (x86_supports_range_stepping): Turn into...
501 (x86_target::low_supports_range_stepping): ...this.
502 (the_low_target): Remove the op field.
503 * linux-aarch64-low.cc (class aarch64_target)
504 <low_supports_range_stepping>: Declare.
505 (aarch64_supports_range_stepping): Turn into...
506 (aarch64_target::low_supports_range_stepping): ...this.
507 (the_low_target): Remove the op field.
508 * linux-arm-low.cc (the_low_target): Remove the op field.
509 * linux-bfin-low.cc (the_low_target): Ditto.
510 * linux-crisv32-low.cc (the_low_target): Ditto.
511 * linux-m32r-low.cc (the_low_target): Ditto.
512 * linux-m68k-low.cc (the_low_target): Ditto.
513 * linux-ppc-low.cc (the_low_target): Ditto.
514 * linux-s390-low.cc (the_low_target): Ditto.
515 * linux-sh-low.cc (the_low_target): Ditto.
516 * linux-tic6x-low.cc (the_low_target): Ditto.
517 * linux-tile-low.cc (the_low_target): Ditto.
518 * linux-xtensa-low.cc (the_low_target): Ditto.
519
ab64c999
TBA
5202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
521
522 Remove the 'emit_ops' linux target ops and let the concrete
523 linux target define the op by overriding the declaration of
524 process_stratum_target.
525
526 * linux-low.h (struct linux_target_ops): Remove the op.
527 (class linux_process_target) <emit_ops>: Remove.
528 * linux-low.cc (linux_process_target::emit_ops): Remove.
529 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
530 (x86_emit_ops): Turn into...
531 (x86_target::emit_ops): ...this.
532 (the_low_target): Remove the op field.
533 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
534 (aarch64_emit_ops): Turn into...
535 (aarch64_target::emit_ops): ...this.
536 (the_low_target): Remove the op field.
537 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
538 (ppc_emit_ops): Turn into...
539 (ppc_target::emit_ops): ...this.
540 (the_low_target): Remove the op field.
541 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
542 (s390_emit_ops): Turn into...
543 (s390_target::emit_ops): ...this.
544 (the_low_target): Remove the op field.
545 * linux-arm-low.cc (the_low_target): Remove the op field.
546 * linux-bfin-low.cc (the_low_target): Ditto.
547 * linux-crisv32-low.cc (the_low_target): Ditto.
548 * linux-m32r-low.cc (the_low_target): Ditto.
549 * linux-m68k-low.cc (the_low_target): Ditto.
550 * linux-sh-low.cc (the_low_target): Ditto.
551 * linux-tic6x-low.cc (the_low_target): Ditto.
552 * linux-tile-low.cc (the_low_target): Ditto.
553 * linux-xtensa-low.cc (the_low_target): Ditto.
554
809a0c35
TBA
5552020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
556
557 Remove the 'install_fast_tracepoint_jump_pad' and
558 'get_min_fast_tracepoint_insn_len' linux target ops to let the
559 concrete linux target define the ops by overriding the declarations
560 of process_stratum_target.
561
562 * linux-low.h (struct linux_target_ops): Remove the ops.
563 (class linux_process_target) <supports_fast_tracepoints>
564 <install_fast_tracepoint_jump_pad>
565 <get_min_fast_tracepoint_insn_len>: Remove.
566 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
567 (linux_process_target::install_fast_tracepoint_jump_pad)
568 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
569 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
570 <install_fast_tracepoint_jump_pad>
571 <get_min_fast_tracepoint_insn_len>: Declare.
572 (x86_target::supports_fast_tracepoints): Define.
573 (x86_install_fast_tracepoint_jump_pad): Turn into...
574 (x86_target::install_fast_tracepoint_jump_pad): ...this.
575 (x86_get_min_fast_tracepoint_insn_len): Turn into...
576 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
577 (the_low_target): Remove the op fields.
578 * linux-aarch64-low.cc (class aarch64_target)
579 <supports_fast_tracepoints>
580 <install_fast_tracepoint_jump_pad>
581 <get_min_fast_tracepoint_insn_len>: Declare.
582 (aarch64_target::supports_fast_tracepoints): Define.
583 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
584 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
585 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
586 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
587 (the_low_target): Remove the op fields.
588 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
589 <install_fast_tracepoint_jump_pad>
590 <get_min_fast_tracepoint_insn_len>: Declare.
591 (ppc_target::supports_fast_tracepoints): Define.
592 (ppc_install_fast_tracepoint_jump_pad): Turn into...
593 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
594 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
595 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
596 (the_low_target): Remove the op fields.
597 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
598 <install_fast_tracepoint_jump_pad>
599 <get_min_fast_tracepoint_insn_len>: Declare.
600 (s390_target::supports_fast_tracepoints): Define.
601 (s390_install_fast_tracepoint_jump_pad): Turn into...
602 (s390_target::install_fast_tracepoint_jump_pad): ...this.
603 (s390_get_min_fast_tracepoint_insn_len): Turn into...
604 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
605 (the_low_target): Remove the op fields.
606 * linux-arm-low.cc (the_low_target): Remove the op fields.
607 * linux-bfin-low.cc (the_low_target): Ditto.
608 * linux-crisv32-low.cc (the_low_target): Ditto.
609 * linux-m32r-low.cc (the_low_target): Ditto.
610 * linux-m68k-low.cc (the_low_target): Ditto.
611 * linux-sh-low.cc (the_low_target): Ditto.
612 * linux-tic6x-low.cc (the_low_target): Ditto.
613 * linux-tile-low.cc (the_low_target): Ditto.
614 * linux-xtensa-low.cc (the_low_target): Ditto.
615
13e567af
TBA
6162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
617
618 Turn the 'get_thread_area' linux target op into a method of
619 process_stratum_target.
620
621 * linux-low.h (struct linux_target_ops): Remove the op.
622 (class linux_process_target) <stuck_in_jump_pad>
623 <linux_fast_tracepoint_collecting>
624 <low_get_thread_area>: Declare.
625 * linux-low.cc (supports_fast_tracepoints): Remove.
626 (linux_fast_tracepoint_collecting): Turn into...
627 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
628 (linux_process_target::low_get_thread_area): Define.
629 (stuck_in_jump_pad_callback): Turn into...
630 (linux_process_target::stuck_in_jump_pad): ...this.
631
632 Update the caller below.
633
634 (linux_process_target::stabilize_threads)
635
636 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
637 Declare.
638 (x86_get_thread_area): Turn into...
639 (x86_target::low_get_thread_area): ...this.
640 (the_low_target): Remove the op field.
641 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
642 Declare.
643 (aarch64_get_thread_area): Turn into...
644 (aarch64_target::low_get_thread_area): ...this.
645 (the_low_target): Remove the op field.
646 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
647 Declare.
648 (ppc_get_thread_area): Turn into...
649 (ppc_target::low_get_thread_area): ...this.
650 (the_low_target): Remove the op field.
651 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
652 Declare.
653 (s390_get_thread_area): Turn into...
654 (s390_target::low_get_thread_area): ...this.
655 (the_low_target): Remove the op field.
656 * linux-arm-low.cc (the_low_target): Remove the op field.
657 * linux-bfin-low.cc (the_low_target): Ditto.
658 * linux-crisv32-low.cc (the_low_target): Ditto.
659 * linux-m32r-low.cc (the_low_target): Ditto.
660 * linux-m68k-low.cc (the_low_target): Ditto.
661 * linux-sh-low.cc (the_low_target): Ditto.
662 * linux-tic6x-low.cc (the_low_target): Ditto.
663 * linux-tile-low.cc (the_low_target): Ditto.
664 * linux-xtensa-low.cc (the_low_target): Ditto.
665
47f70aa7
TBA
6662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
667
668 Remote the 'supports_tracepoints' linux target op and let the
669 concrete linux target define it by overriding the op declared in
670 process_stratum_target.
671
672 * linux-low.h (struct linux_target_ops): Remove the op.
673 (class linux_process_target) <supports_tracepoints>: Remove.
674 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
675 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
676 Declare.
677 (x86_supports_tracepoints): Turn into...
678 (x86_target::supports_tracepoints): ...this.
679 (the_low_target): Remove the op field.
680 * linux-aarch64-low.cc (class aarch64_target)
681 <supports_tracepoints>: Declare.
682 (aarch64_supports_tracepoints): Turn into...
683 (aarch64_target::supports_tracepoints): ...this.
684 (the_low_target): Remove the op field.
685 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
686 Declare.
687 (ppc_supports_tracepoints): Turn into...
688 (ppc_target::supports_tracepoints): ...this.
689 (the_low_target): Remove the op field.
690 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
691 Declare.
692 (s390_supports_tracepoints): Turn into...
693 (s390_target::supports_tracepoints): ...this.
694 (the_low_target): Remove the op field.
695 * linux-arm-low.cc (the_low_target): Remove the op field.
696 * linux-bfin-low.cc (the_low_target): Ditto.
697 * linux-crisv32-low.cc (the_low_target): Ditto.
698 * linux-m32r-low.cc (the_low_target): Ditto.
699 * linux-m68k-low.cc (the_low_target): Ditto.
700 * linux-sh-low.cc (the_low_target): Ditto.
701 * linux-tic6x-low.cc (the_low_target): Ditto.
702 * linux-tile-low.cc (the_low_target): Ditto.
703 * linux-xtensa-low.cc (the_low_target): Ditto.
704
a5b5da92
TBA
7052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
706
707 Remove the 'process_qsupported' linux target op and let a concrete
708 linux target define the op by overriding the op declaration in
709 process_stratum_target.
710
711 * linux-low.h (struct linux_target_ops): Remove the op.
712 (class linux_process_target) <process_qsupported>: Remove.
713 * linux-low.cc (linux_process_target::process_qsupported): Remove.
714 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
715 (x86_linux_process_qsupported): Turn into...
716 (x86_target::process_qsupported): ...this.
717 (the_low_target): Remove the op field.
718 * linux-aarch64-low.cc (the_low_target): Remove the op
719 field.
720 * linux-arm-low.cc (the_low_target): Ditto.
721 * linux-bfin-low.cc (the_low_target): Ditto.
722 * linux-crisv32-low.cc (the_low_target): Ditto.
723 * linux-m32r-low.cc (the_low_target): Ditto.
724 * linux-m68k-low.cc (the_low_target): Ditto.
725 * linux-ppc-low.cc (the_low_target): Ditto.
726 * linux-s390-low.cc (the_low_target): Ditto.
727 * linux-sh-low.cc (the_low_target): Ditto.
728 * linux-tic6x-low.cc (the_low_target): Ditto.
729 * linux-tile-low.cc (the_low_target): Ditto.
730 * linux-xtensa-low.cc (the_low_target): Ditto.
731
d7599cc0
TBA
7322020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733
734 Turn the 'prepare_to_resume' linux target op into a method of
735 linux_process_target.
736
737 * linux-low.h (struct linux_target_ops): Remove the op.
738 (class linux_process_target) <low_prepare_to_resume>: Declare.
739 * linux-low.cc (linux_process_target::low_prepare_to_resume):
740 Define.
741
742 Update the callers below:
743
744 (linux_process_target::resume_one_lwp_throw)
745 (linux_process_target::low_prepare_to_resume)
746
747 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
748 Declare.
749 (x86_target::low_prepare_to_resume): Define.
750 (the_low_target): Remove the op field.
751 * linux-aarch64-low.cc (class aarch64_target)
752 <low_prepare_to_resume>: Declare.
753 (aarch64_target::low_prepare_to_resume): Define.
754 (the_low_target): Remove the op field.
755 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
756 Declare.
757 (arm_prepare_to_resume): Turn into...
758 (arm_target::low_prepare_to_resume): ...this.
759 (the_low_target): Remove the op field.
760 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
761 Declare.
762 (mips_linux_prepare_to_resume): Turn into...
763 (mips_target::low_prepare_to_resume): ...this.
764 (the_low_target): Remove the op field.
765 * linux-bfin-low.cc (the_low_target): Remove the op field.
766 * linux-crisv32-low.cc (the_low_target): Ditto.
767 * linux-m32r-low.cc (the_low_target): Ditto.
768 * linux-m68k-low.cc (the_low_target): Ditto.
769 * linux-ppc-low.cc (the_low_target): Ditto.
770 * linux-s390-low.cc (the_low_target): Ditto.
771 * linux-sh-low.cc (the_low_target): Ditto.
772 * linux-tic6x-low.cc (the_low_target): Ditto.
773 * linux-tile-low.cc (the_low_target): Ditto.
774 * linux-xtensa-low.cc (the_low_target): Ditto.
775
fd000fb3
TBA
7762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
777
778 Turn the 'new_process', 'delete_process', 'new_thread',
779 'delete_thread', and 'new_fork' linux target ops into methods
780 of linux_process_target.
781
782 * linux-low.h (struct linux_target_ops): Remove the ops.
783 (class linux_process_target) <add_linux_process>
784 <add_lwp>
785 <delete_lwp>
786 <attach_lwp>
787 <detach_one_lwp>
788 <check_zombie_leaders>
789 <filter_exit_event>
790 <low_new_process>
791 <low_delete_process>
792 <low_new_thread>
793 <low_delete_thread>
794 <low_new_fork>: Declare.
795 * linux-low.cc (delete_lwp): Turn into...
796 (linux_process_target::delete_lwp): ...this.
797 (linux_process_target::low_delete_thread): Define.
798 (linux_add_process): Turn into...
799 (linux_process_target::add_linux_process): ...this.
800 (linux_process_target::low_new_process): Define.
801 (linux_process_target::low_delete_process): Define.
802 (linux_process_target::low_new_fork): Define.
803 (add_lwp): Turn into...
804 (linux_process_target::add_lwp): ...this.
805 (linux_process_target::low_new_thread): Define.
806 (linux_attach_lwp): Turn into...
807 (linux_process_target::attach_lwp): ...this.
808 (linux_detach_one_lwp): Turn into...
809 (linux_process_target::detach_one_lwp): ...this.
810 (linux_detach_lwp_callback): Remove and inline...
811 (linux_process_target::detach): ...here.
812 (check_zombie_leaders): Turn into...
813 (linux_process_target::check_zombie_leaders): ...this.
814 (filter_exit_event): Turn into...
815 (linux_process_target::filter_exit_event): ...this.
816
817 Update the callers below.
818
819 (linux_process_target::handle_extended_wait)
820 (linux_process_target::create_inferior)
821 (attach_proc_task_lwp_callback)
822 (linux_process_target::attach)
823 (linux_process_target::detach)
824 (linux_process_target::mourn)
825 * thread-db.cc (attach_thread)
826
827 * linux-x86-low.cc (class x86_target) <low_new_process>
828 <low_delete_process>
829 <low_new_thread>
830 <low_delete_thread>
831 <low_new_fork>: Declare.
832 (x86_linux_new_process): Turn into...
833 (x86_target::low_new_process): ...this.
834 (x86_linux_delete_process): Turn into...
835 (x86_target::low_delete_process): ...this.
836 (x86_target::low_new_thread): Define.
837 (x86_target::low_delete_thread): Define.
838 (x86_linux_new_fork): Turn into...
839 (x86_target::low_new_fork): ...this.
840 (the_low_target): Remove the op fields.
841 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
842 <low_delete_process>
843 <low_new_thread>
844 <low_delete_thread>
845 <low_new_fork>: Declare.
846 (aarch64_linux_new_process): Turn into...
847 (aarch64_target::low_new_process): ...this.
848 (aarch64_linux_delete_process): Turn into...
849 (aarch64_target::low_delete_process): ...this.
850 (aarch64_target::low_new_thread): Define.
851 (aarch64_target::low_delete_thread): Define.
852 (aarch64_linux_new_fork): Turn into...
853 (aarch64_target::low_new_fork): ...this.
854 (the_low_target): Remove the op fields.
855 * linux-arm-low.cc (class arm_target) <low_new_process>
856 <low_delete_process>
857 <low_new_thread>
858 <low_delete_thread>
859 <low_new_fork>: Declare.
860 (arm_new_process): Turn into...
861 (arm_target::low_new_process): ...this.
862 (arm_delete_process): Turn into...
863 (arm_target::low_delete_process): ...this.
864 (arm_new_thread): Turn into...
865 (arm_target::low_new_thread): ...this.
866 (arm_delete_thread): Turn into...
867 (arm_target::low_delete_thread): ...this.
868 (arm_new_fork): Turn into...
869 (arm_target::low_new_fork): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-mips-low.cc (class mips_target) <low_new_process>
872 <low_delete_process>
873 <low_new_thread>
874 <low_delete_thread>
875 <low_new_fork>: Declare.
876 (mips_linux_new_process): Turn into...
877 (mips_target::low_new_process): ...this.
878 (mips_linux_delete_process): Turn into...
879 (mips_target::low_delete_process): ...this.
880 (mips_linux_new_thread): Turn into...
881 (mips_target::low_new_thread): ...this.
882 (mips_linux_delete_thread): Turn into...
883 (mips_target::low_delete_thread): ...this.
884 (mips_linux_new_fork): Turn into...
885 (mips_target::low_new_fork): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-bfin-low.cc (the_low_target): Remove the op fields.
888 * linux-crisv32-low.cc (the_low_target): Ditto.
889 * linux-m32r-low.cc (the_low_target): Ditto.
890 * linux-m68k-low.cc (the_low_target): Ditto.
891 * linux-ppc-low.cc (the_low_target): Ditto.
892 * linux-s390-low.cc (the_low_target): Ditto.
893 * linux-sh-low.cc (the_low_target): Ditto.
894 * linux-tic6x-low.cc (the_low_target): Ditto.
895 * linux-tile-low.cc (the_low_target): Ditto.
896 * linux-xtensa-low.cc (the_low_target): Ditto.
897
cb63de7c
TBA
8982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
899
900 Turn the 'siginfo_fixup' linux target op into a method of
901 linux_process_target.
902
903 * linux-low.h (struct linux_target_ops): Remove the op.
904 (class linux_process_target) <siginfo_fixup>
905 <low_siginfo_fixup>: Declare.
906 * linux-low.cc (siginfo_fixup): Turn into...
907 (linux_process_target::siginfo_fixup): ...this.
908 (linux_process_target::low_siginfo_fixup): Define.
909 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
910 (x86_siginfo_fixup): Turn into...
911 (x86_target::low_siginfo_fixup): ...this.
912 (the_low_target): Remove the op field.
913 * linux-aarch64-low.cc (class aarch64_target):
914 <low_siginfo_fixup>: Declare.
915 (aarch64_linux_siginfo_fixup): Turn into...
916 (aarch64_target::low_siginfo_fixup): ...this.
917 (the_low_target): Remove the op field.
918 * linux-arm-low.cc (the_low_target): Remove the op field.
919 * linux-bfin-low.cc (the_low_target): Ditto.
920 * linux-crisv32-low.cc (the_low_target): Ditto.
921 * linux-m32r-low.cc (the_low_target): Ditto.
922 * linux-m68k-low.cc (the_low_target): Ditto.
923 * linux-mips-low.cc (the_low_target): Ditto.
924 * linux-ppc-low.cc (the_low_target): Ditto.
925 * linux-s390-low.cc (the_low_target): Ditto.
926 * linux-sh-low.cc (the_low_target): Ditto.
927 * linux-tic6x-low.cc (the_low_target): Ditto.
928 * linux-tile-low.cc (the_low_target): Ditto.
929 * linux-xtensa-low.cc (the_low_target): Ditto.
930
b35db733
TBA
9312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
934 linux target ops into methods of linux_process_target.
935
936 * linux-low.h (struct linux_target_ops): Remove the ops.
937 (class linux_process_target) <low_collect_ptrace_register>
938 <low_store_ptrace_register>: Declare.
939 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
940 (linux_process_target::low_supply_ptrace_register): Define.
941
942 Update the callers below.
943
944 (linux_process_target::fetch_register)
945 (linux_process_target::store_register)
946
947 * linux-x86-low.cc (the_low_target): Remove the op fields.
948 * linux-aarch64-low.cc (the_low_target): Ditto.
949 * linux-arm-low.cc (the_low_target): Ditto.
950 * linux-bfin-low.cc (the_low_target): Ditto.
951 * linux-crisv32-low.cc (the_low_target): Ditto.
952 * linux-m32r-low.cc (the_low_target): Ditto.
953 * linux-m68k-low.cc (the_low_target): Ditto.
954 * linux-sh-low.cc (the_low_target): Ditto.
955 * linux-sparc-low.cc (the_low_target): Ditto.
956 * linux-tic6x-low.cc (the_low_target): Ditto.
957 * linux-tile-low.cc (the_low_target): Ditto.
958 * linux-xtensa-low.cc (the_low_target): Ditto.
959 * linux-mips-low.cc (class mips_target)
960 <low_collect_ptrace_register>
961 <low_supply_ptrace_register>: Declare.
962 (mips_collect_ptrace_register): Turn into ...
963 (mips_target::low_collect_ptrace_register): ...this.
964 (mips_supply_ptrace_register): Turn into...
965 (mips_target::low_supply_ptrace_register): ...this.
966 (the_low_target): Remove the op fields.
967 * linux-ppc-low.cc (class ppc_target)
968 <low_collect_ptrace_register>
969 <low_supply_ptrace_register>: Declare.
970 (ppc_collect_ptrace_register): Turn into ...
971 (ppc_target::low_collect_ptrace_register): ...this.
972 (ppc_supply_ptrace_register): Turn into ...
973 (ppc_target::low_supply_ptrace_register): ...this.
974 (ppc_fill_gregset): Update for the calls to
975 low_collect_ptrace_register.
976 (the_low_target): Remove the op fields.
977 * linux-s390-low.cc (class s390_target)
978 <low_collect_ptrace_register>
979 <low_supply_ptrace_register>: Declare.
980 (s390_collect_ptrace_register): Turn into ...
981 (s390_target::low_collect_ptrace_register): ...this.
982 (s390_supply_ptrace_register): Turn into ...
983 (s390_target::low_supply_ptrace_register): ...this.
984 (s390_fill_gregset): Update for the calls to
985 low_collect_ptrace_register.
986 (the_low_target): Remove the op fields.
987
ac1bbaca
TBA
9882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
989
990 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
991 target ops into methods of linux_process_target.
992
993 * linux-low.h (struct linux_target_ops): Remove the ops.
994 (class linux_process_target) <check_stopped_by_watchpoint>
995 <low_stopped_by_watchpoint>
996 <low_stopped_data_address>: Declare.
997 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
998 (linux_process_target::check_stopped_by_watchpoint): ...this.
999 (linux_process_target::low_stopped_by_watchpoint): Define.
1000 (linux_process_target::low_stopped_data_address): Define.
1001 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1002 <low_stopped_data_address>: Declare.
1003 (x86_stopped_by_watchpoint): Turn into...
1004 (x86_target::low_stopped_by_watchpoint): ...this.
1005 (x86_stopped_data_address): Turn into...
1006 (x86_target::low_stopped_data_address): ...this.
1007 (the_low_target): Remove the op fields.
1008 * linux-aarch64-low.cc (class aarch64_target)
1009 <low_stopped_by_watchpoint>
1010 <low_stopped_data_address>: Declare.
1011 (aarch64_stopped_by_watchpoint): Turn into...
1012 (aarch64_target::low_stopped_by_watchpoint): ...this.
1013 (aarch64_stopped_data_address): Turn into...
1014 (aarch64_target::low_stopped_data_address): ...this.
1015 (the_low_target): Remove the op fields.
1016 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1017 <low_stopped_data_address>: Declare.
1018 (arm_stopped_by_watchpoint): Turn into...
1019 (arm_target::low_stopped_by_watchpoint): ...this.
1020 (arm_stopped_data_address): Turn into...
1021 (arm_target::low_stopped_data_address): ...this.
1022 (the_low_target): Remove the op fields.
1023 * linux-crisv32-low.cc (class crisv32_target)
1024 <low_stopped_by_watchpoint>
1025 <low_stopped_data_address>: Declare.
1026 (cris_stopped_by_watchpoint): Turn into...
1027 (crisv32_target::low_stopped_by_watchpoint): ...this.
1028 (cris_stopped_data_address): Turn into...
1029 (crisv32_target::low_stopped_data_address): ...this.
1030 (the_low_target): Remove the op fields.
1031 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1032 <low_stopped_data_address>: Declare.
1033 (mips_stopped_by_watchpoint): Turn into...
1034 (mips_target::low_stopped_by_watchpoint): ...this.
1035 (mips_stopped_data_address): Turn into...
1036 (mips_target::low_stopped_data_address): ...this.
1037 (the_low_target): Remove the op fields.
1038 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1039 * linux-m32r-low.cc (the_low_target): Ditto.
1040 * linux-m68k-low.cc (the_low_target): Ditto.
1041 * linux-ppc-low.cc (the_low_target): Ditto.
1042 * linux-s390-low.cc (the_low_target): Ditto.
1043 * linux-sh-low.cc (the_low_target): Ditto.
1044 * linux-sparc-low.cc (the_low_target): Ditto.
1045 * linux-tic6x-low.cc (the_low_target): Ditto.
1046 * linux-tile-low.cc (the_low_target): Ditto.
1047 * linux-xtensa-low.cc (the_low_target): Ditto.
1048
9db9aa23
TBA
10492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1050
1051 Turn the 'insert_point' and 'remove_point' linux target ops into
1052 methods of linux_process_target.
1053
1054 * linux-low.h (struct linux_target_ops): Remove the ops.
1055 (class linux_process_target) <low_insert_point>
1056 <low_remove_point>: Declare.
1057 * linux-low.cc (linux_process_target::low_insert_point)
1058 (linux_process_target::low_remove_point): Define.
1059 (linux_process_target::insert_point)
1060 (linux_process_target::remove_point): Update for calls to
1061 low_insert_point and low_remove_point.
1062 * linux-x86-low.cc (class x86_target) <low_insert_point>
1063 <low_remove_point>: Declare.
1064 (x86_insert_point): Turn into...
1065 (x86_target::low_insert_point): ...this.
1066 (x86_remove_point): Turn into...
1067 (x86_target::low_remove_point): ...this.
1068 (the_low_target): Remove the op fields.
1069 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1070 <low_remove_point>: Declare.
1071 (aarch64_insert_point): Turn into...
1072 (aarch64_target::low_insert_point): ...this.
1073 (aarch64_remove_point): Turn into...
1074 (aarch64_target::low_remove_point): ...this.
1075 (the_low_target): Remove the op fields.
1076 * linux-arm-low.cc (class arm_target) <low_insert_point>
1077 <low_remove_point>: Declare.
1078 (arm_insert_point): Turn into...
1079 (arm_target::low_insert_point): ...this.
1080 (arm_remove_point): Turn into...
1081 (arm_target::low_remove_point): ...this.
1082 (the_low_target): Remove the op fields.
1083 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1084 <low_remove_point>: Declare.
1085 (crisv32_insert_point): Turn into...
1086 (crisv32_target::low_insert_point): ...this.
1087 (crisv32_remove_point): Turn into...
1088 (crisv32_target::low_remove_point): ...this.
1089 (the_low_target): Remove the op fields.
1090 * linux-mips-low.cc (class mips_target) <low_insert_point>
1091 <low_remove_point>: Declare.
1092 (mips_insert_point): Turn into...
1093 (mips_target::low_insert_point): ...this.
1094 (mips_remove_point): Turn into...
1095 (mips_target::low_remove_point): ...this.
1096 (the_low_target): Remove the op fields.
1097 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1098 <low_remove_point>: Declare.
1099 (ppc_insert_point): Turn into...
1100 (ppc_target::low_insert_point): ...this.
1101 (ppc_remove_point): Turn into...
1102 (ppc_target::low_remove_point): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1105 * linux-m32r-low.cc (the_low_target): Ditto.
1106 * linux-m68k-low.cc (the_low_target): Ditto.
1107 * linux-s390-low.cc (the_low_target): Ditto.
1108 * linux-sh-low.cc (the_low_target): Ditto.
1109 * linux-sparc-low.cc (the_low_target): Ditto.
1110 * linux-tic6x-low.cc (the_low_target): Ditto.
1111 * linux-tile-low.cc (the_low_target): Ditto.
1112 * linux-xtensa-low.cc (the_low_target): Ditto.
1113
007c9b97
TBA
11142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1115
1116 Remove the 'supports_z_point_type' linux target op and let the
1117 concrete linux target define it by overriding the op declared in
1118 process_stratum_target.
1119
1120 * linux-low.cc (linux_process_target::supports_z_point_type):
1121 Remove.
1122 * linux-low.h (struct linux_target_ops): Remove the op.
1123 (class linux_process_target) <supports_z_point_type>: Remove.
1124 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1125 Declare.
1126 (x86_supports_z_point_type): Turn into...
1127 (x86_target::supports_z_point_type): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-aarch64-low.cc (class aarch64_target)
1130 <supports_z_point_type>: Declare.
1131 (aarch64_supports_z_point_type): Turn into...
1132 (aarch64_target::supports_z_point_type): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1135 Declare.
1136 (arm_supports_z_point_type): Turn into...
1137 (arm_target::supports_z_point_type): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-crisv32-low.cc (class crisv32_target)
1140 <supports_z_point_type>: Declare.
1141 (cris_supports_z_point_type): Turn into...
1142 (crisv32_target::supports_z_point_type): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1145 Declare.
1146 (mips_supports_z_point_type): Turn into...
1147 (mips_target::supports_z_point_type): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1150 Declare.
1151 (ppc_supports_z_point_type): Turn into...
1152 (ppc_target::supports_z_point_type): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1155 Declare.
1156 (s390_supports_z_point_type): Turn into...
1157 (s390_target::supports_z_point_type): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-bfin-low.cc (the_low_target): Remove the op field.
1160 * linux-m32r-low.cc (the_low_target): Ditto.
1161 * linux-m68k-low.cc (the_low_target): Ditto.
1162 * linux-sh-low.cc (the_low_target): Ditto.
1163 * linux-sparc-low.cc (the_low_target): Ditto.
1164 * linux-tic6x-low.cc (the_low_target): Ditto.
1165 * linux-tile-low.cc (the_low_target): Ditto.
1166 * linux-xtensa-low.cc (the_low_target): Ditto.
1167
d7146cda
TBA
11682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1169
1170 Turn the 'breakpoint_at' linux target op into a method of
1171 linux_process_target.
1172
1173 * linux-low.h (struct linux_target_ops): Remove the op.
1174 (class linux_process_target) <low_breakpoint_at>: Declare.
1175
1176 Update the callers below:
1177
1178 * linux-low.cc (linux_process_target::save_stop_reason)
1179 (linux_process_target::thread_still_has_status_pending)
1180 (linux_process_target::wait_1)
1181
1182 * linux-x86-low.cc (class x86_target)
1183 <low_breakpoint_at>: Declare.
1184 (x86_breakpoint_at): Turn into...
1185 (x86_target::low_breakpoint_at): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-aarch64-low.cc (class aarch64_target)
1188 <low_breakpoint_at>: Declare.
1189 (aarch64_breakpoint_at): Turn into...
1190 (aarch64_target::low_breakpoint_at): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-arm-low.cc (class arm_target)
1193 <low_breakpoint_at>: Declare.
1194 (arm_target::low_breakpoint_at): Define.
1195 (the_low_target): Remove the op field.
1196 * linux-bfin-low.cc (class bfin_target)
1197 <low_breakpoint_at>: Declare.
1198 (bfin_breakpoint_at): Turn into...
1199 (bfin_target::low_breakpoint_at): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-cris-low.cc (class cris_target)
1202 <low_breakpoint_at>: Declare.
1203 (cris_breakpoint_at): Turn into...
1204 (cris_target::low_breakpoint_at): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-crisv32-low.cc (class crisv32_target)
1207 <low_breakpoint_at>: Declare.
1208 (crisv32_breakpoint_at): Turn into...
1209 (crisv32_target::low_breakpoint_at): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-ia64-low.cc (class ia64_target)
1212 <low_breakpoint_at>: Declare.
1213 (ia64_target::low_breakpoint_at): Define.
1214 * linux-m32r-low.cc (class m32r_target)
1215 <low_breakpoint_at>: Declare.
1216 (m32r_breakpoint_at): Turn into...
1217 (m32r_target::low_breakpoint_at): ...this.
1218 (the_low_target): Remove the op field.
1219 * linux-m68k-low.cc (class m68k_target)
1220 <low_breakpoint_at>: Declare.
1221 (m68k_breakpoint_at): Turn into...
1222 (m68k_target::low_breakpoint_at): ...this.
1223 (the_low_target): Remove the op field.
1224 * linux-mips-low.cc (class mips_target)
1225 <low_breakpoint_at>: Declare.
1226 (mips_breakpoint_at): Turn into...
1227 (mips_target::low_breakpoint_at): ...this.
1228 (the_low_target): Remove the op field.
1229 * linux-nios2-low.cc (class nios2_target)
1230 <low_breakpoint_at>: Declare.
1231 (nios2_breakpoint_at): Turn into...
1232 (nios2_target::low_breakpoint_at): ...this.
1233 (the_low_target): Remove the op field.
1234 * linux-ppc-low.cc (class ppc_target)
1235 <low_breakpoint_at>: Declare.
1236 (ppc_breakpoint_at): Turn into...
1237 (ppc_target::low_breakpoint_at): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-riscv-low.cc (class riscv_target)
1240 <low_breakpoint_at>: Declare.
1241 (riscv_breakpoint_at): Turn into...
1242 (riscv_target::low_breakpoint_at): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-s390-low.cc (class s390_target)
1245 <low_breakpoint_at>: Declare.
1246 (s390_breakpoint_at): Turn into...
1247 (s390_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-sh-low.cc (class sh_target)
1250 <low_breakpoint_at>: Declare.
1251 (sh_breakpoint_at): Turn into...
1252 (sh_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-sparc-low.cc (class sparc_target)
1255 <low_breakpoint_at>: Declare.
1256 (sparc_breakpoint_at): Turn into...
1257 (sparc_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-tic6x-low.cc (class tic6x_target)
1260 <low_breakpoint_at>: Declare.
1261 (tic6x_breakpoint_at): Turn into...
1262 (tic6x_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-tile-low.cc (class tile_target)
1265 <low_breakpoint_at>: Declare.
1266 (tile_breakpoint_at): Turn into...
1267 (tile_target::low_breakpoint_at): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-xtensa-low.cc (class xtensa_target)
1270 <low_breakpoint_at>: Declare.
1271 (xtensa_breakpoint_at): Turn into...
1272 (xtensa_target::low_breakpoint_at): ...this.
1273 (the_low_target): Remove the op field.
1274
d4807ea2
TBA
12752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1276
1277 Turn the 'decr_pc_after_break' linux_target_ops field into
1278 a method of linux_process_target.
1279
1280 * linux-low.h (struct linux_target_ops)
1281 <decr_pc_after_break>: Remove.
1282 (class linux_process_target) <low_decr_pc_after_break>: New method
1283 declaration.
1284 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1285 New method implementation.
1286
1287 Update the users below.
1288
1289 (linux_process_target::save_stop_reason)
1290 (linux_process_target::wait_1)
1291 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1292 New declaration.
1293 (x86_target::low_decr_pc_after_break): New method implementation.
1294 (the_low_target): Remove the field.
1295 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1296 New declaration.
1297 (bfin_target::low_decr_pc_after_break): New method implementation.
1298 (the_low_target): Remove the field.
1299 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1300 New declaration.
1301 (m68k_target::low_decr_pc_after_break): New method implementation.
1302 (the_low_target): Remove the field.
1303 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1304 New declaration.
1305 (s390_target::low_decr_pc_after_break): New method implementation.
1306 (the_low_target): Remove the field.
1307 * linux-aarch64-low.cc (the_low_target): Remove the field.
1308 * linux-arm-low.cc (the_low_target): Remove the field.
1309 * linux-cris-low.cc (the_low_target): Remove the field.
1310 * linux-crisv32-low.cc (the_low_target): Remove the field.
1311 * linux-m32r-low.cc (the_low_target): Remove the field.
1312 * linux-mips-low.cc (the_low_target): Remove the field.
1313 * linux-nios2-low.cc (the_low_target): Remove the field.
1314 * linux-ppc-low.cc (the_low_target): Remove the field.
1315 * linux-riscv-low.cc (the_low_target): Remove the field.
1316 * linux-sh-low.cc (the_low_target): Remove the field.
1317 * linux-sparc-low.cc (the_low_target): Remove the field.
1318 * linux-tic6x-low.cc (the_low_target): Remove the field.
1319 * linux-tile-low.cc (the_low_target): Remove the field.
1320 * linux-xtensa-low.cc (the_low_target): Remove the field.
1321
7582c77c
TBA
13222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1323
1324 Remove the 'supports_software_single_step' linux target op and let
1325 the concrete linux target define it by overriding the op in
1326 process_stratum_target.
1327 Turn the 'get_next_pcs' linux target op into a method of
1328 linux_process_target.
1329
1330 * linux-low.h (struct linux_target_ops): Remove the ops.
1331 (class linux_process_target) <supports_software_single_step>:
1332 Remove.
1333 <low_get_next_pcs>: Declare.
1334 * linux-low.cc (can_software_single_step): Remove.
1335 (linux_process_target::low_get_next_pcs): Define.
1336 (linux_process_target::supports_software_single_step): Remove.
1337
1338 Update the callers below.
1339
1340 (linux_process_target::handle_extended_wait)
1341 (linux_process_target::wait_1)
1342 (linux_process_target::install_software_single_step_breakpoints)
1343 (linux_process_target::single_step)
1344 (linux_process_target::thread_needs_step_over)
1345 (linux_process_target::proceed_one_lwp)
1346 (linux_process_target::supports_range_stepping)
1347
1348 * linux-x86-low.cc (the_low_target): Remove the op field.
1349 * linux-aarch64-low.cc (the_low_target): Ditto.
1350 * linux-bfin-low.cc (the_low_target): Ditto.
1351 * linux-cris-low.cc (the_low_target): Ditto.
1352 * linux-crisv32-low.cc (the_low_target): Ditto.
1353 * linux-m32r-low.cc (the_low_target): Ditto.
1354 * linux-m68k-low.cc (the_low_target): Ditto.
1355 * linux-mips-low.cc (the_low_target): Ditto.
1356 * linux-nios2-low.cc (the_low_target): Ditto.
1357 * linux-ppc-low.cc (the_low_target): Ditto.
1358 * linux-riscv-low.cc (the_low_target): Ditto.
1359 * linux-s390-low.cc (the_low_target): Ditto.
1360 * linux-sh-low.cc (the_low_target): Ditto.
1361 * linux-sparc-low.cc (the_low_target): Ditto.
1362 * linux-tic6x-low.cc (the_low_target): Ditto.
1363 * linux-tile-low.cc (the_low_target): Ditto.
1364 * linux-xtensa-low.cc (the_low_target): Ditto.
1365 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1366 <supports_software_single_step>: Declare.
1367 (arm_target::supports_software_single_step): Define.
1368 (arm_gdbserver_get_next_pcs): Turn into...
1369 (arm_target::low_get_next_pcs): ...this.
1370 (the_low_target): Remove the op field.
1371
3ca4edb6
TBA
13722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1373
1374 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1375 the concrete linux target define it by overriding the op
1376 in process_stratum_target.
1377
1378 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1379 Remove.
1380 * linux-low.h (struct linux_target_ops): Remove the op.
1381 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1382 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1383 Declare.
1384 (x86_sw_breakpoint_from_kind): Turn into...
1385 (x86_target::sw_breakpoint_from_kind): ...this.
1386 (the_low_target): Remove the op field.
1387 * linux-aarch64-low.cc (class aarch64_target)
1388 <sw_breakpoint_from_kind>: Declare.
1389 (aarch64_sw_breakpoint_from_kind): Turn into...
1390 (aarch64_target::sw_breakpoint_from_kind): ...this.
1391 (the_low_target): Remove the op field.
1392 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1393 Declare.
1394 (arm_target::sw_breakpoint_from_kind): Define.
1395 (the_low_target): Remove the op field.
1396 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1397 Declare.
1398 (bfin_sw_breakpoint_from_kind): Turn into...
1399 (bfin_target::sw_breakpoint_from_kind): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1402 Declare.
1403 (cris_sw_breakpoint_from_kind): Turn into...
1404 (cris_target::sw_breakpoint_from_kind): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-crisv32-low.cc (class crisv32_target)
1407 <sw_breakpoint_from_kind>: Declare.
1408 (cris_sw_breakpoint_from_kind): Turn into...
1409 (crisv32_target::sw_breakpoint_from_kind): ...this.
1410 (the_low_target): Remove the op field.
1411 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1412 Declare.
1413 (ia64_target::sw_breakpoint_from_kind): Define.
1414 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1415 Declare.
1416 (m32r_sw_breakpoint_from_kind): Turn into...
1417 (m32r_target::sw_breakpoint_from_kind): ...this.
1418 (the_low_target): Remove the op field.
1419 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1420 Declare.
1421 (m68k_sw_breakpoint_from_kind): Turn into...
1422 (m68k_target::sw_breakpoint_from_kind): ...this.
1423 (the_low_target): Remove the op field.
1424 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1425 Declare.
1426 (mips_sw_breakpoint_from_kind): Turn into...
1427 (mips_target::sw_breakpoint_from_kind): ...this.
1428 (the_low_target): Remove the op field.
1429 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1430 Declare.
1431 (nios2_sw_breakpoint_from_kind): Turn into...
1432 (nios2_target::sw_breakpoint_from_kind): ...this.
1433 (the_low_target): Remove the op field.
1434 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1435 Declare.
1436 (ppc_sw_breakpoint_from_kind): Turn into...
1437 (ppc_target::sw_breakpoint_from_kind): ...this.
1438 (the_low_target): Remove the op field.
1439 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1440 Declare.
1441 (riscv_sw_breakpoint_from_kind): Turn into...
1442 (riscv_target::sw_breakpoint_from_kind): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1445 Declare.
1446 (s390_sw_breakpoint_from_kind): Turn into...
1447 (s390_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1450 Declare.
1451 (sh_sw_breakpoint_from_kind): Turn into...
1452 (sh_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1455 Declare.
1456 (sparc_sw_breakpoint_from_kind): Turn into...
1457 (sparc_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1460 Declare.
1461 (tic6x_sw_breakpoint_from_kind): Turn into...
1462 (tic6x_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1465 Declare.
1466 (tile_sw_breakpoint_from_kind): Turn into...
1467 (tile_target::sw_breakpoint_from_kind): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-xtensa-low.cc (class xtensa_target)
1470 <sw_breakpoint_from_kind>: Declare.
1471 (xtensa_sw_breakpoint_from_kind): Turn into...
1472 (xtensa_target::sw_breakpoint_from_kind): ...this.
1473 (the_low_target): Remove the op field.
1474
06250e4e
TBA
14752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1476
1477 Remove the 'breakpoint_kind_from_pc' and
1478 'breakpoint_kind_from_current_state' linux target ops, and let the
1479 concrete linux target define them by overriding the ops of
1480 process_stratum_target.
1481
1482 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1483 Remove.
1484 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1485 * linux-low.h (struct linux_target_ops): Remove ops.
1486 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1487 <breakpoint_kind_from_current_state>: Remove.
1488 * linux-x86-low.cc (the_low_target): Remove the op fields.
1489 * linux-bfin-low.cc (the_low_target): Ditto.
1490 * linux-cris-low.cc (the_low_target): Ditto.
1491 * linux-crisv32-low.cc (the_low_target): Ditto.
1492 * linux-m32r-low.cc (the_low_target): Ditto.
1493 * linux-m68k-low.cc (the_low_target): Ditto.
1494 * linux-mips-low.cc (the_low_target): Ditto.
1495 * linux-nios2-low.cc (the_low_target): Ditto.
1496 * linux-ppc-low.cc (the_low_target): Ditto.
1497 * linux-s390-low.cc (the_low_target): Ditto.
1498 * linux-sh-low.cc (the_low_target): Ditto.
1499 * linux-sparc-low.cc (the_low_target): Ditto.
1500 * linux-tic6x-low.cc (the_low_target): Ditto.
1501 * linux-tile-low.cc (the_low_target): Ditto.
1502 * linux-xtensa-low.cc (the_low_target): Ditto.
1503 * linux-aarch64-low.cc (class aarch64_target)
1504 <breakpoint_kind_from_pc>
1505 <breakpoint_kind_from_current_state>: Declare.
1506 (aarch64_breakpoint_kind_from_pc): Turn into...
1507 (aarch64_target::breakpoint_kind_from_pc): ...this.
1508 (aarch64_breakpoint_kind_from_current_state): Turn into...
1509 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1510 (the_low_target): Remove the op fields.
1511 * linux-arm-low.cc (class arm_target):
1512 <breakpoint_kind_from_pc>
1513 <breakpoint_kind_from_current_state>: Declare.
1514 (arm_target::breakpoint_kind_from_pc): Define.
1515 (arm_target::breakpoint_kind_from_current_state): Define.
1516 (the_low_target): Remove the op fields.
1517 * linux-riscv-low.cc (class riscv_target):
1518 <breakpoint_kind_from_pc>: Declare.
1519 (riscv_breakpoint_kind_from_pc): Turn into...
1520 (riscv_target::breakpoint_kind_from_pc): ...this.
1521 (the_low_target): Remove the op fields.
1522
bf9ae9d8
TBA
15232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1524
1525 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1526 of linux_process_target.
1527
1528 * linux-low.h (struct linux_target_ops): Remove the ops.
1529 (class linux_process_target) <low_supports_breakpoints>
1530 <low_get_pc>
1531 <low_set_pc>: Declare.
1532 * linux-low.cc (supports_breakpoints): Turn into...
1533 (linux_process_target::low_supports_breakpoints): ...this.
1534 (linux_process_target::low_get_pc): Define.
1535 (linux_process_target::low_set_pc): Define.
1536
1537 Update the callers below.
1538
1539 (linux_process_target::get_pc)
1540 (linux_process_target::save_stop_reason)
1541 (linux_process_target::maybe_move_out_of_jump_pad)
1542 (linux_process_target::wait_1)
1543 (linux_process_target::resume_one_lwp_throw)
1544 (linux_process_target::resume)
1545 (linux_process_target::proceed_all_lwps)
1546 (linux_process_target::read_pc)
1547 (linux_process_target::write_pc)
1548
1549 * linux-x86-low.cc (class linux_process_target)
1550 <low_supports_breakpoints>
1551 <low_get_pc>
1552 <low_set_pc>: Declare.
1553 (x86_target::low_supports_breakpoints): Define.
1554 (x86_get_pc): Turn into...
1555 (x86_target::low_get_pc): ...this.
1556 (x86_set_pc): Turn into...
1557 (x86_target::low_set_pc): ...this.
1558 (the_low_target): Remove the op fields.
1559 * linux-arm-low.cc (class arm_target)
1560 <low_supports_breakpoints>
1561 <low_get_pc>
1562 <low_set_pc>: Declare.
1563 (arm_target::low_supports_breakpoints)
1564 (arm_target::low_get_pc)
1565 (arm_target::low_set_pc): Define.
1566 (the_low_target): Remove the op fields.
1567 * linux-bfin-low.cc (class bfin_target)
1568 <low_supports_breakpoints>
1569 <low_get_pc>
1570 <low_set_pc>: Declare.
1571 (bfin_target::low_supports_breakpoints)
1572 (bfin_target::low_get_pc)
1573 (bfin_target::low_set_pc): Define.
1574 (the_low_target): Remove the op fields.
1575 * linux-cris-low.cc (class cris_target)
1576 <low_supports_breakpoints>
1577 <low_get_pc>
1578 <low_set_pc>: Declare.
1579 (cris_target::low_supports_breakpoints)
1580 (cris_target::low_get_pc)
1581 (cris_target::low_set_pc): Define.
1582 (the_low_target): Remove the op fields.
1583 * linux-crisv32-low.cc (class crisv32_target)
1584 <low_supports_breakpoints>
1585 <low_get_pc>
1586 <low_set_pc>: Declare.
1587 (crisv32_target::low_supports_breakpoints)
1588 (crisv32_target::low_get_pc)
1589 (crisv32_target::low_set_pc): Define.
1590 (the_low_target): Remove the op fields.
1591 * linux-m32r-low.cc (class m32r_target)
1592 <low_supports_breakpoints>
1593 <low_get_pc>
1594 <low_set_pc>: Declare.
1595 (m32r_target::low_supports_breakpoints)
1596 (m32r_target::low_get_pc)
1597 (m32r_target::low_set_pc): Define.
1598 (the_low_target): Remove the op fields.
1599 * linux-m68k-low.cc (class m68k_target)
1600 <low_supports_breakpoints>
1601 <low_get_pc>
1602 <low_set_pc>: Declare.
1603 (m68k_target::low_supports_breakpoints)
1604 (m68k_target::low_get_pc)
1605 (m68k_target::low_set_pc): Define.
1606 (the_low_target): Remove the op fields.
1607 * linux-nios2-low.cc (class nios2_target)
1608 <low_supports_breakpoints>
1609 <low_get_pc>
1610 <low_set_pc>: Declare.
1611 (nios2_target::low_supports_breakpoints)
1612 (nios2_target::low_get_pc)
1613 (nios2_target::low_set_pc): Define.
1614 (the_low_target): Remove the op fields.
1615 * linux-sh-low.cc (class sh_target)
1616 <low_supports_breakpoints>
1617 <low_get_pc>
1618 <low_set_pc>: Declare.
1619 (sh_target::low_supports_breakpoints)
1620 (sh_target::low_get_pc)
1621 (sh_target::low_set_pc): Define.
1622 (the_low_target): Remove the op fields.
1623 * linux-xtensa-low.cc (class xtensa_target)
1624 <low_supports_breakpoints>
1625 <low_get_pc>
1626 <low_set_pc>: Declare.
1627 (xtensa_target::low_supports_breakpoints)
1628 (xtensa_target::low_get_pc)
1629 (xtensa_target::low_set_pc): Define.
1630 (the_low_target): Remove the op fields.
1631 * linux-sparc-low.cc (class sparc_target)
1632 <low_supports_breakpoints>
1633 <low_get_pc>: Declare.
1634 (sparc_target::low_supports_breakpoints)
1635 (sparc_target::low_get_pc): Define.
1636 (the_low_target): Remove the op fields.
1637 * linux-tile-low.cc (class tile_target)
1638 <low_supports_breakpoints>
1639 <low_get_pc>
1640 <low_set_pc>: Declare.
1641 (tile_target::low_supports_breakpoints)
1642 (tile_target::low_get_pc)
1643 (tile_target::low_set_pc): Define.
1644 (the_low_target): Remove the op fields.
1645 * linux-aarch64-low.cc (class aarch64_target)
1646 <low_supports_breakpoints>
1647 <low_get_pc>
1648 <low_set_pc>: Declare.
1649 (aarch64_target::low_supports_breakpoints): Define.
1650 (aarch64_get_pc): Turn into...
1651 (aarch64_target::low_get_pc): ...this.
1652 (aarch64_set_pc): Turn into...
1653 (aarch64_target::low_set_pc): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-mips-low.cc (class mips_target)
1656 <low_supports_breakpoints>
1657 <low_get_pc>
1658 <low_set_pc>: Declare.
1659 (mips_target::low_supports_breakpoints): Define.
1660 (mips_get_pc): Turn into...
1661 (mips_target::low_get_pc): ...this.
1662 (mips_set_pc): Turn into...
1663 (mips_target::low_set_pc): ...this.
1664 (the_low_target): Remove the op fields.
1665 * linux-ppc-low.cc (class ppc_target)
1666 <low_supports_breakpoints>
1667 <low_get_pc>
1668 <low_set_pc>: Declare.
1669 (ppc_target::low_supports_breakpoints): Define.
1670 (ppc_get_pc): Turn into...
1671 (ppc_target::low_get_pc): ...this.
1672 (ppc_set_pc): Turn into...
1673 (ppc_target::low_set_pc): ...this.
1674 (the_low_target): Remove the op fields.
1675 * linux-riscv-low.cc (class riscv_target)
1676 <low_supports_breakpoints>
1677 <low_get_pc>
1678 <low_set_pc>: Declare.
1679 (riscv_target::low_supports_breakpoints): Define.
1680 (riscv_get_pc): Turn into...
1681 (riscv_target::low_get_pc): ...this.
1682 (riscv_set_pc): Turn into...
1683 (riscv_target::low_set_pc): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-s390-low.cc (class s390_target)
1686 <low_supports_breakpoints>
1687 <low_get_pc>
1688 <low_set_pc>: Declare.
1689 (s390_target::low_supports_breakpoints): Define.
1690 (s390_get_pc): Turn into...
1691 (s390_target::low_get_pc): ...this.
1692 (s390_set_pc): Turn into...
1693 (s390_target::low_set_pc): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-tic6x-low.cc (class tic6x_target)
1696 <low_supports_breakpoints>
1697 <low_get_pc>
1698 <low_set_pc>: Declare.
1699 (tic6x_target::low_supports_breakpoints): Define.
1700 (tic6x_get_pc): Turn into...
1701 (tic6x_target::low_get_pc): ...this.
1702 (tic6x_set_pc): Turn into...
1703 (tic6x_target::low_set_pc): ...this.
1704 (the_low_target): Remove the op fields.
1705
df95181f
TBA
17062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1707
1708 Turn some more static methods in linux-low into private methods
1709 of linux_process_target.
1710
1711 * linux-low.cc (get_pc): Turn into...
1712 (linux_process_target::get_pc): ...this.
1713 (save_stop_reason): Turn into...
1714 (linux_process_target::save_stop_reason): ...this.
1715 (thread_still_has_status_pending_p): Turn into...
1716 (linux_process_target::thread_still_has_status_pending): ...this.
1717 (status_pending_p_callback): Turn into...
1718 (linux_process_target::status_pending_p_callback): ...this.
1719 (resume_stopped_resumed_lwps): Turn into...
1720 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1721 (install_software_single_step_breakpoints): Turn into...
1722 (linux_process_target::install_software_single_step_breakpoints):
1723 ...this.
1724 (single_step): Turn into...
1725 (linux_process_target::single_step): ...this.
1726 (linux_resume_one_lwp_throw): Turn into...
1727 (linux_process_target::resume_one_lwp_throw): ...this.
1728 (linux_resume_one_lwp): Turn into...
1729 (linux_process_target::resume_one_lwp): ...this.
1730 (resume_status_pending_p): Turn into...
1731 (linux_process_target::resume_status_pending): ...this.
1732 (need_step_over_p): Turn into...
1733 (linux_process_target::thread_needs_step_over): ...this.
1734 (linux_resume_one_thread): Turn into...
1735 (linux_process_target::resume_one_thread): ...this.
1736 (proceed_one_lwp): Turn into...
1737 (linux_process_target::proceed_one_lwp): ...this.
1738 (unsuspend_and_proceed_one_lwp): Turn into...
1739 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1740
1741 Update the calls/references to the above functions below.
1742
1743 (linux_process_target::handle_extended_wait)
1744 (linux_process_target::filter_event)
1745 (linux_process_target::wait_for_event_filtered)
1746 (linux_process_target::wait_1)
1747 (linux_process_target::move_out_of_jump_pad)
1748 (linux_process_target::start_step_over)
1749 (linux_process_target::resume)
1750 (linux_process_target::proceed_all_lwps)
1751 (regsets_store_inferior_registers)
1752 (linux_process_target::store_register)
1753
1754 * linux-low.h (class linux_process_target)
1755 <get_pc>
1756 <save_stop_reason>
1757 <thread_still_has_status_pending>
1758 <status_pending_p_callback>
1759 <resume_stopped_resumed_lwps>
1760 <install_software_single_step_breakpoints>
1761 <single_step>
1762 <resume_one_lwp_throw>
1763 <resume_one_lwp>
1764 <resume_status_pending>
1765 <thread_needs_step_over>
1766 <resume_one_thread>
1767 <proceed_one_lwp>
1768 <unsuspend_and_proceed_one_lwp>: Declare.
1769
bd70b1f2
TBA
17702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1771
1772 Turn the 'fetch_register' linux target op into a method of
1773 linux_process_target.
1774
1775 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1776 (class linux_process_target) <low_fetch_register>: Declare.
1777 * linux-x86-low.cc (the_low_target)
1778 * linux-aarch64-low.cc (the_low_target)
1779 * linux-arm-low.cc (the_low_target)
1780 * linux-bfin-low.cc (the_low_target)
1781 * linux-cris-low.cc (the_low_target)
1782 * linux-crisv32-low.cc (the_low_target)
1783 * linux-m32r-low.cc (the_low_target)
1784 * linux-m68k-low.cc (the_low_target)
1785 * linux-nios2-low.cc (the_low_target)
1786 * linux-ppc-low.cc (the_low_target)
1787 * linux-s390-low.cc (the_low_target)
1788 * linux-sh-low.cc (the_low_target)
1789 * linux-sparc-low.cc (the_low_target)
1790 * linux-tic6x-low.cc (the_low_target)
1791 * linux-tile-low.cc (the_low_target)
1792 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1793 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1794 Declare.
1795 (ia64_fetch_register): Turn into...
1796 (ia64_target::low_fetch_register): ...this.
1797 (the_low_target): Remove the op field.
1798 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1799 Declare.
1800 (mips_fetch_register): Turn into...
1801 (mips_target::low_fetch_register): ...this.
1802 (the_low_target): Remove the op field.
1803 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1804 Declare.
1805 (riscv_fetch_register): Turn into...
1806 (riscv_target::low_fetch_register): ...this.
1807 (the_low_target): Remove the op field.
1808
1809 Update the callers below.
1810
1811 * linux-low.cc (linux_process_target::fetch_registers)
1812 (linux_process_target::low_fetch_register)
1813
daca57a7
TBA
18142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1815
1816 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1817 linux target ops into methods of linux_process_target.
1818
1819 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1820 (class linux_process_target) <fetch_register>
1821 <store_register>
1822 <usr_fetch_inferior_registers>
1823 <usr_store_inferior_registers>
1824 <low_cannot_fetch_register>
1825 <low_cannot_fetch_register> Declare.
1826 * linux-low.cc (fetch_register): Turn into...
1827 (linux_process_target::fetch_register): ...this.
1828 (store_register): Turn into ...
1829 (linux_process_target::store_register): ...this.
1830 (usr_fetch_inferior_registers): Turn into...
1831 (linux_process_target::usr_fetch_inferior_registers): ...this.
1832 (usr_store_inferior_registers): Turn into...
1833 (linux_process_target::usr_store_inferior_registers): ...this.
1834 * linux-x86-low.cc (class x86_target)
1835 <low_cannot_fetch_register>
1836 <low_cannot_store_register>: Declare.
1837 (x86_cannot_store_register): Turn into...
1838 (x86_target::low_cannot_store_register): ...this.
1839 (x86_cannot_fetch_register): Turn into...
1840 (x86_target::low_cannot_fetch_register): ...this.
1841 (the_low_target): Remove the target op fields.
1842 * linux-aarch64-low.cc (class aarch64_target)
1843 <low_cannot_fetch_register>
1844 <low_cannot_store_register>: Declare.
1845 (aarch64_target::low_cannot_fetch_register)
1846 (aarch64_target::low_cannot_store_register): Define.
1847 (the_low_target): Remove the op fields.
1848 * linux-arm-low.cc (class arm_target)
1849 <low_cannot_fetch_register>
1850 <low_cannot_store_register>: Declare.
1851 (arm_cannot_fetch_register): Turn into...
1852 (arm_target::low_cannot_fetch_register): ...this.
1853 (arm_cannot_store_register): Turn into...
1854 (arm_target::low_cannot_store_register): ...this.
1855 (the_low_target): Remove the op fields.
1856 * linux-bfin-low.cc (class bfin_target)
1857 <low_cannot_fetch_register>
1858 <low_cannot_store_register>: Declare.
1859 (bfin_cannot_fetch_register): Turn into...
1860 (bfin_target::low_cannot_fetch_register): ...this.
1861 (bfin_cannot_store_register): Turn into...
1862 (bfin_target::low_cannot_store_register): ...this.
1863 (the_low_target): Remove the op fields.
1864 * linux-cris-low.cc (class cris_target)
1865 <low_cannot_fetch_register>
1866 <low_cannot_store_register>: Declare.
1867 (cris_cannot_fetch_register): Turn into...
1868 (cris_target::low_cannot_fetch_register): ...this.
1869 (cris_cannot_store_register): Turn into...
1870 (cris_target::low_cannot_store_register): ...this.
1871 (the_low_target): Remove the op fields.
1872 * linux-crisv32-low.cc (class crisv32_target)
1873 <low_cannot_fetch_register>
1874 <low_cannot_store_register>: Declare.
1875 (crisv32_target::low_cannot_fetch_register)
1876 (crisv32_target::low_cannot_store_register): Define.
1877 (the_low_target): Remove the op fields.
1878 * linux-ia64-low.cc (class ia64_target)
1879 <low_cannot_fetch_register>
1880 <low_cannot_store_register>: Declare.
1881 (ia64_cannot_fetch_register): Turn into...
1882 (ia64_target::low_cannot_fetch_register): ...this.
1883 (ia64_cannot_store_register): Turn into...
1884 (ia64_target::low_cannot_store_register): ...this.
1885 (the_low_target): Remove the op fields.
1886 * linux-m32r-low.cc (class m32r_target)
1887 <low_cannot_fetch_register>
1888 <low_cannot_store_register>: Declare.
1889 (m32r_cannot_fetch_register): Turn into...
1890 (m32r_target::low_cannot_fetch_register): ...this.
1891 (m32r_cannot_store_register): Turn into...
1892 (m32r_target::low_cannot_store_register): ...this.
1893 (the_low_target): Remove the op fields.
1894 * linux-m68k-low.cc (class m68k_target)
1895 <low_cannot_fetch_register>
1896 <low_cannot_store_register>: Declare.
1897 (m68k_cannot_fetch_register): Turn into...
1898 (m68k_target::low_cannot_fetch_register): ...this.
1899 (m68k_cannot_store_register): Turn into...
1900 (m68k_target::low_cannot_store_register): ...this.
1901 (the_low_target): Remove the op fields.
1902 * linux-mips-low.cc (class mips_target)
1903 <low_cannot_fetch_register>
1904 <low_cannot_store_register>: Declare.
1905 (mips_cannot_fetch_register): Turn into...
1906 (mips_target::low_cannot_fetch_register): ...this.
1907 (mips_cannot_store_register): Turn into...
1908 (mips_target::low_cannot_store_register): ...this.
1909 (get_usrregs_info): Inline at the call sites in
1910 low_cannot_fetch_register and low_cannot_store_register,
1911 and remove.
1912 (the_low_target): Remove the op fields.
1913 * linux-nios2-low.cc (class nios2_target)
1914 <low_cannot_fetch_register>
1915 <low_cannot_store_register>: Declare.
1916 (nios2_cannot_fetch_register): Turn into...
1917 (nios2_target::low_cannot_fetch_register): ...this.
1918 (nios2_cannot_store_register): Turn into...
1919 (nios2_target::low_cannot_store_register): ...this.
1920 (the_low_target): Remove the op fields.
1921 * linux-ppc-low.cc (class ppc_target)
1922 <low_cannot_fetch_register>
1923 <low_cannot_store_register>: Declare.
1924 (ppc_cannot_fetch_register): Turn into...
1925 (ppc_target::low_cannot_fetch_register): ...this.
1926 (ppc_cannot_store_register): Turn into...
1927 (ppc_target::low_cannot_store_register): ...this.
1928 (the_low_target): Remove the op fields.
1929 * linux-riscv-low.cc (class riscv_target)
1930 <low_cannot_fetch_register>
1931 <low_cannot_store_register>: Declare.
1932 (riscv_target::low_cannot_fetch_register)
1933 (riscv_target::low_cannot_store_register): Define.
1934 (the_low_target): Remove the op fields.
1935 * linux-s390-low.cc (class s390_target)
1936 <low_cannot_fetch_register>
1937 <low_cannot_store_register>: Declare.
1938 (s390_cannot_fetch_register): Turn into...
1939 (s390_target::low_cannot_fetch_register): ...this.
1940 (s390_cannot_store_register): Turn into...
1941 (s390_target::low_cannot_store_register): ...this.
1942 (the_low_target): Remove the op fields.
1943 * linux-sh-low.cc (class sh_target)
1944 <low_cannot_fetch_register>
1945 <low_cannot_store_register>: Declare.
1946 (sh_cannot_fetch_register): Turn into...
1947 (sh_target::low_cannot_fetch_register): ...this.
1948 (sh_cannot_store_register): Turn into...
1949 (sh_target::low_cannot_store_register): ...this.
1950 (the_low_target): Remove the op fields.
1951 * linux-sparc-low.cc (class sparc_target)
1952 <low_cannot_fetch_register>
1953 <low_cannot_store_register>: Declare.
1954 (sparc_cannot_fetch_register): Turn into...
1955 (sparc_target::low_cannot_fetch_register): ...this.
1956 (sparc_cannot_store_register): Turn into...
1957 (sparc_target::low_cannot_store_register): ...this.
1958 (the_low_target): Remove the op fields.
1959 * linux-tic6x-low.cc (class tic6x_target)
1960 <low_cannot_fetch_register>
1961 <low_cannot_store_register>: Declare.
1962 (tic6x_cannot_fetch_register): Turn into...
1963 (tic6x_target::low_cannot_fetch_register): ...this.
1964 (tic6x_cannot_store_register): Turn into...
1965 (tic6x_target::low_cannot_store_register): ...this.
1966 (the_low_target): Remove the op fields.
1967 * linux-tile-low.cc (class tile_target)
1968 <low_cannot_fetch_register>
1969 <low_cannot_store_register>: Declare.
1970 (tile_cannot_fetch_register): Turn into...
1971 (tile_target::low_cannot_fetch_register): ...this.
1972 (tile_cannot_store_register): Turn into...
1973 (tile_target::low_cannot_store_register): ...this.
1974 (the_low_target): Remove the op fields.
1975 * linux-xtensa-low.cc (class xtensa_target)
1976 <low_cannot_fetch_register>
1977 <low_cannot_store_register>: Declare.
1978 (xtensa_target::low_cannot_fetch_register)
1979 (xtensa_target::low_cannot_store_register): Define.
1980 (the_low_target): Remove the op fields.
1981
aa8d21c9
TBA
19822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1983
1984 Turn the 'regs_info' linux target op into a method of
1985 linux_process_target.
1986
1987 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1988 (class linux_process_target) <get_regs_info>: Define.
1989
1990 Update the callers below.
1991
1992 * linux-low.cc (linux_process_target::fetch_registers)
1993 (linux_process_target::store_registers)
1994 * proc-service.cc (gregset_info)
1995
1996 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1997 (x86_linux_regs_info): Turn into ...
1998 (x86_target::get_regs_info): ...this.
1999 (the_low_target): Remove the op field.
2000 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2001 Declare.
2002 (aarch64_regs_info): Turn into ...
2003 (aarch64_target::get_regs_info): ...this.
2004 (the_low_target): Remove the op field.
2005 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2006 (arm_regs_info): Turn into ...
2007 (arm_target::get_regs_info): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2010 (bfin_regs_info): Turn into ...
2011 (bfin_target::get_regs_info): ...this.
2012 (the_low_target): Remove the op field.
2013 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2014 (cris_regs_info): Turn into ...
2015 (cris_target::get_regs_info): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2018 Declare.
2019 (crisv32_regs_info): Turn into ...
2020 (crisv32_target::get_regs_info): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2023 (ia64_regs_info): Turn into ...
2024 (ia64_target::get_regs_info): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2027 (m32r_regs_info): Turn into ...
2028 (m32r_target::get_regs_info): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2031 (m68k_regs_info): Turn into ...
2032 (m68k_target::get_regs_info): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2035 (mips_regs_info): Turn into ...
2036 (mips_target::get_regs_info): ...this.
2037 (the_low_target): Remove the op field.
2038 (get_usrregs_info): Update the call to the op.
2039 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2040 (nios2_regs_info): Turn into ...
2041 (nios2_target::get_regs_info): ...this.
2042 (the_low_target): Remove the op field.
2043 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2044 (ppc_regs_info): Turn into ...
2045 (ppc_target::get_regs_info): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2048 (riscv_regs_info): Turn into ...
2049 (riscv_target::get_regs_info): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2052 (s390_regs_info): Turn into ...
2053 (s390_target::get_regs_info): ...this.
2054 (the_low_target): Remove the op field.
2055 (s390_collect_ptrace_register)
2056 (s390_supply_ptrace_register)
2057 (s390_fill_gregset): Update the call to the op.
2058 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2059 (sh_regs_info): Turn into ...
2060 (sh_target::get_regs_info): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2063 (sparc_regs_info): Turn into ...
2064 (sparc_target::get_regs_info): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2067 (tic6x_regs_info): Turn into ...
2068 (tic6x_target::get_regs_info): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2071 (tile_regs_info): Turn into ...
2072 (tile_target::get_regs_info): ...this.
2073 (the_low_target): Remove the op field.
2074 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2075 Declare.
2076 (xtensa_regs_info): Turn into ...
2077 (xtensa_target::get_regs_info): ...this.
2078 (the_low_target): Remove the op field.
2079
797bcff5
TBA
20802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2081
2082 Turn the 'arch_setup' linux target op into a method of
2083 linux_process_target.
2084
2085 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2086 (class linux_process_target) <arch_setup_thread>
2087 <low_arch_setup>: New declarations.
2088 * linux-low.cc (linux_arch_setup): Delete.
2089 (linux_arch_setup_thread): Turn into...
2090 (linux_process_target::arch_setup_thread): ... this.
2091
2092 Update the callers below.
2093
2094 (linux_process_target::handle_extended_wait)
2095 (linux_process_target::post_create_inferior)
2096 (linux_process_target::filter_event)
2097
2098 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2099 declaration.
2100 (x86_linux_update_xmltarget): Turn into...
2101 (x86_target::update_xmltarget): ...this.
2102 (x86_linux_process_qsupported): Update the call to
2103 x86_linux_update_xmltarget.
2104 (x86_arch_setup): Turn into ...
2105 (x86_target::low_arch_setup): ...this.
2106 (the_low_target): Remove the op field.
2107 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2108 declaration.
2109 (aarch64_arch_setup): Turn into ...
2110 (aarch64_target::low_arch_setup): ...this.
2111 (the_low_target): Remove the op field.
2112 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2113 declaration.
2114 (arm_arch_setup): Turn into ...
2115 (arm_target::low_arch_setup): ...this.
2116 (the_low_target): Remove the op field.
2117 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2118 declaration.
2119 (bfin_arch_setup): Turn into ...
2120 (bfin_target::low_arch_setup): ...this.
2121 (the_low_target): Remove the op field.
2122 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2123 declaration.
2124 (cris_arch_setup): Turn into ...
2125 (cris_target::low_arch_setup): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2128 declaration.
2129 (crisv32_arch_setup): Turn into ...
2130 (crisv32_target::low_arch_setup): ...this.
2131 (the_low_target): Remove the op field.
2132 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2133 declaration.
2134 (ia64_arch_setup): Turn into ...
2135 (ia64_target::low_arch_setup): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2138 declaration.
2139 (m32r_arch_setup): Turn into ...
2140 (m32r_target::low_arch_setup): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2143 declaration.
2144 (m68k_arch_setup): Turn into ...
2145 (m68k_target::low_arch_setup): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2148 declaration.
2149 (mips_arch_setup): Turn into ...
2150 (mips_target::low_arch_setup): ...this.
2151 (the_low_target): Remove the op field.
2152 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2153 declaration.
2154 (nios2_arch_setup): Turn into ...
2155 (nios2_target::low_arch_setup): ...this.
2156 (the_low_target): Remove the op field.
2157 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2158 declaration.
2159 (ppc_arch_setup): Turn into ...
2160 (ppc_target::low_arch_setup): ...this.
2161 (the_low_target): Remove the op field.
2162 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2163 declaration.
2164 (riscv_arch_setup): Turn into ...
2165 (riscv_target::low_arch_setup): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2168 declaration.
2169 (s390_arch_setup): Turn into ...
2170 (s390_target::low_arch_setup): ...this.
2171 (the_low_target): Remove the op field.
2172 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2173 declaration.
2174 (sh_arch_setup): Turn into ...
2175 (sh_target::low_arch_setup): ...this.
2176 (the_low_target): Remove the op field.
2177 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2178 declaration.
2179 (sparc_arch_setup): Turn into ...
2180 (sparc_target::low_arch_setup): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2183 declaration.
2184 (tic6x_arch_setup): Turn into ...
2185 (tic6x_target::low_arch_setup): ...this.
2186 (the_low_target): Remove the op field.
2187 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2188 declaration.
2189 (tile_arch_setup): Turn into ...
2190 (tile_target::low_arch_setup): ...this.
2191 (the_low_target): Remove the op field.
2192 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2193 declaration.
2194 (xtensa_arch_setup): Turn into ...
2195 (xtensa_target::low_arch_setup): ...this.
2196 (the_low_target): Remove the op field.
2197
ef0478f6
TBA
21982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2199
2200 * linux-low.h (the_linux_target): New extern declaration.
2201 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2202 'the_target'.
2203 (the_linux_target): Remove.
2204 * linux-x86-low.cc (class x86_target): New class.
2205 (the_x86_target): New static object.
2206 (the_linux_target): Define as pointer to the_x86_target.
2207 * linux-aarch64-low.cc (class aarch64_target): New class.
2208 (the_aarch64_target): New static object.
2209 (the_linux_target): Define as pointer to the_aarch64_target.
2210 * linux-arm-low.cc (class arm_target): New class.
2211 (the_arm_target): New static object.
2212 (the_linux_target): Define as pointer to the_arm_target.
2213 * linux-bfin-low.cc (class bfin_target): New class.
2214 (the_bfin_target): New static object.
2215 (the_linux_target): Define as pointer to the_bfin_target.
2216 * linux-cris-low.cc (class cris_target): New class.
2217 (the_cris_target): New static object.
2218 (the_linux_target): Define as pointer to the_cris_target.
2219 * linux-crisv32-low.cc (class crisv32_target): New class.
2220 (the_crisv32_target): New static object.
2221 (the_linux_target): Define as pointer to the_crisv32_target.
2222 * linux-ia64-low.cc (class ia64_target): New class.
2223 (the_ia64_target): New static object.
2224 (the_linux_target): Define as pointer to the_ia64_target.
2225 * linux-m32r-low.cc (class m32r_target): New class.
2226 (the_m32r_target): New static object.
2227 (the_linux_target): Define as pointer to the_m32r_target.
2228 * linux-m68k-low.cc (class m68k_target): New class.
2229 (the_m68k_target): New static object.
2230 (the_linux_target): Define as pointer to the_m68k_target.
2231 * linux-mips-low.cc (class mips_target): New class.
2232 (the_mips_target): New static object.
2233 (the_linux_target): Define as pointer to the_mips_target.
2234 * linux-nios2-low.cc (class nios2_target): New class.
2235 (the_nios2_target): New static object.
2236 (the_linux_target): Define as pointer to the_nios2_target.
2237 * linux-ppc-low.cc (class ppc_target): New class.
2238 (the_ppc_target): New static object.
2239 (the_linux_target): Define as pointer to the_ppc_target.
2240 * linux-riscv-low.cc (class riscv_target): New class.
2241 (the_riscv_target): New static object.
2242 (the_linux_target): Define as pointer to the_riscv_target.
2243 * linux-s390-low.cc (class s390_target): New class.
2244 (the_s390_target): New static object.
2245 (the_linux_target): Define as pointer to the_s390_target.
2246 * linux-sh-low.cc (class sh_target): New class.
2247 (the_sh_target): New static object.
2248 (the_linux_target): Define as pointer to the_sh_target.
2249 * linux-sparc-low.cc (class sparc_target): New class.
2250 (the_sparc_target): New static object.
2251 (the_linux_target): Define as pointer to the_sparc_target.
2252 * linux-tic6x-low.cc (class tic6x_target): New class.
2253 (the_tic6x_target): New static object.
2254 (the_linux_target): Define as pointer to the_tic6x_target.
2255 * linux-tile-low.cc (class tile_target): New class.
2256 (the_tile_target): New static object.
2257 (the_linux_target): Define as pointer to the_tile_target.
2258 * linux-xtensa-low.cc (class xtensa_target): New class.
2259 (the_xtensa_target): New static object.
2260 (the_linux_target): Define as pointer to the_xtensa_target.
2261
d16f3f6c
TBA
22622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2263
2264 Turn some static functions in linux-low.cc into private methods of
2265 linux_process_target.
2266
2267 * linux-low.cc (handle_extended_wait): Turn into ...
2268 (linux_process_target::handle_extended_wait): ...this. Call
2269 'mourn' on 'this' object instead of 'the_target'.
2270 (maybe_move_out_of_jump_pad): Turn into...
2271 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2272 (linux_low_filter_event): Turn into...
2273 (linux_process_target::filter_event): ...this.
2274 (linux_wait_for_event_filtered): Turn into...
2275 (linux_process_target::wait_for_event_filtered): ...this.
2276 (linux_wait_for_event): Turn into...
2277 (linux_process_target::wait_for_event): ...this.
2278 (linux_wait_1): Turn into...
2279 (linux_process_target::wait_1): ...this.
2280 (wait_for_sigstop): Turn into...
2281 (linux_process_target::wait_for_sigstop): ...this.
2282 (move_out_of_jump_pad_callback): Turn into...
2283 (linux_process_target::move_out_of_jump_pad): ...this.
2284 (stop_all_lwps): Turn into...
2285 (linux_process_target::stop_all_lwps): ...this.
2286 (start_step_over): Turn into...
2287 (linux_process_target::start_step_over): ...this.
2288 (complete_ongoing_step_over): Turn into...
2289 (linux_process_target::complete_ongoing_step_over): ...this.
2290 (proceed_all_lwps): Turn into...
2291 (linux_process_target::proceed_all_lwps): ...this.
2292 (unstop_all_lwps): Turn into...
2293 (linux_process_target::unstop_all_lwps): ...this.
2294
2295 * linux-low.h (class linux_process_target)
2296 <handle_extended_wait>
2297 <maybe_move_out_of_jump_pad>
2298 filter_event>
2299 <wait_for_event_filtered>
2300 <wait_for_event>
2301 <wait_1>
2302 <wait_for_sigstop>
2303 <move_out_of_jump_pad>
2304 <stop_all_lwps>
2305 <start_step_over>
2306 <complete_ongoing_step_over>
2307 <proceed_all_lwps>
2308 <unstop_all_lwps>: Declare.
2309
2310 Update the callers below.
2311
2312 * linux-low.cc (linux_process_target::attach): Update.
2313 (linux_process_target::stabilize_threads): Ditto.
2314 (linux_process_target::wait): Ditto.
2315
a5863204
TBA
23162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2317
2318 * linux-low.h (struct linux_target_ops): Update the comment for
2319 'cannot_store_register' to return 0 or 1.
2320 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2321 of 2.
2322
c884cc46
SM
23232020-03-20 Simon Marchi <simon.marchi@efficios.com>
2324
2325 * config.in: Re-generate.
2326 * configure: Re-generate.
2327
5a82b8a1
KR
23282020-03-17 Kamil Rytarowski <n54@gmx.com>
2329
2330 * regcache.cc (find_register_by_number): Update.
2331 * tdesc.cc (init_target_desc): Likewise.
2332 * tdesc.h (target_desc::reg_defs): Likewise.
2333
4635ff97
TT
23342020-03-12 Tom Tromey <tom@tromey.com>
2335
2336 * configure: Rebuild.
2337 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2338 (WIN32APILIBS): New subst.
2339 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2340 gdbsupport files.
2341 (gdbsupport/%.o): Remove target.
2342 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2343 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2344 (WIN32APILIBS): New variable.
2345 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2346 (gdbreplay$(EXEEXT)): Likewise.
2347
9a665d62
TT
23482020-03-12 Tom Tromey <tom@tromey.com>
2349
2350 * config.in, configure: Rebuild.
2351 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2352 * acinclude.m4: Include gettext-sister.m4.
2353 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2354 variables.
2355 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2356 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2357
272cd5a3
SM
23582020-03-12 Simon Marchi <simon.marchi@efficios.com>
2359
2360 * acinclude.m4: Update path to selftest.m4.
2361
db6878ac
SM
23622020-03-12 Simon Marchi <simon.marchi@efficios.com>
2363
2364 * configure.ac: Don't source bfd/development.sh, move
2365 GDB_AC_COMMON higher.
2366 * configure: Re-generate.
2367
4d696a5c
SM
23682020-03-12 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * configure: Re-generate.
2371
a0761e34
SM
23722020-03-11 Simon Marchi <simon.marchi@efficios.com>
2373
2374 * configure: Re-generate.
2375
20ea4a60
AB
23762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2377
2378 * .dir-locals.el: New file.
2379
842806cb
TBA
23802020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2381
2382 * .gitattributes: New file.
2383
442131c1
AB
23842020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2387 reply into an S reply.
2388 * server.cc (disable_packet_T): New global.
2389 (captured_main): Set new global when appropriate.
2390 * server.h (disable_packet_T): Declare.
2391
dda42c0b
TT
23922020-02-21 Tom Tromey <tom@tromey.com>
2393
2394 * Makefile.in (mostlyclean): New target.
2395
52405d85
TBA
23962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2397
2398 * target.h (struct process_stratum_target): Remove.
2399 (class process_target): Rename to ...
2400 (class process_stratum_target): ... this.
2401 * linux-low.h (class linux_process_target): Derive from
2402 'process_stratum_target'.
2403 * linux-low.cc (linux_target_ops): Remove.
2404 (initialize_low): Set the_target to the singleton instance of
2405 linux_process_target.
2406 * lynx-low.h (class lynx_process_target): Derive from
2407 'process_stratum_target'.
2408 * lynx-low.cc (lynx_target_ops): Remove.
2409 (initialize_low): Set the_target to the singleton instance of
2410 lynx_process_target.
2411 * nto-low.h (class nto_process_target): Derive from
2412 'process_stratum_target'.
2413 * nto-low.cc (nto_target_ops): Remove.
2414 (initialize_low): Set the_target to the singleton instance of
2415 nto_process_target.
2416 * win32-low.h (class win32_process_target): Derive from
2417 'process_stratum_target'.
2418 * win32-low.cc (win32_target_ops): Remove.
2419 (initialize_low): Set the_target to the singleton instance of
2420 win32_process_target.
2421
2422 Replace 'the_target->pt' with 'the_target' in the uses below.
2423
2424 * hostio.cc (hostio_error)
2425 (handle_setfs)
2426 (handle_open)
2427 (handle_unlink)
2428 (handle_readlink)
2429 * linux-aarch32-low.cc (arm_breakpoint_at)
2430 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2431 * linux-arm-low.cc (arm_sigreturn_next_pc)
2432 (arm_get_hwcap)
2433 (arm_get_syscall_trapinfo)
2434 * linux-cris-low.cc (cris_breakpoint_at)
2435 * linux-crisv32-low.cc (cris_breakpoint_at)
2436 * linux-low.cc (handle_extended_wait)
2437 (linux_wait_1)
2438 (linux_read_memory)
2439 (linux_process_target::breakpoint_kind_from_pc)
2440 (linux_get_auxv)
2441 * linux-m32r-low.cc (m32r_breakpoint_at)
2442 * linux-mips-low.cc (mips_breakpoint_at)
2443 * linux-nios2-low.cc (nios2_breakpoint_at)
2444 * linux-ppc-low.cc (ppc_breakpoint_at)
2445 * linux-s390-low.cc (s390_get_hwcap)
2446 * linux-sh-low.cc (sh_breakpoint_at)
2447 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2448 (sparc_store_gregset_from_stack)
2449 (sparc_breakpoint_at)
2450 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2451 * linux-tile-low.cc (tile_breakpoint_at)
2452 * linux-x86-low.cc (x86_breakpoint_at)
2453 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2454 * mem-break.cc (bp_size)
2455 (bp_opcode)
2456 (insert_memory_breakpoint)
2457 (set_raw_breakpoint_at)
2458 (delete_raw_breakpoint)
2459 (z_type_supported)
2460 (uninsert_raw_breakpoint)
2461 (reinsert_raw_breakpoint)
2462 (validate_inserted_breakpoint)
2463 * regcache.cc (regcache_read_pc)
2464 (regcache_write_pc)
2465 * remote-utils.cc (putpkt_binary_1)
2466 (input_interrupt)
2467 (getpkt)
2468 (prepare_resume_reply)
2469 * server.cc (handle_general_set)
2470 (handle_detach)
2471 (handle_qxfer_auxv)
2472 (handle_qxfer_exec_file)
2473 (handle_qxfer_libraries_svr4)
2474 (handle_qxfer_osdata)
2475 (handle_qxfer_siginfo)
2476 (handle_qxfer_fdpic)
2477 (handle_query)
2478 (resume)
2479 (handle_v_requests)
2480 (queue_stop_reply_callback)
2481 (captured_main)
2482 * target.cc (prepare_to_access_memory)
2483 (done_accessing_memory)
2484 (read_inferior_memory)
2485 (target_write_memory)
2486 (target_stop_and_wait)
2487 (target_wait)
2488 (target_mourn_inferior)
2489 (target_continue_no_signal)
2490 (target_continue)
2491 (target_supports_multi_process)
2492 (kill_inferior)
2493 * target.h
2494 (target_create_inferior)
2495 (target_post_create_inferior)
2496 (myattach)
2497 (target_supports_fork_events)
2498 (target_supports_vfork_events)
2499 (target_supports_exec_events)
2500 (target_handle_new_gdb_connection)
2501 (detach_inferior)
2502 (mythread_alive)
2503 (fetch_inferior_registers)
2504 (store_inferior_registers)
2505 (join_inferior)
2506 (target_supports_non_stop)
2507 (target_async)
2508 (target_process_qsupported)
2509 (target_supports_catch_syscall)
2510 (target_get_ipa_tdesc_idx)
2511 (target_supports_tracepoints)
2512 (target_supports_fast_tracepoints)
2513 (target_get_min_fast_tracepoint_insn_len)
2514 (target_thread_stopped)
2515 (target_pause_all)
2516 (target_unpause_all)
2517 (target_stabilize_threads)
2518 (target_install_fast_tracepoint_jump_pad)
2519 (target_emit_ops)
2520 (target_supports_disable_randomization)
2521 (target_supports_agent)
2522 (target_enable_btrace)
2523 (target_disable_btrace)
2524 (target_read_btrace)
2525 (target_read_btrace_conf)
2526 (target_supports_range_stepping)
2527 (target_supports_stopped_by_sw_breakpoint)
2528 (target_stopped_by_sw_breakpoint)
2529 (target_supports_stopped_by_hw_breakpoint)
2530 (target_supports_hardware_single_step)
2531 (target_stopped_by_hw_breakpoint)
2532 (target_breakpoint_kind_from_pc)
2533 (target_breakpoint_kind_from_current_state)
2534 (target_supports_software_single_step)
2535 (target_core_of_thread)
2536 (target_thread_name)
2537 (target_thread_handle)
2538 * win32-low.cc (do_initial_child_stuff)
2539
2540 Rename target op default definitions listed below.
2541
2542 * target.cc (process_target::post_create_inferior): Rename as ...
2543 (process_stratum_target::post_create_inferior): ... this.
2544 (process_target::prepare_to_access_memory): Rename as ...
2545 (process_stratum_target::prepare_to_access_memory): ... this.
2546 (process_target::done_accessing_memory): Rename as ...
2547 (process_stratum_target::done_accessing_memory): ... this.
2548 (process_target::look_up_symbols): Rename as ...
2549 (process_stratum_target::look_up_symbols): ... this.
2550 (process_target::supports_read_auxv): Rename as ...
2551 (process_stratum_target::supports_read_auxv): ... this.
2552 (process_target::read_auxv): Rename as ...
2553 (process_stratum_target::read_auxv): ... this.
2554 (process_target::supports_z_point_type): Rename as ...
2555 (process_stratum_target::supports_z_point_type): ... this.
2556 (process_target::insert_point): Rename as ...
2557 (process_stratum_target::insert_point): ... this.
2558 (process_target::remove_point): Rename as ...
2559 (process_stratum_target::remove_point): ... this.
2560 (process_target::stopped_by_sw_breakpoint): Rename as ...
2561 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2562 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2563 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2564 (process_target::stopped_by_hw_breakpoint): Rename as ...
2565 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2566 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2567 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2568 (process_target::supports_hardware_single_step): Rename as ...
2569 (process_stratum_target::supports_hardware_single_step): ... this.
2570 (process_target::stopped_by_watchpoint): Rename as ...
2571 (process_stratum_target::stopped_by_watchpoint): ... this.
2572 (process_target::stopped_data_address): Rename as ...
2573 (process_stratum_target::stopped_data_address): ... this.
2574 (process_target::supports_read_offsets): Rename as ...
2575 (process_stratum_target::supports_read_offsets): ... this.
2576 (process_target::read_offsets): Rename as ...
2577 (process_stratum_target::read_offsets): ... this.
2578 (process_target::supports_get_tls_address): Rename as ...
2579 (process_stratum_target::supports_get_tls_address): ... this.
2580 (process_target::get_tls_address): Rename as ...
2581 (process_stratum_target::get_tls_address): ... this.
2582 (process_target::hostio_last_error): Rename as ...
2583 (process_stratum_target::hostio_last_error): ... this.
2584 (process_target::supports_qxfer_osdata): Rename as ...
2585 (process_stratum_target::supports_qxfer_osdata): ... this.
2586 (process_target::qxfer_osdata): Rename as ...
2587 (process_stratum_target::qxfer_osdata): ... this.
2588 (process_target::supports_qxfer_siginfo): Rename as ...
2589 (process_stratum_target::supports_qxfer_siginfo): ... this.
2590 (process_target::qxfer_siginfo): Rename as ...
2591 (process_stratum_target::qxfer_siginfo): ... this.
2592 (process_target::supports_non_stop): Rename as ...
2593 (process_stratum_target::supports_non_stop): ... this.
2594 (process_target::async): Rename as ...
2595 (process_stratum_target::async): ... this.
2596 (process_target::start_non_stop): Rename as ...
2597 (process_stratum_target::start_non_stop): ... this.
2598 (process_target::supports_multi_process): Rename as ...
2599 (process_stratum_target::supports_multi_process): ... this.
2600 (process_target::supports_fork_events): Rename as ...
2601 (process_stratum_target::supports_fork_events): ... this.
2602 (process_target::supports_vfork_events): Rename as ...
2603 (process_stratum_target::supports_vfork_events): ... this.
2604 (process_target::supports_exec_events): Rename as ...
2605 (process_stratum_target::supports_exec_events): ... this.
2606 (process_target::handle_new_gdb_connection): Rename as ...
2607 (process_stratum_target::handle_new_gdb_connection): ... this.
2608 (process_target::handle_monitor_command): Rename as ...
2609 (process_stratum_target::handle_monitor_command): ... this.
2610 (process_target::core_of_thread): Rename as ...
2611 (process_stratum_target::core_of_thread): ... this.
2612 (process_target::supports_read_loadmap): Rename as ...
2613 (process_stratum_target::supports_read_loadmap): ... this.
2614 (process_target::read_loadmap): Rename as ...
2615 (process_stratum_target::read_loadmap): ... this.
2616 (process_target::process_qsupported): Rename as ...
2617 (process_stratum_target::process_qsupported): ... this.
2618 (process_target::supports_tracepoints): Rename as ...
2619 (process_stratum_target::supports_tracepoints): ... this.
2620 (process_target::read_pc): Rename as ...
2621 (process_stratum_target::read_pc): ... this.
2622 (process_target::write_pc): Rename as ...
2623 (process_stratum_target::write_pc): ... this.
2624 (process_target::supports_thread_stopped): Rename as ...
2625 (process_stratum_target::supports_thread_stopped): ... this.
2626 (process_target::thread_stopped): Rename as ...
2627 (process_stratum_target::thread_stopped): ... this.
2628 (process_target::supports_get_tib_address): Rename as ...
2629 (process_stratum_target::supports_get_tib_address): ... this.
2630 (process_target::get_tib_address): Rename as ...
2631 (process_stratum_target::get_tib_address): ... this.
2632 (process_target::pause_all): Rename as ...
2633 (process_stratum_target::pause_all): ... this.
2634 (process_target::unpause_all): Rename as ...
2635 (process_stratum_target::unpause_all): ... this.
2636 (process_target::stabilize_threads): Rename as ...
2637 (process_stratum_target::stabilize_threads): ... this.
2638 (process_target::supports_fast_tracepoints): Rename as ...
2639 (process_stratum_target::supports_fast_tracepoints): ... this.
2640 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2641 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2642 (process_target::emit_ops): Rename as ...
2643 (process_stratum_target::emit_ops): ... this.
2644 (process_target::supports_disable_randomization): Rename as ...
2645 (process_stratum_target::supports_disable_randomization): ... this.
2646 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2647 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2648 (process_target::qxfer_libraries_svr4): Rename as ...
2649 (process_stratum_target::qxfer_libraries_svr4): ... this.
2650 (process_target::supports_agent): Rename as ...
2651 (process_stratum_target::supports_agent): ... this.
2652 (process_target::enable_btrace): Rename as ...
2653 (process_stratum_target::enable_btrace): ... this.
2654 (process_target::disable_btrace): Rename as ...
2655 (process_stratum_target::disable_btrace): ... this.
2656 (process_target::read_btrace): Rename as ...
2657 (process_stratum_target::read_btrace): ... this.
2658 (process_target::read_btrace_conf): Rename as ...
2659 (process_stratum_target::read_btrace_conf): ... this.
2660 (process_target::supports_range_stepping): Rename as ...
2661 (process_stratum_target::supports_range_stepping): ... this.
2662 (process_target::supports_pid_to_exec_file): Rename as ...
2663 (process_stratum_target::supports_pid_to_exec_file): ... this.
2664 (process_target::pid_to_exec_file): Rename as ...
2665 (process_stratum_target::pid_to_exec_file): ... this.
2666 (process_target::supports_multifs): Rename as ...
2667 (process_stratum_target::supports_multifs): ... this.
2668 (process_target::multifs_open): Rename as ...
2669 (process_stratum_target::multifs_open): ... this.
2670 (process_target::multifs_unlink): Rename as ...
2671 (process_stratum_target::multifs_unlink): ... this.
2672 (process_target::multifs_readlink): Rename as ...
2673 (process_stratum_target::multifs_readlink): ... this.
2674 (process_target::breakpoint_kind_from_pc): Rename as ...
2675 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2676 (process_target::breakpoint_kind_from_current_state): Rename as ...
2677 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2678 (process_target::thread_name): Rename as ...
2679 (process_stratum_target::thread_name): ... this.
2680 (process_target::thread_handle): Rename as ...
2681 (process_stratum_target::thread_handle): ... this.
2682 (process_target::supports_software_single_step): Rename as ...
2683 (process_stratum_target::supports_software_single_step): ... this.
2684 (process_target::supports_catch_syscall): Rename as ...
2685 (process_stratum_target::supports_catch_syscall): ... this.
2686 (process_target::get_ipa_tdesc_idx): Rename as ...
2687 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2688
478f9adf
PA
26892020-02-20 Pedro Alves <palves@redhat.com>
2690
2691 * target.cc (set_target_ops): Simply copy the given target pointer
2692 instead of creating a copy of the pointed object.
2693
d633e831
TBA
26942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2695
2696 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2697 of process_target.
2698
2699 * target.h (struct process_stratum_target): Remove the target op.
2700 (class process_target): Add the target op.
2701 (target_get_ipa_tdesc_idx): Update the macro.
2702 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2703
2704 Update the derived classes and callers below.
2705
2706 * linux-low.cc (linux_target_ops): Update.
2707 (linux_get_ipa_tdesc_idx): Turn into ...
2708 (linux_process_target::get_ipa_tdesc_idx): ... this.
2709 * linux-low.h (class linux_process_target): Update.
2710 * lynx-low.cc (lynx_target_ops): Update.
2711 * nto-low.cc (nto_target_ops): Update.
2712 * win32-low.cc (win32_target_ops): Update.
2713
bc8d3ae4
TBA
27142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2715
2716 Turn process_stratum_target's supports_catch_syscall op into a
2717 method of process_target.
2718
2719 * target.h (struct process_stratum_target): Remove the target op.
2720 (class process_target): Add the target op.
2721 (target_supports_catch_syscall): Update the macro.
2722 * target.cc (process_target::supports_catch_syscall): Define.
2723
2724 Update the derived classes and callers below.
2725
2726 * linux-low.cc (linux_target_ops): Update.
2727 (linux_supports_catch_syscall): Turn into ...
2728 (linux_process_target::supports_catch_syscall): ... this.
2729 * linux-low.h (class linux_process_target): Update.
2730 * lynx-low.cc (lynx_target_ops): Update.
2731 * nto-low.cc (nto_target_ops): Update.
2732 * win32-low.cc (win32_target_ops): Update.
2733
5303a34f
TBA
27342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2735
2736 Turn process_stratum_target's supports_software_single_step op
2737 into a method of process_target.
2738
2739 * target.h (struct process_stratum_target): Remove the target op.
2740 (class process_target): Add the target op.
2741 (target_supports_software_single_step): Update the macro.
2742 * target.cc (process_target::supports_software_single_step): Define.
2743
2744 Update the derived classes and callers below.
2745
2746 * linux-low.cc (linux_target_ops): Update.
2747 (linux_supports_software_single_step): Turn into ...
2748 (linux_process_target::supports_software_single_step): ... this.
2749 * linux-low.h (class linux_process_target): Update.
2750 * lynx-low.cc (lynx_target_ops): Update.
2751 * nto-low.cc (nto_target_ops): Update.
2752 * win32-low.cc (win32_target_ops): Update.
2753
7f63b89b
TBA
27542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2755
2756 Turn process_stratum_target's thread_name and thread_handle ops
2757 into methods of process_target.
2758
2759 * target.h (struct process_stratum_target): Remove the target ops.
2760 (class process_target): Add the target ops.
2761 (target_thread_name): Update the macro.
2762 (target_thread_handle): Update the macro.
2763 * target.cc (process_target::thread_name): Define.
2764 (process_target::thread_handle): Define.
2765
2766 Update the derived classes and callers below.
2767
2768 * linux-low.cc (linux_target_ops): Update.
2769 (linux_process_target::thread_name): Define.
2770 (linux_process_target::thread_handle): Define.
2771 * linux-low.h (class linux_process_target): Update.
2772 * lynx-low.cc (lynx_target_ops): Update.
2773 * nto-low.cc (nto_target_ops): Update.
2774 * win32-low.cc (win32_target_ops): Update.
2775
d367006f
TBA
27762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2777
2778 Turn process_stratum_target's breakpoint_kind_from_pc,
2779 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2780 ops into methods of process_target.
2781
2782 * target.h (struct process_stratum_target): Remove the target op.
2783 (class process_target): Add the target op.
2784 (target_breakpoint_kind_from_pc): Update the macro.
2785 (target_breakpoint_kind_from_current_state): Update the macro.
2786 (default_breakpoint_kind_from_pc): Remove declaration.
2787 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2788 (process_target::breakpoint_kind_from_pc): ... this.
2789 (process_target::breakpoint_kind_from_current_state): Define.
2790
2791 Update the derived classes and callers below.
2792
2793 * mem-break.cc (bp_size): Update.
2794 (bp_opcode): Update.
2795 * linux-low.cc (linux_target_ops): Update.
2796 (linux_wait_1): Update.
2797 (linux_breakpoint_kind_from_pc): Turn into ...
2798 (linux_process_target::breakpoint_kind_from_pc): ... this.
2799 (linux_sw_breakpoint_from_kind): Turn into ...
2800 (linux_process_target::sw_breakpoint_from_kind): ... this.
2801 (linux_breakpoint_kind_from_current_state): Turn into ...
2802 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2803 * linux-low.h (class linux_process_target): Update.
2804 * lynx-low.cc (lynx_target_ops): Update.
2805 (lynx_process_target::sw_breakpoint_from_kind): Define.
2806 * lynx-low.h (class lynx_process_target): Update.
2807 * nto-low.cc (nto_target_ops): Update.
2808 (nto_sw_breakpoint_from_kind): Turn into ...
2809 (nto_process_target::sw_breakpoint_from_kind): ... this.
2810 * nto-low.h (class nto_process_target): Update.
2811 * win32-low.cc (win32_target_ops): Update.
2812 (win32_sw_breakpoint_from_kind): Turn into ...
2813 (win32_process_target::sw_breakpoint_from_kind): ... this.
2814 * win32-low.h (class win32_process_target): Update.
2815
c9b7b804
TBA
28162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2817
2818 Turn process_stratum_target's multifs_open, multifs_readlink,
2819 multifs_unlink ops into methods of process_target.
2820
2821 * target.h (struct process_stratum_target): Remove the target ops.
2822 (class process_target): Add the target ops. Also add
2823 'supports_multifs'.
2824 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2825 "sys/stat.h".
2826 (process_target::supports_multifs): Define.
2827 (process_target::multifs_open): Define.
2828 (process_target::multifs_readlink): Define.
2829 (process_target::multifs_unlink): Define.
2830
2831 Update the derived classes and callers below.
2832
2833 * hostio.cc (handle_setfs): Update.
2834 (handle_open): Update.
2835 (handle_unlink): Update.
2836 (handle_readlink): Update.
2837 * linux-low.cc (linux_target_ops): Update.
2838 (linux_process_target::supports_multifs): Define.
2839 (linux_process_target::multifs_open): Define.
2840 (linux_process_target::multifs_readlink): Define.
2841 (linux_process_target::multifs_unlink): Define.
2842 * linux-low.h (class linux_process_target): Update.
2843 * lynx-low.cc (lynx_target_ops): Update.
2844 * nto-low.cc (nto_target_ops): Update.
2845 * win32-low.cc (win32_target_ops): Update.
2846
8247b823
TBA
28472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2848
2849 Turn process_stratum_target's pid_to_exec_file op into a method
2850 of process_target.
2851
2852 * target.h (struct process_stratum_target): Remove the target op.
2853 (class process_target): Add the target op. Also add
2854 'supports_pid_to_exec_file'.
2855 * target.cc (process_target::pid_to_exec_file): Define.
2856 (process_target::supports_pid_to_exec_file): Define.
2857
2858 Update the derived classes and callers below.
2859
2860 * server.cc (handle_qxfer_exec_file): Update.
2861 (handle_query): Update.
2862 * linux-low.cc (linux_target_ops): Update.
2863 (linux_process_target::supports_pid_to_exec_file): Define.
2864 (linux_process_target::pid_to_exec_file): Define.
2865 * linux-low.h (class linux_process_target): Update.
2866 * lynx-low.cc (lynx_target_ops): Update.
2867 * nto-low.cc (nto_target_ops): Update.
2868 * win32-low.cc (win32_target_ops): Update.
2869
2526e0cd
TBA
28702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2871
2872 Turn process_stratum_target's supports_range_stepping op into a
2873 method of process_target.
2874
2875 * target.h (struct process_stratum_target): Remove the target op.
2876 (class process_target): Add the target op.
2877 (target_supports_range_stepping): Update the macro.
2878 * target.cc (process_target::supports_range_stepping): Define.
2879
2880 Update the derived classes and callers below.
2881
2882 * linux-low.cc (linux_target_ops): Update.
2883 (linux_supports_range_stepping): Turn into ...
2884 (linux_process_target::supports_range_stepping): ... this.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 * nto-low.cc (nto_target_ops): Update.
2888 * win32-low.cc (win32_target_ops): Update.
2889
79597bdd
TBA
28902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2891
2892 Turn process_stratum_target's btrace-related ops (enable_btrace,
2893 disable_btrace, read_btrace, read_btrace_conf) into methods of
2894 process_target.
2895
2896 * target.h (struct process_stratum_target): Remove the target ops.
2897 (class process_target): Add the target ops.
2898 (target_enable_btrace): Update.
2899 (target_disable_btrace): Update.
2900 (target_read_btrace): Update.
2901 (target_read_btrace_conf): Update.
2902 * target.cc (process_target::enable_btrace): Define.
2903 (process_target::disable_btrace): Define.
2904 (process_target::read_btrace): Define.
2905 (process_target::read_btrace_conf): Define.
2906
2907 Update the derived classes and callers below.
2908
2909 * linux-low.cc (linux_target_ops): Update.
2910 (linux_process_target:enable_btrace): Define as a wrapper around
2911 linux_enable_btrace.
2912 (linux_low_disable_btrace): Turn into ...
2913 (linux_process_target::disable_btrace): ... this.
2914 (linux_low_read_btrace): Turn into ...
2915 (linux_process_target::read_btrace): ... this.
2916 (linux_low_btrace_conf): Turn into ...
2917 (linux_process_target::read_btrace_conf): ... this.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 * win32-low.cc (win32_target_ops): Update.
2922
c0245cb9
TBA
29232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2924
2925 Turn process_stratum_target's supports_agent op into a method of
2926 process_target.
2927
2928 * target.h (struct process_stratum_target): Remove the target op.
2929 (class process_target): Add the target op.
2930 (target_supports_agent): Update the macro.
2931 * target.cc (process_target::supports_agent): Define.
2932
2933 Update the derived classes and callers below.
2934
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_supports_agent): Turn into ...
2937 (linux_process_target::supports_agent): ... this.
2938 * linux-low.h (class linux_process_target): Update.
2939 * lynx-low.cc (lynx_target_ops): Update.
2940 * nto-low.cc (nto_target_ops): Update.
2941 * win32-low.cc (win32_target_ops): Update.
2942
974387bb
TBA
29432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2944
2945 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2946 method of process_target.
2947
2948 * target.h (struct process_stratum_target): Remove the target op.
2949 (class process_target): Add the target op. Also add
2950 'supports_qxfer_libraries_svr4'.
2951 * target.cc (process_target::qxfer_libraries_svr4): Define.
2952 (process_target::supports_qxfer_libraries_svr4): Define.
2953
2954 Update the derived classes and callers below.
2955
2956 * server.cc (handle_qxfer_libraries_svr4): Update.
2957 (handle_query): Update.
2958 * linux-low.cc (linux_target_ops): Update.
2959 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2960 (linux_qxfer_libraries_svr4): Turn into ...
2961 (linux_process_target::qxfer_libraries_svr4): ... this.
2962 * linux-low.h (class linux_process_target): Update.
2963 * lynx-low.cc (lynx_target_ops): Update.
2964 * nto-low.cc (nto_target_ops): Update.
2965 * win32-low.cc (win32_target_ops): Update.
2966
c756403b
TBA
29672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2968
2969 Turn process_stratum_target's supports_disable_randomization op
2970 into a method of process_target.
2971
2972 * target.h (struct process_stratum_target): Remove the target op.
2973 (class process_target): Add the target op.
2974 (target_supports_disable_randomization): Update the macro.
2975 * target.cc (process_target::supports_disable_randomization): Define.
2976
2977 Update the derived classes and callers below.
2978
2979 * linux-low.cc (linux_target_ops): Update.
2980 (linux_supports_disable_randomization): Turn into ...
2981 (linux_process_target::supports_disable_randomization): ... this.
2982 * linux-low.h (class linux_process_target): Update.
2983 * lynx-low.cc (lynx_target_ops): Update.
2984 * nto-low.cc (nto_target_ops): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2986
345dafad
TBA
29872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988
2989 Turn process_stratum_target's emit_ops op into a method of
2990 process_target.
2991
2992 * target.h (struct process_stratum_target): Remove the target op.
2993 (class process_target): Add the target op.
2994 (target_emit_ops): Update the macro.
2995 * target.cc (process_target::emit_ops): Define.
2996
2997 Update the derived classes and callers below.
2998
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_emit_ops): Turn into ...
3001 (linux_process_target::emit_ops): ... this.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 * nto-low.cc (nto_target_ops): Update.
3005 * win32-low.cc (win32_target_ops): Update.
3006
c23c9391
TBA
30072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3008
3009 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3010 and get_min_fast_tracepoint_insn_len ops into methods of
3011 process_target.
3012
3013 * target.h (struct process_stratum_target): Remove the target ops.
3014 (class process_target): Add the target ops. Also add
3015 'supports_fast_tracepoints'.
3016 (target_supports_fast_tracepoints): Update the macro.
3017 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3018 (install_fast_tracepoint_jump_pad): Update and rename the macro
3019 to ...
3020 (target_install_fast_tracepoint_jump_pad): ... this.
3021 * target.cc (process_target::supports_fast_tracepoints): Define.
3022 (process_target::install_fast_tracepoint_jump_pad): Define.
3023 (process_target::get_min_fast_tracepoint_insn_len): Define.
3024
3025 Update the derived classes and callers below.
3026
3027 * tracepoint.cc (install_fast_tracepoint): Update.
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_process_target::supports_fast_tracepoints): Define.
3030 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3031 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3032 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3033 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3034 * linux-low.h (class linux_process_target): Update.
3035 * lynx-low.cc (lynx_target_ops): Update.
3036 * nto-low.cc (nto_target_ops): Update.
3037 * win32-low.cc (win32_target_ops): Update.
3038
5c9eb2f2
TBA
30392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3040
3041 Turn process_stratum_target's stabilize_threads op into a
3042 method of process_target.
3043
3044 * target.h (struct process_stratum_target): Remove the target op.
3045 (class process_target): Add the target op.
3046 (target_stabilize_threads): Update the macro.
3047 * target.cc (process_target::stabilize_threads): Define.
3048
3049 Update the derived classes and callers below.
3050
3051 * server.cc (handle_status): Update.
3052 * tracepoint.cc (cmd_qtdp): Update.
3053 (cmd_qtstart): Update.
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_stabilize_threads): Turn into ...
3056 (linux_process_target::stabilize_threads): ... this.
3057 (linux_wait_1): Update.
3058 * linux-low.h (class linux_process_target): Update.
3059 * lynx-low.cc (lynx_target_ops): Update.
3060 * nto-low.cc (nto_target_ops): Update.
3061 * win32-low.cc (win32_target_ops): Update.
3062
29e8dc09
TBA
30632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3064
3065 Turn process_stratum_target's pause_all and unpause_all ops
3066 into methods of process_target.
3067
3068 * target.h (struct process_stratum_target): Remove the target ops.
3069 (class process_target): Add the target ops.
3070 (pause_all): Update the macro and rename to...
3071 (target_pause_all): ... this.
3072 (unpause_all): Update the macro and rename to...
3073 (target_unpause_all): ... this.
3074 * target.cc (process_target::pause_all): Define.
3075 (process_target::unpause_all): Define.
3076
3077 Update the derived classes and callers below.
3078
3079 * server.cc (handle_status): Update.
3080 * tracepoint.cc (clear_installed_tracepoints): Update.
3081 (cmd_qtdp): Update.
3082 (cmd_qtstart): Update.
3083 (stop_tracing): Update.
3084 (cmd_qtstatus): Update.
3085 (upload_fast_traceframes): Update.
3086 (run_inferior_command): Update.
3087 * linux-low.cc (linux_target_ops): Update.
3088 (linux_pause_all): Turn into ...
3089 (linux_process_target::pause_all): ... this.
3090 (linux_unpause_all): Turn into ...
3091 (linux_process_target::unpause_all): ... this.
3092 (linux_process_target::prepare_to_access_memory): Update.
3093 (linux_process_target::done_accessing_memory): Update.
3094 * linux-low.h (class linux_process_target): Update.
3095 * lynx-low.cc (lynx_target_ops): Update.
3096 * nto-low.cc (nto_target_ops): Update.
3097 * win32-low.cc (win32_target_ops): Update.
3098
4e2e869c
TBA
30992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3100
3101 Turn process_stratum_target's get_tib_address op into a method of
3102 process_target.
3103
3104 * target.h (struct process_stratum_target): Remove the target op.
3105 (class process_target): Add the target op. Also add
3106 'supports_get_tib_address'.
3107 * target.cc (process_target::get_tib_address): Define.
3108 (process_target::supports_get_tib_address): Define.
3109
3110 Update the derived classes and callers below.
3111
3112 * server.cc (handle_query): Update.
3113 * linux-low.cc (win32_target_ops): Update.
3114 * lynx-low.cc (lynx_target_ops): Update.
3115 * nto-low.cc (nto_target_ops): Update.
3116 * win32-low.cc (win32_target_ops): Update.
3117 (win32_process_target::supports_get_tib_address): Define.
3118 (win32_get_tib_address): Turn into ...
3119 (win32_process_target::get_tib_address): ... this.
3120 * win32-low.h (class win32_process_target): Update.
3121
68119632
TBA
31222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3123
3124 Turn process_stratum_target's thread_stopped op into a method of
3125 process_target.
3126
3127 * target.h (struct process_stratum_target): Remove the target op.
3128 (class process_target): Add the target op. Also add
3129 'supports_thread_stopped'.
3130 (target_thread_stopped): Update the macro.
3131 * target.cc (process_target::thread_stopped): Define.
3132 (process_target::supports_thread_stopped): Define.
3133 (prepare_to_access_memory): Update.
3134
3135 Update the derived classes and callers below.
3136
3137 * server.cc (queue_stop_reply_callback): Update.
3138 * linux-low.cc (linux_target_ops): Update.
3139 (linux_process_target::supports_thread_stopped): Define.
3140 (linux_thread_stopped): Turn into ...
3141 (linux_process_target::thread_stopped): ... this.
3142 * linux-low.h (class linux_process_target): Update.
3143 * lynx-low.cc (lynx_target_ops): Update.
3144 * nto-low.cc (nto_target_ops): Update.
3145 * win32-low.cc (win32_target_ops): Update.
3146
770d8f6a
TBA
31472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148
3149 Turn process_stratum_target's read_pc and write_pc ops into
3150 methods of process_target.
3151
3152 * target.h (struct process_stratum_target): Remove the target ops.
3153 (class process_target): Add the target ops.
3154 * target.cc (process_target::read_pc): Define.
3155 (process_target::write_pc): Define.
3156
3157 Update the derived classes and callers below.
3158
3159 * regcache.cc (regcache_read_pc): Update.
3160 (regcache_write_pc): Update.
3161 * linux-low.cc (linux_target_ops): Update.
3162 (linux_read_pc): Turn into ...
3163 (linux_process_target::read_pc): ... this.
3164 (linux_write_pc): Turn into ...
3165 (linux_process_target::write_pc): ... this.
3166 * linux-low.h (class linux_process_target): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 * win32-low.cc (win32_target_ops): Update.
3170
290732bf
TBA
31712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3172
3173 Turn process_stratum_target's supports_tracepoints op into a
3174 method of process_target.
3175
3176 * target.h (struct process_stratum_target): Remove the target op.
3177 (class process_target): Add the target op.
3178 (target_supports_tracepoints): Update the macro.
3179 * target.cc (process_target::supports_tracepoints): Define.
3180
3181 Update the derived classes and callers below.
3182
3183 * linux-low.cc (linux_target_ops): Update.
3184 (linux_supports_tracepoints): Turn into ...
3185 (linux_process_target::supports_tracepoints): ... this.
3186 * linux-low.h (class linux_process_target): Update.
3187 * lynx-low.cc (lynx_target_ops): Update.
3188 * nto-low.cc (nto_target_ops): Update.
3189 * win32-low.cc (win32_target_ops): Update.
3190
0df28b1b
TBA
31912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3192
3193 Turn process_stratum_target's process_qsupported op into a method
3194 of process_target.
3195
3196 * target.h (struct process_stratum_target): Remove the target op.
3197 (class process_target): Add the target op.
3198 (target_process_qsupported): Update the macro.
3199 * target.cc (process_target::process_qsupported): Define.
3200
3201 Update the derived classes and callers below.
3202
3203 * linux-low.cc (linux_target_ops): Update.
3204 (linux_process_qsupported): Turn into ...
3205 (linux_process_target::process_qsupported): ... this.
3206 * linux-low.h (class linux_process_target): Update.
3207 * lynx-low.cc (lynx_target_ops): Update.
3208 * nto-low.cc (nto_target_ops): Update.
3209 * win32-low.cc (win32_target_ops): Update.
3210
9da41fda
TBA
32112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3212
3213 Turn process_stratum_target's read_loadmap op into a method of
3214 process_target.
3215
3216 * target.h (struct process_stratum_target): Remove the target op.
3217 (class process_target): Add the target op. Also add
3218 'supports_read_loadmap'.
3219 * target.cc (process_target::read_loadmap): Define.
3220 (process_target::supports_read_loadmap): Define.
3221
3222 Update the derived classes and callers below.
3223
3224 * server.cc (handle_qxfer_fdpic): Update.
3225 (handle_query): Update.
3226 * linux-low.cc (linux_target_ops): Update.
3227 (linux_process_target::supports_read_loadmap): Define.
3228 (linux_read_loadmap): Turn into ...
3229 (linux_process_target::read_loadmap): ... this.
3230 * linux-low.h (class linux_process_target): Update.
3231 * lynx-low.cc (lynx_target_ops): Update.
3232 * nto-low.cc (nto_target_ops): Update.
3233 * win32-low.cc (win32_target_ops): Update.
3234
95a45fc1
TBA
32352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3236
3237 Turn process_stratum_target's core_of_thread op into a method of
3238 process_target.
3239
3240 * target.h (struct process_stratum_target): Remove the target op.
3241 (class process_target): Add the target op.
3242 (target_core_of_thread): Update the macro.
3243 * target.cc (process_target::core_of_thread): Define.
3244
3245 Update the derived classes and callers below.
3246
3247 * linux-low.cc (linux_target_ops): Update.
3248 (linux_process_target::core_of_thread): Define.
3249 * linux-low.h (class linux_process_target): Update.
3250 * lynx-low.cc (lynx_target_ops): Update.
3251 * nto-low.cc (nto_target_ops): Update.
3252 * win32-low.cc (win32_target_ops): Update.
3253
55cf3021
TBA
32542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3255
3256 Turn process_stratum_target's handle_monitor_command op into a
3257 method of process_target.
3258
3259 * target.h (struct process_stratum_target): Remove the target op.
3260 (class process_target): Add the target op.
3261 (target_handle_monitor_command): Update the macro.
3262 * target.cc (process_target::handle_monitor_command): Define.
3263
3264 Update the derived classes and callers below.
3265
3266 * server.cc (handle_query): Update.
3267 * linux-low.cc (linux_target_ops): Update.
3268 (linux_process_target::handle_monitor_command): Define.
3269 * linux-low.h (class linux_process_target): Update.
3270 * lynx-low.cc (lynx_target_ops): Update.
3271 * nto-low.cc (nto_target_ops): Update.
3272 * win32-low.cc (win32_target_ops): Update.
3273
fb00dfce
TBA
32742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3275
3276 Turn process_stratum_target's handle_new_gdb_connection op into a
3277 method of process_target.
3278
3279 * target.h (struct process_stratum_target): Remove the target op.
3280 (class process_target): Add the target op.
3281 (target_handle_new_gdb_connection): Update the macro.
3282 * target.cc (process_target::handle_new_gdb_connection): Define.
3283
3284 Update the derived classes and callers below.
3285
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_handle_new_gdb_connection): Turn into ...
3288 (linux_process_target::handle_new_gdb_connection): ... this.
3289 * linux-low.h (class linux_process_target): Update.
3290 * lynx-low.cc (lynx_target_ops): Update.
3291 * nto-low.cc (nto_target_ops): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3293
9690a72a
TBA
32942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3295
3296 Turn process_stratum_target's supports_fork_events,
3297 supports_vfork_events, and supports_exec_events ops into methods
3298 of process_target.
3299
3300 * target.h (struct process_stratum_target): Remove the target ops.
3301 (class process_target): Add the target ops.
3302 (target_supports_fork_events): Update the macro.
3303 (target_supports_vfork_events): Update the macro.
3304 (target_supports_exec_events): Update the macro.
3305 * target.cc (process_target::supports_fork_events): Define.
3306 (process_target::supports_vfork_events): Define.
3307 (process_target::supports_exec_events): Define.
3308
3309 Update the derived classes and callers below.
3310
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_supports_fork_events): Turn into ...
3313 (linux_process_target::supports_fork_events): ... this.
3314 (linux_supports_vfork_events): Turn into ...
3315 (linux_process_target::supports_vfork_events): ... this.
3316 (linux_supports_exec_events): Turn into ...
3317 (linux_process_target::supports_exec_events): ... this.
3318 * linux-low.h (class linux_process_target): Update.
3319 * lynx-low.cc (lynx_target_ops): Update.
3320 * nto-low.cc (nto_target_ops): Update.
3321 * win32-low.cc (win32_target_ops): Update.
3322
652aef77
TBA
33232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3324
3325 Turn process_stratum_target's supports_multi_process op into a
3326 method of process_target.
3327
3328 * target.h (struct process_stratum_target): Remove the target op.
3329 (class process_target): Add the target op.
3330 * target.cc (process_target::supports_multi_process): Define.
3331 (target_supports_multi_process): Update.
3332
3333 Update the derived classes and callers below.
3334
3335 * linux-low.cc (linux_target_ops): Update.
3336 (linux_supports_multi_process): Turn into ...
3337 (linux_process_target::supports_multi_process): ... this.
3338 * linux-low.h (class linux_process_target): Update.
3339 * lynx-low.cc (lynx_target_ops): Update.
3340 * nto-low.cc (nto_target_ops): Update.
3341 * win32-low.cc (win32_target_ops): Update.
3342
0dc587d4
TBA
33432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3344
3345 Turn process_stratum_target's supports_non_stop, async, and
3346 start_non_stop ops into methods of process_target.
3347
3348 * target.h (struct process_stratum_target): Remove the target ops.
3349 (class process_target): Add the target ops.
3350 (target_supports_non_stop): Update the macro.
3351 (target_async): Update the macro.
3352 (start_non_stop): Remove declaration.
3353 * target.cc (process_target::supports_non_stop): Define.
3354 (process_target::async): Define.
3355 (process_target::start_non_stop): Define.
3356 (start_non_stop): Remove.
3357
3358 Update the derived classes and callers below.
3359
3360 * server.cc (handle_qxfer_siginfo): Update.
3361 (handle_query): Update.
3362 * linux-low.cc (linux_target_ops): Update.
3363 (linux_supports_non_stop): Turn into ...
3364 (linux_process_target::supports_non_stop): ... this.
3365 (linux_async): Turn into ...
3366 (linux_process_target::async): ... this.
3367 (linux_start_non_stop): Turn into ...
3368 (linux_process_target::start_non_stop): ... this.
3369 * linux-low.h (class linux_process_target): Update.
3370 * lynx-low.cc (lynx_target_ops): Update.
3371 * nto-low.cc (nto_target_ops): Update.
3372 (nto_supports_non_stop): Remove; rely on the default behavior
3373 instead.
3374 * win32-low.cc (win32_target_ops): Update.
3375
d7abedf7
TBA
33762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3377
3378 Turn process_stratum_target's qxfer_siginfo op into a method of
3379 process_target.
3380
3381 * target.h (struct process_stratum_target): Remove the target op.
3382 (class process_target): Add the target op. Also add
3383 'supports_qxfer_siginfo'.
3384 * target.cc (process_target::qxfer_siginfo): Define.
3385 (process_target::supports_qxfer_siginfo): Define.
3386
3387 Update the derived classes and callers below.
3388
3389 * server.cc (handle_qxfer_siginfo): Update.
3390 (handle_query): Update.
3391 * linux-low.cc (linux_target_ops): Update.
3392 (linux_process_target::supports_qxfer_siginfo): Define.
3393 (linux_xfer_siginfo): Turn into ...
3394 (linux_process_target::qxfer_siginfo): ... this.
3395 * linux-low.h (class linux_process_target): Update.
3396 * lynx-low.cc (lynx_target_ops): Update.
3397 * nto-low.cc (nto_target_ops): Update.
3398 * win32-low.cc (win32_target_ops): Update.
3399
2d0795ee
TBA
34002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3401
3402 Turn process_stratum_target's qxfer_osdata op into a method of
3403 process_target.
3404
3405 * target.h (struct process_stratum_target): Remove the target op.
3406 (class process_target): Add the target op. Also add
3407 'supports_qxfer_osdata'.
3408 * target.cc (process_target::qxfer_osdata): Define.
3409 (process_target::supports_qxfer_osdata): Define.
3410
3411 Update the derived classes and callers below.
3412
3413 * server.cc (handle_qxfer_osdata): Update.
3414 (handle_query): Update.
3415 * linux-low.cc (linux_target_ops): Update.
3416 (linux_process_target::supports_qxfer_osdata): Define.
3417 (linux_qxfer_osdata): Turn into ...
3418 (linux_process_target::qxfer_osdata): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 * win32-low.cc (win32_target_ops): Update.
3423
ea06bbaa
TBA
34242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3425
3426 Turn process_stratum_target's hostio_last_error op into a
3427 method of process_target.
3428
3429 * target.h (struct process_stratum_target): Remove the target op.
3430 (class process_target): Add the target op.
3431 * target.cc: Add "hostio.h" to includes.
3432 (process_target::hostio_last_error): Define.
3433
3434 Update the derived classes and callers below.
3435
3436 * hostio.cc (hostio_error): Update.
3437 * linux-low.cc: Remove "hostio.h" from includes.
3438 (linux_target_ops): Update.
3439 * lynx-low.cc (lynx_target_ops): Update.
3440 * nto-low.cc (nto_target_ops): Update.
3441 * win32-low.h (class win32_process_target): Update.
3442 * win32-low.cc (win32_target_ops): Update.
3443 (wince_hostio_last_error): Turn into ...
3444 (win32_process_target::hostio_last_error): ... this.
3445
6e3fd7e9
TBA
34462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3447
3448 Turn process_stratum_target's get_tls_address op into a method of
3449 process_target.
3450
3451 * target.h (struct process_stratum_target): Remove the target op.
3452 (class process_target): Add the target op. Also add
3453 'supports_get_tls_address'.
3454 * target.cc (process_target::get_tls_address): Define.
3455 (process_target::supports_get_tls_address): Define.
3456
3457 Update the derived classes and callers below.
3458
3459 * server.cc (handle_query): Update.
3460 * linux-low.cc (linux_target_ops): Update.
3461 (linux_process_target::supports_get_tls_address): Define.
3462 (linux_process_target::get_tls_address): Define.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 * win32-low.cc (win32_target_ops): Update.
3467
5203ae1e
TBA
34682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3469
3470 Turn process_stratum_target's read_offsets op into a method of
3471 process_target.
3472
3473 * target.h (struct process_stratum_target): Remove the target op.
3474 (class process_target): Add the target op. Also add
3475 'supports_read_offsets'.
3476 * target.cc (process_target::read_offsets): Define.
3477 (process_target::supports_read_offsets): Define.
3478
3479 Update the derived classes and callers below.
3480
3481 * server.cc (handle_query): Update.
3482 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3483 (linux_target_ops): Update.
3484 (linux_process_target::supports_read_offsets): Define.
3485 (linux_read_offsets): Turn into ...
3486 (linux_process_target::read_offsets): ... this.
3487 * linux-low.h (class linux_process_target): Update.
3488 * lynx-low.cc (lynx_target_ops): Update.
3489 * nto-low.cc (nto_target_ops): Update.
3490 * win32-low.cc (win32_target_ops): Update.
3491
6eeb5c55
TBA
34922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3493
3494 Turn process_stratum_target's stopped_by_watchpoint and
3495 stopped_data_address ops into methods of process_target.
3496
3497 * target.h (struct process_stratum_target): Remove the target ops.
3498 (class process_target): Add the target ops.
3499 * target.cc (process_target::stopped_by_watchpoint): Define.
3500 (process_target::stopped_data_address): Define.
3501
3502 Update the derived classes and callers below.
3503
3504 * remote-utils.cc (prepare_resume_reply): Update.
3505 * linux-low.cc (linux_target_ops): Update.
3506 (linux_stopped_by_watchpoint): Turn into ...
3507 (linux_process_target::stopped_by_watchpoint): ... this.
3508 (linux_stopped_data_address): Turn into ...
3509 (linux_process_target::stopped_data_address): ... this.
3510 * linux-low.h (class linux_process_target): Update.
3511 * lynx-low.cc (lynx_target_ops): Update.
3512 * nto-low.cc (nto_target_ops): Update.
3513 (nto_stopped_by_watchpoint): Turn into ...
3514 (nto_process_target::stopped_by_watchpoint): ... this.
3515 (nto_stopped_data_address): Turn into ...
3516 (nto_process_target::stopped_data_address): ... this.
3517 * nto-low.h (class nto_process_target): Update.
3518 * win32-low.cc (win32_target_ops): Update.
3519 (win32_stopped_by_watchpoint): Turn into ...
3520 (win32_process_target::stopped_by_watchpoint): ... this.
3521 (win32_stopped_data_address): Turn into ...
3522 (win32_process_target::stopped_data_address): ... this.
3523 * win32-low.h (class win32_process_target): Update.
3524
22aa6223
TBA
35252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3526
3527 Turn process_stratum_target's supports_hardware_single_step op into
3528 a method of process_target.
3529
3530 * target.h (struct process_stratum_target): Remove the target op.
3531 (class process_target): Add the target op.
3532 (target_supports_hardware_single_step): Update the macro.
3533 (target_can_do_hardware_single_step): Remove declaration.
3534 * target.cc (process_target::supports_hardware_single_step): Define.
3535 (target_can_do_hardware_single_step): Remove.
3536
3537 Update the derived classes and callers below.
3538
3539 * linux-low.h (class linux_process_target): Update.
3540 * linux-low.cc (linux_target_ops): Update.
3541 (linux_supports_hardware_single_step): Turn into ...
3542 (linux_process_target::supports_hardware_single_step): ... this.
3543 * lynx-low.h (class lynx_process_target): Update.
3544 * lynx-low.cc (lynx_target_ops): Update.
3545 (lynx_process_target::supports_hardware_single_step): Define.
3546 * nto-low.h (class nto_process_target): Update.
3547 * nto-low.cc (nto_target_ops): Update.
3548 (nto_process_target::supports_hardware_single_step): Define.
3549 * win32-low.h (class win32_process_target): Update.
3550 * win32-low.cc (win32_target_ops): Update.
3551 (win32_process_target::supports_hardware_single_step): Define.
3552
93fe88b2
TBA
35532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554
3555 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3556 ops into methods of process_target.
3557
3558 * target.h (struct process_stratum_target): Remove the target ops.
3559 (class process_target): Add the target ops.
3560 (target_stopped_by_hw_breakpoint): Update the macro.
3561 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3562 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3563 (process_target::supports_stopped_by_hw_breakpoint): Define.
3564
3565 Update the derived classes and callers below.
3566
3567 * linux-low.cc (linux_target_ops): Update.
3568 (linux_stopped_by_hw_breakpoint): Turn into ...
3569 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3570 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3571 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3572 * linux-low.h (class linux_process_target): Update.
3573 * lynx-low.cc (lynx_target_ops): Update.
3574 * nto-low.cc (nto_target_ops): Update.
3575 * win32-low.cc (win32_target_ops): Update.
3576
84320c4e
TBA
35772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3578
3579 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3580 ops into methods of process_target.
3581
3582 * target.h (struct process_stratum_target): Remove the target ops.
3583 (class process_target): Add the target ops.
3584 (target_stopped_by_sw_breakpoint): Update the macro.
3585 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3586 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3587 (process_target::supports_stopped_by_sw_breakpoint): Define.
3588
3589 Update the derived classes and callers below.
3590
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_stopped_by_sw_breakpoint): Turn into ...
3593 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3594 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3595 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3596 * linux-low.h (class linux_process_target): Update.
3597 * lynx-low.cc (lynx_target_ops): Update.
3598 * nto-low.cc (nto_target_ops): Update.
3599 * win32-low.cc (win32_target_ops): Update.
3600
7e0bde70
TBA
36012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3602
3603 Turn process_stratum_target's insert_point and remove_point ops
3604 into methods of process_target.
3605
3606 * target.h (struct process_stratum_target): Remove the target ops.
3607 (class process_target): Add the target ops.
3608 * target.cc (process_target::insert_point): Define.
3609 (process_target::remove_point): Define.
3610
3611 Update the derived classes and callers below.
3612
3613 * mem-break.cc (set_raw_breakpoint_at): Update.
3614 (delete_raw_breakpoint): Update.
3615 (uninsert_raw_breakpoint): Update.
3616 (reinsert_raw_breakpoint): Update.
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_insert_point): Turn into ...
3619 (linux_process_target::insert_point): ... this.
3620 (linux_remove_point): Turn into ...
3621 (linux_process_target::remove_point): ... this.
3622 * linux-low.h (class linux_process_target): Update.
3623 * lynx-low.cc (lynx_target_ops): Update.
3624 * nto-low.cc (nto_target_ops): Update.
3625 (nto_insert_point): Turn into ...
3626 (nto_process_target::insert_point): ... this.
3627 (nto_remove_point): Turn into ...
3628 (nto_process_target::remove_point): ... this.
3629 * nto-low.h (class nto_process_target): Update.
3630 * win32-low.cc (win32_target_ops): Update.
3631 (win32_insert_point): Turn into ...
3632 (win32_process_target::insert_point): ... this.
3633 (win32_remove_point): Turn into ...
3634 (win32_process_target::remove_point): ... this.
3635 * win32-low.h (class win32_process_target): Update.
3636
a2b2297a
TBA
36372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3638
3639 Turn process_stratum_target's supports_z_point_type op into a
3640 method of process_target.
3641
3642 * target.h (struct process_stratum_target): Remove the target op.
3643 (class process_target): Add the target op.
3644 * target.cc (process_target::supports_z_point_type): Define.
3645
3646 Update the derived classes and callers below.
3647
3648 * mem-break.cc (z_type_supported): Update.
3649 * linux-low.cc (linux_target_ops): Update.
3650 (linux_supports_z_point_type): Turn into ...
3651 (linux_process_target::supports_z_point_type): ... this.
3652 * linux-low.h (class linux_process_target): Update.
3653 * lynx-low.cc (lynx_target_ops): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_supports_z_point_type): Turn into ...
3656 (nto_process_target::supports_z_point_type): ... this.
3657 * nto-low.h (class nto_process_target): Update.
3658 * win32-low.cc (win32_target_ops): Update.
3659 (win32_supports_z_point_type): Turn into ...
3660 (win32_process_target::supports_z_point_type): ... this.
3661 * win32-low.h (class win32_process_target): Update.
3662
eac215cc
TBA
36632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664
3665 Turn process_stratum_target's read_auxv op into a method of
3666 process_target.
3667
3668 * target.h (class process_stratum_target): Remove the target op.
3669 (struct process_target): Add the target op. Also add
3670 'supports_read_auxv'.
3671 * target.cc (process_target::read_auxv): Define.
3672 (process_target::supports_read_auxv): Define.
3673
3674 Update the derived classes and callers below.
3675
3676 * server.cc (handle_qxfer_auxv): Update.
3677 (handle_query): Update.
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_process_target::supports_read_auxv): Define.
3680 (linux_read_auxv): Turn into ...
3681 (linux_process_target::read_auxv): ... this.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_process_target::supports_read_auxv): Define.
3686 (nto_read_auxv): Turn into ...
3687 (nto_process_target::read_auxv): ... this.
3688 * nto-low.h (class nto_process_target): Update.
3689 * win32-low.cc (win32_target_ops): Update.
3690
eb497a2a
TBA
36912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692
3693 Turn process_stratum_target's request_interrupt op into a method of
3694 process_target.
3695
3696 * target.h (struct process_stratum_target): Remove the target op.
3697 (class process_target): Add the target op.
3698
3699 Update the derived classes and callers below.
3700
3701 * remote-utils.cc (putpkt_binary_1): Update.
3702 (input_interrupt): Update.
3703 (getpkt): Update.
3704 * server.cc (handle_v_requests): Update.
3705 * linux-low.cc (linux_target_ops): Update.
3706 (linux_request_interrupt): Turn into ...
3707 (linux_process_target::request_interrupt): ... this.
3708 * linux-low.h (class linux_process_target): Update.
3709 * lynx-low.cc (lynx_target_ops): Update.
3710 (lynx_request_interrupt): Turn into ...
3711 (lynx_process_target::request_interrupt): ... this.
3712 * lynx-low.h (class lynx_process_target): Update.
3713 * nto-low.cc (nto_target_ops): Update.
3714 (nto_request_interrupt): Turn into ...
3715 (nto_process_target::request_interrupt): ... this.
3716 * nto-low.h (class nto_process_target): Update.
3717 * win32-low.cc (win32_target_ops): Update.
3718 (win32_request_interrupt): Turn into ...
3719 (win32_process_target::request_interrupt): ... this.
3720 * win32-low.h (class win32_process_target): Update.
3721
2a31c7aa
TBA
37222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3723
3724 Turn process_stratum_target's look_up_symbols op into a method of
3725 process_target.
3726
3727 * target.h (struct process_stratum_target): Remove the target op.
3728 (class process_target): Add the target op.
3729 * target.cc (process_target::look_up_symbols): Define.
3730
3731 Update the derived classes and callers below.
3732
3733 * server.cc (handle_query): Update.
3734 * linux-low.cc (linux_target_ops): Update.
3735 (linux_look_up_symbols): Turn into ...
3736 (linux_process_target::look_up_symbols): ... this.
3737 * linux-low.h (class linux_process_target): Update.
3738 * lynx-low.cc (lynx_target_ops): Update.
3739 * nto-low.cc (nto_target_ops): Update.
3740 * win32-low.cc (win32_target_ops): Update.
3741
e2558df3
TBA
37422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3743
3744 Turn process_stratum_target's read_memory and write_memory
3745 ops into methods of process_target.
3746
3747 * target.h (struct process_stratum_target): Remove the target ops.
3748 (class process_target): Add the target ops.
3749
3750 Update the derived classes and callers below.
3751
3752 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3753 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3754 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3755 (arm_get_syscall_trapinfo): Update.
3756 * linux-cris-low.cc (cris_breakpoint_at): Update.
3757 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3758 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3759 * linux-mips-low.cc (mips_breakpoint_at): Update.
3760 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3761 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3762 * linux-sh-low.cc (sh_breakpoint_at): Update.
3763 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3764 (sparc_store_gregset_from_stack): Update.
3765 (sparc_breakpoint_at): Update.
3766 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3767 * linux-tile-low.cc (tile_breakpoint_at): Update.
3768 * linux-x86-low.cc (x86_breakpoint_at): Update.
3769 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3770 * mem-brea.cc (insert_memory_breakpoint): Update.
3771 (validate_inserted_breakpoint): Update.
3772 * target.cc (read_inferior_memory): Update.
3773 (target_write_memory): Update.
3774 * linux-low.cc (linux_target_ops): Update.
3775 (linux_read_memory): Make a wrapper around the read_memory target
3776 op call.
3777 (linux_process_target::read_memory): Rename from linux_read_memory.
3778 (linux_write_memory): Turn into ...
3779 (linux_process_target::write_memory): ... this.
3780 * linux-low.h (class linux_process_target): Update.
3781 * lynx-low.cc (lynx_target_ops): Update.
3782 (lynx_read_memory): Turn into ...
3783 (lynx_process_target::read_memory): ... this.
3784 (lynx_write_memory): Turn into ...
3785 (lynx_process_target::write_memory): ... this.
3786 * lynx-low.h (class lynx_process_target): Update.
3787 * nto-low.cc (nto_target_ops): Update.
3788 (nto_read_memory): Turn into ...
3789 (nto_process_target::read_memory): ... this.
3790 (nto_write_memory): Turn into ...
3791 (nto_process_target::write_memory): ... this.
3792 * nto-low.h (class nto_process_target): Update.
3793 * win32-low.cc (win32_target_ops): Update.
3794 (win32_read_inferior_memory): Turn into ...
3795 (win32_process_target::read_memory): ... this.
3796 (win32_write_inferior_memory): Turn into ...
3797 (win32_process_target::write_memory): ... this.
3798 * win32-low.h (class win32_process_target): Update.
3799
79b44087
TBA
38002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3801
3802 Turn process_stratum_target's prepare_to_access_memory and
3803 done_accessing_memory ops into methods of process_target.
3804
3805 * target.h (struct process_stratum_target): Remove the target ops.
3806 (class process_target): Add the target ops.
3807 * target.cc (process_target::prepare_to_access_memory): Define.
3808 (process_target::done_accessing_memory): Define.
3809 (prepare_to_access_memory): Update.
3810 (done_accessing_memory): Update.
3811
3812 Update the derived classes and callers below.
3813
3814 * linux-low.cc (linux_target_ops): Update.
3815 (linux_prepare_to_access_memory): Turn into ...
3816 (linux_process_target::prepare_to_access_memory): ... this.
3817 (linux_done_accessing_memory): Turn into ...
3818 (linux_process_target::done_accessing_memory): ... this.
3819 * linux-low.h (class linux_process_target): Update.
3820 * lynx-low.cc (lynx_target_ops): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 * win32-low.cc (win32_target_ops): Update.
3823
a5a4d4cd
TBA
38242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825
3826 Turn process_stratum_target's fetch_registers and store_registers
3827 ops into methods of process_target.
3828
3829 * target.h (struct process_stratum_target): Remove the target ops.
3830 (class process_target): Add the target ops.
3831 (fetch_inferior_registers): Update the macro.
3832 (store_inferior_registers): Update the macro.
3833
3834 Update the derived classes and callers below.
3835
3836 * linux-low.cc (linux_target_ops): Update.
3837 (linux_fetch_registers): Turn into ...
3838 (linux_process_target::fetch_registers): ... this.
3839 (linux_store_registers): Turn into ...
3840 (linux_process_target::store_registers): ... this.
3841 * linux-low.h (class linux_process_target): Update.
3842 * lynx-low.cc (lynx_target_ops): Update.
3843 (lynx_fetch_registers): Turn into ...
3844 (lynx_process_target::fetch_registers): ... this.
3845 (lynx_store_registers): Turn into ...
3846 (lynx_process_target::store_registers): ... this.
3847 * lynx-low.h (class lynx_process_target): Update.
3848 * nto-low.cc (nto_target_ops): Update.
3849 (nto_fetch_registers): Turn into ...
3850 (nto_process_target::fetch_registers): ... this.
3851 (nto_store_registers): Turn into ...
3852 (nto_process_target::store_registers): ... this.
3853 * nto-low.h (class nto_process_target): Update.
3854 * win32-low.cc (win32_target_ops): Update.
3855 (win32_fetch_inferior_registers): Turn into ...
3856 (win32_process_target::fetch_registers): ... this.
3857 (win32_store_inferior_registers): Turn into ...
3858 (win32_process_target::store_registers): ... this.
3859 * win32-low.h (class win32_process_target): Update.
3860
6532e7e3
TBA
38612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3862
3863 Turn process_stratum_target's wait op into a method of
3864 process_target.
3865
3866 * target.h (struct process_stratum_target): Remove the target op.
3867 (class process_target): Add the target op.
3868
3869 Update the derived classes and callers below.
3870
3871 * target.cc (target_wait): Update.
3872 * linux-low.cc (linux_target_ops): Update.
3873 (linux_wait): Turn into ...
3874 (linux_process_target::wait): ... this.
3875 * linux-low.h (class linux_process_target): Update.
3876 * lynx-low.cc (lynx_target_ops): Update.
3877 (lynx_wait): Turn into ...
3878 (lynx_process_target::wait): ... this.
3879 * lynx-low.h (class lynx_process_target): Update.
3880 * nto-low.cc (nto_target_ops): Update.
3881 (nto_wait): Turn into ...
3882 (nto_process_target::wait): ... this.
3883 * nto-low.h (class nto_process_target): Update.
3884 * win32-low.cc (win32_target_ops): Update.
3885 (win32_wait): Turn into ...
3886 (win32_process_target::wait): ... this.
3887 (do_initial_child_stuff): Update.
3888 * win32-low.h (class win32_process_target): Update.
3889
0e4d7e35
TBA
38902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3891
3892 Turn process_stratum_target's resume op into a method of
3893 process_target.
3894
3895 * target.h (struct process_stratum_target): Remove the target op.
3896 (class process_target): Add the target op.
3897
3898 Update the derived classes and callers below.
3899
3900 * server.cc (resume): Update.
3901 * target.cc (target_stop_and_wait): Update.
3902 (target_continue_no_signal): Update.
3903 (target_continue): Update.
3904 * linux-low.cc (linux_target_ops): Update.
3905 (linux_resume): Turn into ...
3906 (linux_process_target::resume): ... this.
3907 * linux-low.h (class linux_process_target): Update.
3908 * lynx-low.cc (lynx_target_ops): Update.
3909 (lynx_resume): Turn into ...
3910 (lynx_process_target::resume): ... this.
3911 * lynx-low.h (class lynx_process_target): Update.
3912 * nto-low.cc (nto_target_ops): Update.
3913 (nto_resume): Turn into ...
3914 (nto_process_target::resume): ... this.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_resume): Turn into ...
3918 (win32_process_target::resume): ... this.
3919 (win32_process_target::detach): Update.
3920 (do_initial_child_stuff): Update.
3921 * win32-low.h (class win32_process_target): Update.
3922
13d3d99b
TBA
39232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3924
3925 Turn process_stratum_target's thread_alive op into a method of
3926 process_target.
3927
3928 * target.h (struct process_stratum_target): Remove the target op.
3929 (class process_target): Add the target op.
3930 (mythread_alive): Update the macro.
3931
3932 Update the derived classes and callers below.
3933
3934 * linux-low.cc (linux_target_ops): Update.
3935 (linux_thread_alive): Turn into ...
3936 (linux_process_target::thread_alive): ... this.
3937 (wait_for_sigstop): Update.
3938 * linux-low.h (class linux_process_target): Update.
3939 * lynx-low.cc (lynx_target_ops): Update.
3940 (lynx_thread_alive): Turn into ...
3941 (lynx_process_target::thread_alive): ... this.
3942 * lynx-low.h (class lynx_process_target): Update.
3943 * nto-low.cc (nto_target_ops): Update.
3944 (nto_thread_alive): Turn into ...
3945 (nto_process_target::thread_alive): ... this.
3946 * nto-low.h (class nto_process_target): Update.
3947 * win32-low.cc (win32_target_ops): Update.
3948 (win32_thread_alive): Turn into ...
3949 (win32_process_target::thread_alive): ... this.
3950 * win32-low.h (class win32_process_target): Update.
3951
95a49a39
TBA
39522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3953
3954 Turn process_stratum_target's join op into a method of
3955 process_target.
3956
3957 * target.h (struct process_stratum_target): Remove the target op.
3958 (class process_target): Add the target op.
3959 (join_inferior): Update the macro.
3960
3961 Update the derived classes and callers below.
3962
3963 * linux-low.cc (linux_target_ops): Update.
3964 (linux_join): Turn into ...
3965 (linux_process_target::join): ... this.
3966 * linux-low.h (class linux_process_target): Update.
3967 * lynx-low.cc (lynx_target_ops): Update.
3968 (lynx_join): Turn into ...
3969 (lynx_process_target::join): ... this.
3970 * lynx-low.h (class lynx_process_target): Update.
3971 * nto-low.cc (nto_target_ops): Update.
3972 (nto_process_target::join): Define.
3973 * nto-low.h (class nto_process_target): Update.
3974 * win32-low.cc (win32_target_ops): Update.
3975 (win32_join): Turn into ...
3976 (win32_process_target::join): ... this.
3977 * win32-low.h (class win32_process_target): Update.
3978
8adb37b9
TBA
39792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3980
3981 Turn process_stratum_target's mourn op into a method of
3982 process_target.
3983
3984 * target.h (struct process_stratum_target): Remove the target op.
3985 (class process_target): Add the target op.
3986
3987 Update the derived classes and callers below.
3988
3989 * target.cc (target_mourn_inferior): Update.
3990 * linux-low.cc (linux_target_ops): Update.
3991 (linux_mourn): Turn into ...
3992 (linux_process_target::mourn): ... this.
3993 (handle_extended_wait): Update.
3994 (linux_process_target::kill): Update.
3995 (linux_process_target::detach): Update.
3996 * linux-low.h (class linux_process_target): Update.
3997 * lynx-low.cc (lynx_target_ops): Update.
3998 (lynx_mourn): Turn into ...
3999 (lynx_process_target::mourn): ... this.
4000 * lynx-low.h (class lynx_process_target): Update.
4001 * nto-low.cc (nto_target_ops): Update.
4002 (nto_mourn): Turn into ...
4003 (nto_process_target::mourn): ... this.
4004 * nto-low.h (class nto_process_target): Update.
4005 * win32-low.cc (win32_target_ops): Update.
4006 (win32_mourn): Turn into ...
4007 (win32_process_target::mourn): ... this.
4008 * win32-low.h (class win32_process_target): Update.
4009
9061c9cf
TBA
40102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4011
4012 Turn process_stratum_target's detach op into a method of
4013 process_target.
4014
4015 * target.h (struct process_stratum_target): Remove the target op.
4016 (class process_target): Add the target op.
4017 (detach_inferior): Update the macro.
4018
4019 Update the derived classes and callers below.
4020
4021 * linux-low.cc (linux_target_ops): Update.
4022 (linux_detach): Turn into ...
4023 (linux_process_target::detach): ... this.
4024 * linux-low.h (class linux_process_target): Update.
4025 * lynx-low.cc (lynx_target_ops): Update.
4026 (lynx_detach): Turn into ...
4027 (lynx_process_target::detach): ... this.
4028 * lynx-low.h (class lynx_process_target): Update.
4029 * nto-low.cc (nto_target_ops): Update.
4030 (nto_detach): Turn into ...
4031 (nto_process_target::detach): ... this.
4032 * nto-low.h (class nto_process_target): Update.
4033 * win32-low.cc (win32_target_ops): Update.
4034 (win32_detach): Turn into ...
4035 (win32_process_target::detach): ... this.
4036 * win32-low.h (class win32_process_target): Update.
4037
c6885a57
TBA
40382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4039
4040 Turn process_stratum_target's kill op into a method of
4041 process_target.
4042
4043 * target.h (struct process_stratum_target): Remove the target op.
4044 (class process_target): Add the target op.
4045
4046 Update the derived classes and callers below.
4047
4048 * target.cc (kill_inferior): Update.
4049 * linux-low.cc (linux_target_ops): Update.
4050 (linux_kill): Turn into ...
4051 (linux_process_target::kill): ... this.
4052 * linux-low.h (class linux_process_target): Update.
4053 * lynx-low.cc (lynx_target_ops): Update.
4054 (lynx_kill): Turn into ...
4055 (lynx_process_target::kill): ... this.
4056 * lynx-low.h (class lynx_process_target): Update.
4057 * nto-low.cc (nto_target_ops): Update.
4058 (nto_kill): Turn into ...
4059 (nto_process_target::kill): ... this.
4060 * nto-low.h (class nto_process_target): Update.
4061 * win32-low.cc (win32_target_ops): Update.
4062 (win32_kill): Turn into ...
4063 (win32_process_target::kill): ... this.
4064 * win32-low.h (class win32_process_target): Update.
4065
ef03dad8
TBA
40662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4067
4068 Turn process_stratum_target's attach op into a method of
4069 process_target.
4070
4071 * target.h (struct process_stratum_target): Remove the target op.
4072 (class process_target): Add the target op.
4073 (myattach): Update the macro.
4074
4075 Update the derived classes and callers below.
4076
4077 * linux-low.cc (linux_target_ops): Update.
4078 (linux_attach): Turn into ...
4079 (linux_process_target::attach): ... this.
4080 * linux-low.h (class linux_process_target): Update.
4081 * lynx-low.cc (lynx_target_ops): Update.
4082 (lynx_attach): Turn into ...
4083 (lynx_process_target::attach): ... this.
4084 * lynx-low.h (class lynx_process_target): Update.
4085 * nto-low.cc (nto_target_ops): Update.
4086 (nto_attach): Turn into ...
4087 (nto_process_target::attach): ... this.
4088 * nto-low.h (class nto_process_target): Update.
4089 * win32-low.cc (win32_target_ops): Update.
4090 (win32_attach): Turn into ...
4091 (win32_process_target::attach): ... this.
4092 * win32-low.h (class win32_process_target): Update.
4093
6dee9afb
TBA
40942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4095
4096 Turn process_stratum_target's post_create_inferior op into a method
4097 of process_target.
4098
4099 * target.h (struct process_stratum_target): Remove the target op.
4100 (class process_target): Add the target op.
4101 (target_post_create_inferior): Update the macro.
4102 * target.cc (process_target::post_create_inferior): Define.
4103
4104 Update the derived classes and callers below.
4105
4106 * linux-low.cc (linux_target_ops): Update.
4107 (linux_post_create_inferior): Turn into ...
4108 (linux_process_target::post_create_inferior): ... this.
4109 * linux-low.h (class linux_process_target): Update.
4110 * lynx-low.cc (lynx_target_ops): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 * win32-low.cc (win32_target_ops): Update.
4113
15295543
TBA
41142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4115
4116 Turn process_stratum_target's create_inferior op into a method of
4117 process_target.
4118
4119 * target.h (struct process_stratum_target): Remove the target op.
4120 (class process_target): Add the target op.
4121 (create_inferior): Rename the macro to ...
4122 (target_create_inferior): ... this.
4123
4124 Update the derived classes and callers below.
4125
4126 * server.cc (handle_v_run): Update.
4127 (captured_main): Update.
4128 (process_serial_event): Update.
4129 * linux-low.cc (linux_target_ops): Update.
4130 (linux_create_inferior): Turn into ...
4131 (linux_process_target::create_inferior): ... this.
4132 * linux-low.h (class linux_process_target): Update.
4133 * lynx-low.cc (lynx_target_ops): Update.
4134 (lynx_create_inferior): Turn into ...
4135 (lynx_process_target::create_inferior): ... this.
4136 * lynx-low.h (class lynx_process_target): Update.
4137 * nto-low.cc (nto_target_ops): Update.
4138 (nto_create_inferior): Turn into ...
4139 (nto_process_target::create_inferior): ... this.
4140 * nto-low.h (class nto_process_target): Update.
4141 * win32-low.cc (win32_target_ops): Update.
4142 (win32_create_inferior): Turn into ...
4143 (win32_process_target::create_inferior): ... this.
4144 * win32-low.h (class win32_process_target): Update.
4145
5ef9273d
TBA
41462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4147
4148 * target.h (class process_target): New class definition.
4149 (struct process_stratum_target) <pt>: New field with type
4150 'process_target*'.
4151 * linux-low.h (class linux_process_target): Define as a derived
4152 class of 'process_target'.
4153 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4154 as the 'pt' field.
4155 * lynx-low.h (class lynx_process_target): Define as a derived
4156 class of 'process_target'.
4157 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4158 as the 'pt' field.
4159 * nto-low.h (class nto_process_target): Define as a derived
4160 class of 'process_target'.
4161 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4162 as the 'pt' field.
4163 * win32-low.h (class win32_process_target): Define as a derived
4164 class of 'process_target'.
4165 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4166 as the 'pt' field.
4167
9f1528a1
AB
41682020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 * configure: Regenerate.
4171
bf84f706
MR
41722020-02-19 Maciej W. Rozycki <macro@wdc.com>
4173 Andrew Burgess <andrew.burgess@embecosm.com>
4174
4175 * linux-riscv-low.cc: New file.
4176 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4177 and nat/riscv-linux-tdesc.c.
4178 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4179 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4180 Define.
4181
1a627e7e
TT
41822020-02-14 Tom Tromey <tom@tromey.com>
4183
4184 * acinclude.m4: Don't include acx_configure_dir.m4.
4185 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4186 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4187 (all, install-only, uninstall, clean-info, clean)
4188 (maintainer-clean): Don't recurse.
4189 (subdir_do, all-lib): Remove.
4190 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4191 (GNULIB_H): Remove.
4192 (generated_files): Update.
4193 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4194 * configure: Rebuild.
4195 * configure.ac: Don't configure gnulib or libiberty.
4196 (GNULIB): Update.
4197
a9b34532
EZ
41982020-02-14 Eli Zaretskii <eliz@gnu.org>
4199
4200 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4201 preparing the command line for CreateProcess.
4202 (win32_create_inferior): Reflect the program name in debugging
4203 output that shows the process and its command line.
4204
feacfcac
SM
42052020-02-13 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * Makefile.in: Rename source files from .c to .cc.
4208 * %.c: Rename to %.cc.
4209 * configure.ac: Rename server.c to server.cc.
4210 * configure: Re-generate.
4211
06b3c5bd
SM
42122020-02-13 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4215
052793ad
HD
42162020-02-12 Hannes Domani <ssbssa@yahoo.de>
4217
4218 * win32-low.c (win32_create_inferior): Set signal_pid.
4219
f20e3e82
MR
42202020-02-12 Maciej W. Rozycki <macro@wdc.com>
4221 Pedro Alves <palves@redhat.com>
4222
4223 Skip building gdbserver in a cross-configuration.
4224 * configure.srv: Set $gdbserver_host depending on whether $target
4225 is $host. Use $gdbserver_host instead of $host.
4226
8ddd8e0e
SM
42272020-02-11 Simon Marchi <simon.marchi@efficios.com>
4228
4229 * configure: Re-generate.
4230
898e7f60
SM
42312020-02-11 Simon Marchi <simon.marchi@efficios.com>
4232
4233 * configure: Re-generate.
4234
58df732b
SM
42352020-02-11 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * acinclude.m4: Update warning.m4 path.
4238
7928d571
HD
42392020-02-09 Hannes Domani <ssbssa@yahoo.de>
4240
4241 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4242 (handle_exception): Set siginfo_er.
4243 (win32_xfer_siginfo): New function.
4244
919adfe8
TT
42452020-02-07 Tom Tromey <tom@tromey.com>
4246 Pedro Alves <palves@redhat.com>
4247
4248 * README: Update build documentation.
4249 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4250 host, not target.
4251 * configure.ac: Update paths.
4252 * configure: Rebuild.
4253 * acinclude.m4: Update paths.
4254 * Makefile.in: Update include paths.
4255 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4256 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4257 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4258 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4259 (%-generated.c): Update paths.
4260 * Move entire directory from ../gdb/gdbserver.
4261
287c844a
MR
42622020-01-29 Maciej W. Rozycki <macro@wdc.com>
4263
4264 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4265
548a204f
PFC
42662020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4267
4268 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4269 assignment instead of srv_linux_obj.
4270
a2236a08
HD
42712020-01-28 Hannes Domani <ssbssa@yahoo.de>
4272
4273 * server.c (handle_qxfer_libraries): Write segment-address with
4274 paddress.
4275
bdaed379
HD
42762020-01-24 Hannes Domani <ssbssa@yahoo.de>
4277
4278 * Makefile.in (install-strip): New target.
4279 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4280 * aclocal.m4: Regenerate.
4281 * configure: Regenerate.
4282 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4283
42cd72aa
MR
42842020-01-24 Maciej W. Rozycki <macro@wdc.com>
4285
4286 * Makefile.in (SFILES): Adjust paths to point to real files.
4287 (OBS): Move waitstatus.o to target/waitstatus.o.
4288 (TAGS): Transform paths appropriately.
4289 (%.o): Rename to...
4290 (nat/%.o): ... this pattern rule.
4291 (%.o): Rename to...
4292 (target/%.o): ... this pattern rule.
4293 * configure.srv: Adjust paths throughout to include nat/ prefix
4294 with the revant files.
4295 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4296 * configure: Regenerate.
4297
42ba50ec
MR
42982020-01-24 Maciej W. Rozycki <macro@wdc.com>
4299
4300 * Makefile.in (TAGS): Remove config files from the recipe.
4301
05ea2a05
TT
43022020-01-14 Tom Tromey <tom@tromey.com>
4303
4304 * configure: Rebuild.
4305 * configure.ac: Remove any checks that were added to common.m4.
4306 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4307 lib-link.m4.
4308
01027315
TT
43092020-01-14 Tom Tromey <tom@tromey.com>
4310
4311 * server.h: Include config.h.
4312 * gdbreplay.c: Include config.h.
4313 * configure: Rebuild.
4314 * configure.ac: Don't source common.host.
4315 * acinclude.m4: Update path.
4316 * Makefile.in (INCSUPPORT): New variable.
4317 (INCLUDE_CFLAGS): Add INCSUPPORT.
4318 (SFILES): Update paths.
4319 (version-generated.c): Update path to create-version.sh.
4320 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4321
b2ceabe8
TT
43222020-01-14 Tom Tromey <tom@tromey.com>
4323
4324 * configure.ac (LIBS): Use WIN32APILIBS.
4325 (USE_WIN32API): Don't define.
4326 * configure: Rebuild.
4327
25c51f71
TT
43282020-01-14 Tom Tromey <tom@tromey.com>
4329
4330 * configure: Rebuild.
4331
c0bd321d
SM
43322020-01-13 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * Makefile.in (%-generated.c): Remove rule for files from
4335 regformats/i386.
4336
bb564c58
SM
43372020-01-13 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * configure: Re-generate.
4340
6e37c371
SM
43412020-01-13 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4344 Define to static.
4345 * tracepoint.c (stop_tracing, flush_trace_buffer,
4346 about_to_request_buffer_space, get_trace_state_variable_value,
4347 set_trace_state_variable_value, gdb_collect): Add declaration.
4348
df4a0200
SM
43492020-01-13 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4352 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4353 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4354 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4355 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4356 static.
4357
89e94ec9
SM
43582020-01-13 Simon Marchi <simon.marchi@efficios.com>
4359
4360 * inferiors.c: Include gdbsupport/common-inferior.h.
4361
2552728a
SM
43622020-01-13 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * hostio-errno.c: Include hostio.h.
4365
4025fa09
SM
43662020-01-13 Simon Marchi <simon.marchi@efficios.com>
4367
4368 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4369 prerequisite.
4370
c0b0a142
SM
43712020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4372
4373 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4374 * linux-arm-tdesc.h: Include arch/arm.h.
4375
bb1183e2
SM
43762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4377
4378 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4379
f5df0b5f
SM
43802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4381
4382 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4383 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4384
5b6d1e4f
PA
43852020-01-10 Pedro Alves <palves@redhat.com>
4386
4387 * fork-child.c (post_fork_inferior): Pass target down to
4388 startup_inferior.
4389 * inferiors.c (switch_to_thread): Add process_stratum_target
4390 parameter.
4391 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4392 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4393 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4394 * remote-utils.c (prepare_resume_reply): Pass the target to
4395 switch_to_thread.
4396 * target.c (the_target): Now a process_stratum_target.
4397 (done_accessing_memory): Pass the target to switch_to_thread.
4398 (set_target_ops): Ajust to use process_stratum_target.
4399 * target.h (struct target_ops): Rename to ...
4400 (struct process_stratum_target): ... this.
4401 (the_target, set_target_ops): Adjust.
4402 (prepare_to_access_memory): Adjust comment.
4403 * win32-low.c (child_xfer_memory): Adjust to use
4404 process_stratum_target.
4405 (win32_target_ops): Now a process_stratum_target.
4406
559e7e50
EZ
44072020-01-06 Eli Zaretskii <eliz@gnu.org>
4408 Pedro Alves <palves@redhat.com>
4409
4410 * win32-low.c (get_child_debug_event): Extract the fatal exception
4411 from the exit status and convert to the equivalent Posix signal
4412 number.
4413 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4414 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4415
48189bec
HD
44162020-01-01 Hannes Domani <ssbssa@yahoo.de>
4417
4418 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4419
5dd8bf88
JB
44202020-01-01 Joel Brobecker <brobecker@adacore.com>
4421
4422 * server.c (gdbserver_version): Change copyright year to 2020.
4423 * gdbreplay.c (gdbreplay_version): Likewise.
4424
0ad6b8ee
CB
44252019-12-19 Christian Biesinger <cbiesinger@google.com>
4426
4427 * configure: Regenerate.
4428 * configure.ac: Quote variable arguments of test.
4429
1ee7b812
BE
44302019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4431
4432 * Makefile.in: Fix build with GNU Make 3.81
4433
d9fa87f4
TT
44342019-12-16 Tom Tromey <tromey@adacore.com>
4435
4436 * server.c (get_exec_file): Constify result.
4437
ab7d13f0
CB
44382019-12-10 Christian Biesinger <cbiesinger@google.com>
4439
4440 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4441 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4442 * config.in: Regenerate.
4443 * configure: Regenerate.
4444 * configure.ac: Don't check for strerror.
4445 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4446 Call safe_strerror instead of strerror.
4447 * server.h (strerror): Remove this now-unnecessary declaration.
4448 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4449 strerror.
4450 (gdb_agent_helper_thread): Likewise.
4451 * utils.c (perror_with_name): Likewise.
4452
4da8c3a8
TT
44532019-11-26 Tom Tromey <tom@tromey.com>
4454
4455 * configure, config.in: Rebuild.
4456
21987b9c
TT
44572019-11-26 Tom Tromey <tom@tromey.com>
4458
4459 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4460 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4461 gdb_sigmask.
4462 * configure, config.in: Rebuild.
4463
5e030278
TT
44642019-11-26 Tom Tromey <tom@tromey.com>
4465
4466 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4467 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4468 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4469 * acinclude.m4: Include ax_pthread.m4.
4470 * config.in, configure: Rebuild.
4471
6d91ce9a
CB
44722019-11-26 Christian Biesinger <cbiesinger@google.com>
4473
4474 * debug.c (debug_set_output): Call safe_strerror instead of
4475 strerror.
4476 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4477 (linux_kill_one_lwp): Likewise.
4478 (linux_detach_one_lwp): Likewise.
4479 (linux_wait_for_event_filtered): Likewise.
4480 (store_register): Likewise.
4481 * lynx-low.c (lynx_attach): Likewise.
4482 * mem-break.c (insert_memory_breakpoint): Likewise.
4483 (remove_memory_breakpoint): Likewise.
4484 (delete_fast_tracepoint_jump): Likewise.
4485 (set_fast_tracepoint_jump): Likewise.
4486 (uninsert_fast_tracepoint_jumps_at): Likewise.
4487 (reinsert_fast_tracepoint_jumps_at): Likewise.
4488 * nto-low.c (nto_xfer_memory): Likewise.
4489 (nto_resume): Likewise.
4490
6cdd651f
LM
44912019-11-20 Luis Machado <luis.machado@linaro.org>
4492
4493 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4494 instead of register count.
4495 * tdesc.c (tdesc_contains_feature): New function.
4496 * tdesc.h (tdesc_contains_feature): New prototype.
4497
cd850b40
CB
44982019-11-15 Christian Biesinger <cbiesinger@google.com>
4499
4500 * Makefile.in: Add safe-strerror.c.
4501 * configure: Regenerate.
4502 * configure.ac: Don't source common.host.
4503
5abebf3c
CB
45042019-11-15 Christian Biesinger <cbiesinger@google.com>
4505
4506 * config.in: Regenerate.
4507 * configure: Regenerate.
4508
e06f3d6e
AB
45092019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * ax.c (ax_printf): Handle size_t_arg.
4512
ca3a04f6
CB
45132019-11-06 Christian Biesinger <cbiesinger@google.com>
4514
4515 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4516 * mi/mi-main.c (output_cores): Likewise.
4517 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4518 (linux_xfer_osdata_modules): Likewise.
4519 * remote.c (register_remote_support_xml): Likewise.
4520 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4521 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4522
e48f6033
CB
45232019-11-01 Christian Biesinger <cbiesinger@google.com>
4524
4525 * configure: Regenerate.
4526 * configure.ac: Remove check for strerror_r.
4527
e7e97a2e
CB
45282019-10-31 Christian Biesinger <cbiesinger@google.com>
4529
4530 * config.in: Regenerate.
4531 * configure: Regenerate.
4532 * configure.ac: Also check for strerror_r.
4533
75cafaa6
CB
45342019-10-31 Christian Biesinger <cbiesinger@google.com>
4535
4536 * ax.h (debug_agent): Remove duplicate declaration.
4537
30baf67b
TV
45382019-10-26 Tom de Vries <tdevries@suse.de>
4539
4540 * linux-aarch64-low.c: Fix typos in comments.
4541 * linux-arm-low.c: Same.
4542 * linux-low.c: Same.
4543 * linux-ppc-low.c: Same.
4544 * proc-service.c: Same.
4545 * regcache.h: Same.
4546 * server.c: Same.
4547 * tracepoint.c: Same.
4548 * win32-low.c: Same.
4549
52c64cf7
TT
45502019-10-25 Tom Tromey <tromey@adacore.com>
4551
4552 * utils.c (xstrdup): Remove.
4553
c12d372d
TT
45542019-10-23 Tom Tromey <tom@tromey.com>
4555
4556 * configure, config.in: Rebuild.
4557
4d0b984b
TT
45582019-10-23 Tom Tromey <tom@tromey.com>
4559
4560 * configure: Rebuild.
4561 * acinclude.m4: Use m4_include, not sinclude.
4562
c5adaa19
TT
45632019-10-17 Tom Tromey <tromey@adacore.com>
4564
4565 * configure: Rebuild.
4566 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4567 in AC_CONFIG_FILES invocation.
4568 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4569 invocation.
4570
fec4e896
CB
45712019-10-16 Christian Biesinger <cbiesinger@google.com>
4572
4573 * server.c: Include xml-builtin.h.
4574 (get_xml_features): Don't declare xml_builtins here.
4575
00975ff6
AB
45762019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4577
4578 * Makefile.in: Remove references to vec-ipa.o.
4579
0dc32745
AB
45802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4581
4582 * Makefile.in: Remove references to vec.c.
4583
3e6ec53a
CB
45842019-10-02 Christian Biesinger <cbiesinger@google.com>
4585
4586 * server.c (server_waiting): Change to bool.
4587 (extended_protocol): Likewise.
4588 (response_needed): Likewise.
4589 (exit_requested): Likewise.
4590 (run_once): Likewise.
4591 (report_no_resumed): Likewise.
4592 (non_stop): Likewise.
4593 (disable_packet_vCont): Likewise.
4594 (disable_packet_Tthread): Likewise.
4595 (disable_packet_qC): Likewise.
4596 (disable_packet_qfThreadInfo): Likewise.
4597 (handle_general_set): Update.
4598 (handle_detach): Update.
4599 (handle_monitor_command): Update.
4600 (handle_query): Update.
4601 (captured_main): Update.
4602 (process_serial_event): Update.
4603 * server.h (server_waiting): Change to bool.
4604 (disable_packet_vCont): Likewise.
4605 (disable_packet_Tthread): Likewise.
4606 (disable_packet_qC): Likewise.
4607 (disable_packet_qfThreadInfo): Likewise.
4608 (run_once): Likewise.
4609 (non_stop): Likewise.
4610 * target.c (target_stop_and_wait): Update.
4611
80fd2826
TT
46122019-10-02 Tom Tromey <tromey@adacore.com>
4613
4614 * Makefile.in (SFILES): Add common-inferior.c.
4615 (OBS): Add common-inferior.o.
4616 * server.c (startup_with_shell): Don't define.
4617
46f29a9a
AB
46182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4619
4620 * linux-low.c (linux_low_read_btrace): Update for change to
4621 std::vector.
4622
f9d949fb
CB
46232019-09-20 Christian Biesinger <cbiesinger@google.com>
4624
4625 * debug.c (debug_threads): Remove comment in favor of the header.
4626 * debug.h (using_threads): Add declaration.
4627 (debug_threads): Add comment.
4628 * linux-aarch64-low.c: Include debug.h and remove declaration of
4629 debug_threads.
4630 * nto-low.c: Likewise.
4631 * remote-utils.c: Likewise.
4632 * thread-db.c: Likewise.
4633
abf516c6
UW
46342019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4635
4636 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4637 and powerpc-cell64l-ipa.o.
4638 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4639 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4640 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4641 (spu*-*-*): Remove.
4642
4643 * spu-low.c: Remove file.
4644
4645 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4646 (parse_spufs_run): Remove.
4647 (ppc_get_pc): Remove Cell/B.E. support.
4648 (ppc_set_pc): Likewise.
4649 (ppc_breakpoint_at): Likewise.
4650 (ppc_arch_setup): Likewise.
4651 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4652 tdesc_powerpc_cell32l.
4653 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4654 or init_registers_powerpc_cell32l.
4655 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4656 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4657 or init_registers_powerpc_cell32l.
4658 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4659 (init_registers_powerpc_cell32l): Remove prototype.
4660 (init_registers_powerpc_cell64l): Likewise.
4661
4662 * target.h (struct target_ops): Remove qxfer_spu member.
4663 * server.c (handle_qxfer_spu): Remove.
4664 (qxfer_packets): Remove entry for "spu".
4665 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4666 * linux-low.c (SPUFS_MAGIC): Remove.
4667 (spu_enumerate_spu_ids): Remove.
4668 (linux_qxfer_spu): Remove.
4669 (linux_target_ops): Remove qxfer_spu member.
4670 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4671 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4672 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4673
2d41fa11
SDJ
46742019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4675
4676 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4677 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4678 * config.in: Regenerate.
4679 * configure: Regenerate.
4680
d59b55f0
TT
46812019-08-15 Tom Tromey <tromey@adacore.com>
4682
4683 * target.c (target_write_memory): Use gdb::byte_vector.
4684
4196ab2a
TT
46852019-08-15 Tom Tromey <tromey@adacore.com>
4686
4687 * tracepoint.c (write_inferior_data_pointer)
4688 (write_inferior_integer, write_inferior_int8)
4689 (write_inferior_uinteger, m_tracepoint_action_download)
4690 (r_tracepoint_action_download, x_tracepoint_action_download)
4691 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4692 (download_agent_expr, download_tracepoint_1)
4693 (download_trace_state_variables, upload_fast_traceframes): Update.
4694 * server.c (gdb_write_memory): Update.
4695 * remote-utils.c (relocate_instruction): Update.
4696 * proc-service.c (ps_pdwrite): Update.
4697 * mem-break.c (remove_memory_breakpoint)
4698 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4699 (uninsert_fast_tracepoint_jumps_at)
4700 (reinsert_fast_tracepoint_jumps_at): Update.
4701 * linux-x86-low.c (append_insns)
4702 (i386_install_fast_tracepoint_jump_pad)
4703 (amd64_write_goto_address, i386_write_goto_address): Update.
4704 * linux-s390-low.c (append_insns, s390_write_goto_address):
4705 Update.
4706 * linux-ppc-low.c (ppc_relocate_instruction)
4707 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4708 (ppc_write_goto_address): Update.
4709 * linux-aarch64-low.c (append_insns): Update.
4710 * target.h (struct target_ops): Update.
4711 (write_inferior_memory): Don't declare.
4712 * target.c (target_write_memory): Rename from
4713 write_inferior_memory. Remove old target_write_memory.
4714
c6778d00
TT
47152019-08-15 Tom Tromey <tromey@adacore.com>
4716
4717 * target.c (write_inferior_memory): Use std::vector.
4718
404f2902
FCE
47192019-08-06 Frank Ch. Eigler <fche@redhat.com>
4720
4721 PR build/24886
4722 * configure.ac: Drop enable-libmcheck support.
4723 * configure, config.in: Rebuild.
4724 * acinclude.m4: Don't include it.
4725
4c5aa8e0
AH
47262019-07-19 Alan Hayward <alan.hayward@arm.com>
4727
4728 * configure.srv: Remove Arm xml files.
4729
7cc17433
AH
47302019-07-19 Alan Hayward <alan.hayward@arm.com>
4731
4732 * configure.srv: Add new files. Remove xml generated files.
4733 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4734 registers.
4735 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4736 * linux-aarch32-tdesc.c: New file.
4737 * linux-aarch32-tdesc.h: New file.
4738 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4739 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4740 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4741 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4742 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4743 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4744 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4745 (arm_read_description): Call arm_linux_read_description.
4746 (initialize_low_arch): Don't init registers.
4747 * linux-arm-tdesc.c: New file.
4748 * linux-arm-tdesc.h: New file.
4749
166a82be
AH
47502019-07-10 Alan Hayward <alan.hayward@arm.com>
4751
4752 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4753 Move counter inside for.
4754 (arm_read_description): Check ptrace earlier.
4755 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4756
268a13a5
TT
47572019-07-09 Tom Tromey <tom@tromey.com>
4758
4759 * configure: Rebuild.
4760 * configure.ac: Change common to gdbsupport.
4761 * acinclude.m4: Change common to gdbsupport.
4762 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4763 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4764 common to gdbsupport.
4765 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4766 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4767 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4768 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4769 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4770 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4771 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4772 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4773 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4774 common to gdbsupport.
4775
350fab54
AH
47762019-07-04 Alan Hayward <alan.hayward@arm.com>
4777
4778 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4779 defines.
4780 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4781
2b40fda7
AH
47822019-07-04 Alan Hayward <alan.hayward@arm.com>
4783
4784 * configure.srv: Remove legacy xml.
4785 * linux-aarch64-low.c (initialize_low_arch): Remove
4786 initialize_low_tdesc call.
4787 * linux-aarch64-tdesc-selftest.c: Remove file.
4788 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4789 * linux-x86-low.c (initialize_low_arch): Remove
4790 initialize_low_tdesc call.
4791 * linux-x86-tdesc-selftest.c: Remove file.
4792 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4793
7d10623d
TV
47942019-06-20 Tom de Vries <tdevries@suse.de>
4795
4796 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4797 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4798
8d6a48df
TV
47992019-06-19 Tom de Vries <tdevries@suse.de>
4800
4801 * debug.h (debug_write): Change return type to ssize_t.
4802 * debug.c (debug_write): Same.
4803
73cc7272
TT
48042019-06-14 Tom Tromey <tom@tromey.com>
4805
4806 * configure.ac: Use new path to gnulib.
4807 * configure: Rebuild.
4808 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4809 to gnulib.
4810
08f10e02
TT
48112019-06-11 Tom Tromey <tom@tromey.com>
4812
4813 * Makefile.in (SFILES): Add alloc.c.
4814 (OBS): Add alloc.o.
4815 (IPA_OBJS): Add alloc-ipa.o.
4816 (alloc-ipa.o): New target.
4817 (%.o: ../%.c): New pattern rule.
4818
422186a9
TT
48192019-06-10 Tom Tromey <tromey@adacore.com>
4820
4821 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4822 end warning with a newline.
4823 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4824 newline.
4825 * thread-db.c (attach_thread): Don't end warning with a newline.
4826 (thread_db_notice_clone): Likewise.
4827 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4828 newline.
4829 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4830 end warning with a newline.
4831
b02f78f9
PA
48322019-06-04 Pedro Alves <palves@redhat.com>
4833
4834 * server.c (captured_main): Use make_unique_xstrdup.
4835
88ed7edb
TT
48362019-06-02 Tom Tromey <tom@tromey.com>
4837
4838 * gdbreplay.c (fromhex): Remove.
4839 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4840
33a6bc35
TT
48412019-05-29 Tom Tromey <tromey@adacore.com>
4842
4843 * configure: Rebuild.
4844
e90a813d
KB
48452019-05-06 Kevin Buettner <kevinb@redhat.com>
4846
4847 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4848 sign extension code on 32-bit builds.
4849
353ea2d1
EZ
48502019-05-03 Eli Zaretskii <eliz@gnu.org>
4851
4852 * remote-utils.c:
4853 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4854
b494cdff
TT
48552019-04-19 Tom Tromey <tom@tromey.com>
4856
4857 * server.c (struct vstop_notif): Derive from notif_event.
4858 <base>: Remove.
4859 (queue_stop_reply): Update.
4860 (remove_all_on_match_ptid): Change type. Rewrite.
4861 (discard_queued_stop_replies): Rewrite.
4862 (in_queued_stop_replies_ptid): Change type.
4863 (in_queued_stop_replies): Rewrite.
4864 (notif_stop): Update.
4865 (queue_stop_reply_callback): Update.
4866 (captured_main): Don't call initialize_notif.
4867 (push_stop_notification): Update.
4868 * notif.c (notif_write_event, handle_notif_ack)
4869 (notif_event_enque, notif_push): Update.
4870 (notif_event_xfree, initialize_notif): Remove.
4871 * notif.h (struct notif_event): Include <list>, not
4872 "common/queue.h".
4873 (struct notif_server) <queue>: Now a std::list.
4874 (notif_event_p): Remove typedef.
4875 (initialize_notif): Don't declare.
4876 (struct notif_event): Add virtual destructor.
4877
a7e559cc
AH
48782019-04-17 Alan Hayward <alan.hayward@arm.com>
4879
4880 * ax.c (ax_vdebug): Call debug_printf.
4881 * debug.c (debug_write): New function.
4882 * debug.h (debug_write): New declaration.
4883 * linux-low.c (sigchld_handler): Call debug_write.
4884
aeb2e706
AH
48852019-04-17 Alan Hayward <alan.hayward@arm.com>
4886
4887 * debug.c (debug_set_output): New function.
4888 (debug_vprintf): Send output to debug_file.
4889 (debug_flush): Likewise.
4890 * debug.h (debug_set_output): New declaration.
4891 * server.c (handle_monitor_command): Add debug-file option.
4892 (captured_main): Likewise.
4893
c1bc0935
AH
48942019-04-17 Alan Hayward <alan.hayward@arm.com>
4895
4896 * debug.c (remote_debug): Add definition.
4897 * debug.h (remote_debug): Add declaration.
4898 * hostio.c (remote_debug): Remove declaration.
4899 * remote-utils.c (struct ui_file): Likewise.
4900 (remote_debug): Likewise.
4901 * remote-utils.h (remote_debug): Likewise,
4902 * server.c (remote_debug): Remove definition.
4903
3f52fdbc
KB
49042019-04-10 Kevin Buettner <kevinb@redhat.com>
4905
4906 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4907 when using a 64-bit gdbserver.
4908
b0319eaa
TT
49092019-04-09 Tom Tromey <tromey@adacore.com>
4910
4911 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4912
eedc3f4f
TT
49132019-04-08 Tom Tromey <tom@tromey.com>
4914
4915 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4916 throw.
4917 (linux_resume_one_lwp): Likewise.
4918
230d2906
TT
49192019-04-08 Tom Tromey <tom@tromey.com>
4920
4921 * gdbreplay.c: Update.
4922 * linux-low.c: Update.
4923 * server.c: Update.
4924
a70b8144
TT
49252019-04-08 Tom Tromey <tom@tromey.com>
4926
4927 * server.c: Use C++ exception handling.
4928 * linux-low.c: Use C++ exception handling.
4929 * gdbreplay.c: Use C++ exception handling.
4930
3d6e9d23
TT
49312019-04-08 Tom Tromey <tom@tromey.com>
4932
4933 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4934 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4935 (captured_main, main): Update.
4936 * gdbreplay.c (main): Update.
4937
0570503d
PFC
49382019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4939
4940 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4941 value in argument pointer, return 1 if the entry is found and 0
4942 otherwise. Move comment.
4943 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4944 * linux-low.h (linux_get_auxv): Declare.
4945 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4946
227a9e65
TT
49472019-04-05 Tom Tromey <tromey@adacore.com>
4948
4949 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4950 variables.
4951
69f4c9cc
AH
49522019-03-28 Alan Hayward <alan.hayward@arm.com>
4953
4954 * linux-low.c (AT_HWCAP2): Add define if not already included.
4955
974c89e0
AH
49562019-03-26 Alan Hayward <alan.hayward@arm.com>
4957
4958 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4959 (aarch64_arch_setup): Call linux_get_hwcap.
4960 * linux-arm-low.c (arm_get_hwcap): Remove function.
4961 (arm_read_description): Call linux_get_hwcap.
4962 * linux-low.c (linux_get_auxv): New function.
4963 (linux_get_hwcap): Likewise.
4964 (linux_get_hwcap2): Likewise.
4965 * linux-low.h (linux_get_hwcap): New declaration.
4966 (linux_get_hwcap2): Likewise.
4967 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4968 (ppc_arch_setup): Call linux_get_hwcap.
4969 * linux-s390-low.c (s390_get_hwcap): Remove function.
4970 (s390_arch_setup): Call linux_get_hwcap.
4971
1ef53e6b
AH
49722019-03-22 Alan Hayward <alan.hayward@arm.com>
4973 Jiong Wang <jiong.wang@arm.com>
4974
4975 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4976 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4977 to fail.
4978 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4979
ee4fbcfa
AH
49802019-03-22 Alan Hayward <alan.hayward@arm.com>
4981 Jiong Wang <jiong.wang@arm.com>
4982
4983 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4984 (aarch64_get_hwcap): New function.
4985 (aarch64_arch_setup): Read APIA hwcap.
4986
6dc0ebde
AH
49872019-03-22 Alan Hayward <alan.hayward@arm.com>
4988 Jiong Wang <jiong.wang@arm.com>
4989
4990 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4991 (initialize_low_tracepoint): Likewise.
4992 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4993 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4994 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4995 (aarch64_linux_read_description): Likewise.
4996 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4997
1163a4b7
JB
49982019-03-12 John Baldwin <jhb@FreeBSD.org>
4999
5000 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5001 i386_create_target_description for 'segments' parameter.
5002 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5003 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5004 * win32-i386-low.c (i386_arch_setup): Likewise.
5005
d3a70e03
TT
50062019-03-12 Tom Tromey <tromey@adacore.com>
5007
5008 * linux-low.c (iterate_over_lwps): Update.
5009
37991b4f
TT
50102019-03-06 Tom Tromey <tom@tromey.com>
5011
5012 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5013 (captured_main): Use SCOPE_EXIT.
5014
45950eb6
SDJ
50152019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5016
5017 * configure.srv: Use '$enable_unittest' instead of '$development'
5018 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5019 case.
5020
43ac54fc
TT
50212019-02-27 Tom Tromey <tromey@adacore.com>
5022
5023 * gdbreplay.c (logchar): Handle \r\n.
5024
df0da8a2
AH
50252019-02-07 Alan Hayward <alan.hayward@arm.com>
5026
5027 * linux-low.c (linux_attach): Add process before lwp.
5028 * server.c (attach_inferior): Check if already attached.
5029
1a5c2598
TT
50302019-02-07 Tom Tromey <tom@tromey.com>
5031
5032 * x86-tdesc.h: Rename include guard.
5033 * x86-low.h: Add include guard.
5034 * wincecompat.h: Rename include guard.
5035 * win32-low.h: Add include guard.
5036 * utils.h: Rename include guard.
5037 * tracepoint.h: Rename include guard.
5038 * tdesc.h: Rename include guard.
5039 * target.h: Rename include guard.
5040 * server.h: Rename include guard.
5041 * remote-utils.h: Rename include guard.
5042 * regcache.h: Rename include guard.
5043 * nto-low.h: Rename include guard.
5044 * notif.h: Add include guard.
5045 * mem-break.h: Rename include guard.
5046 * lynx-low.h: Add include guard.
5047 * linux-x86-tdesc.h: Add include guard.
5048 * linux-s390-tdesc.h: Add include guard.
5049 * linux-ppc-tdesc-init.h: Add include guard.
5050 * linux-low.h: Add include guard.
5051 * linux-aarch64-tdesc.h: Add include guard.
5052 * linux-aarch32-low.h: Add include guard.
5053 * inferiors.h: Rename include guard.
5054 * i387-fp.h: Rename include guard.
5055 * hostio.h: Rename include guard.
5056 * gdbthread.h: Rename include guard.
5057 * gdb_proc_service.h: Rename include guard.
5058 * event-loop.h: Rename include guard.
5059 * dll.h: Rename include guard.
5060 * debug.h: Rename include guard.
5061 * ax.h: Rename include guard.
5062
956cc47c
SN
50632018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5064
5065 PR gdb/23985
5066 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5067 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5068
a0707f3c
TT
50692019-01-25 Tom Tromey <tom@tromey.com>
5070
5071 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5072
0747795c
TT
50732019-01-25 Tom Tromey <tom@tromey.com>
5074
5075 * win32-low.c: Fix common/ includes.
5076 * win32-i386-low.c: Fix common/ includes.
5077 * tracepoint.c: Fix common/ includes.
5078 * thread-db.c: Fix common/ includes.
5079 * target.h: Fix common/ includes.
5080 * symbol.c: Fix common/ includes.
5081 * spu-low.c: Fix common/ includes.
5082 * server.h: Fix common/ includes.
5083 * server.c: Fix common/ includes.
5084 * remote-utils.c: Fix common/ includes.
5085 * regcache.h: Fix common/ includes.
5086 * regcache.c: Fix common/ includes.
5087 * nto-x86-low.c: Fix common/ includes.
5088 * notif.h: Fix common/ includes.
5089 * mem-break.h: Fix common/ includes.
5090 * lynx-low.c: Fix common/ includes.
5091 * lynx-i386-low.c: Fix common/ includes.
5092 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5093 * linux-x86-low.c: Fix common/ includes.
5094 * linux-low.c: Fix common/ includes.
5095 * inferiors.h: Fix common/ includes.
5096 * i387-fp.c: Fix common/ includes.
5097 * hostio.c: Fix common/ includes.
5098 * hostio-errno.c: Fix common/ includes.
5099 * gdbthread.h: Fix common/ includes.
5100 * gdbreplay.c: Fix common/ includes.
5101 * fork-child.c: Fix common/ includes.
5102 * event-loop.c: Fix common/ includes.
5103 * ax.c:
5104 (enum gdb_agent_op): Fix common/ includes.
5105
be6d4f74
TT
51062019-01-21 Tom Tromey <tom@tromey.com>
5107
5108 * tracepoint.c: Fix includes.
5109 * remote-utils.c: Fix includes.
5110 * linux-x86-low.c: Fix includes.
5111
66d91b39
JB
51122019-01-01 Joel Brobecker <brobecker@adacore.com>
5113
5114 * gdbreplay.c (gdbreplay_version): Update copyright year in
5115 version message.
5116 * server.c (gdbserver_version): Likewise.
5117
754e3168
AH
51182018-12-05 Alan Hayward <alan.hayward@arm.com>
5119
5120 * linux-low.c (add_lwp): Switch ordering.
5121
d105de22
TT
51222018-11-29 Tom Tromey <tom@tromey.com>
5123
5124 * win32-low.c (win32_join): Take pid, not process.
5125 * target.h (struct target_ops) <join>: Change argument type.
5126 (join_inferior): Change argument name.
5127 * spu-low.c (spu_join): Take pid, not process.
5128 * server.c (handle_detach): Preserve pid before destroying
5129 process.
5130 * lynx-low.c (lynx_join): Take pid, not process.
5131 * linux-low.c (linux_join): Take pid, not process.
5132
50138245
AH
51332018-11-23 Alan Hayward <alan.hayward@arm.com>
5134
5135 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5136 (aarch64_cannot_fetch_register): Likewise.
5137 (struct linux_target_ops): Update references.
5138
64f57f3d
PFC
51392018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5140
5141 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5142
8d619c01
EBM
51432018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5144
5145 * configure.srv (ipa_ppc_linux_regobj): Add
5146 powerpc-isa207-htm-vsx32l-ipa.o and
5147 powerpc-isa207-htm-vsx64l-ipa.o.
5148 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5149 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5150 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5151 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5152 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5153 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5154 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5155 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5156 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5157 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5158 (init_registers_powerpc_isa207_htm_vsx32l)
5159 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5160 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5161 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5162 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5163 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5164 (ppc_store_tm_ctarregset): New functions.
5165 (ppc_regsets): Add entries for HTM regsets.
5166 (ppc_arch_setup): Set htm in features struct when needed. Set
5167 sizes for the HTM regsets.
5168 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5169 (initialize_low_arch): Call
5170 init_registers_powerpc_isa207_htm_vsx32l and
5171 init_registers_powerpc_isa207_htm_vsx64l.
5172 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5173 PPC_TDESC_ISA207_HTM_VSX.
5174 (initialize_low_tracepoint): Call
5175 init_registers_powerpc_isa207_htm_vsx32l and
5176 init_registers_powerpc_isa207_htm_vsx64l.
5177
232bfb86
EBM
51782018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5179
5180 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5181 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5182 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5183 (ppc_store_pmuregset): New functions.
5184 (ppc_regsets): Add entries for ebb and pmu regsets.
5185 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5186 pmu regsets are available. Set sizes for these regsets.
5187
f2cf6173
EBM
51882018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5189
5190 * configure.srv (ipa_ppc_linux_regobj): Add
5191 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5192 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5193 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5194 rs6000/powerpc-isa207-vsx32l.xml, and
5195 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5196 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5197 <PPC_TDESC_ISA207_VSX>: New enum value.
5198 (init_registers_powerpc_isa207_vsx32l): Declare.
5199 (init_registers_powerpc_isa207_vsx64l): Declare.
5200 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5201 (ppc_store_tarregset): New function.
5202 (ppc_regsets): Add entry for the TAR regset.
5203 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5204 size for the TAR regsets.
5205 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5206 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5207 and init_registers_powerpc_isa207_vsx64l.
5208 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5209 (initialize_low_tracepoint): Call
5210 init_registers_powerpc_isa207_vsx32l and
5211 init_registers_powerpc_isa207_vsx64l.
5212
7ca18ed6
EBM
52132018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5214 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5215
5216 * configure.srv (ipa_ppc_linux_regobj): Add
5217 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5218 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5219 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5220 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5221 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5222 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5223 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5224 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5225 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5226 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5227 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5228 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5229 (ppc_hwcap): Add comment.
5230 (ppc_hwcap2): New global.
5231 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5232 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5233 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5234 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5235 when needed. Set sizes for the the DSCR and PPR regsets.
5236 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5237 (initialize_low_arch): Call
5238 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5239 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5240 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5241 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5242 (initialize_low_tracepoint): Call
5243 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5244 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5245
5c849b22
PFC
52462018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5247
5248 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5249
8ecfd7bd
SDJ
52502018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5251 Simon Marchi <simark@simark.ca>
5252
5253 * acinclude.m4: Include "../selftest.m4".
5254 * configure: Regenerate.
5255 * configure.ac: Use "GDB_AC_SELFTEST".
5256 * configure.srv: Use "$enable_unittests" instead of
5257 "$development" when checking whether unit tests have been
5258 enabled.
5259 * server.c (captured_main): Update message informing that
5260 selftests have been disabled.
5261
96643e35
TT
52622018-10-04 Tom Tromey <tom@tromey.com>
5263
5264 * configure: Rebuild.
5265
da4ae14a
TT
52662018-10-04 Tom Tromey <tom@tromey.com>
5267
5268 * server.c (handle_status): Rename inner "thread".
5269 (process_serial_event): Declare "res" in 'm' case.
5270 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5271 (iterate_over_lwps): Rename inner "thread".
5272 (linux_qxfer_libraries_svr4): Rename inner "len".
5273 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5274
7c619dbd
GB
52752018-10-01 Gary Benson <gbenson@redhat.com>
5276
5277 * gdb_proc_service.h: Moved common code to
5278 common/gdb_proc_service.h.
5279
3795e814
GB
52802018-10-01 Gary Benson <gbenson@redhat.com>
5281
5282 * gdb_proc_service.h: Synchronize comments and whitespace with
5283 GDB's version of this file.
5284
49b036f1
TT
52852018-09-25 Tom Tromey <tom@tromey.com>
5286
5287 * configure: Rebuild.
5288 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5289
8ff03f0b
SM
52902018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5291
5292 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5293 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5294 ($(IPA_LIB)): Sort IPA_OBJS.
5295
a1cd91dc
SM
52962018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * Makefile.in: Remove references to $(ADD_DEPS).
5299
752312ba
TT
53002018-09-16 Tom Tromey <tom@tromey.com>
5301
5302 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5303 variables.
5304 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5305 variables.
5306
f1628857
TT
53072018-09-05 Tom Tromey <tom@tromey.com>
5308
5309 * configure: Rebuild.
5310
ad202fcc
SM
53112018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 PR build/23399
5314 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5315
d3d8724a
TT
53162018-08-27 Tom Tromey <tom@tromey.com>
5317
5318 PR build/23087:
5319 * configure: Rebuild.
5320
b4f183d2
TT
53212018-08-27 Tom Tromey <tom@tromey.com>
5322
5323 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5324 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5325 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5326 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5327 (s390x_emit_stack_adjust): Add casts to unsigned char.
5328
4e2aa472
SM
53292018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5330
5331 PR gdb/23374
5332 PR gdb/23375
5333 * server.h (struct client_state) <disable_randomization>:
5334 Initialize to 1.
5335
cf4088a9
SM
53362018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5337
5338 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5339 variable.
5340 (mips_supply_ptrace_register): Likewise.
5341
a0de763e
TT
53422018-07-22 Tom Tromey <tom@tromey.com>
5343
5344 * configure: Rebuild.
5345
b0a7723d
TT
53462018-07-22 Tom Tromey <tom@tromey.com>
5347
5348 * win32-low.c (win32_create_inferior): Remove unused variables.
5349 * gdbreplay.c (remote_open): Remove unused variable.
5350 * remote-utils.c (remote_prepare): Remove unused variable.
5351 * x86-tdesc.h (X86_TDESC_H): Define.
5352 (amd64_expedite_regs): Define conditionally.
5353 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5354 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5355 * remote-utils.c (readchar): Remove unused variable.
5356
a780ef4f
PA
53572018-07-13 Pedro Alves <palves@redhat.com>
5358
5359 * linux-low.c (linux_kill): Change parameter to process_info
5360 pointer instead of pid. Adjust.
5361 * lynx-low.c (lynx_kill): Likewise.
5362 * nto-low.c (nto_kill): Likewise.
5363 * spu-low.c (spu_kill): Likewise.
5364 * win32-low.c (win32_kill): Likewise.
5365 * server.c (handle_v_kill, kill_inferior_callback)
5366 (detach_or_kill_for_exit): Adjust.
5367 * target.c (kill_inferior): Change parameter to process_info
5368 pointer instead of pid. Adjust.
5369 * target.h (struct target_ops) <kill>: Change parameter to
5370 process_info pointer instead of pid. Adjust all implementations
5371 and callers.
5372 (kill_inferior): Likewise.
5373
ef2ddb33
PA
53742018-07-13 Pedro Alves <palves@redhat.com>
5375
5376 * linux-low.c (linux_detach, linux_join): Change parameter to
5377 process_info pointer instead of pid. Adjust.
5378 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5379 * nto-low.c (nto_detach): Likewise.
5380 * spu-low.c (spu_detach, spu_join): Likewise.
5381 * win32-low.c (win32_detach, win32_join): Likewise.
5382 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5383 * target.h (struct target_ops) <detach, join>: Change parameter to
5384 process_info pointer instead of pid. Adjust all implementations
5385 and callers.
5386 (detach_inferior, join_inferior): Rename 'pid' parameter to
5387 'proc'.
5388
c7ab0aef
SDJ
53892018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5390 Jan Kratochvil <jan.kratochvil@redhat.com>
5391 Paul Fertser <fercerpav@gmail.com>
5392 Tsutomu Seki <sekiriki@gmail.com>
5393
5394 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5395 (OBS): Add 'common/netstuff.o'.
5396 (GDBREPLAY_OBS): Likewise.
5397 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5398 (remote_open): Implement support for IPv6
5399 connections.
5400 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5401 and 'wspiapi.h'.
5402 (handle_accept_event): Accept connections from IPv6 sources.
5403 (remote_prepare): Handle IPv6-style hostnames; implement
5404 support for IPv6 connections.
5405 (remote_open): Implement support for printing connections from
5406 IPv6 sources.
5407
31445d10
PA
54082018-07-11 Pedro Alves <palves@redhat.com>
5409
5410 PR gdb/23377
5411 * mem-break.c (any_persistent_commands): Add process_info
5412 parameter and use it instead of relying on the current process.
5413 Change return type to bool.
5414 * mem-break.h (any_persistent_commands): Add process_info
5415 parameter and change return type to bool.
5416 * server.c (handle_detach): Remove require_running_or_return call.
5417 Look up the process_info for the process we're about to detach.
5418 If not found, return back error to GDB. Adjust
5419 any_persistent_commands call to pass down a process pointer.
5420
cb197132
PA
54212018-07-11 Pedro Alves <palves@redhat.com>
5422
5423 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5424 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5425 instead of collect_register_by_name.
5426 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5427 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5428
1b919490
VB
54292018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5430 Pedro Alves <palves@redhat.com>
5431
5432 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5433
d7e15655
TT
54342018-07-03 Tom Tromey <tom@tromey.com>
5435
5436 * linux-low.c: Update.
5437 * lynx-low.c: Update.
5438 * mem-break.c: Update.
5439 * nto-low.c: Update.
5440 * remote-utils.c: Update.
5441 * server.c: Update.
5442 * spu-low.c: Update.
5443 * target.c: Update.
5444 * win32-low.c: Update.
5445
26a57c92
TT
54462018-07-03 Tom Tromey <tom@tromey.com>
5447
5448 * server.c: Update.
5449
0e998d96
TT
54502018-07-03 Tom Tromey <tom@tromey.com>
5451
5452 * linux-low.c: Update.
5453
cc6bcb54
TT
54542018-07-03 Tom Tromey <tom@tromey.com>
5455
5456 * target.c: Update.
5457
e38504b3
TT
54582018-07-03 Tom Tromey <tom@tromey.com>
5459
5460 * linux-low.c: Update.
5461 * linux-mips-low.c: Update.
5462 * lynx-low.c: Update.
5463 * nto-low.c: Update.
5464 * remote-utils.c: Update.
5465 * server.c: Update.
5466 * spu-low.c: Update.
5467 * target.c: Update.
5468 * thread-db.c: Update.
5469
e99b03dc
TT
54702018-07-03 Tom Tromey <tom@tromey.com>
5471
5472 * linux-low.c: Update.
5473 * linux-mips-low.c: Update.
5474 * lynx-low.c: Update.
5475 * mem-break.c: Update.
5476 * nto-low.c: Update.
5477 * remote-utils.c: Update.
5478 * server.c: Update.
5479 * spu-low.c: Update.
5480 * target.c: Update.
5481 * tracepoint.c: Update.
5482
f2907e49
TT
54832018-07-03 Tom Tromey <tom@tromey.com>
5484
5485 * linux-low.c: Update.
5486 * linux-ppc-low.c: Update.
5487 * linux-x86-low.c: Update.
5488 * proc-service.c: Update.
5489 * server.c: Update.
5490 * spu-low.c: Update.
5491 * thread-db.c: Update.
5492 * win32-low.c: Update.
5493
fd79271b
TT
54942018-07-03 Tom Tromey <tom@tromey.com>
5495
5496 * linux-low.c: Update.
5497 * lynx-low.c: Update.
5498 * nto-low.c: Update.
5499 * remote-utils.c: Update.
5500 * spu-low.c: Update.
5501 * thread-db.c: Update.
5502 * win32-low.c: Update.
5503
c0867626
SDJ
55042018-06-29 Joel Brobecker <brobecker@adacore.com>
5505
5506 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5507 parameter in call to 'amd64_create_target_description'.
5508
2512d7ef
JK
55092018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 * x86-tdesc.h: Remove executable permission flag.
5512
d0ac1c44
SM
55132018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5514
5515 * configure.ac: Remove AC_PREREQ, add missing quoting.
5516 * configure: Re-generate.
5517 * config.in: Re-generate.
5518 * aclocal.m4: Re-generate.
5519
c4eb05ff
SM
55202018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5521
5522 * tracepoint.h (current_traceframe): Remove declaration.
5523
02895270
AH
55242018-06-18 Alan Hayward <alan.hayward@arm.com>
5525
5526 * linux-aarch64-low.c (is_sve_tdesc): New function.
5527 (aarch64_sve_regs_copy_to_regcache): Likewise.
5528 (aarch64_sve_regs_copy_from_regcache): Likewise.
5529 (aarch64_regs_info): Add SVE checks.
5530 (initialize_low_arch): Initialize SVE.
5531
e9902bfc
AH
55322018-06-18 Alan Hayward <alan.hayward@arm.com>
5533
5534 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5535
fefa175e
AH
55362018-06-11 Alan Hayward <alan.hayward@arm.com>
5537
5538 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5539 (initialize_low_tracepoint): Likewise
5540 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5541 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5542 param.
5543 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5544 checks.
5545 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5546
b91ad3ff
AH
55472018-06-11 Alan Hayward <alan.hayward@arm.com>
5548
5549 * server.h (PBUFSIZ): Increase size
5550
f868386e
AH
55512018-06-11 Alan Hayward <alan.hayward@arm.com>
5552
5553 * regcache.c (regcache::raw_compare): New function.
5554 * regcache.h (regcache::raw_compare): New declaration.
5555
9c861883
AH
55562018-06-11 Alan Hayward <alan.hayward@arm.com>
5557
5558 * regcache.c (new_register_cache): Use new.
5559 (free_register_cache): Use delete.
5560 (register_data): Use const.
5561 (supply_register): Move body inside regcache.
5562 (regcache::raw_supply): New override function.
5563 (collect_register): Move body inside regcache.
5564 (regcache::raw_collect): New override function.
5565 (regcache::get_register_status): New override function.
5566 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5567
40591844
TT
55682018-06-09 Tom Tromey <tom@tromey.com>
5569
5570 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5571 declare queue.
5572 (event_queue): Use std::queue.
5573 (gdb_event_xfree): Remove.
5574 (initialize_event_loop, process_event, wait_for_event): Update.
5575
6341380d
SC
55762018-06-08 Stan Cox <scox@redhat.com>
5577
5578 * win32-low.c (win32_create_inferior): last_ptid and last_status
5579 moved to client_state.
5580
03349c93
PA
55812018-06-08 Pedro Alves <palves@redhat.com>
5582
5583 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5584 common/common-exceptions.o, common/common-utils.o,
5585 common/errors.o, common/print-utils.o and utils.o.
5586 * gdbreplay.c: Include "common-defs.h" instead of the two
5587 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5588 string.h or alloca.h.
5589 (perror_with_name): Delete.
5590 (remote_open): Use xstrdup instead of strdup.
5591 (main): Rename to ...
5592 (captured_main): ... this.
5593 (main): New.
5594
8dcc53b3
TT
55952018-06-08 Tom Tromey <tom@tromey.com>
5596
5597 * linux-low.c (linux_low_read_btrace): Update.
5598
c12a5089
SC
55992018-06-04 Stan Cox <scox@redhat.com>
5600
5601 * server.h (struct client_state): New.
5602 * server.c (cont_thread, general_thread, multi_process)
5603 (report_fork_events, report_vfork_events, report_exec_events)
5604 (report_thread_events, swbreak_feature, hwbreak_feature)
5605 (vCont_supported, disable_randomization, pass_signals)
5606 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5607 Moved to client_state.
5608 * remote-utils.c (remote_debug, noack_mode)
5609 (transport_is_reliable): Moved to client_state.
5610 * tracepoint.c (current_traceframe): Moved to client_state.
5611
5612 Update all callers.
5613 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5614 linux-low.c, remote-utils.h, target.c: Use client_state.
5615
122394f1
AH
56162018-05-31 Alan Hayward <alan.hayward@arm.com>
5617
5618 * configure.srv: Add new c/h file.
5619
95228a0d
AH
56202018-05-31 Alan Hayward <alan.hayward@arm.com>
5621
5622 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5623 null VQ.
5624
d8dab6c3
MR
56252018-05-25 Maciej W. Rozycki <macro@mips.com>
5626
5627 * gdb.arch/mips-fpregset-core.exp: New test.
5628 * gdb.arch/mips-fpregset-core.c: New test source.
5629
81e25b7c
EK
56302018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5631
5632 PR server/23198
5633 * hostio.c (require_int): Do not report overflow for integers
5634 between 0xfffffff and 0x7fffffff.
5635
7e947ad3
MR
56362018-05-22 Maciej W. Rozycki <macro@mips.com>
5637
5638 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5639 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5640 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5641 functions.
5642 (the_low_target): Wire them.
5643
1d75a658
PFC
56442018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5645
5646 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5647 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5648 mode. Call collect_register_by_name with vscr using
5649 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5650 (ppc_store_vrregset): Add and set vscr_offset variable as in
5651 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5652 vscr_offset.
5653
d078308a
PFC
56542018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5655
5656 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5657 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5658 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5659
7273b5fc
PFC
56602018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5661
5662 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5663 (ppc_store_vsxregset): Likewise.
5664 (ppc_fill_vrregset): Likewise.
5665 (ppc_store_vrregset): Likewise.
5666 (ppc_fill_evrregset): Likewise.
5667 (ppc_store_evrregset): Likewise.
5668 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5669 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5670 needed.
5671
2e077f5e
PFC
56722018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5673
5674 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5675 wordsize of the inferior. Call ppc_linux_target_wordsize.
5676
bd64614e
PFC
56772018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5678
5679 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5680 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5681 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5682 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5683 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5684 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5685 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5686 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5687 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5688 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5689 (tdesc_powerpc_e500l): Remove.
5690 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5691 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5692 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5693 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5694 linux-ppc-tdesc.h.
5695 (ppc_arch_setup): Remove target description matching code. Fill a
5696 ppc_linux_features struct and call ppc_linux_match_description
5697 with it.
5698
75d74cca
MR
56992018-05-22 Maciej W. Rozycki <macro@mips.com>
5700
5701 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5702 width of the requested register exceeds the width of the
5703 `ptrace' data type.
5704 (mips_cannot_store_register): Likewise.
5705
e4439e43
MR
57062018-05-21 Maciej W. Rozycki <macro@mips.com>
5707
5708 * linux-mips-low.c (mips_fetch_register): New function. Update
5709 preceding comment.
5710 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5711 (the_low_target): Wire `mips_fetch_register'.
5712
55271bf9
JB
57132018-05-10 Joel Brobecker <brobecker@adacore.com>
5714
5715 * lynx-i386-low.c (LYNXOS_178): New macro.
5716 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5717 the layout on LynxOS-178.
5718 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5719 handle floating point registers that are not supported by
5720 LynxOS-178.
5721
1a34f210
TT
57222018-05-10 Tom Tromey <tom@tromey.com>
5723
5724 * configure: Rebuild.
5725
190852c8
JB
57262018-05-10 Joel Brobecker <brobecker@adacore.com>
5727
5728 PR server/23158:
5729 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5730 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5731 Use it to set the expedite_regs field in the given tdesc.
5732 * x86-tdesc.h: New file.
5733 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5734 Adjust following the addition of the new expedite_regs parameter
5735 to init_target_desc.
5736 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5737 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5738 (i386_linux_read_description, amd64_linux_read_description):
5739 Adjust following the addition of the new expedite_regs parameter
5740 to init_target_desc.
5741 * lynx-i386-low.c: #include "x86-tdesc.h".
5742 (lynx_i386_arch_setup): Adjust following the addition of the new
5743 expedite_regs parameter to init_target_desc.
5744 * nto-x86-low.c: #include "x86-tdesc.h".
5745 (nto_x86_arch_setup): Adjust following the addition of the new
5746 expedite_regs parameter to init_target_desc.
5747 * win32-i386-low.c: #include "x86-tdesc.h".
5748 (i386_arch_setup): Adjust following the addition of the new
5749 expedite_regs parameter to init_target_desc.
5750
7dbac825
JB
57512018-05-10 Joel Brobecker <brobecker@adacore.com>
5752
5753 PR server/23158:
5754 * win32-low.c (win32_create_inferior): Add call to my_wait
5755 setting last_status global.
5756
906994d9
JB
57572018-05-10 Joel Brobecker <brobecker@adacore.com>
5758
5759 PR server/23158:
5760 * win32-low.c (create_process): Only call gdb_tilde_expand if
5761 inferior_cwd is not NULL.
5762
8ee22052
AB
57632018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5766 registers to the cache if their values have changed.
5767 (i387_xsave_to_cache): Provide default values for x87 control
5768 registers when these features are available, but disabled.
5769 * regcache.c (supply_register_by_name_zeroed): New function.
5770 * regcache.h (supply_register_by_name_zeroed): Declare new
5771 function.
5772
aff689d3
TT
57732018-05-07 Tom Tromey <tom@tromey.com>
5774
5775 * configure: Rebuild.
5776
85e26832
TT
57772018-05-04 Tom Tromey <tom@tromey.com>
5778
5779 * configure: Rebuild.
5780
a3b60e45
JK
57812018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 Pedro Alves <palves@redhat.com>
5783
5784 * linux-aarch64-low.c (aarch64_stopped_data_address):
5785 Likewise.
5786
632e107b
TT
57872018-04-27 Tom Tromey <tom@tromey.com>
5788
5789 * configure: Rebuild.
5790
458412c3
TT
57912018-04-23 Tom Tromey <tom@tromey.com>
5792
5793 * configure: Rebuild.
5794
f31c089e
SM
57952018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5796
5797 * Makefile.in (depcomp): Add "..".
5798 (all_deps_files): New and use it.
5799
b319b098
AH
58002018-04-18 Alan Hayward <alan.hayward@arm.com>
5801
5802 * configure.srv (aarch64*-*-linux*): Don't include xml.
5803 (i[34567]86-*-cygwin*): Likewise.
5804 (i[34567]86-*-linux*): Likewise.
5805 (i[34567]86-*-lynxos*): Likewise.
5806 (i[34567]86-*-mingw32ce*): Likewise.
5807 (i[34567]86-*-mingw*): Likewise.
5808 (i[34567]86-*-nto*): Likewise.
5809 (tic6x-*-uclinux): Likewise.
5810 (x86_64-*-linux*): Likewise.
5811 (x86_64-*-mingw*): Likewise.
5812 (x86_64-*-cygwin*): Likewise.
5813
3b74854b
AH
58142018-04-18 Alan Hayward <alan.hayward@arm.com>
5815
5816 * tdesc.c: Remove xml parameter.
5817
e98577a9
AH
58182018-04-18 Alan Hayward <alan.hayward@arm.com>
5819
5820 * server.c (get_features_xml): Remove cast.
5821 * tdesc.c (void target_desc::accept): Fill in function.
5822 (tdesc_get_features_xml): Remove old xml creation.
5823 (print_xml_feature::visit_pre): Add xml vistor.
5824 * tdesc.h (struct target_desc): Make xmltarget mutable.
5825 (tdesc_get_features_xml): Remove declaration.
5826
d278f585
AH
58272018-04-18 Alan Hayward <alan.hayward@arm.com>
5828
5829 * tdesc.c (tdesc_architecture_name): Add new function.
5830 (tdesc_osabi_name): Likewise.
5831 (tdesc_get_features_xml): Use new functions.
5832
eee8a18d
AH
58332018-04-18 Alan Hayward <alan.hayward@arm.com>
5834
5835 * tdesc.c (tdesc_create_flags): Remove.
5836 (tdesc_add_flag): Likewise.
5837 (tdesc_named_type): Likewise.
5838 (tdesc_create_union): Likewise.
5839 (tdesc_create_struct): Likewise.
5840 (tdesc_create_vector): Likewise.
5841 (tdesc_add_bitfield): Likewise.
5842 (tdesc_add_field): Likewise.
5843 (tdesc_set_struct_size): Likewise.
5844
82ec9bc7
AH
58452018-04-18 Alan Hayward <alan.hayward@arm.com>
5846
5847 * tdesc.c (~target_desc): Remove implictly deleted items.
5848 (init_target_desc): Iterate all features.
5849 (tdesc_get_features_xml): Use vector.
5850 (tdesc_create_feature): Create feature.
5851 * tdesc.h (tdesc_feature) Remove
5852 (target_desc): Add features.
5853
ea3e7d71
AH
58542018-04-18 Alan Hayward <alan.hayward@arm.com>
5855
5856 * Makefile.in: Add common/tdesc.c
5857 * tdesc.c (init_target_desc): init all reg_defs from register
5858 vector.
5859 (tdesc_create_reg): Create tdesc_reg.
5860 * tdesc.h (tdesc_feature): Add register vector.
5861
17d08cd4
SM
58622018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5863
5864 * tdesc.h (struct target_desc) <features>: Change type to
5865 std::vector<std::string>.
5866 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5867 changes.
5868 (tdesc_get_features_xml): Likewise.
5869 (tdesc_create_feature): Likewise.
5870
5cd3e386
AH
58712018-03-26 Alan Hayward <alan.hayward@arm.com>
5872
5873 * regcache.c (find_register_by_number): Return a ref.
5874 (find_regno): Use references.
5875 (register_size): Likewise.
5876 (register_data): Likewise.
5877 * tdesc.c (target_desc::~target_desc): Remove free calls.
5878 (target_desc::operator==): Use std::vector compare.
5879 (init_target_desc): Use reference.
5880 (tdesc_create_reg): Use reg constructors.
5881 * tdesc.h (struct target_desc): Replace pointer with object.
5882
dff7492c
AH
58832018-03-23 Alan Hayward <alan.hayward@arm.com>
5884
5885 * regcache.c (find_register_by_number): Make static.
5886 (find_regno): Use find_register_by_number
5887 * regcache.h (struct reg): Remove declaration.
5888
d80e5242
AH
58892018-03-23 Alan Hayward <alan.hayward@arm.com>
5890
5891 * tdesc.c (target_desc::~target_desc): Move to here.
5892 (target_desc::operator==): Likewise.
5893 * tdesc.h (target_desc::~target_desc): Move from here.
5894 (target_desc::operator==): Likewise.
5895
f69c5afb
AA
58962018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5897
5898 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5899
ce29f843
AA
59002018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5901
5902 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5903 S390_TDESC_GS.
5904 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5905 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5906 and init_registers_s390_gs_linux64.
5907
c49bd90b
AA
59082018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5909
5910 * linux-s390-low.c (s390_fill_gs): Remove function.
5911 (s390_fill_gsbc): Remove function.
5912 (s390_regsets): Set fill functions for the guarded storage regsets
5913 to NULL.
5914
7edb9bd3
AA
59152018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5916
5917 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5918 the word size. Add comment.
5919 (s390_get_wordsize): New function.
5920 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5921 pswm with it. Instead, use s390_get_wordsize to determine the
5922 word size first and derive the correct tdesc from that directly.
5923
39be3c7e
SM
59242018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5925
5926 * Makefile.in: Include silent-rules.mk.
5927 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5928 (COMPILE): Add ECHO_CXX.
5929 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5930 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5931 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5932 (version-generated.c): Add ECHO_GEN.
5933 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5934 (IPAGENT_COMPILE): Add ECHO_CXX.
5935 (%-generated.c): Add ECHO_REGDAT.
5936
3ae9ce5d
TT
59372018-03-14 Tom Tromey <tom@tromey.com>
5938
5939 PR cli/14977:
5940 * ax.c (ax_printf): Special case for NULL.
5941
e6a58aa8
SM
59422018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * linux-low.c (linux_qxfer_libraries_svr4): Use
5945 xml_escape_text_append.
5946
f6e8a41e
SM
59472018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5950
b9671caf
SM
59512018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * server.c (handle_general_set): Remove unnecessary xstrdup.
5954
e80aaf61
SM
59552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5956
5957 * server.c (parse_debug_format_options): Adjust to
5958 delim_string_to_char_ptr_vec changes.
5959 * thread-db.c (thread_db_load_search): Adjust to
5960 dirnames_to_char_ptr_vec changes.
5961
b1223e78
MM
59622018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5963
5964 * target.h (target_enable_btrace, target_disable_btrace)
5965 (target_read_btrace, target_read_btrace_conf): Turn macro into
5966 inline function. Throw error if target method is not defined.
5967 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5968 check for btrace target method. Be prepared to handle exceptions
5969 from btrace target methods.
5970
81561546
SDJ
59712018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5972
5973 * server.c (captured_main): Change order of error message printed
5974 when the current working directory cannot be found.
5975
25e3c82c
SDJ
59762018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5977
5978 * server.c: Include "filenames.h" and "pathstuff.h".
5979 (program_name): Delete variable.
5980 (program_path): New anonymous class.
5981 (get_exec_wrapper): Use "program_path" instead of
5982 "program_name".
5983 (handle_v_run): Likewise.
5984 (captured_main): Likewise.
5985 (process_serial_event): Likewise.
5986
b4987c95
SDJ
59872018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5988
5989 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5990 (OBJS): Add "pathstuff.o".
5991 * server.c (current_directory): New global variable.
5992 (captured_main): Initialize "current_directory".
5993
f46cd62a
AH
59942018-02-26 Alan Hayward <alan.hayward@arm.com>
5995
5996 * tdesc.c: Use common/tdesc.h.
5997 * tdesc.h: Likewise.
5998
a543c5ca
AH
59992018-02-20 Alan Hayward <alan.hayward@arm.com>
6000 Simon Marchi <simon.marchi@ericsson.com>
6001
6002 * Makefile.in: Switch order of make rules.
6003
b5884fa7
AH
60042018-02-19 Alan Hayward <alan.hayward@arm.com>
6005
6006 * Makefile.in: Add common directory in build.
6007 * configure.ac: Add common reference.
6008 * configure: Regenerate.
6009
de6242d3
MM
60102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6011
6012 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6013 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6014 * spu-low.c (spu_target_ops): Likewise.
6015 * win32-low.c (win32_target_ops): Likewise.
6016 * server.c (supported_btrace_packets): Report packets unconditionally.
6017 * target.h (target_ops) <supports_btrace>: Remove.
6018 (target_supports_btrace): Remove.
6019
9ee23a85
MM
60202018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6021
6022 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6023 (handle_btrace_disable): Change return type to void. Use exceptions
6024 to report errors.
6025 (handle_btrace_general_set): Catch exception and copy message to
6026 return message.
6027
8ce47547
TT
60282018-02-08 Tom Tromey <tom@tromey.com>
6029
6030 * linux-low.c (install_software_single_step_breakpoints): Use
6031 make_scoped_restore.
6032 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6033 (do_restore_current_thread_cleanup): Remove.
6034 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6035 declare.
6036
45dd3607
TT
60372018-02-08 Tom Tromey <tom@tromey.com>
6038
6039 * mem-break.c (set_raw_breakpoint_at): Use
6040 gdb::unique_xmalloc_ptr.
6041
e671cd59
PA
60422018-01-30 Pedro Alves <palves@redhat.com>
6043
6044 PR gdb/13211
6045 * target.c (target_terminal::terminal_state): Rename to ...
6046 (target_terminal::m_terminal_state): ... this.
6047
a0aad537
JC
60482018-01-19 James Clarke <jrtc27@jrtc27.com>
6049
6050 * linux-low.c (handle_extended_wait): Surround call to
6051 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6052
4d9b86e1
SM
60532018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6054
6055 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6056 linux_ptrace_attach_fail_reason_string now returning an
6057 std::string.
6058 (linux_attach): Likewise.
6059 * thread-db.c (attach_thread): Likewise.
6060
f517c180
EA
60612018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6062
6063 PR gdb/21559
6064 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6065 checking for fs_base/gs_base fields in struct user_regs_struct.
6066 * configure: Regenerate.
6067
9a70f35c
YQ
60682018-01-16 Yao Qi <yao.qi@linaro.org>
6069
6070 PR gdb/18749
6071 * linux-low.c (fetch_register): Call supply_register instead of
6072 error.
6073
605fd3c6
YQ
60742018-01-08 Yao Qi <yao.qi@linaro.org>
6075 Simon Marchi <simon.marchi@ericsson.com>
6076
6077 * Makefile.in (OBS): Remove selftest.o.
6078 * configure.ac: Set srv_selftest_objs if $development is true.
6079 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6080 * configure: Re-generated.
6081 * server.c (captured_main): Wrap variable selftest_filter with
6082 GDB_SELF_TEST.
6083
2cc05030
SM
60842018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6085
6086 * server.c (parse_debug_format_options): Return std::string.
6087 (handle_monitor_command, captured_main): Adjust.
6088
e379cee6
PA
60892018-01-05 Pedro Alves <palves@redhat.com>
6090
6091 PR gdb/18653
6092 * server.c (captured_main): Pass quiet=false to
6093 save_original_signals_state.
6094
82e1e79a
JB
60952018-01-01 Joel Brobecker <brobecker@adacore.com>
6096
6097 * gdbreplay.c (gdbreplay_version): Update copyright year in
6098 version message.
6099 * server.c (gdbserver_version): Likewise.
6100
8e481c3b
TT
61012017-12-08 Tom Tromey <tom@tromey.com>
6102
6103 * ax.c (ax_printf): Update.
6104
a8806230
YQ
61052017-12-07 Yao Qi <yao.qi@linaro.org>
6106
6107 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6108 aarch64_linux_read_description.
6109 * linux-amd64-ipa.c (idx2mask): New array.
6110 (get_ipa_tdesc): Move idx2mask out.
6111 (initialize_low_tracepoint): Initialize target descriptions.
6112 * linux-i386-ipa.c (idx2mask): New array.
6113 (get_ipa_tdesc): Move idx2mask out.
6114 (initialize_low_tracepoint): Initialize target descriptions.
6115
d4a0e8b5
SM
61162017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * tdesc.c (struct tdesc_type): Change return type.
6119 (tdesc_add_flag): Change parameter type.
6120 (tdesc_add_bitfield): Likewise.
6121 (tdesc_add_field): Likewise.
6122 (tdesc_set_struct_size): Likewise.
6123
798a7429
SM
61242017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6125
6126 * regcache.c (registers_to_string): Remove unused variable.
6127
c0e15c9b
SM
61282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * inferiors.c (for_each_inferior_with_data): Remove.
6131 * inferiors.h (for_each_inferior_with_data): Remove.
6132 * server.c (handle_qxfer_threads_worker): Change parameter type.
6133 (handle_qxfer_threads_proper): Use for_each_thread.
6134
f0045347
SM
61352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6136
6137 * inferiors.c (for_each_inferior): Remove.
6138 (clear_inferiors): Use for_each_thread.
6139 * inferiors.h (for_each_inferior): Remove.
6140 * linux-low.c (linux_wait_for_event_filtered): Use
6141 for_each_thread.
6142 (linux_stabilize_threads): Likewise.
6143 * regcache.c (regcache_release): Likewise.
6144 * server.c (gdb_wants_all_threads_stopped): Likewise.
6145 (clear_pending_status_callback): Remove.
6146 (handle_status): Use for_each_thread.
6147 (captured_main): Likewise.
6148 * win32-low.c (child_init_thread_list): Likewise.
6149 (win32_clear_inferiors): Likewise.
6150 (fake_breakpoint_event): Likewise.
6151
9521758b
SM
61522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * inferiors.h (find_inferior): Remove.
6155 * inferiors.c (find_inferior): Remove.
6156
8f86d7aa
SM
61572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * linux-low.c (resume_status_pending_p): Update comment.
6160 (need_step_over_p): Update comment.
6161
e2b44075
SM
61622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * linux-low.c (proceed_one_lwp): Return void, change parameter
6165 type.
6166 (unsuspend_and_proceed_one_lwp): Likewise.
6167 (proceed_all_lwps): Use for_each_thread.
6168 (unstop_all_lwps): Likewise.
6169
c80825ff
SM
61702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * linux-low.c (linux_resume_one_thread): Return void, take
6173 parameter directly.
6174 (linux_resume): Use for_each_thread.
6175
df3e4dbe
SM
61762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6177
6178 * linux-low.c (send_sigstop_callback): Return void, change
6179 parameter type. Rename to...
6180 (send_sigstop): ... this.
6181 (suspend_and_send_sigstop_callback): Return void, change parameter
6182 type. Rename to...
6183 (suspend_and_send_sigstop): ... this.
6184 (stop_all_lwps): Use for_each_thread.
6185
5a6b0a41
SM
61862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6187
6188 * linux-low.c (lwp_running): Return bool, remove unused
6189 argument.
6190 (linux_stabilize_threads): Use find_thread.
6191
39a64da5
SM
61922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * linux-low.c (select_singlestep_lwp_callback): Remove.
6195 (count_events_callback): Remove.
6196 (select_event_lwp_callback): Remove.
6197 (select_event_lwp): Use find_thread/for_each_thread.
6198
a1385b7b
SM
61992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * linux-low.c (not_stopped_callback): Return bool, take filter
6202 argument directly.
6203 (linux_wait_for_event_filtered): Use find_thread.
6204 (linux_wait_1): Likewise.
6205
454296a2
SM
62062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * linux-low.c (same_lwp): Remove.
6209 (find_lwp_pid): Use find_thread.
6210
6b2a85da
SM
62112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * linux-low.c (delete_lwp_callback): Remove.
6214 (linux_mourn): Use for_each_thread.
6215
798a38e8
SM
62162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6219 args parameter, don't check for pid.
6220 (linux_detach): Use for_each_thread.
6221
e4eb0dec
SM
62222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6223
6224 * linux-low.c (struct counter): Remove.
6225 (second_thread_of_pid_p): Remove.
6226 (last_thread_of_process_p): Use find_thread.
6227
83e1b6c1
SM
62282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6229
6230 * inferiors.c (find_inferior_in_random): Remove.
6231 * inferiors.h (find_inferior_in_random): Remove.
6232 * linux-low.c (status_pending_p_callback): Return bool, accept
6233 parameter ptid directly.
6234 (linux_wait_for_event_filtered): Use find_thread_in_random.
6235 (linux_wait_1): Likewise.
6236
8dc7b443
SM
62372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * inferiors.c (find_inferior_id): Remove.
6240 (find_thread_ptid): Move implemention from find_inferior_id to
6241 here.
6242 * inferiors.h (find_inferior_id): Remove.
6243 * server.c (handle_status): Use find_thread_ptid.
6244 (process_serial_event): Likewise.
6245 * thread-db.c (find_one_thread): Likewise.
6246 (thread_db_thread_handle): Likewise.
6247 * win32-low.c (thread_rec): Likewise.
6248 (child_delete_thread): Likewise.
6249 (win32_thread_alive): Likewise.
6250 (get_child_debug_event): Likewise.
6251
da25033c
SM
62522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * linux-mips-low.c (update_watch_registers_callback): Return
6255 void, remove pid_p parameter, don't check for pid.
6256 (mips_insert_point, mips_remove_point): Use for_each_thread.
6257
c91bb56b
SM
62582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * lynx.low (lynx_delete_thread_callback): Remove.
6261 (lynx_mourn): Use for_each_thread.
6262
634a3254
SM
62632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * regcache.c (regcache_invalidate_one): Remove.
6266 (regcache_invalidate_pid): use for_each_thread.
6267
41272101
TT
62682017-11-26 Tom Tromey <tom@tromey.com>
6269
6270 * linux-low.c (linux_create_inferior): Update.
6271
f5291a6f
UW
62722017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6273
6274 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6275
6654d750
AH
62762017-11-24 Alan Hayward <alan.hayward@arm.com>
6277
6278 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6279 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6280 * linux-aarch64-tdesc-selftest.c: New file.
6281 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6282
62832017-11-24 Alan Hayward <alan.hayward@arm.com>
6284
6285 * configure.srv: Add new file.
6286 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6287 * linux-aarch64-tdesc-selftest.c: New file.
6288 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6289
49bdb7ee
AH
62902017-11-24 Alan Hayward <alan.hayward@arm.com>
6291
6292 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6293 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6294 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6295
d6d7ce56
AH
62962017-11-24 Alan Hayward <alan.hayward@arm.com>
6297
6298 * configure.srv: Add new files.
6299 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6300 aarch64_linux_read_description.
6301 * linux-aarch64-low.c (aarch64_linux_read_description):
6302 Merge with aarch64_arch_setup.
6303 (aarch64_arch_setup): Call aarch64_linux_read_description.
6304 * linux-aarch64-tdesc.c: New file.
6305 * linux-aarch64-tdesc.h: New file.
6306
506fe5f4
YQ
63072017-11-24 Yao Qi <yao.qi@linaro.org>
6308
6309 * configure.srv: Set $srv_regobj for tic6x-linux.
6310 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6311 (tic6x_read_description): Move some code to tic6x_arch_setup.
6312 (tic6x_tdesc_test): New function.
6313 (initialize_low_arch): Call selftests::register_test.
6314
29f9a567
YQ
63152017-11-22 Yao Qi <yao.qi@linaro.org>
6316
6317 * remote-utils.c (prepare_resume_reply): Use memcpy.
6318
578290ec
SM
63192017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6320
6321 * linux-low.c (kill_one_lwp_callback): Return void, take
6322 argument directly, don't filter on pid.
6323 (linux_kill): Use for_each_thread.
6324
eca55aec
SM
63252017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6326
6327 * linux-low.c (need_step_over_p): Return bool, remove dummy
6328 argument.
6329 (linux_resume, proceed_all_lwps): Use find_thread.
6330
25c28b4d
SM
63312017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6332
6333 * linux-low.c (resume_status_pending_p): Return bool, remove
6334 flag_p argument.
6335 (linux_resume): Use find_thread.
6336
5fdda392
SM
63372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6338
6339 * linux-low.c (struct thread_resume_array): Remove.
6340 (linux_set_resume_request): Return void, take arguments
6341 directly.
6342 (linux_resume): Use for_each_thread.
6343
fcb056a5
SM
63442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6345
6346 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6347 return bool, remove data argument.
6348 (linux_stabilize_threads): Use find_thread.
6349
139720c5
SM
63502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6351
6352 * linux-low.c (unsuspend_one_lwp): Remove.
6353 (unsuspend_all_lwps): Use for_each_thread, inline code from
6354 unsuspend_one_lwp.
6355
6d1e5673
SM
63562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6357
6358 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6359 * linux-low.c (struct iterate_over_lwps_args): Remove.
6360 (iterate_over_lwps_filter): Remove.
6361 (iterate_over_lwps): Use find_thread.
6362
bbf550d5
SM
63632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6364
6365 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6366 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6367 code from reset_lwp_ptrace_options_callback.
6368
00192f77
SM
63692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6370
6371 * linux-arm-low.c (struct update_registers_data): Remove.
6372 (update_registers_callback): Return void, take arguments
6373 directly, don't check thread's pid.
6374 (arm_insert_point, arm_remove_point): Use for_each_thread.
6375
2bee2b6c
SM
63762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6377
6378 * win32-low.c (continue_one_thread): Return void, take argument
6379 directly.
6380 (child_continue): Use for_each_thread.
6381
0b360f19
SM
63822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6383
6384 * win32-i386-low.c (update_debug_registers_callback): Rename
6385 to ...
6386 (update_debug_registers): ... this, return void, remove pid_p arg.
6387 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6388
f27866ba
SM
63892017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6390
6391 * inferiors.h (struct process_info): Add constructor, initialize
6392 fields..
6393 <syscalls_to_catch>: Change type to std::vector<int>.
6394 * inferiors.c (add_process): Allocate process_info with new.
6395 (remove_process): Free process_info with delete.
6396 * linux-low.c (handle_extended_wait): Adjust.
6397 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6398 * server.c (handle_general_set): Adjust.
6399
e849ea89
PA
64002017-11-16 Pedro Alves <palves@redhat.com>
6401
6402 * remote-utils.c (remote_close): Block SIGIO signals instead of
6403 uninstalling the SIGIO handler.
6404
1d0aa65c
AH
64052017-11-16 Alan Hayward <alan.hayward@arm.com>
6406
6407 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6408
3491a34c
YQ
64092017-11-16 Yao Qi <yao.qi@linaro.org>
6410
6411 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6412 (tic6x_store_gregset): Likewise.
6413 (tic6x_usrregs_info): Move it up.
6414
a602f924
AH
64152017-11-15 Alan Hayward <alan.hayward@arm.com>
6416
6417 * Makefile.in: Update arch rules.
6418 * configure.srv: Explicitly mark arch/ files.
6419
5616b6c3
AS
64202017-11-13 Andreas Schwab <schwab@suse.de>
6421
6422 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6423 function.
6424 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6425
d1928160
PA
64262017-11-06 Pedro Alves <palves@redhat.com>
6427
6428 * config.in, configure: Regenerate.
6429
bac608e7
SM
64302017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6431
6432 * target.c (struct thread_search): Remove.
6433 (thread_search_callback): Remove.
6434 (prepare_to_access_memory): Use for_each_thread instead of
6435 find_inferior. Inline code from thread_search_callback.
6436
eaddb425
SM
64372017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * server.c (struct visit_actioned_threads_data): Remove.
6440 (visit_actioned_threads): Change prototype to take arguments
6441 directly.
6442 (resume): Use find_thread instead of find_inferior.
6443
99078d34
SM
64442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6445
6446 * server.c (queue_stop_reply_callback): Change prototype, return
6447 void.
6448 (find_status_pending_thread_callback): Remove.
6449 (handle_status): Replace find_inferior with find_thread and
6450 for_each_thread.
6451
cc628f3d
AH
64522017-10-25 Alan Hayward <alan.hayward@arm.com>
6453
6454 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6455 with REGNO.
6456 (aarch64_store_gregset): Likewise.
6457 (aarch64_fill_fpregset): Likewise.
6458 (aarch64_store_fpregset): Likewise.
6459
4d3bb80e
SM
64602017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6461
6462 * gdbthread.h (find_thread, for_each_thread): New functions.
6463 * inferiors.c (thread_of_pid): Remove.
6464 (find_any_thread_of_pid): Use find_thread.
6465 * linux-low.c (num_lwps): Use for_each_thread.
6466
7a7cdfa0
YQ
64672017-10-17 Yao Qi <yao.qi@linaro.org>
6468
6469 * Makefile.in: Remove one rule.
6470 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6471
e675d170
YQ
64722017-10-17 Yao Qi <yao.qi@linaro.org>
6473
6474 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6475 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6476
7eb4e0f9
YQ
64772017-10-17 Yao Qi <yao.qi@linaro.org>
6478
6479 * configure.srv: Rename arm.o with arch/arm.o.
6480
60d6cfc9
YQ
64812017-10-17 Yao Qi <yao.qi@linaro.org>
6482
6483 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6484 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6485 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6486 (arch-i386.o, arch-amd64.o): Remove rules.
6487 (arch/%.o): New rule.
6488 Update POSTCOMPILE and COMPILE.pre.
6489 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6490 * configure: Re-generated.
6491 * configure.srv: Replace arch-i386.o with arch/i386.o.
6492 Replace arch-amd64.o with arch/amd64.o.
6493
5bfda255
YQ
64942017-10-16 Yao Qi <yao.qi@linaro.org>
6495
6496 * configure: Regenerated.
6497
9c80ecd6
SM
64982017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6499
6500 * inferiors.h: (struct inferior_list): Remove.
6501 (struct inferior_list_entry); Remove.
6502 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6503 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6504 get_first_inferior): Remove.
6505 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6506 find_inferior_id, find_inferior_in_random): Change signature.
6507 * inferiors.c (all_threads): Change type to
6508 std::list<thread_info *>.
6509 (get_thread): Remove macro.
6510 (find_inferior, find_inferior_id): Change signature, implement
6511 using find_thread.
6512 (find_inferior_in_random): Change signature, implement using
6513 find_thread_in_random.
6514 (for_each_inferior, for_each_inferior_with_data): Change
6515 signature, implement using for_each_thread.
6516 (add_inferior_to_list, remove_inferior): Remove.
6517 (add_thread, get_first_thread, thread_of_pid,
6518 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6519 (get_first_inferior, one_inferior_p, clear_inferior_list):
6520 Remove.
6521 (clear_inferiors, get_thread_process): Update.
6522 * gdbthread.h: Include <list>.
6523 (struct thread_info) <entry>: Remove field.
6524 <id>: New field.
6525 (all_threads): Change type to std::list<thread_info *>.
6526 (get_first_inferior): Add doc.
6527 (find_thread, for_each_thread, find_thread_in_random): New
6528 functions.
6529 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6530 * linux-arm-low.c (update_registers_callback): Update.
6531 * linux-low.c (second_thread_of_pid_p): Update.
6532 (kill_one_lwp_callback, linux_detach_lwp_callback,
6533 delete_lwp_callback, status_pending_p_callback, same_lwp,
6534 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6535 iterate_over_lwps, not_stopped_callback,
6536 resume_stopped_resumed_lwps, count_events_callback,
6537 select_singlestep_lwp_callback, select_event_lwp_callback,
6538 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6539 suspend_and_send_sigstop_callback, wait_for_sigstop,
6540 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6541 lwp_running, linux_set_resume_request, resume_status_pending_p,
6542 need_step_over_p, start_step_over, linux_resume_one_thread,
6543 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6544 reset_lwp_ptrace_options_callback): Update.
6545 * linux-mips-low.c (update_watch_registers_callback): Update.
6546 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6547 Update.
6548 (free_register_cache_thread_one): Remove.
6549 (regcache_release): Update.
6550 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6551 handle_qxfer_threads_worker): Update.
6552 (handle_query): Update, use list iterator.
6553 (visit_actioned_threads, handle_pending_status,
6554 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6555 clear_pending_status_callback, set_pending_status_callback,
6556 find_status_pending_thread_callback, handle_status,
6557 process_serial_event): Update.
6558 * target.c (thread_search_callback): Update.
6559 * thread-db.c (thread_db_get_tls_address): Update.
6560 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6561 Update.
6562 * win32-i386-low.c (update_debug_registers_callback): Update.
6563 * win32-low.c (delete_thread_info, child_delete_thread,
6564 continue_one_thread, suspend_one_thread,
6565 get_child_debug_event): Adjust.
6566
9179355e
SM
65672017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6568
6569 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6570 * inferiors.h: Include <list>.
6571 (struct process_info) <entry>: Remove field.
6572 <pid>: New field.
6573 (pid_of): Change macro to function.
6574 (ptid_of, lwpid_of): Remove macro.
6575 (all_processes): Change type to std::list<process_info *>.
6576 (ALL_PROCESSES): Remove macro.
6577 (for_each_process, find_process): New function.
6578 * inferiors.c (all_processes): Change type to
6579 std::list<process_info *>.
6580 (find_thread_process): Adjust.
6581 (add_process): Likewise.
6582 (remove_process): Likewise.
6583 (find_process_pid): Likewise.
6584 (get_first_process): Likewise.
6585 (started_inferior_callback): Remove.
6586 (have_started_inferiors_p): Adjust.
6587 (attached_inferior_callback): Remove.
6588 (have_attached_inferiors_p): Adjust.
6589 * linux-low.c (check_zombie_leaders): Likewise.
6590 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6591 (x86_linux_update_xmltarget): Adjust.
6592 * server.c (handle_query): Likewise.
6593 (gdb_reattached_process): Remove.
6594 (handle_status): Adjust.
6595 (kill_inferior_callback): Likewise.
6596 (detach_or_kill_inferior): Remove.
6597 (print_started_pid): Likewise.
6598 (print_attached_pid): Likewise.
6599 (detach_or_kill_for_exit): Update.
6600 (process_serial_event): Likewise.
6601 * linux-arm-low.c (arm_new_fork): Likewise.
6602
c9cb8905
SM
66032017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6604
6605 * dll.h: Include <list>.
6606 (struct dll_info): Add constructor.
6607 <entry>: Remove field.
6608 (all_dlls): Change type to std::list<dll_info>.
6609 * dll.c: Include <algorithm>.
6610 (get_dll): Remove macro.
6611 (all_dlls): Change type to std::list<dll_info *>.
6612 (free_one_dll): Remove.
6613 (match_dll): Likewise.
6614 (loaded_dll): Adjust.
6615 (unloaded_dll): Adjust to all_dlls type change, use
6616 std::find_if. Inline code from match_dll.
6617 (clear_dlls): Adjust to all_dlls type change.
6618 * server.c (emit_dll_description): Remove.
6619 (handle_qxfer_libraries): Adjust to all_dlls type change,
6620 integrate emit_dll_description's functionality.
6621
04ec7890
SM
66222017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6623
6624 * linux-low.h (struct linux_target_ops) <delete_process>: New
6625 field.
6626 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6627 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6628 (struct linux_target_ops): Add delete_process callback.
6629 * linux-arm-low.c (arm_delete_process): New.
6630 (struct linux_target_ops): Add delete_process callback.
6631 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6632 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6633 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6634 * linux-mips-low.c (mips_linux_delete_process): New.
6635 (struct linux_target_ops): Add delete_process callback.
6636 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6637 * linux-s390-low.c (struct linux_target_ops): Likewise.
6638 * linux-sh-low.c (struct linux_target_ops): Likewise.
6639 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6640 * linux-tile-low.c (struct linux_target_ops): Likewise.
6641 * linux-x86-low.c (x86_linux_delete_process): New.
6642 (struct linux_target_ops): Add delete_process callback.
6643 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6644
466eecee
SM
66452017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6646
6647 * linux-aarch64-low.c (the_low_target): Add thread delete
6648 callback.
6649 * linux-arm-low.c (arm_delete_thread): New function.
6650 (the_low_target): Add thread delete callback.
6651 * linux-bfin-low.c (the_low_target): Likewise.
6652 * linux-crisv32-low.c (the_low_target): Likewise.
6653 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6654 set.
6655 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6656 field.
6657 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6658 * linux-mips-low.c (mips_linux_delete_thread): New function.
6659 (the_low_target): Add thread delete callback.
6660 * linux-ppc-low.c (the_low_target): Likewise.
6661 * linux-s390-low.c (the_low_target): Likewise.
6662 * linux-sh-low.c (the_low_target): Likewise.
6663 * linux-tic6x-low.c (the_low_target): Likewise.
6664 * linux-tile-low.c (the_low_target): Likewise.
6665 * linux-x86-low.c (the_low_target): Likewise.
6666 * linux-xtensa-low.c (the_low_target): Likewise.
6667
b79f7801
YZ
66682017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6669
6670 * win32-low.c: Include "common-inferior.h".
6671
bc3b087d
SDJ
66722017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6673
6674 * inferiors.c (set_inferior_cwd): New function.
6675 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6676 (handle_query): Inform that QSetWorkingDir is supported.
6677 * win32-low.c (create_process): Pass the inferior's cwd to
6678 CreateProcess.
6679
d092c5a2
SDJ
66802017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6681
6682 * inferiors.c (current_inferior_cwd): New global variable.
6683 (get_inferior_cwd): New function.
6684 * inferiors.h (struct process_info) <cwd>: New field.
6685
7da0a886
SDJ
66862017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6687
6688 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6689 (OBS): Add gdb_tilde_expand.o.
6690
289a6840
SM
66912017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6692
6693 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6694 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6695
256642e8
PA
66962017-09-29 Pedro Alves <palves@redhat.com>
6697
6698 * ax.c (gdb_parse_agent_expr): Constify.
6699 * ax.h (gdb_parse_agent_expr): Constify.
6700 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6701 Constify.
6702 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6703 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6704 * remote-utils.h (read_ptid): Constify.
6705 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6706 (process_point_options, process_serial_event): Constify.
6707 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6708 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6709 (cmd_qtbuffer): Constify.
6710
5b9ca4d4
PA
67112017-09-29 Pedro Alves <palves@redhat.com>
6712
6713 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6714 fails.
6715
94c207e0
PA
67162017-09-29 Pedro Alves <palves@redhat.com>
6717
6718 * linux-low.c (handle_extended_wait): Pass parent thread instead
6719 of process to thread_db_notice_clone.
6720 * linux-low.h (thread_db_notice_clone): Replace parent process
6721 parameter with parent thread parameter.
6722 * thread-db.c (find_one_thread): Add comment.
6723 (thread_db_notice_clone): Replace parent process parameter with
6724 parent thread parameter. Temporarily switch to the parent thread.
6725
75352e28
SDJ
67262017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6727
6728 * gdbthread.h: Include "common-gdbthread.h".
6729 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6730 "if" when validating the ptid.
6731 * remote-utils.c: Include "gdbthread.h".
6732 (prepare_resume_reply): Use "switch_to_thread".
6733 * target.c (done_accessing_memory): Likewise.
6734
ad339634
AA
67352017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6736
6737 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6738 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6739 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6740 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6741 s390x-gs-linux64-ipa.o to ipa_obj.
6742 * linux-s390-low.c (HWCAP_S390_GS): New define.
6743 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6744 New functions.
6745 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6746 (s390_arch_setup): Check for guarded-storage support and choose
6747 appropriate tdesc.
6748 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6749 init_registers_s390x_gs_linux64.
6750 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6751 enum value.
6752 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6753 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6754
cc4d742f
SM
67552017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6756
6757 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6758
f6327dcb
KB
67592017-09-21 Kevin Buettner <kevinb@redhat.com>
6760
6761 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6762 (thread_db_thread_handle): Declare.
6763 * linux-low.c (linux_target_ops): Initialize thread_handle.
6764 * server.c (handle_qxfer_threads_worker): Add support for
6765 "handle" attribute.
6766 * target.h (struct target_ops): Add new function pointer,
6767 thread_handle.
6768 (target_thread_handle): Define.
6769 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6770 field in lwp.
6771 (thread_db_thread_handle): New function.
6772
86299109
KB
67732017-09-21 Kevin Buettner <kevinb@redhat.com>
6774
6775 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6776 * linux-low.h (thread_db_notice_clone): Declare.
6777 * thread-db.c (thread_db_notice_clone): New function.
6778
f557a88a
PA
67792017-09-21 Pedro Alves <palves@redhat.com>
6780
6781 * server.c (gdb_read_memory, handle_status, process_serial_event)
6782 (handle_serial_event, handle_target_event): Adjust to
6783 set_desired_thread prototype change.
6784 * target.c (set_desired_thread): Remove 'use_general' parameter
6785 and adjust.
6786 * target.h (set_desired_thread): Remove 'use_general' parameter.
6787
223ffa71
TT
67882017-09-20 Tom Tromey <tom@tromey.com>
6789
6790 * target.c (target_terminal::terminal_state): Define.
6791 (target_terminal::init): Rename from target_terminal_init.
6792 (target_terminal::inferior): Rename from
6793 target_terminal_inferior.
6794 (target_terminal::ours): Rename from target_terminal_ours.
6795 (target_terminal::ours_for_output, target_terminal::info): New.
6796
04fd3ba9
SM
67972017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6798
6799 * server.c (accumulate_file_name_length): Remove.
6800 (emit_dll_description): Adjust to std::string change.
6801 (handle_qxfer_libraries): Use std::string to hold document.
6802
5e187554
SM
68032017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6804
6805 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6806 return type of xml_escape_text.
6807 * server.c (emit_dll_description): Likewise.
6808
1526853e
SM
68092017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6810
6811 * server.c (captured_main): Accept argument for --selftest.
6812 Update run_tests call.
6813 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6814 when registering selftests.
6815
c4dfafab
SDJ
68162017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6817
6818 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6819 instead of "VEC" for "target_desc.reg_defs".
6820 (regcache_cpy): Likewise.
6821 (registers_to_string): Likewise.
6822 (registers_from_string): Likewise.
6823 (find_regno): Likewise.
6824 (supply_regblock): Likewise.
6825 (regcache_raw_read_unsigned): Likewise.
6826 * tdesc.c (init_target_desc): Likewise.
6827 (tdesc_create_reg): Likewise.
6828 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6829 (struct target_desc) <reg_defs>: Convert to "std::vector".
6830 (target_desc): Do not initialize "reg_defs".
6831 (~target_desc): Update code to use "std::vector" instead of "VEC"
6832 for "target_desc.reg_defs".
6833 (operator==): Likewise.
6834
124aceb4
SM
68352017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6836
6837 * inferiors.h (thread_to_gdb_id): Remove.
6838 * inferiors.c (thread_to_gdb_id): Remove.
6839 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6840 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6841 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6842 Likewise.
6843 * nto-low.c (nto_fetch_registers, nto_store_registers,
6844 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6845
96cde54f
SM
68462017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6847
6848 * inferiors.h (gdb_id_to_thread_id): Remove.
6849 * inferiors.c (gdb_id_to_thread_id): Remove.
6850 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6851 removal. Move pid declaration closer to where it's used.
6852
e8ca139e
SM
68532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6854
6855 * server.c (handle_detach): New function.
6856 (process_serial_event): Move code out, call handle_detach.
6857
f8a4e119
SM
68582017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6859
6860 * server.c (require_running): Rename to ...
6861 (require_running_or_return): ... this ...
6862 (require_running_or_break): ... and this.
6863 (handle_query, process_serial_event): Adjust.
6864
0eb0a407
SM
68652017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6866
6867 * linux-low.c (linux_set_resume_request): Remove unused
6868 variables.
6869
785922a5
SM
68702017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6871
6872 * server.c (first_thread_of): Remove.
6873 (process_serial_event): Replace usage of first_thread_of with
6874 find_any_thread_of_pid.
6875 * tracepoint.c (same_process_p): Remove.
6876 (gdb_agent_about_to_close): Replace usage of same_process_p with
6877 find_any_thread_of_pid.
6878 * linux-x86-low.c (same_process_callback): Remove.
6879 (x86_arch_setup_process_callback): Replace usage of
6880 same_process_callback with find_any_thread_of_pid.
6881 * thread-db.c (any_thread_of): Remove.
6882 (switch_to_process): Replace usage of any_thread_of with
6883 find_any_thread_of_pid.
6884 * inferiors.c (thread_pid_matches_callback): Remove.
6885 (find_thread_process): Adjust to use find_any_thread_of_pid.
6886
a059f00c
SDJ
68872017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6888
6889 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6890 with "!VEC_empty".
a059f00c 6891
cc397f3a
SDJ
68922017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6893
6894 * linux-low.c (handle_extended_wait): Use
6895 "allocate_target_description" instead of "XNEW".
6896 * linux-x86-low.c (initialize_low_arch): Likewise.
6897
22916b07
YQ
68982017-09-05 Yao Qi <yao.qi@linaro.org>
6899
6900 * configure.srv (srv_i386_regobj): Remove.
6901 (srv_amd64_regobj): Remove.
6902 (srv_regobj): Set it to "" for x86 non-linux targets.
6903 * linux-x86-tdesc.c (i386_linux_read_description):
6904 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6905 (init_registers_i386): Remove the declaration.
6906 (tdesc_i386): Remove the declaration.
6907 (lynx_i386_arch_setup): Call i386_create_target_description.
6908 * nto-x86-low.c: Likewise.
6909 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6910 [!__x86_64__]: include arch/i386.h.
6911 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6912
38602d55
YQ
69132017-09-05 Yao Qi <yao.qi@linaro.org>
6914
6915 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6916 i386/amd64-XXX-linux from it.
6917
44b886ff
YQ
69182017-09-05 Yao Qi <yao.qi@linaro.org>
6919
6920 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6921 false.
6922 (ipa_amd64_linux_regobj): Remove.
6923 (ipa_x32_linux_regobj): Remove.
6924
b4570e4b
YQ
69252017-09-05 Yao Qi <yao.qi@linaro.org>
6926
6927 * Makefile.in (arch-amd64.o): New rule.
6928 * configure.srv: Append arch-amd64.o.
6929 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6930 (get_ipa_tdesc): Call amd64_linux_read_description.
6931 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6932 and init_registers_amd64_XXX.
6933 * linux-x86-low.c (x86_linux_read_description): Call
6934 amd64_linux_read_description.
6935 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6936 (initialize_low_arch): Don't call init_registers_x32_XXX and
6937 init_registers_amd64_XXX.
6938 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6939 and tdesc_amd64_XXX.
6940 [__x86_64__] (amd64_tdesc_test): New function.
6941 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6942 and init_registers_amd64_XXX.
6943 * linux-x86-tdesc.c: Include arch/amd64.h.
6944 (xcr0_to_tdesc_idx): New function.
6945 (i386_linux_read_description): New function.
6946 (amd64_get_ipa_tdesc_idx): New function.
6947 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6948 (amd64_get_ipa_tdesc): Declare.
6949
d1f28ea2
YQ
69502017-09-05 Yao Qi <yao.qi@linaro.org>
6951
6952 * configure.srv (srv_i386_linux_xmlfiles): Remove
6953 i386/i386-XXX-linux.xml from it.
6954
25a93583
YQ
69552017-09-05 Yao Qi <yao.qi@linaro.org>
6956
6957 * configure.srv: Set srv_i386_linux_regobj empty if $development
6958 is false.
6959 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6960 initialize_low_tdesc.
6961 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6962 with #if initialize_low_tdesc.
6963 * linux-x86-tdesc-selftest.c: New file.
6964 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6965
5f035c07
YQ
69662017-09-05 Yao Qi <yao.qi@linaro.org>
6967
6968 * Makefile.in (arch-i386.o): New rule.
6969 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6970 (x86_64-*-linux*): Likewise.
6971 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6972 include arch/i386.h.
6973 (i386_linux_read_description): Remove code and call
6974 i386_create_target_description.
6975 * tdesc.c (allocate_target_description): New function.
6976 * tdesc.h (set_tdesc_architecture): Remove declaration.
6977 (set_tdesc_osabi): Likewise.
6978
0abe8a89
YQ
69792017-09-05 Yao Qi <yao.qi@linaro.org>
6980
6981 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6982 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6983 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6984 .xmltarget.
6985 * server.c (get_features_xml): Call tdesc_get_features_xml.
6986 * tdesc.c (set_tdesc_architecture): New function.
6987 (set_tdesc_osabi): New function.
6988 (tdesc_get_features_xml): New function.
6989 (tdesc_create_feature): Add an argument.
6990 * tdesc.h (struct target_desc) <features>: New field.
6991 <arch, osabi>: New field.
6992 (~target_desc): xfree features, arch, and osabi.
6993 (target_desc::oerator==): Don't compare .xmltarget.
6994 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6995 (set_tdesc_osabi): Likewise.
6996 (tdesc_get_features_xml): Likewise.
6997
0a188386
YQ
69982017-09-05 Yao Qi <yao.qi@linaro.org>
6999
7000 * linux-x86-tdesc.c: Include selftest.h.
7001 (i386_tdesc_test): New function.
7002 (initialize_low_tdesc): Call selftests::register_test.
7003 * tdesc.h: Include regdef.h.
7004 (target_desc): Override operator == and !=.
7005
f49ff000
YQ
70062017-09-05 Yao Qi <yao.qi@linaro.org>
7007
7008 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7009 (ipa_obj): Likewise.
7010 * linux-i386-ipa.c: Include common/x86-xstate.h
7011 (get_ipa_tdesc): Call i386_linux_read_description.
7012 (initialize_low_tracepoint): Don't call init_registers_XXX
7013 functions, call initialize_low_tdesc instead.
7014 * linux-x86-low.c (x86_linux_read_description): Call
7015 i386_linux_read_description.
7016 (initialize_low_arch): Don't call init_registers_i386_XXX
7017 functions, call initialize_low_tdesc.
7018 * linux-x86-tdesc.c: New file.
7019 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7020 (i386_get_ipa_tdesc_idx): Declare.
7021 (i386_get_ipa_tdesc): Declare.
7022 (initialize_low_tdesc): Declare.
7023
2b68ef2f
YQ
70242017-09-05 Yao Qi <yao.qi@linaro.org>
7025
7026 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7027 instead of 0.
7028
f7000548
YQ
70292017-09-05 Yao Qi <yao.qi@linaro.org>
7030
7031 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7032 * regcache.c (get_thread_regcache): Use VEC_length.
7033 (init_register_cache): Likewise.
7034 (regcache_cpy): Likewise.
7035 (registers_to_string): Iterate reg_defs via VEC_iterate.
7036 (find_regno): Likewise.
7037 (find_register_by_number): Use VEC_index.
7038 (register_size): Call find_register_by_number.
7039 (register_data): Call find_register_by_number.
7040 (supply_regblock): Use VEC_length.
7041 (regcache_raw_read_unsigned): Likewise.
7042 * tdesc.c (init_target_desc): Iterate reg_defs via
7043 VEC_iterate.
7044 (default_description): Update initializer.
7045 (copy_target_description): Don't update field num_registers.
7046 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7047 <num_registers>: Remove.
7048
50a421ac
SM
70492017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7050
7051 * Makefile.in (.SECONDARY): Define target.
7052
23fdd69e
SM
70532017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7054
7055 * linux-low.c (linux_wait_1): Adjust.
7056 * server.c (queue_stop_reply_callback): Adjust.
7057
0a2dde4a
SDJ
70582017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7059
7060 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7061 QEnvironmentUnset and QEnvironmentReset packets.
7062 (handle_query): Inform remote that QEnvironmentHexEncoded,
7063 QEnvironmentUnset and QEnvironmentReset are supported.
7064
6afd337d
SM
70652017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7066
7067 * inferiors.h (inferior_target_data): Rename to ...
7068 (thread_target_data): ... this.
7069 (inferior_regcache_data): Rename to ...
7070 (thread_regcache_data): ... this.
7071 (set_inferior_regcache_data): Rename to ...
7072 (set_thread_regcache_data): ... this.
7073 * inferiors.c (inferior_target_data): Rename to ...
7074 (thread_target_data): ... this.
7075 (inferior_regcache_data): Rename to ...
7076 (thread_regcache_data): ... this.
7077 (set_inferior_regcache_data): Rename to ...
7078 (set_thread_regcache_data): ... this.
7079 (free_one_thread): Update.
7080 * linux-low.h (get_thread_lwp): Update.
7081 * regcache.c (get_thread_regcache): Update.
7082 (regcache_invalidate_thread): Update.
7083 (free_register_cache_thread): Update.
7084 * win32-i386-low.c (update_debug_registers_callback): Update.
7085 (win32_get_current_dr): Update.
7086 * win32-low.c (thread_rec): Update.
7087 (delete_thread_info): Update.
7088 (continue_one_thread): Update.
7089 (suspend_one_thread): Update.
7090
a160cc46
SM
70912017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7092
7093 * inferiors.c (set_inferior_target_data): Remove.
7094 * inferiors.h (set_inferior_target_data): Remove.
7095
6d580b63
YQ
70962017-08-18 Yao Qi <yao.qi@linaro.org>
7097
7098 * Makefile.in (OBS): Add selftest.o.
7099 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7100 * configure, config.in: Re-generated.
7101 * server.c: Include common/sefltest.h.
7102 (captured_main): Handle option --selftest.
7103
f5a29eb0
YQ
71042017-08-09 Yao Qi <yao.qi@linaro.org>
7105
7106 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7107 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7108 i386-avx-mpx.o and i386-mmx.o.
7109 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7110 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7111 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7112 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7113 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7114 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7115 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7116 i386/amd64-avx-mpx.xml.
7117
57757c2f
YQ
71182017-08-09 Yao Qi <yao.qi@linaro.org>
7119
7120 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7121 and x32-avx-avx512.o.
7122 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7123 i386/x32-avx-avx512.xml.
7124
229d26fc
SM
71252017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7126
7127 * tracepoint.h (enum class fast_tpoint_collect_result): New
7128 enumeration.
7129 (fast_tracepoint_collecting): Change return type to
7130 fast_tpoint_collect_result.
7131 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7132 * linux-low.h: Include tracepoint.h.
7133 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7134 fast_tpoint_collect_result.
7135 * linux-low.c (handle_tracepoints): Adjust.
7136 (linux_fast_tracepoint_collecting): Change return type to
7137 fast_tpoint_collect_result.
7138 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7139 linux_wait_1, stuck_in_jump_pad_callback,
7140 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7141 proceed_one_lwp): Adjust to type change.
7142
2e1e43e1
YQ
71432017-07-10 Yao Qi <yao.qi@linaro.org>
7144
7145 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7146
adc764e7
YQ
71472017-06-29 Yao Qi <yao.qi@linaro.org>
7148
7149 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7150 Remove.
7151 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7152
a206891a
SM
71532017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7154
7155 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7156
9a6c7d9c
SDJ
71572017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7158
7159 * linux-low.c (linux_create_inferior): Adjust code to access the
7160 environment information via 'gdb_environ' class.
7161 * lynx-low.c (lynx_create_inferior): Likewise.
7162 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7163 (get_environ): Return a pointer to 'our_environ'.
7164 (captured_main): Initialize 'our_environ'.
7165 * server.h (get_environ): Adjust prototype.
7166 * spu-low.c (spu_create_inferior): Adjust code to access the
7167 environment information via 'gdb_environ' class.
7168
ae3e2ccf
SM
71692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7170
7171 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7172 usage of "register" keyword.
7173
3e019bdc
SM
71742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7175
7176 * configure: Re-generate.
7177
8465943a
SM
71782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * configure: Re-generate.
7181
cf0dd6f0
SM
71822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7183
7184 * Makefile.in (COMPILE.pre): Add "-x c++".
7185
9845682b
SDJ
71862017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7187
7188 * fork-child.c: Conditionally include <signal.h>.
7189
aefd8b33
SDJ
71902017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7191
7192 * server.c (handle_general_set): Handle new packet
7193 "QStartupWithShell".
7194 (handle_query): Add "QStartupWithShell" to the list of supported
7195 packets.
7196 (gdbserver_usage): Add help text explaining the
7197 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7198 options.
7199 (captured_main): Recognize and act upon the presence of the new
7200 CLI options.
7201
2090129c
SDJ
72022017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7203 Pedro Alves <palves@redhat.com>
7204
7205 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7206 * configure: Regenerate.
7207 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7208 "fork-inferior.o".
7209 (i[34567]86-*-lynxos*): Likewise.
7210 (spu*-*-*): Likewise.
7211 * fork-child.c: New file.
7212 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7213 and "environ.h".
7214 (linux_ptrace_fun): New function.
7215 (linux_create_inferior): Adjust function prototype to reflect
7216 change on "target.h". Adjust function code to use
7217 "fork_inferior".
7218 (linux_request_interrupt): Delete "signal_pid".
7219 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7220 (lynx_ptrace_fun): New function.
7221 (lynx_create_inferior): Adjust function prototype to reflect
7222 change on "target.h". Adjust function code to use
7223 "fork_inferior".
7224 * nto-low.c (nto_create_inferior): Adjust function prototype and
7225 code to reflect change on "target.h". Update comments.
7226 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7227 "common-terminal.h" and "environ.h".
7228 (terminal_fd): Moved to fork-child.c.
7229 (old_foreground_pgrp): Likewise.
7230 (restore_old_foreground_pgrp): Likewise.
7231 (last_status): Make it global.
7232 (last_ptid): Likewise.
7233 (our_environ): New variable.
7234 (startup_with_shell): Likewise.
7235 (program_name): Likewise.
7236 (program_argv): Rename to...
7237 (program_args): ...this.
7238 (wrapper_argv): New variable.
7239 (start_inferior): Delete function.
7240 (get_exec_wrapper): New function.
7241 (get_exec_file): Likewise.
7242 (get_environ): Likewise.
7243 (prefork_hook): Likewise.
7244 (post_fork_inferior): Likewise.
7245 (postfork_hook): Likewise.
7246 (postfork_child_hook): Likewise.
7247 (handle_v_run): Update code to deal with arguments coming from the
7248 remote host. Update calls from "start_inferior" to
7249 "create_inferior".
7250 (captured_main): Likewise. Initialize environment variable. Call
7251 "have_job_control".
7252 * server.h (post_fork_inferior): New prototype.
7253 (get_environ): Likewise.
7254 (last_status): Declare.
7255 (last_ptid): Likewise.
7256 (signal_pid): Likewise.
7257 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7258 (spu_ptrace_fun): New function.
7259 (spu_create_inferior): Adjust function prototype to reflect change
7260 on "target.h". Adjust function code to use "fork_inferior".
7261 * target.c (target_terminal_init): New function.
7262 (target_terminal_inferior): Likewise.
7263 (target_terminal_ours): Likewise.
7264 * target.h: Include <vector>.
7265 (struct target_ops) <create_inferior>: Update prototype.
7266 (create_inferior): Update macro.
7267 * utils.c (gdb_flush_out_err): New function.
7268 * win32-low.c (win32_create_inferior): Adjust function prototype
7269 and code to reflect change on "target.h".
7270
043a4934
SDJ
72712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7272
7273 * inferiors.c (switch_to_thread): New function.
7274
15652511
SDJ
72752017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7276
7277 * Makefile.in (SFILE): Add "common/job-control.c".
7278 (OBS): Add "job-control.o".
7279
21ea5acd
SDJ
72802017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7281
7282 * Makefile: Remove "@host_makefile_frag@".
7283
e13cb306
PA
72842017-05-05 Pedro Alves <palves@redhat.com>
7285
7286 * configure: Regenerate.
7287
c94fee56
SDJ
72882017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7289
7290 * configure: Regenerate.
7291
a0ff9e1a
SM
72922017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7293
7294 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7295 software_single_step change of return type to
7296 std::vector<CORE_ADDR>.
7297 * linux-low.c (install_software_single_step_breakpoints):
7298 Likewise.
7299 * linux-low.h (install_software_single_step_breakpoints):
7300 Likewise.
7301
be628ab8
SDJ
73022017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7303
7304 * remote-utils.c: Include "gdb_termios.h" instead of
7305 "terminal.h".
7306 * terminal.h: Delete file.
7307
7c5ded6a
SDJ
73082017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7309
7310 * server.c: Include <vector>.
7311 <program_argv, wrapper_argv>: Convert to std::vector.
7312 (start_inferior): Rewrite function to use C++.
7313 (handle_v_run): Likewise. Update code that calculates the argv
7314 based on the vRun packet; use C++.
7315 (captured_main): Likewise.
7316
436252de
SM
73172017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7318
7319 * server.c (handle_v_cont): Initialize thread_resume::thread
7320 with null_ptid.
7321
9bf2a700
PA
73222017-04-05 Pedro Alves <palves@redhat.com>
7323
7324 * configure: Regenerate.
7325
a121b7c1
PA
73262017-04-05 Pedro Alves <palves@redhat.com>
7327
7328 * gdbreplay.c (sync_error): Constify.
7329 * linux-x86-low.c (push_opcode): Constify.
7330
21c8a587
PA
73312017-04-05 Pedro Alves <palves@redhat.com>
7332
7333 * win32-low.c (get_child_debug_event)
7334 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7335 Report TARGET_WAITKIND_SPURIOUS instead.
7336
fb32b4f7
PA
73372017-04-05 Pedro Alves <palves@redhat.com>
7338
e79be6e5
SM
7339 * remote-utils.c (remote_prepare, remote_open): Constify.
7340 * remote-utils.h (remote_prepare, remote_open): Constify.
7341 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7342
65dd1e59
SM
73432017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * Makefile.in (clean): Clear .deps.
7346
8fa5b777
SM
73472017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7348
7349 * .gitignore: Remove generated files, replace with wildcard.
7350 * (clean): Replace removal of generated files with wildcard.
7351 (version.c): Replace with...
7352 (version-generated.c): ...this.
7353 (xml-builtin.c): Replace with...
7354 (xml-builtin-generated.c): ...this.
7355 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7356 (%.c: *regformats*): Replace with...
7357 (%-generated.c: *regformats*): ...this.
7358
a12e714b
MF
73592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7360
7361 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7362 (xtensa_fill_gregset): Call collect_register_by_name for
7363 threadptr register.
7364 (xtensa_store_gregset): Call supply_register_by_name for
7365 threadptr register.
7366
1a09b50a
MF
73672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7368
7369 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7370 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7371 (xtensa_store_gregset): Call supply_register for all registers in
7372 a0_regnum..a0_regnum + C0_NREGS range.
7373
1a01e7c6
SM
73742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7375
7376 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7377 (ax-ipa.o: ax.c): Remove.
7378 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7379 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7380 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7381 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7382 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7383
36bc18a8
SM
73842017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7385
7386 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7387 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7388 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7389 (errors-ipa.o: ../common/errors.c): Remove.
7390 (format-ipa.o: ../common/format.c): Remove.
7391 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7392
a8ebe3d5
SM
73932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7394
7395 * Makefile.in (%-ipa.o: %.c): New rule.
7396 (tracepoint-ipa.o: tracepoint.c): Remove.
7397 (utils-ipa.o: utils.c): Remove.
7398 (remote-utils-ipa.o: remote-utils.c): Remove.
7399 (regcache-ipa.o: regcache.c): Remove.
7400 (i386-linux-ipa.o: i386-linux.c): Remove.
7401 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7402 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7403 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7404 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7405 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7406 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7407 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7408 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7409 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7410 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7411 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7412 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7413 (aarch64-ipa.o: aarch64.c): Remove.
7414 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7415 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7416 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7417 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7418 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7419 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7420 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7421 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7422 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7423 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7424 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7425 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7426 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7427 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7428 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7429 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7430 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7431 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7432 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7433 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7434 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7435 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7436 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7437 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7438 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7439 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7440 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7441 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7442 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7443 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7444 (tdesc-ipa.o: tdesc.c): Remove.
7445 (x32-linux-ipa.o: x32-linux.c): Remove.
7446 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7447 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7448
50cfacb7
SM
74492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7450
7451 * Makefile.in (%.o: ../arch/%.c): New rule.
7452 (arm.o: ../arch/arm.c): Remove.
7453 (arm-linux.o: ../arch/arm-linux.c): Remove.
7454 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7455 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7456
c5a22423
SM
74572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7458
7459 * Makefile.in (%.o: ../nat/%.c): New rule.
7460 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7461 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7462 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7463 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7464 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7465 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7466 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7467 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7468 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7469 (linux-personality.o: ../nat/linux-personality.c): Remove.
7470 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7471 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7472 (x86-linux.o: ../nat/x86-linux.c): Remove.
7473 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7474 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7475
6bda016b
SM
74762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7477
7478 * Makefile.in (%.o: ../common/%.c): New rule.
7479 (signals.o: ../common/signals.c): Remove.
7480 (print-utils.o: ../common/print-utils.c): Remove.
7481 (rsp-low.o: ../common/rsp-low.c): Remove.
7482 (common-utils.o: ../common/common-utils.c): Remove.
7483 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7484 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7485 (vec.o: ../common/vec.c): Remove.
7486 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7487 (xml-utils.o: ../common/xml-utils.c): Remove.
7488 (ptid.o: ../common/ptid.c): Remove.
7489 (buffer.o: ../common/buffer.c): Remove.
7490 (format.o: ../common/format.c): Remove.
7491 (filestuff.o: ../common/filestuff.c): Remove.
7492 (agent.o: ../common/agent.c): Remove.
7493 (errors.o: ../common/errors.c): Remove.
7494 (environ.o: ../common/environ.c): Remove.
7495 (common-debug.o: ../common/common-debug.c): Remove.
7496 (cleanups.o: ../common/cleanups.c): Remove.
7497 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7498 (fileio.o: ../common/fileio.c): Remove.
7499 (common-regcache.o: ../common/common-regcache.c): Remove.
7500 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7501 (new-op.o: ../common/new-op.c): Remove.
7502 (btrace-common.o: ../common/btrace-common.c): Remove.
7503
21122961
SM
75042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7505
7506 * Makefile.in (%.o: ../target/%.c): New rule.
7507 (waitstatus.o: ../target/waitstatus.c): Remove.
7508
c362e621
SM
75092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7510
7511 * Makefile.in
7512 (%.c: ../regformats/%.dat,
7513 (%.c: ../regformats/arm/%.dat,
7514 (%.c: ../regformats/i386/%.dat,
7515 (%.c: ../regformats/rs6000/%.dat): New rules.
7516 (aarch64.c): Remove.
7517 (reg-arm.c): Remove.
7518 (arm-with-iwmmxt.c): Remove.
7519 (arm-with-vfpv2.c): Remove.
7520 (arm-with-vfpv3.c): Remove.
7521 (arm-with-neon.c): Remove.
7522 (reg-bfin.c): Remove.
7523 (reg-cris.c): Remove.
7524 (reg-crisv32.c): Remove.
7525 (i386.c): Remove.
7526 (i386-linux.c): Remove.
7527 (i386-avx.c): Remove.
7528 (i386-avx-linux.c): Remove.
7529 (i386-avx-avx512.c): Remove.
7530 (i386-avx-avx512-linux.c): Remove.
7531 (i386-mpx.c): Remove.
7532 (i386-mpx-linux.c): Remove.
7533 (i386-avx-mpx-avx512-pku.c): Remove.
7534 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7535 (i386-avx-mpx.c): Remove.
7536 (i386-avx-mpx-linux.c): Remove.
7537 (i386-mmx.c): Remove.
7538 (i386-mmx-linux.c): Remove.
7539 (reg-ia64.c): Remove.
7540 (reg-m32r.c): Remove.
7541 (reg-m68k.c): Remove.
7542 (reg-cf.c): Remove.
7543 (mips-linux.c): Remove.
7544 (mips-dsp-linux.c): Remove.
7545 (mips64-linux.c): Remove.
7546 (mips64-dsp-linux.c): Remove.
7547 (nios2-linux.c): Remove.
7548 (powerpc-32.c): Remove.
7549 (powerpc-32l.c): Remove.
7550 (powerpc-altivec32l.c): Remove.
7551 (powerpc-cell32l.c): Remove.
7552 (powerpc-vsx32l.c): Remove.
7553 (powerpc-isa205-32l.c): Remove.
7554 (powerpc-isa205-altivec32l.c): Remove.
7555 (powerpc-isa205-vsx32l.c): Remove.
7556 (powerpc-e500l.c): Remove.
7557 (powerpc-64l.c): Remove.
7558 (powerpc-altivec64l.c): Remove.
7559 (powerpc-cell64l.c): Remove.
7560 (powerpc-vsx64l.c): Remove.
7561 (powerpc-isa205-64l.c): Remove.
7562 (powerpc-isa205-altivec64l.c): Remove.
7563 (powerpc-isa205-vsx64l.c): Remove.
7564 (s390-linux32.c): Remove.
7565 (s390-linux32v1.c): Remove.
7566 (s390-linux32v2.c): Remove.
7567 (s390-linux64.c): Remove.
7568 (s390-linux64v1.c): Remove.
7569 (s390-linux64v2.c): Remove.
7570 (s390-te-linux64.c): Remove.
7571 (s390-vx-linux64.c): Remove.
7572 (s390-tevx-linux64.c): Remove.
7573 (s390x-linux64.c): Remove.
7574 (s390x-linux64v1.c): Remove.
7575 (s390x-linux64v2.c): Remove.
7576 (s390x-te-linux64.c): Remove.
7577 (s390x-vx-linux64.c): Remove.
7578 (s390x-tevx-linux64.c): Remove.
7579 (tic6x-c64xp-linux.c): Remove.
7580 (tic6x-c64x-linux.c): Remove.
7581 (tic6x-c62x-linux.c): Remove.
7582 (reg-sh.c): Remove.
7583 (reg-sparc64.c): Remove.
7584 (reg-spu.c): Remove.
7585 (amd64.c): Remove.
7586 (amd64-linux.c): Remove.
7587 (amd64-avx.c): Remove.
7588 (amd64-avx-linux.c): Remove.
7589 (amd64-avx-avx512.c): Remove.
7590 (amd64-avx-avx512-linux.c): Remove.
7591 (amd64-mpx.c): Remove.
7592 (amd64-mpx-linux.c): Remove.
7593 (amd64-avx-mpx-avx512-pku.c): Remove.
7594 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7595 (amd64-avx-mpx.c): Remove.
7596 (amd64-avx-mpx-linux.c): Remove.
7597 (x32.c): Remove.
7598 (x32-linux.c): Remove.
7599 (x32-avx.c): Remove.
7600 (x32-avx-linux.c): Remove.
7601 (x32-avx-avx512.c): Remove.
7602 (x32-avx-avx512-linux.c): Remove.
7603 (reg-xtensa.c): Remove.
7604 (reg-tilegx.c): Remove.
7605 (reg-tilegx32.c): Remove.
7606
1672e0d9
SDJ
76072017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7608
7609 * Makefile.in (SFILES): Add "common/environ.c".
7610 (OBJS): Add "common/environ.h".
7611
239b6d10
WT
76122017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7613
7614 * configure.ac: Check if the fs_base and gs_base members of
7615 `struct user_regs_struct' exist.
7616 * config.in: Regenerated.
7617 * configure: Likewise.
7618
694b382c
AT
76192017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7620
7621 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7622 target_read_memory.
7623 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7624 (get_next_pcs_syscall_next_pc): Likewise.
7625
7dc53023
LM
76262016-12-23 Luis Machado <lgustavo@codesourcery.com>
7627
7628 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7629 * nto-x86-low.c: Likewise.
7630
ad02e4fe
SM
76312016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7632
7633 * Makefile.in: Include disable-implicit-rules.mk.
7634
dcb07cfa
PA
76352016-11-23 Pedro Alves <palves@redhat.com>
7636
7637 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7638 (debug_vprintf): Use std::chrono::steady_clock instead of
7639 gettimeofday. Use '.' instead of ':'.
7640 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7641 (get_timestamp): Use std::chrono::steady_clock instead of
7642 gettimeofday.
7643
8629c02c
SM
76442016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7645
7646 * Makefile.in: Fix whitespace formatting.
7647
b593ecca
SM
76482016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7649
7650 * Makefile.in (SFILES, OBS): Flatten list and order
7651 alphabetically.
7652
9986ba08
PA
76532016-11-23 Pedro Alves <palves@redhat.com>
7654
7655 * event-loop.c (handle_file_event): Use warning.
7656 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7657 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7658 Use warning.
7659
4eefa7bc
PA
76602016-11-23 Pedro Alves <palves@redhat.com>
7661
7662 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7663 output.
7664 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7665 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7666 debug_printf and debug_flush for debug output.
7667 * server.c (handle_general_set): Likewise.
7668 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7669 output.
7670
5443506e
SM
76712016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7672
7673 * Makefile.in (.c.o): Replace rule with ...
7674 (%.o: %.c): ... this one.
7675
3b165252
SM
76762016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7677
7678 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7679 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7680 make.
7681 * configure.ac: Remove checks for the make program.
7682 * configure: Re-generate.
7683
0bcda685
PA
76842016-10-28 Pedro Alves <palves@redhat.com>
7685
7686 * Makefile.in (CXX_DIALECT): Get from configure.
7687 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7688 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7689 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7690 * config.in: Regenerate.
7691 * configure: Regenerate.
7692
c3805894
YQ
76932016-10-27 Yao Qi <yao.qi@linaro.org>
7694
7695 * linux-low.c (linux_supports_range_stepping): Return true if
7696 can_software_single_step return true.
7697
89342618
YQ
76982016-10-27 Yao Qi <yao.qi@linaro.org>
7699
7700 * inferiors.c (find_inferior_in_random): New function.
7701 * inferiors.h (find_inferior_in_random): Declare.
7702 * linux-low.c (linux_wait_for_event_filtered): Call
7703 find_inferior_in_random instead of find_inferior.
7704
e3652c84
YQ
77052016-10-27 Yao Qi <yao.qi@linaro.org>
7706
7707 * linux-low.c (linux_wait_1): If single-step breakpoints are
7708 inserted, remove them.
7709
5a04c4cf
PA
77102016-10-26 Pedro Alves <palves@redhat.com>
7711
7712 * linux-low.c (handle_extended_wait): Link parent/child fork
7713 threads.
7714 (linux_wait_1): Unlink them.
7715 (linux_set_resume_request): Ignore resume requests for
7716 already-resumed and unhandled fork child threads.
7717 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7718 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7719 New functions.
7720 (handle_v_requests) <vCont>: Don't call require_running.
7721 * server.h (in_queued_stop_replies): New declaration.
7722
cb93dc7f
YQ
77232016-10-24 Yao Qi <yao.qi@linaro.org>
7724
7725 PR server/20733
7726 * linux-aarch64-low.c (append_insns): Cast the return value to
7727 'uint32_t *'.
7728
a1078bea
YQ
77292016-10-10 Yao Qi <yao.qi@linaro.org>
7730
7731 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7732
1fb77080
SDJ
77332016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7734
7735 * target.c (target_supports_multi_process): New function, moved
7736 from...
7737 * target.h (target_supports_multi_process): ... here. Remove
7738 macro.
7739
39b5a3b9
TT
77402016-10-05 Tom Tromey <tom@tromey.com>
7741
7742 PR remote/20655:
7743 * tracepoint.c (handle_tracepoint_bkpts): Check
7744 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7745
c1d0b70a
YQ
77462016-10-05 Yao Qi <yao.qi@linaro.org>
7747
7748 * configure.srv: Update the path of arm-*.xml files.
7749
0a69eedb
YQ
77502016-10-05 Terry Guo <terry.guo@arm.com>
7751 Yao Qi <yao.qi@linaro.org>
7752
7753 * Makefile.in: Adjust the path of rules.
7754 * configure.srv: Update the path of xml files.
7755 * regformats/arm-with-iwmmxt.dat: Regenerated.
7756 * regformats/arm-with-neon.dat: Likewise.
7757 * regformats/arm-with-vfpv2.dat: Likewise.
7758 * regformats/arm-with-vfpv3.dat Likewise.
7759
17e16485
YQ
77602016-09-30 Yao Qi <yao.qi@linaro.org>
7761
7762 PR gdbserver/20627
7763 * target.c (target_stop_and_wait): Don't call
7764 target_continue_no_signal, use resume_stop instead.
7765
edeeb602
YQ
77662016-09-26 Yao Qi <yao.qi@linaro.org>
7767
7768 * linux-low.c (linux_wait_1): Call debug_exit.
7769
503b1c39
PA
77702016-09-23 Pedro Alves <palves@redhat.com>
7771
7772 * Makefile.in (SFILES): Add common/new-op.c.
7773 (OBS): Add common/new-op.o.
7774 (new-op.o): New rule.
7775
74172ecf
SM
77762016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7777
7778 * .gitinore: Ignore more files.
7779
fc6cda2e
YQ
77802016-09-21 Yao Qi <yao.qi@linaro.org>
7781
7782 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7783 23.
7784
bc1e6c81
SDJ
77852016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7786
7787 * server.c (start_inferior): Call target_mourn_inferior instead of
7788 mourn_inferior; pass ptid_t argument to it.
7789 (resume): Likewise.
7790 (handle_target_event): Likewise.
7791 * target.c (target_mourn_inferior): New function.
7792 * target.h (mourn_inferior): Delete macro.
7793
0e00e962
AA
77942016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7795
7796 * linux-low.c (lwp_is_stepping): New function.
7797
1d8cb77d
CL
77982016-09-06 Carl Love <cel@us.ibm.com>
7799
7800 * server.c (start_inferior): Fixed comment, requested comment change
7801 didn't get updated correctly. Removed reference to ptrace () call as
7802 it is only true on Linux systems.
7803
7313bced
CL
78042016-09-06 Carl Love <cel@us.ibm.com>
7805
7806 * server.c (start_inferior): Do not call
7807 function target_post_create_inferior () if the
7808 inferior process has already exited.
7809
cf6de44d
PA
78102016-09-05 Pedro Alves <palves@redhat.com>
7811
7812 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7813 (COMPILE.pre, CC_LD): Use CXX directly.
7814 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7815 * acinclude.m4: Don't include build-with-cxx.m4.
7816 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7817 * configure: Regenerate.
7818
c1da6748
AT
78192016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7820
7821 PR gdb/19495
7822 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7823 call writing data to own_buf.
7824
f2b9e3df
SDJ
78252016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7826
7827 * target.c (mywait): Call target_wait instead of
7828 the_target->wait.
7829 (target_wait): New function.
7830
049a8570
SDJ
78312016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7832
7833 * server.c (start_inferior): New variable 'ptid'. Replace calls
7834 to the_target->resume by target_continue{,_no_signal}, depending
7835 on the case.
7836 * target.c (target_stop_and_wait): Call target_continue_no_signal
7837 instead of the_target->resume.
7838 (target_continue): New function.
7839
3aa5cfa0
AT
78402016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7841
7842 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7843
754653a7
AZ
78442016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7845
7846 PR server/20491
7847 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7848 ps_prochandle.
7849 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7850 * linux-arm-low.c (ps_get_thread_area): Likewise.
7851 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7852 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7853 * linux-mips-low.c (ps_get_thread_area): Likewise.
7854 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7855 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7856 * linux-x86-low.c (ps_get_thread_area): Likewise.
7857 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7858
ed036b40
PA
78592016-08-19 Pedro Alves <palves@redhat.com>
7860
7861 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7862
c8ef42ee
PA
78632016-08-19 Pedro Alves <palves@redhat.com>
7864
7865 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7866 comment. Use memcpy instead of casting through unsigned long.
7867
9c235a72
PA
78682016-08-19 Pedro Alves <palves@redhat.com>
7869
7870 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7871 allocating around 0x80000000.
7872
201506da
PA
78732016-08-19 Pedro Alves <palves@redhat.com>
7874
7875 PR gdb/20415
7876 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7877 (x32-avx512-linux-ipa.o): New rules.
7878 * configure.ac (x86_64-*-linux*): New x32 check.
7879 * configure.srv (ipa_x32_linux_regobj): New.
7880 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7881 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7882 descriptions.
7883 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7884 descriptions.
7885 * configure: Regenerate.
7886
f348d89a
PA
78872016-08-09 Pedro Alves <palves@redhat.com>
7888
7889 PR gdb/18653
7890 * Makefile.in (OBS): Add signals-state-save-restore.o.
7891 (signals-state-save-restore.o): New rule.
7892 * config.in: Regenerate.
7893 * configure: Regenerate.
7894 * linux-low.c: Include "signals-state-save-restore.h".
7895 (linux_create_inferior): Call
7896 restore_original_signals_state.
7897 * server.c: Include "dispositions-save-restore.h".
7898 (captured_main): Call save_original_signals_state.
7899
1baf5149
PA
79002016-08-05 Pedro Alves <palves@redhat.com>
7901
7902 * configure: Regenerate.
7903
fcd4a73d
YQ
79042016-08-04 Yao Qi <yao.qi@linaro.org>
7905
7906 * linux-low.c (regsets_fetch_inferior_registers): Check
7907 errno is ESRCH or not.
7908
979659d0
YQ
79092016-08-02 Yao Qi <yao.qi@linaro.org>
7910
7911 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7912 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7913 (thread_db_load_search): Update.
7914 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7915 td_ta_set_event and td_ta_event_getmsg.
7916
6598661d
PA
79172016-07-26 Pedro Alves <palves@redhat.com>
7918
7919 PR server/20414
7920 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7921 of unsigned long for 64-bit registers and use uint32_t instead of
7922 unsigned int for 32-bit registers.
7923
9cf12d57
PA
79242016-07-26 Pedro Alves <palves@redhat.com>
7925
7926 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7927 to 'ptrace'.
7928
305450ed
TT
79292016-07-21 Tom Tromey <tom@tromey.com>
7930
7931 * configure: Rebuild.
7932
2583da7c
YQ
79332016-07-21 Yao Qi <yao.qi@linaro.org>
7934
7935 * mem-break.c (find_gdb_breakpoint): Cast bp to
7936 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7937
21536b36
YQ
79382016-07-21 Yao Qi <yao.qi@linaro.org>
7939
7940 * server.c (handle_v_requests): Support s and S actions
7941 if target_supports_software_single_step return true.
7942
8901d193
YQ
79432016-07-21 Yao Qi <yao.qi@linaro.org>
7944
7945 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7946 is resume_step, call maybe_hw_step.
7947 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7948 and unstop them.
7949 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7950 breakpoints or not.
7951 (proceed_one_lwp): If resume request is resume_step, install
7952 reinsert breakpoints and call maybe_hw_step.
7953
0e9a339e
YQ
79542016-07-21 Yao Qi <yao.qi@linaro.org>
7955
7956 * linux-low.c (proceed_one_lwp): Declare.
7957 (linux_resume_one_thread): Remove local variable 'step'.
7958 Lift code enqueue signal. Call proceed_one_lwp instead of
7959 linux_resume_one_lwp.
7960
4281b351
YQ
79612016-07-21 Yao Qi <yao.qi@linaro.org>
7962
7963 * linux-low.c (linux_resume_one_thread): Call
7964 enqueue_pending_signal.
7965
984a2c04
YQ
79662016-07-21 Yao Qi <yao.qi@linaro.org>
7967
7968 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7969 * inferiors.c (do_restore_current_thread_cleanup): New function.
7970 (make_cleanup_restore_current_thread): Likewise.
7971 * linux-low.c (install_software_single_step_breakpoints): Call
7972 make_cleanup_restore_current_thread. Switch current_thread to
7973 thread.
7974
bec903c9
YQ
79752016-07-21 Yao Qi <yao.qi@linaro.org>
7976
7977 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7978 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7979 (clone_one_breakpoint): Likewise.
7980 (delete_reinsert_breakpoints): Change parameter to thread.
7981 Callers updated.
7982 (has_reinsert_breakpoints): Likewise.
7983 (uninsert_reinsert_breakpoints): Likewise.
7984 (reinsert_reinsert_breakpoints): Likewise.
7985 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7986 (delete_reinsert_breakpoints): Likewise.
7987 (reinsert_reinsert_breakpoints): Likewise.
7988 (uninsert_reinsert_breakpoints): Likewise.
7989 (has_reinsert_breakpoints): Likewise.
7990
63c40ec7
YQ
79912016-07-21 Yao Qi <yao.qi@linaro.org>
7992
7993 * inferiors.c (get_thread_process): Make parameter const.
7994 * inferiors.h (get_thread_process): Update declaration.
7995 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7996 Add new parameters child_thread and parent_thread. Callers
7997 updated.
7998 * mem-break.h (clone_all_breakpoints): Update declaration.
7999
9aa76cd0
YQ
80002016-07-21 Yao Qi <yao.qi@linaro.org>
8001
8002 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8003 <command_list, handler>: Remove.
8004 (struct gdb_breakpoint): New.
8005 (struct other_breakpoint): New.
8006 (struct reinsert_breakpoint): New.
8007 (is_gdb_breakpoint): New function.
8008 (any_persistent_commands): Update command_list if
8009 is_gdb_breakpoint returns true.
8010 (set_breakpoint): Create breakpoints according to their types.
8011 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8012 (set_gdb_breakpoint_1): Likewise.
8013 (set_gdb_breakpoint): Likewise.
8014 (clear_breakpoint_conditions): Change parameter type to
8015 'struct gdb_breakpoint *'.
8016 (clear_breakpoint_commands): Likewise.
8017 (clear_breakpoint_conditions_and_commands): Likewise.
8018 (add_condition_to_breakpoint): Likewise.
8019 (add_breakpoint_condition): Likewise.
8020 (add_commands_to_breakpoint): Likewise.
8021 (check_breakpoints): Check other_breakpoint.
8022 (clone_one_breakpoint): Clone breakpopint according to its type.
8023 * mem-break.h (struct gdb_breakpoint): Declare.
8024 (set_gdb_breakpoint): Update declaration.
8025 (clear_breakpoint_conditions_and_commands): Likewise.
8026 (add_breakpoint_condition): Likewise.
8027 (add_breakpoint_commands): Likewise.
8028 * server.c (process_point_options): Change parameter type to
8029 'struct gdb_breakpoint *'.
8030
811f8301
YQ
80312016-07-21 Yao Qi <yao.qi@linaro.org>
8032
8033 * mem-break.c (set_breakpoint_at): Rename it to ...
8034 (set_breakpoint_type_at): ... it.
8035 (set_breakpoint_at): Call set_breakpoint_type_at.
8036 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8037 * mem-break.h (set_breakpoint_at): Update comments.
8038
b1c51e36
CLT
80392016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8040
8041 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8042 to buf parameter.
8043 (nios2_store_gregset): Likewise.
8044
ced2dffb
PA
80452016-07-01 Pedro Alves <palves@redhat.com>
8046 Antoine Tremblay <antoine.tremblay@ericsson.com>
8047
8048 * linux-low.c: Change interface to take the target lwp_info
8049 pointer directly and return void. Handle detaching from a zombie
8050 thread.
8051 (linux_detach_lwp_callback): New function.
8052 (linux_detach): Detach from the leader thread after detaching from
8053 the clone threads.
8054
2ac09a5b
YQ
80552016-06-28 Yao Qi <yao.qi@linaro.org>
8056
8057 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8058 for variable new_offset.
8059 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8060 (aarch64_ftrace_insn_reloc_cb): Likewise.
8061 (aarch64_ftrace_insn_reloc_tb): Likewise.
8062 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8063 PRIx64 instead of PRIx32.
8064
79e7fd4f
YQ
80652016-06-28 Yao Qi <yao.qi@linaro.org>
8066
8067 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8068 (the_low_target): Install arm_get_syscall_trapinfo.
8069
061fc021
YQ
80702016-06-28 Yao Qi <yao.qi@linaro.org>
8071
8072 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8073 function.
8074 (the_low_target): Install aarch64_get_syscall_trapinfo.
8075
4cc32bec
YQ
80762016-06-28 Yao Qi <yao.qi@linaro.org>
8077
8078 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8079 Callers updated.
8080 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8081 Remove parameter sysno.
8082 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8083 sysret.
8084
782c1122
AA
80852016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8086
8087 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8088 (s390_emit_ne_goto): Likewise.
8089 (s390_emit_lt_goto): Likewise.
8090 (s390_emit_le_goto): Likewise.
8091 (s390_emit_gt_goto): Likewise.
8092 (s390_emit_ge_goto): Likewise.
8093 (s390x_emit_eq_goto): Likewise.
8094 (s390x_emit_ne_goto): Likewise.
8095 (s390x_emit_lt_goto): Likewise.
8096 (s390x_emit_le_goto): Likewise.
8097 (s390x_emit_gt_goto): Likewise.
8098 (s390x_emit_ge_goto): Likewise.
8099 (s390_emit_ops_impl): Mark variable static.
8100 (s390x_emit_ops): Likewise.
8101
2e7b624b
YQ
81022016-06-17 Yao Qi <yao.qi@linaro.org>
8103
8104 * linux-low.c (handle_extended_wait): Call
8105 uninsert_reinsert_breakpoints for the parent process. Remove
8106 reinsert breakpoints from the child process. Reinsert them to
8107 the parent process when vfork is done.
8108 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8109 (reinsert_reinsert_breakpoints): New function.
8110 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8111 (reinsert_reinsert_breakpoints): Declare.
8112
8a81c5d7
YQ
81132016-06-17 Yao Qi <yao.qi@linaro.org>
8114
8115 * linux-low.c (handle_extended_wait): If the parent is doing
8116 step-over, remove the reinsert breakpoints from the forked child.
8117
f50bf8e5
YQ
81182016-06-17 Yao Qi <yao.qi@linaro.org>
8119
8120 * linux-low.c (unsuspend_all_lwps): Declare.
8121 (linux_low_filter_event): If thread exited, call finish_step_over.
8122 If step-over is finished, unsuspend other threads.
8123
8376a3cb
YQ
81242016-06-17 Yao Qi <yao.qi@linaro.org>
8125
8126 * linux-low.c (linux_resume_one_lwp_throw): Assert
8127 has_reinsert_breakpoints returns false.
8128 * mem-break.c (delete_disabled_breakpoints): Assert
8129 bp type isn't reinsert_breakpoint.
8130
f79b145d
YQ
81312016-06-17 Yao Qi <yao.qi@linaro.org>
8132
8133 * linux-low.c (maybe_hw_step): New function.
8134 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8135 (finish_step_over): Switch current_thread to lwp temporarily,
8136 and assert has_reinsert_breakpoints returns true.
8137 (proceed_one_lwp): Call maybe_hw_step.
8138 * mem-break.c (has_reinsert_breakpoints): New function.
8139 * mem-break.h (has_reinsert_breakpoints): Declare.
8140
0ae534d2
JT
81412016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8142
8143 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8144
fcdad592
YQ
81452016-05-17 Yao Qi <yao.qi@linaro.org>
8146
8147 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8148 instead of find_inferior.
8149
9e784964
YQ
81502016-05-05 Yao Qi <yao.qi@linaro.org>
8151
8152 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8153 Initialize res to zero.
8154
cf2ebb6e
YQ
81552016-05-05 Yao Qi <yao.qi@linaro.org>
8156
8157 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8158 to uint32_t.
8159
c1aebf87
UW
81602016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8161
8162 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8163 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8164 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8165
35fd2deb 81662016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8167 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8168
8169 * tracepoint.c (write_inferior_int8): New function.
8170 (cmd_qtenable_disable): Write enable flag using
8171 write_inferior_int8.
8172
484b3c32
YQ
81732016-04-25 Yao Qi <yao.qi@linaro.org>
8174
8175 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8176 (need_step_over_p): Return zero if the LWP has pending signals
8177 can be delivered on software single step target.
8178
85ba7d86
YQ
81792016-04-25 Yao Qi <yao.qi@linaro.org>
8180
8181 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8182 return instead of error.
8183
3539aa13
YQ
81842016-04-22 Yao Qi <yao.qi@linaro.org>
8185
8186 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8187 to 23.
8188
5b061e98
YQ
81892016-04-22 Yao Qi <yao.qi@linaro.org>
8190
8191 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8192 signal when stepping over breakpoint with software single
8193 step.
8194
3451269c
PA
81952016-04-21 Pedro Alves <palves@redhat.com>
8196
8197 * linux-s390-low.c (s390_collect_ptrace_register)
8198 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8199 add casts.
8200 (s390_check_regset): Use void * instead of gdb_byte *.
8201
a2358508
PA
82022016-04-20 Pedro Alves <palves@redhat.com>
8203
8204 * configure: Renegerate.
8205
6885166d
YQ
82062016-04-20 Yao Qi <yao.qi@linaro.org>
8207
8208 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8209 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8210 number 16.
8211 (arm_store_gregset): Likewise.
8212
2b863f51
WT
82132016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8214
8215 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8216 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8217 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8218 (amd64-avx-mpx-linux.c): New rules.
8219 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8220 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8221 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8222 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8223 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8224 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8225 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8226 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8227 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8228 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8229 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8230 * linux-x86-low.c (x86_linux_read_description): Add case for
8231 X86_XSTATE_AVX_MPX_MASK.
8232 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8233 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8234 init_registers_i386_avx_mpx_linux.
8235 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8236 (initialize_low_tracepoint): Call
8237 init_registers_i386_avx_mpx_linux.
8238 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8239 (initialize_low_tracepoint): Call
8240 init_registers_amd64_avx_mpx_linux.
8241 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8242 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8243 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8244 declarations.
8245
9b30624b
PA
82462016-04-18 Pedro Alves <palves@redhat.com>
8247
8248 * configure: Regenerate.
8249
45e3745e
AT
82502016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8251
8252 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8253 (aarch64_emit_sub): Likewise.
8254
2afc13ff
PA
82552016-04-12 Pedro Alves <palves@redhat.com>
8256
8257 * utils.c (prepare_to_throw_exception): Delete.
8258
6e774b13
SM
82592016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8260
8261 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8262
4dca19f8
MK
82632016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8264
8265 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8266
d0a9981f
MK
82672016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8268
8269 * linux-aarch64-ipa.c: Add <elf.h> include.
8270 * linux-ppc-ipa.c: Add <elf.h> include.
8271 * linux-s390-ipa.c: Add <elf.h> include.
8272
252db07e
MK
82732016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8274
8275 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8276 (get_raw_reg_ptr): Likewise.
8277 (get_trace_state_variable_value_ptr): Likewise.
8278 (set_trace_state_variable_value_ptr): Likewise.
8279 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8280 char *.
8281
14e2b6d9
MK
82822016-03-31 Wei-cheng Wang <cole945@gmail.com>
8283 Marcin Kościelnicki <koriakin@0x04.net>
8284
8285 PR/17221
8286 * linux-ppc-low.c (emit_insns): New function.
8287 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8288 (ppc_emit_prologue): New function.
8289 (ppc_emit_epilogue): New function.
8290 (ppc_emit_add): New function.
8291 (ppc_emit_sub): New function.
8292 (ppc_emit_mul): New function.
8293 (ppc_emit_lsh): New function.
8294 (ppc_emit_rsh_signed): New function.
8295 (ppc_emit_rsh_unsigned): New function.
8296 (ppc_emit_ext): New function.
8297 (ppc_emit_zero_ext): New function.
8298 (ppc_emit_log_not): New function.
8299 (ppc_emit_bit_and): New function.
8300 (ppc_emit_bit_or): New function.
8301 (ppc_emit_bit_xor): New function.
8302 (ppc_emit_bit_not): New function.
8303 (ppc_emit_equal): New function.
8304 (ppc_emit_less_signed): New function.
8305 (ppc_emit_less_unsigned): New function.
8306 (ppc_emit_ref): New function.
8307 (ppc_emit_const): New function.
8308 (ppc_emit_reg): New function.
8309 (ppc_emit_pop): New function.
8310 (ppc_emit_stack_flush): New function.
8311 (ppc_emit_swap): New function.
8312 (ppc_emit_stack_adjust): New function.
8313 (ppc_emit_call): New function.
8314 (ppc_emit_int_call_1): New function.
8315 (ppc_emit_void_call_2): New function.
8316 (ppc_emit_if_goto): New function.
8317 (ppc_emit_goto): New function.
8318 (ppc_emit_eq_goto): New function.
8319 (ppc_emit_ne_goto): New function.
8320 (ppc_emit_lt_goto): New function.
8321 (ppc_emit_le_goto): New function.
8322 (ppc_emit_gt_goto): New function.
8323 (ppc_emit_ge_goto): New function.
8324 (ppc_write_goto_address): New function.
8325 (ppc_emit_ops_impl): New static variable.
8326 (ppc64v1_emit_prologue): New function.
8327 (ppc64v2_emit_prologue): New function.
8328 (ppc64_emit_epilogue): New function.
8329 (ppc64_emit_add): New function.
8330 (ppc64_emit_sub): New function.
8331 (ppc64_emit_mul): New function.
8332 (ppc64_emit_lsh): New function.
8333 (ppc64_emit_rsh_signed): New function.
8334 (ppc64_emit_rsh_unsigned): New function.
8335 (ppc64_emit_ext): New function.
8336 (ppc64_emit_zero_ext): New function.
8337 (ppc64_emit_log_not): New function.
8338 (ppc64_emit_bit_and): New function.
8339 (ppc64_emit_bit_or): New function.
8340 (ppc64_emit_bit_xor): New function.
8341 (ppc64_emit_bit_not): New function.
8342 (ppc64_emit_equal): New function.
8343 (ppc64_emit_less_signed): New function.
8344 (ppc64_emit_less_unsigned): New function.
8345 (ppc64_emit_ref): New function.
8346 (ppc64_emit_const): New function.
8347 (ppc64v1_emit_reg): New function.
8348 (ppc64v2_emit_reg): New function.
8349 (ppc64_emit_pop): New function.
8350 (ppc64_emit_stack_flush): New function.
8351 (ppc64_emit_swap): New function.
8352 (ppc64v1_emit_call): New function.
8353 (ppc64v2_emit_call): New function.
8354 (ppc64v1_emit_int_call_1): New function.
8355 (ppc64v2_emit_int_call_1): New function.
8356 (ppc64v1_emit_void_call_2): New function.
8357 (ppc64v2_emit_void_call_2): New function.
8358 (ppc64_emit_if_goto): New function.
8359 (ppc64_emit_eq_goto): New function.
8360 (ppc64_emit_ne_goto): New function.
8361 (ppc64_emit_lt_goto): New function.
8362 (ppc64_emit_le_goto): New function.
8363 (ppc64_emit_gt_goto): New function.
8364 (ppc64_emit_ge_goto): New function.
8365 (ppc64v1_emit_ops_impl): New static variable.
8366 (ppc64v2_emit_ops_impl): New static variable.
8367 (ppc_emit_ops): New function.
8368 (linux_low_target): Wire in ppc_emit_ops.
8369
a2174ba4
MK
83702016-03-31 Wei-cheng Wang <cole945@gmail.com>
8371 Marcin Kościelnicki <koriakin@0x04.net>
8372
8373 PR/17221
8374 * Makefile.in: Add powerpc-*-ipa.o
8375 * configure.srv: Add ipa_obj for powerpc*-linux.
8376 * linux-ppc-ipa.c: New file.
8377 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8378 includes.
8379 (PPC_FIELD): New macro.
8380 (PPC_SEXT): New macro.
8381 (PPC_OP6): New macro.
8382 (PPC_BO): New macro.
8383 (PPC_LI): New macro.
8384 (PPC_BD): New macro.
8385 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8386 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8387 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8388 (ppc_get_thread_area): New function.
8389 (is_elfv2_inferior): New function.
8390 (gen_ds_form): New function.
8391 (GEN_STD): New macro.
8392 (GEN_STDU): New macro.
8393 (GEN_LD): New macro.
8394 (GEN_LDU): New macro.
8395 (gen_d_form): New function.
8396 (GEN_ADDI): New macro.
8397 (GEN_ADDIS): New macro.
8398 (GEN_LI): New macro.
8399 (GEN_LIS): New macro.
8400 (GEN_ORI): New macro.
8401 (GEN_ORIS): New macro.
8402 (GEN_LWZ): New macro.
8403 (GEN_STW): New macro.
8404 (GEN_STWU): New macro.
8405 (gen_xfx_form): New function.
8406 (GEN_MFSPR): New macro.
8407 (GEN_MTSPR): New macro.
8408 (GEN_MFCR): New macro.
8409 (GEN_MTCR): New macro.
8410 (GEN_SYNC): New macro.
8411 (GEN_LWSYNC): New macro.
8412 (gen_x_form): New function.
8413 (GEN_OR): New macro.
8414 (GEN_MR): New macro.
8415 (GEN_LWARX): New macro.
8416 (GEN_STWCX): New macro.
8417 (GEN_CMPW): New macro.
8418 (gen_md_form): New function.
8419 (GEN_RLDICL): New macro.
8420 (GEN_RLDICR): New macro.
8421 (gen_i_form): New function.
8422 (GEN_B): New macro.
8423 (GEN_BL): New macro.
8424 (gen_b_form): New function.
8425 (GEN_BNE): New macro.
8426 (GEN_LOAD): New macro.
8427 (GEN_STORE): New macro.
8428 (gen_limm): New function.
8429 (gen_atomic_xchg): New function.
8430 (gen_call): New function.
8431 (ppc_relocate_instruction): New function.
8432 (ppc_install_fast_tracepoint_jump_pad): New function.
8433 (ppc_get_min_fast_tracepoint_insn_len): New function.
8434 (ppc_get_ipa_tdesc_idx): New function.
8435 (the_low_target): Wire in the new functions.
8436 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8437 tdescs.
8438 * linux-ppc-tdesc.h: New file.
8439
a13c4696
MK
84402016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8441
8442 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8443 (alloc_jump_pad_buffer): New function.
8444 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8445 (alloc_jump_pad_buffer): New function.
8446 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8447 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8448 (alloc_jump_pad_buffer): New function.
8449 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8450 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8451 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8452 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8453
1cda1512
MK
84542016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8455
8456 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8457 * linux-amd64-ipa.c: Likewise.
8458 * linux-i386-ipa.c: Likewise.
8459 * linux-s390-ipa.c: Likewise.
8460 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8461 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8462 set_trace_state_variable_value_ptr.
8463 (struct ipa_sym_addresses): Likewise.
8464 (symbol_list): Likewise.
8465 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8466 accessing gdb_collect directly.
8467 (gdb_collect_ptr_type): New typedef.
8468 (get_raw_reg_ptr_type): New typedef.
8469 (get_trace_state_variable_value_ptr_type): New typedef.
8470 (set_trace_state_variable_value_ptr_type): New typedef.
8471 (gdb_collect_ptr): New global.
8472 (get_raw_reg_ptr): New global.
8473 (get_trace_state_variable_value_ptr): New global.
8474 (set_trace_state_variable_value_ptr): New global.
8475 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8476 accessing get_raw_reg directly.
8477 (get_get_tsv_func_addr): Likewise for
8478 get_trace_state_variable_value_ptr.
8479 (get_set_tsv_func_addr): Likewise for
8480 set_trace_state_variable_value_ptr.
8481 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8482
72fb5488
SM
84832016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8484
8485 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8486
28170b88
MK
84872016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8488
8489 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8490 packets.
8491 (relocate_instruction): Remove own_buf.
8492 * server.c (own_buf): Make global.
8493 (handle_v_requests): Make global.
8494 * server.h (own_buf): New declaration.
8495 (handle_v_requests): New prototype.
8496
f39e8743
MK
84972016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8498
8499 PR 18377
8500 * linux-s390-low.c (add_insns): New function.
8501 (s390_emit_prologue): New function.
8502 (s390_emit_epilogue): New function.
8503 (s390_emit_add): New function.
8504 (s390_emit_sub): New function.
8505 (s390_emit_mul): New function.
8506 (s390_emit_lsh): New function.
8507 (s390_emit_rsh_signed): New function.
8508 (s390_emit_rsh_unsigned): New function.
8509 (s390_emit_ext): New function.
8510 (s390_emit_log_not): New function.
8511 (s390_emit_bit_and): New function.
8512 (s390_emit_bit_or): New function.
8513 (s390_emit_bit_xor): New function.
8514 (s390_emit_bit_not): New function.
8515 (s390_emit_equal): New function.
8516 (s390_emit_less_signed): New function.
8517 (s390_emit_less_unsigned): New function.
8518 (s390_emit_ref): New function.
8519 (s390_emit_if_goto): New function.
8520 (s390_emit_goto): New function.
8521 (s390_write_goto_address): New function.
8522 (s390_emit_litpool): New function.
8523 (s390_emit_const): New function.
8524 (s390_emit_call): New function.
8525 (s390_emit_reg): New function.
8526 (s390_emit_pop): New function.
8527 (s390_emit_stack_flush): New function.
8528 (s390_emit_zero_ext): New function.
8529 (s390_emit_swap): New function.
8530 (s390_emit_stack_adjust): New function.
8531 (s390_emit_set_r2): New function.
8532 (s390_emit_int_call_1): New function.
8533 (s390_emit_void_call_2): New function.
8534 (s390_emit_eq_goto): New function.
8535 (s390_emit_ne_goto): New function.
8536 (s390_emit_lt_goto): New function.
8537 (s390_emit_le_goto): New function.
8538 (s390_emit_gt_goto): New function.
8539 (s390_emit_ge_goto): New function.
8540 (s390x_emit_prologue): New function.
8541 (s390x_emit_epilogue): New function.
8542 (s390x_emit_add): New function.
8543 (s390x_emit_sub): New function.
8544 (s390x_emit_mul): New function.
8545 (s390x_emit_lsh): New function.
8546 (s390x_emit_rsh_signed): New function.
8547 (s390x_emit_rsh_unsigned): New function.
8548 (s390x_emit_ext): New function.
8549 (s390x_emit_log_not): New function.
8550 (s390x_emit_bit_and): New function.
8551 (s390x_emit_bit_or): New function.
8552 (s390x_emit_bit_xor): New function.
8553 (s390x_emit_bit_not): New function.
8554 (s390x_emit_equal): New function.
8555 (s390x_emit_less_signed): New function.
8556 (s390x_emit_less_unsigned): New function.
8557 (s390x_emit_ref): New function.
8558 (s390x_emit_if_goto): New function.
8559 (s390x_emit_const): New function.
8560 (s390x_emit_call): New function.
8561 (s390x_emit_reg): New function.
8562 (s390x_emit_pop): New function.
8563 (s390x_emit_stack_flush): New function.
8564 (s390x_emit_zero_ext): New function.
8565 (s390x_emit_swap): New function.
8566 (s390x_emit_stack_adjust): New function.
8567 (s390x_emit_int_call_1): New function.
8568 (s390x_emit_void_call_2): New function.
8569 (s390x_emit_eq_goto): New function.
8570 (s390x_emit_ne_goto): New function.
8571 (s390x_emit_lt_goto): New function.
8572 (s390x_emit_le_goto): New function.
8573 (s390x_emit_gt_goto): New function.
8574 (s390x_emit_ge_goto): New function.
8575 (s390_emit_ops): New function.
8576 (struct linux_target_ops): Fill in emit_ops hook.
8577
abd9baf9
MK
85782016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8579
8580 PR 18377
8581 * Makefile.in: Add s390 IPA files.
8582 * configure.srv: Build IPA for s390.
8583 * linux-s390-ipa.c: New file.
8584 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8585 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8586 (tdesc_s390_linux32): Likewise.
8587 (init_registers_s390_linux32v1): Likewise.
8588 (tdesc_s390_linux32v1): Likewise.
8589 (init_registers_s390_linux32v2): Likewise.
8590 (tdesc_s390_linux32v2): Likewise.
8591 (init_registers_s390_linux64): Likewise.
8592 (tdesc_s390_linux64): Likewise.
8593 (init_registers_s390_linux64v1): Likewise.
8594 (tdesc_s390_linux64v1): Likewise.
8595 (init_registers_s390_linux64v2): Likewise.
8596 (tdesc_s390_linux64v2): Likewise.
8597 (init_registers_s390_te_linux64): Likewise.
8598 (tdesc_s390_te_linux64): Likewise.
8599 (init_registers_s390_vx_linux64): Likewise.
8600 (tdesc_s390_vx_linux64): Likewise.
8601 (init_registers_s390_tevx_linux64): Likewise.
8602 (tdesc_s390_tevx_linux64): Likewise.
8603 (init_registers_s390x_linux64): Likewise.
8604 (tdesc_s390x_linux64): Likewise.
8605 (init_registers_s390x_linux64v1): Likewise.
8606 (tdesc_s390x_linux64v1): Likewise.
8607 (init_registers_s390x_linux64v2): Likewise.
8608 (tdesc_s390x_linux64v2): Likewise.
8609 (init_registers_s390x_te_linux64): Likewise.
8610 (tdesc_s390x_te_linux64): Likewise.
8611 (init_registers_s390x_vx_linux64): Likewise.
8612 (tdesc_s390x_vx_linux64): Likewise.
8613 (init_registers_s390x_tevx_linux64): Likewise.
8614 (tdesc_s390x_tevx_linux64): Likewise.
8615 (have_hwcap_s390_vx): New static variable.
8616 (s390_arch_setup): Fill have_hwcap_s390_vx.
8617 (s390_get_thread_area): New function.
8618 (s390_ft_entry_gpr_esa): New const.
8619 (s390_ft_entry_gpr_zarch): New const.
8620 (s390_ft_entry_misc): New const.
8621 (s390_ft_entry_fr): New const.
8622 (s390_ft_entry_vr): New const.
8623 (s390_ft_main_31): New const.
8624 (s390_ft_main_64): New const.
8625 (s390_ft_exit_fr): New const.
8626 (s390_ft_exit_vr): New const.
8627 (s390_ft_exit_misc): New const.
8628 (s390_ft_exit_gpr_esa): New const.
8629 (s390_ft_exit_gpr_zarch): New const.
8630 (append_insns): New function.
8631 (s390_relocate_instruction): New function.
8632 (s390_install_fast_tracepoint_jump_pad): New function.
8633 (s390_get_min_fast_tracepoint_insn_len): New function.
8634 (s390_get_ipa_tdesc_idx): New function.
8635 (struct linux_target_ops): Wire in the above functions.
8636 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8637 * linux-s390-tdesc.h: New file.
8638
a4105d04
MK
86392016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8640
8641 * linux-s390-low.c (s390_supports_tracepoints): New function.
8642 (struct linux_target_ops): Fill supports_tracepoints hook.
8643
35ac8b3e
YQ
86442016-03-18 Yao Qi <yao.qi@linaro.org>
8645
8646 * linux-low.c (lwp_signal_can_be_delivered): New function.
8647 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8648
94610ec4
YQ
86492016-03-18 Yao Qi <yao.qi@linaro.org>
8650
8651 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8652 0 if signal is enqueued. Remove 'signal' from one debugging
8653 message. Move one debugging message to some lines below.
8654 Remove code setting 'signal' to 0.
8655
80aea927
YQ
86562016-03-18 Yao Qi <yao.qi@linaro.org>
8657
8658 * linux-low.c (linux_low_filter_event): Remove redundant
8659 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8660
b04fd3be
MK
86612016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8662
8663 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8664 (struct linux_target_ops): Wire in the above.
8665
c40c8d4b
YQ
86662016-03-03 Yao Qi <yao.qi@linaro.org>
8667
8668 * linux-low.c: Update comments to start_step_over.
8669
0f8288ae
YQ
86702016-03-03 Yao Qi <yao.qi@linaro.org>
8671
8672 PR server/19736
8673 * linux-low.c (handle_extended_wait): Set child suspended
8674 if event_lwp->bp_reinsert isn't zero.
8675
fdbd04a8
YQ
86762016-03-02 Yao Qi <yao.qi@linaro.org>
8677
8678 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8679 enqueue_pending_signal.
8680
6896a8fa
MK
86812016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8682
8683 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8684 is actually loaded.
8685
ab503087
MK
86862016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8687
8688 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8689 (s390_regmap_3264) [!__s390x__]: New global.
8690 (s390_collect_ptrace_register): Skip map entries containing -1.
8691 (s390_supply_ptrace_register): Ditto.
8692 (s390_fill_gprs_high): New function.
8693 (s390_store_gprs_high): New function.
8694 (s390_regsets): Add NT_S390_HIGH_GPRS.
8695 (s390_get_hwcap): Enable on 31-bit.
8696 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8697 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8698 Detect NT_S390_HIGH_GPRS.
8699 (s390_usrregs_info_3264): Enable on 31-bit.
8700 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8701 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8702
ae91f625
MK
87032016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8704
8705 PR gdb/13808
8706 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8707 * configure.srv: Ditto.
8708 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8709 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8710 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8711 (init_registers_amd64_linux): Remove prototype.
8712 (tdesc_amd64_linux): Remove declaration.
8713 (get_ipa_tdesc): New function.
8714 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8715 initialize remaining tdescs.
8716 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8717 (init_registers_i386_linux): Remove prototype.
8718 (tdesc_i386_linux): Remove declaration.
8719 (get_ipa_tdesc): New function.
8720 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8721 initialize remaining tdescs.
8722 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8723 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8724 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8725 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8726 (x86_get_ipa_tdesc_idx): New function.
8727 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8728 * linux-x86-tdesc.h: New file.
8729 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8730 (target_get_ipa_tdesc_idx): New macro.
8731 * tracepoint.c (ipa_tdesc_idx): New macro.
8732 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8733 (symbol_list): Add ipa_tdesc_idx.
8734 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8735 (ipa_tdesc): Remove.
8736 (ipa_tdesc_idx): New variable.
8737 (get_context_regcache): Use get_ipa_tdesc.
8738 (gdb_collect): Ditto.
8739 (gdb_probe): Ditto.
8740 * tracepoint.h (get_ipa_tdesc): New prototype.
8741 (ipa_tdesc): Remove.
8742
e7ad2f14
PA
87432016-02-24 Pedro Alves <palves@redhat.com>
8744
8745 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8746 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8747 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8748 Factor out common code between the USE_SIGTRAP_SIGINFO and
8749 !USE_SIGTRAP_SIGINFO blocks.
8750 (linux_low_filter_event): Call save_stop_reason instead of
8751 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8752 Update comments.
8753 (linux_wait_1): Update comments.
8754
657f9cde
WW
87552016-02-24 Wei-cheng Wang <cole945@gmail.com>
8756
8757 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8758 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8759 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8760 ppc_insert_point, ppc_remove_point.
8761
b00b61e1
MK
87622016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8763
8764 * linux-s390-low.c (s390_supports_z_point_type): New function.
8765 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8766
553cb527
YQ
87672016-02-16 Yao Qi <yao.qi@linaro.org>
8768
8769 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8770 PC. Get pc from regcache_read_pc.
8771
a5652c21
YQ
87722016-02-12 Yao Qi <yao.qi@linaro.org>
8773
8774 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8775 or linux_get_pc_32bit.
8776 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8777
ed443b61
YQ
87782016-02-12 Yao Qi <yao.qi@linaro.org>
8779
8780 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8781 arm_linux_get_next_pcs_fixup.
8782
020ecd38
MK
87832016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8784
8785 * tracepoint.c (x_tracepoint_action_download): Change
8786 write_inferior_data_ptr to write_inferior_data_pointer.
8787 (cmd_qtstart): Likewise.
8788 (write_inferior_data_ptr): Remove.
8789 (download_agent_expr): Change write_inferior_data_ptr to
8790 write_inferior_data_pointer.
8791 (download_tracepoint_1): Likewise.
8792 (download_tracepoint): Likewise.
8793 (download_trace_state_variables): Likewise.
8794
7cae9051
WW
87952016-02-11 Wei-cheng Wang <cole945@gmail.com>
8796 Marcin Kościelnicki <koriakin@0x04.net>
8797
8798 * tracepoint.c (struct tracepoint_action_ops): Remove.
8799 (struct tracepoint_action): Remove ops.
8800 (m_tracepoint_action_download, r_tracepoint_action_download)
8801 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8802 size and offset accordingly.
8803 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8804 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8805 (tracepoint_action_send, tracepoint_action_download): New functions.
8806 Helpers for trace action handlers.
8807 (add_tracepoint_action): Remove setup actions ops.
8808 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8809
9f6a71b4
YQ
88102016-02-10 Yao Qi <yao.qi@linaro.org>
8811
8812 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8813
1e94266c
SM
88142016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8815
8816 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8817 to AC_OUTPUT.
8818 * configure: Regenerate.
8819
8adce034
SM
88202016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8821
8822 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8823 void * to gdb_byte *.
8824 * linux-low.c (siginfo_fixup): Likewise.
8825 (linux_xfer_siginfo): Likewise.
8826 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8827 Likewise.
8828 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8829
93813b37
WT
88302016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8831
8832 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8833 to srv_tgtobj.
8834 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8835 to srv_tgtobj.
8836 * linux-x86-low.c [__x86_64__]: Include
8837 "nat/amd64-linux-siginfo.h".
8838 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8839 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8840 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8841 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8842 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8843 (cpt_si_fd, si_timerid, si_overrun): Move from
8844 nat/amd64-linux-siginfo.c.
8845 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8846
8424cc97
SM
88472016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8848
8849 * server.c (skip_to_semicolon): Remove.
8850 (process_point_options): Use strchrnul instead of
8851 skip_to_semicolon.
8852
4d18591b
YQ
88532016-01-26 Yao Qi <yao.qi@linaro.org>
8854
8855 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8856 * linux-low.c (install_software_single_step_breakpoints): Don't
8857 call regcache_read_pc.
8858 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8859 argument pc.
8860
d8020970
YQ
88612016-01-26 Yao Qi <yao.qi@linaro.org>
8862
8863 * linux-low.c (install_software_single_step_breakpoints): Call
8864 regcache_read_pc instead of get_pc.
8865
8b207339
YQ
88662016-01-26 Yao Qi <yao.qi@linaro.org>
8867
8868 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8869 (unblock_async_io): Rename to ...
8870 (block_unblock_async_io): ... it. New function.
8871 (enable_async_io): Don't install SIGIO handler. Unblock it
8872 instead.
8873 (disable_async_io): Don't ignore SIGIO. Block it instead.
8874 (initialize_async_io): Install SIGIO handler. Don't call
8875 unblock_async_io.
8876
18879fef
YQ
88772016-01-26 Yao Qi <yao.qi@linaro.org>
8878
8879 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8880 first character is '\003', call *the_target->request_interrupt.
8881
a0f8e08a
YQ
88822016-01-25 Yao Qi <yao.qi@linaro.org>
8883
8884 * remote-utils.c (new_thread_notify): Remove.
8885 (dead_thread_notify): Likewise.
8886 * remote-utils.h (new_thread_notify): Remove declaration.
8887 (dead_thread_notify): Likewise.
8888
cc5fd9ab
MK
88892016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8890
8891 * gdb.trace/pending.exp: Fix expected message on continue.
8892
99e8eb11
MK
88932016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8894
8895 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8896 it works properly on big-endian machines where sizeof (CORE_ADDR)
8897 != sizeof (void *).
8898
a994041d
PA
88992016-01-21 Pedro Alves <palves@redhat.com>
8900
8901 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8902 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8903 * configure: Regenerate.
8904
f7a6a40d
YQ
89052016-01-21 Yao Qi <yao.qi@linaro.org>
8906
8907 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8908 is_thumb and set it according to CPSR saved on the stack.
8909 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8910 arm_sigreturn_next_pc.
8911
6f69e520
YQ
89122016-01-18 Yao Qi <yao.qi@linaro.org>
8913
8914 * linux-low.c (linux_set_pc_64bit): New function.
8915 (linux_get_pc_64bit): New function.
8916 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8917 Declare.
8918 * linux-sparc-low.c (debug_threads): Remove declaration.
8919 (sparc_get_pc): Remove.
8920 (the_low_target): Use linux_get_pc_64bit instead of
8921 sparc_get_pc.
8922 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8923 (the_low_target): Use linux_get_pc_64bit and
8924 linux_set_pc_64bit.
8925
276d4552
YQ
89262016-01-18 Yao Qi <yao.qi@linaro.org>
8927
8928 * linux-arm-low.c (debug_threads): Remove declaration.
8929 (arm_get_pc, arm_set_pc): Remove.
8930 (the_low_target): Use linux_get_pc_32bit and
8931 linux_set_pc_32bit.
8932 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8933 (the_low_target): Use linux_get_pc_32bit and
8934 linux_set_pc_32bit.
8935 * linux-cris-low.c (debug_threads): Remove declaration.
8936 (cris_get_pc, cris_set_pc,): Remove.
8937 (the_low_target): Use linux_get_pc_32bit and
8938 linux_set_pc_32bit.
8939 * linux-crisv32-low.c (debug_threads): Remove declaration.
8940 (cris_get_pc, cris_set_pc): Remove.
8941 (the_low_target): Use linux_get_pc_32bit and
8942 linux_set_pc_32bit.
8943 * linux-low.c: Include inttypes.h.
8944 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8945 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8946 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8947 (the_low_target): Use linux_get_pc_32bit and
8948 linux_set_pc_32bit.
8949 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8950 (the_low_target): Use linux_get_pc_32bit and
8951 linux_set_pc_32bit.
8952 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8953 (the_low_target): Use linux_get_pc_32bit and
8954 linux_set_pc_32bit.
8955 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8956 (the_low_target): Use linux_get_pc_32bit and
8957 linux_set_pc_32bit.
8958 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8959 (the_low_target): Use linux_get_pc_32bit and
8960 linux_set_pc_32bit.
8961
eb0edac8
GB
89622016-01-18 Gary Benson <gbenson@redhat.com>
8963
8964 * configure.ac (AC_FUNC_FORK): New check.
8965 * config.in: Regenerate.
8966 * configure: Likewise.
8967
1b451dda
YQ
89682016-01-14 Yao Qi <yao.qi@linaro.org>
8969
8970 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8971 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8972 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8973 arm_get_next_pcs_ctor.
8974
82075af2
JS
89752016-01-12 Josh Stone <jistone@redhat.com>
8976 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8977
8978 * inferiors.h: Include "gdb_vecs.h".
8979 (struct process_info): Add syscalls_to_catch.
8980 * inferiors.c (remove_process): Free syscalls_to_catch.
8981 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8982 syscall_return stops.
8983 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8984 * server.c (handle_general_set): Handle QCatchSyscalls.
8985 (handle_query): Report support for QCatchSyscalls.
8986 * target.h (struct target_ops): Add supports_catch_syscall.
8987 (target_supports_catch_syscall): New macro.
8988 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8989 (struct lwp_info): Add syscall_state.
8990 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8991 Maintain syscall_state and syscalls_to_catch across exec.
8992 (get_syscall_trapinfo): New function, proxy to the_low_target.
8993 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8994 (linux_low_filter_event): Toggle syscall_state entry/return for
8995 syscall traps, and set it ignored for all others.
8996 (gdb_catching_syscalls_p): New function.
8997 (gdb_catch_this_syscall_p): New function.
8998 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8999 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9000 (linux_supports_catch_syscall): New function.
9001 (linux_target_ops): Install it.
9002 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9003 (the_low_target): Install it.
9004
8f13a3ce
MF
90052016-01-12 Mike Frysinger <vapier@gentoo.org>
9006
9007 * acinclude.m4: Include new ../warning.m4 file.
9008 * configure: Regenerated.
9009 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9010
5b3da067
MF
90112016-01-12 Mike Frysinger <vapier@gentoo.org>
9012
9013 * ax.c (is_goto_target): Mark static.
9014 * linux-low.c (register_addr): Likewise.
9015 (linux_fetch_registers, linux_store_registers): Likewise.
9016 * mem-break.c (any_persistent_commands): Fix old prototype.
9017 (add_commands_to_breakpoint): Mark static.
9018 * regcache.c (find_register_by_name): Delete unused func.
9019 * remote-utils.c (hex_or_minus_one): Mark static.
9020 * server.c (monitor_show_help): Mark static.
9021 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9022 handle_v_requests): Likewise.
9023
bc504a31
PA
90242016-01-12 Pedro Alves <palves@redhat.com>
9025
9026 Remove use of the registered trademark symbol throughout.
9027
5a0dd67a
YQ
90282016-01-08 Yao Qi <yao.qi@linaro.org>
9029
9030 * remote-utils.c (getpkt): If c is '\003', call target hook
9031 request_interrupt.
9032
b2ca446f
YQ
90332016-01-06 Yao Qi <yao.qi@linaro.org>
9034
9035 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9036 linux-aarch32-low.c.
9037 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9038 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9039 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9040 (thumb2_breakpoint): Declare.
9041 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9042 linux-aarch32-low.h.
9043 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9044 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9045 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9046
edd88788
JB
90472016-01-01 Joel Brobecker <brobecker@adacore.com>
9048
9049 * gdbreplay.c (gdbreplay_version): Change copyright year in
9050 version message.
9051 * server.c (gdbserver_version): Likewise.
9052
65da7f14
PP
90532015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9054
9055 * server.c (crc32_table): Delete.
9056 (crc32): Use libiberty's xcrc32 function.
9057
4abd5ed2
JB
90582015-12-22 Joel Brobecker <brobecker@adacore.com>
9059
9060 * lynx-low.c (lynx_delete_thread_callback): New function.
9061 (lynx_mourn): Properly delete our process and all of its
9062 threads. Remove call to clear_inferiors.
9063
0e50fe5c
JB
90642015-12-22 Joel Brobecker <brobecker@adacore.com>
9065
9066 * target.c (thread_search_callback): Add check that
9067 the thread_stopped target callback is not NULL before
9068 calling it.
9069
35adc03f
YQ
90702015-12-21 Yao Qi <yao.qi@linaro.org>
9071
9072 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9073 arm breakpoint.
9074
bd2b2909
AT
90752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9076
9077 * server.c (handle_query): Call target_supports_software_single_step.
9078
7fe5e27e
AT
90792015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9080
9081 * linux-low.c (single_step): New function.
9082 (linux_resume_one_lwp_throw): Call single_step.
9083 (start_step_over): Likewise.
9084
d9311bfa
AT
90852015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9086
9087 * Makefile.in (SFILES): Append arch/arm-linux.c,
9088 arch/arm-get-next-pcs.c.
9089 (arm-linux.o): New rule.
9090 (arm-get-next-pcs.o): New rule.
9091 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9092 arm-linux.o.
9093 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9094 to linux-aarch32-low.c.
9095 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9096 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9097 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9098 (thumb2_breakpoint_len): Likewise.
9099 (arm_is_thumb_mode): Make non-static.
9100 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9101 from linux-aarch32-low.c.
9102 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9103 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9104 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9105 (thumb2_breakpoint_len): Likewise.
9106 (arm_is_thumb_mode): New declaration.
9107 * linux-arm-low.c: Include arch/arm-linux.h
9108 aarch/arm-get-next-pcs.h, sys/syscall.h.
9109 (get_next_pcs_ops): New struct.
9110 (get_next_pcs_addr_bits_remove): New function.
9111 (get_next_pcs_is_thumb): New function.
9112 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9113 (arm_sigreturn_next_pc): Likewise.
9114 (get_next_pcs_syscall_next_pc): Likewise.
9115 (arm_gdbserver_get_next_pcs): Likewise.
9116 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9117 Initialize.
9118 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9119 * server.h: Include gdb_vecs.h.
9120
68ce2059
AT
91212015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9122
9123 * Makefile.in (SFILES): Append common/common-regcache.c.
9124 (OBS): Append common-regcache.o.
9125 (common-regcache.o): New rule.
9126 * regcache.c (init_register_cache): Initialize cache to
9127 REG_UNAVAILABLE.
9128 (regcache_raw_read_unsigned): New function.
9129 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9130 register_status enum.
9131
fa5308bd
AT
91322015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9133
9134 * linux-aarch64-low.c (the_low_targets): Rename
9135 breakpoint_reinsert_addr to get_next_pcs.
9136 * linux-arm-low.c (the_low_targets): Likewise.
9137 * linux-bfin-low.c (the_low_targets): Likewise.
9138 * linux-cris-low.c (the_low_targets): Likewise.
9139 * linux-crisv32-low.c (the_low_targets): Likewise.
9140 * linux-low.c (can_software_single_step): Likewise.
9141 (install_software_single_step_breakpoints): New function.
9142 (start_step_over): Use install_software_single_step_breakpoints.
9143 * linux-low.h: New CORE_ADDR vector.
9144 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9145 get_next_pcs.
9146 * linux-mips-low.c (the_low_targets): Likewise.
9147 * linux-nios2-low.c (the_low_targets): Likewise.
9148 * linux-sparc-low.c (the_low_targets): Likewise.
9149
4a6ed09b
PA
91502015-12-17 Pedro Alves <palves@redhat.com>
9151
9152 * linux-low.c (linux_kill_one_lwp): Remove references to
9153 LinuxThreads.
9154 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9155 to 'kill'.
9156 (linux_init_signals): Delete.
9157 (initialize_low): Adjust.
9158 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9159
7544db95
PA
91602015-12-16 Pedro Alves <palves@redhat.com>
9161
9162 * configure.ac (compiler warning flags): When testing a
9163 -Wno-foo option, check whether -Wfoo works instead.
9164 * configure: Regenerate.
9165
8020350c
DB
91662015-12-11 Don Breazeal <donb@codesourcery.com>
9167
9168 * server.c (process_serial_event): Don't exit from gdbserver
9169 in remote mode if there are still active inferiors.
9170
db91f502
YQ
91712015-12-11 Yao Qi <yao.qi@linaro.org>
9172
9173 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9174 arm_breakpoint_at if the process is 32-bit.
9175
b37a6290
YQ
91762015-12-11 Yao Qi <yao.qi@linaro.org>
9177
9178 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9179 arm breakpoint.
9180
17b1509a
YQ
91812015-12-07 Yao Qi <yao.qi@linaro.org>
9182
9183 * configure.srv: Append arm.o to srv_tgtobj for
9184 aarch64*-*-linux* target.
9185 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9186 from linux-arm-low.c.
9187 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9188 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9189 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9190 (thumb2_breakpoint_len): Likewise.
9191 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9192 (arm_breakpoint_kinds): Likewise.
9193 (arm_breakpoint_kind_from_pc): Likewise.
9194 (arm_sw_breakpoint_from_kind): Likewise.
9195 (arm_breakpoint_kind_from_current_state): Likewise.
9196 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9197 (arm_sw_breakpoint_from_kind): Declare.
9198 (arm_breakpoint_kind_from_current_state): Declare.
9199 (arm_breakpoint_at): Declare.
9200 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9201 arm_sw_breakpoint_from_kind if process is 32-bit.
9202 (aarch64_breakpoint_kind_from_pc): New function.
9203 (aarch64_breakpoint_kind_from_current_state): New function.
9204 (the_low_target): Initialize fields breakpoint_kind_from_pc
9205 and breakpoint_kind_from_current_state.
9206 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9207 linux-aarch32-low.c.
9208 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9209 (arm_breakpoint, arm_breakpoint_len): Likewise.
9210 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9211 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9212 (arm_is_thumb_mode): Likewise.
9213 (arm_breakpoint_at): Likewise.
9214 (arm_breakpoint_kind_from_pc): Likewise.
9215 (arm_sw_breakpoint_from_kind): Likewise.
9216 (arm_breakpoint_kind_from_current_state): Likewise.
9217
9218 Revert:
9219 2015-08-04 Yao Qi <yao.qi@linaro.org>
9220
9221 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9222 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9223 * server.c (extended_protocol): Remove "static".
9224 * server.h (extended_protocol): Declare it.
9225
ece66d65
JS
92262015-12-04 Josh Stone <jistone@redhat.com>
9227
9228 * target.h (struct target_ops) <arch_setup>: Rename to ...
9229 (struct target_ops) <post_create_inferior>: ... this.
9230 (target_arch_setup): Rename to ...
9231 (target_post_create_inferior): ... this, calling post_create_inferior.
9232 * server.c (start_inferior): Update target_arch_setup calls to
9233 target_post_create_inferior.
9234 * linux-low.c (linux_low_ptrace_options): Forward declare.
9235 (linux_arch_setup): Update its comment for general use.
9236 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9237 (struct linux_target_ops): Use linux_post_create_inferior.
9238 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9239 to post_create_inferior.
9240 * nto-low.c (struct nto_target_ops): Likewise.
9241 * spu-low.c (struct spu_target_ops): Likewise.
9242 * win32-low.c (struct win32_target_ops): Likewise.
9243
e58c48b4
AT
92442015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9245
9246 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9247
fbec8956
AT
92482015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9249
9250 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9251 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9252 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9253 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9254 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9255 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9256 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9257 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9258 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9259 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9260 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9261 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9262
9b4c5f87
AT
92632015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9264
9265 * linux-low.c (linux_look_up_symbols): Don't call
9266 linux_supports_traceclone.
9267 * linux-low.h (thread_db_init): Remove use_events argument.
9268 * thread-db.c (thread_db_use_event): Remove global variable.
9269 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9270 (struct thread_db) <td_create_bp>: Remove field.
9271 (thread_db_create_event): Remove function.
9272 (thread_db_enable_reporting): Likewise.
9273 (find_one_thread): Don't check for thread_db_use_events.
9274 (attach_thread): Likewise.
9275 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9276 (try_thread_db_load_1): Don't check for thread_db_use_events.
9277 (thread_db_init): Remove use_events argument and thread events
9278 handling.
9279 (remove_thread_event_breakpoints): Remove function.
9280 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9281
7d00775e
AT
92822015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9283
9284 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9285 New function.
9286 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9287 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9288 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9289 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9290 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9291 Initialize.
9292 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9293 New function.
9294 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9295 * linux-low.c (can_hardware_single_step): Use
9296 supports_hardware_single_step.
9297 (can_software_single_step): New function.
9298 (start_step_over): Call can_software_single_step.
9299 (linux_supports_hardware_single_step): New function.
9300 (struct target_ops) <supports_software_single_step>: Initialize.
9301 * linux-low.h (struct linux_target_ops)
9302 <supports_hardware_single_step>: Initialize.
9303 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9304 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9305 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9306 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9307 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9308 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9309 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9310 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9311 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9312 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9313 Initialize.
9314 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9315 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9316 Initialize.
9317 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9318 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9319 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9320 New function.
9321 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9322 * target.h (struct target_ops): <supports_software_single_step>:
9323 New field.
9324 (target_supports_software_single_step): New macro.
9325
2d97cd35
AT
93262015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9327
9328 * linux-low.c (linux_wait_1): Fix pc advance condition.
9329 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9330 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9331
769ef81f
AT
93322015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9333
9334 * linux-arm-low.c (arm_is_thumb_mode): New function.
9335 (arm_breakpoint_at): Use arm_is_thumb_mode.
9336 (arm_breakpoint_kind_from_current_state): New function.
9337 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9338 Initialize.
9339 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9340 (linux_breakpoint_kind_from_current_state): New function.
9341 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9342 * linux-low.h (struct linux_target_ops)
9343 <breakpoint_kind_from_current_state>: New field.
9344 * target.h (struct target_ops): Likewise.
9345 (target_breakpoint_kind_from_current_state): New macro.
9346
1bebeeca
PA
93472015-11-30 Pedro Alves <palves@redhat.com>
9348
9349 * linux-low.c (linux_resume): Wake up the event loop before
9350 returning.
9351
a67a9fae
PA
93522015-11-30 Pedro Alves <palves@redhat.com>
9353
9354 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9355 check.
9356 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9357 to -1.
9358 * target.c (struct thread_search): New structure.
9359 (thread_search_callback): New function.
9360 (prev_general_thread): New global.
9361 (prepare_to_access_memory, done_accessing_memory): New functions.
9362 * target.h (prepare_to_access_memory, done_accessing_memory):
9363 Replace macros with function declarations.
9364
f2faf941
PA
93652015-11-30 Pedro Alves <palves@redhat.com>
9366
9367 PR 14618
9368 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9369 report TARGET_WAITKIND_NO_RESUMED.
9370 * remote-utils.c (prepare_resume_reply): Handle
9371 TARGET_WAITKIND_NO_RESUMED.
9372 * server.c (report_no_resumed): New global.
9373 (handle_query) <qSupported>: Handle "no-resumed+". Report
9374 "no-resumed+" support.
9375 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9376 return error if the client doesn't support no-resumed events.
9377 (push_stop_notification): New function.
9378 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9379 events if the client supports them.
9380
a681f9c9
PA
93812015-11-30 Pedro Alves <palves@redhat.com>
9382
9383 * linux-low.c (thread_still_has_status_pending_p): Don't check
9384 vCont;t here.
9385 (lwp_resumed): New function.
9386 (status_pending_p_callback): Return early if the LWP is not
9387 supposed to be resumed.
9388
65706a29
PA
93892015-11-30 Pedro Alves <palves@redhat.com>
9390
9391 * linux-low.c (handle_extended_wait): Assert that the LWP's
9392 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9393 thread create events, leave the new child's status pending.
9394 (linux_low_filter_event): If GDB wants to hear about thread exit
9395 events, leave the LWP marked dead and don't delete it.
9396 (linux_wait_for_event_filtered): Don't check for thread exit.
9397 (filter_exit_event): New function.
9398 (linux_wait_1): Use it, when returning an exit event.
9399 (linux_resume_one_lwp_throw): Assert that the LWP's
9400 waitstatus is TARGET_WAITKIND_IGNORE.
9401 * remote-utils.c (prepare_resume_reply): Handle
9402 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9403 * server.c (report_thread_events): New global.
9404 (handle_general_set): Handle QThreadEvents.
9405 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9406 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9407 TARGET_WAITKIND_THREAD_EXITED.
9408 * server.h (report_thread_events): Declare.
9409
56cf4bed
PA
94102015-11-30 Pedro Alves <palves@redhat.com>
9411
9412 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9413 the thread's last_resume_kind was resume_stop.
9414
500c1d85
PA
94152015-11-30 Pedro Alves <palves@redhat.com>
9416
9417 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9418 before returning.
9419
de979965
PA
94202015-11-30 Pedro Alves <palves@redhat.com>
9421
9422 * server.c (handle_v_requests): Handle vCtrlC.
9423
34c65914
PA
94242015-11-30 Pedro Alves <palves@redhat.com>
9425
9426 * gdbthread.h (find_any_thread_of_pid): Declare.
9427 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9428 functions.
9429 * server.c (handle_query): If current_thread is NULL, look for
9430 another thread of the selected process.
9431
79efa585 94322015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9433 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9434
9435 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9436 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9437 name in reply.
9438 * target.h (struct target_ops) <thread_name>: New field.
9439 (target_thread_name): New macro.
9440
80d82c19
JB
94412015-11-23 Joel Brobecker <brobecker@adacore.com>
9442
9443 * regcache.h (regcache_invalidate_pid): Add declaration.
9444 * regcache.c (regcache_invalidate_pid): New function, extracted
9445 from regcache_invalidate.
9446 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9447 Add trivial documentation comment.
9448 * lynx-low.c: Use regcache_invalidate_pid instead of
9449 regcache_invalidate.
9450
64da5dd5
JB
94512015-11-23 Joel Brobecker <brobecker@adacore.com>
9452
9453 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9454 and Elf64_auxv_t if the target is Android.
9455
37ce4055
DE
94562015-11-22 Doug Evans <xdje42@gmail.com>
9457
9458 * target.h: #include <sys/types.h>.
9459
06e03fff
PA
94602015-11-19 Pedro Alves <palves@redhat.com>
9461
9462 * linux-low.c (linux_process_qsupported): Change prototype.
9463 Adjust.
9464 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9465 Change prototype.
9466 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9467 and adjust to loop over all features.
9468 * server.c (handle_query) <qSupported>: Adjust to call
9469 target_process_qsupported once, passing it a vector of unprocessed
9470 features.
9471 * target.h (struct target_ops) <process_qsupported>: Change
9472 prototype.
9473 (target_process_qsupported): Adjust.
9474
9a084706
PA
94752015-11-19 Pedro Alves <palves@redhat.com>
9476
9477 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9478 mode.
9479 * configure: Regenerate.
9480
dad44a1f
PA
94812015-11-19 Pedro Alves <palves@redhat.com>
9482
9483 * configure: Regenerate.
9484
231c0592
YQ
94852015-11-19 Yao Qi <yao.qi@linaro.org>
9486
9487 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9488 type to uint32_t.
9489
6c1c9a8b
YQ
94902015-11-19 Yao Qi <yao.qi@linaro.org>
9491
9492 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9493 (struct aarch64_operand): Move enum out.
9494
9caa3311
YQ
94952015-11-19 Yao Qi <yao.qi@linaro.org>
9496
9497 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9498 struct user_fpsimd_state *.
9499 (aarch64_store_fpregset): Likewise.
9500
6a69a054
YQ
95012015-11-19 Yao Qi <yao.qi@linaro.org>
9502
9503 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9504 struct user_pt_regs *.
9505 (aarch64_store_gregset): Likewise.
9506
1798301e
PA
95072015-11-18 Pedro Alves <palves@redhat.com>
9508
9509 * Makefile.in (all_object_files): Add $IPA_OBJS.
9510
ce7715e2
PA
95112015-11-17 Pedro Alves <palves@redhat.com>
9512
9513 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9514 GDB_SIGNAL_0 and gdb_signal_to_string.
9515
c0879059
PA
95162015-11-17 Pedro Alves <palves@redhat.com>
9517
9518 * win32-low.c (handle_output_debug_string): Remove parameter.
9519 (win32_kill): Remove our_status local and adjust call to
9520 handle_output_debug_string.
9521 (get_child_debug_event): Adjust call to
9522 handle_output_debug_string.
9523
1996e237
SM
95242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9525
9526 * linux-mips-low.c (mips_fill_gregset): Add cast.
9527 (mips_store_gregset): Likewise.
9528 (mips_fill_fpregset): Likewise.
9529 (mips_store_fpregset): Likewise.
9530
cbec665b
SM
95312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9532
9533 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9534 priv.
9535
eb3e3c67
SM
95362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9537
9538 * linux-mips-low.c (mips_linux_new_thread): Change type of
9539 watch_type to enum target_hw_bp_type.
9540
171de4b8
SM
95412015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9542
9543 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9544 Change return type to arm_hwbp_type.
9545
04248ead
SM
95462015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9547
9548 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9549 (arm_store_gregset): Likewise.
9550 * linux-arm-low.c (arm_get_hwcap): Likewise.
9551 (arm_read_description): Likewise.
9552
04b3479c
SM
95532015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9554
9555 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9556
2bc84e8a
SM
95572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9558
9559 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9560 (ppc_fill_vsxregset): Likewise.
9561 (ppc_store_vsxregset): Likewise.
9562 (ppc_fill_vrregset): Likewise.
9563 (ppc_store_vrregset): Likewise.
9564 (ppc_fill_evrregset): Likewise.
9565 (ppc_store_evrregset): Likewise.
9566
e6c5bb05
SM
95672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9568
9569 * linux-ppc-low.c (ppc_usrregs_info): Remove
9570 forward-declaration.
9571 (ppc_arch_setup): Move lower in file.
9572
7ea45d72
SM
95732015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9574
9575 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9576 (ps_pdwrite): Likewise.
9577
69291610
HW
95782015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9579
9580 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9581 to after assert checks.
9582
b42945fd
SM
95832015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9584
9585 * proc-service.c (ps_pdread): Add/adjust casts.
9586 (ps_pdwrite): Add/adjust casts.
9587
d6f85c84
SM
95882015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * server.c (handle_search_memory_1): Cast return value of
9591 memmem.
9592
f98cd059
SM
95932015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9594
9595 * server.c (write_qxfer_response): Change type of data to
9596 gdb_byte *.
9597
d2412fa5
PA
95982015-10-29 Pedro Alves <palves@redhat.com>
9599
9600 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9601
c17414a2
PA
96022015-10-29 Pedro Alves <palves@redhat.com>
9603
9604 * tracepoint.c (clear_installed_tracepoints): Add casts.
9605
e053fbc4
PA
96062015-10-29 Pedro Alves <palves@redhat.com>
9607
9608 * server.c (handle_v_cont, process_serial_event): Add enum
9609 gdb_signal casts to signal parsing code.
9610
add67df8
PA
96112015-10-29 Pedro Alves <palves@redhat.com>
9612
9613 * linux-low.h (NULL_REGSET): Define.
9614 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9615 * linux-arm-low.c (arm_regsets): Likewise.
9616 * linux-crisv32-low.c (cris_regsets): Likewise.
9617 * linux-m68k-low.c (m68k_regsets): Likewise.
9618 * linux-mips-low.c (mips_regsets): Likewise.
9619 * linux-nios2-low.c (nios2_regsets): Likewise.
9620 * linux-ppc-low.c (ppc_regsets): Likewise.
9621 * linux-s390-low.c (s390_regsets): Likewise.
9622 * linux-sh-low.c (sh_regsets): Likewise.
9623 * linux-sparc-low.c (sparc_regsets): Likewise.
9624 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9625 * linux-tile-low.c (tile_regsets): Likewise.
9626 * linux-x86-low.c (x86_regsets): Likewise.
9627 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9628
50bc912a
PA
96292015-10-29 Pedro Alves <palves@redhat.com>
9630
9631 * linux-low.h (NULL_REGSET): Define.
9632 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9633 * linux-arm-low.c (arm_regsets): Likewise.
9634 * linux-crisv32-low.c (cris_regsets): Likewise.
9635 * linux-m68k-low.c (m68k_regsets): Likewise.
9636 * linux-mips-low.c (mips_regsets): Likewise.
9637 * linux-nios2-low.c (nios2_regsets): Likewise.
9638 * linux-ppc-low.c (ppc_regsets): Likewise.
9639 * linux-s390-low.c (s390_regsets): Likewise.
9640 * linux-sh-low.c (sh_regsets): Likewise.
9641 * linux-sparc-low.c (sparc_regsets): Likewise.
9642 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9643 * linux-tile-low.c (tile_regsets): Likewise.
9644 * linux-x86-low.c (x86_regsets): Likewise.
9645 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9646
682b2546
DE
96472015-10-26 Doug Evans <dje@google.com>
9648
9649 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9650
963843d4
DE
96512015-10-26 Doug Evans <dje@google.com>
9652
9653 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9654
d41401ac
DE
96552015-10-26 Doug Evans <dje@google.com>
9656
9657 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9658 for debug_printf.
9659 (attach_thread, find_new_threads_callback): Ditto.
9660
3db28855
AT
96612015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9662
9663 * mem-break.h (set_breakpoint_data): Remove.
9664
fb78e89c
AT
96652015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9666
9667 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9668 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9669 (initialize_low): Remove set_breakpoint_data call.
9670 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9671 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9672 (initialize_low): Remove set_breakpoint_data call.
9673 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9674 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9675 (initialize_low): Remove set_breakpoint_data call.
9676
2e6ee069
AT
96772015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9678
9679 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9680 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9681 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9682 * target.h (target_breakpoint_kind_from_pc): New macro.
9683
1652a986
AT
96842015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9685
9686 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9687 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9688 the default breakpoint kind.
9689
abeead09
AT
96902015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9691
9692 * linux-arm-low.c (arm_supports_z_point_type): Add software
9693 breakpoint support.
9694
b0b4b501
AT
96952015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9696
9697 * linux-arm-low.c: Refactor breakpoint definitions.
9698 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9699 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9700
8689682c
AT
97012015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9702
9703 * Makefile.in: Add arm.c/o.
9704 * configure.srv: Likewise.
9705 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9706 (arm_breakpoint_kind_from_pc): New function.
9707 (arm_sw_breakpoint_from_kind): Return proper kind.
9708 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9709
27165294
AT
97102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9711
9712 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9713 removal.
9714 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9715 (struct raw_breakpoint) <size>: Remove.
9716 (struct raw_breakpoint) <kind>: Add.
9717 (bp_size): New function.
9718 (bp_opcode): Likewise.
9719 (find_raw_breakpoint_at): Adjust for kind.
9720 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9721 (remove_memory_breakpoint): Adjust for kind call bp_size.
9722 (set_raw_breakpoint_at): Adjust for kind.
9723 (set_breakpoint): Likewise.
9724 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9725 (delete_raw_breakpoint): Adjust for kind.
9726 (delete_breakpoint): Likewise.
9727 (find_gdb_breakpoint): Likewise.
9728 (set_gdb_breakpoint_1): Likewise.
9729 (set_gdb_breakpoint): Likewise.
9730 (delete_gdb_breakpoint_1): Likewise.
9731 (delete_gdb_breakpoint): Likewise.
9732 (uninsert_raw_breakpoint): Likewise.
9733 (reinsert_raw_breakpoint): Likewise.
9734 (set_breakpoint_data): Remove.
9735 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9736 (check_mem_read): Adjust for kind call bp_size.
9737 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9738 (clone_one_breakpoint): Adjust for kind.
9739 * mem-break.h (set_gdb_breakpoint): Likewise.
9740 (delete_gdb_breakpoint): Likewise.
9741 * server.c (process_serial_event): Likewise.
9742
dd373349
AT
97432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9744
9745 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9746 (struct linux_target_ops) <breakpoint>: Remove.
9747 (struct linux_target_ops) <breakpoint_len>: Remove.
9748 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9749 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9750 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9751 (arm_sw_breakpoint_from_kind): New function.
9752 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9753 (struct linux_target_ops) <breakpoint>: Remove.
9754 (struct linux_target_ops) <breakpoint_len>: Remove.
9755 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9756 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9757 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9758 (struct linux_target_ops) <breakpoint>: Remove.
9759 (struct linux_target_ops) <breakpoint_len>: Remove.
9760 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9761 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9762 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9763 (struct linux_target_ops) <breakpoint>: Remove.
9764 (struct linux_target_ops) <breakpoint_len>: Remove.
9765 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9766 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9767 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9768 and sw_breakpoint_from_kind to increment the pc.
9769 (linux_breakpoint_kind_from_pc): New function.
9770 (linux_sw_breakpoint_from_kind): New function.
9771 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9772 (initialize_low): Call breakpoint_kind_from_pc and
9773 sw_breakpoint_from_kind to replace breakpoint_data/len.
9774 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9775 New field.
9776 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9777 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9778 (struct linux_target_ops) <breakpoint>: Remove.
9779 (struct linux_target_ops) <breakpoint_len>: Remove.
9780 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9781 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9782 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9783 (struct linux_target_ops) <breakpoint>: Remove.
9784 (struct linux_target_ops) <breakpoint_len>: Remove.
9785 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9786 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9787 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9788 (struct linux_target_ops) <breakpoint>: Remove.
9789 (struct linux_target_ops) <breakpoint_len>: Remove.
9790 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9791 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9792 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9793 (struct linux_target_ops) <breakpoint>: Remove.
9794 (struct linux_target_ops) <breakpoint_len>: Remove.
9795 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9796 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9797 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9798 (struct linux_target_ops) <breakpoint>: Remove.
9799 (struct linux_target_ops) <breakpoint_len>: Remove.
9800 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9801 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9802 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9803 (struct linux_target_ops) <breakpoint>: Remove.
9804 (struct linux_target_ops) <breakpoint_len>: Remove.
9805 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9806 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9807 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9808 (struct linux_target_ops) <breakpoint>: Remove.
9809 (struct linux_target_ops) <breakpoint_len>: Remove.
9810 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9811 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9812 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9813 (struct linux_target_ops) <breakpoint>: Remove.
9814 (struct linux_target_ops) <breakpoint_len>: Remove.
9815 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9816 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9817 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9818 (struct linux_target_ops) <breakpoint>: Remove.
9819 (struct linux_target_ops) <breakpoint_len>: Remove.
9820 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9821 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9822 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9823 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9824 (struct linux_target_ops) <breakpoint>: Remove.
9825 (struct linux_target_ops) <breakpoint_len>: Remove.
9826 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9827 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9828 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9829 (struct linux_target_ops) <breakpoint>: Remove.
9830 (struct linux_target_ops) <breakpoint_len>: Remove.
9831 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9832 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9833
4cd98a19
AT
98342015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9835
9836 * linux-cris-low.c (cris_get_pc): Remove void arg.
9837
774ee6d2
AR
98382015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9839
9840 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9841 variable name.
9842
833dcd29
AR
98432015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9844
9845 * inferiors.c (thread_pid_matches_callback): New function.
9846 (find_thread_process): New function.
9847 (remove_thread): Reset current_thread.
9848 (remove_process): Assert threads have been removed first.
9849
8d689ee5
YQ
98502015-10-15 Yao Qi <yao.qi@linaro.org>
9851
9852 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9853 if it is 3.
9854 (aarch64_remove_point): Likewise.
9855 * regcache.c (regcache_register_size): New function.
9856
1c2e1515
YQ
98572015-10-12 Yao Qi <yao.qi@linaro.org>
9858
9859 * linux-aarch64-low.c: Update all callers as emit_load_store
9860 is renamed to aarch64_emit_load_store.
9861
e1c587c3
YQ
98622015-10-12 Yao Qi <yao.qi@linaro.org>
9863
9864 * linux-aarch64-low.c: Update all callers of function renaming
9865 from emit_insn to aarch64_emit_insn.
9866
b6542f81
YQ
98672015-10-12 Yao Qi <yao.qi@linaro.org>
9868
9869 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9870 arch/aarch64-insn.h.
9871 (struct aarch64_memory_operand): Likewise.
9872 (ENCODE): Likewise.
9873 (emit_insn): Move to arch/aarch64-insn.c.
9874 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9875 (emit_load_store): Move to arch/aarch64-insn.c.
9876 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9877 (can_encode_int32): Remove.
9878
246994ce
YQ
98792015-10-12 Yao Qi <yao.qi@linaro.org>
9880
9881 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9882 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9883 (aarch64_relocate_instruction): Likewise.
9884 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9885 (struct aarch64_insn_visitor): Likewise.
9886
0badd99f
YQ
98872015-10-12 Yao Qi <yao.qi@linaro.org>
9888
9889 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9890 (struct aarch64_insn_visitor): New.
9891 (struct aarch64_insn_relocation_data): New.
9892 (aarch64_ftrace_insn_reloc_b): New function.
9893 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9894 (aarch64_ftrace_insn_reloc_cb): Likewise.
9895 (aarch64_ftrace_insn_reloc_tb): Likewise.
9896 (aarch64_ftrace_insn_reloc_adr): Likewise.
9897 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9898 (aarch64_ftrace_insn_reloc_others): Likewise.
9899 (visitor): New.
9900 (aarch64_relocate_instruction): Use visitor.
9901
dfaffe9d
YQ
99022015-10-12 Yao Qi <yao.qi@linaro.org>
9903
9904 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9905 int. Add argument buf.
9906 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9907 aarch64_relocate_instruction.
9908
70b439f0
YQ
99092015-10-12 Yao Qi <yao.qi@linaro.org>
9910
9911 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9912 argument insn. Remove local variable insn. Don't call
9913 target_read_uint32.
9914 (aarch64_install_fast_tracepoint_jump_pad): Call
9915 target_read_uint32.
9916
7781c06f
YQ
99172015-09-30 Yao Qi <yao.qi@linaro.org>
9918
9919 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9920 (emit_load_store_pair): Likewise.
9921
9a3c8263
SM
99222015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9923
9924 * dll.c (match_dll): Add cast(s).
9925 (unloaded_dll): Likewise.
9926 * linux-low.c (second_thread_of_pid_p): Likewise.
9927 (delete_lwp_callback): Likewise.
9928 (count_events_callback): Likewise.
9929 (select_event_lwp_callback): Likewise.
9930 (linux_set_resume_request): Likewise.
9931 * server.c (accumulate_file_name_length): Likewise.
9932 (emit_dll_description): Likewise.
9933 (handle_qxfer_threads_worker): Likewise.
9934 (visit_actioned_threads): Likewise.
9935 * thread-db.c (any_thread_of): Likewise.
9936 * tracepoint.c (same_process_p): Likewise.
9937 (match_blocktype): Likewise.
9938 (build_traceframe_info_xml): Likewise.
9939
224c3ddb
SM
99402015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9941
9942 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9943 assignment.
9944 (gdb_unparse_agent_expr): Likewise.
9945 * hostio.c (require_data): Likewise.
9946 (handle_pread): Likewise.
9947 * linux-low.c (disable_regset): Likewise.
9948 (fetch_register): Likewise.
9949 (store_register): Likewise.
9950 (get_dynamic): Likewise.
9951 (linux_qxfer_libraries_svr4): Likewise.
9952 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9953 (set_fast_tracepoint_jump): Likewise.
9954 (uninsert_fast_tracepoint_jumps_at): Likewise.
9955 (reinsert_fast_tracepoint_jumps_at): Likewise.
9956 (validate_inserted_breakpoint): Likewise.
9957 (clone_agent_expr): Likewise.
9958 * regcache.c (init_register_cache): Likewise.
9959 * remote-utils.c (putpkt_binary_1): Likewise.
9960 (decode_M_packet): Likewise.
9961 (decode_X_packet): Likewise.
9962 (look_up_one_symbol): Likewise.
9963 (relocate_instruction): Likewise.
9964 (monitor_output): Likewise.
9965 * server.c (handle_search_memory): Likewise.
9966 (handle_qxfer_exec_file): Likewise.
9967 (handle_qxfer_libraries): Likewise.
9968 (handle_qxfer): Likewise.
9969 (handle_query): Likewise.
9970 (handle_v_cont): Likewise.
9971 (handle_v_run): Likewise.
9972 (captured_main): Likewise.
9973 * target.c (write_inferior_memory): Likewise.
9974 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9975 * tracepoint.c (init_trace_buffer): Likewise.
9976 (add_tracepoint_action): Likewise.
9977 (add_traceframe): Likewise.
9978 (add_traceframe_block): Likewise.
9979 (cmd_qtdpsrc): Likewise.
9980 (cmd_qtdv): Likewise.
9981 (cmd_qtstatus): Likewise.
9982 (response_source): Likewise.
9983 (response_tsv): Likewise.
9984 (cmd_qtnotes): Likewise.
9985 (gdb_collect): Likewise.
9986 (initialize_tracepoint): Likewise.
9987
afbe19f8
PL
99882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9989
9990 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9991 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9992 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9993 <NOP>: New.
9994 (enum aarch64_condition_codes): New enum.
9995 (w0): New static global.
9996 (fp): Likewise.
9997 (lr): Likewise.
9998 (struct aarch64_memory_operand) <type>: New
9999 MEMORY_OPERAND_POSTINDEX type.
10000 (postindex_memory_operand): New helper function.
10001 (emit_ret): New function.
10002 (emit_load_store_pair): New function, factored out of emit_stp
10003 with support for MEMORY_OPERAND_POSTINDEX.
10004 (emit_stp): Rewrite using emit_load_store_pair.
10005 (emit_ldp): New function.
10006 (emit_load_store): Likewise.
10007 (emit_ldr): Mention post-index instruction in comment.
10008 (emit_ldrh): New function.
10009 (emit_ldrb): New function.
10010 (emit_ldrsw): Mention post-index instruction in comment.
10011 (emit_str): Likewise.
10012 (emit_subs): New function.
10013 (emit_cmp): Likewise.
10014 (emit_and): Likewise.
10015 (emit_orr): Likewise.
10016 (emit_orn): Likewise.
10017 (emit_eor): Likewise.
10018 (emit_mvn): Likewise.
10019 (emit_lslv): Likewise.
10020 (emit_lsrv): Likewise.
10021 (emit_asrv): Likewise.
10022 (emit_mul): Likewise.
10023 (emit_sbfm): Likewise.
10024 (emit_sbfx): Likewise.
10025 (emit_ubfm): Likewise.
10026 (emit_ubfx): Likewise.
10027 (emit_csinc): Likewise.
10028 (emit_cset): Likewise.
10029 (emit_nop): Likewise.
10030 (emit_ops_insns): New helper function.
10031 (emit_pop): Likewise.
10032 (emit_push): Likewise.
10033 (aarch64_emit_prologue): New function.
10034 (aarch64_emit_epilogue): Likewise.
10035 (aarch64_emit_add): Likewise.
10036 (aarch64_emit_sub): Likewise.
10037 (aarch64_emit_mul): Likewise.
10038 (aarch64_emit_lsh): Likewise.
10039 (aarch64_emit_rsh_signed): Likewise.
10040 (aarch64_emit_rsh_unsigned): Likewise.
10041 (aarch64_emit_ext): Likewise.
10042 (aarch64_emit_log_not): Likewise.
10043 (aarch64_emit_bit_and): Likewise.
10044 (aarch64_emit_bit_or): Likewise.
10045 (aarch64_emit_bit_xor): Likewise.
10046 (aarch64_emit_bit_not): Likewise.
10047 (aarch64_emit_equal): Likewise.
10048 (aarch64_emit_less_signed): Likewise.
10049 (aarch64_emit_less_unsigned): Likewise.
10050 (aarch64_emit_ref): Likewise.
10051 (aarch64_emit_if_goto): Likewise.
10052 (aarch64_emit_goto): Likewise.
10053 (aarch64_write_goto_address): Likewise.
10054 (aarch64_emit_const): Likewise.
10055 (aarch64_emit_call): Likewise.
10056 (aarch64_emit_reg): Likewise.
10057 (aarch64_emit_pop): Likewise.
10058 (aarch64_emit_stack_flush): Likewise.
10059 (aarch64_emit_zero_ext): Likewise.
10060 (aarch64_emit_swap): Likewise.
10061 (aarch64_emit_stack_adjust): Likewise.
10062 (aarch64_emit_int_call_1): Likewise.
10063 (aarch64_emit_void_call_2): Likewise.
10064 (aarch64_emit_eq_goto): Likewise.
10065 (aarch64_emit_ne_goto): Likewise.
10066 (aarch64_emit_lt_goto): Likewise.
10067 (aarch64_emit_le_goto): Likewise.
10068 (aarch64_emit_gt_goto): Likewise.
10069 (aarch64_emit_ge_got): Likewise.
10070 (aarch64_emit_ops_impl): New static global variable.
10071 (aarch64_emit_ops): New target function, return
10072 &aarch64_emit_ops_impl.
10073 (struct linux_target_ops): Install it.
10074
bb903df0
PL
100752015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10076
10077 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10078 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10079 aarch64-ipa.o.
10080 * linux-aarch64-ipa.c: New file.
10081 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10082 and endian.h.
10083 (aarch64_get_thread_area): New target method.
10084 (extract_signed_bitfield): New helper function.
10085 (aarch64_decode_ldr_literal): New function.
10086 (enum aarch64_opcodes): New enum.
10087 (struct aarch64_register): New struct.
10088 (struct aarch64_operand): New struct.
10089 (x0): New static global.
10090 (x1): Likewise.
10091 (x2): Likewise.
10092 (x3): Likewise.
10093 (x4): Likewise.
10094 (w2): Likewise.
10095 (ip0): Likewise.
10096 (sp): Likewise.
10097 (xzr): Likewise.
10098 (aarch64_register): New helper function.
10099 (register_operand): Likewise.
10100 (immediate_operand): Likewise.
10101 (struct aarch64_memory_operand): New struct.
10102 (offset_memory_operand): New helper function.
10103 (preindex_memory_operand): Likewise.
10104 (enum aarch64_system_control_registers): New enum.
10105 (ENCODE): New macro.
10106 (emit_insn): New helper function.
10107 (emit_b): New function.
10108 (emit_bcond): Likewise.
10109 (emit_cb): Likewise.
10110 (emit_tb): Likewise.
10111 (emit_blr): Likewise.
10112 (emit_stp): Likewise.
10113 (emit_ldp_q_offset): Likewise.
10114 (emit_stp_q_offset): Likewise.
10115 (emit_load_store): Likewise.
10116 (emit_ldr): Likewise.
10117 (emit_ldrsw): Likewise.
10118 (emit_str): Likewise.
10119 (emit_ldaxr): Likewise.
10120 (emit_stxr): Likewise.
10121 (emit_stlr): Likewise.
10122 (emit_data_processing_reg): Likewise.
10123 (emit_data_processing): Likewise.
10124 (emit_add): Likewise.
10125 (emit_sub): Likewise.
10126 (emit_mov): Likewise.
10127 (emit_movk): Likewise.
10128 (emit_mov_addr): Likewise.
10129 (emit_mrs): Likewise.
10130 (emit_msr): Likewise.
10131 (emit_sevl): Likewise.
10132 (emit_wfe): Likewise.
10133 (append_insns): Likewise.
10134 (can_encode_int32_in): New helper function.
10135 (aarch64_relocate_instruction): New function.
10136 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10137 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10138 (struct linux_target_ops): Install aarch64_get_thread_area,
10139 aarch64_install_fast_tracepoint_jump_pad and
10140 aarch64_get_min_fast_tracepoint_insn_len.
10141
787749ea
PL
101422015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10143
10144 * Makefile.in (aarch64-insn.o): New rule.
10145 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10146
9812b2e6
YQ
101472015-09-21 Yao Qi <yao.qi@linaro.org>
10148
10149 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10150
18fe412b
YQ
101512015-09-21 Yao Qi <yao.qi@linaro.org>
10152
10153 * tracepoint.c (max_jump_pad_size): Remove.
10154
a0cc84cd
YQ
101552015-09-18 Yao Qi <yao.qi@linaro.org>
10156
10157 * linux-aarch64-low.c: Don't include sys/uio.h.
10158 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10159
d78908cf
WW
101602015-09-16 Wei-cheng Wang <cole945@gmail.com>
10161
10162 * tracepoint.c (eval_result_type): Change prototype.
10163 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10164
d57e0d50
PA
101652015-09-15 Pedro Alves <palves@redhat.com>
10166
10167 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10168 Check whether to report exec events instead of checking whether
10169 multiprocess is enabled.
10170
5a676acc
PA
101712015-09-15 Pedro Alves <palves@redhat.com>
10172
10173 PR remote/18965
10174 * remote-utils.c (prepare_resume_reply): Merge
10175 TARGET_WAITKIND_VFORK_DONE switch case with the
10176 TARGET_WAITKIND_FORKED case.
10177
7c5d0fad
YQ
101782015-09-15 Yao Qi <yao.qi@linaro.org>
10179
10180 * server.c (handle_query): Check string comparison using
10181 "else if" instead of "if".
10182
750ce8d1
YQ
101832015-09-15 Yao Qi <yao.qi@linaro.org>
10184
10185 * server.c (vCont_supported): New global variable.
10186 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10187 matches. Append ";vContSupported+" to own_buf.
10188 (handle_v_requests): Append ";s;S" to own_buf if target supports
10189 hardware single step or vCont_supported is false.
10190 (capture_main): Set vCont_supported to zero.
10191
70b90b91
YQ
101922015-09-15 Yao Qi <yao.qi@linaro.org>
10193
10194 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10195 it to ...
10196 (linux_supports_hardware_single_step): ... New function.
10197 (linux_target_ops): Update.
10198 * lynx-low.c (lynx_target_ops): Set field
10199 supports_hardware_single_step to target_can_do_hardware_single_step.
10200 * nto-low.c (nto_target_ops): Likewise.
10201 * spu-low.c (spu_target_ops): Likewise.
10202 * win32-low.c (win32_target_ops): Likewise.
10203 * target.c (target_can_do_hardware_single_step): New function.
10204 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10205 Remove. <supports_hardware_single_step>: New field.
10206 (target_supports_conditional_breakpoints): Remove.
10207 (target_supports_hardware_single_step): New macro.
10208 (target_can_do_hardware_single_step): Declare.
10209 * server.c (handle_query): Use target_supports_hardware_single_step
10210 instead of target_supports_conditional_breakpoints.
10211
ade90bde
YQ
102122015-09-15 Yao Qi <yao.qi@linaro.org>
10213
10214 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10215 function.
10216 (struct linux_target_ops the_low_target): Install
10217 aarch64_linux_siginfo_fixup.
10218
94585166
DB
102192015-09-11 Don Breazeal <donb@codesourcery.com>
10220 Luis Machado <lgustavo@codesourcery.com>
10221
10222 * linux-low.c (linux_mourn): Static declaration.
10223 (linux_arch_setup): Move in front of
10224 handle_extended_wait.
10225 (linux_arch_setup_thread): New function.
10226 (handle_extended_wait): Handle exec events. Call
10227 linux_arch_setup_thread. Make event_lwp argument a
10228 pointer-to-a-pointer.
10229 (check_zombie_leaders): Do not check stopped threads.
10230 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10231 (linux_low_filter_event): Add lwp and thread for exec'ing
10232 non-leader thread if leader thread has been deleted.
10233 Refactor code into linux_arch_setup_thread and call it.
10234 Pass child lwp pointer by reference to handle_extended_wait.
10235 (linux_wait_for_event_filtered): Update comment.
10236 (linux_wait_1): Prevent clobbering exec event status.
10237 (linux_supports_exec_events): New function.
10238 (linux_target_ops) <supports_exec_events>: Initialize new member.
10239 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10240 new member.
10241 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10242 * server.c (report_exec_events): New global variable.
10243 (handle_query): Handle qSupported query for exec-events feature.
10244 (captured_main): Initialize report_exec_events.
10245 * server.h (report_exec_events): Declare new global variable.
10246 * target.h (struct target_ops) <supports_exec_events>: New
10247 member.
10248 (target_supports_exec_events): New macro.
10249 * win32-low.c (win32_target_ops) <supports_exec_events>:
10250 Initialize new member.
10251
0568462b
MM
102522015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10253
10254 * linux-low.c (linux_low_enable_btrace): Remove.
10255 (linux_target_ops): Replace linux_low_enable_btrace with
10256 linux_enable_btrace.
10257
39edd165
YQ
102582015-09-03 Yao Qi <yao.qi@linaro.org>
10259
10260 * linux-aarch64-low.c (aarch64_insert_point): Call
10261 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10262 returns true.
10263
1db33b5a
UW
102642015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10265
10266 * linux-low.c (check_stopped_by_breakpoint): Use
10267 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10268
ab290430
PA
102692015-08-27 Pedro Alves <palves@redhat.com>
10270
10271 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10272
8d749320
SM
102732015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10274
6711b7f8
SM
10275 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10276 the XNEW-family equivalent.
8d749320
SM
10277 (compile_bytecodes): Likewise.
10278 * dll.c (loaded_dll): Likewise.
10279 * event-loop.c (append_callback_event): Likewise.
10280 (create_file_handler): Likewise.
10281 (create_file_event): Likewise.
10282 * hostio.c (handle_open): Likewise.
10283 * inferiors.c (add_thread): Likewise.
10284 (add_process): Likewise.
10285 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10286 * linux-arm-low.c (arm_new_process): Likewise.
10287 (arm_new_thread): Likewise.
10288 * linux-low.c (add_to_pid_list): Likewise.
10289 (linux_add_process): Likewise.
10290 (handle_extended_wait): Likewise.
10291 (add_lwp): Likewise.
10292 (enqueue_one_deferred_signal): Likewise.
10293 (enqueue_pending_signal): Likewise.
10294 (linux_resume_one_lwp_throw): Likewise.
10295 (linux_resume_one_thread): Likewise.
10296 (linux_read_memory): Likewise.
10297 (linux_write_memory): Likewise.
10298 * linux-mips-low.c (mips_linux_new_process): Likewise.
10299 (mips_linux_new_thread): Likewise.
10300 (mips_add_watchpoint): Likewise.
10301 * linux-x86-low.c (initialize_low_arch): Likewise.
10302 * lynx-low.c (lynx_add_process): Likewise.
10303 * mem-break.c (set_raw_breakpoint_at): Likewise.
10304 (set_breakpoint): Likewise.
10305 (add_condition_to_breakpoint): Likewise.
10306 (add_commands_to_breakpoint): Likewise.
10307 (clone_agent_expr): Likewise.
10308 (clone_one_breakpoint): Likewise.
10309 * regcache.c (new_register_cache): Likewise.
10310 * remote-utils.c (look_up_one_symbol): Likewise.
10311 * server.c (queue_stop_reply): Likewise.
10312 (start_inferior): Likewise.
10313 (queue_stop_reply_callback): Likewise.
10314 (handle_target_event): Likewise.
10315 * spu-low.c (fetch_ppc_memory): Likewise.
10316 (store_ppc_memory): Likewise.
10317 * target.c (set_target_ops): Likewise.
10318 * thread-db.c (thread_db_load_search): Likewise.
10319 (try_thread_db_load_1): Likewise.
10320 * tracepoint.c (add_tracepoint): Likewise.
10321 (add_tracepoint_action): Likewise.
10322 (create_trace_state_variable): Likewise.
10323 (cmd_qtdpsrc): Likewise.
10324 (cmd_qtro): Likewise.
10325 (add_while_stepping_state): Likewise.
10326 * win32-low.c (child_add_thread): Likewise.
10327 (get_image_name): Likewise.
10328
ed8b7b42
YQ
103292015-08-25 Yao Qi <yao.qi@linaro.org>
10330
10331 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10332
db3cb7cb
YQ
103332015-08-25 Yao Qi <yao.qi@linaro.org>
10334
10335 * Makefile.in (aarch64-linux.o): New rule.
10336 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10337 srv_tgtobj.
10338 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10339 (aarch64_init_debug_reg_state): Make it extern.
10340 (aarch64_linux_prepare_to_resume): Remove.
10341
f6011a1c
YQ
103422015-08-25 Yao Qi <yao.qi@linaro.org>
10343
10344 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10345 lwp_arch_private_info and ptid_of_lwp.
10346
88e2cf7e
YQ
103472015-08-25 Yao Qi <yao.qi@linaro.org>
10348
10349 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10350 Find proc_info by find_process_pid. All callers updated.
10351
5e35436e
YQ
103522015-08-25 Yao Qi <yao.qi@linaro.org>
10353
10354 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10355 Remove.
10356 (debug_reg_change_callback): Remove.
10357 (aarch64_notify_debug_reg_change): Remove.
10358
4a8a7965
YQ
103592015-08-25 Yao Qi <yao.qi@linaro.org>
10360
10361 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10362 Call current_lwp_ptid.
10363
32a271ee
YQ
103642015-08-25 Yao Qi <yao.qi@linaro.org>
10365
10366 * linux-aarch64-low.c (debug_reg_change_callback): Use
10367 debug_printf.
10368
0d51c8d7
YQ
103692015-08-25 Yao Qi <yao.qi@linaro.org>
10370
10371 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10372
31a43dd5
YQ
103732015-08-25 Yao Qi <yao.qi@linaro.org>
10374
10375 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10376
8ee52567
YQ
103772015-08-25 Yao Qi <yao.qi@linaro.org>
10378
10379 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10380 the code.
10381
ff3f0f45
YQ
103822015-08-25 Yao Qi <yao.qi@linaro.org>
10383
10384 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10385 Remove.
10386 (debug_reg_change_callback): Remove argument entry and add argument
10387 lwp. Remove local variable thread. Don't print thread id in the
10388 debugging output. Don't check whether pid of thread equals to pid.
10389 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10390 iterate_over_lwps instead find_inferior.
10391
3d40fbb5
PA
103922015-08-24 Pedro Alves <palves@redhat.com>
10393
10394 * inferiors.c (get_first_process): New function.
10395 * inferiors.h (get_first_process): New declaration.
10396 * remote-utils.c (read_ptid): Default to the first process in the
10397 list, instead of to the current thread's process.
10398
438e1e42
PA
103992015-08-24 Pedro Alves <palves@redhat.com>
10400
10401 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10402 * event-loop.c: Likewise.
10403 * remote-utils.c: Likewise.
10404 * tracepoint.c: Likewise.
10405
a8c6d4fc
PA
104062015-08-24 Pedro Alves <palves@redhat.com>
10407
10408 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10409 ptid_get_lwp.
10410
99b0bb12
PA
104112015-08-21 Pedro Alves <palves@redhat.com>
10412
10413 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10414 instead of literal 1.
10415
f8904751
PA
104162015-08-21 Pedro Alves <palves@redhat.com>
10417
10418 * tdesc.c (default_description): Explicitly zero-initialize.
10419
465a859e
PA
104202015-08-21 Pedro Alves <palves@redhat.com>
10421
10422 PR gdb/18749
10423 * inferiors.c (remove_thread): Discard any pending stop reply for
10424 this thread.
10425 * server.c (remove_all_on_match_pid): Rename to ...
10426 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10427 instead of a pid.
10428 (discard_queued_stop_replies): Change parameter to a ptid. Now
10429 extern.
10430 (handle_v_kill, kill_inferior_callback, captured_main)
10431 (process_serial_event): Adjust.
10432 * server.h (discard_queued_stop_replies): Declare.
10433
f0db101d
PA
104342015-08-21 Pedro Alves <palves@redhat.com>
10435
10436 * linux-low.c (wait_for_sigstop): Always switch to no thread
10437 selected if the previously current thread dies.
10438 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10439 process instead of the current thread's.
10440 * remote-utils.c (input_interrupt): Don't check if there's no
10441 current thread.
10442 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10443 current thread to the general thread fails, error out.
10444 (handle_qxfer_auxv, handle_qxfer_libraries)
10445 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10446 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10447 (handle_query): Check if there's a thread selected instead of
10448 checking whether there's any thread in the thread list.
10449 (handle_qxfer_threads, handle_qxfer_btrace)
10450 (handle_qxfer_btrace_conf): Don't error out early if there's no
10451 thread in the thread list.
10452 (handle_v_cont, myresume): Don't set the current thread to the
10453 continue thread.
10454 (process_serial_event) <Hg handling>: Also set thread_id if the
10455 previous general thread is still alive.
10456 (process_serial_event) <g/G handling>: If setting the current
10457 thread to the general thread fails, error out.
10458 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10459 thread's lwp instead of the current thread's.
10460 * target.c (set_desired_thread): If the desired thread was not
10461 found, leave the current thread pointing to NULL. Return an int
10462 (boolean) indicating success.
10463 * target.h (set_desired_thread): Change return type to int.
10464
40045d91
MF
104652015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10466
10467 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10468 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10469 #includes.
10470 (ps_get_thread_area): New function.
10471
45face3b
GB
104722015-08-19 Gary Benson <gbenson@redhat.com>
10473
10474 * hostio.c (handle_pread): Do not attempt to read more data
10475 than hostio_reply_with_data can fit in a packet.
10476
16d5f642
JB
104772015-08-18 Joel Brobecker <brobecker@adacore.com>
10478
10479 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10480
a738da3a
MF
104812015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10482
10483 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10484
33ebda9d
PA
104852015-08-06 Pedro Alves <palves@redhat.com>
10486
10487 * tracepoint.c (expr_eval_result): Now an int.
10488
a44892be
PA
104892015-08-06 Pedro Alves <palves@redhat.com>
10490
10491 * gdbthread.h (struct regcache): Forward declare.
10492 (struct thread_info) <regcache_data>: Now a struct regcache
10493 pointer.
10494 * inferiors.c (inferior_regcache_data)
10495 (set_inferior_regcache_data): Now work with struct regcache
10496 pointers.
10497 * inferiors.h (struct regcache): Forward declare.
10498 (inferior_regcache_data, set_inferior_regcache_data): Now work
10499 with struct regcache pointers.
10500 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10501 (free_register_cache_thread): Remove struct regcache pointer
10502 casts.
10503
608a1e46
PA
105042015-08-06 Pedro Alves <palves@redhat.com>
10505
10506 * server.c (captured_main): On error, print the exception message
10507 to stderr, and if run_once is set, throw a quit.
10508
f0ce0d3a
PA
105092015-08-06 Pedro Alves <palves@redhat.com>
10510
10511 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10512 the current thread.
10513
bf47e248
PA
105142015-08-06 Pedro Alves <palves@redhat.com>
10515
10516 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10517 reading beyond the passed in buffer length.
10518
b6b9ffcc
PL
105192015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10520
10521 * tracepoint.c (symbol_list) <required>: Remove.
10522
863d01bd
PA
105232015-08-06 Pedro Alves <palves@redhat.com>
10524
10525 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10526 count if stopping and suspending threads.
10527 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10528 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10529 (linux_detach): Complete an ongoing step-over.
10530 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10531 throughout.
10532 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10533 (linux_wait_1): If passing a signal to the inferior after
10534 finishing a step-over, unsuspend and re-resume all lwps. If we
10535 see a single-step event but the thread should be continuing, don't
10536 pass the trap to gdb.
10537 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10538 internal_error instead of gdb_assert.
10539 (enqueue_pending_signal): New function.
10540 (check_ptrace_stopped_lwp_gone): Add debug output.
10541 (start_step_over): Use internal_error instead of gdb_assert.
10542 (complete_ongoing_step_over): New function.
10543 (linux_resume_one_thread): Don't resume a suspended thread.
10544 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10545 it stepping.
10546
00db26fa
PA
105472015-08-06 Pedro Alves <palves@redhat.com>
10548
10549 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10550 (linux_thread_alive): Use lwp_is_marked_dead.
10551 (extended_event_reported): Delete.
10552 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10553 instead of extended_event_reported.
10554 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10555 as well.
10556 (lwp_is_marked_dead): New function.
10557 (lwp_running): Use lwp_is_marked_dead.
10558 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10559 comment.
10560
ad071a30
PA
105612015-08-06 Pedro Alves <palves@redhat.com>
10562
10563 * linux-low.c (linux_wait_1): Move fork event output out of the
10564 !report_to_gdb check. Pass event_child->waitstatus to
10565 target_waitstatus_to_string instead of ourstatus.
10566
524b57e6
YQ
105672015-08-04 Yao Qi <yao.qi@linaro.org>
10568
10569 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10570 if current_thread is 32 bit.
10571
6085d6f6
YQ
105722015-08-04 Yao Qi <yao.qi@linaro.org>
10573
10574 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10575 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10576 * server.c (extended_protocol): Remove "static".
10577 * server.h (extended_protocol): Declare it.
10578
8a7e4587
YQ
105792015-08-04 Yao Qi <yao.qi@linaro.org>
10580
10581 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10582 both aarch64 and aarch32.
10583 (aarch64_set_pc): Likewise.
10584
3b53ae99
YQ
105852015-08-04 Yao Qi <yao.qi@linaro.org>
10586
10587 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10588 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10589 arm-with-neon.xml to srv_xmlfiles.
10590 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10591 (is_64bit_tdesc): New function.
10592 (aarch64_linux_read_description): New function.
10593 (aarch64_arch_setup): Call aarch64_linux_read_description.
10594 (regs_info): Rename to regs_info_aarch64.
10595 (aarch64_regs_info): Return right regs_info.
10596 (initialize_low_arch): Call initialize_low_arch_aarch32.
10597
bd9e6534
YQ
105982015-08-04 Yao Qi <yao.qi@linaro.org>
10599
10600 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10601 * linux-aarch32-low.c: New file.
10602 * linux-aarch32-low.h: New file.
10603 * linux-arm-low.c (arm_fill_gregset): Move it to
10604 linux-aarch32-low.c.
10605 (arm_store_gregset): Likewise.
10606 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10607 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10608 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10609 (regs_info): Rename to regs_info_arm.
10610 (arm_regs_info): Return regs_info_aarch32 if
10611 have_ptrace_getregset is 1 and target description is
10612 arm_with_neon or arm_with_vfpv3.
10613 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10614 Call initialize_low_arch_aarch32 instead.
10615
ded48a5e
YQ
106162015-08-04 Yao Qi <yao.qi@linaro.org>
10617
10618 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10619 * linux-low.c: ... here.
10620 * linux-low.h (have_ptrace_getregset): Declare it.
10621
96e9210f
PA
106222015-08-04 Pedro Alves <palves@redhat.com>
10623
10624 * thread-db.c (struct thread_db): Use new typedefs.
10625 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10626 CHK calls.
10627 (disable_thread_event_reporting): Cast result of dlsym to
10628 destination function pointer type.
10629 (thread_db_mourn): Use td_ta_delete_ftype.
10630
af60a1ef
SL
106312015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10632
10633 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10634 arch variant.
10635 (CDX_BREAKPOINT): Define for R2.
10636 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10637 (the_low_target): Add comments.
10638
e8b41681
YQ
106392015-07-30 Yao Qi <yao.qi@linaro.org>
10640
10641 * linux-arm-low.c (arm_hwcap): Remove it.
10642 (arm_read_description): New local variable arm_hwcap. Don't
10643 set arm_hwcap to zero.
10644
89abb039
YQ
106452015-07-30 Yao Qi <yao.qi@linaro.org>
10646
10647 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10648 Use regcache->tdesc instead.
10649 (arm_store_wmmxregset): Likewise.
10650 (arm_fill_vfpregset): Likewise.
10651 (arm_store_vfpregset): Likewise.
10652
deca266c
YQ
106532015-07-30 Yao Qi <yao.qi@linaro.org>
10654
10655 * linux-arm-low.c: Include arch/arm.h.
10656 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10657 (arm_store_gregset): Likewise.
10658
aa58a496
SM
106592015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10660
10661 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10662 ptrace's 4th parameter.
10663
50904b25
YQ
106642015-07-27 Yao Qi <yao.qi@linaro.org>
10665
10666 * configure.srv (case aarch64*-*-linux*): Don't set
10667 srv_linux_usrregs.
10668
5826e159
PA
106692015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10670
10671 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10672 sys/ptrace.h.
10673 * linux-arm-low.c: Likewise.
10674 * linux-cris-low.c: Likewise.
10675 * linux-crisv32-low.c: Likewise.
10676 * linux-low.c: Likewise.
10677 * linux-m68k-low.c: Likewise.
10678 * linux-mips-low.c: Likewise.
10679 * linux-nios2-low.c: Likewise.
10680 * linux-s390-low.c: Likewise.
10681 * linux-sparc-low.c: Likewise.
10682 * linux-tic6x-low.c: Likewise.
10683 * linux-tile-low.c: Likewise.
10684 * linux-x86-low.c: Likewise.
10685
54019719
PA
106862015-07-24 Pedro Alves <palves@redhat.com>
10687
10688 * config.in: Regenerate.
10689 * configure: Regenerate.
10690
eb7aa561
PA
106912015-07-24 Pedro Alves <palves@redhat.com>
10692
10693 * acinclude.m4: Include ../ptrace.m4.
10694 * configure.ac: Call GDB_AC_PTRACE.
10695 * config.in, configure: Regenerate.
10696
55d7b841
YQ
106972015-07-24 Yao Qi <yao.qi@linaro.org>
10698
10699 * linux-low.c (linux_create_inferior): Remove setting to
10700 proc->priv->new_inferior.
10701 (linux_attach): Likewise.
10702 (linux_low_filter_event): Likewise.
10703 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10704
c06cbd92
YQ
107052015-07-24 Yao Qi <yao.qi@linaro.org>
10706
10707 * linux-low.c (linux_arch_setup): New function.
10708 (linux_low_filter_event): If proc->tdesc is NULL and
10709 proc->attached is true, call the_low_target.arch_setup.
10710 Otherwise, keep status pending, and return.
10711 (linux_resume_one_lwp_throw): Don't call get_pc if
10712 thread->while_stepping isn't NULL. Don't call
10713 get_thread_regcache if proc->tdesc is NULL.
10714 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10715 (linux_target_ops): Install arch_setup.
10716 * server.c (start_inferior): Call the_target->arch_setup.
10717 * target.h (struct target_ops) <arch_setup>: New field.
10718 (target_arch_setup): New marco.
10719 * lynx-low.c (lynx_target_ops): Update.
10720 * nto-low.c (nto_target_ops): Update.
10721 * spu-low.c (spu_target_ops): Update.
10722 * win32-low.c (win32_target_ops): Update.
10723
5ae3ebba
YQ
107242015-07-24 Yao Qi <yao.qi@linaro.org>
10725
10726 * linux-low.c (linux_add_process): Don't set
10727 proc->priv->new_inferior.
10728 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10729 (linux_attach): Likewise.
10730
eb97750b
YQ
107312015-07-24 Yao Qi <yao.qi@linaro.org>
10732
10733 * server.c (start_inferior): Code refactor.
10734
51aee833
YQ
107352015-07-24 Yao Qi <yao.qi@linaro.org>
10736
10737 * server.c (process_serial_event): Set general_thread.
10738
af1b22f3
YQ
107392015-07-21 Yao Qi <yao.qi@linaro.org>
10740
10741 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10742 aarch64_linux_get_debug_reg_capacity.
10743
554717a3
YQ
107442015-07-17 Yao Qi <yao.qi@linaro.org>
10745
10746 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10747 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10748 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10749 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10750 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10751 (AARCH64_HWP_ALIGNMENT): Likewise.
10752 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10753 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10754 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10755 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10756 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10757 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10758 (struct aarch64_debug_reg_state): Likewise.
10759 (struct arch_lwp_info): Likewise.
10760 (aarch64_align_watchpoint): Likewise.
10761 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10762 (aarch64_watchpoint_length): Likewise.
10763 (aarch64_point_encode_ctrl_reg): Likewise
10764 (aarch64_point_is_aligned): Likewise.
10765 (aarch64_align_watchpoint): Likewise.
10766 (aarch64_linux_set_debug_regs):
10767 (aarch64_dr_state_insert_one_point): Likewise.
10768 (aarch64_dr_state_remove_one_point): Likewise.
10769 (aarch64_handle_breakpoint): Likewise.
10770 (aarch64_handle_aligned_watchpoint): Likewise.
10771 (aarch64_handle_unaligned_watchpoint): Likewise.
10772 (aarch64_handle_watchpoint): Likewise.
10773
c67ca4de
YQ
107742015-07-17 Yao Qi <yao.qi@linaro.org>
10775
10776 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10777 and don't aarch64_get_debug_reg_state. All callers update.
10778 (aarch64_handle_aligned_watchpoint): Likewise.
10779 (aarch64_handle_unaligned_watchpoint): Likewise.
10780 (aarch64_handle_watchpoint): Likewise.
10781 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10782 (aarch64_remove_point): Likewise.
10783
25abf979
YQ
107842015-07-17 Yao Qi <yao.qi@linaro.org>
10785
10786 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10787 debug_printf.
10788 (aarch64_handle_unaligned_watchpoint): Likewise.
10789
db1ff28b
JK
107902015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10791
10792 Revert the previous 3 commits:
10793 Move gdb_regex* to common/
10794 Move linux_find_memory_regions_full & co.
10795 gdbserver build-id attribute generator
10796
700ca40f
JK
107972015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10798 Jan Kratochvil <jan.kratochvil@redhat.com>
10799
10800 gdbserver build-id attribute generator.
10801 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10802 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10803 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10804 (find_phdr): New.
10805 (get_dynamic): Use find_pdhr to traverse program headers.
10806 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10807 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10808 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10809 (get_hex_build_id): New.
10810 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10811 to reply XML document.
10812
9904185c
JK
108132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10814 Jan Kratochvil <jan.kratochvil@redhat.com>
10815
10816 * target.c: Include target/target-utils.h and fcntl.h.
10817 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10818 (target_fileio_read_stralloc): New functions.
10819
6e5b4429
JK
108202015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10821
10822 * Makefile.in (OBS): Add gdb_regex.o.
10823 (gdb_regex.o): New.
10824 * config.in: Rebuilt.
10825 * configure: Rebuilt.
10826
ddc98fbf
JK
108272015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10828 Jan Kratochvil <jan.kratochvil@redhat.com>
10829
10830 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10831 * Makefile.in (OBS): Add target-utils.o.
10832 (linux-maps.o, target-utils.o): New.
10833 * configure.srv (srv_linux_obj): Add linux-maps.o.
10834
e57bb7a0
PL
108352015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10836
10837 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10838 function, return 1.
10839 (the_low_target): Install it.
10840
586b02a9
PA
108412015-07-14 Pedro Alves <palves@redhat.com>
10842
10843 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10844 Instead, ignore ECHILD, and throw an error for other errnos.
10845
58c1b36c
PA
108462015-07-10 Pedro Alves <palves@redhat.com>
10847
10848 * event-loop.c (struct callback_event) <data>: Change type to
10849 gdb_client_data instance instead of gdb_client_data pointer.
10850 (append_callback_event): Adjust.
10851
421530db
PL
108522015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10853
10854 * linux-aarch64-low.c: Add comments for each linux_target_ops
10855 method. Remove comments already covered in target_ops and
10856 linux_target_ops definitions.
10857 (the_low_target): Add comments for each unimplemented method.
10858
c2d65f38
YQ
108592015-07-09 Yao Qi <yao.qi@linaro.org>
10860
10861 * linux-aarch64-low.c (aarch64_regmap): Remove.
10862 (aarch64_usrregs_info): Remove.
10863 (regs_info): Set field usrregs to NULL.
10864
b20a6524
MM
108652015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10866
10867 * linux-low.c: Include "rsp-low.h"
10868 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10869 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10870 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10871 (handle_btrace_enable_pt): New.
10872 (handle_btrace_general_set): Support "pt".
10873 (handle_btrace_conf_general_set): Support "pt:size".
10874
96c97461
PL
108752015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10876
10877 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10878 Z_PACKET_SW_BP.
10879
37d66942
PL
108802015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10881
10882 * linux-aarch64-low.c: Remove comment about endianness.
10883 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10884 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10885 memcmp.
10886
dc06243f
GB
108872015-06-24 Gary Benson <gbenson@redhat.com>
10888
10889 * linux-i386-ipa.c (stdint.h): Do not include.
10890 * lynx-i386-low.c (stdint.h): Likewise.
10891 * lynx-ppc-low.c (stdint.h): Likewise.
10892 * mem-break.c (stdint.h): Likewise.
10893 * thread-db.c (stdint.h): Likewise.
10894 * tracepoint.c (stdint.h): Likewise.
10895 * win32-low.c (stdint.h): Likewise.
10896
124e13d9
SM
108972015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10898
10899 * server.c (write_qxfer_response): Update call to
10900 remote_escape_output.
10901
909c2cda
JK
109022015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10903 Jan Kratochvil <jan.kratochvil@redhat.com>
10904
10905 Merge multiple hex conversions.
10906 * gdbreplay.c (tohex): Rename to 'fromhex'.
10907 (logchar): Use fromhex.
10908
24c05f46
JK
109092015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10910
10911 * server.c (handle_qxfer_libraries): Set `version' attribute for
10912 <library-list>.
10913
14d2069a
GB
109142015-06-10 Gary Benson <gbenson@redhat.com>
10915
10916 * target.h (struct target_ops) <multifs_open>: New field.
10917 <multifs_unlink>: Likewise.
10918 <multifs_readlink>: Likewise.
10919 * linux-low.c (nat/linux-namespaces.h): New include.
10920 (linux_target_ops): Initialize the_target->multifs_open,
10921 the_target->multifs_unlink and the_target->multifs_readlink.
10922 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10923 * hostio.c (hostio_fs_pid): New static variable.
10924 (hostio_handle_new_gdb_connection): New function.
10925 (handle_setfs): Likewise.
10926 (handle_open): Use the_target->multifs_open as appropriate.
10927 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10928 (handle_readlink): Use the_target->multifs_readlink as
10929 appropriate.
10930 (handle_vFile): Handle vFile:setfs packets.
10931 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10932 after target_handle_new_gdb_connection.
10933
4b8b5e72
GB
109342015-06-10 Gary Benson <gbenson@redhat.com>
10935
10936 * configure.ac (AC_CHECK_FUNCS): Add setns.
10937 * config.in: Regenerate.
10938 * configure: Likewise.
10939 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10940 (linux-namespaces.o): New rule.
10941 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10942
3ac2e371
GB
109432015-06-09 Gary Benson <gbenson@redhat.com>
10944
10945 * hostio.c (handle_open): Process mode argument with
10946 fileio_to_host_mode.
10947
ca9b78ce
YQ
109482015-06-01 Yao Qi <yao.qi@linaro.org>
10949
10950 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10951 * linux-x86-low.c: Likewise.
10952
bfacd19d
DB
109532015-05-28 Don Breazeal <donb@codesourcery.com>
10954
10955 * linux-low.c (handle_extended_wait): Initialize
10956 thread_info.last_resume_kind for new fork children.
10957
452003ef
PA
109582015-05-15 Pedro Alves <palves@redhat.com>
10959
10960 * target.h (target_handle_new_gdb_connection): Rewrite using if
10961 wrapped in do/while.
10962
1041a03c
JB
109632015-05-14 Joel Brobecker <brobecker@adacore.com>
10964
10965 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10966 * configure, config.in: Regenerate.
10967 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10968 Declare typedef.
10969
c269dbdb
DB
109702015-05-12 Don Breazeal <donb@codesourcery.com>
10971
10972 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10973 PTRACE_EVENT_VFORK_DONE.
10974 (linux_low_ptrace_options, extended_event_reported): Add vfork
10975 events.
10976 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10977 and "vforkdone" for RSP 'T' Stop Reply Packet.
10978 * server.h (report_vfork_events): Declare
10979 global variable.
10980
3a8a0396
DB
109812015-05-12 Don Breazeal <donb@codesourcery.com>
10982
10983 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10984 (the_low_target) <new_fork>: Initialize new member.
10985 * linux-arm-low.c (arm_new_fork): New function.
10986 (the_low_target) <new_fork>: Initialize new member.
10987 * linux-low.c (handle_extended_wait): Call new target function
10988 new_fork.
10989 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10990 * linux-mips-low.c (mips_add_watchpoint): New function
10991 extracted from mips_insert_point.
10992 (the_low_target) <new_fork>: Initialize new member.
10993 (mips_linux_new_fork): New function.
10994 (mips_insert_point): Call mips_add_watchpoint.
10995 * linux-x86-low.c (x86_linux_new_fork): New function.
10996 (the_low_target) <new_fork>: Initialize new member.
10997
de0d863e
DB
109982015-05-12 Don Breazeal <donb@codesourcery.com>
10999
11000 * linux-low.c (handle_extended_wait): Implement return value,
11001 rename argument 'event_child' to 'event_lwp', handle
11002 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11003 (linux_low_ptrace_options): New function.
11004 (linux_low_filter_event): Call linux_low_ptrace_options,
11005 use different argument fo linux_enable_event_reporting,
11006 use return value from handle_extended_wait.
11007 (extended_event_reported): New function.
11008 (linux_wait_1): Call extended_event_reported and set
11009 status to report fork events.
11010 (linux_write_memory): Add pid to debug message.
11011 (reset_lwp_ptrace_options_callback): New function.
11012 (linux_handle_new_gdb_connection): New function.
11013 (linux_target_ops): Initialize new structure member.
11014 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11015 * lynx-low.c: Initialize new structure member.
11016 * remote-utils.c (prepare_resume_reply): Implement stop reason
11017 "fork" for "T" stop message.
11018 * server.c (handle_query): Call handle_new_gdb_connection.
11019 * server.h (report_fork_events): Declare global flag.
11020 * target.h (struct target_ops) <handle_new_gdb_connection>:
11021 New member.
11022 (target_handle_new_gdb_connection): New macro.
11023 * win32-low.c: Initialize new structure member.
11024
ddcbc397
DB
110252015-05-12 Don Breazeal <donb@codesourcery.com>
11026
11027 * mem-break.c (APPEND_TO_LIST): Define macro.
11028 (clone_agent_expr): New function.
11029 (clone_one_breakpoint): New function.
11030 (clone_all_breakpoints): New function.
11031 * mem-break.h: Declare new functions.
11032
89245bc0
DB
110332015-05-12 Don Breazeal <donb@codesourcery.com>
11034
11035 * linux-low.c (linux_supports_fork_events): New function.
11036 (linux_supports_vfork_events): New function.
11037 (linux_target_ops): Initialize new structure members.
11038 (initialize_low): Call linux_check_ptrace_features.
11039 * lynx-low.c (lynx_target_ops): Initialize new structure
11040 members.
11041 * server.c (report_fork_events, report_vfork_events):
11042 New global flags.
11043 (handle_query): Add new features to qSupported packet and
11044 response.
11045 (captured_main): Initialize new global variables.
11046 * target.h (struct target_ops) <supports_fork_events>:
11047 New member.
11048 <supports_vfork_events>: New member.
11049 (target_supports_fork_events): New macro.
11050 (target_supports_vfork_events): New macro.
11051 * win32-low.c (win32_target_ops): Initialize new structure
11052 members.
11053
835205d0
GB
110542015-05-12 Gary Benson <gbenson@redhat.com>
11055
11056 * server.c (handle_qxfer_exec_file): Use current process
11057 if annex is empty.
11058
21e94bd9
SL
110592015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11060
11061 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11062 Remove HAVE_PTRACE_GETREGS conditionals.
11063 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11064 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11065
45614f15
YQ
110662015-05-08 Yao Qi <yao.qi@linaro.org>
11067
11068 * linux-low.c (linux_supports_conditional_breakpoints): New
11069 function.
11070 (linux_target_ops): Install new target method.
11071 * lynx-low.c (lynx_target_ops): Install NULL hook for
11072 supports_conditional_breakpoints.
11073 * nto-low.c (nto_target_ops): Likewise.
11074 * spu-low.c (spu_target_ops): Likewise.
11075 * win32-low.c (win32_target_ops): Likewise.
11076 * server.c (handle_query): Check
11077 target_supports_conditional_breakpoints.
11078 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11079 New field.
11080 (target_supports_conditional_breakpoints): New macro.
11081
80ad801e
PA
110822015-05-06 Pedro Alves <palves@redhat.com>
11083
11084 PR server/18081
11085 * server.c (start_inferior): If the process exits, mourn it.
11086
819843c7
GB
110872015-04-21 Gary Benson <gbenson@redhat.com>
11088
11089 * hostio.c (fileio_open_flags_to_host): Factored out to
11090 fileio_to_host_openflags in common/fileio.c. Single use
11091 updated.
11092
a2d5a9d7
MF
110932015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11094
11095 * linux-xtensa-low.c (xtensa_fill_gregset)
11096 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11097 XCHAL_HAVE_LOOP.
11098
deb44829
MF
110992015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11100
11101 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11102 (regs_info): Replace usrregs pointer with NULL.
11103
e57f1de3
GB
111042015-04-17 Gary Benson <gbenson@redhat.com>
11105
11106 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11107 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11108 * server.c (handle_qxfer_exec_file): New function.
11109 (qxfer_packets): Add exec-file entry.
11110 (handle_query): Report qXfer:exec-file:read as supported packet.
11111
62828379
RN
111122015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11113
11114 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11115
b88bb450
GB
111162015-04-09 Gary Benson <gbenson@redhat.com>
11117
11118 * hostio-errno.c (errno_to_fileio_error): Remove function.
11119 Update caller to use remote_fileio_to_fio_error.
11120
c8f4bfdd
YQ
111212015-04-09 Yao Qi <yao.qi@linaro.org>
11122
11123 * linux-low.c (linux_insert_point): Call
11124 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11125 (linux_remove_point): Call remove_memory_breakpoint if type is
11126 raw_bkpt_type_sw.
11127 * linux-x86-low.c (x86_insert_point): Don't call
11128 insert_memory_breakpoint.
11129 (x86_remove_point): Don't call remove_memory_breakpoint.
11130
41f98f02
PA
111312015-04-01 Pedro Alves <palves@redhat.com>
11132 Cleber Rosa <crosa@redhat.com>
11133
11134 * server.c (gdbserver_usage): Reorganize and extend the usage
11135 message.
11136
2bf6fb9d
PA
111372015-03-24 Pedro Alves <palves@redhat.com>
11138
11139 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11140 output. Also dump TRAP_TRACE.
11141 (linux_low_filter_event): In debug output, distinguish a
11142 resume_stop SIGSTOP from a delayed SIGSTOP.
11143
369f6daa
GB
111442015-03-24 Gary Benson <gbenson@redhat.com>
11145
11146 * linux-x86-low.c (x86_linux_new_thread): Moved to
11147 nat/x86-linux.c.
11148 (x86_linux_prepare_to_resume): Likewise.
11149
8e5d4070
GB
111502015-03-24 Gary Benson <gbenson@redhat.com>
11151
11152 * Makefile.in (x86-linux-dregs.o): New rule.
11153 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11154 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11155 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11156 (x86_linux_dr_get): Likewise.
11157 (x86_linux_dr_set): Likewise.
11158 (update_debug_registers_callback): Likewise.
11159 (x86_linux_dr_set_addr): Likewise.
11160 (x86_linux_dr_get_addr): Likewise.
11161 (x86_linux_dr_set_control): Likewise.
11162 (x86_linux_dr_get_control): Likewise.
11163 (x86_linux_dr_get_status): Likewise.
11164 (x86_linux_update_debug_registers): Likewise.
11165
2b95d440
GB
111662015-03-24 Gary Benson <gbenson@redhat.com>
11167
11168 * linux-x86-low.c (x86_linux_update_debug_registers):
11169 New function, factored out from...
11170 (x86_linux_prepare_to_resume): ...this.
11171
14b0bc68
GB
111722015-03-24 Gary Benson <gbenson@redhat.com>
11173
11174 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11175 (x86_linux_dr_set): Likewise.
11176 (update_debug_registers_callback): Likewise.
11177 (x86_linux_dr_set_addr): Likewise.
11178 (x86_linux_dr_get_addr): Likewise.
11179 (x86_linux_dr_set_control): Likewise.
11180 (x86_linux_dr_get_control): Likewise.
11181 (x86_linux_dr_get_status): Likewise.
11182 (x86_linux_prepare_to_resume): Likewise.
11183
5dfe6ca8
GB
111842015-03-24 Gary Benson <gbenson@redhat.com>
11185
11186 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11187 Use perror_with_name. Pass string through gettext.
11188 (x86_linux_dr_set): Likewise.
11189
d33472ad
GB
111902015-03-24 Gary Benson <gbenson@redhat.com>
11191
11192 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11193 (x86_linux_dr_set_addr): ...this.
11194 (x86_dr_low_get_addr): Rename to...
11195 (x86_linux_dr_get_addr): ...this.
11196 (x86_dr_low_set_control): Rename to...
11197 (x86_linux_dr_set_control): ...this.
11198 (x86_dr_low_get_control): Rename to...
11199 (x86_linux_dr_get_control): ...this.
11200 (x86_dr_low_get_status): Rename to...
11201 (x86_linux_dr_get_status): ...this.
11202 (x86_dr_low): Update with new function names.
11203
4b134ca1
GB
112042015-03-24 Gary Benson <gbenson@redhat.com>
11205
11206 * Makefile.in (x86-linux.o): New rule.
11207 * configure.srv: Add x86-linux.o to relevant targets.
11208 * linux-low.c (lwp_set_arch_private_info): New function.
11209 (lwp_arch_private_info): Likewise.
11210 * linux-x86-low.c: Include nat/x86-linux.h.
11211 (arch_lwp_info): Removed structure.
11212 (update_debug_registers_callback):
11213 Use lwp_set_debug_registers_changed.
11214 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11215 and lwp_set_debug_registers_changed.
11216 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11217
34c703da
GB
112182015-03-24 Gary Benson <gbenson@redhat.com>
11219
11220 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11221 * linux-arm-low.c (arm_new_thread): Likewise.
11222 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11223 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11224 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11225 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11226
cff068da
GB
112272015-03-24 Gary Benson <gbenson@redhat.com>
11228
11229 * linux-low.c (ptid_of_lwp): New function.
11230 (lwp_is_stopped): Likewise.
11231 (lwp_stop_reason): Likewise.
11232 * linux-x86-low.c (update_debug_registers_callback):
11233 Use lwp_is_stopped.
11234 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11235 lwp_stop_reason.
11236
b2f7c7e8
GB
112372015-03-24 Gary Benson <gbenson@redhat.com>
11238
11239 * linux-low.h (linux_stop_lwp): Remove declaration.
11240
6d4ee8c6
GB
112412015-03-24 Gary Benson <gbenson@redhat.com>
11242
11243 * linux-low.h: Include nat/linux-nat.h.
11244 * linux-low.c (iterate_over_lwps_args): New structure.
11245 (iterate_over_lwps_filter): New function.
11246 (iterate_over_lwps): Likewise.
11247 * linux-x86-low.c (update_debug_registers_callback):
11248 Update signature to what iterate_over_lwps expects.
11249 Remove PID check that iterate_over_lwps now performs.
11250 (x86_dr_low_set_addr): Use iterate_over_lwps.
11251 (x86_dr_low_set_control): Likewise.
11252
70a0bb6b
GB
112532015-03-24 Gary Benson <gbenson@redhat.com>
11254
11255 * linux-x86-low.c (x86_debug_reg_state): New function.
11256 (x86_linux_prepare_to_resume): Use the above.
11257
7b669087
GB
112582015-03-24 Gary Benson <gbenson@redhat.com>
11259
11260 * linux-low.c (current_lwp_ptid): New function.
11261 * linux-x86-low.c: Include nat/linux-nat.h.
11262 (x86_dr_low_get_addr): Use current_lwp_ptid.
11263 (x86_dr_low_get_control): Likewise.
11264 (x86_dr_low_get_status): Likewise.
11265
eef49a3d
PA
112662015-03-20 Pedro Alves <palves@redhat.com>
11267
11268 * tracepoint.c (cmd_qtstatus): Make "str" const.
11269
b2333d22
PA
112702015-03-20 Pedro Alves <palves@redhat.com>
11271
11272 * server.c (handle_general_set): Make "req_str" const.
11273
23f238d3
PA
112742015-03-19 Pedro Alves <palves@redhat.com>
11275
11276 * linux-low.c (linux_resume_one_lwp): Rename to ...
11277 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11278 instead call perror_with_name.
11279 (check_ptrace_stopped_lwp_gone): New function.
11280 (linux_resume_one_lwp): Reimplement as wrapper around
11281 linux_resume_one_lwp_throw that swallows errors if the LWP is
11282 gone.
11283
91baf43f
PA
112842015-03-19 Pedro Alves <palves@redhat.com>
11285
11286 * linux-low.c (count_events_callback, select_event_lwp_callback):
11287 No longer check whether the thread has resume_stop as last resume
11288 kind.
11289
8bf3b159
PA
112902015-03-19 Pedro Alves <palves@redhat.com>
11291
11292 * linux-low.c (count_events_callback, select_event_lwp_callback):
11293 Use the lwp's status_pending_p field, not the thread's.
11294
b90fc188
PA
112952015-03-19 Pedro Alves <palves@redhat.com>
11296
11297 * linux-low.c (select_event_lwp_callback): Update comments to
11298 no longer mention SIGTRAP.
11299
464b0089
GB
113002015-03-18 Gary Benson <gbenson@redhat.com>
11301
11302 * server.c (handle_query): Do not report vFile:fstat as supported.
11303
aa9e327f
GB
113042015-03-11 Gary Benson <gbenson@redhat.com>
11305
11306 * hostio.c (sys/types.h): New include.
11307 (sys/stat.h): Likewise.
11308 (common-remote-fileio.h): Likewise.
11309 (handle_fstat): New function.
11310 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11311
791c0056
GB
113122015-03-11 Gary Benson <gbenson@redhat.com>
11313
11314 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11315 struct stat.st_blocks and struct stat.st_blksize.
11316 * configure: Regenerate.
11317 * config.in: Likewise.
11318 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11319 (OBS): Add common-remote-fileio.o.
11320 (common-remote-fileio.o): New rule.
11321
9a9df970
PA
113222015-03-09 Pedro Alves <palves@redhat.com>
11323
11324 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11325 'struct sockaddr' pointer in 'accept' call.
11326
9eb1356e
PA
113272015-03-09 Pedro Alves <palves@redhat.com>
11328
11329 Revert:
11330 2015-03-07 Pedro Alves <palves@redhat.com>
11331 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11332 or <winsock2.h> here. Instead include "gdb_socket.h".
11333 (remote_open): Use union gdb_sockaddr_u.
11334 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11335 or <winsock2.h> here. Instead include "gdb_socket.h".
11336 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11337 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11338 or <sys/un.h>.
11339 (init_named_socket, gdb_agent_helper_thread): Use union
11340 gdb_sockaddr_u.
11341
aac331e4
PA
113422015-03-07 Pedro Alves <palves@redhat.com>
11343
11344 * configure.ac (build_warnings): Move
11345 -Wdeclaration-after-statement to the C-specific set.
11346 * configure: Regenerate.
11347
366c75fc
PA
113482015-03-07 Pedro Alves <palves@redhat.com>
11349
11350 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11351 or <winsock2.h> here. Instead include "gdb_socket.h".
11352 (remote_open): Use union gdb_sockaddr_u.
11353 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11354 or <winsock2.h> here. Instead include "gdb_socket.h".
11355 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11356 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11357 or <sys/un.h>.
11358 (init_named_socket, gdb_agent_helper_thread): Use union
11359 gdb_sockaddr_u.
11360
492d29ea
PA
113612015-03-07 Pedro Alves <palves@redhat.com>
11362
11363 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11364 instead.
11365
60a191ed
YQ
113662015-03-06 Yao Qi <yao.qi@linaro.org>
11367
11368 * linux-aarch64-low.c (aarch64_insert_point): Use
11369 show_debug_regs as a boolean.
11370 (aarch64_remove_point): Likewise.
11371
f5771b1d
PA
113722015-03-05 Pedro Alves <palves@redhat.com>
11373
11374 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11375 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11376 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11377 * nto-low.c (nto_target_ops): Likewise.
11378 * spu-low.c (spu_target_ops): Likewise.
11379 * win32-low.c (win32_target_ops): Likewise.
11380
3e572f71
PA
113812015-03-04 Pedro Alves <palves@redhat.com>
11382
72f4393d 11383 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11384 Decide whether a breakpoint triggered based on the SIGTRAP's
11385 siginfo.si_code.
72f4393d
L
11386 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11387 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11388 (linux_low_filter_event): Check for breakpoints before checking
11389 watchpoints.
11390 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11391 siginfo.si_code.
72f4393d
L
11392 (linux_stopped_by_sw_breakpoint)
11393 (linux_supports_stopped_by_sw_breakpoint)
11394 (linux_stopped_by_hw_breakpoint)
11395 (linux_supports_stopped_by_hw_breakpoint): New functions.
11396 (linux_target_ops): Install new target methods.
3e572f71 11397
1ec68e26
PA
113982015-03-04 Pedro Alves <palves@redhat.com>
11399
11400 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11401 * server.c (swbreak_feature, hwbreak_feature): New globals.
11402 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11403 (captured_main): Clear swbreak_feature and hwbreak_feature.
11404 * server.h (swbreak_feature, hwbreak_feature): Declare.
11405 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11406 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11407 supports_stopped_by_hw_breakpoint>: New fields.
11408 (target_supports_stopped_by_sw_breakpoint)
11409 (target_stopped_by_sw_breakpoint)
11410 (target_supports_stopped_by_hw_breakpoint)
11411 (target_stopped_by_hw_breakpoint): Declare.
11412
15c66dd6
PA
114132015-03-04 Pedro Alves <palves@redhat.com>
11414
11415 enum lwp_stop_reason -> enum target_stop_reason
11416 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11417 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11418 (linux_wait_1, stuck_in_jump_pad_callback)
11419 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11420 (linux_stopped_by_watchpoint):
11421 * linux-low.h (enum lwp_stop_reason): Delete.
11422 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11423 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11424
98fc70d6
YQ
114252015-03-04 Yao Qi <yao.qi@linaro.org>
11426
11427 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11428
dd2ac174
GB
114292015-03-03 Gary Benson <gbenson@redhat.com>
11430
11431 * hostio.c (handle_vFile): Fix prefix lengths.
11432
d68e53f4
MM
114332015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11434
11435 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11436 ptr_bits.
11437
bf2d68ab
AA
114382015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11439
11440 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11441 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11442 (clean): Add "rm -f" for above C files.
11443 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11444 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11445 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11446 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11447 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11448 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11449 (init_registers_s390x_vx_linux64)
11450 (init_registers_s390x_tevx_linux64)
11451 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11452 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11453 declarations.
11454 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11455 (s390_store_vxrs_high): New functions.
11456 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11457 NT_S390_VXRS_HIGH.
11458 (s390_arch_setup): Add logic for selecting one of the new target
11459 descriptions. Activate the new vector regsets if applicable.
11460 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11461 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11462 and init_registers_s390x_tevx_linux64.
11463
c966a859
PA
114642015-03-01 Pedro Alves <palves@redhat.com>
11465
11466 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11467 parameter.
11468
4180215b
PA
114692015-02-27 Pedro Alves <palves@redhat.com>
11470
11471 * linux-x86-low.c (u_debugreg_offset): New function.
11472 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11473
749bab01
PA
114742015-02-27 Pedro Alves <palves@redhat.com>
11475
11476 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11477 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11478 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11479 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11480 (ps_lsetfpregs, ps_getpid)
11481 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11482 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11483 (ps_lsetxregs, ps_plog): Declare.
11484
3c14e5a3
PA
114852015-02-27 Pedro Alves <palves@redhat.com>
11486
11487 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11488 IP_AGENT_EXPORT_FUNC.
11489 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11490 IP_AGENT_EXPORT_FUNC.
11491 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11492 (IP_AGENT_EXPORT): Delete.
11493 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11494 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11495 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11496 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11497 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11498 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11499 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11500 (traceframe_read_count, traceframe_write_count)
11501 (traceframes_created, trace_state_variables, get_raw_reg)
11502 (get_trace_state_variable_value, set_trace_state_variable_value)
11503 (ust_loaded, helper_thread_id, cmd_buf): Use
11504 IPA_SYM_EXPORTED_NAME.
11505 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11506 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11507 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11508 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11509 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11510 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11511 EXTERN_C_PUSH/EXTERN_C_POP.
11512 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11513 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11514 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11515 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11516 (traceframe_write_count, traceframe_read_count)
11517 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11518 (about_to_request_buffer_space, get_trace_state_variable_value)
11519 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11520 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11521 EXTERN_C_PUSH/EXTERN_C_POP.
11522 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11523 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11524 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11525 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11526 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11527 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11528 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11529 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11530 Define.
11531 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11532 (IP_AGENT_EXPORT_VAR_DECL): Define.
11533 (tracing): Declare.
11534 (gdb_agent_get_raw_reg): Declare.
11535
fe978cb0
PA
115362015-02-27 Tom Tromey <tromey@redhat.com>
11537 Pedro Alves <palves@redhat.com>
11538
11539 Rename symbols whose names are reserved C++ keywords throughout.
11540
3bc3d82a
PA
115412015-02-27 Pedro Alves <palves@redhat.com>
11542
11543 * Makefile.in (COMPILER): New, get it from autoconf.
11544 (CXX): Get from autoconf instead.
11545 (COMPILE.pre): Use COMPILER.
11546 (CC-LD): Rename to ...
11547 (CC_LD): ... this. Use COMPILER.
11548 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11549 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11550 * acinclude.m4: Include build-with-cxx.m4.
11551 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11552 Disable -Werror by default if building in C++ mode.
11553 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11554 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11555 the C++ compiler. Save/restore CXXFLAGS too.
11556 * configure: Regenerate.
11557
07697489
PA
115582015-02-27 Pedro Alves <palves@redhat.com>
11559
11560 * acinclude.m4: Include libiberty.m4.
11561 * configure.ac: Call libiberty_INIT.
11562 * config.in, configure: Regenerate.
11563
9beb7c4e
PA
115642015-02-26 Pedro Alves <palves@redhat.com>
11565
11566 * linux-low.c (linux_wait_1): When incrementing the PC past a
11567 program breakpoint always use the_low_target.breakpoint_len as
11568 increment, rather than the maximum between that and
11569 the_low_target.decr_pc_after_break.
11570
8090aef2
PA
115712015-02-23 Pedro Alves <palves@redhat.com>
11572
11573 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11574 thread was doing a step-over; always adjust the PC if
11575 we stepped over a permanent breakpoint.
11576 (linux_wait_1): If we stepped over breakpoint that was on top of a
11577 permanent breakpoint, manually advance the PC past it.
11578
bc9540e8
PA
115792015-02-23 Pedro Alves <palves@redhat.com>
11580
11581 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11582 modes.
11583 (x86_fill_gregset, x86_store_gregset): Use it when handling
11584 $orig_eax.
11585
2db9a427
PA
115862015-02-20 Pedro Alves <palves@redhat.com>
11587
11588 * thread-db.c: Include "nat/linux-procfs.h".
11589 (thread_db_init): Skip listing new threads if the kernel supports
11590 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11591
afa8d396
PA
115922015-02-20 Pedro Alves <palves@redhat.com>
11593
11594 * linux-low.c (status_pending_p_callback): Use ptid_match.
11595
c9587f88
AT
115962015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11597
11598 PR breakpoints/16812
11599 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11600 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11601 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11602
b05ec7a5
AT
116032015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11604
11605 PR breakpoints/15956
11606 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11607
d33501a5
MM
116082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11609
11610 * linux-low.c (linux_low_btrace_conf): Print size.
11611 * server.c (handle_btrace_conf_general_set): New.
11612 (hanle_general_set): Call handle_btrace_conf_general_set.
11613 (handle_query): Report Qbtrace-conf:bts:size as supported.
11614
f4abbc16
MM
116152015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11616
11617 * linux-low.c (linux_low_enable_btrace): Update parameters.
11618 (linux_low_btrace_conf): New.
11619 (linux_target_ops)<to_btrace_conf>: Initialize.
11620 * server.c (current_btrace_conf): New.
11621 (handle_btrace_enable): Rename to ...
11622 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11623 to target_enable_btrace. Update comment. Update users.
11624 (handle_qxfer_btrace_conf): New.
11625 (qxfer_packets): Add btrace-conf entry.
11626 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11627 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11628 (target_ops)<read_btrace_conf>: New.
11629 (target_enable_btrace): Update parameters.
11630 (target_read_btrace_conf): New.
11631
043c3577
MM
116322015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11633
11634 * server.c (handle_btrace_general_set): Remove call to
11635 target_supports_btrace.
11636 (supported_btrace_packets): New.
11637 (handle_query): Call supported_btrace_packets.
11638 * target.h: include btrace-common.h.
11639 (btrace_target_info): Removed.
11640 (supports_btrace, target_supports_btrace): Update parameters.
11641
734b0e4b
MM
116422015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11643
11644 * Makefile.in (SFILES): Add common/btrace-common.c.
11645 (OBS): Add common/btrace-common.o.
11646 (btrace-common.o): Add build rules.
11647 * linux-low: Include btrace-common.h.
11648 (linux_low_read_btrace): Use struct btrace_data. Call
11649 btrace_data_init and btrace_data_fini.
11650
d6c146e9
PA
116512015-02-06 Pedro Alves <palves@redhat.com>
11652
11653 * thread-db.c (find_new_threads_callback): Add debug output.
11654
20ba1ce6
PA
116552015-02-04 Pedro Alves <palves@redhat.com>
11656
11657 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11658 (resume_stopped_resumed_lwps): New function.
11659 (linux_wait_for_event_filtered): Use it.
11660
8cc73a39
SDJ
116612015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11662
11663 * Makefile.in (SFILES): Add linux-personality.c.
11664 (linux-personality.o): New rule.
11665 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11666 list of objects to be built.
11667 * linux-low.c: Include nat/linux-personality.h.
11668 (linux_create_inferior): Remove code to disable address space
11669 randomization (moved to ../nat/linux-personality.c). Create
11670 cleanup to disable address space randomization.
11671
fb23d554
SDJ
116722015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11673
11674 * Makefile.in (posix-strerror.o): New rule.
11675 (mingw-strerror.o): Likewise.
11676 * configure: Regenerated.
11677 * configure.ac: Source file ../common/common.host. Initialize new
11678 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11679
cdf43629
YQ
116802015-01-14 Yao Qi <yao@codesourcery.com>
11681
11682 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11683 (ppc-linux.o): New rule.
11684 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11685 * configure.ac: AC_CHECK_FUNCS(getauxval).
11686 * config.in: Re-generated.
11687 * configure: Re-generated.
11688 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11689 ppc64_64bit_inferior_p
11690
514c5338
YQ
116912015-01-14 Yao Qi <yao@codesourcery.com>
11692
11693 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11694 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11695 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11696 (PT_ORIG_R3, PT_TRAP): Likewise.
11697 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11698 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11699 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11700
3368c1e5
JB
117012015-01-10 Joel Brobecker <brobecker@adacore.com>
11702
11703 * i387-fp.c (i387_cache_to_xsave): In look over
11704 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11705 zmmh_low_space field by use of zmmh_high_space.
11706
582511be
PA
117072015-01-09 Pedro Alves <palves@redhat.com>
11708
11709 * linux-low.c (step_over_bkpt): Move higher up in the file.
11710 (handle_extended_wait): Don't store the stop_pc here.
11711 (get_stop_pc): Adjust comments and rename to ...
11712 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11713 stopped for a software breakpoint or hardware breakpoint.
11714 (thread_still_has_status_pending_p): New function.
11715 (status_pending_p_callback): Use
11716 thread_still_has_status_pending_p. If the event is no longer
11717 interesting, resume the LWP.
11718 (handle_tracepoints): Add assert.
11719 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11720 (wstatus_maybe_breakpoint): New function.
11721 (cancel_breakpoint): Delete function.
11722 (check_stopped_by_watchpoint): New function, factored out from
11723 linux_low_filter_event.
11724 (lp_status_maybe_breakpoint): Delete function.
11725 (linux_low_filter_event): Remove filter_ptid argument.
11726 Leave thread group exits pending here. Store the LWP's stop PC.
11727 Always leave events pending.
11728 (linux_wait_for_event_filtered): Pull all events out of the
11729 kernel, and leave them all pending.
11730 (count_events_callback, select_event_lwp_callback): Consider all
11731 events.
11732 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11733 (select_event_lwp): Only give preference to the stepping LWP in
11734 all-stop mode. Adjust comments.
11735 (ignore_event): New function.
11736 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11737 references to cancel_breakpoints. Adjust to renames. Also give
11738 equal priority to all LWPs that have had events in non-stop mode.
11739 If reporting a software breakpoint event, unadjust the LWP's PC.
11740 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11741 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11742 Adjust.
11743 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11744 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11745 (linux_stopped_by_watchpoint): Adjust.
11746 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11747 * linux-low.h (enum lwp_stop_reason): New.
11748 (struct lwp_info) <stop_pc>: Adjust comment.
11749 <stopped_by_watchpoint>: Delete field.
11750 <stop_reason>: New field.
11751 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11752 * mem-break.c (software_breakpoint_inserted_here)
11753 (hardware_breakpoint_inserted_here): New function.
11754 * mem-break.h (software_breakpoint_inserted_here)
11755 (hardware_breakpoint_inserted_here): Declare.
11756 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11757 (cancel_breakpoints): Delete.
11758 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11759 (upload_fast_traceframes): Remove references to
11760 cancel_breakpoints.
11761
a33e3959
PA
117622015-01-09 Pedro Alves <palves@redhat.com>
11763
11764 * thread-db.c (find_new_threads_callback): Ignore thread if the
11765 kernel thread ID is -1.
11766
8784d563
PA
117672015-01-09 Pedro Alves <palves@redhat.com>
11768
11769 * linux-low.c (linux_attach_fail_reason_string): Move to
11770 nat/linux-ptrace.c, and rename.
11771 (linux_attach_lwp): Update comment.
11772 (attach_proc_task_lwp_callback): New function.
11773 (linux_attach): Adjust to rename and use
11774 linux_proc_attach_tgid_threads.
11775 (linux_attach_fail_reason_string): Delete declaration.
11776
76f2b779
JB
117772015-01-01 Joel Brobecker <brobecker@adacore.com>
11778
11779 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11780 * server.c (gdbserver_version): Likewise.
11781
fafcc06a
SDJ
117822014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11783
11784 * remote-utils.c: Include ctype.h.
11785 (input_interrupt): Explicitly handle the case when the char
11786 received is the NUL byte. Improve the printing of non-ASCII
11787 characters.
11788
beed38b8
JB
117892014-12-16 Joel Brobecker <brobecker@adacore.com>
11790
11791 * linux-low.c (linux_low_filter_event): Update call to
11792 linux_enable_event_reporting following the addition of
11793 a new parameter to that function.
11794
bf330350
CU
117952014-12-16 Catalin Udma <catalin.udma@freescale.com>
11796
11797 PR server/17457
11798 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11799 (AARCH64_FPCR_REGNO): Likewise.
11800 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11801 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11802 (aarch64_store_fpregset): Likewise.
11803
5227d625
JB
118042014-12-15 Joel Brobecker <brobecker@adacore.com>
11805
11806 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11807 Remove FIXME comment about assumption about N.
11808
f93b65a0
JB
118092014-12-13 Joel Brobecker <brobecker@adacore.com>
11810
11811 * configure.ac: If large-file support is disabled in GDBserver,
11812 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11813 * configure: Regenerate.
11814
e5a9158d
AA
118152014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11816
11817 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11818 warning upon ENODATA from ptrace.
11819 * linux-s390-low.c (s390_store_tdb): New.
11820 (s390_regsets): Add regset for NT_S390_TDB.
11821
feea5f36
AA
118222014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11823
11824 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11825 without a fill_function.
11826 * linux-s390-low.c (s390_fill_last_break): Remove.
11827 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11828 (s390_arch_setup): Use regset's size instead of fill_function for
11829 loop end condition.
11830
098dbe61
AA
118312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11832
11833 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11834 the regset's store function when ptrace returned an error.
11835 * regcache.c (get_thread_regcache): Invalidate register cache
11836 before fetching inferior's registers.
11837
28eef672
AA
118382014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11839
11840 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11841 while-loop as for-loop.
11842 (regsets_store_inferior_registers): Likewise.
11843
bdca27a2
YQ
118442014-11-28 Yao Qi <yao@codesourcery.com>
11845
11846 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11847 * config.in, configure: Re-generate.
11848 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11849 is defined.
11850
9c232dda
YQ
118512014-11-21 Yao Qi <yao@codesourcery.com>
11852
11853 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11854 (AC_CHECK_HEADERS): Remove malloc.h.
11855 * configure: Re-generated.
11856 * config.in: Re-generated.
11857 * server.h: Don't include alloca.h and malloc.h.
11858 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11859 Don't include malloc.h.
11860
43968415
JB
118612014-11-17 Joel Brobecker <brobecker@adacore.com>
11862
11863 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11864 corresponding ERRNO check in same block.
11865
40e91bc7
PA
118662014-11-12 Pedro Alves <palves@redhat.com>
11867
11868 * server.c (cont_thread): Update comment.
11869 (start_inferior, attach_inferior): No longer clear cont_thread.
11870 (handle_v_cont): No longer set cont_thread.
11871 (captured_main): Clear cont_thread each time a GDB connects.
11872
c2c118cf
PA
118732014-11-12 Pedro Alves <palves@redhat.com>
11874
11875 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11876 thread, and don't resume all threads if the Hc thread has exited.
11877
78708b7c
PA
118782014-11-12 Pedro Alves <palves@redhat.com>
11879
11880 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11881 the process group instead of to a specific LWP.
11882
a2abc7de
PA
118832014-10-15 Pedro Alves <palves@redhat.com>
11884
11885 PR server/17487
11886 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11887 parameter.
11888 (arm_set_thread_context): Delete.
11889 (the_low_target): Adjust.
11890 * win32-i386-low.c (debug_registers_changed)
11891 (debug_registers_used): Delete.
11892 (update_debug_registers_callback): New function.
11893 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11894 needing to update their debug registers.
11895 (win32_get_current_dr): New function.
11896 (x86_dr_low_get_addr, x86_dr_low_get_control)
11897 (x86_dr_low_get_status): Fetch the debug register from the thread
11898 record's context.
11899 (i386_initial_stuff): Adjust.
11900 (i386_get_thread_context): Remove current_event parameter. Don't
11901 clear debug_registers_changed nor copy DR values to
11902 debug_reg_state.
11903 (i386_set_thread_context): Delete.
11904 (i386_prepare_to_resume): New function.
11905 (i386_thread_added): Mark the thread as needing to update irs
11906 debug registers.
11907 (the_low_target): Remove i386_set_thread_context and install
11908 i386_prepare_to_resume.
11909 * win32-low.c (win32_get_thread_context): Adjust.
11910 (win32_set_thread_context): Use SetThreadContext
11911 directly.
11912 (win32_prepare_to_resume): New function.
11913 (win32_require_context): New function, factored out from ...
11914 (thread_rec): ... this.
11915 (continue_one_thread): Call win32_prepare_to_resume on each thread
11916 we're about to continue.
11917 (win32_resume): Call win32_prepare_to_resume on the event thread.
11918 * win32-low.h (struct win32_thread_info)
11919 <debug_registers_changed>: New field.
11920 (struct win32_target_ops): Change prototype of set_thread_context,
11921 delete set_thread_context and add prepare_to_resume.
11922 (win32_require_context): New declaration.
11923
a442d071
GB
119242014-10-08 Gary Benson <gbenson@redhat.com>
11925
11926 * server.h: Do not include common-exceptions.h.
11927
6f1947e8
GB
119282014-10-08 Gary Benson <gbenson@redhat.com>
11929
11930 * server.h: Do not include cleanups.h.
11931
63b434a4
JH
119322014-09-30 James Hogan <james.hogan@imgtec.com>
11933
11934 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11935 mips64-dsp-linux.c.
11936
c4d9ceb6
YQ
119372014-09-23 Yao Qi <yao@codesourcery.com>
11938
11939 * linux-low.c (lp_status_maybe_breakpoint): New function.
11940 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11941 (count_events_callback): Likewise.
11942 (select_event_lwp_callback): Likewise.
11943 (cancel_breakpoints_callback): Likewise.
11944
89a5711c
DB
119452014-09-19 Don Breazeal <donb@codesourcery.com>
11946
11947 * linux-low.c (handle_extended_wait): Call
11948 linux_ptrace_get_extended_event.
11949 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11950 linux_is_extended_waitstatus.
11951
bffc0964
JB
119522014-09-16 Joel Brobecker <brobecker@adacore.com>
11953
11954 * Makefile.in (CPPFLAGS): Define.
11955 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11956 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11957
0bfdf32f
GB
119582014-09-16 Gary Benson <gbenson@redhat.com>
11959
11960 * inferiors.h (current_inferior): Renamed as...
11961 (current_thread): New variable. All uses updated.
11962 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11963 (maybe_move_out_of_jump_pad): Likewise.
11964 (cancel_breakpoint): Likewise.
11965 (linux_low_filter_event): Likewise.
11966 (wait_for_sigstop): Likewise.
11967 (linux_resume_one_lwp): Likewise.
11968 (need_step_over_p): Likewise.
11969 (start_step_over): Likewise.
11970 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11971 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11972 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11973 and save_inferior as saved_thread.
11974 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11975 saved_thread.
11976 (regcache_invalidate_thread): Likewise.
11977 * remote-utils.c (prepare_resume_reply): Likewise.
11978 * thread-db.c (thread_db_get_tls_address): Likewise.
11979 (disable_thread_event_reporting): Likewise.
11980 (remove_thread_event_breakpoints): Likewise.
11981 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11982 as saved_thread.
11983 * target.h (set_desired_inferior): Renamed as...
11984 (set_desired_thread): New declaration. All uses updated.
11985 * server.c (myresume): Updated comment to reference thread instead
11986 of inferior.
11987 (handle_serial_event): Likewise.
11988 (handle_target_event): Likewise.
11989
361c8ade
GB
119902014-09-12 Tom Tromey <tromey@redhat.com>
11991 Gary Benson <gbenson@redhat.com>
11992
11993 * regcache.h: Include common-regcache.h.
11994 (regcache_read_pc): Don't declare.
11995 * regcache.c (get_thread_regcache_for_ptid): New function.
11996
bd9269f7
GB
119972014-09-11 Tom Tromey <tromey@redhat.com>
11998 Gary Benson <gbenson@redhat.com>
11999
12000 * symbol.c: New file.
12001 * Makefile.in (SFILES): Add symbol.c.
12002 (OBS): Add symbol.o.
12003
f8c1d06b
GB
120042014-09-11 Gary Benson <gbenson@redhat.com>
12005
12006 * target.c (target_stop_ptid, target_continue_ptid): New
12007 functions.
12008
721ec300
GB
120092014-09-11 Tom Tromey <tromey@redhat.com>
12010 Gary Benson <gbenson@redhat.com>
12011
12012 * target.h: Include target/target.h.
12013 * target.c (target_read_memory, target_read_uint32)
12014 (target_write_memory): New functions.
12015
c5e92cca
GB
120162014-09-11 Gary Benson <gbenson@redhat.com>
12017
12018 * server.h (debug_hw_points): Don't declare.
12019 * server.c (debug_hw_points): Don't define. Replace all uses
12020 with show_debug_regs.
12021 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12022 all uses with show_debug_regs.
12023
2e4bb98a
EBM
120242014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12025
12026 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12027 endianness into account.
12028 (ppc_supply_ptrace_register): Likewise.
12029
ac740bc7
JH
120302014-09-03 James Hogan <james.hogan@imgtec.com>
12031
12032 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12033 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12034
97ea6506
GB
120352014-09-03 Gary Benson <gbenson@redhat.com>
12036
12037 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12038 ALL_DEBUG_ADDRESS_REGISTERS.
12039
df7e5265
GB
120402014-09-02 Gary Benson <gbenson@redhat.com>
12041
12042 * i386-low.h: Renamed as...
12043 * x86-low.h: New file. All type, function and variable name
12044 prefixes changed from "i386_" to "x86_". All references updated.
12045 * i386-low.c: Renamed as...
12046 * x86-low.c: New file. All type, function and variable name
12047 prefixes changed from "i386_" to "x86_". All references updated.
12048
ed859da7
GB
120492014-09-02 Gary Benson <gbenson@redhat.com>
12050
12051 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12052 (x86_linux_new_thread): Likewise.
12053
860789c7
GB
120542014-08-29 Gary Benson <gbenson@redhat.com>
12055
12056 * server.h (setjmp.h): Do not include.
12057 (toplevel): Do not declare.
12058 (common-exceptions.h): Include.
12059 (cleanups.h): Likewise.
12060 * server.c (toplevel): Do not define.
12061 (exit_code): New static global.
12062 (detach_or_kill_for_exit_cleanup): New function.
12063 (main): New function. Original main renamed to...
12064 (captured_main): New function.
12065 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12066
ff55e1b5
GB
120672014-08-29 Gary Benson <gbenson@redhat.com>
12068
12069 * Makefile.in (SFILES): Add common/common-exceptions.c.
12070 (OBS): Add common-exceptions.o.
12071 (common-exceptions.o): New rule.
12072 * utils.c (prepare_to_throw_exception): New function.
12073
e9bcb658
GB
120742014-08-29 Gary Benson <gbenson@redhat.com>
12075
12076 * config.in: Regenerate.
12077 * configure: Likewise.
12078
e3180625
GB
120792014-08-29 Gary Benson <gbenson@redhat.com>
12080
12081 * Makefile.in (SFILES): Add common/cleanups.c.
12082 (OBS): cleanups.o.
12083 (cleanups.o): New rule.
12084
e3d6ba5d
GB
120852014-08-29 Gary Benson <gbenson@redhat.com>
12086
12087 * utils.c (internal_vwarning): New function.
12088
7096e886
GB
120892014-08-28 Gary Benson <gbenson@redhat.com>
12090
12091 * utils.h (fatal): Remove declaration.
12092 * utils.c (fatal): Remove function.
12093
14ce3192
GB
120942014-08-28 Gary Benson <gbenson@redhat.com>
12095
12096 * tracepoint.c (gdb_agent_init): Replace fatal with
12097 perror_with_name.
12098 (initialize_tracepoint): Likewise.
12099
50278d59
GB
121002014-08-28 Gary Benson <gbenson@redhat.com>
12101
12102 * remote-utils.c (remote_prepare): Replace fatal with error.
12103
aa96c426
GB
121042014-08-28 Gary Benson <gbenson@redhat.com>
12105
12106 * linux-low.c (linux_async): Replace fatal with warning.
12107 Tidy up and return.
12108 (linux_start_non_stop): Return -1 if linux_async failed.
12109
f7160e97
GB
121102014-08-28 Gary Benson <gbenson@redhat.com>
12111
12112 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12113 gdb_assert.
12114 (i386_dr_low_get_addr): Remove vague comment.
12115 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12116 gdb_assert.
12117
38e08fca
GB
121182014-08-28 Gary Benson <gbenson@redhat.com>
12119
12120 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12121 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12122 internal_error.
12123 (linux_resume_one_lwp): Likewise.
12124 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12125 gdb_assert.
12126 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12127 with internal_error.
12128 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12129 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12130 (find_register_by_name): Replace fatal with internal_error.
12131 (find_regno): Likewise.
12132 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12133 * thread-db.c (thread_db_create_event): Likewise.
12134 (thread_db_load_search): Likewise.
12135 (try_thread_db_load_1): Likewise.
12136 * tracepoint.c (get_jump_space_head): Replace fatal with
12137 internal_error.
12138 (claim_trampoline_space): Likewise.
12139 (have_fast_tracepoint_trampoline_buffer): Likewise.
12140 (cmd_qtstart): Likewise.
12141 (stop_tracing): Likewise.
12142 (fast_tracepoint_collecting): Likewise.
12143 (target_malloc): Likewise.
12144 (download_tracepoint): Likewise.
12145 (download_trace_state_variables): Replace check with gdb_assert.
12146 (upload_fast_traceframes): Replace fatal with internal_error.
12147
34abf635
GB
121482014-08-19 Tom Tromey <tromey@redhat.com>
12149 Gary Benson <gbenson@redhat.com>
12150
12151 * Makefile.in (SFILES): Add common/common-debug.c.
12152 (OBS): Add common-debug.o.
12153 (common-debug.o): New rule.
12154 * debug.h (debug_printf): Don't declare.
12155 * debug.c (debug_printf): Renamed and rewritten as...
12156 (debug_vprintf): New function.
12157
f6e94d78
GB
121582014-08-19 Gary Benson <gbenson@redhat.com>
12159
12160 * utils.h: Do not include print-utils.h.
12161
9239eeab
GB
121622014-08-19 Tom Tromey <tromey@redhat.com>
12163 Gary Benson <gbenson@redhat.com>
12164
12165 * server.h: Add static assertion.
12166 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12167
ef87c8bb
GB
121682014-08-19 Tom Tromey <tromey@redhat.com>
12169 Gary Benson <gbenson@redhat.com>
12170
12171 * Makefile.in (SFILES): Add common/errors.c.
12172 (OBS): Add errors.o.
12173 (IPA_OBS): Add errors-ipa.o.
12174 (errors.o): New rule.
12175 (errors-ipa.o): Likewise.
12176 * utils.h (perror_with_name, error, warning): Don't declare.
12177 * utils.c (warning): Renamed and rewritten as...
12178 (vwarning): New function.
12179 (error): Renamed and rewritten as...
12180 (verror): New function.
12181 (internal_error): Renamed and rewritten as...
12182 (internal_verror): New function.
12183
bb974a24
GB
121842014-08-07 Gary Benson <gbenson@redhat.com>
12185
12186 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12187 * configure: Regenerate.
12188 * config.in: Likewise.
12189 * server.h: Do not include errno.h.
12190 * event-loop.c: Likewise.
12191 * hostio-errno.c: Likewise.
12192 * linux-low.c: Likewise.
12193 * remote-utils.c: Likewise.
12194 * spu-low.c: Likewise.
12195 * utils.c: Likewise.
12196 * gdbreplay.c: Unconditionally include errno.h.
12197
6d3d12eb
GB
121982014-08-07 Gary Benson <gbenson@redhat.com>
12199
12200 * server.h: Do not include string.h.
12201 * event-loop.c: Likewise.
12202 * linux-low.c: Likewise.
12203 * regcache.c: Likewise.
12204 * remote-utils.c: Likewise.
12205 * spu-low.c: Likewise.
12206 * utils.c: Likewise.
12207
dccbb609
GB
122082014-08-07 Gary Benson <gbenson@redhat.com>
12209
12210 * server.h: Do not include gdb_assert.h.
12211
e76df0d0
GB
122122014-08-07 Gary Benson <gbenson@redhat.com>
12213
12214 * server.h: Do not include common-utils.h.
12215
4cb9c816
GB
122162014-08-07 Gary Benson <gbenson@redhat.com>
12217
12218 * server.h: Do not include ptid.h.
12219 * notif.h: Likewise.
12220
3995eeee
GB
122212014-08-07 Gary Benson <gbenson@redhat.com>
12222
12223 * server.h: Do not include gdb_locale.h.
12224
cb9f1a9b
GB
122252014-08-07 Gary Benson <gbenson@redhat.com>
12226
12227 * server.h: Do not include gdb/signals.h.
12228 * win32-low.c: Likewise.
12229
a5fceff8
GB
122302014-08-07 Gary Benson <gbenson@redhat.com>
12231
12232 * server.h: Do not include pathmax.h.
12233
b9391142
GB
122342014-08-07 Gary Benson <gbenson@redhat.com>
12235
12236 * server.h: Do not include libiberty.h.
12237 * linux-bfin-low.c: Likewise.
12238
0e443c87
GB
122392014-08-07 Gary Benson <gbenson@redhat.com>
12240
12241 * server.h: Do not include ansidecl.h.
12242
8ebb3f56
GB
122432014-08-07 Gary Benson <gbenson@redhat.com>
12244
12245 * linux-x86-low.c: Do not include stddef.h.
12246 * lynx-ppc-low.c: Likewise.
12247 * tracepoint.c: Likewise.
12248
8980bdf6
GB
122492014-08-07 Gary Benson <gbenson@redhat.com>
12250
12251 * server.h: Do not include stdarg.h.
12252 * nto-low.c: Likewise.
12253
d7096f71
GB
122542014-08-07 Gary Benson <gbenson@redhat.com>
12255
12256 * server.h: Do not include stdlib.h.
12257 * inferiors.c: Likewise.
12258 * linux-low.c: Likewise.
12259 * regcache.c: Likewise.
12260 * spu-low.c: Likewise.
12261 * tracepoint.c: Likewise.
12262 * utils.c: Likewise.
12263
d02f550d
GB
122642014-08-07 Gary Benson <gbenson@redhat.com>
12265
12266 * server.h: Do not include stdio.h.
12267 * linux-low.c: Likewise.
12268 * remote-utils.c: Likewise.
12269 * spu-low.c: Likewise.
12270 * utils.c: Likewise.
12271 * wincecompat.c: Likewise.
12272
87f6c4e3
GB
122732014-08-06 Gary Benson <gbenson@redhat.com>
12274
12275 * regcache.c (init_register_cache): Move conditionals inside if.
12276
7089dca4
GB
122772014-08-06 Gary Benson <gbenson@redhat.com>
12278
12279 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12280
462f517e
GB
122812014-07-31 Gary Benson <gbenson@redhat.com>
12282
12283 * ax.h: Do not include server.h.
12284 * gdbthread.h: Likewise.
12285 * lynx-low.h: Likewise.
12286 * notif.h: Likewise.
12287
976411d6
GB
122882014-07-30 Gary Benson <gbenson@redhat.com>
12289
12290 * server.h: Include common-defs.h.
12291 Do not include config.h or build-gnulib-gdbserver/config.h.
12292
d41f6d8e
GB
122932014-07-30 Gary Benson <gbenson@redhat.com>
12294
12295 * hostio-errno.c: Move server.h to top of includes list.
12296 * inferiors.c: Likewise.
12297 * linux-x86-low.c: Likewise.
12298 * notif.c: Include server.h.
12299
314c6a35
TT
123002014-07-24 Tom Tromey <tromey@redhat.com>
12301 Gary Benson <gbenson@redhat.com>
12302
12303 * server.h (CORE_ADDR): Now unsigned.
12304
69ff6be5
PA
123052014-07-16 Pedro Alves <palves@redhat.com>
12306
12307 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12308
ce9e3fe7
PA
123092014-07-15 Pedro Alves <palves@redhat.com>
12310
12311 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12312 copy.
12313
e76126e8
PA
123142014-07-11 Pedro Alves <palves@redhat.com>
12315
12316 * linux-low.c (kill_wait_lwp): New function, based on
12317 kill_one_lwp_callback, but use my_waitpid directly.
12318 (kill_one_lwp_callback, linux_kill): Use it.
12319
8e9db26e
PA
123202014-06-23 Pedro Alves <palves@redhat.com>
12321
12322 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12323 before setting DR0..DR3.
12324
698b3e08
GB
123252014-06-20 Gary Benson <gbenson@redhat.com>
12326
12327 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12328 * configure: Regenerated.
12329 * config.in: Likewise.
12330
125f8a3d
GB
123312014-06-20 Gary Benson <gbenson@redhat.com>
12332
12333 * Makefile.in (SFILES): Update locations for files moved
12334 from common to nat.
12335 (object file files): Reordered.
12336
42995dbd
GB
123372014-06-20 Gary Benson <gbenson@redhat.com>
12338
12339 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12340 (i386_dr_low_set_addr): Likewise.
12341 (i386_dr_low_get_addr): Likewise.
12342 (i386_dr_low_can_set_control): Likewise.
12343 (i386_dr_low_set_control): Likewise.
12344 (i386_dr_low_get_control): Likewise.
12345 (i386_dr_low_get_status): Likewise.
12346 (i386_get_debug_register_length): Likewise.
12347 * linux-x86-low.c (i386_dr_low_set_addr):
12348 Changed signature. Made static.
12349 (i386_dr_low_get_addr): Likewise.
12350 (i386_dr_low_set_control): Likewise.
12351 (i386_dr_low_get_control): Likewise.
12352 (i386_dr_low_get_status): Likewise.
12353 (i386_dr_low): New global variable.
12354 * win32-i386-low.c (i386_dr_low_set_addr):
12355 Changed signature. Made static.
12356 (i386_dr_low_get_addr): Likewise.
12357 (i386_dr_low_set_control): Likewise.
12358 (i386_dr_low_get_control): Likewise.
12359 (i386_dr_low_get_status): Likewise.
12360 (i386_dr_low): New global variable.
12361
e1d2394b
MS
123622014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12363
12364 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12365 * Makefile.in (AR, AR_FLAGS): Define.
12366 * configure: Regenerate.
12367
3a8ee006
GB
123682014-06-19 Gary Benson <gbenson@redhat.com>
12369
12370 * Makefile.in (i386-dregs.o): New rule.
12371 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12372 * i386-low.c (target.h): Remove include.
12373 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12374 (DR_CONTROL_SHIFT): Likewise.
12375 (DR_CONTROL_SIZE): Likewise.
12376 (DR_RW_EXECUTE): Likewise.
12377 (DR_RW_WRITE): Likewise.
12378 (DR_RW_READ): Likewise.
12379 (DR_RW_IORW): Likewise.
12380 (DR_LEN_1): Likewise.
12381 (DR_LEN_2): Likewise.
12382 (DR_LEN_4): Likewise.
12383 (DR_LEN_8): Likewise.
12384 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12385 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12386 (DR_ENABLE_SIZE): Likewise.
12387 (DR_LOCAL_SLOWDOWN): Likewise.
12388 (DR_GLOBAL_SLOWDOWN): Likewise.
12389 (DR_CONTROL_RESERVED): Likewise.
12390 (I386_DR_CONTROL_MASK): Likewise.
12391 (I386_DR_VACANT): Likewise.
12392 (I386_DR_LOCAL_ENABLE): Likewise.
12393 (I386_DR_GLOBAL_ENABLE): Likewise.
12394 (I386_DR_DISABLE): Likewise.
12395 (I386_DR_SET_RW_LEN): Likewise.
12396 (I386_DR_GET_RW_LEN): Likewise.
12397 (I386_DR_WATCH_HIT): Likewise.
12398 (i386_wp_op_t): Likewise.
12399 (i386_show_dr): Likewise.
12400 (i386_length_and_rw_bits): Likewise.
12401 (i386_insert_aligned_watchpoint): Likewise.
12402 (i386_remove_aligned_watchpoint): Likewise.
12403 (i386_handle_nonaligned_watchpoint): Likewise.
12404 i386_update_inferior_debug_regs(): Likewise.
12405 (i386_dr_insert_watchpoint): Likewise.
12406 (i386_dr_remove_watchpoint): Likewise.
12407 (i386_dr_region_ok_for_watchpoint): Likewise.
12408 (i386_dr_stopped_data_address): Likewise.
12409 (i386_dr_stopped_by_watchpoint): Likewise.
12410
8f26655c
GB
124112014-06-19 Gary Benson <gbenson@redhat.com>
12412
12413 * i386-low.c (i386_dr_show): Renamed to
12414 i386_show_dr and made static. All uses updated.
12415 (i386_dr_length_and_rw_bits): Renamed to
12416 i386_length_and_rw_bits and made static.
12417 All uses updated.
12418 (i386_dr_insert_aligned_watchpoint): Renamed to
12419 i386_insert_aligned_watchpoint and made static.
12420 All uses updated.
12421 (i386_dr_remove_aligned_watchpoint): Renamed to
12422 i386_remove_aligned_watchpoint and made static.
12423 All uses updated.
12424 (i386_dr_update_inferior_debug_regs): Renamed to
12425 i386_update_inferior_debug_regs and made static.
12426 All uses updated.
12427
b9228891
GB
124282014-06-18 Gary Benson <gbenson@redhat.com>
12429
5171def3
GB
12430 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12431 (i386_dr_low_can_set_control): Likewise.
12432 (i386_get_debug_register_length): Likewise.
12433 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12434 (i386_dr_low_can_set_control): Likewise.
12435 (i386_get_debug_register_length): Likewise.
12436
124372014-06-17 Gary Benson <gbenson@redhat.com>
12438
b9228891
GB
12439 * i386-low.h (i386-dregs.h): New include.
12440 (DR_FIRSTADDR): Now in i386-dregs.h.
12441 (DR_LASTADDR): Likewise.
12442 (DR_NADDR): Likewise.
12443 (DR_STATUS): Likewise.
12444 (DR_CONTROL): Likewise.
12445 (i386_debug_reg_state): Likewise.
12446 (i386_dr_insert_watchpoint): Likewise.
12447 (i386_dr_remove_watchpoint): Likewise.
12448 (i386_dr_region_ok_for_watchpoint): Likewise.
12449 (i386_dr_stopped_data_address): Likewise.
12450 (i386_dr_stopped_by_watchpoint): Likewise.
12451 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12452
4be83cc2
GB
124532014-06-18 Gary Benson <gbenson@redhat.com>
12454
12455 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12456 i386_dr_insert_watchpoint.
12457 (i386_low_remove_watchpoint): Renamed to
12458 i386_dr_remove_watchpoint.
12459 (i386_low_region_ok_for_watchpoint): Renamed to
12460 i386_dr_region_ok_for_watchpoint.
12461 (i386_low_stopped_data_address): Renamed to
12462 i386_dr_stopped_data_address.
12463 (i386_low_stopped_by_watchpoint): Renamed to
12464 i386_dr_stopped_by_watchpoint.
12465 * i386-low.c (i386_show_dr): Renamed to
12466 i386_dr_show and made nonstatic. All uses updated.
12467 (i386_length_and_rw_bits): Renamed to
12468 i386_dr_length_and_rw_bits and made nonstatic.
12469 All uses updated.
12470 (i386_insert_aligned_watchpoint): Renamed to
12471 i386_dr_insert_aligned_watchpoint and made nonstatic.
12472 All uses updated.
12473 (i386_remove_aligned_watchpoint): Renamed to
12474 i386_dr_remove_aligned_watchpoint and made nonstatic.
12475 All uses updated.
12476 (i386_update_inferior_debug_regs): Renamed to
12477 i386_dr_update_inferior_debug_regs and made nonstatic.
12478 All uses updated.
12479 (i386_low_insert_watchpoint): Renamed to
12480 i386_dr_insert_watchpoint. All uses updated.
12481 (i386_low_remove_watchpoint): Renamed to
12482 i386_dr_remove_watchpoint. All uses updated.
12483 (i386_low_region_ok_for_watchpoint): Renamed to
12484 i386_dr_region_ok_for_watchpoint. All uses updated.
12485 (i386_low_stopped_data_address): Renamed to
12486 i386_dr_stopped_data_address. All uses updated.
12487 (i386_low_stopped_by_watchpoint): Renamed to
12488 i386_dr_stopped_by_watchpoint. All uses updated.
12489
131aa0d4
GB
124902014-06-18 Gary Benson <gbenson@redhat.com>
12491
12492 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12493 (i386_dr_low_can_set_control): Likewise.
12494 (i386_insert_aligned_watchpoint): New check.
12495
d9305f7f
GB
124962014-06-18 Gary Benson <gbenson@redhat.com>
12497
12498 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12499 Renamed to state.
12500
e927c9fc
GB
125012014-06-18 Gary Benson <gbenson@redhat.com>
12502
12503 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12504 instead of fatal and error.
12505 (i386_handle_nonaligned_watchpoint): Likewise.
12506
1b6d4134
GB
125072014-06-18 Gary Benson <gbenson@redhat.com>
12508
12509 * i386-low.c (i386_get_debug_register_length): New macro.
12510 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12511 (i386_show_dr): Use debug_printf instead of fprintf. Use
12512 phex to format values.
12513
6e62758f
GB
125142014-06-18 Gary Benson <gbenson@redhat.com>
12515
12516 * i386-low.h: Comment changes.
12517 * i386-low.c: Likewise.
12518
fc6e2f03
GB
125192014-06-18 Gary Benson <gbenson@redhat.com>
12520
12521 * i386-low.c: Whitespace changes.
12522
f9d1eeed
TT
125232014-06-12 Tom Tromey <tromey@redhat.com>
12524
12525 * utils.c (freeargv): Remove.
12526
0b04e523
TT
125272014-06-12 Tom Tromey <tromey@redhat.com>
12528
12529 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12530 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12531 (parse_debug_format_options): Likewise.
12532 (gdbserver_usage): Likewise.
12533 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12534 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12535 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12536 against libiberty.
12537 ($(LIBGNU)): Depend on libiberty.
12538 (all-lib): Recurse into all subdirs.
12539 (install-only): Invoke "install" target in subdirs.
12540 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12541 targets.
12542 * configure: Rebuild.
12543 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12544 for vasprintf, vsnprintf, or gettimeofday.
12545 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12546 srv_tgtobj.
12547
270c9937
JB
125482014-06-05 Joel Brobecker <brobecker@adacore.com>
12549
12550 * development.sh: Delete.
12551 * Makefile.in (config.status): Adjust dependency on development.sh.
12552 * configure.ac: Adjust development.sh source call.
12553 * configure: Regenerate.
12554
0a261ed8
PA
125552014-06-02 Pedro Alves <palves@redhat.com>
12556
12557 * ax.c (gdb_free_agent_expr): New function.
12558 * ax.h (gdb_free_agent_expr): New declaration.
12559 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12560 list.
12561 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12562 static.
12563 (clear_breakpoint_conditions_and_commands): New function.
12564 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12565 (clear_breakpoint_conditions_and_commands): New declaration.
12566
e9dae05e
RR
125672014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12568
12569 * linux-aarch64-low.c (asm/ptrace.h): Include.
12570
5876f503
JK
125712014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12572
12573 Fix TLS access for -static -pthread.
12574 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12575 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12576 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12577
802e8e6d
PA
125782014-05-20 Pedro Alves <palves@redhat.com>
12579
12580 * linux-aarch64-low.c (aarch64_insert_point)
12581 (aarch64_remove_point): No longer check whether the type is
12582 supported here. Adjust to new interface.
12583 (the_low_target): Install aarch64_supports_z_point_type as
12584 supports_z_point_type method.
12585 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12586 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12587 instead of a Z packet char. Adjust.
12588 (arm_supports_z_point_type): New function.
12589 (arm_insert_point, arm_remove_point): Adjust to new interface.
12590 (the_low_target): Install arm_supports_z_point_type.
12591 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12592 (cris_insert_point, cris_remove_point): Adjust to new interface.
12593 Don't check whether the type is supported here.
12594 (the_low_target): Install cris_supports_z_point_type.
12595 * linux-low.c (linux_supports_z_point_type): New function.
12596 (linux_insert_point, linux_remove_point): Adjust to new interface.
12597 * linux-low.h (struct linux_target_ops) <insert_point,
12598 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12599 raw_breakpoint pointer parameter.
12600 <supports_z_point_type>: New method.
12601 * linux-mips-low.c (mips_supports_z_point_type): New function.
12602 (mips_insert_point, mips_remove_point): Adjust to new interface.
12603 Use mips_supports_z_point_type.
12604 (the_low_target): Install mips_supports_z_point_type.
12605 * linux-ppc-low.c (the_low_target): Install NULL as
12606 supports_z_point_type method.
12607 * linux-s390-low.c (the_low_target): Install NULL as
12608 supports_z_point_type method.
12609 * linux-sparc-low.c (the_low_target): Install NULL as
12610 supports_z_point_type method.
12611 * linux-x86-low.c (x86_supports_z_point_type): New function.
12612 (x86_insert_point): Adjust to new insert_point interface. Use
12613 insert_memory_breakpoint. Adjust to new
12614 i386_low_insert_watchpoint interface.
12615 (x86_remove_point): Adjust to remove_point interface. Use
12616 remove_memory_breakpoint. Adjust to new
12617 i386_low_remove_watchpoint interface.
12618 (the_low_target): Install x86_supports_z_point_type.
12619 * lynx-low.c (lynx_target_ops): Install NULL as
12620 supports_z_point_type callback.
12621 * nto-low.c (nto_supports_z_point_type): New.
12622 (nto_insert_point, nto_remove_point): Adjust to new interface.
12623 (nto_target_ops): Install nto_supports_z_point_type.
12624 * mem-break.c: Adjust intro comment.
12625 (struct raw_breakpoint) <raw_type, size>: New fields.
12626 <inserted>: Update comment.
12627 <shlib_disabled>: Delete field.
12628 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12629 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12630 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12631 (raw_bkpt_type_to_target_hw_bp_type): New function.
12632 (find_enabled_raw_code_breakpoint_at): New function.
12633 (find_raw_breakpoint_at): New type and size parameters. Use them.
12634 (insert_memory_breakpoint): New function, based off
12635 set_raw_breakpoint_at.
12636 (remove_memory_breakpoint): New function.
12637 (set_raw_breakpoint_at): Reimplement.
12638 (set_breakpoint): New, based on set_breakpoint_at.
12639 (set_breakpoint_at): Reimplement.
12640 (delete_raw_breakpoint): Go through the_target->remove_point
12641 instead of assuming memory breakpoints.
12642 (find_gdb_breakpoint_at): Delete.
12643 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12644 (find_gdb_breakpoint): New function.
12645 (set_gdb_breakpoint_at): Delete.
12646 (z_type_supported): New function.
12647 (set_gdb_breakpoint_1): New function, loosely based off
12648 set_gdb_breakpoint_at.
12649 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12650 (delete_gdb_breakpoint_at): Delete.
12651 (delete_gdb_breakpoint_1): New function, loosely based off
12652 delete_gdb_breakpoint_at.
12653 (delete_gdb_breakpoint): New function.
12654 (clear_gdb_breakpoint_conditions): Rename to ...
12655 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12656 breakpoint.
12657 (add_condition_to_breakpoint): Make static.
12658 (add_breakpoint_condition): Take a struct breakpoint pointer
12659 instead of an address. Adjust.
12660 (gdb_condition_true_at_breakpoint): Rename to ...
12661 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12662 z_type parameter.
12663 (gdb_condition_true_at_breakpoint): Reimplement.
12664 (add_breakpoint_commands): Take a struct breakpoint pointer
12665 instead of an address. Adjust.
12666 (gdb_no_commands_at_breakpoint): Rename to ...
12667 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12668 parameter. Return true if no breakpoint was found. Change debug
12669 output.
12670 (gdb_no_commands_at_breakpoint): Reimplement.
12671 (run_breakpoint_commands): Rename to ...
12672 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12673 and change return type to boolean.
12674 (run_breakpoint_commands): New function.
12675 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12676 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12677 breakpoint. Go through the_target->remove_point instead of
12678 assuming memory breakpoint.
12679 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12680 software and hardware breakpoints.
12681 (reinsert_raw_breakpoint): Go through the_target->insert_point
12682 instead of assuming memory breakpoint.
12683 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12684 software and hardware breakpoints.
12685 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12686 Check both software and hardware breakpoints.
12687 (validate_inserted_breakpoint): Assert the breakpoint is a
12688 software breakpoint. Set the inserted flag to -1 instead of
12689 setting shlib_disabled.
12690 (delete_disabled_breakpoints): Adjust.
12691 (validate_breakpoints): Only validate software breakpoints.
12692 Adjust to inserted flag change.
12693 (check_mem_read, check_mem_write): Skip breakpoint types other
12694 than software breakpoints. Adjust to inserted flag change.
12695 * mem-break.h (enum raw_bkpt_type): New enum.
12696 (raw_breakpoint, struct process_info): Forward declare.
12697 (Z_packet_to_target_hw_bp_type): Delete declaration.
12698 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12699 (set_gdb_breakpoint, delete_gdb_breakpoint)
12700 (clear_breakpoint_conditions): New declarations.
12701 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12702 (breakpoint_inserted_here): Update comment.
12703 (add_breakpoint_condition, add_breakpoint_commands): Replace
12704 address parameter with a breakpoint pointer parameter.
12705 (gdb_breakpoint_here): Update comment.
12706 (delete_gdb_breakpoint_at): Delete.
12707 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12708 * server.c (process_point_options): Take a struct breakpoint
12709 pointer instead of an address. Adjust.
12710 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12711 delete_gdb_breakpoint.
12712 * spu-low.c (spu_target_ops): Install NULL as
12713 supports_z_point_type method.
12714 * target.h: Include mem-break.h.
12715 (struct target_ops) <prepare_to_access_memory>: Update comment.
12716 <supports_z_point_type>: New field.
12717 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12718 instead of a char. Also take a raw breakpoint pointer.
12719 * win32-arm-low.c (the_low_target): Install NULL as
12720 supports_z_point_type.
12721 * win32-i386-low.c (i386_supports_z_point_type): New function.
12722 (i386_insert_point, i386_remove_point): Adjust to new interface.
12723 (the_low_target): Install i386_supports_z_point_type.
12724 * win32-low.c (win32_supports_z_point_type): New function.
12725 (win32_insert_point, win32_remove_point): Adjust to new interface.
12726 (win32_target_ops): Install win32_supports_z_point_type.
12727 * win32-low.h (struct win32_target_ops):
12728 <supports_z_point_type>: New method.
12729 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12730 instead of a char. Also take a raw breakpoint pointer.
12731
932539e3
PA
127322014-05-20 Pedro Alves <palves@redhat.com>
12733
12734 * mem-break.h: Include break-common.h.
12735 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12736 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12737 (Z_packet_to_target_hw_bp_type): New declaration.
12738 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12739 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12740 (Z_PACKET_ACCESS_WP): Delete macros.
12741 (Z_packet_to_hw_type): Delete function.
12742 * i386-low.h: Don't include break-common.h here.
12743 (Z_packet_to_hw_type): Delete declaration.
12744 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12745 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12746 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12747 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12748 * linux-aarch64-low.c: Don't include break-common.h here.
12749 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12750 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12751 (Z_packet_to_target_hw_bp_type): Delete function.
12752 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12753 function.
12754 (mips_insert_point, mips_remove_point): Use
12755 Z_packet_to_target_hw_bp_type.
12756
4ff0d3d8
PA
127572014-05-20 Pedro Alves <palves@redhat.com>
12758
12759 * linux-aarch64-low.c: Include break-common.h.
12760 (enum target_point_type): Delete.
12761 (Z_packet_to_point_type): Rename to ...
12762 (Z_packet_to_target_hw_bp_type): ... this, and return a
12763 target_hw_bp_type instead.
12764 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12765 instead of an enum target_point_type.
12766 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12767 breakpoint type.
12768 (aarch64_dr_state_insert_one_point)
12769 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12770 (aarch64_handle_aligned_watchpoint)
12771 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12772 Take an enum target_hw_bp_type instead of an enum
12773 target_point_type.
12774 (aarch64_supports_z_point_type): New function.
12775 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12776 use Z_packet_to_target_hw_bp_type.
12777
786dc519
JB
127782014-05-20 Joel Brobecker <brobecker@adacore.com>
12779
12780 * configure.ac: Only use -Werror by default when DEVELOPMENT
12781 is true.
12782 * configure: Regenerate.
12783
9e0aa64f
JK
127842014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12785
12786 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12787 * linux-x86-low.c (X86_64_USER_REGS): New.
12788 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12789
2b577b92
YQ
127902014-04-28 Yao Qi <yao@codesourcery.com>
12791
12792 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12793 name.
12794
94611da2
PA
127952014-04-25 Pedro Alves <palves@redhat.com>
12796
12797 PR server/16255
12798 * linux-low.c (linux_attach_fail_reason_string): New function.
12799 (linux_attach_lwp): Delete.
12800 (linux_attach_lwp_1): Rename to ...
12801 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12802 argument. Remove "initial" parameter. Return int instead of
12803 void. Don't error or warn here.
12804 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12805 failure to attach to the tgid. Call warning when failing to
12806 attach to an lwp.
12807 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12808 argument. Remove "initial" parameter. Return int instead of
12809 void. Don't error or warn here.
12810 (linux_attach_fail_reason_string): New declaration.
12811 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12812 interface change. Use linux_attach_fail_reason_string.
12813
01f9f808
MS
128142014-04-24 Michael Sturm <michael.sturm@mintel.com>
12815 Walfred Tedeschi <walfred.tedeschi@intel.com>
12816
12817 * Makefile.in: Added rules to handle new files
12818 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12819 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12820 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12821 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12822 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12823 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12824 x32-avx512-linux.o.
12825 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12826 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12827 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12828 i386/x32-avx512.xml.
12829 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12830 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12831 i386/x32-avx512-linux.xml.
12832 * i387-fp.c (num_avx512_k_registers): New constant for number
12833 of K registers.
12834 (num_avx512_zmmh_low_registers): New constant for number of
12835 lower ZMM registers (0-15).
12836 (num_avx512_zmmh_high_registers): New constant for number of
12837 higher ZMM registers (16-31).
12838 (num_avx512_ymmh_registers): New contant for number of higher
12839 YMM registers (ymm16-31 added by avx521 on x86_64).
12840 (num_avx512_xmm_registers): New constant for number of higher
12841 XMM registers (xmm16-31 added by AVX512 on x86_64).
12842 (struct i387_xsave): Add space for AVX512 registers.
12843 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12844 Add code to handle AVX512 registers.
12845 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12846 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12847 prototypei from generated file.
12848 (tdesc_amd64_avx512_linux): Likewise.
12849 (init_registers_x32_avx512_linux): Likewise.
12850 (tdesc_x32_avx512_linux): Likewise.
12851 (init_registers_i386_avx512_linux): Likewise.
12852 (tdesc_i386_avx512_linux): Likewise.
12853 (x86_64_regmap): Add AVX512 registers.
12854 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12855 mask.
12856 (initialize_low_arch): Add code to initialize AVX512 registers.
12857
51aa91f9
PA
128582014-04-23 Pedro Alves <palves@redhat.com>
12859
12860 * mem-break.c (find_gdb_breakpoint_at): Make static.
12861 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12862
a4165e94
PA
128632014-04-23 Pedro Alves <palves@redhat.com>
12864
12865 * i386-low.c: Don't include break-common.h here.
12866 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12867 prototype to take target_hw_bp_type as argument instead of a Z
12868 packet char.
12869 * i386-low.h: Include break-common.h here.
12870 (Z_packet_to_hw_type): Declare.
12871 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12872 prototypes.
12873 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12874 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12875 (x86_remove_point): Convert the packet number to a
12876 target_hw_bp_type before calling i386_low_remove_watchpoint.
12877 * win32-i386-low.c (i386_insert_point): Convert the packet number
12878 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12879 (i386_remove_point): Convert the packet number to a
12880 target_hw_bp_type before calling i386_low_remove_watchpoint.
12881
b8acf843
PA
128822014-04-23 Pedro Alves <palves@redhat.com>
12883
12884 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12885
d708bcd1
PA
128862014-04-10 Pedro Alves <palves@redhat.com>
12887
12888 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12889 Check if the condition or command is NULL before checking if the
12890 breakpoint is known. On success, return true.
12891 * mem-break.h (add_breakpoint_condition): Document return.
12892 (add_breakpoint_commands): Add describing comment.
12893 * server.c (skip_to_semicolon): New function.
12894 (process_point_options): Use it.
12895
2eec7d5b
PA
128962014-04-09 Pedro Alves <palves@redhat.com>
12897
12898 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12899 to lwpid_of.
12900
fa96cb38
PA
129012014-02-27 Pedro Alves <palves@redhat.com>
12902
12903 PR 12702
12904 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12905 macros.
12906 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12907 output.
12908 (last_thread_of_process_p): Take a PID argument instead of a
12909 thread pointer.
12910 (linux_wait_for_lwp): Delete.
12911 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12912 functions.
12913 (linux_low_filter_event): New function, party factored out from
12914 linux_wait_for_event.
12915 (linux_wait_for_event): Rename to ...
12916 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12917 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12918 sigsuspend. Check for zombie leaders.
12919 (linux_wait_for_event): Reimplement as wrapper around
12920 linux_wait_for_event_filtered.
12921 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12922 a normal or signal exit is seen, it's the whole process exiting.
12923 (wait_for_sigstop): No longer a for_each_inferior callback.
12924 Rewrite on top of linux_wait_for_event_filtered.
12925 (stop_all_lwps): Call wait_for_sigstop directly.
12926 * server.c (resume, handle_target_event): Handle
12927 TARGET_WAITKIND_NO_RESUMED.
12928
d763de10
JB
129292014-02-26 Joel Brobecker <brobecker@adacore.com>
12930
12931 * win32-low.c (psapi_get_dll_name,
12932 * win32_CreateToolhelp32Snapshot): Delete.
12933 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12934 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12935 Delete.
12936 (handle_load_dll): Add function description.
12937 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12938
850a0f76
JB
129392014-02-26 Joel Brobecker <brobecker@adacore.com>
12940
12941 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12942 Add comment.
12943 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12944 base address when calling win32_add_one_solib.
12945 (handle_load_dll): Delete local variable load_addr.
12946 Remove 0x1000 offset applied to DLL base address when calling
12947 win32_add_one_solib.
12948 (handle_unload_dll): Add comment.
12949
f25b3fc3
JB
129502014-02-26 Joel Brobecker <brobecker@adacore.com>
12951
12952 * win32-low.c (win32_add_all_dlls): Renames
12953 win32_ensure_ntdll_loaded. Rewrite function documentation.
12954 Adjust implementation to always load all DLLs.
12955 Add 0x1000 offset to DLL base address when calling
12956 win32_add_one_solib.
12957 (child_initialization_done): New static global.
12958 (do_initial_child_stuff): Set child_initialization_done to
12959 zero during child initialization, and 1 after. Replace call
12960 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12961 Add comment.
12962 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12963 (handle_unload_dll): Add function documentation.
12964 (get_child_debug_event): Ignore load and unload DLL events
12965 during child initialization.
12966
d86d4aaf
DE
129672014-02-20 Doug Evans <dje@google.com>
12968
3bc32da3 12969 Remove global all_lwps.
d86d4aaf
DE
12970 * inferiors.h (ptid_of): Move here from linux-low.h.
12971 (pid_of, lwpid_of): Ditto.
12972 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12973 parameter is a struct thread_info * now.
12974 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12975 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12976 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12977 directly.
12978 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12979 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12980 * linux-arm-low.c (update_registers_callback): Update, "entry"
12981 parameter is a struct thread_info * now.
12982 Fetch lwpid from current_inferior directly.
12983 (arm_insert_point): Pass &all_threads to find_inferior instead of
12984 &all_lwps.
12985 (arm_remove_point): Ditto.
12986 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12987 (arm_prepare_to_resume): Fetch pid from thread.
12988 (arm_read_description): Fetch lwpid from current_inferior directly.
12989 * linux-low.c (all_lwps): Delete.
12990 (delete_lwp): Delete call to remove_inferior.
12991 (handle_extended_wait): Fetch lwpid from thread.
12992 (add_lwp): Don't set lwp->entry.id. Remove call to
12993 add_inferior_to_list.
12994 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12995 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12996 (kill_one_lwp_callback): Ditto.
12997 (linux_kill): Don't dereference NULL pointer.
12998 Fetch ptid,lwpid from thread.
12999 (get_detach_signal): Fetch ptid from thread.
13000 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13001 Simplify call to regcache_invalidate_thread.
13002 (delete_lwp_callback): Update, "entry" parameter is a
13003 struct thread_info * now. Fetch pid from thread.
13004 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13005 (status_pending_p_callback): Update, "entry" parameter is a
13006 struct thread_info * now. Fetch ptid from thread.
13007 (find_lwp_pid): Update, "entry" parameter is a
13008 struct thread_info * now.
13009 (linux_wait_for_lwp): Fetch pid from thread.
13010 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13011 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13012 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13013 (dequeue_one_deferred_signal): Ditto.
13014 (cancel_breakpoint): Fetch ptid from current_inferior.
13015 (linux_wait_for_event): Pass &all_threads to find_inferior,
13016 not &all_lwps. Fetch ptid, lwpid from thread.
13017 (count_events_callback): Update, "entry" parameter is a
13018 struct thread_info * now.
13019 (select_singlestep_lwp_callback): Ditto.
13020 (select_event_lwp_callback): Ditto.
13021 (cancel_breakpoints_callback): Ditto.
13022 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13023 not &all_lwps.
13024 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13025 (unsuspend_one_lwp): Update, "entry" parameter is a
13026 struct thread_info * now.
13027 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13028 not &all_lwps.
13029 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13030 Fetch lwpid from thread, not lwp.
13031 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13032 Pass &all_threads to find_inferior, not &all_lwps.
13033 (send_sigstop): Fetch lwpid from thread, not lwp.
13034 (send_sigstop_callback): Update, "entry" parameter is a
13035 struct thread_info * now.
13036 (suspend_and_send_sigstop_callback): Ditto.
13037 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13038 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13039 struct thread_info * now.
13040 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13041 from thread, lwp.
13042 (lwp_running): Update, "entry" parameter is a
13043 struct thread_info * now.
13044 (stop_all_lwps): Fetch ptid from thread.
13045 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13046 (linux_resume_one_lwp): Fetch lwpid from thread.
13047 (linux_set_resume_request): Update, "entry" parameter is a
13048 struct thread_info * now. Fetch pid, lwpid from thread.
13049 (resume_status_pending_p): Update, "entry" parameter is a
13050 struct thread_info * now.
13051 (need_step_over_p): Ditto. Fetch lwpid from thread.
13052 (start_step_over): Fetch lwpid from thread.
13053 (linux_resume_one_thread): Update, "entry" parameter is a
13054 struct thread_info * now. Fetch lwpid from thread.
13055 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13056 (proceed_one_lwp): Update, "entry" parameter is a
13057 struct thread_info * now. Fetch lwpid from thread.
13058 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13059 struct thread_info * now.
13060 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13061 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13062 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13063 directly.
13064 (regsets_store_inferior_registers): Ditto.
13065 (fetch_register, store_register): Ditto.
13066 (linux_read_memory, linux_write_memory): Ditto.
13067 (linux_request_interrupt): Ditto.
13068 (linux_read_auxv): Ditto.
13069 (linux_xfer_siginfo): Ditto.
13070 (linux_qxfer_spu): Ditto.
13071 (linux_qxfer_libraries_svr4): Ditto.
13072 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13073 moved to inferiors.h.
13074 (get_lwp): Delete.
13075 (get_thread_lwp): Update.
13076 (struct lwp_info): Delete member "entry". Simplify comment for
13077 member "thread".
13078 (all_lwps): Delete.
13079 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13080 current_inferior directly.
13081 (update_watch_registers_callback): Update, "entry" parameter is a
13082 struct thread_info * now. Fetch pid from thread.
13083 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13084 (mips_insert_point): Fetch lwpid from current_inferior.
13085 Pass &all_threads to find_inferior, not &all_lwps.
13086 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13087 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13088 directly.
13089 (mips_stopped_data_address): Ditto.
13090 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13091 directly.
13092 * linux-tile-low.c (tile_arch_setup): Ditto.
13093 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13094 (update_debug_registers_callback): Update, "entry" parameter is a
13095 struct thread_info * now. Fetch pid from thread.
13096 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13097 Pass &all_threads to find_inferior, not &all_lwps.
13098 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13099 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13100 Pass &all_threads to find_inferior, not &all_lwps.
13101 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13102 (i386_dr_low_get_status): Ditto.
13103 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13104 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13105 (x86_linux_read_description): Ditto.
13106 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13107
3b8361aa
DE
131082014-02-20 Doug Evans <dje@google.com>
13109
13110 * inferiors.c (get_first_inferior): Fix buglet.
13111
f7667f0d
DE
131122014-02-19 Doug Evans <dje@google.com>
13113
13114 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13115 * inferiors.c (add_thread): Change result type to struct thread_info *.
13116 All callers updated.
13117 (add_lwp): Call add_thread here instead of in callers.
13118 All callers updated.
13119 * linux-low.h (get_lwp_thread): Rewrite.
13120 (struct lwp_info): New member "thread".
13121
b3312d80
DE
131222014-02-19 Doug Evans <dje@google.com>
13123
13124 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13125 All callers updated.
13126
ecc6f45c
DE
131272014-02-19 Doug Evans <dje@google.com>
13128
13129 * inferiors.c (add_thread): Fix whitespace.
13130
649ebbca
DE
131312014-02-19 Doug Evans <dje@google.com>
13132
13133 * dll.c (clear_dlls): Replace accessing list implemention details
13134 with API function.
13135 * gdbthread.h (get_first_thread): Declare.
13136 * inferiors.c (for_each_inferior_with_data): New function.
13137 (get_first_thread): New function.
13138 (find_thread_ptid): Simplify.
13139 (get_first_inferior): New function.
13140 (clear_list): Delete.
13141 (one_inferior_p): New function.
13142 (clear_inferior_list): New function.
13143 (clear_inferiors): Update.
13144 * inferiors.h (for_each_inferior_with_data): Declare.
13145 (clear_inferior_list): Declare.
13146 (one_inferior_p): Declare.
13147 (get_first_inferior): Declare.
13148 * linux-low.c (linux_wait_for_event): Replace accessing list
13149 implemention details with API function.
13150 * server.c (target_running): Ditto.
13151 (accumulate_file_name_length): New function.
13152 (emit_dll_description): New function.
13153 (handle_qxfer_libraries): Replace accessing list implemention
13154 details with API function.
13155 (handle_qxfer_threads_worker): New function.
13156 (handle_qxfer_threads_proper): Replace accessing list implemention
13157 details with API function.
13158 (handle_query): Ditto.
13159 (visit_actioned_threads_callback_ftype): New typedef.
13160 (visit_actioned_threads_data): New struct.
13161 (visit_actioned_threads): Rewrite to be find_inferior callback.
13162 (resume): Call find_inferior.
13163 (handle_status): Replace accessing list implemention
13164 details with API function.
13165 (process_serial_event): Replace accessing list implemention details
13166 with API function.
13167 * target.c (set_desired_inferior): Replace accessing list implemention
13168 details with API function.
13169 * tracepoint.c (same_process_p): New function.
13170 (gdb_agent_about_to_close): Replace accessing list implemention
13171 details with API function.
13172 * win32-low.c (child_delete_thread): Replace accessing list
13173 implemention details with API function.
13174 (match_dll_by_basename): New function.
13175 (dll_is_loaded_by_basename): New function.
13176 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13177 details call to dll_is_loaded_by_basename.
13178
80894984
DE
131792014-02-19 Doug Evans <dje@google.com>
13180
13181 * dll.h (struct dll_info): Add comment.
13182 * gdbthread.h (struct thread_info): Add comment.
13183 (current_ptid): Simplify.
13184 * inferiors.c (add_process): Update.
13185 (remove_process): Update.
13186 * inferiors.h (struct process_info): Rename member "head" to "entry".
13187 * linux-low.c (delete_lwp): Update.
13188 (add_lwp): Update.
13189 (last_thread_of_process_p): Update.
13190 (kill_one_lwp_callback, linux_kill): Update.
13191 (status_pending_p_callback): Update.
13192 (wait_for_sigstop): Update. Simplify read of ptid.
13193 (start_step_over): Update.
13194 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13195 (get_lwp_thread): Update.
13196 (struct lwp_info): Rename member "head" to "entry".
13197 * regcache.h (inferior_list_entry): Delete.
13198 * server.c (kill_inferior_callback): Update.
13199 (detach_or_kill_inferior_callback): Update.
13200 (print_started_pid): Update.
13201 (print_attached_pid): Update.
13202 (process_serial_event): Simplify read of ptid.
13203 * thread-db.c (thread_db_create_event): Update.
13204 (thread_db_get_tls_address): Update.
13205 * win32-low.c (current_inferior_ptid): Simplify.
13206
46917d26
TT
132072014-02-19 Tom Tromey <tromey@redhat.com>
13208
13209 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13210 argument.
13211 (target_supports_btrace): Update.
13212
0759a81e
YQ
132132014-02-14 Yao Qi <yao@codesourcery.com>
13214
13215 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13216 (rsp-low-ipa.o): New target.
13217
a7191e8b
TT
132182014-02-12 Tom Tromey <tromey@redhat.com>
13219
13220 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13221 convert_ascii_to_int.
13222 * regcache.c (registers_to_string): Likewise.
13223 * remote-utils.c (decode_M_packet): Likewise.
13224 * server.c (process_serial_event): Likewise.
13225
ff0e980e
TT
132262014-02-12 Tom Tromey <tromey@redhat.com>
13227
13228 * server.c (handle_query, handle_v_run): Use hex2bin, not
13229 unhexify.
13230 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13231
e9371aff
TT
132322014-02-12 Tom Tromey <tromey@redhat.com>
13233
13234 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13235 convert_int_to_ascii.
13236 * regcache.c (registers_to_string, collect_register_as_string):
13237 Likewise.
13238 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13239 Likewise.
13240 * server.c (process_serial_event): Likewise.
13241 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13242 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13243
971dc0b8
TT
132442014-02-12 Tom Tromey <tromey@redhat.com>
13245
13246 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13247 bin2hex, not hexify.
13248 * tracepoint.c (cmd_qtstatus): Likewise.
13249
0a822afb
TT
132502014-02-12 Tom Tromey <tromey@redhat.com>
13251
13252 * remote-utils.c (monitor_output): Pass explicit length to
13253 hexify.
13254
9c3d6531
TT
132552014-02-12 Tom Tromey <tromey@redhat.com>
13256
13257 * tracepoint.c: Include rsp-low.h.
13258 * server.c: Include rsp-low.h.
13259 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13260 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13261 declare.
13262 * remote-utils.c: Include rsp-low.h.
13263 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13264 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13265 (convert_int_to_ascii, convert_ascii_to_int): Move to
13266 common/rsp-low.c.
13267 * regcache.c: Include rsp-low.h.
13268 * ax.c: Include rsp-low.h.
13269 * Makefile.in (SFILES): Add common/rsp-low.c.
13270 (OBS): Add rsp-low.o.
13271 (rsp-low.o): New target.
13272
01fd3ea5
TT
132732014-02-12 Tom Tromey <tromey@redhat.com>
13274
13275 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13276 Include print-utils.h.
13277 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13278 (plongest, thirty_two, phex_nz): Remove.
13279 * Makefile.in (SFILES): Add common/print-utils.c.
13280 (OBS): Add print-utils.o.
13281 (print-utils-ipa.o): New target.
13282 (print-utils.o): New target.
13283 (IPA_OBJS): Add print-utils-ipa.o.
13284
e99dc820
TT
132852014-02-06 Tom Tromey <tromey@redhat.com>
13286
13287 * Makefile.in (SFILES): Fix indentation.
13288
ee1e2d4f
DE
132892014-02-05 Doug Evans <dje@google.com>
13290
13291 * linux-low.c (linux_wait_for_event): Improve comment.
13292 (linux_wait_1): Keep current_inferior in sync with event_child.
13293
f5a02773
DE
132942014-01-22 Doug Evans <dje@google.com>
13295
13296 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13297
87ce2a04
DE
132982014-01-22 Doug Evans <dje@google.com>
13299
13300 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13301 * configure: Regenerate.
13302 * config.in: Regenerate.
13303 * Makefile.in (SFILES): Add debug.c.
13304 (OBS): Add debug.o.
13305 * debug.c: New file.
13306 * debug.h: New file.
13307 * linux-aarch64-low.c (*): Update all debugging printfs to use
13308 debug_printf instead of fprintf.
13309 * linux-arm-low.c (*): Ditto.
13310 * linux-cris-low.c (*): Ditto.
13311 * linux-crisv32-low.c (*): Ditto.
13312 * linux-m32r-low.c (*): Ditto.
13313 * linux-sparc-low.c (*): Ditto.
13314 * linux-x86.c (*): Ditto.
13315 * linux-low.c (*): Ditto.
13316 (linux_wait_1): Add calls to debug_enter, debug_exit.
13317 (linux_wait): Remove redundant debugging printf.
13318 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13319 (linux_resume, unstop_all_lwps): Ditto.
13320 * mem-break.c (*): Update all debugging printfs to use
13321 debug_printf instead of fprintf.
13322 * remote-utils.c (*): Ditto.
13323 * thread-db.c (*): Ditto.
13324 * server.c #include <ctype.h>, "gdb_vecs.h".
13325 (debug_threads): Moved to debug.c.
13326 (*): Update all debugging printfs to use debug_printf instead of
13327 fprintf.
13328 (start_inferior): Replace call to fflush with call to debug_flush.
13329 (monitor_show_help): Mention set debug-format.
13330 (parse_debug_format_options): New function.
13331 (handle_monitor_command): Handle "monitor set debug-format".
13332 (gdbserver_usage): Mention --debug-format.
13333 (main): Parse --debug-format.
13334 * server.h (debug_threads): Declaration moved to debug.h.
13335 #include "debug.h".
13336 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13337 trace_debug_1 that uses debug_printf.
13338 (tracepoint_look_up_symbols): Update all debugging printfs to use
13339 debug_printf instead of fprintf.
13340
e671835b
BS
133412014-01-20 Baruch Siach <baruch@tkos.co.il>
13342
13343 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13344 sys/ptrace.h.
13345
b5737fa9
PA
133462014-01-17 Pedro Alves <palves@redhat.com>
13347
ea38d2a9 13348 PR build/16445
c7faa97a
PA
13349 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13350 defined after including gdb_proc_service.h.
b5737fa9 13351
40ed484e
DE
133522014-01-16 Doug Evans <dje@google.com>
13353
13354 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13355 (match_dll): Use it.
13356
969c39fb
MM
133572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13358
13359 * target.h (target_ops) <read_btrace>: Change parameters and
13360 return type to allow error reporting.
13361 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13362 trace reading errors on.
13363 * linux-low.c (linux_low_read_btrace): Pass trace reading
13364 errors on.
13365 (linux_low_disable_btrace): New.
13366
ab7f45ba
DE
133672014-01-15 Doug Evans <dje@google.com>
13368
13369 * inferiors.c (thread_id_to_gdb_id): Delete.
13370 * inferiors.h (thread_id_to_gdb_id): Delete.
13371
66af0f44
EZ
133722014-01-13 Eli Zaretskii <eliz@gnu.org>
13373
13374 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13375 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13376 versions.
13377
9939e131
PA
133782014-01-08 Pedro Alves <palves@redhat.com>
13379
13380 * server.c (handle_status): Don't discard previous queued stop
13381 replies or thread's pending status here.
13382 (main) <disconnection>: Do it here instead.
13383
b7ea362b
PA
133842014-01-08 Pedro Alves <palves@redhat.com>
13385
13386 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13387 * server.c (visit_actioned_threads, handle_pending_status): New
13388 function.
13389 (handle_v_cont): Factor out parts to ...
13390 (resume): ... this new function. If in all-stop, and a thread
13391 being resumed has a pending status, report it without actually
13392 resuming.
13393 (myresume): Adjust to use the new 'resume' function.
13394 (clear_pending_status_callback, set_pending_status_callback)
13395 (find_status_pending_thread_callback): New functions.
13396 (handle_status): Handle the case of multiple threads having
13397 interesting statuses to report. Report threads' real last signal
13398 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13399 with an interesting thread to report the status for, instead of
13400 always reporting the status of the first thread.
13401
28498c42
JB
134022014-01-01 Joel Brobecker <brobecker@adacore.com>
13403
13404 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13405 * gdbreplay.c (gdbreplay_version): Likewise.
13406
f45c82da
YZ
134072013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13408
13409 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13410 iov.iov_len with the real length in use.
13411
379a5e2d
JB
134122013-12-13 Joel Brobecker <brobecker@adacore.com>
13413
13414 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13415 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13416 for all targets that use win32-low.c.
13417 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13418 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13419
4210d83e
PA
134202013-12-13 Pedro Alves <palves@redhat.com>
13421
13422 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13423 if equal to TARGET_WAITKIND_LOADED.
13424 * win32-low.c (cached_status): New static global.
13425 (win32_wait): Add declaration.
13426 (do_initial_child_stuff): Flush all initial pending debug events
13427 up to the initial breakpoint.
13428 (win32_wait): If CACHED_STATUS was set, return that instead
13429 of doing a real wait. Remove the code resuming the execution
13430 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13431 during the initial phase. Also remove the code changing
13432 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13433 TARGET_WAITKIND_STOPPED.
13434
e7f0d979
YQ
134352013-12-11 Yao Qi <yao@codesourcery.com>
13436
13437 * notif.c (handle_notif_ack): Return 0 if no notification
13438 matches.
13439
ebcf782c
DE
134402013-11-20 Doug Evans <dje@google.com>
13441
13442 * linux-low.c (linux_set_resume_request): Fix comment.
13443
20ad9378
DE
134442013-11-20 Doug Evans <dje@google.com>
13445
13446 * linux-low.c (resume_status_pending_p): Tweak comment.
13447
a196ebeb
WT
134482013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13449
13450 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13451 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13452 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13453 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13454 (srv_amd64_regobj): Add amd64-mpx.o.
13455 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13456 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13457 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13458 * i387-fp.c (num_pl_bnd_register) Added constant.
13459 (num_pl_bnd_cfg_registers) Added constant.
13460 (struct i387_xsave) Added reserved area and MPX fields.
13461 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13462 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13463 function.
13464 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13465 (init_registers_amd64_mpx_linux): Declare new function.
13466 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13467 (x86_64_regmap): Add MPX registers.
13468 (x86_linux_read_description): Add MPX case.
13469 (initialize_low_arch): Initialize MPX targets.
13470
0080a2f6
TT
134712013-11-18 Tom Tromey <tromey@redhat.com>
13472
13473 * configure: Rebuild.
13474 * configure.ac: Don't check for stdlib.h.
13475 * gdbreplay.c: Unconditionally include stdlib.h.
13476
2978b111
TT
134772013-11-18 Tom Tromey <tromey@redhat.com>
13478
13479 * config.in: Rebuild.
13480 * configure: Rebuild.
13481 * configure.ac: Don't use AC_HEADER_DIRENT.
13482
a3d08894
TT
134832013-11-18 Tom Tromey <tromey@redhat.com>
13484
13485 * server.h: Don't check HAVE_STRING_H.
13486 * gdbreplay.c: Don't check HAVE_STRING_H.
13487 * configure: Rebuild.
13488
0a5dd17d
TT
134892013-11-18 Tom Tromey <tromey@redhat.com>
13490
13491 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13492 LIBGNU.
13493
1bd2f0ba
TT
134942013-11-08 Tom Tromey <tromey@redhat.com>
13495
13496 * configure, config.in: Rebuild.
13497 * configure.ac: Remove unused configury.
13498
3266f10b
TT
134992013-11-08 Tom Tromey <tromey@redhat.com>
13500
13501 * acinclude.m4: Include common.m4, codeset.m4.
13502 * configure, config.in: Rebuild.
13503 * configure.ac: Use GDB_AC_COMMON.
13504
6682d959
AA
135052013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13506
13507 * linux-s390-low.c (HWCAP_S390_TE): New define.
13508 (s390_arch_setup): Consider the TE field in the HWCAP for
13509 determining 'have_regset_tdb'.
13510
fd0a4d76
SDJ
135112013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13512
13513 PR gdb/16014
13514 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13515 call to sizeof.
13516
1a3d890b
PA
135172013-10-02 Pedro Alves <palves@redhat.com>
13518
13519 * server.c (process_serial_event): Don't output "GDBserver
13520 exiting" if GDB is connected through stdio.
13521 * target.c (mywait): Likewise, be silent if GDB is connected
13522 through stdio.
13523
97ad4581
JB
135242013-10-01 Joel Brobecker <brobecker@adacore.com>
13525
13526 * lynx-low.c (lynx_add_threads_after_attach): New function.
13527 (lynx_attach): Remove call to add_thread. Add call to
13528 lynx_add_threads_after_attach instead.
13529
5b4e221c
MF
135302013-09-28 Mike Frysinger <vapier@gentoo.org>
13531
13532 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13533 * config.in, configure: Regenerated.
13534
ee47b2f8
YQ
135352013-09-18 Yao Qi <yao@codesourcery.com>
13536
13537 PR server/15959
13538 * server.c (start_inferior): Clear 'resume_info'.
13539
d6707650 135402013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13541
d6707650
JW
13542 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13543 for each register.
13544
9243dd0e 135452013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13546
9243dd0e
JW
13547 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13548 linux-tile-low.o to srv_tgtobj.
13549
c623a6ef
WN
135502013-09-16 Will Newton <will.newton@linaro.org>
13551
13552 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13553 out regs.
13554
fb71d39e
PA
135552013-09-06 Pedro Alves <palves@redhat.com>
13556
13557 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13558 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13559 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13560 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13561 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13562 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13563
8e7e9910
PA
135642013-09-06 Pedro Alves <palves@redhat.com>
13565
13566 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13567 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13568
7c3a12ca
PA
135692013-09-06 Pedro Alves <palves@redhat.com>
13570
13571 * linux-amd64-ipa.c: Include tracepoint.h.
13572 * linux-i386-ipa.c: Include tracepoint.h.
13573
8eb3d7b6
RW
135742013-09-06 Ricard Wanderlof <ricardw@axis.com>
13575
13576 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13577 (ps_get_thread_area): New function.
13578
eddddb9d
RW
135792013-09-06 Ricard Wanderlof <ricardw@axis.com>
13580
13581 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13582 (initialize_low_arch): Call init_registers_crisv32 rather than
13583 init_register_crisv32.
13584
533b0600
PA
135852013-09-05 Pedro Alves <palves@redhat.com>
13586
13587 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13588 to ...
13589 * hostio.h: ... this new file.
13590 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13591 win32-low.c: Include hostio.h.
13592
0ce3d3b5
PA
135932013-09-05 Pedro Alves <palves@redhat.com>
13594
13595 * server.h (gdb_client_data, handler_func, callback_handler_func)
13596 (delete_file_handler, add_file_handler, append_callback_event)
13597 (delete_callback_event, start_event_loop, initialize_event_loop):
13598 Move to event-loop.h and include it.
13599 * event-loop.h: New file.
13600
799cdc37
PA
136012013-09-05 Pedro Alves <palves@redhat.com>
13602
13603 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13604 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13605 (loaded_dll, unloaded_dll): Move to ...
13606 * dll.h: ... this new file.
13607 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13608
6a6bbd9d
PA
136092013-09-05 Pedro Alves <palves@redhat.com>
13610
13611 * server.h (current_process, get_thread_process, all_processes)
13612 (add_inferior_to_list, for_each_inferior, current_inferior)
13613 (remove_inferior, add_process, remove_process, find_process_pid)
13614 (have_started_inferiors_p, have_attached_inferiors_p)
13615 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13616 (clear_inferiors, find_inferior, find_inferior_id)
13617 (inferior_target_data, set_inferior_target_data)
13618 (inferior_regcache_data, set_inferior_regcache_data): Move to
13619 inferiors.h, and include it.
13620 * inferiors.h: New file.
13621
f699aaba
PA
136222013-09-05 Pedro Alves <palves@redhat.com>
13623
13624 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13625 Move ...
72f4393d 13626 * ax.h: ... here.
f699aaba 13627
c144c7a0
PA
136282013-09-05 Pedro Alves <palves@redhat.com>
13629
13630 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13631 tracepoint.h.
13632 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13633 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13634 (handle_tracepoint_general_set, handle_tracepoint_query)
13635 (tracepoint_finished_step, tracepoint_was_hit)
13636 (release_while_stepping_state_list, current_traceframe)
13637 (in_readonly_region, traceframe_read_mem)
13638 (fetch_traceframe_registers, traceframe_read_sdata)
13639 (traceframe_read_info, struct fast_tpoint_collect_status)
13640 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13641 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13642 (supply_fast_tracepoint_registers)
13643 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13644 (ipa_tdesc, claim_trampoline_space)
13645 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13646 (agent_mem_read, agent_get_trace_state_variable_value)
13647 (agent_set_trace_state_variable_value, agent_tsv_read)
13648 (agent_mem_read_string, get_raw_reg_func_addr)
13649 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13650 * tracepoint.h: ... this new file.
13651
ff42e6ab
PA
136522013-09-05 Pedro Alves <palves@redhat.com>
13653
13654 * server.h (perror_with_name, error, fatal, warning, paddress)
13655 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13656 include it.
13657 * utils.h: New file.
13658
541af0f4
PA
136592013-09-05 Pedro Alves <palves@redhat.com>
13660
13661 * server.h (remote_debug, noack_mode, transport_is_reliable)
13662 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13663 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13664 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13665 (write_enn, initialize_async_io, enable_async_io)
13666 (disable_async_io, check_remote_input_interrupt_request)
13667 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13668 (dead_thread_notify, prepare_resume_reply)
13669 (decode_address_to_semicolon, decode_address, decode_m_packet)
13670 (decode_M_packet, decode_X_packet, decode_xfer_write)
13671 (decode_search_memory_packet, unhexify, hexify)
13672 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13673 (look_up_one_symbol, relocate_instruction)
13674 (monitor_output): Move to remote-utils.h, and include it.
13675 * remote-utils.h: New file.
13676
eebdf26b
PA
136772013-09-05 Pedro Alves <palves@redhat.com>
13678
13679 * server.h (_): Delete.
13680
3aafd2ff
PA
136812013-09-02 Pedro Alves <palves@redhat.com>
13682
13683 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13684 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13685 allocated.
13686 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13687
cee83bcb
PM
136882013-09-02 Pierre Muller <muller@sourceware.org>
13689
13690 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13691 or WriteProcessMemory complete successfully and handle
13692 ERROR_PARTIAL_COPY error.
13693
9a13b2fa
PA
136942013-09-02 Pedro Alves <palves@redhat.com>
13695
13696 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13697 error instead of EIO.
13698
602e3198
JK
136992013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13700
13701 PR server/15604
13702 * linux-low.c: Include filestuff.h.
13703 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13704 * lynx-low.c: Include filestuff.h.
13705 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13706 * server.c: Include filestuff.h.
13707 (main): Call notice_open_fds.
13708 * spu-low.c: Include filestuff.h.
13709 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13710
96d7229d
LM
137112013-08-22 Luis Machado <lgustavo@codesourcery.com>
13712
13713 * Makefile.in: Explain why ../target and ../nat are not
13714 listed as include file search paths.
13715 (linux-waitpid.o): New object file rule.
13716 * configure.srv (srv_native_linux_obj): New variable.
13717 Replace all occurrences of linux native object files with
13718 $srv_native_linux_obj.
13719 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13720 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13721 (linux_enable_event_reporting): Remove declaration.
13722 (my_waitpid): Moved to common/linux-waitpid.c.
13723 (linux_wait_for_event): Pass ptid when calling
13724 linux_enable_event_reporting.
13725 (linux_supports_tracefork_flag): Remove.
13726 (linux_enable_event_reporting): Likewise.
13727 (linux_tracefork_grandchild): Remove.
13728 (STACK_SIZE): Moved to common/linux-ptrace.c.
13729 (linux_tracefork_child): Remove.
13730 (linux_test_for_tracefork): Remove.
13731 (linux_look_up_symbols): Call linux_supports_traceclone.
13732 (initialize_low): Remove call to linux_test_for_tracefork.
13733 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13734 common/linux-ptrace.h.
13735 (PTRACE_TYPE_ARG4): Likewise.
13736 Include linux-ptrace.h.
13737
32940073
PA
137382013-08-21 Pedro Alves <palves@redhat.com>
13739
13740 * config.in: Renegerate.
13741
33b60d58 137422013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13743
33b60d58
LM
13744 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13745 (SFILES): Remove $(srcdir)/common/target-common.c and
13746 add $(srcdir)/target/waitstatus.c.
13747 (OBS): Remove target-common.o and add waitstatus.o.
13748 (server_h): Remove $(srcdir)/../common/target-common.h and
13749 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13750 and $(srcdir)/../target/waitstatus.h.
13751 (target-common.o): Remove.
13752 (waitstatus.o): New target object file.
13753 * target.h: Do not include target-common.h and
13754 include target/resume.h, target/wait.h and
13755 target/waitstatus.h.
13756
b8e1b30e
LM
137572013-08-13 Luis Machado <lgustavo@codesourcery.com>
13758
13759 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13760 to PTRACE_TYPE_ARG3.
13761 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13762 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13763 PTRACE_TYPE_ARG4.
13764 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13765 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13766
7a60ad40
YQ
137672013-07-27 Jie Zhang <jie@codesourcery.com>
13768 Daniel Jacobowitz <dan@codesourcery.com>
13769 Yao Qi <yao@codesourcery.com>
13770
13771 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13772 (mips-linux-watch.o): New rule.
13773 (mips_linux_watch_h): New variable.
13774 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13775 srv_tgtobj.
13776 * linux-mips-low.c: Include mips-linux-watch.h.
13777 (struct arch_process_info, struct arch_lwp_info): New.
13778 (update_watch_registers_callback): New function.
13779 (mips_linux_new_process, mips_linux_new_thread) New functions.
13780 (mips_linux_prepare_to_resume, mips_insert_point): New
13781 functions.
13782 (mips_remove_point, mips_stopped_by_watchpoint): New
13783 functions.
13784 (rsp_bp_type_to_target_hw_bp_type): New function.
13785 (mips_stopped_data_address): New function.
13786 (the_low_target): Add watchpoint support functions.
13787
de6f69ad
YQ
137882013-07-27 Yao Qi <yao@codesourcery.com>
13789
13790 * i386-low.c: Include break-common.h.
13791 (enum target_hw_bp_type): Remove.
13792
3360c0bf
LM
137932013-07-24 Luis Machado <lgustavo@codesourcery.com>
13794
13795 * Makefile.in (SFILES): /common/target-common.c.
13796 (OBS): Add target-common.o.
13797 (server_h): Add $(srcdir)/../common/target-common.h.
13798 (target-common.o): New target.
13799 * server.c (queue_stop_reply_callback): Free
13800 status string after use.
13801 * target.c (target_waitstatus_to_string): Remove.
13802 * target.h: Include target-common.h.
13803 (resume_kind): Likewise.
13804 (target_waitkind): Likewise.
13805 (target_waitstatus): Likewise.
13806 (TARGET_WNOHANG): Likewise.
13807
bd885420
YQ
138082013-07-04 Yao Qi <yao@codesourcery.com>
13809
13810 * Makefile.in (host_alias): Use @host_noncanonical@.
13811 (target_alias): Use @target_noncanonical@.
13812 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13813 ACX_NONCANONICAL_HOST.
13814 * configure: Regenerated.
13815
13816 Revert:
13817 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13818
13819 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13820 * configure: Rebuild.
13821 * Makefile.in (version_host, version_target): Get from configure.
13822 (version.c): Use $(version_host) and $(version_target).
13823
17ef446e
PA
138242013-07-03 Pedro Alves <palves@redhat.com>
13825
13826 * Makefile.in (config.status): Depend on development.sh.
13827 * acinclude.m4: Include libmcheck.m4.
13828 * configure: Regenerate.
13829
7a9a7487
MG
138302013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13831
13832 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13833 attribute inside the parentheses.
13834 (winapi_DebugSetProcessKillOnExit): Ditto.
13835 (winapi_DebugBreakProcess): Ditto.
13836 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13837
49b64de6
MG
138382013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13839
13840 * notif.h (notif_event): Add a dummy member to avoid compiler
13841 errors.
13842
d5749ee7
PA
138432013-07-01 Pedro Alves <palves@redhat.com>
13844
13845 * hostio.c (HOSTIO_PATH_MAX): Define.
13846 (require_filename, handle_open, handle_unlink, handle_readlink):
13847 Use it.
13848
d8d2a3ee
PA
138492013-07-01 Pedro Alves <palves@redhat.com>
13850
13851 * server.h: Include "pathmax.h".
13852 * linux-low.c: Don't include sys/param.h.
13853 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13854 MAXPATHLEN.
13855 * win32-low.c: Don't include sys/param.h.
13856 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13857
bc7dea8d
PA
138582013-07-01 Pedro Alves <palves@redhat.com>
13859
13860 * event-loop.c: Don't check HAVE_UNISTD_H before including
13861 <unistd.h>.
13862 * gdbreplay.c: Likewise.
13863 * remote-utils.c: Likewise.
13864 * server.c: Likewise.
13865 * configure.ac: Don't check for unistd.h.
13866 * configure: Regenerate.
13867
d6c2da54
TT
138682013-06-28 Tom Tromey <tromey@redhat.com>
13869
13870 * Makefile.in (version.c): Use version.in, not
13871 common/version.in.
13872
257b6bec
MG
138732013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13874
13875 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13876 * configure: Rebuild.
13877 * Makefile.in (version_host, version_target): Get from configure.
13878 (version.c): Use $(version_host) and $(version_target).
13879
86ebe149
DK
138802013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13881
13882 Fix trace-status to output user name without trailing colon.
13883 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13884
f30aa5af
DK
138852013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13886
13887 Fix trace-status to output proper start-time and stop-time.
13888 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13889 output start time and stop time in hex as gdb expects.
13890
28a93511
YQ
138912013-06-26 Pedro Alves <pedro@codesourcery.com>
13892
13893 * tracepoint.c (build_traceframe_info_xml): Output trace state
13894 variables present in the trace buffer.
13895
01208463
TT
138962013-06-24 Tom Tromey <tromey@redhat.com>
13897
13898 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13899 create-version.sh.
13900 (version.o): Remove.
13901 * gdbreplay.c: Include version.h.
13902 (version, host_name): Don't declare.
13903 * server.h: Include version.h.
13904 (version, host_name): Don't declare.
13905
760256f9
PA
139062013-06-12 Pedro Alves <palves@redhat.com>
13907
13908 * linux-x86-low.c (linux_is_elf64): Delete global.
13909 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13910 with local linux_pid_exe_is_elf_64_file use.
13911
030031ee
PA
139122013-06-11 Pedro Alves <palves@redhat.com>
13913
13914 * linux-low.c (regset_disabled, disable_regset): New functions.
13915 (regsets_fetch_inferior_registers)
13916 (regsets_store_inferior_registers): Use them.
13917 (initialize_regsets_info); Don't allocate the disabled_regsets
13918 array here.
13919 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13920 comment.
13921
5da6eb0a
PA
139222013-06-11 Pedro Alves <palves@redhat.com>
13923
13924 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13925 xmalloc.
13926
7e5aaa09
PA
139272013-06-11 Pedro Alves <palves@redhat.com>
13928
13929 * linux-x86-low.c (initialize_low_arch): Call
13930 init_registers_x32_avx_linux.
13931
d878444c
JK
139322013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13933
13934 Fix compatibility with Android Bionic.
13935 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13936 it is not empty.
13937
3aee8918
PA
139382013-06-07 Pedro Alves <palves@redhat.com>
13939
5f2b57b5 13940 PR server/14823
3aee8918
PA
13941 * Makefile.in (OBS): Add tdesc.o.
13942 (IPA_OBJS): Add tdesc-ipa.o.
13943 (tdesc-ipa.o): New rule.
13944 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13945 interface.
13946 * linux-low.c (new_inferior): Delete.
13947 (disabled_regsets, num_regsets): Delete.
13948 (linux_add_process): Adjust to set the new per-process
13949 new_inferior flag.
13950 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13951 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13952 was a stop. When calling arch_setup, switch the current inferior
13953 to the thread that got an event.
13954 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13955 (regsets_fetch_inferior_registers)
13956 (regsets_store_inferior_registers): New regsets_info parameter.
13957 Adjust to use it.
13958 (linux_register_in_regsets): New regs_info parameter. Adjust to
13959 use it.
13960 (register_addr, fetch_register, store_register): New usrregs_info
13961 parameter. Adjust to use it.
13962 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13963 parameter regs_info. Adjust to use it.
13964 (linux_fetch_registers): Get the current inferior's regs_info, and
13965 adjust to use it.
13966 (linux_store_registers): Ditto.
13967 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13968 (initialize_low): Don't initialize the target_regsets here. Call
13969 initialize_low_arch.
13970 * linux-low.h (target_regsets): Delete declaration.
13971 (struct regsets_info): New.
13972 (struct usrregs_info): New.
13973 (struct regs_info): New.
13974 (struct process_info_private) <new_inferior>: New field.
13975 (struct linux_target_ops): Delete the num_regs, regmap, and
13976 regset_bitmap fields. New field regs_info.
13977 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13978 * i387-fp.c (num_xmm_registers): Delete.
13979 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13980 calls to new interface.
13981 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13982 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13983 Infer the number of xmm registers from the regcache's target
13984 description.
13985 * i387-fp.h (num_xmm_registers): Delete.
13986 * inferiors.c (add_thread): Don't install the thread's regcache
13987 here.
13988 * proc-service.c (gregset_info): Fetch the current inferior's
13989 regs_info. Adjust to use it.
13990 * regcache.c: Include tdesc.h.
13991 (register_bytes, reg_defs, num_registers)
13992 (gdbserver_expedite_regs): Delete.
13993 (get_thread_regcache): If the thread doesn't have a regcache yet,
13994 create one, instead of aborting gdbserver.
13995 (regcache_invalidate_one): Rename to ...
13996 (regcache_invalidate_thread): ... this.
13997 (regcache_invalidate_one): New.
13998 (regcache_invalidate): Only invalidate registers of the current
13999 process.
14000 (init_register_cache): Add target_desc parameter, and use it.
14001 (new_register_cache): Ditto. Assert the target description has a
14002 non zero registers_size.
14003 (regcache_cpy): Add assertions. Adjust.
14004 (realloc_register_cache, set_register_cache): Delete.
14005 (registers_to_string, registers_from_string): Adjust.
14006 (find_register_by_name, find_regno, find_register_by_number)
14007 (register_cache_size): Add target_desc parameter, and use it.
14008 (free_register_cache_thread, free_register_cache_thread_one)
14009 (regcache_release, register_cache_size): New.
14010 (register_size): Add target_desc parameter, and use it.
14011 (register_data, supply_register, supply_register_zeroed)
14012 (supply_regblock, supply_register_by_name, collect_register)
14013 (collect_register_as_string, collect_register_by_name): Adjust.
14014 * regcache.h (struct target_desc): Forward declare.
14015 (struct regcache) <tdesc>: New field.
14016 (init_register_cache, new_register_cache): Add target_desc
14017 parameter.
14018 (regcache_invalidate_thread): Declare.
14019 (regcache_invalidate_one): Delete declaration.
14020 (regcache_release): Declare.
14021 (find_register_by_number, register_cache_size, register_size)
14022 (find_regno): Add target_desc parameter.
14023 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14024 declarations.
14025 * remote-utils.c: Include tdesc.h.
14026 (outreg, prepare_resume_reply): Adjust.
14027 * server.c: Include tdesc.h.
14028 (gdbserver_xmltarget): Delete declaration.
14029 (get_features_xml, process_serial_event): Adjust.
14030 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14031 declare.
14032 (struct process_info) <tdesc>: New field.
14033 (ipa_tdesc): Declare.
14034 * tdesc.c: New file.
14035 * tdesc.h: New file.
14036 * tracepoint.c: Include tdesc.h.
14037 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14038 (get_context_regcache): Adjust to pass ipa_tdesc down.
14039 (do_action_at_tracepoint): Adjust to get the register cache size
14040 from the context regcache's description.
14041 (traceframe_walk_blocks): Adjust to get the register cache size
14042 from the current trace frame's description.
14043 (traceframe_get_pc): Adjust to get current trace frame's
14044 description and pass it down.
14045 (gdb_collect): Adjust to get the register cache size from the
14046 IPA's description.
14047 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14048 (gdbserver_xmltarget): Delete.
14049 (initialize_low_tracepoint): Set the ipa's target description.
14050 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14051 (initialize_low_tracepoint): Set the ipa's target description.
14052 * linux-x86-low.c: Include tdesc.h.
14053 [__x86_64__] (is_64bit_tdesc): New.
14054 (ps_get_thread_area, x86_get_thread_area): Use it.
14055 (i386_cannot_store_register): Rename to ...
14056 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14057 (i386_cannot_fetch_register): Rename to ...
14058 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14059 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14060 to new interface.
14061 (target_regsets): Rename to ...
14062 (x86_regsets): ... this.
14063 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14064 interface.
14065 (x86_siginfo_fixup): Use is_64bit_tdesc.
14066 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14067 (tdesc_x32_avx_linux, tdesc_x32_linux)
14068 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14069 Declare.
14070 (x86_linux_update_xmltarget): Delete.
14071 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14072 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14073 (AMD64_LINUX_USER64_CS): New.
14074 (x86_linux_read_description): New, based on
14075 x86_linux_update_xmltarget.
14076 (same_process_callback): New.
14077 (x86_arch_setup_process_callback): New.
14078 (x86_linux_update_xmltarget): New.
14079 (x86_regsets_info): New.
14080 (amd64_linux_regs_info): New.
14081 (i386_linux_usrregs_info): New.
14082 (i386_linux_regs_info): New.
14083 (x86_linux_regs_info): New.
14084 (x86_arch_setup): Reimplement.
14085 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14086 (x86_emit_ops): Ditto.
14087 (the_low_target): Adjust. Install x86_linux_regs_info,
14088 x86_cannot_fetch_register, and x86_cannot_store_register.
14089 (initialize_low_arch): New.
14090 * linux-ia64-low.c (tdesc_ia64): Declare.
14091 (ia64_fetch_register): Adjust.
14092 (ia64_usrregs_info, regs_info): New globals.
14093 (ia64_regs_info): New function.
14094 (the_low_target): Adjust.
14095 (initialize_low_arch): New function.
14096 * linux-sparc-low.c (tdesc_sparc64): Declare.
14097 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14098 Adjust.
14099 (sparc_arch_setup): New function.
14100 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14101 (the_low_target): Adjust.
14102 (initialize_low_arch): New function.
14103 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14104 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14105 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14106 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14107 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14108 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14109 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14110 (tdesc_powerpc_isa205_vsx64l): Declare.
14111 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14112 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14113 (ppc_set_pc, ppc_get_hwcap): Adjust.
14114 (ppc_usrregs_info): Forward declare.
14115 (!__powerpc64__) ppc_regmap_adjusted: New global.
14116 (ppc_arch_setup): Adjust to the current process'es target
14117 description.
14118 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14119 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14120 (ppc_store_evrregset): Adjust.
14121 (target_regsets): Rename to ...
14122 (ppc_regsets): ... this, and make static.
14123 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14124 (ppc_regs_info): New function.
14125 (the_low_target): Adjust.
14126 (initialize_low_arch): New function.
14127 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14128 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14129 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14130 (tdesc_s390x_linux64v2): Declare.
14131 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14132 (s390_fill_gregset, s390_store_last_break): Adjust.
14133 (target_regsets): Rename to ...
14134 (s390_regsets): ... this, and make static.
14135 (s390_get_pc, s390_set_pc): Adjust.
14136 (s390_get_hwcap): New target_desc parameter, and use it.
14137 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14138 (s390_arch_setup): Adjust to set the current process'es target
14139 description. Don't adjust the regmap.
14140 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14141 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14142 (regs_info_3264): New globals.
14143 (s390_regs_info): New function.
14144 (the_low_target): Adjust.
14145 (initialize_low_arch): New function.
14146 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14147 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14148 [__mips64] (init_registers_mips_linux)
14149 (init_registers_mips_dsp_linux): Delete defines.
14150 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14151 (have_dsp): New global.
14152 (mips_read_description): New, based on mips_arch_setup.
14153 (mips_arch_setup): Reimplement.
14154 (get_usrregs_info): New function.
14155 (mips_cannot_fetch_register, mips_cannot_store_register)
14156 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14157 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14158 (target_regsets): Rename to ...
14159 (mips_regsets): ... this, and make static.
14160 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14161 (dsp_regs_info, regs_info): New globals.
14162 (mips_regs_info): New function.
14163 (the_low_target): Adjust.
14164 (initialize_low_arch): New function.
14165 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14166 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14167 Declare.
14168 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14169 (arm_read_description): New, with bits factored from
14170 arm_arch_setup.
14171 (arm_arch_setup): Reimplement.
14172 (target_regsets): Rename to ...
14173 (arm_regsets): ... this, and make static.
14174 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14175 (arm_regs_info): New function.
14176 (the_low_target): Adjust.
14177 (initialize_low_arch): New function.
14178 * linux-m68k-low.c (tdesc_m68k): Declare.
14179 (target_regsets): Rename to ...
14180 (m68k_regsets): ... this, and make static.
14181 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14182 (m68k_regs_info): New function.
14183 (m68k_arch_setup): New function.
14184 (the_low_target): Adjust.
14185 (initialize_low_arch): New function.
14186 * linux-sh-low.c (tdesc_sharch): Declare.
14187 (target_regsets): Rename to ...
14188 (sh_regsets): ... this, and make static.
14189 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14190 (sh_regs_info, sh_arch_setup): New functions.
14191 (the_low_target): Adjust.
14192 (initialize_low_arch): New function.
14193 * linux-bfin-low.c (tdesc_bfin): Declare.
14194 (bfin_arch_setup): New function.
14195 (bfin_usrregs_info, regs_info): New globals.
14196 (bfin_regs_info): New function.
14197 (the_low_target): Adjust.
14198 (initialize_low_arch): New function.
14199 * linux-cris-low.c (tdesc_cris): Declare.
14200 (cris_arch_setup): New function.
14201 (cris_usrregs_info, regs_info): New globals.
14202 (cris_regs_info): New function.
14203 (the_low_target): Adjust.
14204 (initialize_low_arch): New function.
14205 * linux-cris-low.c (tdesc_crisv32): Declare.
14206 (cris_arch_setup): New function.
14207 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14208 (cris_regs_info): New function.
14209 (the_low_target): Adjust.
14210 (initialize_low_arch): New function.
14211 * linux-m32r-low.c (tdesc_m32r): Declare.
14212 (m32r_arch_setup): New function.
14213 (m32r_usrregs_info, regs_info): New globals.
14214 (m32r_regs_info): Adjust.
14215 (initialize_low_arch): New function.
14216 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14217 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14218 (tic6x_usrregs_info): Forward declare.
14219 (tic6x_read_description): New function, based on ...
14220 (tic6x_arch_setup): ... this. Reimplement.
14221 (target_regsets): Rename to ...
14222 (tic6x_regsets): ... this, and make static.
14223 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14224 (tic6x_regs_info): New function.
14225 (the_low_target): Adjust.
14226 (initialize_low_arch): New function.
14227 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14228 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14229 (target_regsets): Rename to ...
14230 (xtensa_regsets): ... this, and make static.
14231 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14232 globals.
14233 (xtensa_arch_setup, xtensa_regs_info): New functions.
14234 (the_low_target): Adjust.
14235 (initialize_low_arch): New function.
14236 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14237 (nios2_arch_setup): Set the current process'es tdesc.
14238 (target_regsets): Rename to ...
14239 (nios2_regsets): ... this.
14240 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14241 (nios2_regs_info): New function.
14242 (the_low_target): Adjust.
14243 (initialize_low_arch): New function.
a261b8f5
PA
14244 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14245 (aarch64_arch_setup): Set the current process'es tdesc.
14246 (target_regsets): Rename to ...
14247 (aarch64_regsets): ... this.
14248 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14249 (aarch64_regs_info): New function.
14250 (the_low_target): Adjust.
14251 (initialize_low_arch): New function.
3aee8918
PA
14252 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14253 globals.
14254 (target_regsets): Rename to ...
14255 (tile_regsets): ... this.
14256 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14257 (tile_regs_info): New function.
14258 (tile_arch_setup): Set the current process'es tdesc.
14259 (the_low_target): Adjust.
14260 (initialize_low_arch): New function.
14261 * spu-low.c (tdesc_spu): Declare.
14262 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14263 * win32-arm-low.c (tdesc_arm): Declare.
14264 (arm_arch_setup): New function.
14265 (the_low_target): Install arm_arch_setup instead of
14266 init_registers_arm.
14267 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14268 (init_windows_x86): Rename to ...
14269 (i386_arch_setup): ... this. Set `win32_tdesc'.
14270 (the_low_target): Adjust.
14271 * win32-low.c (win32_tdesc): New global.
14272 (child_add_thread): Don't create the thread cache here.
14273 (do_initial_child_stuff): Set the new process'es tdesc.
14274 * win32-low.h (struct target_desc): Forward declare.
14275 (win32_tdesc): Declare.
14276 * lynx-i386-low.c (tdesc_i386): Declare global.
14277 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14278 * lynx-low.c (lynx_tdesc): New global.
14279 (lynx_add_process): Set the new process'es tdesc.
14280 * lynx-low.h (struct target_desc): Forward declare.
14281 (lynx_tdesc): Declare global.
14282 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14283 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14284 * nto-low.c (nto_tdesc): New global.
14285 (do_attach): Set the new process'es tdesc.
14286 * nto-low.h (struct target_desc): Forward declare.
14287 (nto_tdesc): Declare.
14288 * nto-x86-low.c (tdesc_i386): Declare.
14289 (nto_x86_arch_setup): Set `nto_tdesc'.
14290
b1fbec62
GB
142912013-06-04 Gary Benson <gbenson@redhat.com>
14292
14293 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14294 to qSupported response when appropriate.
14295 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14296 with nonzero-length annex.
14297 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14298 arguments supplied in annex.
14299
d1ec4ce7
DE
143002013-05-31 Doug Evans <dje@google.com>
14301
ac44adcb 14302 PR server/15594
d1ec4ce7
DE
14303 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14304 64 bits in 64-cross-32 environment.
14305
9b25f2d3
PA
143062013-05-28 Pedro Alves <palves@redhat.com>
14307
14308 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14309 (aarch64-without-fpu.c): Delete rule.
14310 * configure.srv (aarch64*-*-linux*): Remove references to
14311 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14312 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14313 declaration.
14314
6740dc9c
PA
143152013-05-24 Pedro Alves <palves@redhat.com>
14316
14317 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14318 instead of strchr/decode_address. Error if the range isn't split
14319 with a ','. Don't assume there's be a ':' in the action.
14320
c2d6af84
PA
143212013-05-23 Yao Qi <yao@codesourcery.com>
14322 Pedro Alves <palves@redhat.com>
14323
14324 * linux-low.c (lwp_in_step_range): New function.
14325 (linux_wait_1): If the thread was range stepping and stopped
14326 outside the stepping range, report the stop to GDB. Otherwise,
14327 continue stepping. Add range stepping debug output.
14328 (linux_set_resume_request): Copy the step range from the resume
14329 request to the lwp.
14330 (linux_supports_range_stepping): New.
14331 (linux_target_ops) <supports_range_stepping>: Set to
14332 linux_supports_range_stepping.
14333 * linux-low.h (struct linux_target_ops)
14334 <supports_range_stepping>: New field.
14335 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14336 * linux-x86-low.c (x86_supports_range_stepping): New.
14337 (the_low_target) <supports_range_stepping>: Set to
14338 x86_supports_range_stepping.
14339 * server.c (handle_v_cont): Handle 'r' action.
14340 (handle_v_requests): Append ";r" if the target supports range
14341 stepping.
14342 * target.h (struct thread_resume) <step_range_start,
14343 step_range_end>: New fields.
14344 (struct target_ops) <supports_range_stepping>:
14345 New field.
14346 (target_supports_range_stepping): New macro.
14347
58794e1a
JB
143482013-05-17 Joel Brobecker <brobecker@adacore.com>
14349
14350 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14351 confusion in comment.
14352
d631c5a7
JB
143532013-05-17 Joel Brobecker <brobecker@adacore.com>
14354
14355 * lynx-low.c (struct process_info_private): New type.
14356 (lynx_add_process): New function.
14357 (lynx_create_inferior, lynx_attach): Replace calls to
14358 add_process by calls to lynx_add_process.
14359 (lynx_resume): If PTID is null, then try using
14360 current_process()->private->last_wait_event_ptid.
14361 Add comments.
14362 (lynx_clear_inferiors): Delete. The contents of that function
14363 has been inlined in lynx_mourn;
14364 (lynx_wait_1): Save the ptid in the process's private data.
14365 (lynx_mourn): Free the process' private data. Replace call
14366 to lynx_clear_inferiors by call to clear_inferiors.
14367
96f7a20f
YQ
143682013-05-17 Yao Qi <yao@codesourcery.com>
14369
14370 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14371 the right place.
14372
db0dfaa0
LM
143732013-05-16 Luis Machado <lgustavo@codesourcery.com>
14374
14375 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14376 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14377 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14378 PT_TEXT_END_ADDR guards. Update comments.
14379 (linux_target_op) <read_offsets>: Conditionally define to
14380 linux_read_offsets if the target is UCLIBC and if it defines
14381 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14382
68f5f838
SL
143832013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14384 Andrew Jenner <andrew@codesourcery.com>
14385
14386 * Makefile.in (SFILES): Add linux-nios2-low.c.
14387 (clean): Add action to delete nios2-linux.c.
14388 (nios2-linux.c): New rule.
14389 * configure.srv: Add nios2*-*-linux*.
14390 * linux-nios2-low.c: New.
14391
1ebff1fd
HAQ
143922013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14393
14394 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14395
f6150862
HZ
143962013-04-25 Hui Zhu <hui@codesourcery.com>
14397
14398 PR gdb/15186
f6150862
HZ
14399 * ax.c (ax_printf): Add fflush.
14400
614c279d
TT
144012013-04-22 Tom Tromey <tromey@redhat.com>
14402
14403 * Makefile.in (SFILES): Add filestuff.c.
14404 (OBS): Add filestuff.o.
14405 (filestuff.o): New target.
14406 * config.in, configure: Rebuild.
14407 * configure.ac: Check for fdwalk, pipe2.
14408
7d4e5717
PA
144092013-04-17 Pedro Alves <palves@redhat.com>
14410
14411 * configure.ac (USE_THREAD_DB): Delete variable.
14412 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14413 Don't AC_SUBST USE_THREAD_DB.
14414 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14415 * config.in, configure: Regenerate.
14416
d5c93e41
PA
144172013-04-16 Pedro Alves <palves@redhat.com>
14418
14419 * linux-low.h (struct lwp_info) <thread_known>: Move under
14420 the USE_THREAD_DB #ifdef.
14421
04f5fe89
PA
144222013-04-16 Pedro Alves <palves@redhat.com>
14423
14424 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14425 (linux-low.o): Delete rule.
14426 * linux-low.h: Always include "gdb_thread_db.h" instead of
14427 conditionally including thread_db.h.
14428 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14429 HAVE_THREAD_DB_H.
14430
480b27bf
JK
144312013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14432
14433 * Makefile.in (install-only): Fix make install regression.
14434
43662968
JK
144352013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14436
14437 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14438 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14439 installation.
14440 * gdbserver.1: Remove.
14441
3e74e146
PA
144422013-03-22 Pedro Alves <palves@redhat.com>
14443
14444 * linux-low.c (handle_extended_wait): Don't call
14445 linux_enable_event_reporting.
14446
a8347a2a
TT
144472013-03-15 Tony Theodore <tonyt@logyst.com>
14448
14449 PR build/9098:
14450 * Makefile.in (SHELL): Use @SHELL@.
14451
eeb56fa7
SDJ
144522013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14453
14454 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14455 compiler warning.
14456
4fa7e2ff
JB
144572013-03-13 Joel Brobecker <brobecker@adacore.com>
14458
14459 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14460 Remove extraneous NULL element.
14461
8ddb1965
YQ
144622013-03-13 Yao Qi <yao@codesourcery.com>
14463
14464 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14465 'V' block in trace frame.
14466
9accd112
MM
144672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14468
14469 * target.h (struct target_ops): Add btrace ops.
14470 (target_supports_btrace): New macro.
14471 (target_enable_btrace): New macro.
14472 (target_disable_btrace): New macro.
14473 (target_read_btrace): New macro.
14474 * gdbthread.h (struct thread_info): Add btrace field.
14475 * server.c: Include btrace-common.h.
14476 (handle_btrace_general_set): New function.
14477 (handle_btrace_enable): New function.
14478 (handle_btrace_disable): New function.
14479 (handle_general_set): Call handle_btrace_general_set.
14480 (handle_qxfer_btrace): New function.
14481 (struct qxfer qxfer_packets[]): Add btrace entry.
14482 * inferiors.c (remove_thread): Disable btrace.
14483 * linux-low: Include linux-btrace.h.
14484 (linux_low_enable_btrace): New function.
14485 (linux_low_read_btrace): New function.
14486 (linux_target_ops): Add btrace ops.
14487 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14488 Add srv_linux_btrace=yes.
14489 (x86_64-*-linux*): Add linux-btrace.o.
14490 Add srv_linux_btrace=yes.
14491 * configure.ac: Define HAVE_LINUX_BTRACE.
14492 * config.in: Regenerated.
14493 * configure: Regenerated.
14494
5cc22e4c
MM
144952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14496
14497 * server.c (handle_qxfer): Preserve error message if -3 is
14498 returned.
14499 (qxfer): Document the -3 return value.
14500
7c97f91e
MM
145012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14502
14503 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14504 (linux_btrace_h): New variable.
14505 (linux-btrace.o): New rule.
14506
be9a119c 145072013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14508 Hafiz Abid Qadeer <abidh@codesourcery.com>
14509
14510 * tracepoint.c (trace_buffer_size): New global.
14511 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14512 (init_trace_buffer): Change to one-argument function. Allocate
14513 trace buffer memory.
14514 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14515 handle QTBuffer:size packet.
14516 (cmd_bigqtbuffer_size): New function.
14517 (initialize_tracepoint): Call init_trace_buffer with
14518 DEFAULT_TRACE_BUFFER_SIZE.
14519 * server.c (handle_query): Add QTBuffer:size in the
14520 supported packets.
14521
e64f7499
YQ
145222013-03-07 Yao Qi <yao@codesourcery.com>
14523
14524 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14525 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14526 of -1.
14527 (cmd_qtsp): Adjust condition. Do post increment.
14528 Set cur_action and cur_step_action back to 0.
14529
f0ae6fc3
PA
145302013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14531
14532 PR server/15236
14533 * linux-low.c (linux_write_memory): Return early success if LEN is
14534 zero.
14535
b5b0b0af
CV
145362013-03-05 Corinna Vinschen <vinschen@redhat.de>
14537
334ad4a8 14538 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14539
589bc927
TT
145402013-02-28 Tom Tromey <tromey@redhat.com>
14541
14542 * configure.ac: Invoke AC_SYS_LARGEFILE.
14543 * configure, config.in: Rebuild.
14544
dfe07582
CV
145452013-02-28 Corinna Vinschen <vinschen@redhat.com>
14546
14547 * win32-low.c: Throughout, fix format strings and casts of
14548 printf-like functions to avoid type related warnings on all
14549 platforms.
14550 (get_child_debug_event): Print dwDebugEventCode as hex since
14551 that's how it's usually documented.
14552
736cd585
YQ
145532013-02-28 Yao Qi <yao@codesourcery.com>
14554
14555 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14556 pulongest.
14557
e1f58301
JW
145582013-02-27 Jiong Wang <jiwang@tilera.com>
14559
14560 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14561 (reg-tilegx32.c): New rule.
14562 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14563 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14564 different register info initializer according to elf class.
14565 (init_registers_tilgx32): New function. The tilegx32 register info
14566 initializer.
14567 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14568 (tile_store_gregset): Likewise.
14569
d171ca78
YQ
145702013-02-27 Yao Qi <yao@codesourcery.com>
14571
14572 * server.c (process_point_options): Print debug message when
14573 debug_threads is true.
14574
282bbdf3
YQ
145752013-02-26 Yao Qi <yao@codesourcery.com>
14576
14577 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14578
aca22551
PA
145792013-02-19 Pedro Alves <palves@redhat.com>
14580 Kai Tietz <ktietz@redhat.com>
14581
14582 PR gdb/15161
14583
14584 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14585 instead of strtoul to extract address from packet.
14586 (process_serial_event) <'z'>: Likewise.
14587
4f3cee1c
YQ
145882013-02-18 Yao Qi <yao@codesourcery.com>
14589
14590 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14591
8e1d55a3
PA
145922013-02-14 Pedro Alves <palves@redhat.com>
14593
14594 Plug memory leak.
14595
14596 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14597 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14598
458820da
PA
145992013-02-14 Pedro Alves <palves@redhat.com>
14600
14601 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14602
baea0dae
PA
146032013-02-14 Pedro Alves <palves@redhat.com>
14604
14605 * tracepoint.c (save_string): Delete.
14606 (add_tracepoint_action): Use savestring instead of save_string.
14607
0b1afbb3
PA
146082013-02-12 Pedro Alves <palves@redhat.com>
14609
14610 * linux-xtensa-low.c: Ditto.
14611 * xtensa-xtregs.c: Ditto.
14612
8a4ac37e
PA
146132013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14614
14615 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14616 thread_db.
14617
148de6bb
MS
146182013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14619
14620 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14621 aarch64_num_wp_regs and aarch64_num_bp_regs to
14622 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14623
55fac6e0
MS
146242013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14625
14626 * linux-aarch64-low.c (ps_get_thread_area): Replace
14627 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14628
176eb98c
MS
146292013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14630 Marcus Shawcroft <marcus.shawcroft@arm.com>
14631 Nigel Stephens <nigel.stephens@arm.com>
14632 Yufeng Zhang <yufeng.zhang@arm.com>
14633
14634 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14635 (aarch64.c, aarch64-without-fpu.c): New targets.
14636 * configure.srv (aarch64*-*-linux*): New.
14637 * linux-aarch64-low.c: New file.
14638
56f7af9c
MS
146392013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14640
43aaf8b6 14641 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14642 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14643 (dequeue_one_deferred_signal, linux_resume_one_thread)
14644 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14645 (linux_tracefork_grandchild, linux_test_for_tracefork)
14646 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14647 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14648 where the argument is 0.
14649
60f662b0
YQ
146502013-01-25 Yao Qi <yao@codesourcery.com>
14651
14652 * event-loop.c: Include "queue.h".
14653 (gdb_event_p): New typedef.
14654 (struct gdb_event) <next_event>: Remove.
14655 (event_queue): Change to QUEUE(gdb_event_p).
14656 (async_queue_event): Remove.
14657 (gdb_event_xfree): New.
14658 (initialize_event_loop): New.
14659 (process_event): Use API from QUEUE.
14660 (wait_for_event): Likewise.
14661 * server.c (main): Call initialize_event_loop.
14662 * server.h (initialize_event_loop): Declare.
14663
5ae4861a
YQ
146642013-01-18 Yao Qi <yao@codesourcery.com>
14665
14666 * ax.h (struct eval_agent_expr_context): New.
14667 (gdb_eval_agent_expr): Update declaration.
14668 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14669 TFRAME. Add new argument CTX.
14670 * server.h (struct eval_agent_expr_context): Declare.
14671 (agent_mem_read, agent_tsv_read): Update declaration.
14672 (agent_mem_read_string): Likewise.
14673 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14674 (add_traceframe_block): Add new argument TPOINT.
14675 Increase TPOINT->traceframe_usage.
14676 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14677 eval_tracepoint_agent_expr.
14678 (condition_true_at_tracepoint): Likewise.
14679 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14680 (agent_mem_read_string, agent_tsv_read): Likewise.
14681
85e00e85
YQ
146822013-01-16 Yao Qi <yao@codesourcery.com>
14683
14684 * linux-low.c (linux_resume_one_lwp): Don't check
14685 'lwp->bp_reinsert != 0'.
14686
4039cf45
JB
146872013-01-07 Joel Brobecker <brobecker@adacore.com>
14688 Pedro Alves <palves@redhat.com>
14689
14690 * lynx-low.c (ptrace_request_to_str): Define a temporary
14691 macro and use it to simplify this function's implementation.
14692
9044dee2
JB
146932013-01-07 Joel Brobecker <brobecker@adacore.com>
14694
14695 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14696 sets errno.
14697
e6352c8f
JB
146982013-01-07 Joel Brobecker <brobecker@adacore.com>
14699
14700 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14701
50681a27
JB
147022013-01-07 Joel Brobecker <brobecker@adacore.com>
14703
14704 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14705
3f6e77ef
JB
147062013-01-07 Joel Brobecker <brobecker@adacore.com>
14707
14708 * lynx-low.c (lynx_resume): Use the resume_info parameter
14709 to determine the ptid for the lynx_ptrace call, unless
14710 it is equal to minus_one_ptid, in which case we use the
14711 ptid of the current_inferior.
14712 (lynx_wait_1): After having received a thread create/exit
14713 event, resume the inferior's execution using the signaling
14714 thread's ptid, rather than the old ptid.
14715
7fda33ae
JB
147162013-01-07 Joel Brobecker <brobecker@adacore.com>
14717
14718 * lynx-low.c (lynx_resume): Delete variable ret.
14719
b9786c74
JB
147202013-01-01 Joel Brobecker <brobecker@adacore.com>
14721
14722 * gdbreplay.c (gdbreplay_version): Update copyright year.
14723 * server.c (gdbserver_version): Likewise.
14724
8b93d60f
JB
147252012-12-17 Joel Brobecker <brobecker@adacore.com>
14726
14727 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14728 new thread.
14729
037335a7
JB
147302012-12-17 Joel Brobecker <brobecker@adacore.com>
14731
14732 * lynx-low.c (ptrace_request_to_str): Add handling for
14733 PTRACE_GETTRACESIG.
14734
52d4cbd8
JB
147352012-12-17 Joel Brobecker <brobecker@adacore.com>
14736
14737 * lynx-low.c (lynx_attach): Delete variable new_process.
14738
ab8f6ca9
JB
147392012-12-17 Joel Brobecker <brobecker@adacore.com>
14740
14741 * lynx-low.c (lynx_create_inferior): Delete variable
14742 new_process.
14743
78cbc024
JB
147442012-12-17 Joel Brobecker <brobecker@adacore.com>
14745
14746 * lynx-low.c (ptrace_request_to_str): Do not handle
14747 PTRACE_GETTHREADLIST if this macro does not exist.
14748
14a00470
YQ
147492012-12-15 Yao Qi <yao@codesourcery.com>
14750
14751 * Makefile.in (OBS): Add notif.o.
14752 * notif.c, notif.h: New.
14753 * server.c: Include "notif.h".
14754 (struct vstop_notif) <next>: Remove.
14755 <base>: New field.
14756 (queue_stop_reply): Update.
14757 (push_event, send_next_stop_reply): Remove.
14758 (discard_queued_stop_replies): Update.
14759 (notif_stop): New variable.
14760 (handle_v_stopped): Remove.
14761 (handle_v_requests): Don't call handle_v_stopped. Call
14762 handle_ack_notif instead.
14763 (queue_stop_reply_callback): Call notif_event_enque instead
14764 of queue_stop_reply.
14765 (handle_status): Don't call send_next_stop_reply, call
14766 notif_write_event instead.
14767 (kill_inferior_callback): Likewise.
14768 (detach_or_kill_inferior_callback): Likewise.
14769 (main): Call initialize_notif.
14770 (process_serial_event): Call QUEUE_is_empty.
14771 (handle_target_event): Call notif_push instead of push event.
14772 * server.h (push_event): Remove declaration.
14773
61c125b9
TT
147742012-12-10 Tom Tromey <tromey@redhat.com>
14775
14776 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14777 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14778 macros.
14779 (.c.o): Rewrite.
14780 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14781 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14782 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14783 (amd64-linux-ipa.o, ax.o): Rewrite.
14784 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14785 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14786 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14787 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14788 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14789 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14790 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14791 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14792 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14793 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14794 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14795 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14796 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14797 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14798 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14799 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14800 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14801 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14802 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14803 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14804 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14805 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14806 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14807 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14808 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14809 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14810 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14811 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14812 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14813 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14814 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14815 (reg-tilegx.o): Remove.
14816 (all_object_files): New macro.
14817 Include .deps files.
14818 * aclocal.m4, configure: Rebuild.
14819 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14820 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14821 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14822
e90e9ad9
TT
148232012-12-05 Tom Tromey <tromey@redhat.com>
14824
14825 PR gdb/14917:
14826 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14827
02d403bf 148282012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14829
14830 * configure.ac: Check for linux/perf_event.h.
14831 * config.in: Regenerated.
14832 * configure: Regenerated.
14833
0270a750
PA
148342012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14835
14836 * hostio.c (handle_readlink): Decrease buffer size
14837 parameter passed to readlink by one byte.
14838
8c29b58e
YQ
148392012-11-26 Yao Qi <yao@codesourcery.com>
14840
14841 * configure.ac (build_warnings): Append '-Wempty-body'.
14842 * configure: Regenerated.
14843 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14844 body.
14845
8bdce1ff
PM
148462012-11-15 Pierre Muller <muller@sourceware.org>
14847
14848 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14849 * config.in: Regenerate.
14850 * configure: Regenerate.
14851 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14852 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14853 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14854 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14855 header.
14856 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14857 instead of <sys/wait.h> header.
14858 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14859
02d403bf 148602012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14861
14862 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14863 (various make rules): Remove -DGDBSERVER
14864
fbd5db48
YQ
148652012-11-09 Yao Qi <yao@codesourcery.com>
14866
14867 * spu-low.c (current_ptid): Move it to ..
14868 * gdbthread.h: ... here. New.
14869 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14870 * server.c (myresume, process_serial_event): Likewise.
14871 * thread-db.c (thread_db_find_new_threads): Likewise.
14872 * tracepoint.c (run_inferior_command): Likewise.
14873
b3dc46ff
AB
148742012-10-01 Andrew Burgess <aburgess@broadcom.com>
14875
14876 * server.c (handle_search_memory_1): Include access length in
14877 warning message.
14878
07c04788
HPN
148792012-09-05 Michael Brandt <michael.brandt@axis.com>
14880
14881 * linux-crisv32-low.c: Fix compile errors.
14882
918d227b
YQ
148832012-09-04 Yao Qi <yao@codesourcery.com>
14884
14885 * tracepoint.c (cmd_qtsv): Adjust debug message.
14886 Don't check CUR_TPOINT.
14887
18c1b81a
YQ
148882012-08-28 Yao Qi <yao@codesourcery.com>
14889
14890 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14891 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14892 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14893 Remove declarations of xmalloc, xreallloc, xstrdup and
14894 freeargv.
14895 * Makefile.in (libiberty_h): New.
14896 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14897 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14898
dc82f37b
YQ
148992012-08-23 Yao Qi <yao@codesourcery.com>
14900
14901 * server.h: Remove declaration of 'xsnprintf'.
14902
406b1477
KS
149032012-08-22 Keith Seitz <keiths@redhat.com>
14904
14905 * server.h: Include build-gnulib-gbserver/config.h.
14906 * gdbreplay.c: Likewise.
14907
e6712ff1
DE
149082012-08-08 Doug Evans <dje@google.com>
14909
14910 * Makefile.in (SFILES): Add gdb_vecs.c.
14911 (OBS): Add gdb_vecs.o.
14912 (gdb_vecs_h, host_defs_h): New variables.
14913 (thread-db.o): Add $(gdb_vecs_h) dependency.
14914 (gdb_vecs.o): New rule.
14915 * thread-db.c: #include "gdb_vecs.h".
14916 (thread_db_load_search): Use a vector to iterate over path elements.
14917 Handle text appearing after "$pdir".
14918
14919 * configure.ac: Add check for strstr.
14920 * config.in: Regenerate.
14921 * configure: Regenerate.
14922
7c3270ae
UW
149232012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14924
14925 * hostio.c (handle_pread): If pread fails, fall back to attempting
14926 lseek/read.
14927 (handle_pwrite): Likewise for pwrite.
14928
b62e2b27
UW
149292012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14930
14931 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14932 between unsupported TYPE and unimplementable ADDR/LEN combination.
14933 (arm_insert_point): Act on new return value.
14934
78a99e91
PA
149352012-07-31 Pedro Alves <palves@redhat.com>
14936
14937 * server.c (process_point_options): Only skip tokens if we find
14938 one that is unrecognized. Don't treat 'X' specially while
14939 skipping unrecognized tokens.
14940
fcf303ab
UW
149412012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14942
14943 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14944 to 4-byte-align HW breakpoint addresses for Thumb.
14945
7255706c
YQ
149462012-07-27 Yao Qi <yao@codesourcery.com>
14947
14948 PR remote/14161.
14949
14950 * server.h: Declare gdb_agent_about_to_close.
14951 * target.c (kill_inferior): Include "agent.h".
14952 New. Send command 'kill'.
14953 * target.h (kill_inferior): Removed macro.
14954 * tracepoint.c (gdb_agent_about_to_close): New.
14955 (gdb_agent_helper_thread): Handle command 'close'.
14956 Wait endlessly until the inferior stops.
14957 Install gdb_agent_remove_socket to atexit hook.
14958 (agent_socket_name): New static variable.
14959 (gdb_agent_socket_init): Replace local variable 'name' with
14960 'agent_socket_name'.
14961 (gdb_agent_remove_socket): New.
14962
5a3f286f
YQ
149632012-07-27 Yao Qi <yao@codesourcery.com>
14964
14965 * server.c (process_point_options): Stop at 'X' when parsing.
14966
961bd387
ME
149672012-07-19 Michael Eager <eager@eagercon.com>
14968
a261b8f5 14969 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14970 to hw_execute.
14971 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14972 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14973 hardware breakpoint.
14974
aa7c7447
JK
149752012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14976
14977 * gdbserver/linux-low.c (initialize_low): Call
14978 linux_ptrace_init_warnings.
14979
7f216e7c
DE
149802012-07-02 Doug Evans <dje@google.com>
14981
14982 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14983 pointer to int.
14984
d3ce09f5
SS
149852012-07-02 Stan Shebs <stan@codesourcery.com>
14986
14987 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14988 (ax.o): Add it to build rule.
14989 (ax-ipa.o): Ditto.
14990 (OBS): Add format.o.
14991 (IPA_OBS): Add format.o.
14992 * server.c (handle_query): Claim support for breakpoint commands.
14993 (process_point_options): Add command case.
14994 (process_serial_event): Leave running if there are printfs in
14995 effect.
14996 * mem-break.h (any_persistent_commands): Declare.
14997 (add_breakpoint_commands): Declare.
14998 (gdb_no_commands_at_breakpoint): Declare.
14999 (run_breakpoint_commands): Declare.
15000 * mem-break.c (struct point_command_list): New struct.
15001 (struct breakpoint): New field command_list.
15002 (any_persistent_commands): New function.
15003 (add_commands_to_breakpoint): New function.
15004 (add_breakpoint_commands): New function.
15005 (gdb_no_commands_at_breakpoint): New function.
15006 (run_breakpoint_commands): New function.
15007 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15008 locally.
15009 * ax.c: Include format.h.
15010 (ax_printf): New function.
15011 (gdb_eval_agent_expr): Add printf opcode.
15012
2f8f6aed
YQ
150132012-06-13 Yao Qi <yao@codesourcery.com>
15014
15015 * server.c (start_inferior): Remove duplicated writes to fields
15016 'last_resume_kind' and 'last_status' of 'current_inferior'.
15017
0c9070b3
YQ
150182012-06-12 Yao Qi <yao@codesourcery.com>
15019 Pedro Alves <palves@redhat.com>
15020
15021 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15022 comment.
15023 * server.c (handle_v_cont): Extend comment.
15024
c52daf70
YQ
150252012-06-11 Yao Qi <yao@codesourcery.com>
15026
15027 * linux-low.c (linux_attach): Add 'static'.
15028
d38bbb0a
YQ
150292012-06-06 Yao Qi <yao@codesourcery.com>
15030
15031 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15032
89dc0afd
JK
150332012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15034
15035 Fix gcc -flto compilation warning.
15036 * server.c (main): Make variable multi_mode and attach volatile.
15037
75f62ce7
TJB
150382012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15039
15040 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15041 if the platform doesn't know about it.
15042
65f479b6
PA
150432012-05-30 Jeff Kenton <jkenton@tilera.com>
15044
15045 * Makefile.in (SFILES): Add linux-tile-low.c.
15046 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15047 * configure.srv: Handle tilegx-*-linux*.
15048 * linux-tile-low.c: New file.
15049
0c5bf5a9
JK
150502012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15051
15052 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15053
a493e3e2
PA
150542012-05-24 Pedro Alves <palves@redhat.com>
15055
15056 PR gdb/7205
15057
43aaf8b6 15058 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15059
2ea28649
PA
150602012-05-24 Pedro Alves <palves@redhat.com>
15061
15062 PR gdb/7205
15063
15064 Replace target_signal with gdb_signal throughout.
15065
8d409d16
MR
150662012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15067
15068 * linux-low.c (linux_store_registers): Avoid the copying sequence
15069 when no data has been retrieved by ptrace.
15070
23512c01
MGD
150712012-05-22 Will Deacon <will.deacon@arm.com>
15072
15073 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15074 Include asm/ptrace.h.
15075 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15076 already defined.
15077
4934b29e
MR
150782012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15079
15080 * linux-low.c (linux_store_registers): Don't re-retrieve data
15081 with ptrace that has already been obtained from /proc. Always
15082 copy any data retrieved with ptrace to the buffer supplied.
15083
bde24c0a
PA
150842012-05-11 Yao Qi <yao@codesourcery.com>
15085 Pedro Alves <palves@redhat.com>
15086
15087 * linux-low.c (enum stopping_threads_kind): New.
15088 (stopping_threads): Change type to `enum stopping_threads_kind'.
15089 (handle_extended_wait): If stopping and suspending threads, leave
15090 the new_lwp suspended too.
15091 (linux_wait_for_event): Adjust.
15092 (stop_all_lwps): Set `stopping_threads' to
15093 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15094 whether we're suspending threads or just stopping them. Assert no
15095 recursion happens.
15096
623b6bdf
YQ
150972012-04-29 Yao Qi <yao@codesourcery.com>
15098
15099 * server.h: Move some code to ...
15100 * gdbthread.h: ... here. New.
15101 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15102 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15103 (nto-low.o, win32-low.o): Likewise.
15104 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15105 * regcache.c, remote-utils.c, server.c: Likewise.
15106 * target.c, tracepoint.c, win32-low.c: Likewise.
15107
f15f9948
TJB
151082012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15109
15110 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15111 (PTRACE_ARG4_TYPE): Likewise.
15112 (PTRACE_XFER_TYPE): Likewise.
15113 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15114 ptrace to PTRACE_ARG3_TYPE.
15115 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15116 (PTRACE_ARG4_TYPE): Likewise.
15117 (PTRACE_XFER_TYPE): Likewise.
15118 (linux_detach_one_lwp): Cast fourth argument of
15119 ptrace to long then PTRACE_ARG4_TYPE.
15120 (regsets_fetch_inferior_registers): Cast third argument of
15121 ptrace to long then PTRACE_ARG3_TYPE.
15122 (regsets_store_inferior_registers): Likewise.
15123
38ea300a
PA
151242012-04-20 Pedro Alves <palves@redhat.com>
15125
15126 * configure: Regenerate.
15127
c971b7fa
PA
151282012-04-19 Pedro Alves <palves@redhat.com>
15129
43aaf8b6 15130 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15131 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15132 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15133 (all, install-only, uninstall, clean-info, all-lib, clean): No
15134 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15135 (maintainer-clean realclean distclean): Use subdir_do.
15136 (subdir_do): New.
15137 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15138 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15139 * acinclude.m4: Include acx_configure_dir.m4.
15140 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15141 calls. Call AC_PROG_RANLIB. Configure gnulib using
15142 ACX_CONFIGURE_DIR.
15143 (GNULIB): New.
15144 (GNULIB_STDINT_H): Adjust.
15145 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15146 * gdbreplay.c: Include build-gnulib/config.h.
15147 * server.h: Likewise.
15148 * aclocal.m4: Regenerate.
15149 * config.in: Regenerate.
15150 * configure: Regenerate.
c971b7fa 15151
809277f8
PA
151522012-04-19 Pedro Alves <palves@redhat.com>
15153
15154 * Makefile.in (LIBGNU, INCGNU): Adjust.
15155 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15156 (all, install-only, uninstall, clean-info, all-lib, clean)
15157 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15158 * configure.ac: Adjust AC_OUTPUT output.
15159 * aclocal.m4: Regenerate.
15160 * configure: Regenerate.
15161
fd9bb8b8
PA
151622012-04-19 Pedro Alves <palves@redhat.com>
15163
15164 * Makefile.in (generated_files): New.
15165 (server_h): Remove the explicit dependency on config.h, and depend
15166 on $generated_files.
15167
1c298c66
PA
151682012-04-19 Pedro Alves <palves@redhat.com>
15169
15170 * Makefile.in (INCGNU): Add -Ignulib.
15171
57c4b50b
PA
151722012-04-19 Pedro Alves <palves@redhat.com>
15173
15174 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15175 (INCGNU): ... this, and spell out -I here.
15176 (GNULIB_LIB): Rename to ...
15177 (LIBGNU): ... this.
15178 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15179
1030e047
PA
151802012-04-19 Pedro Alves <palves@redhat.com>
15181
15182 * config.in: Regenerate.
15183
447d4319
PA
151842012-04-19 Pedro Alves <palves@redhat.com>
15185
15186 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15187 * server.h (memmem): Remove declaration.
15188 * config.in: Regenerate.
15189 * configure: Regenerate.
15190
aad9eab9
YQ
151912012-04-19 Yao Qi <yao@codesourcery.com>
15192
15193 * Makefile.in (SFILES): Add common/vec.c.
15194 (OBS): Add vec.o.
15195 (vec.o): New rule.
15196
3e10640f
YQ
151972012-04-19 Yao Qi <yao@codesourcery.com>
15198
15199 * remote-utils.c (prepare_resume_reply): Replace with macro
15200 target_core_of_thread.
15201 * server.c (handle_qxfer_threads_proper): Likewise.
15202 * target.h (traget_core_of_thread): New macro.
15203
71622373
PA
152042012-04-18 Pedro Alves <palves@redhat.com>
15205
15206 * aclocal.m4: Regenerate.
15207 * configure: Regenerate.
15208
80d26939
YQ
152092012-04-16 Yao Qi <yao@codesourcery.com>
15210
15211 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15212 duplicated on address.
15213
42476b70
YQ
152142012-04-16 Yao Qi <yao@codesourcery.com>
15215
15216 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15217 (struct tracepoint_action_ops) <send>: New field.
15218 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15219 (agent_expr_send, x_tracepoint_action_send): New.
15220 (l_tracepoint_action_send): New.
15221 (cmd_qtdp): Download and install tracepoint
15222 according to `use_agent'.
15223 (run_inferior_command): Add one more parameter `len'.
15224 Update callers.
15225 (tracepoint_send_agent): New.
15226 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15227
7bc83639
YQ
152282012-04-16 Yao Qi <yao@codesourcery.com>
15229
15230 * tracepoint.c (download_tracepoints): Moved to ...
15231 (cmd_qtstart): ... here.
15232
5f18041e
YQ
152332012-04-14 Yao Qi <yao@codesourcery.com>
15234
15235 * tracepoint.c: Include inttypes.h.
15236 (struct collect_memory_action): Use sized types.
15237 (struct tracepoint): Likewise.
15238 (cmd_qtdp, stop_tracing): Update print specifiers.
15239 (cmd_qtp, response_tracepoint): Likewise.
15240 (collect_data_at_tracepoint): Likewise.
15241 (collect_data_at_step): Likewise.
15242
55a8c076
YQ
152432012-04-14 Yao Qi <yao@codesourcery.com>
15244
15245 Import gnulib module inttypes.
15246 * aclocal.m4, config.in, configure: Regenerated.
15247
dc750257
YQ
152482012-04-14 Yao Qi <yao@codesourcery.com>
15249
15250 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15251 Makefile and config.status at last.
15252
0ab5faf9
YQ
152532012-04-13 Yao Qi <yao@codesourcery.com>
15254
15255 * tracepoint.c: Include stdint.h unconditionally.
15256
18f5fd81
TJB
152572012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15258
15259 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15260 on BFD_HAVE_SYS_PROCFS_TYPE.
15261 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15262 * configure: Regenerate.
15263 * config.in: Likewise.
15264
4d47af5c
L
152652012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15266
15267 * Makefile.in (clean): Also remove x32.c x32-linux.c
15268 x32-avx.c x32-avx-linux.c.
15269 (x32.o): New target.
15270 (x32.c): Likewise.
15271 (x32-linux.o): Likewise.
15272 (x32-linux.c): Likewise.
15273 (x32-avx.o): Likewise.
15274 (x32-avx.c): Likewise.
15275 (x32-avx-linux.o): Likewise.
15276 (x32-avx-linux.c): Likewise.
15277
15278 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15279 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15280 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15281 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15282 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15283 i386/x32-avx-linux.xml.
15284
15285 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15286 (init_registers_x32_avx_linux): Likwise.
15287 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15288 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15289
ecedbe58
PA
152902012-04-13 Pedro Alves <palves@redhat.com>
15291
15292 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15293 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15294 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15295 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15296 the sub-make.
15297
c92b5177
L
152982012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15299
15300 * linux-x86-low.c (compat_x32_clock_t): New.
15301 (compat_x32_siginfo_t): Likewise.
15302 (compat_x32_siginfo_from_siginfo): Likewise.
15303 (siginfo_from_compat_x32_siginfo): Likewise.
15304 (linux_is_elf64): Likewise.
15305 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15306 and siginfo_from_compat_x32_siginfo for x32.
15307 (x86_arch_setup): Set linux_is_elf64.
15308
214d508e
L
153092012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15310
15311 PR gdb/13969
15312 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15313 e_machine field.
15314 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15315 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15316 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15317 compatible with process.
15318
c9a1864a
YQ
153192012-04-12 Yao Qi <yao@codesourcery.com>
15320
15321 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15322 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15323 (install-only, install-info, clean): Handle sub dir gnulib.
15324 (all-lib, am--refresh): New targets.
15325 (memmem.o): Remove target.
15326 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15327 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15328 (AC_REPLACE_FUNCS): Remove memmem.
15329 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15330 (AC_OUTPUT): Generate Makefile in gnulib/.
15331 * aclocal.m4, config.in, configure: Regenerated.
15332
367ba2c2
MR
153332012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15334
15335 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15336
9d236627
PA
153372012-04-05 Pedro Alves <palves@redhat.com>
15338
15339 -Werror=strict-aliasing
15340
15341 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15342 pointer.
15343
111217b3
PA
153442012-04-04 Pedro Alves <palves@redhat.com>
15345
15346 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15347 (sparc_store_gregset_from_stack, sparc_store_gregset)
15348 (sparc_breakpoint_at): Fix formatting.
15349
8365dcf5
TJB
153502012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15351
15352 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15353 are available.
15354 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15355 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15356 * config.in: Regenerate.
15357 * configure: Likewise.
15358
689cc2ae
PA
153592012-03-29 Pedro Alves <palves@redhat.com>
15360
15361 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15362 Correct ptrace arguments.
15363
c14dfd32
PA
153642012-03-28 Pedro Alves <palves@redhat.com>
15365
15366 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15367 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15368 (IA64_FR1_REGNUM): New defines.
15369 (ia64_fetch_register): New.
15370 (the_low_target): Install it.
15371 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15372 field.
15373 * linux-low.c (linux_fetch_registers): Try the
15374 the_low_target.fetch_register hook first.
15375
15376 * linux-arm-low.c (the_low_target): Adjust.
15377 * linux-bfin-low.c (the_low_target): Adjust.
15378 * linux-cris-low.c (the_low_target): Adjust.
15379 * linux-crisv32-low.c (the_low_target): Adjust.
15380 * linux-m32r-low.c (the_low_target): Adjust.
15381 * linux-m68k-low.c (the_low_target): Adjust.
15382 * linux-mips-low.c (the_low_target): Adjust.
15383 * linux-ppc-low.c (the_low_target): Adjust.
15384 * linux-s390-low.c (the_low_target): Adjust.
15385 * linux-sh-low.c (the_low_target): Adjust.
15386 * linux-sparc-low.c (the_low_target): Adjust.
15387 * linux-tic6x-low.c (the_low_target): Adjust.
15388 * linux-x86-low.c (the_low_target): Adjust.
15389 * linux-xtensa-low.c (the_low_target): Adjust.
15390
63c88e13
PA
153912012-03-26 Pedro Alves <palves@redhat.com>
15392
15393 * server.c (handle_qxfer_libraries): Don't bail early if
15394 the_target->qxfer_libraries_svr4 is not NULL.
15395
fb723180
PA
153962012-03-26 Pedro Alves <palves@redhat.com>
15397
15398 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15399
0afae3cf
PA
154002012-03-23 Pedro Alves <palves@redhat.com>
15401
15402 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15403 "library-list-svr4" element's start tag when the the DSO list is
15404 empty.
15405
485f1ee4
PA
154062012-03-23 Pedro Alves <palves@redhat.com>
15407
15408 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15409 a variable whose type size is the same as the inferior's pointer
15410 size.
15411
a5362b9a
TS
154122012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15413
15414 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15415 struct siginfo.
15416 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15417 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15418 * linux-low.h: Include <signal.h>.
15419 (struct siginfo): Remove forward declaration.
15420 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15421 struct siginfo.
15422
d226c142
MF
154232012-03-21 Mike Frysinger <vapier@gentoo.org>
15424
15425 * .gitignore: Ignore more files.
15426
122f36ef
PA
154272012-03-19 Pedro Alves <palves@redhat.com>
15428 Jan Kratochvil <jan.kratochvil@redhat.com>
15429
15430 * server.c (cont_thread, general_thread): Add describing comments.
15431 (start_inferior): Clear `cont_thread'.
15432 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15433 of a process.
15434
fc3e5175
YQ
154352012-03-15 Yao Qi <yao@codesourcery.com>
15436
15437 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15438 handling to ...
15439 (cmd_qtdp): ... here.
15440
8d0d92cd
YQ
154412012-03-15 Yao Qi <yao@codesourcery.com>
15442
15443 * tracepoint.c (struct tracepoint_action_ops): New.
15444 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15445 (m_tracepoint_action_download): New.
15446 (r_tracepoint_action_download): New.
15447 (x_tracepoint_action_download): New.
15448 (l_tracepoint_action_download): New.
15449 (add_tracepoint_action): Install `action->ops' according type.
15450 (download_tracepoint_1): Move code `download' function pointer
15451 of various tracepoint_action_ops.
15452
87b0bb13
JK
154532012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15454
15455 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15456 linux_ptrace_attach_warnings.
15457
5f572dec
JK
154582012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15459
15460 * Makefile.in (linux-ptrace.o): New.
15461 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15462 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15463 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15464 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15465 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15466 of these targets.
15467 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15468
f4647387
YQ
154692012-03-08 Yao Qi <yao@codesourcery.com>
15470 Pedro Alves <palves@redhat.com>
15471
15472 Fix PR server/13392.
15473 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15474 offset of JMP insn.
15475 * tracepoint.c (remove_tracepoint): New.
15476 (cmd_qtdp): Call remove_tracepoint when failed to install.
15477
9b224c5e
PA
154782012-03-07 Pedro Alves <palves@redhat.com>
15479
15480 * linux-low.c (get_detach_signal): New.
15481 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15482 Pass on pending signals to PTRACE_DETACH. Check the result of the
15483 ptrace call.
15484 * server.c (program_signals, program_signals_p): New.
15485 (handle_general_set): Handle QProgramSignals.
15486 * server.h (program_signals, program_signals_p): Declare.
15487
e237a7e2
JK
154882012-03-05 Pedro Alves <palves@redhat.com>
15489 Jan Kratochvil <jan.kratochvil@redhat.com>
15490
15491 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15492 New comment why.
15493
5808517f
YQ
154942012-03-03 Yao Qi <yao@codesourcery.com>
15495
15496 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15497 agent_look_up_symbols.
15498
58b4daa5
YQ
154992012-03-03 Yao Qi <yao@codesourcery.com>
15500
15501 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15502 (linux-x86-low.o): Likewise.
15503 * server.h: Remove in_process_agent_loaded.
15504 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15505 common/agent.c.
15506 Update callers.
15507
8ffcbaaf
YQ
155082012-03-03 Yao Qi <yao@codesourcery.com>
15509
15510 * tracepoint.c (gdb_agent_capability): New global.
15511 (in_process_agent_loaded_ust): Renamed to
15512 `in_process_agent_supports_ust'.
15513 Update callers.
15514 (in_process_agent_supports_ust): Call agent_capability_check.
15515 (clear_installed_tracepoints): Assert that agent supports
15516 agent.
15517
d1feda86
YQ
155182012-03-03 Yao Qi <yao@codesourcery.com>
15519
15520 * linux-low.c (linux_supports_agent): New.
15521 (linux_target_ops): Initialize field `supports_agent' with
15522 linux_supports_agent.
15523 * target.h (struct target_ops) <supports_agent>: New.
15524 (target_supports_agent): New macro.
15525 * server.c (handle_general_set): Handle packet 'QAgent'.
15526 (handle_query): Send `QAgent+'.
15527 * Makefile.in (server.o): Depends on agent.h.
15528
2fa291ac
YQ
155292012-03-03 Yao Qi <yao@codesourcery.com>
15530
15531 * Makefile.in (OBS): Add agent.o.
15532 Add new rule for agent.o.
15533 Track dependence of tracepoint.c on agent.h.
15534 * tracepoint.c (run_inferior_command_1):
15535 (run_inferior_command): Call agent_run_command.
15536 (gdb_ust_connect_sync_socket): Deleted. Move it to
15537 common/agent.c.
15538 (resume_thread, stop_thread): Likewise.
15539 (gdb_ust_socket_init): Renamed to ...
15540 (gdb_agent_socket_init): ... New.
15541 (gdb_ust_thread): Renamed to ...
15542 (gdb_agent_helper_thread): ... New.
15543 (gdb_ust_init): Move some code to ...
15544 (gdb_agent_init): ... here. New.
15545 [HAVE_UST]: Call gdb_ust_init.
15546 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15547 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15548 * config.in, configure: Regenerated.
15549
05044653
PA
155502012-03-02 Pedro Alves <palves@redhat.com>
15551
15552 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15553 * linux-low.c (struct simple_pid_list): New.
15554 (stopped_pids): New a struct simple_pid_list pointer.
15555 (add_to_pid_list, pull_pid_from_list): New.
15556 (handle_extended_wait): Don't assume the first signal new children
15557 report is SIGSTOP. Adjust call to pull_pid_from_list.
15558 (linux_wait_for_lwp): Adjust.
15559
8d00225b
YQ
155602012-03-02 Yao Qi <yao@codesourcery.com>
15561
15562 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15563 debug log.
15564
19560ba5
YQ
155652012-03-02 Yao Qi <yao@codesourcery.com>
15566
15567 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15568 `stop_pc' and `tpoint'. Update caller.
15569
1faeff08
MR
155702012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15571
15572 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15573 * linux-low.c (use_linux_regsets): New macro.
15574 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15575 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15576 (linux_register_in_regsets): New function.
15577 (usr_fetch_inferior_registers): Skip registers covered by
15578 regsets.
15579 (usr_store_inferior_registers): Likewise.
15580 (usr_fetch_inferior_registers): New macro.
15581 (usr_store_inferior_registers): Likewise.
15582 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15583 (linux_store_registers): Likewise.
15584 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15585 prototype.
15586 (init_registers_mips64_dsp_linux): Likewise.
15587 (init_registers_mips_linux): New macro.
15588 (init_registers_mips_dsp_linux): Likewise.
15589 (mips_dsp_num_regs): Likewise.
15590 (DSP_BASE, DSP_CONTROL): New fallback macros.
15591 (mips_base_regs): New macro.
15592 (mips_regmap): Use it. Fix the size.
15593 (mips_dsp_regmap): New variable.
15594 (mips_dsp_regset_bitmap): Likewise.
15595 (mips_arch_setup): New function.
15596 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15597 than mips_regmap.
15598 (mips_cannot_store_register): Likewise.
15599 (the_low_target): Update .arch_setup, .num_regs and .regmap
15600 initializers. Add .regset_bitmap initializer.
15601 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15602 initializer.
15603 * linux-bfin-low.c (the_low_target): Likewise.
15604 * linux-cris-low.c (the_low_target): Likewise.
15605 * linux-crisv32-low.c (the_low_target): Likewise.
15606 * linux-ia64-low.c (the_low_target): Likewise.
15607 * linux-m32r-low.c (the_low_target): Likewise.
15608 * linux-m68k-low.c (the_low_target): Likewise.
15609 * linux-ppc-low.c (the_low_target): Likewise.
15610 * linux-s390-low.c (the_low_target): Likewise.
15611 * linux-sh-low.c (the_low_target): Likewise.
15612 * linux-sparc-low.c (the_low_target): Likewise.
15613 * linux-tic6x-low.c (the_low_target): Likewise.
15614 * linux-x86-low.c (the_low_target): Likewise.
15615 * linux-xtensa-low.c (the_low_target): Likewise.
15616 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15617 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15618 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15619 srv_xmlfiles.
15620 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15621 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15622
c03e6ccc
YQ
156232012-02-29 Yao Qi <yao@codesourcery.com>
15624 Pedro Alves <palves@redhat.com>
15625
15626 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15627 `step_over_finished' is true.
15628
644cebc9
PA
156292012-02-27 Pedro Alves <palves@redhat.com>
15630
15631 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15632 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15633
c14d7ab2
PA
156342012-02-27 Pedro Alves <palves@redhat.com>
15635
15636 PR server/9684
15637 * linux-low.c (pid_is_stopped): New.
15638 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15639
412c89dd
LM
156402012-02-25 Luis Machado <lgustavo@codesourcery.com>
15641
15642 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15643 of conditions.
15644
b745defe
MR
156452012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15646
15647 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15648
9f3a5c85
LM
156492012-02-24 Luis Machado <lgustavo@codesourcery>
15650
15651 * server.c (handle_query): Advertise support for target-side
15652 breakpoint condition evaluation.
15653 (process_point_options): New function.
15654 (process_serial_event): When inserting a breakpoint, check for
15655 a target-side condition that should be evaluated.
15656
15657 * mem-break.c: Include regcache.h and ax.h.
15658 (point_cond_list_t): New data structure.
15659 (breakpoint) <cond_list>: New field.
15660 (find_gdb_breakpoint_at): Make non-static.
15661 (delete_gdb_breakpoint_at): Clear any target-side
15662 conditions.
15663 (clear_gdb_breakpoint_conditions): New function.
15664 (add_condition_to_breakpoint): Likewise.
15665 (add_breakpoint_condition): Likewise.
15666 (gdb_condition_true_at_breakpoint): Likewise.
15667 (gdb_breakpoint_here): Return result directly instead
15668 of going through a local variable.
15669
15670 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15671 (clear_gdb_breakpoint_conditions): Likewise.
15672 (add_breakpoint_condition): Likewise.
15673 (gdb_condition_true_at_breakpoint): Likewise.
15674
15675 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15676 (need_step_over_p): Take target-side breakpoint condition into
15677 consideration.
15678
5e1dc496
LM
156792012-02-24 Luis Machado <lgustavo@codesourcery>
15680
15681 * server.h: Include tracepoint.h.
15682 (agent_mem_read, agent_get_trace_state_variable_value,
15683 agent_set_trace_state_variable_value,
15684 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15685 get_set_tsv_func_addr): New prototypes.
15686
15687 * ax.h: New include file.
15688 * ax.c: New source file.
15689
15690 * tracepoint.c: Include ax.h.
15691 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15692 agent_expr, eval_result_type): Move to ax.h.
15693 (parse_agent_expr): Rename to ...
15694 (gdb_parse_agent_expr): ... this, make it non-static and move
15695 to ax.h.
15696 (unparse_agent_expr) Rename to ...
15697 (gdb_unparse_agent_expr): ... this, make it non-static and move
15698 to ax.h.
15699 (eval_agent_expr): Rename to ...
15700 (eval_tracepoint_agent_expr): ... this.
15701 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15702 forward declarations.
15703 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15704 (agent_get_trace_state_variable_value): New function.
15705 (agent_set_trace_state_variable_value): New function.
15706 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15707 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15708 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15709 (condition_true_at_tracepoint): Likewise.
15710 (parse_agent_expr): Rename to ...
15711 (gdb_parse_agent_expr): ... this and move to ax.c.
15712 (unparse_agent_expr): Rename to ...
15713 (gdb_unparse_agent_expr): ... this and move to ax.c.
15714 (gdb_agent_op_name): Move to ax.c.
15715 (eval_agent_expr): Rename to ...
15716 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15717 and move to ax.c.
15718 (eval_tracepoint_agent_expr): New function.
15719 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15720 non-static.
5e1dc496
LM
15721 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15722 ax.c.
15723 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15724 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15725 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15726 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15727 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15728 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15729 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15730 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15731 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15732 (compile_bytecodes): Remove forward declaration.
15733 (is_goto_target): Move to ax.c.
15734 (compile_bytecodes): Move to ax.c and call
15735 agent_get_trace_state_variable_value (...) and
15736 agent_set_trace_state_variable_value (...).
15737
15738 * Makefile.in: Update ax.c and IPA dependencies.
15739
277e4e52
PA
157402012-02-24 Pedro Alves <palves@redhat.com>
15741
15742 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15743 (cmd_bigqtbuffer_circular): ... this. Only handle
15744 'QTBuffer:circular:'.
15745 (handle_tracepoint_general_set): Adjust.
15746
bf4c19f7
YQ
157472012-02-16 Yao Qi <yao@codesourcery.com>
15748
15749 * inferiors.c: Move code to ...
15750 * dll.c: .... here. New.
15751 * server.h: Declare clear_dlls.
15752 * Makefile.in (SFILES): Add dll.c.
15753 (OBS): Add dll.o
15754 (dll.o): New rule.
15755
d73f2619
YQ
157562012-02-11 Yao Qi <yao@codesourcery.com>
15757
15758 * server.c: (handle_monitor_command): Add a new parameter
15759 `own_buf'.
15760 (handle_query): Update caller.
15761
f8255c2a
JB
157622012-02-09 Joel Brobecker <brobecker@adacore.com>
15763
15764 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15765 * configure, config.in: Regenerate.
15766 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15767 is not defined.
15768
da84f473
PA
157692012-02-02 Pedro Alves <palves@redhat.com>
15770
15771 Try SIGKILL first, then PTRACE_KILL.
15772 * linux-low.c (linux_kill_one_lwp): New.
15773 (linux_kill_one_lwp): Rename to ...
15774 (kill_one_lwp_callback): ... this. Use the new
15775 linux_kill_one_lwp.
15776
e886a173
PA
157772012-02-02 Pedro Alves <palves@redhat.com>
15778
15779 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15780 inferior.
15781
be07f1a2
PA
157822012-01-27 Pedro Alves <palves@redhat.com>
15783
15784 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15785 (elf_64_file_p): Make static.
15786 (linux_pid_exe_is_elf_64_file): New.
15787 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15788 Delete declarations.
15789 (linux_pid_exe_is_elf_64_file): Declare.
15790 * linux-x86-low.c (x86_arch_setup): Use
15791 linux_pid_exe_is_elf_64_file.
15792
d8301ad1
JK
157932012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15794
15795 * linux-low.c (linux_wait_for_event_1): Rename to ...
15796 (linux_wait_for_event): ... here and merge it with former
15797 linux_wait_for_event - new variable wait_ptid, use it.
15798 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15799
01b17894
PA
158002012-01-23 Pedro Alves <palves@redhat.com>
15801
15802 * server.c (main): Avoid yet another case of infinite loop while
15803 detaching/killing after a longjmp.
15804
e825046f
JK
158052012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15806
15807 Code cleanup.
15808 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15809
b9e7b9c3
UW
158102012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15811
15812 * hostio.c (handle_readlink): New function.
15813 (handle_vFile): Call it to handle "vFile:readlink" packets.
15814
901f9912
UW
158152012-01-20 Pedro Alves <palves@redhat.com>
15816 Ulrich Weigand <ulrich.weigand@linaro.org>
15817
15818 * server.c (handle_v_requests): Only support vAttach and vRun to
15819 start multiple processes when in extended protocol mode.
15820
fc1ab1a0
PA
158212012-01-17 Pedro Alves <palves@redhat.com>
15822
15823 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15824 memalign plus mprotect to allocate the scratch buffer.
15825
7d5d4e98
PA
158262012-01-13 Pedro Alves <palves@redhat.com>
15827
15828 * server.c (attach_inferior): Clear `cont_thread'.
15829
f128d5e9
PA
158302012-01-13 Pedro Alves <palves@redhat.com>
15831
15832 * server.c (main): Avoid infinite loop while detaching/killing
15833 after a longjmp.
15834
06db92f0
DE
158352012-01-09 Doug Evans <dje@google.com>
15836
15837 * server.c (start_inferior): Set last_ptid in --wrapper case.
15838
32d92999
YQ
158392012-01-06 Yao Qi <yao@codesourcery.com>
15840
15841 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15842 defined.
15843 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15844
5e0a92a9
YQ
158452012-01-04 Yao Qi <yao@codesourcery.com>
15846
15847 * tracepoint.c (cmd_qtdp): Print debug message
15848 for static tracepoint.
15849
ae639e8c
YQ
158502012-01-04 Yao Qi <yao@codesourcery.com>
15851
15852 * tracepoint.c (trace_vdebug): Differentiate debug message
15853 between gdbserver and IPA.
15854
f72429c5
YQ
158552012-01-03 Yao Qi <yao@codesourcery.com>
15856
15857 * tracepoint.c (tracepoint_was_hit): Don't collect for
15858 static tracepoint.
15859
12c3e59c
JB
158602012-01-02 Joel Brobecker <brobecker@adacore.com>
15861
15862 * terminal.h: Reformat copyright header.
15863
67827812
JB
158642012-01-02 Joel Brobecker <brobecker@adacore.com>
15865
15866 * server.c (gdbserver_version): Update copyright year.
15867 * gdbreplay.c (gdbreplay_version): Likewise.
15868
3e52c33d
JK
158692011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15870
15871 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15872
15873 Revert:
15874 2011-12-18 Hui Zhu <teawater@gmail.com>
15875 * linux-low.c (linux_create_inferior): Save return value to ret.
15876
66f1260e
HZ
158772011-12-18 Hui Zhu <teawater@gmail.com>
15878
15879 * linux-low.c (linux_create_inferior): Save return value to ret.
15880
e77616d7
DE
158812011-12-16 Doug Evans <dje@google.com>
15882
e7b06c57
DE
15883 * linux-low.c (linux_create_inferior): If stdio connection,
15884 redirect stdin from /dev/null, stdout to stderr.
15885 * remote-utils.c (remote_is_stdio): New static global.
15886 (remote_connection_is_stdio): New function.
15887 (remote_prepare): Handle stdio connection.
15888 (remote_open): Ditto.
15889 (remote_close): Don't close stdin for stdio connections.
15890 (read_prim,write_prim): New functions. Replace all calls to
15891 read/write to these.
15892 * server.c (main): Watch for "-" argument. Move call to
15893 remote_prepare before start_inferior.
15894 * server.h (STDIO_CONNECTION_NAME): New macro.
15895 (remote_connection_is_stdio): Declare.
15896
e77616d7
DE
15897 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15898 in debugging output.
15899
82067193
YQ
159002011-12-15 Yao Qi <yao@codesourcery.com>
15901
15902 * tracepoint.c: Include sys/syscall.h.
15903 (gdb_ust_thread): Remove preprocessor conditional.
15904
82bfbe7e
PA
159052011-12-14 Pedro Alves <pedro@codesourcery.com>
15906
15907 * linux-low.c (linux_detach_one_lwp): Call
15908 the_low_target.prepare_to_resume before detaching.
15909
712c6575
YQ
159102011-12-14 Yao Qi <yao@codesourcery.com>
15911
15912 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15913 of write.
15914
d54d1edf
YQ
159152011-12-14 Yao Qi <yao@codesourcery.com>
15916
15917 * i386-low.c (i386_low_stopped_data_address): Initialize local
15918 variable `control'.
15919
6210a125
PA
159202011-12-13 Pedro Alves <pedro@codesourcery.com>
15921
15922 PR remote/13492
15923
15924 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15925 DR_CONTROL unless necessary. Extend comments.
15926 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15927 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15928
2ece8244
YQ
159292011-12-13 Yao Qi <yao@codesourcery.com>
15930
15931 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15932 macros.
15933 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15934
784867a5
JK
159352011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15936
15937 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15938 Print new debug message for such case.
15939
6bf36717
JK
159402011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15941
15942 Fix overlapping memcpy.
15943 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15944 the read_inferior_memory transfer.
15945 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15946 write_inferior_memory transfer.
15947 (set_fast_tracepoint_jump): New variable buf. Use it for the
15948 read_inferior_memory and write_inferior_memory transfers.
15949 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15950 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15951 Use it for the write_inferior_memory transfer.
15952 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15953 buffers.
15954
50275556
MR
159552011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15956
15957 * linux-low.c (fetch_register, store_register): Make code
15958 consistent, fix formatting.
15959
7325beb4
MR
159602011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15961
15962 * linux-low.c (usr_store_inferior_registers): Factor out code
15963 to handle individual registers into...
15964 (store_register): ... this new function.
15965
c642a434
UW
159662011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15967
15968 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15969 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15970 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15971 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15972 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15973 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15974 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15975 (srv_xmlfiles): Add new XML files.
15976
15977 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15978 and <sys/uio.h>.
15979 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15980 (init_registers_s390_linux32v1): Add prototype.
15981 (init_registers_s390_linux32v2): Likewise.
15982 (init_registers_s390_linux64v1): Likewise.
15983 (init_registers_s390_linux64v2): Likewise.
15984 (init_registers_s390x_linux64v1): Likewise.
15985 (init_registers_s390x_linux64v2): Likewise.
15986 (s390_num_regs): Increment to 52.
15987 (s390_regmap): Add orig_r2 register.
15988 (s390_num_regs_3264): Increment to 68.
15989 (s390_regmap_3264): Add orig_r2 register.
15990 (s390_collect_ptrace_register): Handle orig_r2 register.
15991 (s390_supply_ptrace_register): Likewise.
15992 (s390_fill_last_break): New function.
15993 (s390_store_last_break): Likewise.
15994 (s390_fill_system_call): New function.
15995 (s390_store_system_call): Likewise.
15996 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15997 register sets.
15998 (s390_check_regset): New function.
15999 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16000 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16001 Update target_regsets for available register sets.
16002
2268b414
JK
160032011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16004 Jan Kratochvil <jan.kratochvil@redhat.com>
16005
16006 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16007 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16008 New.
16009 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16010 * linux-low.h (struct process_info_private): New member r_debug.
16011 * server.c (handle_qxfer_libraries): Call
16012 the_target->qxfer_libraries_svr4.
16013 (handle_qxfer_libraries_svr4): New function.
16014 (qxfer_packets): New entry "libraries-svr4".
16015 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16016 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16017 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16018 PACKET_qXfer_libraries_svr4.
16019
d6db1fab
UW
160202011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16021
16022 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16023 PSW address/mask between 8-byte and 16-byte formats.
16024 (s390_supply_ptrace_register): Likewise.
16025 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16026 basic addressing mode bit.
16027
242f5f1c
SS
160282011-11-24 Stan Shebs <stan@codesourcery.com>
16029
16030 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16031
f196051f
SS
160322011-11-17 Stan Shebs <stan@codesourcery.com>
16033
16034 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16035 (tracing_start_time): New global.
16036 (tracing_stop_time): New global.
16037 (tracing_user_name): New global.
16038 (tracing_notes): New global.
16039 (tracing_stop_note): New global.
16040 (cmd_qtstart): Set traceframe_usage, start_time.
16041 (stop_tracing): Set stop_time.
16042 (cmd_qtstatus): Report additional status.
16043 (cmd_qtp): New function.
16044 (handle_tracepoint_query): Call it.
16045 (cmd_qtnotes): New function.
16046 (handle_tracepoint_general_set): Call it.
16047 (get_timestamp): Rename from tsv_get_timestamp.
16048
405f8e94
SS
160492011-11-14 Stan Shebs <stan@codesourcery.com>
16050 Kwok Cheung Yeung <kcy@codesourcery.com>
16051
16052 * linux-x86-low.c (small_jump_insn): New.
16053 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16054 trampoline and error message, build a trampoline and issue a small
16055 jump instruction to it.
16056 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16057 trampoline and error message.
16058 (x86_get_min_fast_tracepoint_insn_len): New.
16059 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16060 * linux-low.h (struct linux_target_ops): Add arguments to
16061 install_fast_tracepoint_jump_pad operation, add new operation.
16062 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16063 arguments.
16064 (linux_get_min_fast_tracepoint_insn_len): New function.
16065 (linux_target_op): Add new operation.
16066 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16067 (gdb_trampoline_buffer_end): Ditto.
16068 (gdb_trampoline_buffer_error): Ditto.
16069 (struct ipa_sym_addresses): Add fields for new IPA variables.
16070 (symbol_list): Add entries for new IPA variables.
16071 (struct tracepoint): Add fields to hold the address range of the
16072 trampoline used by the tracepoint.
16073 (trampoline_buffer_head): New static variable.
16074 (trampoline_buffer_tail): Ditto.
16075 (claim_trampoline_space): New function.
16076 (have_fast_tracepoint_trampoline_buffer): New function.
16077 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16078 structure.
16079 (install_fast_tracepoint): Ditto, also add error buffer argument.
16080 (cmd_qtminftpilen): New function.
16081 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16082 (fast_tracepoint_from_trampoline_address): New function.
16083 (fast_tracepoint_collecting): Handle trampoline as part of jump
16084 pad space.
16085 (set_trampoline_buffer_space): New function.
16086 (initialize_tracepoint): Initialize new IPA variables.
16087 * target.h (struct target_ops): Add arguments to
16088 install_fast_tracepoint_jump_pad operation, add new
16089 get_min_fast_tracepoint_insn_len operation.
16090 (target_get_min_fast_tracepoint_insn_len): New.
16091 (install_fast_tracepoint_jump_pad): Add arguments.
16092 * server.h (IPA_BUFSIZ): Define.
16093 * linux-i386-ipa.c: Include extra header files.
16094 (initialize_fast_tracepoint_trampoline_buffer): New function.
16095 (initialize_low_tracepoint): Call it.
16096 * server.h (set_trampoline_buffer_space): Declare.
16097 (claim_trampoline_space): Ditto.
16098 (have_fast_tracepoint_trampoline_buffer): Ditto.
16099
1e4d1764
YQ
161002011-11-14 Yao Qi <yao@codesourcery.com>
16101
16102 * server.c (handle_query): Handle InstallInTrace for qSupported.
16103 * tracepoint.c (add_tracepoint): Sort list.
16104 (install_tracepoint, download_tracepoint): New.
16105 (cmd_qtdp): Call them to install and download tracepoints.
16106 (sort_tracepoints): Removed.
16107 (cmd_qtstart): Update.
16108
5c73ff4e
YQ
161092011-11-14 Yao Qi <yao@codesourcery.com>
16110
16111 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16112 * mem-break.h: Declare.
16113 * tracepoint.c (cmd_qtstart): Move some code to ...
16114 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16115 New.
16116 (download_tracepoints): Move some code to ...
16117 (download_tracepoint_1): ... here. New.
16118
86a30030
YQ
161192011-11-08 Yao Qi <yao@codesourcery.com>
16120
16121 * remote-utils.c (relocate_instruction): A comment fix.
16122
8d26e50c
JB
161232011-11-07 Joel Brobecker <brobecker@adacore.com>
16124
16125 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16126 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16127 dr_status_mirror and dr_control_mirror from debug_reg_state.
16128 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16129 (i386_initial_stuff): Remove use of deleted globals.
16130 (i386_get_thread_context, i386_set_thread_context,
16131 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16132 from debug_reg_state.
16133
a59306a3
YQ
161342011-11-05 Yao Qi <yao@codesourcery.com>
16135
16136 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16137 address as TPOINT's.
16138
3065dfb6
SS
161392011-11-02 Stan Shebs <stan@codesourcery.com>
16140
16141 * tracepoint.c (agent_mem_read_string): New function.
16142 (eval_agent_expr): Call it for tracenz.
16143 * server.c (handle_query): Report support for tracenz.
16144
fd0d8c7c
YQ
161452011-11-02 Yao Qi <yao@codesourcery.com>
16146
16147 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16148
609086b1
YQ
161492011-11-02 Yao Qi <yao@codesourcery.com>
16150
16151 * target.h: Fix a typo in comment.
16152
b9fd1791
PA
161532011-10-31 Pedro Alves <pedro@codesourcery.com>
16154
16155 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16156 clobber the breakpoints' shadows with fast tracepoint jumps.
16157 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16158 * target.c (write_inferior_memory): Also pass MYADDR down to
16159 check_mem_write.
16160
03583c20
UW
161612011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16162
16163 * configure.ac: Check support for personality routine.
16164 * configure: Regenerate.
16165 * config.in: Likewise.
16166 * linux-low.c: Include <sys/personality.h>.
16167 Define ADDR_NO_RANDOMIZE if necessary.
16168 (linux_create_inferior): Disable address space randomization when
16169 forking inferior, if requested.
16170 (linux_supports_disable_randomization): New function.
16171 (linux_target_ops): Install it.
16172 * server.h (disable_randomization): Declare.
16173 * server.c (disable_randomization): New global variable.
16174 (handle_general_set): Handle QDisableRandomization.
16175 (handle_query): Likewise for qSupported.
16176 (main): Support --disable-randomization and --no-disable-randomization
16177 command line arguments.
16178 * target.h (struct target_ops): Add supports_disable_randomization.
16179 (target_supports_disable_randomization): New macro.
16180
723b724b
MF
161812011-09-29 Mike Frysinger <vapier@gentoo.org>
16182
16183 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16184 ifdef check.
16185 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16186 [!PT_GETDSBT] (target_loadmap): New definition.
16187 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16188 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16189 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16190 and PT_GETDSBT to LINUX_LOADMAP.
16191 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16192 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16193
55329a5c 161942011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16195
16196 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16197 (arm_linux_hwbp_cap): New static variable.
16198 (arm_linux_get_hwbp_cap): Replace by ...
16199 (arm_linux_init_hwbp_cap): ... this new function.
16200 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16201 (arm_linux_get_hw_watchpoint_count): Likewise.
16202 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16203 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16204 (arm_prepare_to_resume): Use perror_with_name instead of error.
16205
55329a5c 162062011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16207
16208 * linux-arm-low.c: Include <signal.h>.
16209 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16210 (struct arm_linux_hwbp_cap): New data type.
16211 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16212 (struct arm_linux_hw_breakpoint): New data type.
16213 (MAX_BPTS, MAX_WPTS): Define.
16214 (struct arch_process_info, struct arch_lwp_info): New data types.
16215 (arm_linux_get_hwbp_cap): New function.
16216 (arm_linux_get_hw_breakpoint_count): Likewise.
16217 (arm_linux_get_hw_watchpoint_count): Likewise.
16218 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16219 (arm_hwbp_control_initialize): Likewise.
16220 (arm_hwbp_control_is_enabled): Likewise.
16221 (arm_hwbp_control_is_initialized): Likewise.
16222 (arm_hwbp_control_disable): Likewise.
16223 (arm_linux_hw_breakpoint_equal): Likewise.
16224 (arm_linux_hw_point_initialize): Likewise.
16225 (struct update_registers_data): New data structure.
16226 (update_registers_callback: New function.
16227 (arm_insert_point): Likewise.
16228 (arm_remove_point): Likewise.
16229 (arm_stopped_by_watchpoint): Likewise.
16230 (arm_stopped_data_address): Likewise.
16231 (arm_new_process): Likewise.
16232 (arm_new_thread): Likewise.
16233 (arm_prepare_to_resume): Likewise.
16234 (the_low_target): Register arm_insert_point, arm_remove_point,
16235 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16236 arm_new_thread, and arm_prepare_to_resume.
16237
6b9801d4
SS
162382011-09-15 Stan Shebs <stan@codesourcery.com>
16239
16240 * server.h (struct emit_ops): Add compare-goto fields.
16241 * tracepoint.c (gdb_agent_op_sizes): New table.
16242 (emit_eq_goto): New function.
16243 (emit_ne_goto): New function.
16244 (emit_lt_goto): New function.
16245 (emit_le_goto): New function.
16246 (emit_gt_goto): New function.
16247 (emit_ge_goto): New function.
16248 (is_goto_target): New function.
16249 (compile_bytecodes): Recognize special cases of compare-goto
16250 combinations and call specialized emitters for them.
16251 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16252 (amd64_emit_ne_goto): New function.
16253 (amd64_emit_lt_goto): New function.
16254 (amd64_emit_le_goto): New function.
16255 (amd64_emit_gt_goto): New function.
16256 (amd64_emit_ge_goto): New function.
16257 (amd64_emit_ops): Add the new functions.
16258 (i386_emit_eq_goto): New function.
16259 (i386_emit_ne_goto): New function.
16260 (i386_emit_lt_goto): New function.
16261 (i386_emit_le_goto): New function.
16262 (i386_emit_gt_goto): New function.
16263 (i386_emit_ge_goto): New function.
16264 (i386_emit_ops): Add the new functions.
16265
bf15cbda
SS
162662011-09-08 Stan Shebs <stan@codesourcery.com>
16267
16268 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16269 (i386_emit_epilogue): Restore %ebx.
16270
943ca1dd
JZ
162712011-08-31 Jie Zhang <jzhang918@gmail.com>
16272
16273 * server.c (step_thread): Remove definition.
16274 (process_serial_event): Don't handle Hs.
16275 * server.h (step_thread): Remove declaration.
16276 * target.c (set_desired_inferior): Remove use of step_thread.
16277
e3deef73
LM
162782011-08-24 Luis Machado <lgustavo@codesourcery.com>
16279
16280 * linux-low.c: Include linux-procfs.h.
16281 (linux_attach_lwp_1): Update comments.
16282 (linux_attach): Scan for existing threads when attaching to a
16283 process that is the tgid.
16284 * Makefile.in: Update dependencies.
16285
13da1c97
LM
162862011-08-24 Luis Machado <lgustavo@codesourcery.com>
16287
16288 * configure.srv: Add linux-procfs.o dependencies.
16289
881127c9
YQ
162902011-08-14 Yao Qi <yao@codesourcery.com>
16291
16292 * target.h (struct target_ops): Fix indent.
16293 * win32-low.c (win32_target_ops): Fix comment.
16294
58dbd541
YQ
162952011-08-14 Andrew Jenner <andrew@codesourcery.com>
16296 Yao Qi <yao@codesourcery.com>
16297
16298 * Makefile.in (clean): Remove tic6x-*.c files.
16299 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16300 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16301 (tic6x-c64xp-linux.c): Likewise.
16302 * configure.srv: Add support for tic6x-*-uclinux.
16303 * linux-tic6x-low.c: New.
16304 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16305
78d85199
YQ
163062011-08-14 Andrew Stubbs <ams@codesourcery.com>
16307 Yao Qi <yao@codesourcery.com>
16308
16309 * target.h (struct target_ops): Add read_loadmap.
16310 * linux-low.c (struct target_loadseg): New type.
16311 (struct target_loadmap): New type.
16312 (linux_read_loadmap): New function.
16313 (linux_target_ops): Add linux_read_loadmap.
16314 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16315 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16316 to NULL.
78d85199 16317
a959a88d
EZ
163182011-08-05 Eli Zaretskii <eliz@gnu.org>
16319
16320 * win32-low.c: Include <stdint.h>.
16321
1ced966e
PA
163222011-07-22 Pedro Alves <pedro@codesourcery.com>
16323
16324 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16325 to the inferior here.
16326 (i386_remove_aligned_watchpoint): Ditto.
16327 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16328 fit part of the watchpoint in the debug registers.
16329 (i386_update_inferior_debug_regs): New.
16330 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16331 registers, and only update the inferior on success.
16332 (i386_low_remove_watchpoint): Ditto.
16333
d26e3629
KY
163342011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16335
16336 * linux-low.c (compare_ints, unique, list_threads, show_process,
16337 linux_core_of_thread): Delete.
16338 (linux_target_ops): Change linux_core_of_thread to
16339 linux_common_core_of_thread.
16340 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16341 * utils.c (malloc_failure): Change type of argument.
16342 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16343 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16344 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16345 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16346 (IPA_OBJS): Add common-utils-ipa.o.
16347 (ptid_h, linux_osdata_h): New macros.
16348 (server_h): Add common/common-utils.h, common/xml-utils.h,
16349 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16350 common/ptid.h.
16351 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16352 ptid.o, buffer.o): New rules.
16353 (linux-low.o): Add common/linux-osdata.h as a dependency.
16354 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16355 * configure.ac: Add AC_HEADER_DIRENT check.
16356 * config.in: Regenerate.
16357 * configure: Regenerate.
16358 * remote-utils.c (xml_escape_text): Delete.
16359 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16360 buffer_xml_printf): Move to common/buffer.c.
16361 * server.c (main): Remove call to initialize_inferiors.
16362 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16363 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16364 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16365 internal_error, gdb_assert, gdb_assert_fail): Delete.
16366 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16367 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16368 common/buffer.h.
16369 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16370 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16371 initialize_inferiors): Delete.
16372
2275a1a7
PA
163732011-07-20 Pedro Alves <pedro@codesourcery.com>
16374
16375 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16376 symbol error.
16377
0a5b1e09
PA
163782011-05-31 Pedro Alves <pedro@codesourcery.com>
16379
16380 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16381 assertion.
16382 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16383
6938fd34
YQ
163842011-05-26 Yao Qi <yao@codesourcery.com>
16385
16386 * Makefile.in (thread-db.o): Track dependence to
16387 common/gdb_thread_db.h.
16388 * thread-db.c: include gdb_thread_db.h from right place.
16389
b481f9e0
TT
163902011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16391
16392 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16393 __FILE__ and __LINE__ to internal_error.
16394
98a5dd13
DE
163952011-05-13 Doug Evans <dje@google.com>
16396
16397 * thread-db.c (try_thread_db_load_from_sdir): New function.
16398 (try_thread_db_load_from_dir): New function.
16399 (thread_db_load_search): Handle $sdir, ignore $pdir.
16400 Remove trying of system directories if search of
16401 libthread-db-search-path fails, that is now done via $sdir.
16402
d248b706
KY
164032011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16404
16405 * server.c (handle_query): Add EnableDisableTracepoints to the list
16406 of supported features.
43aaf8b6 16407 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16408 tracepoints.
43aaf8b6
PA
16409 (cmd_qtenable_disable): New.
16410 (cmd_qtstart): Install tracepoints even if disabled.
16411 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16412 receiving a QTEnable or QTDisable packet.
16413 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16414 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16415 tracepoints.
16416 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16417
84e578fb
DE
164182011-05-10 Doug Evans <dje@google.com>
16419
16420 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16421
71f55dd8
DE
164222011-05-04 Doug Evans <dje@google.com>
16423
16424 * linux-low.c (linux_join): Skip process lookup.
16425 * spu-low.c (spu_join): Ditto.
16426 * server.c (join_inferiors_callback): Delete.
16427 (process_serial_event): For 'D' packet (detach) call join_inferior
16428 directly.
16429
4d393d60
JM
164302011-05-04 Joseph Myers <joseph@codesourcery.com>
16431
16432 * README: Don't mention xscale*-*-linux*.
16433 * configure.srv (xscale*-*-linux*): Don't handle target.
16434
b00ad6ff
NF
164352011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16436
16437 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16438 casting pointers.
16439 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16440 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16441 (i386_emit_void_call_2): Likewise.
16442
af96c192
YQ
164432011-04-26 Yao Qi <yao@codesourcery.com>
16444
43aaf8b6
PA
16445 * linux-low.c: Move common macros to linux-ptrace.h.
16446 Include linux-ptrace.h.
af96c192
YQ
16447 * Makefile.in (linux_ptrace_h): New.
16448 (linux-low.o): Depends on linux-ptrace.h.
16449
03f2bd59
JK
164502011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16451
16452 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16453 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16454 (remote_prepare): New function with most of the TCP code from ...
16455 (remote_open): ... here. Detect PORT here unconditionally. Move also
16456 setting transport_is_reliable.
16457 * server.c (run_once): New variable.
16458 (gdbserver_usage): Document it.
16459 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16460 the first run if RUN_ONCE.
16461 * server.h (run_once, remote_prepare): New declarations.
16462
7a9dd1b2
TT
164632011-04-19 Tom Tromey <tromey@redhat.com>
16464
16465 * win32-low.c (handle_load_dll): Remove duplicate "the".
16466
81239425
PM
164672011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16468
16469 Remove support for old Cygwin 1.5 versions.
16470 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16471 function to avoid warning.
16472 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16473 warning.
16474
9e0627f1
PM
164752011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16476
16477 * gdbserver/server.h (Macro _): Define it if not available.
16478
588eebee
MS
164792011-03-14 Michael Snyder <msnyder@vmware.com>
16480
348af9f7 16481 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16482
43f70d4c
JB
164832011-03-10 Joel Brobecker <brobecker@adacore.com>
16484
16485 * Makefile.in (maintainer-clean realclean distclean): Remove
16486 "make ... subdir_do" command.
16487
348af9f7
MS
164882011-03-10 Michael Snyder <msnyder@vmware.com>
16489
16490 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16491
16492 * server.c (handle_v_run): Free alloced buffer on early return.
16493
e637a4f5
YQ
164942011-03-09 Yao Qi <yao@codesourcery.com>
16495
16496 Revert:
16497 2011-03-04 Yao Qi <yao@codesourcery.com>
16498
16499 * Makefile.in: Remove GNU make feature --directory.
16500
16501 2011-03-05 Yao Qi <yao@codesourcery.com>
16502
16503 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16504 (subdir_do): New make target. Copied from gdb/Makefile.
16505 (maintainer-clean, realclean, distclean, clean): Call corresponding
16506 make targets in common/Makefile.
16507
16508 2011-02-11 Yao Qi <yao@codesourcery.com>
16509
16510 * configure.ac: Call AC_PROG_RANLIB.
16511 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16512 * configure: Regenerate.
16513
e6edda56
JK
165142011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16515
16516 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16517
e5141119
JB
165182011-03-06 Yao Qi <yao@codesourcery.com>
16519
16520 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16521
64794aa4
JB
165222011-03-05 Yao Qi <yao@codesourcery.com>
16523
16524 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16525 (subdir_do): New make target. Copied from gdb/Makefile.
16526 (maintainer-clean, realclean, distclean, clean): Call corresponding
16527 make targets in common/Makefile.
16528
7a762829
YQ
165292011-03-04 Yao Qi <yao@codesourcery.com>
16530
16531 * Makefile.in: Remove GNU make feature --directory.
16532
348af9f7
MS
165332011-03-04 Michael Snyder <msnyder@vmware.com>
16534
16535 * server.c (queue_stop_reply): Call xmalloc not malloc.
16536
165372011-03-02 Michael Snyder <msnyder@vmware.com>
16538
16539 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16540
9f72fee2
MS
165412011-02-28 Michael Snyder <msnyder@vmware.com>
16542
588eebee
MS
16543 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16544 (cmd_qtframe): Ditto.
16545 (cmd_qtbuffer): Ditto.
16546 (cmd_bigqtbuffer): Ditto.
16547
9f72fee2
MS
16548 * utils.c (decimal2str): Initialize 'width' to nine, then
16549 don't mess with it.
16550
8040bd49
UW
165512011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16552
16553 * hostio.c (require_data): Free *data, not data.
16554
7e52cbd0
JK
165552011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16556
16557 * hostio.c (require_data): Use free, not xfree.
16558
9130f83e
MS
165592011-02-27 Michael Snyder <msnyder@vmware.com>
16560
4b812f4e
MS
16561 * server.c (handle_query): Discard unused value.
16562
9130f83e
MS
16563 * hostio.c (require_data): Free malloc memory before returning
16564 error.
16565
69d37113
MS
165662011-02-26 Michael Snyder <msnyder@vmware.com>
16567
16568 * linux-low.c (list_threads): Call closedir for dirent.
16569
35f5825a
MS
165702011-02-27 Michael Snyder <msnyder@vmware.com>
16571
2a589cef
MS
16572 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16573 a case statement falls through.
16574
0adea5f7
MS
16575 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16576
35f5825a
MS
16577 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16578 in comparison.
16579
238f1c74
MS
165802011-02-26 Michael Snyder <msnyder@vmware.com>
16581
16582 * utils.c (decimal2str): Eliminate dead code and dead param.
16583 (pulongest): Drop dead param from call to decimal2str.
16584 (plongest): Ditto.
16585
633ff500
JB
165862011-02-24 Joel Brobecker <brobecker@adacore.com>
16587
16588 Revert the following patch (not approved yet):
16589 2011-02-21 Hui Zhu <teawater@gmail.com>
16590 * tracepoint.c (tp_printf): New function.
16591 (eval_agent_expr): Handle gdb_agent_op_printf.
16592
f9c6ff72
HZ
165932011-02-21 Hui Zhu <teawater@gmail.com>
16594
16595 * tracepoint.c (tp_printf): New function.
16596 (eval_agent_expr): Handle gdb_agent_op_printf.
16597
94d5e490
TT
165982011-02-18 Tom Tromey <tromey@redhat.com>
16599
16600 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16601 (tracepoint.o): Likewise.
16602 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16603 (gdb_agent_op_names): Likewise.
16604
c7f96d2b
TT
166052011-02-18 Tom Tromey <tromey@redhat.com>
16606
16607 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16608 gdb_agent_op_rot>: New constants.
16609 (gdb_agent_op_names): Add pick and roll.
16610 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16611 cases.
16612
0feedb2c
JK
166132011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16614
16615 * aclocal.m4: Regenerated with aclocal-1.11.1.
16616
b3b9301e
PA
166172011-02-14 Pedro Alves <pedro@codesourcery.com>
16618
16619 * server.c (handle_qxfer_traceframe_info): New.
16620 (qxfer_packets): Register "traceframe-info".
16621 (handle_query): Report support for qXfer:traceframe-info:read+.
16622 * tracepoint.c (match_blocktype): New.
16623 (traceframe_find_block_type): Rename to ...
16624 (traceframe_walk_blocks): ... this. Add callback filter argument,
16625 and use it.
16626 (traceframe_find_block_type): New, reimplemented on top of
16627 traceframe_walk_blocks.
16628 (build_traceframe_info_xml): New.
16629 (traceframe_read_info): New.
16630 * server.h (traceframe_read_info): Declare.
16631
4f3e6fb7
YQ
166322011-02-11 Yao Qi <yao@codesourcery.com>
16633
16634 * configure.ac: Call AC_PROG_RANLIB.
16635 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16636 * configure: Regenerate.
16637
764880b7
PA
166382011-02-07 Pedro Alves <pedro@codesourcery.com>
16639
16640 * server.c (gdb_read_memory): Change return semantics to allow
16641 partial transfers.
16642 (handle_search_memory_1): Adjust.
16643 (process_serial_event) <'m' packet>: Handle partial transfers.
16644 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16645
1c79eb8a
PA
166462011-01-28 Pedro Alves <pedro@codesourcery.com>
16647
16648 * regcache.c (init_register_cache): Initialize
16649 regcache->register_status.
16650 (free_register_cache): Release regcache->register_status.
16651 (regcache_cpy): Copy register_status.
16652 (registers_to_string): Print 'x's for unavailable registers.
16653 (supply_register): Mark the register's status valid or
16654 unavailable, depending on whether a buffer was passed in or not.
16655 (supply_register_zeroed): New.
16656 (supply_regblock): Mark the registers' status valid or
16657 unavailable, depending on whether a buffer was passed in or not.
16658 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16659 (struct regcache): New `register_status' field.
16660 (supply_register_zeroed): Declare.
16661 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16662 supply_register_zeroed, rather than passing a NULL buffer to
16663 supply_register.
16664 * tracepoint.c (fetch_traceframe_registers): Update comment.
16665
85724a0e
PA
166662011-01-28 Pedro Alves <pedro@codesourcery.com>
16667
16668 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16669 buffer explicit.
16670
d08aafef
PA
166712011-01-25 Pedro Alves <pedro@codesourcery.com>
16672
16673 * server.h (decode_xfer_write): Change prototype.
16674 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16675 and don't extract the annex here.
16676 * server.c (decode_xfer_read): Remove `annex' parameter,
16677 and don't extract the annex here.
16678 (decode_xfer): New.
16679 (struct qxfer): New.
16680 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16681 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16682 (handle_qxfer_statictrace): New functions, abstracted out from
16683 handle_query, and made to use the struct qxfer interface.
16684 (handle_threads_qxfer_proper): Rename to ...
16685 (handle_qxfer_threads_proper): ... this.
16686 (handle_threads_qxfer): Rename to ...
16687 (handle_qxfer_threads): ... this. Adjust.
16688 (qxfer_packets): New array.
16689 (handle_qxfer): New function.
16690 (handle_query): Use handle_qxfer.
16691
493e2a69
MS
166922011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16693
16694 * gdbreplay.c: Shorten lines of >= 80 columns.
16695 * linux-low.c: Ditto.
16696 * linux-ppc-low.c: Ditto.
16697 * linux-s390-low.c: Ditto.
16698 * linux-sparc-low.c: Ditto.
16699 * linux-x86-low.c: Ditto.
16700 * linux-xtensa-low.c: Ditto.
16701 * mem-break.c: Ditto.
16702 * nto-low.c: Ditto.
16703 * regcache.h: Ditto.
16704 * remote-utils.c: Ditto.
16705 * server.c: Ditto.
16706 * server.h: Ditto.
16707 * thread-db.c: Ditto.
16708 * tracepoint.c: Ditto.
16709 * utils.c: Ditto.
16710 * win32-low.h: Ditto.
16711
44944448
JB
167122011-01-05 Joel Brobecker <brobecker@adacore.com>
16713
16714 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16715 update.
16716
71ce852c
JB
167172011-01-01 Joel Brobecker <brobecker@adacore.com>
16718
16719 * server.c (gdbserver_version): Update copyright year in version
16720 output.
16721 * gdbreplay.c (gdbreplay_version): Ditto.
16722
eb826dc6
MF
167232010-12-29 Jie Zhang <jie.zhang@analog.com>
16724
16725 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16726 * linux-bfin-low.c: New file.
16727 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16728 PT_DATA_ADDR for BFIN targets.
16729 * Makefile.in (SFILES): Add linux-bfin-low.c.
16730 (clean): Remove reg-bfin.c.
16731 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16732 * README: Mention supported Blackfin targets.
16733
39ab222a
MF
167342010-12-23 Mike Frysinger <vapier@gentoo.org>
16735
16736 * .gitignore: New file.
16737
a1f2ce7d
MF
167382010-11-16 Mike Frysinger <vapier@gentoo.org>
16739
16740 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16741
f474844c
JZ
167422010-10-22 Jie Zhang <jie@codesourcery.com>
16743
16744 * Makefile.in: Add FLAGS_TO_PASS variable.
16745 (install): Remove dependency of install-only and recursively
16746 invoke make for install-only.
16747
f1048712
DE
167482010-10-04 Doug Evans <dje@google.com>
16749
16750 * Makefile.in (uninstall): Use $(DESTDIR).
16751
b53a1623
PA
167522010-09-24 Pedro Alves <pedro@codesourcery.com>
16753
e6ee044d
PA
16754 PR gdb/11842
16755
b53a1623
PA
16756 * linux-x86-low.c (compat_siginfo_from_siginfo)
16757 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16758 si_code is < 0. Check for si_code == SI_TIMER before checking for
16759 si_code < 0.
16760
fa1bd1e4
JB
167612010-09-13 Joel Brobecker <brobecker@adacore.com>
16762
16763 * lynx-i386-low.c: New file.
16764 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16765
47fac8f8
JB
167662010-09-13 Joel Brobecker <brobecker@adacore.com>
16767
16768 * lynx-low.c (ptrace_request_to_str): Remove handling for
16769 request values that have been removed in LynxOS 5.x.
16770
1adfc54d
JB
167712010-09-13 Joel Brobecker <brobecker@adacore.com>
16772
16773 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16774 <ptrace.h>
16775
c2a66c29
NS
167762010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16777
16778 * configure.ac: Add --enable-inprocess-agent option.
16779 * configure: Rebuilt.
16780
32fcada3
YQ
167812010-09-06 Yao Qi <yao@codesourcery.com>
16782
16783 * linux-low.c (linux_kill): Remove unused variable.
16784 (linux_stabilize_threads): Likewise.
16785 * server.c (start_inferior): Likewise.
16786 (queue_stop_reply_callback): Likewise.
16787 * tracepoint.c (do_action_at_tracepoint): Likewise.
16788
0cccb683
YQ
167892010-09-06 Yao Qi <yao@codesourcery.com>
16790
16791 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16792 on return.
16793
423ec54c
JK
167942010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16795
16796 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16797
12ac6819
PA
167982010-09-06 Pedro Alves <pedro@codesourcery.com>
16799
16800 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16801 "$(IPA_DEPFILES)".
16802
8ed54b31
JB
168032010-09-01 Joel Brobecker <brobecker@adacore.com>
16804
16805 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16806 gdbserver/lynx-ppc-low.c: New files.
16807 * Makefile.in (lynx_low_h): New variable.
16808 (lynx-low.o, lynx-ppc-low.o): New rules.
16809 * configure.ac: On LynxOS, link with -lnetinet.
16810 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16811 * configure: regenerate.
16812
bb0116a4
JB
168132010-09-01 Joel Brobecker <brobecker@adacore.com>
16814
16815 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16816 * configure.ac: Add check for vasprintf and vsnprintf.
16817 * configure, config.in: Regenerate.
16818 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16819
a778ab81 168202010-09-01 Joel Brobecker <brobecker@adacore.com>
16821
16822 * gdbreplay.c: Move include of alloca.h up, next to include of
16823 malloc.h.
16824 * server.h: Add include of malloc.h.
16825 * mem-break.c: Remove include of malloc.h.
16826 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16827
8b034a19 168282010-09-01 Joel Brobecker <brobecker@adacore.com>
16829
16830 * Makefile.in (memmem.o): Build with -Wno-error.
16831
168322010-09-01 Joel Brobecker <brobecker@adacore.com>
16833
16834 * utils.c (xsnprintf): Make non-static.
16835 * server.h: Add xsnprintf declaration.
16836 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16837 replace calls to snprintf by calls to xsnprintf throughout.
16838
168392010-09-01 Joel Brobecker <brobecker@adacore.com>
16840
16841 * configure.ac: Add configure check for alloca.
16842 * configure, config.in: Regenerate.
16843 * server.h: Include alloca.h if it exists.
16844 * gdbreplay.c: Include alloca.h if it exists.
16845
1a981360
PA
168462010-08-28 Pedro Alves <pedro@codesourcery.com>
16847
16848 * linux-low.c (__SIGRTMIN): Define if not already defined.
16849 (linux_create_inferior): Check for __ANDROID__ rather than
16850 __SIGRTMIN.
16851 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16852 are already deferred.
16853 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16854 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16855 stopped and already has a pending signal to report.
16856 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16857 a pending signal to report or is moving out of a jump pad.
16858 (linux_init_signals): Check for __ANDROID__ rather than
16859 __SIGRTMIN.
16860
b4d51a55
PA
168612010-08-28 Pedro Alves <pedro@codesourcery.com>
16862
16863 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16864 debug_threads check. Avoid a linear search when not doing debug
16865 output.
16866
ec48365d
PA
168672010-08-27 Pedro Alves <pedro@codesourcery.com>
16868
16869 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16870 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16871 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16872 (process_event): Change local fd's type to gdb_fildes_t.
16873 (create_file_handler): Adjust prototype.
16874 (delete_file_handler): Adjust prototype.
16875 (handle_file_event): Adjust prototype. Use pfildes.
16876 (create_file_event): Adjsut prototype.
16877 * remote-utils.c (remote_desc, listen_desc): Change type to
16878 gdb_fildes_t.
16879 * server.h: New gdb_fildes_t typedef.
16880 [USE_WIN32API]: Include winsock2.h.
16881 (delete_file_handler, add_file_handler): Adjust prototypes.
16882 (pfildes): Declare.
16883 * utils.c (pfildes): New.
16884
854d88f0
PA
168852010-08-27 Pedro Alves <pedro@codesourcery.com>
16886
16887 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16888 * configure: Regenerate.
16889
0146f85b
PA
168902010-08-27 Pedro Alves <pedro@codesourcery.com>
16891
16892 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16893 (linux_done_accessing_memory): ... this.
16894 (linux_target_ops): Adjust.
16895 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16896 * nto-low.c (nto_target_ops): Adjust comment.
16897 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16898 * spu-low.c (spu_target_ops): Adjust comment.
16899 * target.h (target_ops): Rename unprepare_to_access_memory field
16900 to done_accessing_memory.
16901 (unprepare_to_access_memory): Rename to ...
16902 (done_accessing_memory): ... this.
16903
90d74c30
PA
169042010-08-26 Pedro Alves <pedro@codesourcery.com>
16905
16906 * linux-low.c (linux_prepare_to_access_memory): New.
16907 (linux_unprepare_to_access_memory): New.
16908 (linux_target_ops): Install them.
16909 * server.c (read_memory): Rename to ...
16910 (gdb_read_memory): ... this. Use
16911 prepare_to_access_memory/prepare_to_access_memory.
16912 (write_memory): Rename to ...
16913 (gdb_write_memory): ... this. Use
16914 prepare_to_access_memory/prepare_to_access_memory.
16915 (handle_search_memory_1): Adjust.
16916 (process_serial_event): Adjust.
16917 * target.h (struct target_ops): New fields
16918 prepare_to_access_memory and unprepare_to_access_memory.
16919 (prepare_to_access_memory, unprepare_to_access_memory): New.
16920 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16921 prepare_to_access_memory/prepare_to_access_memory.
16922 * nto-low.c (nto_target_ops): Adjust.
16923 * spu-low.c (spu_target_ops): Adjust.
16924 * win32-low.c (win32_target_ops): Adjust.
16925
fd467969
PA
169262010-08-26 Pedro Alves <pedro@codesourcery.com>
16927
16928 * Makefile.in (WARN_CFLAGS): Get it from configure.
16929 (WERROR_CFLAGS): New.
16930 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16931 * configure.ac: Introduce --enable-werror, which adds -Werror to
16932 the compiler command line. Enabled by default. Disable with
16933 --disable-werror. Add -Wdeclaration-after-statement
16934 Wpointer-arith and -Wformat-nonliteral to warning flags.
16935 * configure: Regenerate.
16936
331e2f5f
PA
169372010-08-26 Pedro Alves <pedro@codesourcery.com>
16938
16939 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16940
e581f2b4
PA
169412010-08-26 Pedro Alves <pedro@codesourcery.com>
16942
16943 * gdbreplay.c (remote_error): New.
16944 (gdbchar): New.
16945 (expect): Use gdbchar. Check for error reading from GDB.
16946 Clarify sync error output.
16947 (play): Check for errors writing to GDB.
16948 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16949 * remote-utils.c (getpkt): Check for errors writing to the remote
16950 descriptor.
16951
3c11dd79
PA
169522010-08-25 Pedro Alves <pedro@codesourcery.com>
16953
16954 * linux-low.c (linux_wait_1): Move non-debugging code out of
16955 `debug_threads' control.
16956
d20a8ad9
PA
169572010-08-25 Pedro Alves <pedro@codesourcery.com>
16958
16959 * linux-low.c (linux_wait_1): Don't set last_status here.
16960 * server.c (push_event, queue_stop_reply_callback): Assert we're
16961 not pushing a TARGET_WAITKIND_IGNORE event.
16962 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16963 (myresume, handle_target_event): Set the thread's last_resume_kind
16964 and last_status from the target returned status.
16965
964e4306
PA
169662010-08-25 Pedro Alves <pedro@codesourcery.com>
16967
16968 PR threads/10729
16969
16970 * linux-x86-low.c (update_debug_registers_callback): New.
16971 (i386_dr_low_set_addr): Use it.
16972 (i386_dr_low_get_addr): New.
16973 (i386_dr_low_set_control): Use update_debug_registers_callback.
16974 (i386_dr_low_get_control): New.
16975 (i386_dr_low_get_status): Adjust.
16976 * linux-low.c (linux_stop_lwp): New.
16977 * linux-low.h (linux_stop_lwp): Declare.
16978
16979 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16980 argument instead of a i386_debug_reg_state.
16981 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16982 a i386_debug_reg_state.
16983 (i386_insert_aligned_watchpoint): Adjust.
16984 (i386_remove_aligned_watchpoint): Adjust.
16985 (i386_low_stopped_data_address): Read the debug registers from the
16986 inferior instead of from the mirrors.
16987 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16988 (i386_dr_low_get_addr): Declare.
16989 (i386_dr_low_get_control): Declare.
16990 (i386_dr_low_get_status): Change prototype.
16991
16992 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16993 (i386_dr_low_get_addr): New.
16994 (i386_dr_low_get_control): New.
16995 (i386_dr_low_get_status): Adjust prototype. Return
16996 dr_status_mirror.
16997 (i386_initial_stuff): Clear dr_status_mirror and
16998 dr_control_mirror.
16999 (i386_get_thread_context): Adjust.
17000 (i386_set_thread_context): Adjust.
17001 (i386_thread_added): Adjust.
17002
5f21a75b
PA
170032010-08-24 Pedro Alves <pedro@codesourcery.com>
17004
17005 * linux-low.h (linux_thread_area): Delete declaration.
17006
3e4c1235
TS
170072010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17008
17009 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17010 after its termination.
17011
1971b033
PA
170122010-08-09 Pedro Alves <pedro@codesourcery.com>
17013
17014 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17015 (gdb_wants_all_stopped): Delete.
17016 (linux_wait_1): Don't call them.
17017 * server.c (handle_v_cont): Tag all threads as want-stopped.
17018 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17019 stopped as "client-wants-stopped".
17020
310444ac
PA
170212010-07-31 Pedro Alves <pedro@codesourcery.com>
17022
17023 * Makefile.in (signals_h): New.
17024 (server_h): Depend on it.
17025 (server.o): Don't depend on $(signals_def).
17026 (signals.o): Depend on $(signals_def).
17027
a19cae16
JK
170282010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17029
17030 * Makefile.in (signals_def): New.
17031 (server_h): Append include/gdb/signals.h and signals_def.
17032 (server.o): Append signals_def.
17033
30d50328
JK
170342010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17035
17036 * server.c (handle_target_event): Use target_signal_to_host for
17037 resume_info.sig initialization.
17038 * target.h (struct thread_resume) <sig>: New comment.
17039
5c3216e2
OS
170402010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17041
c6f46ca0
OS
17042 * server.c (handle_query): strcpy() the returned string from paddress()
17043 instead of sprintf().
5c3216e2
OS
17044 * utils.c (paddress): Return phex_nz().
17045
6bd31874
JB
170462010-07-07 Joel Brobecker <brobecker@adacore.com>
17047
17048 * server.c (handle_v_cont): Call mourn_inferior if process
17049 just exited.
17050 (myresume): Likewise.
17051
0fb4aa4b
PA
170522010-07-01 Pedro Alves <pedro@codesourcery.com>
17053
17054 Static tracepoints, and integration with UST.
17055
17056 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17057 * mem-break.c (uninsert_all_breakpoints)
17058 (reinsert_all_breakpoints): New.
17059 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17060 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17061 (gdb_agent_ust_loaded, helper_thread_id)
17062 (gdb_agent_helper_thread_id): New macros.
17063 (struct ipa_sym_addresses): Add addr_ust_loaded,
17064 addr_helper_thread_id, addr_cmd_buf.
17065 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17066 (in_process_agent_loaded_ust): New.
17067 (write_e_ust_not_loaded): New.
17068 (maybe_write_ipa_ust_not_loaded): New.
17069 (struct collect_static_trace_data_action): New.
17070 (enum tracepoint_type) <static_tracepoint>: New.
17071 (struct tracepoint) <handle>: Mention static tracepoints.
17072 (struct static_tracepoint_ctx): New.
17073 (CMD_BUF_SIZE): New.
17074 (add_tracepoint_action): Handle static tracepoint actions.
17075 (unprobe_marker_at): New.
17076 (clear_installed_tracepoints): Handle static tracepoints.
17077 (cmd_qtdp): Handle static tracepoints.
17078 (probe_marker_at): New.
17079 (cmd_qtstart): Handle static tracepoints.
17080 (response_tracepoint): Handle static tracepoints.
17081 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17082 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17083 (get_context_regcache): Handle static tracepoints.
17084 (do_action_at_tracepoint): Handle static tracepoint actions.
17085 (traceframe_find_block_type): Handle static trace data blocks.
17086 (traceframe_read_sdata): New.
17087 (download_tracepoints): Download static tracepoint actions.
17088 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17089 (GDB_PROBE_NAME): New.
17090 (ust_ops): New.
17091 (GET_UST_SYM): New.
17092 (USTF): New.
17093 (dlsym_ust): New.
17094 (ust_marker_to_static_tracepoint): New.
17095 (gdb_probe): New.
17096 (collect_ust_data_at_tracepoint): New.
17097 (gdb_ust_probe): New.
17098 (UNIX_PATH_MAX, SOCK_DIR): New.
17099 (gdb_ust_connect_sync_socket): New.
17100 (resume_thread, stop_thread): New.
17101 (run_inferior_command): New.
17102 (init_named_socket): New.
17103 (gdb_ust_socket_init): New.
17104 (cstr_to_hexstr): New.
17105 (next_st): New.
17106 (first_marker, next_marker): New.
17107 (response_ust_marker): New.
17108 (cmd_qtfstm, cmd_qtsstm): New.
17109 (unprobe_marker_at, probe_marker_at): New.
17110 (cmd_qtstmat, gdb_ust_thread): New.
17111 (gdb_ust_init): New.
17112 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17113 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17114 (ST_REGENTRY): New.
17115 (x86_64_st_collect_regmap): New.
17116 (X86_64_NUM_ST_COLLECT_GREGS): New.
17117 (AMD64_RIP_REGNUM): New.
17118 (supply_static_tracepoint_registers): New.
17119 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17120 (ST_REGENTRY): New.
17121 (i386_st_collect_regmap): New.
17122 (i386_NUM_ST_COLLECT_GREGS): New.
17123 (supply_static_tracepoint_registers): New.
17124 * server.c (handle_query): Handle qXfer:statictrace:read.
17125 <qSupported>: Report support for StaticTracepoints, and
17126 qXfer:statictrace:read features.
17127 * server.h (traceframe_read_sdata)
17128 (supply_static_tracepoint_registers): Declare.
17129 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17130 (unpack_varlen_hex): Include in IPA build.
17131 * Makefile.in (ustlibs, ustinc): New.
17132 (IPA_OBJS): Add remote-utils-ipa.o.
17133 ($(IPA_LIB)): Link -ldl and -lpthread.
17134 (UST_CFLAGS): New.
17135 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17136 * config.in, configure: Regenerate.
17137
9e4344e5
PA
171382010-06-20 Ian Lance Taylor <iant@google.com>
17139 Pedro Alves <pedro@codesourcery.com>
17140
17141 * linux-x86-low.c (always_true): Delete.
17142 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17143 trying to fool the compiler with always_true.
17144
c6beb2cb
PA
171452010-06-20 Pedro Alves <pedro@codesourcery.com>
17146
17147 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17148 conditions in gdbserver.
17149
d2ed6730
UW
171502010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17151
17152 * spu-low.c (spu_read_memory): Wrap around local store limit.
17153 (spu_write_memory): Likewise.
17154
4e29fb54
PA
171552010-06-15 Pedro Alves <pedro@codesourcery.com>
17156
17157 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17158 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17159 LONGEST uses.
17160 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17161 uses.
17162 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17163 uses with LONGEST uses.
17164
6a271cae
PA
171652010-06-14 Stan Shebs <stan@codesourcery.com>
17166 Pedro Alves <pedro@codesourcery.com>
17167
17168 Bytecode compiler.
17169
17170 * linux-x86-low.c: Include limits.h.
17171 (add_insns): New.
17172 (always_true): New.
17173 (EMIT_ASM): New.
17174 (EMIT_ASM32): New.
17175 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17176 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17177 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17178 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17179 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17180 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17181 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17182 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17183 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17184 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17185 (amd64_emit_void_call_2): New.
17186 (amd64_emit_ops): New.
17187 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17188 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17189 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17190 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17191 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17192 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17193 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17194 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17195 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17196 (i386_emit_stack_adjust, i386_emit_int_call_1)
17197 (i386_emit_void_call_2): New.
17198 (i386_emit_ops): New.
17199 (x86_emit_ops): New.
17200 (the_low_target): Install x86_emit_ops.
17201 * server.h (struct emit_ops): New.
17202 (get_raw_reg_func_addr): Declare.
17203 (current_insn_ptr, emit_error): Declare.
17204 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17205 (set_trace_state_variable_value): New defines.
17206 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17207 addr_get_trace_state_variable_value and
17208 addr_set_trace_state_variable_value.
17209 (symbol_list): New fields for get_raw_reg,
17210 get_trace_state_variable_value and set_trace_state_variable_value.
17211 (condfn): New typedef.
17212 (struct tracepoint): New field `compiled_cond'.
17213 (do_action_at_tracepoint): Clear compiled_cond.
17214 (get_trace_state_variable_value, set_trace_state_variable_value):
17215 Export in the IPA.
17216 (condition_true_at_tracepoint): If there's a compiled condition,
17217 run that.
17218 (current_insn_ptr, emit_error): New globals.
17219 (struct bytecode_address): New.
17220 (get_raw_reg_func_addr): New.
17221 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17222 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17223 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17224 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17225 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17226 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17227 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17228 (compile_tracepoint_condition, compile_bytecodes): New.
17229 * target.h (emit_ops): Forward declare.
17230 (struct target_ops): New field emit_ops.
17231 (target_emit_ops): New.
17232 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17233 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17234 * linux-low.c (linux_emit_ops): New.
17235 (linux_target_ops): Install it.
17236 * linux-low.h (struct linux_target_ops): New field emit_ops.
17237
92b72907
UW
172382010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17239
17240 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17241 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17242
fa593d66
PA
172432010-06-01 Pedro Alves <pedro@codesourcery.com>
17244 Stan Shebs <stan@codesourcery.com>
17245
17246 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17247 (all): Depend on $(extra_libraries).
17248 (install-only): Install the IPA.
17249 (IPA_OBJS, IPA_LIB): New.
17250 (clean): Remove the IPA lib.
17251 (IPAGENT_CFLAGS): New.
17252 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17253 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17254 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17255 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17256 * configure.ac: Check for atomic builtins support in the compiler.
17257 (IPA_DEPFILES, extra_libraries): Define.
17258 * configure.srv (ipa_obj): Add description.
17259 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17260 (i[34567]86-*-linux*): Set ipa_obj.
17261 (x86_64-*-linux*): Set ipa_obj.
17262 * linux-low.c (stabilizing_threads): New.
17263 (supports_fast_tracepoints): New.
17264 (linux_detach): Stabilize threads before detaching.
17265 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17266 the lwp is either not stabilizing, or is moving out of a jump pad.
17267 (linux_fast_tracepoint_collecting): New.
17268 (maybe_move_out_of_jump_pad): New.
17269 (enqueue_one_deferred_signal): New.
17270 (dequeue_one_deferred_signal): New.
17271 (linux_wait_for_event_1): If moving out of a jump pad, defer
17272 pending signals to later.
17273 (linux_stabilize_threads): New.
17274 (linux_wait_1): Check if threads need moving out of jump pads, and
17275 do it if so.
17276 (stuck_in_jump_pad_callback): New.
17277 (move_out_of_jump_pad_callback): New.
17278 (lwp_running): New.
17279 (linux_resume_one_lwp): Handle moving out of jump pads.
17280 (linux_set_resume_request): Dequeue deferred signals.
17281 (need_step_over_p): Also step over fast tracepoint jumps.
17282 (start_step_over): Also uninsert fast tracepoint jumps.
17283 (finish_step_over): Also reinsert fast tracepoint jumps.
17284 (linux_install_fast_tracepoint_jump): New.
17285 (linux_target_ops): Install linux_stabilize_threads and
17286 linux_install_fast_tracepoint_jump_pad.
17287 * linux-low.h (linux_target_ops) <get_thread_area,
17288 install_fast_tracepoint_jump_pad>: New fields.
17289 (struct lwp_info) <collecting_fast_tracepoint,
17290 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17291 (linux_get_thread_area): Declare.
17292 * linux-x86-low.c (jump_insn): New.
17293 (x86_get_thread_area): New.
17294 (append_insns): New.
17295 (push_opcode): New.
17296 (amd64_install_fast_tracepoint_jump_pad): New.
17297 (i386_install_fast_tracepoint_jump_pad): New.
17298 (x86_install_fast_tracepoint_jump_pad): New.
17299 (the_low_target): Install x86_get_thread_area and
17300 x86_install_fast_tracepoint_jump_pad.
17301 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17302 (struct fast_tracepoint_jump): New.
17303 (fast_tracepoint_jump_insn): New.
17304 (fast_tracepoint_jump_shadow): New.
17305 (find_fast_tracepoint_jump_at): New.
17306 (fast_tracepoint_jump_here): New.
17307 (delete_fast_tracepoint_jump): New.
17308 (set_fast_tracepoint_jump): New.
17309 (uninsert_fast_tracepoint_jumps_at): New.
17310 (reinsert_fast_tracepoint_jumps_at): New.
17311 (set_breakpoint_at): Use write_inferior_memory.
17312 (uninsert_raw_breakpoint): Use write_inferior_memory.
17313 (check_mem_read): Mask out fast tracepoint jumps.
17314 (check_mem_write): Mask out fast tracepoint jumps.
17315 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17316 (set_fast_tracepoint_jump): Declare.
17317 (delete_fast_tracepoint_jump)
17318 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17319 (reinsert_fast_tracepoint_jumps_at): Declare.
17320 * regcache.c: Don't compile many functions when building the
17321 in-process agent library.
17322 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17323 the register buffer in the heap.
17324 (free_register_cache): If the register buffer isn't owned by the
17325 regcache, don't free it.
17326 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17327 pre-existing register caches.
17328 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17329 type.
17330 (convert_ascii_to_int): : Constify `from' parameter type.
17331 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17332 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17333 the needed buffer in-place.
17334 (relocate_instruction): New.
17335 * server.c (handle_query) <qSymbols>: If the target supports
17336 tracepoints, give it a chance of looking up symbols. Report
17337 support for fast tracepoints.
17338 (handle_status): Stabilize threads.
17339 (process_serial_event): Adjust.
17340 * server.h (struct fast_tracepoint_jump): Forward declare.
17341 (struct process_info) <fast_tracepoint_jumps>: New field.
17342 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17343 (decode_X_packet, decode_M_packet): Adjust.
17344 (relocate_instruction): Declare.
17345 (in_process_agent_loaded): Declare.
17346 (tracepoint_look_up_symbols): Declare.
17347 (struct fast_tpoint_collect_status): Declare.
17348 (fast_tracepoint_collecting): Declare.
17349 (force_unlock_trace_buffer): Declare.
17350 (handle_tracepoint_bkpts): Declare.
17351 (initialize_low_tracepoint)
17352 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17353 * target.h (struct target_ops) <stabilize_threads,
17354 install_fast_tracepoint_jump_pad>: New fields.
17355 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17356 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17357 [HAVE_STDINT_H]: Include stdint.h.
17358 (trace_debug_1): Rename to ...
17359 (trace_vdebug): ... this.
17360 (trace_debug): Rename to ...
17361 (trace_debug_1): ... this. Add `level' parameter.
17362 (trace_debug): New.
17363 (ATTR_USED, ATTR_NOINLINE): New.
17364 (IP_AGENT_EXPORT): New.
17365 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17366 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17367 (about_to_request_buffer_space, trace_buffer_is_full)
17368 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17369 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17370 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17371 (traceframe_write_count, traceframes_created)
17372 (trace_state_variables)
17373 New renaming defines.
17374 (struct ipa_sym_addresses): New.
17375 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17376 (symbol_list): New.
17377 (ipa_sym_addrs): New.
17378 (all_tracepoint_symbols_looked_up): New.
17379 (in_process_agent_loaded): New.
17380 (write_e_ipa_not_loaded): New.
17381 (maybe_write_ipa_not_loaded): New.
17382 (tracepoint_look_up_symbols): New.
17383 (debug_threads) [IN_PROCESS_AGENT]: New.
17384 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17385 (UNKNOWN_SIDE_EFFECTS): New.
17386 (stop_tracing): New.
17387 (flush_trace_buffer): New.
17388 (stop_tracing_bkpt): New.
17389 (flush_trace_buffer_bkpt): New.
17390 (read_inferior_integer): New.
17391 (read_inferior_uinteger): New.
17392 (read_inferior_data_pointer): New.
17393 (write_inferior_data_pointer): New.
17394 (write_inferior_integer): New.
17395 (write_inferior_uinteger): New.
17396 (struct collect_static_trace_data_action): Delete.
17397 (enum tracepoint_type): New.
17398 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17399 <actions_str, step_actions, step_actions_str>: Only include in
17400 GDBserver.
fa593d66
PA
17401 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17402 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17403 (tracepoints): Use IP_AGENT_EXPORT.
17404 (last_tracepoint): Don't include in the IPA.
17405 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17406 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17407 (alloced_trace_state_variables): New.
17408 (trace_state_variables): Use IP_AGENT_EXPORT.
17409 (traceframe_t): Delete unused variable.
17410 (circular_trace_buffer): Don't include in the IPA.
17411 (trace_buffer_start): Delete.
17412 (struct trace_buffer_control): New.
17413 (trace_buffer_free): Delete.
17414 (struct ipa_trace_buffer_control): New.
17415 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17416 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17417 New.
17418 (trace_buffer_ctrl): New.
17419 (TRACE_BUFFER_CTRL_CURR): New.
17420 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17421 Reimplement as macros.
17422 (trace_buffer_wrap): Delete.
17423 (traceframe_write_count, traceframe_read_count)
17424 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17425 (struct tracepoint_hit_ctx) <type>: New field.
17426 (struct fast_tracepoint_ctx): New.
17427 (memory_barrier): New.
17428 (cmpxchg): New.
17429 (record_tracepoint_error): Update atomically in the IPA.
17430 (clear_inferior_trace_buffer): New.
17431 (about_to_request_buffer_space): New.
17432 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17433 updating the same buffer.
17434 (add_tracepoint): Default the tracepoint's type to trap
17435 tracepoint, and orig_size to -1.
17436 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17437 internal variables.
17438 (create_trace_state_variable): New parameter `gdb'. Handle it.
17439 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17440 (cmd_qtdp): Handle fast tracepoints.
17441 (cmd_qtdv): Adjust.
17442 (max_jump_pad_size): New.
17443 (gdb_jump_pad_head): New.
17444 (get_jump_space_head): New.
17445 (claim_jump_space): New.
17446 (sort_tracepoints): New.
17447 (MAX_JUMP_SIZE): New.
17448 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17449 IPA.
17450 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17451 support. Upload fast traceframes, and delete internal IPA
17452 breakpoints.
17453 (stop_tracing_handler): New.
17454 (flush_trace_buffer_handler): New.
17455 (cmd_qtstop): Upload fast tracepoints.
17456 (response_tracepoint): Handle fast tracepoints.
17457 (tracepoint_finished_step): Upload fast traceframes. Set the
17458 tracepoint hit context's tracepoint type.
17459 (handle_tracepoint_bkpts): New.
17460 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17461 type. Add comment about fast tracepoints.
17462 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17463 non-existing action_str field.
17464 (get_context_regcache): Handle fast tracepoints.
17465 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17466 to the regcache.
17467 (fast_tracepoint_from_jump_pad_address): New.
17468 (fast_tracepoint_from_ipa_tpoint_address): New.
17469 (collecting_t): New.
17470 (force_unlock_trace_buffer): New.
17471 (fast_tracepoint_collecting): New.
17472 (collecting): New.
17473 (gdb_collect): New.
17474 (write_inferior_data_ptr): New.
17475 (target_tp_heap): New.
17476 (target_malloc): New.
17477 (download_agent_expr): New.
17478 (UALIGN): New.
17479 (download_tracepoints): New.
17480 (download_trace_state_variables): New.
17481 (upload_fast_traceframes): New.
17482 (IPA_FIRST_TRACEFRAME): New.
17483 (IPA_NEXT_TRACEFRAME_1): New.
17484 (IPA_NEXT_TRACEFRAME): New.
17485 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17486 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17487 (gdb_jump_pad_buffer_end): New.
17488 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17489 (initialize_tracepoint): Adjust.
17490 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17491 buffer. Initialize the low module.
17492 * utils.c (PREFIX, TOOLNAME): New.
17493 (malloc_failure): Use PREFIX.
17494 (error): In the IPA, an error causes an exit.
17495 (fatal, warning): Use PREFIX.
17496 (internal_error): Use TOOLNAME.
17497 (NUMCELLS): Increase to 10.
17498 * configure, config.in: Regenerate.
17499
d149dd1d
PA
175002010-06-01 Pedro Alves <pedro@codesourcery.com>
17501
17502 * server.c (handle_query) <qSupported>: Do two passes over the
17503 qSupported string to avoid nesting strtok.
17504
f6528abd
JK
175052010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17506
17507 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17508 (CDEPS): New.
17509 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17510 -Wl,--dynamic-list.
17511 * configure: Regenerate.
17512 * proc-service.list: New.
17513
ca2a87a0
JK
175142010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17515
17516 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17517 New comment.
17518
363a6e9f
OS
175192010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17520
17521 * gdbreplay.c (remote_open): Check error return from socket() call by
17522 its equality to -1 not by it being negative.
17523 * remote-utils.c (remote_open): Likewise.
17524
d23b6cb1
PA
175252010-05-23 Pedro Alves <pedro@codesourcery.com>
17526
17527 * config.h: Regenerate.
17528
28d3cf85
MK
175292010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17530
17531 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17532 doesn't provide PTRACE_GET_THREAD_AREA.
17533
fea36a59
MK
175342010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17535
17536 * linux-m68k-low.c: Include <asm/ptrace.h>
17537 (ps_get_thread_area): Implement.
17538
24b066ba
DE
175392010-05-03 Doug Evans <dje@google.com>
17540
17541 * event-loop.c (struct callback_event): New struct.
17542 (callback_list): New global.
17543 (append_callback_event, delete_callback_event): New functions.
17544 (process_callback): New function.
17545 (start_event_loop): Call it.
17546 * remote-utils.c (NOT_SCHEDULED): Define.
17547 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17548 moved out of readchar.
17549 (readchar): Rewrite. Call reschedule before returning.
17550 (reset_readchar): New function.
17551 (remote_close): Call it.
17552 (process_remaining, reschedule): New functions.
17553 * server.h (callback_handler_func): New typedef.
17554 (append_callback_event, delete_callback_event): Declare.
17555
9836d6ea
PA
175562010-05-03 Pedro Alves <pedro@codesourcery.com>
17557
17558 * proc-service.c (ps_pglobal_lookup): Use
17559 thread_db_look_up_one_symbol.
17560 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17561 parameter. Use it instead of all_symbols_looked_up.
17562 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17563 field.
17564 (all_symbols_looked_up): Don't declare.
17565 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17566 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17567 field.
17568 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17569 Set all_symbols_looked_up here.
17570 (thread_db_look_up_one_symbol): New.
17571 (thread_db_get_tls_address): Adjust.
17572 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17573 thread_db object on the heap, and tentatively set it in the
17574 process structure.
17575 (thread_db_init): Don't set all_symbols_looked_up here.
17576 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17577
7984d532
PA
175782010-05-03 Pedro Alves <pedro@codesourcery.com>
17579
17580 * linux-low.c (linux_kill, linux_detach): Adjust.
17581 (status_pending_p_callback): Remove redundant statement. Check
17582 for !TARGET_WAITIKIND_IGNORE, instead of
17583 TARGET_WAITKIND_STOPPED.
17584 (handle_tracepoints): Make sure LWP is locked. Adjust.
17585 (linux_wait_for_event_1): Adjust.
17586 (linux_cancel_breakpoints): New.
17587 (unsuspend_one_lwp): New.
17588 (unsuspend_all_lwps): New.
17589 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17590 (send_sigstop_callback): Change return type to int, add new
17591 `except' parameter and handle it.
17592 (suspend_and_send_sigstop_callback): New.
17593 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17594 pass them down. If SUSPEND, also increment the lwp's suspend
17595 count.
17596 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17597 (need_step_over_p): Don't consider suspended LWPs.
17598 (start_step_over): Adjust.
17599 (proceed_one_lwp): Change return type to int, add new `except'
17600 parameter and handle it.
17601 (unsuspend_and_proceed_one_lwp): New.
17602 (proceed_all_lwps): Use find_inferior instead of
17603 for_each_inferior.
17604 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17605 also decrement the suspend count of LWPs. Pass `except' down,
17606 instead of hacking its suspend count.
17607 (linux_pause_all): Add `freeze' parameter. Adjust.
17608 (linux_unpause_all): New.
17609 (linux_target_ops): Install linux_unpause_all.
17610 * server.c (handle_status): Adjust.
17611 * target.h (struct target_ops): New fields `unpause_all' and
17612 `cancel_breakpoints'. Add new parameter to `pause_all'.
17613 (pause_all): Add new `freeze' parameter.
17614 (unpause_all): New.
17615 (cancel_breakpoints): New.
17616 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17617 cancel breakpoints.
17618 (cmd_qtstart): Pause threads.
17619 (stop_tracing): Pause threads, and cancel breakpoints.
17620 * win32-low.c (win32_target_ops): Adjust.
17621
e471f25b
PA
176222010-05-03 Pedro Alves <pedro@codesourcery.com>
17623
17624 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17625 the inferior right away from here...
17626 (linux_wait_1): ... to here, and adjust to check the thread's
17627 last_resume_kind instead of the lwp's step or stop_expected flags.
17628
1915ef4f
PA
176292010-05-02 Pedro Alves <pedro@codesourcery.com>
17630
17631 * README: Use consistent `GDB' and `GDBserver' spellings.
17632
f9e39928
PA
176332010-05-02 Pedro Alves <pedro@codesourcery.com>
17634
17635 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17636 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17637 (linux_detach_one_lwp): Assume the lwp is stopped.
17638 (any_thread_of): Delete.
17639 (linux_detach): Stop all lwps here. Don't blindly delete all
17640 breakpoints.
17641 (delete_lwp_callback): New.
17642 (linux_mourn): Delete all lwps of the process that is gone.
17643 (linux_wait_1): Don't delete the last lwp of the process here.
17644 * mem-break.h (mark_breakpoints_out): Declare.
17645 * mem-break.c (mark_breakpoints_out): New.
17646 (free_all_breakpoints): Use it.
17647 * server.c (handle_target_event): If the process is gone, mark
17648 breakpoints out.
17649 * thread-db.c (struct thread_db) <create_bp>: New field.
17650 (thread_db_enable_reporting): Fix prototype. Store a thread event
17651 breakpoint reference in the thread_db struct.
17652 (thread_db_load_search): Clear the thread_db object.
17653 (try_thread_db_load_1): Ditto.
17654 (switch_to_process): New.
17655 (disable_thread_event_reporting): Use it.
17656 (remove_thread_event_breakpoints): New.
17657 (thread_db_detach, thread_db_mourn): Use it.
17658
1e7fc18c
PA
176592010-05-01 Pedro Alves <pedro@codesourcery.com>
17660
17661 * linux-low.c (linux_enable_event_reporting): New.
17662 (linux_wait_for_event_1, handle_extended_wait): Use it.
17663
02fc4de7
PA
176642010-04-30 Pedro Alves <pedro@codesourcery.com>
17665
17666 * linux-low.c (linux_kill_one_lwp, linux_kill)
17667 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17668 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17669 SIGSTOP even if the LWP is stopped.
17670 (send_sigstop_callback): New.
17671 (stop_all_lwps): Use send_sigstop_callback instead.
17672 (linux_resume_one_thread): Adjust.
17673 (proceed_one_lwp): Still proceed an LWP that the client has
17674 requested to stop, if we haven't reported it as stopped yet. Make
17675 sure that LWPs the client want stopped, have a pending SIGSTOP.
17676
bc3b5632
DE
176772010-04-26 Doug Evans <dje@google.com>
17678
ae1ada35
DE
17679 * server.c (handle_general_set): Make static.
17680
bc3b5632
DE
17681 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17682 Print received char after testing for error/eof instead of before.
17683 (input_interrupt): Tweak comment.
17684
65730243
DE
176852010-04-23 Doug Evans <dje@google.com>
17686
17687 * server.c (start_inferior): Print inferior argv if --debug.
17688
a8ae7dc0
AR
176892010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17690
17691 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17692 * nto-x86-low.c: Include server.h
17693
1c07cc19
PM
176942010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17695
17696 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17697 be consistent with other sources of this directory.
17698 (init_registers_amd64): Correct name of source file of this function
17699 in the comment.
17700
e0a61e09
PM
177012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17702
17703 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17704 64-bit executables.
17705
54709339
PM
177062010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17707
17708 * win32-i386-low.c: Add 64-bit support.
17709 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17710 (init_registers_amd64): Declare.
17711 (mappings): Add 64-bit version of array.
17712 (init_windows_x86): New function.
17713 (the_low_target): Change init_arch field to init_windows_x86.
17714
e8f0053d
PM
177152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17716
17717 * win32-low.c: Adapt to support also 64-bit architecture.
17718 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17719 (get_image_name): Use SIZE_T type for local variable `done'.
17720 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17721 (toolhelp_get_dll_name): Idem.
17722 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17723 Use uintptr_t typecast to avoid warning.
17724 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17725 (handle_exception): Use phex_nz to avoid warning.
17726 (win32_wait): Remove unused local variable `process'.
17727
c481e77e
PM
177282010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17729
17730 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17731 `amd64-avx.o'.
17732
12ea4b69
PM
177332010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17734
17735 * configure.ac: Use `ws2_32' library for srv_mingw.
17736 * configure: Regenerate.
17737 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17738 * remote-utils.c: Likewise.
17739
f6d1620c
L
177402010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17741
17742 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17743 if __x86_64__ is defined.
17744
8e642873
PM
177452010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17746
17747 * configure: Regenerate.
17748
711e434b
PM
177492010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17750
17751 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17752 * target.h (target_ops): New get_tib_address field.
17753 * win32-low.h (win32_thread_info): Add thread_local_base field.
17754 * win32-low.c (child_add_thread): Add tlb argument.
17755 Set thread_local_base field to TLB.
17756 (get_child_debug_event): Adapt to child_add_thread change.
17757 (win32_get_tib_address): New function.
17758 (win32_target_ops): Set get_tib_address field to
17759 win32_get_tib_address.
17760 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17761
505106cd
PA
177622010-04-12 Pedro Alves <pedro@codesourcery.com>
17763
505106cd
PA
17764 * linux-low.c (linux_mourn): Also remove the process.
17765 * server.c (handle_target_event): Don't remove the process here.
17766 * nto-low.c (nto_mourn): New.
17767 (nto_target_ops): Install it.
17768 * spu-low.c (spu_mourn): New.
17769 (spu_target_ops): Install it.
17770 * win32-low.c (win32_mourn): New.
17771 (win32_target_ops): Install it.
17772
e8470a06
PA
177732010-04-12 Pedro Alves <pedro@codesourcery.com>
17774
17775 * server.h (buffer_xml_printf): Remove redundant `;'.
17776
45ba0d02
PA
177772010-04-12 Pedro Alves <pedro@codesourcery.com>
17778
17779 * regcache.c (set_register_cache): Invalidate regcaches before
17780 changing the register cache layout.
17781 (regcache_invalidate_one): Allow a NULL regcache.
17782 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17783 regcaches before changing the register cache layout or the target
17784 regsets.
17785
59e04013
L
177862010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17787
17788 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17789 variable warning on Linux/x86-64.
17790
8336d594
PA
177912010-04-11 Pedro Alves <pedro@codesourcery.com>
17792
17793 GDBserver disconnected tracing support.
17794
17795 * linux-low.c (linux_remove_process): Delete.
17796 (add_lwp): Don't set last_resume_kind here.
17797 (linux_kill): Use `mourn'.
17798 (linux_detach): Use `thread_db_detach', and `mourn'.
17799 (linux_mourn): New.
17800 (linux_attach_lwp_1): Adjust comment.
17801 (linux_attach): last_resume_kind moved the thread_info; adjust.
17802 (status_pending_p_callback): Adjust.
17803 (linux_wait_for_event_1): Adjust.
17804 (count_events_callback, select_singlestep_lwp_callback)
17805 (select_event_lwp_callback, cancel_breakpoints_callback)
17806 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17807 (proceed_one_lwp): Adjust.
17808 (linux_async): Add debug output.
17809 (linux_thread_stopped): New.
17810 (linux_pause_all): New.
17811 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17812 linux_pause_all.
17813 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17814 (thread_db_free): Delete declaration.
17815 (thread_db_detach, thread_db_mourn): Declare.
17816 * thread-db.c (thread_db_init): Use thread_db_mourn.
17817 (thread_db_free): Delete, split in two.
17818 (disable_thread_event_reporting): New.
17819 (thread_db_detach): New.
17820 (thread_db_mourn): New.
17821
17822 * server.h (struct thread_info) <last_resume_kind>: New field.
17823 <attached>: Add comment.
17824 <gdb_detached>: New field.
17825 (handler_func): Change return type to int.
17826 (handle_serial_event, handle_target_event): Ditto.
17827 (gdb_connected): Declare.
17828 (tracing): Delete.
17829 (disconnected_tracing): Declare.
17830 (stop_tracing): Declare.
17831
17832 * server.c (handle_query) <qSupported>: Report support for
17833 disconnected tracing.
17834 (queue_stop_reply_callback): Account for running threads.
17835 (gdb_wants_thread_stopped): New.
17836 (gdb_wants_all_threads_stopped): New.
17837 (gdb_reattached_process): New.
17838 (handle_status): Clear the `gdb_detached' flag of all processes.
17839 In all-stop, stop all threads.
17840 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17841 (process_serial_event): If the remote connection breaks, or if an
17842 exit was forced with "monitor exit", force an event loop exit.
17843 Handle disconnected tracing on detach.
17844 (handle_serial_event): Adjust.
17845 (handle_target_event): If GDB isn't connected, forward events back
17846 to the inferior, unless the last process exited, in which case,
17847 exit gdbserver. Adjust interface.
17848
17849 * remote-utils.c (remote_open): Don't block in accept. Instead
17850 register an event loop source on the listen socket file
17851 descriptor. Refactor bits into ...
17852 (listen_desc): ... this new global.
17853 (gdb_connected): ... this new function.
17854 (enable_async_notification): ... this new function.
17855 (handle_accept_event): ... this new function.
17856 (remote_close): Clear remote_desc.
17857
17858 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17859
17860 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17861 New fields.
17862 (mourn_inferior): Define.
17863 (target_process_qsupported): Avoid the dangling else problem.
17864 (thread_stopped): Define.
17865 (pause_all): Define.
17866 (target_waitstatus_to_string): Declare.
17867 * target.c (target_waitstatus_to_string): New.
17868
17869 * tracepoint.c (tracing): Make extern.
17870 (disconnected_tracing): New.
17871 (stop_tracing): Make extern. Handle tracing stops due to GDB
17872 disconnecting.
17873 (cmd_qtdisconnected): New.
17874 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17875 (handle_tracepoint_general_set): Handle QTDisconnected.
17876
17877 * event-loop.c (event_handler_func): Change return type to int.
17878 (process_event): Bail out if the event handler wants the event
17879 loop to stop.
17880 (handle_file_event): Ditto.
17881 (start_event_loop): Bail out if the event handler wants the event
17882 loop to stop.
17883
17884 * nto-low.c (nto_target_ops): Adjust.
17885 * spu-low.c (spu_wait): Don't remove the process here.
17886 (spu_target_ops): Adjust.
17887 * win32-low.c (win32_wait): Don't remove the process here.
17888 (win32_target_ops): Adjust.
17889
5d267c4c
PA
178902010-04-11 Pedro Alves <pedro@codesourcery.com>
17891
17892 * regcache.c (realloc_register_cache): Invalidate inferior's
17893 regcache before recreating it.
17894
623ccd72
PA
178952010-04-09 Pedro Alves <pedro@codesourcery.com>
17896
17897 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17898
219f2f23
PA
178992010-04-09 Stan Shebs <stan@codesourcery.com>
17900 Pedro Alves <pedro@codesourcery.com>
17901
17902 * server.h (LONGEST): New.
17903 (struct thread_info) <while_stepping>: New field.
17904 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17905 Declare.
17906 (initialize_tracepoint, handle_tracepoint_general_set)
17907 (handle_tracepoint_query, tracepoint_finished_step)
17908 (tracepoint_was_hit, release_while_stepping_state_list):
17909 (current_traceframe): Declare.
17910 * server.c (handle_general_set): Handle tracepoint packets.
17911 (read_memory): New.
17912 (write_memory): New.
17913 (handle_search_memory_1): Use read_memory.
17914 (handle_query): Report support for conditional tracepoints, trace
17915 state variables, and tracepoint sources. Handle tracepoint
17916 queries.
17917 (main): Initialize the tracepoints module.
17918 (process_serial_event): Handle traceframe reads/writes.
17919
17920 * linux-low.c (handle_tracepoints): New.
17921 (linux_wait_1): Call it.
17922 (linux_resume_one_lwp): Handle while-stepping.
17923 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17924 (linux_target_ops): Install them.
17925 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17926 New field.
17927 * linux-x86-low.c (x86_supports_tracepoints): New.
17928 (the_low_target). Install it.
17929
17930 * mem-break.h (delete_breakpoint): Declare.
17931 * mem-break.c (delete_breakpoint): Make external.
17932
17933 * target.h (struct target_ops): Add `supports_tracepoints',
17934 `read_pc', and `write_pc' fields.
17935 (target_supports_tracepoints): Define.
17936 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17937 (phex_nz): New.
17938
17939 * regcache.h (struct regcache) <registers_owned>: New field.
17940 (init_register_cache, regcache_cpy): Declare.
17941 (regcache_read_pc, regcache_write_pc): Declare.
17942 (register_cache_size): Declare.
17943 (supply_regblock): Declare.
17944 * regcache.c (init_register_cache): New.
17945 (new_register_cache): Use it.
17946 (regcache_cpy): New.
17947 (register_cache_size): New.
17948 (supply_regblock): New.
17949 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17950
219f2f23
PA
17951 * tracepoint.c: New.
17952
17953 * Makefile.in (OBS): Add tracepoint.o.
17954 (tracepoint.o): New rule.
17955
3a13a53b
L
179562010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17957
17958 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17959 (i386-mmx.o): New.
17960 (i386-mmx.c): Likewise.
17961 (i386-mmx-linux.o): Likewise.
17962 (i386-mmx-linux.c): Likewise.
17963
17964 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17965 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17966 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17967 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17968
17969 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17970 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17971 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17972
1570b33e
L
179732010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17974
17975 * Makefile.in (clean): Updated.
17976 (i386-avx.o): New.
17977 (i386-avx.c): Likewise.
17978 (i386-avx-linux.o): Likewise.
17979 (i386-avx-linux.c): Likewise.
17980 (amd64-avx.o): Likewise.
17981 (amd64-avx.c): Likewise.
17982 (amd64-avx-linux.o): Likewise.
17983 (amd64-avx-linux.c): Likewise.
17984
17985 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17986 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17987 (srv_amd64_regobj): Add amd64-avx.o.
17988 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17989 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17990 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17991 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17992 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17993 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17994 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17995
17996 * i387-fp.c: Include "i386-xstate.h".
17997 (i387_xsave): New.
17998 (i387_cache_to_xsave): Likewise.
17999 (i387_xsave_to_cache): Likewise.
18000 (x86_xcr0): Likewise.
18001
18002 * i387-fp.h (i387_cache_to_xsave): Likewise.
18003 (i387_xsave_to_cache): Likewise.
18004 (x86_xcr0): Likewise.
18005
18006 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18007 * linux-crisv32-low.c (target_regsets): Likewise.
18008 * linux-m68k-low.c (target_regsets): Likewise.
18009 * linux-mips-low.c (target_regsets): Likewise.
18010 * linux-ppc-low.c (target_regsets): Likewise.
18011 * linux-s390-low.c (target_regsets): Likewise.
18012 * linux-sh-low.c (target_regsets): Likewise.
18013 * linux-sparc-low.c (target_regsets): Likewise.
18014 * linux-xtensa-low.c (target_regsets): Likewise.
18015
18016 * linux-low.c: Include <sys/uio.h>.
18017 (regsets_fetch_inferior_registers): Support nt_type.
18018 (regsets_store_inferior_registers): Likewise.
18019 (linux_process_qsupported): New.
18020 (linux_target_ops): Add linux_process_qsupported.
18021
18022 * linux-low.h (regset_info): Add nt_type.
18023 (linux_target_ops): Add process_qsupported.
18024
18025 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18026 and <sys/uio.h>.
18027 (init_registers_i386_avx_linux): New.
18028 (init_registers_amd64_avx_linux): Likewise.
18029 (xmltarget_i386_linux_no_xml): Likewise.
18030 (xmltarget_amd64_linux_no_xml): Likewise.
18031 (PTRACE_GETREGSET): Likewise.
18032 (PTRACE_SETREGSET): Likewise.
18033 (x86_fill_xstateregset): Likewise.
18034 (x86_store_xstateregset): Likewise.
18035 (use_xml): Likewise.
18036 (x86_linux_update_xmltarget): Likewise.
18037 (x86_linux_process_qsupported): Likewise.
18038 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18039 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18040 init_registers_i386_linux here. Call
18041 x86_linux_update_xmltarget.
18042 (the_low_target): Add x86_linux_process_qsupported.
18043
18044 * server.c (handle_query): Call target_process_qsupported.
18045
18046 * target.h (target_ops): Add process_qsupported.
18047 (target_process_qsupported): New.
18048
fc7238bb
PA
180492010-04-03 Pedro Alves <pedro@codesourcery.com>
18050
18051 * inferiors.c (add_thread): Set last_status kind to
18052 TARGET_WAITKIND_IGNORE.
18053 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18054 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18055 (linux_wait_1): Move `thread' local definition to block that uses
18056 it. Don't NULL initialize `event_child'.
18057 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18058 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18059 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18060
bdabb078
PA
180612010-04-01 Pedro Alves <pedro@codesourcery.com>
18062
18063 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18064 an extended waitstatus, or by a watchpoint.
18065 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18066 thread was stepping or has been stopped by a watchpoint.
18067
d3bbe7a0
PA
180682010-04-01 Pedro Alves <pedro@codesourcery.com>
18069
18070 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18071 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18072 of another, then delete the previous, and validate all
18073 breakpoints.
18074 (validate_inserted_breakpoint): New.
18075 (delete_disabled_breakpoints): New.
18076 (validate_breakpoints): New.
18077 (check_mem_read): Validate breakpoints before trusting their
18078 shadow. Delete disabled breakpoints.
18079 (check_mem_write): Validate breakpoints before trusting they
18080 should be inserted. Delete disabled breakpoints.
18081 * mem-break.h (validate_breakpoints):
18082 * server.c (handle_query): Validate breakpoints when we see a
18083 qSymbol query.
18084
8b07ae33
PA
180852010-04-01 Pedro Alves <pedro@codesourcery.com>
18086
18087 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18088 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18089 if we could tell there's a GDB breakpoint at stop_pc.
18090 (need_step_over_p): Don't do a step over if we find a GDB
18091 breakpoint at the resume PC.
18092
18093 * mem-break.c (struct raw_breakpoint): New.
18094 (enum bkpt_type): New type `gdb_breakpoint'.
18095 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18096 fields. New field `raw'.
18097 (find_raw_breakpoint_at): New.
18098 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18099 breakpoint instead.
18100 (set_breakpoint_at): Adjust.
18101 (delete_raw_breakpoint): New.
18102 (release_breakpoint): New.
18103 (delete_breakpoint): Rename to...
18104 (delete_breakpoint_1): ... this. Add proc parameter. Use
18105 release_breakpoint. Return ENOENT.
18106 (delete_breakpoint): Reimplement.
18107 (find_breakpoint_at): Delete.
18108 (find_gdb_breakpoint_at): New.
18109 (delete_breakpoint_at): Delete.
18110 (set_gdb_breakpoint_at): New.
18111 (delete_gdb_breakpoint_at): New.
18112 (gdb_breakpoint_here): New.
18113 (set_reinsert_breakpoint): Use release_breakpoint.
18114 (uninsert_breakpoint): Rename to ...
18115 (uninsert_raw_breakpoint): ... this.
18116 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18117 (reinsert_raw_breakpoint): Change parameter type to
18118 raw_breakpoint.
18119 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18120 instead.
18121 (check_breakpoints): Adjust. Use release_breakpoint.
18122 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18123 (breakpoint_inserted_here): Ditto.
18124 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18125 Don't trust the breakpoint's shadow if it is not inserted.
18126 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18127 (delete_all_breakpoints): Adjust.
18128 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18129 use delete_breakpoint_1.
18130
18131 * mem-break.h (breakpoints_supported): Delete declaration.
18132 (set_gdb_breakpoint_at): Declare.
18133 (gdb_breakpoint_here): Declare.
18134 (delete_breakpoint_at): Delete.
18135 (delete_gdb_breakpoint_at): Declare.
18136
18137 * server.h (struct raw_breakpoint): Forward declare.
18138 (struct process_info): New field `raw_breakpoints'.
18139
18140 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18141 breakpoints.
18142
6bf5e0ba
PA
181432010-03-24 Pedro Alves <pedro@codesourcery.com>
18144
18145 * linux-low.c (status_pending_p_callback): Fix comment.
18146 (linux_wait_for_event_1): Move most of the internal breakpoint
18147 handling from here...
18148 (linux_wait_1): ... to here.
18149 (count_events_callback): New.
18150 (select_singlestep_lwp_callback): New.
18151 (select_event_lwp_callback): New.
18152 (cancel_breakpoints_callback): New.
18153 (select_event_lwp): New.
18154 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18155 priority to all LWPs that have had events that should be reported
18156 to the client. Cancel breakpoints when about to reporting the
18157 event to the client, not while stopping lwps. No longer cancel
18158 finished single-steps here.
18159 (cancel_finished_single_step): Delete.
18160 (cancel_finished_single_steps): Delete.
18161
414a389f
PA
181622010-03-24 Pedro Alves <pedro@codesourcery.com>
18163
18164 * mem-break.c (enum bkpt_type): New.
18165 (struct breakpoint): New field `type'.
18166 (set_breakpoint_at): Change return type to struct breakpoint
18167 pointer. Set type to `other_breakpoint' by default.
18168 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18169 in the breakpoint list.
18170 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18171 (reinsert_breakpoint): Rename to ...
18172 (reinsert_raw_breakpoint): ... this.
18173 (reinsert_breakpoints_at): Adjust.
18174 * mem-break.h (struct breakpoint): Declare.
18175 (set_breakpoint_at): Change return type to struct breakpoint
18176 pointer.
18177
2280c721
PA
181782010-03-24 Pedro Alves <pedro@codesourcery.com>
18179
18180 * server.c (handle_query): Assign, not compare.
18181
d50171e4
PA
181822010-03-24 Pedro Alves <pedro@codesourcery.com>
18183
18184 Teach linux gdbserver to step-over-breakpoints.
18185
18186 * linux-low.c (can_hardware_single_step): New.
18187 (supports_breakpoints): New.
18188 (handle_extended_wait): If stopping threads, read the stop pc of
18189 the new cloned LWP.
18190 (get_pc): New.
18191 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18192 low target doesn't support retrieving the PC.
18193 (add_lwp): Set last_resume_kind to resume_continue.
18194 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18195 (linux_attach): Don't clear stop_expected. Set the lwp's
18196 last_resume_kind to resume_stop.
18197 (linux_detach_one_lwp): Don't check for removed breakpoints.
18198 (check_removed_breakpoint): Delete.
18199 (status_pending_p): Rename to ...
18200 (status_pending_p_callback): ... this. Don't check for removed
18201 breakpoints. Don't consider threads that are stopped from GDB's
18202 perspective.
18203 (linux_wait_for_lwp): Always read the stop_pc here.
18204 (cancel_breakpoint): New.
18205 (step_over_bkpt): New global.
18206 (linux_wait_for_event_1): Implement stepping over breakpoints.
18207 (gdb_wants_lwp_stopped): New.
18208 (gdb_wants_all_stopped): New.
18209 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18210 single-step traps here. Store the thread's last reported target
18211 wait status.
18212 (send_sigstop): Don't clear stop_expected. Always set it,
18213 instead.
18214 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18215 (cancel_finished_single_step): New.
18216 (cancel_finished_single_steps): New.
18217 (wait_for_sigstop): Don't cancel finished single-step traps here.
18218 (linux_resume_one_lwp): Don't check for removed breakpoints.
18219 Don't set `step' on non-hardware step archs.
18220 (linux_set_resume_request): Ignore resume_stop requests if already
18221 stopping or stopped. Set the lwp's last_resume_kind.
18222 (resume_status_pending_p): Don't check for removed breakpoints.
18223 (need_step_over_p): New.
18224 (start_step_over): New.
18225 (finish_step_over): New.
18226 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18227 requests. Clear the thread's last reported target waitstatus.
18228 Don't use the `suspended' flag. Don't consider pending breakpoints.
18229 (linux_resume): Start a step-over if necessary.
18230 (proceed_one_lwp): New.
18231 (proceed_all_lwps): New.
18232 (unstop_all_lwps): New.
18233 * linux-low.h (struct lwp_info): Rewrite comment for the
18234 `suspended' flag. Add the `stop_pc' field. Delete the
18235 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18236 Add `'last_resume_kind' and `need_step_over' fields.
18237 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18238 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18239 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18240 (set_raw_breakpoint_at): New.
18241 (set_breakpoint_at): Rewrite to use it.
18242 (reinsert_breakpoint_handler): Delete.
18243 (set_reinsert_breakpoint): New.
18244 (reinsert_breakpoint_by_bp): Delete.
18245 (delete_reinsert_breakpoints): New.
18246 (uninsert_breakpoint): Rewrite.
18247 (uninsert_breakpoints_at): New.
18248 (reinsert_breakpoint): Rewrite.
18249 (reinsert_breakpoints_at): New.
18250 (check_breakpoints): Rewrite.
18251 (breakpoint_here): New.
18252 (breakpoint_inserted_here): New.
18253 (check_mem_read): Adjust.
18254 * mem-break.h (breakpoints_supported, breakpoint_here)
18255 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18256 (reinsert_breakpoint_by_bp): Delete declaration.
18257 (delete_reinsert_breakpoints): Declare.
18258 (reinsert_breakpoint): Delete declaration.
18259 (reinsert_breakpoints_at): Declare.
18260 (uninsert_breakpoint): Delete declaration.
18261 (uninsert_breakpoints_at): Declare.
18262 (check_breakpoints): Adjust prototype.
18263 * server.h: Adjust include order.
18264 (struct thread_info): Declare here. Add a `last_status' field.
18265
30ba68cb
MS
182662010-03-23 Michael Snyder <msnyder@vmware.com>
18267
18268 * server.c (crc32): New function.
18269 (handle_query): Add handling for 'qCRC:' request.
18270
b9a881c2
PA
182712010-03-23 Pedro Alves <pedro@codesourcery.com>
18272
18273 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18274 lwp had been stopped by a watchpoint.
18275
e92d13d5
PA
182762010-03-16 Pedro Alves <pedro@codesourcery.com>
18277
18278 * server.h (internal_error): Declare.
18279 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18280 * utils.c (internal_error): New function.
18281
64daa791
AS
182822010-03-15 Andreas Schwab <schwab@redhat.com>
18283
18284 * configure.srv: Fix typo setting srv_regobj.
18285
f52cd8cd
PA
182862010-03-15 Pedro Alves <pedro@codesourcery.com>
18287
18288 * linux-low.c (fetch_register): Avoid passing a non string literal
18289 format to `error'.
18290 (usr_store_inferior_registers): Ditto.
18291
93ae6fdc
PA
182922010-03-14 Pedro Alves <pedro@codesourcery.com>
18293
18294 * linux-low.c (linux_write_memory): Bail out early if peeking
18295 memory failed.
18296
c3adc08c
PA
182972010-03-14 Pedro Alves <pedro@codesourcery.com>
18298
18299 * linux-low.h (struct lwp_info): New fields
18300 `stopped_by_watchpoint' and `stopped_data_address'.
18301 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18302 here, and cache them in the lwp object.
18303 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18304 directly.
18305 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18306 field.
18307 (linux_stopped_by_watchpoint): Rewrite.
18308 (linux_stopped_data_address): Rewrite.
18309
bce522a2
PA
183102010-03-06 Simo Melenius <simo.melenius@iki.fi>
18311
18312 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18313 switching the current inferior, not before.
18314
90884b2b
L
183152010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18316
18317 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18318 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18319 i386-linux.c and amd64-linux.c.
18320 (reg-i386.o): Removed.
18321 (reg-i386.c): Likewise.
18322 (reg-i386-linux.o): Likewise.
18323 (reg-i386-linux.c): Likewise.
18324 (reg-x86-64.o): Likewise.
18325 (reg-x86-64.c): Likewise.
18326 (reg-x86-64-linux.o): Likewise.
18327 (reg-x86-64-linux.c): Likewise.
18328 (i386.o): New.
18329 (i386.c): Likewise.
18330 (i386-linux.o): Likewise.
18331 (i386-linux.c): Likewise.
18332 (amd64.o): Likewise.
18333 (amd64.c): Likewise.
18334 (amd64-linux.o): Likewise.
18335 (amd64-linux.c): Likewise.
18336
18337 * configure.srv (srv_i386_regobj): New.
18338 (srv_i386_linux_regobj): Likewise.
18339 (srv_amd64_regobj): Likewise.
18340 (srv_amd64_linux_regobj): Likewise.
18341 (srv_i386_32bit_xmlfiles): Likewise.
18342 (srv_i386_64bit_xmlfiles): Likewise.
18343 (srv_i386_xmlfiles): Likewise.
18344 (srv_amd64_xmlfiles): Likewise.
18345 (srv_i386_linux_xmlfiles): Likewise.
18346 (srv_amd64_linux_xmlfiles): Likewise.
18347 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18348 srv_xmlfiles to $srv_i386_xmlfiles.
18349 (i[34567]86-*-mingw32ce*): Likewise.
18350 (i[34567]86-*-mingw*): Likewise.
18351 (i[34567]86-*-nto*): Likewise.
18352 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18353 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18354 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18355 (x86_64-*-linux*): Likewise.
18356
18357 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18358 (init_registers_amd64_linux): New.
18359 (x86_arch_setup): Replace init_registers_x86_64_linux with
18360 init_registers_amd64_linux.
18361
193f13e6
MK
183622010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18363
18364 * configure.ac: Check for libdl. If it is not available link against
18365 static libthread_db.
18366 * configure: Regenerate.
18367
85d721b8
PA
183682010-02-22 Pedro Alves <pedro@codesourcery.com>
18369
18370 PR9605
18371
18372 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18373 handing a read watchpoint.
18374 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18375
6076632b
DE
183762010-02-12 Doug Evans <dje@google.com>
18377
18378 * linux-low.c (linux_supports_tracefork_flag): Document.
18379 (linux_look_up_symbols): Add comment.
18380
3327ccf7
L
183812010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18382
18383 * regcache.c (supply_register): Clear regcache if buf is NULL.
18384
0718675c 183852010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18386 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18387
18388 * inferiors.c (find_inferior): Add function documentation.
18389 (unloaded_dll): Handle the case where the unloaded dll has not
18390 been previously registered in the dll list.
18391
177321bd
DJ
183922010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18393
18394 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18395 (thumb2_breakpoint): New.
18396 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18397
2b009048
DJ
183982010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18399
18400 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18401 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18402 breakpoints.
18403
3be029c7
PA
184042010-01-21 Pedro Alves <pedro@codesourcery.com>
18405
18406 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18407
18f5de3b
JK
184082010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18409
18410 * linux-s390-low.c (s390_collect_ptrace_register)
18411 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18412
3743bb4f
DE
184132010-01-21 Doug Evans <dje@google.com>
18414
14ce3065
DE
18415 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18416 (PTRACE_ARG4_TYPE): New macro.
18417 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18418 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18419 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18420 (usr_store_inferior_registers): Ditto.
18421 (linux_read_memory, linux_write_memory): Ditto.
18422 (linux_test_for_tracefork): Ditto.
18423
3743bb4f
DE
18424 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18425 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18426
8b315be5
PA
184272010-01-21 Pedro Alves <pedro@codesourcery.com>
18428
18429 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18430 target.
18431
85492558
PA
184322010-01-21 Pedro Alves <pedro@codesourcery.com>
18433
18434 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18435 prototype to take a regcache. Adjust.
18436
442ea881
PA
184372010-01-20 Pedro Alves <pedro@codesourcery.com>
18438
18439 * regcache.h (struct thread_info): Forward declare.
18440 (struct regcache): New.
18441 (new_register_cache): Adjust prototype.
18442 (get_thread_regcache): Declare.
18443 (free_register_cache): Adjust prototype.
18444 (registers_to_string, registers_from_string): Ditto.
18445 (supply_register, supply_register_by_name, collect_register)
18446 (collect_register_as_string, collect_register_by_name): Ditto.
18447 * regcache.c (struct inferior_regcache_data): Delete.
18448 (get_regcache): Rename to ...
18449 (get_thread_regcache): ... this. Adjust. Switch inferior before
18450 fetching registers.
18451 (regcache_invalidate_one): Adjust.
18452 (regcache_invalidate): Fix prototype.
18453 (new_register_cache): Return the new register cache.
18454 (free_register_cache): Change prototype.
18455 (realloc_register_cache): Adjust.
18456 (registers_to_string): Change prototype to take a regcache. Adjust.
18457 (registers_from_string): Ditto.
18458 (register_data): Ditto.
18459 (supply_register): Ditto.
18460 (supply_register_by_name): Ditto.
18461 (collect_register): Ditto.
18462 (collect_register_as_string): Ditto.
18463 (collect_register_by_name): Ditto.
18464 * server.c (process_serial_event): Adjust.
18465 * linux-low.h (regset_fill_func, regset_store_func): Change
18466 prototype.
18467 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18468 Change prototype.
18469 * linux-low.c (get_stop_pc): Adjust.
18470 (check_removed_breakpoint): Adjust.
18471 (linux_wait_for_event): Adjust.
18472 (linux_resume_one_lwp): Adjust.
18473 (fetch_register): Add regcache parameter. Adjust.
18474 (usr_store_inferior_registers): Ditto.
18475 (regsets_fetch_inferior_registers): Ditto.
18476 (regsets_store_inferior_registers): Ditto.
18477 (linux_fetch_registers, linux_store_registers): Ditto.
18478 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18479 regcache. Adjust.
43aaf8b6
PA
18480 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18481 Ditto.
442ea881
PA
18482 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18483 prototype to take a regcache.
18484 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18485 * remote-utils.c (convert_ascii_to_int, outreg)
18486 (prepare_resume_reply): Change prototype to take a regcache.
18487 Adjust.
18488 * target.h (struct target_ops) <fetch_registers, store_registers>:
18489 Change prototype to take a regcache.
18490 (fetch_inferior_registers, store_inferior_registers): Change
18491 prototype to take a regcache. Adjust.
18492 * proc-service.c (ps_lgetregs): Adjust.
18493 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18494 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18495 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18496 take a regcache. Adjust.
18497 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18498 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18499 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18500 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18501 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18502 (cris_cannot_fetch_register):
18503 (cris_breakpoint_at): Change prototype to take a regcache.
18504 Adjust.
18505 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18506 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18507 to take a regcache. Adjust.
18508 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18509 Adjust.
18510 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18511 take a regcache. Adjust.
18512 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18513 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18514 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18515 * linux-mips-low.c (mips_get_pc):
18516 (mips_set_pc): Change prototype to take a regcache. Adjust.
18517 (mips_reinsert_addr): Adjust.
18518 (mips_collect_register): Change prototype to take a regcache.
18519 Adjust.
18520 (mips_supply_register):
18521 (mips_collect_register_32bit, mips_supply_register_32bit)
18522 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18523 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18524 * linux-ppc-low.c (ppc_supply_ptrace_register)
18525 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18526 (parse_spufs_run): Adjust.
18527 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18528 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18529 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18530 take a regcache. Adjust.
18531 * linux-s390-low.c (s390_collect_ptrace_register)
18532 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18533 (s390_set_pc): Change prototype to take a regcache. Adjust.
18534 (s390_arch_setup): Adjust.
18535 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18536 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18537 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18538 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18539 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18540 regcache. Adjust.
18541 (sparc_breakpoint_at): Adjust.
18542 * linux-xtensa-low.c (xtensa_fill_gregset):
18543 (xtensa_store_gregset):
18544 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18545 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18546 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18547 prototype to take a regcache. Adjust.
18548 * win32-arm-low.c (arm_fetch_inferior_register)
18549 (arm_store_inferior_register): Change prototype to take a
18550 regcache. Adjust.
18551 * win32-i386-low.c (i386_fetch_inferior_register)
18552 (i386_store_inferior_register): Change prototype to take a
18553 regcache. Adjust.
18554 * win32-low.c (child_fetch_inferior_registers)
18555 (child_store_inferior_registers): Change prototype to take a
18556 regcache. Adjust.
18557 (win32_wait): Adjust.
18558 (win32_fetch_inferior_registers): Change prototype to take a
18559 regcache. Adjust.
18560 (win32_store_inferior_registers): Adjust.
18561 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18562 store_inferior_register>: Change prototype to take a regcache.
18563
60c3d7b0
DE
185642010-01-20 Doug Evans <dje@google.com>
18565
18566 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18567 #ifdef.
18568 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18569 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18570
dc146f7c
VP
185712010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18572
18573 * linux-low.c (linux_core_of_thread): New.
18574 (compare_ints, show_process, list_threads): New.
18575 (linux_qxfer_osdata): Report threads and cores.
18576 (linux_target_op): Register linux_core_of_thread.
18577 * remote-utils.c (prepare_resume_reply): Report the core.
18578 (buffer_xml_printf): Support %d specifier.
18579 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18580 New.
18581 (handle_query): Handle qXfer:threads. Announce availability
18582 thereof.
18583 * target.h (struct target_ops): New field core_of_thread.
18584
7803799a
UW
185852010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18586
18587 * Makefile.in (clean): Remove new generated files.
18588 (reg-s390.o, reg-s390.c): Remove rules.
18589 (reg-s390x.o, reg-s390x.c): Likewise.
18590 (s390-linux32.o, s390-linux32.c): Add rules.
18591 (s390-linux64.o, s390-linux64.c): Likewise.
18592 (s390x-linux64.o, s390x-linux64.c): Likewise.
18593 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18594 * linux-s390-low.c: Include <elf.h>.
18595 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18596 (init_registers_s390): Remove prototype.
18597 (init_registers_s390x): Likewise.
18598 (init_registers_s390_linux32): Add prototype.
18599 (init_registers_s390_linux64): Likewise.
18600 (init_registers_s390x_linux64): Likewise.
18601 (s390_num_regs_3264): New define.
18602 (s390_regmap_3264): New global variable.
18603 (s390_cannot_fetch_register): Remove obsolete check.
18604 (s390_cannot_store_register): Likewise.
18605 (s390_collect_ptrace_register): Handle upper/lower register halves.
18606 (s390_supply_ptrace_register): Likewise.
18607 (s390_fill_gregset): Update to register number changes.
18608 (s390_get_hwcap): New routine.
18609 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18610 Install appropriate regmap and register set.
18611
6e7ffa39
JB
186122010-01-01 Joel Brobecker <brobecker@adacore.com>
18613
18614 * server.c (gdbserver_version): Update copyright year to 2010.
18615 * gdbreplay.c (gdbreplay_version): Likewise.
18616
957f3f49
DE
186172009-12-28 Doug Evans <dje@google.com>
18618
18619 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18620 elf/external.h. Include <elf.h> instead but only if necessary.
18621
ca5c370d
PA
186222009-12-28 Pedro Alves <pedro@codesourcery.com>
18623
18624 * linux-low.c (linux_remove_process): Remove `detaching'
18625 parameter. Don't release/detach from thread_db here.
18626 (linux_kill): Release/detach from thread_db here, ...
18627 (linux_detach): ... and here, before actually detaching.
18628 (linux_wait_1): ... and here, when a process exits.
18629 * thread-db.c (any_thread_of): New.
18630 (thread_db_free): Switch the current inferior to a thread of the
18631 passed in process.
18632
4ee62156
DE
186332009-12-21 Doug Evans <dje@google.com>
18634
d90e6a88
DE
18635 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18636
c5f62d5f
DE
18637 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18638 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18639 warning ifndef __NR_tkill. Move setting of errno there too.
18640 Delete unnecessary resetting of errno after syscall.
18641 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18642
10e86dd7
DE
18643 * configure.ac: Check for dladdr.
18644 * config.in: Regenerate.
18645 * configure: Regenerate.
18646 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18647 (try_thread_db_load): Update.
18648
4ee62156
DE
18649 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18650
00f515da
DE
186512009-12-18 Doug Evans <dje@google.com>
18652
e9464885
DE
18653 * event-loop.c: Include unistd.h if it exists.
18654
07d4f67e
DE
18655 * linux-low.c (my_waitpid): Move definition away from being in
18656 between linux_tracefork_child/linux_test_for_tracefork.
18657
00f515da
DE
18658 * gdb_proc_service.h (psaddr_t): Fix type.
18659 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18660 signature to match glibc.
18661
1de1badb
DE
186622009-12-16 Doug Evans <dje@google.com>
18663
18664 * linux-low.c (linux_read_memory): Fix argument to read.
18665
aeeb81d1
PA
186662009-11-26 Pedro Alves <pedro@codesourcery.com>
18667
18668 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18669 events, don't leave current_inferior pointing at null.
18670
10357975
PA
186712009-11-26 Pedro Alves <pedro@codesourcery.com>
18672
18673 * win32-low.c (LOG): Delete.
18674 (OUTMSG): Output to stderr.
18675 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18676 on compile time LOG macro.
18677 (win32_wait): Fix debug output.
18678
cf6e3471
PA
186792009-11-26 Pedro Alves <pedro@codesourcery.com>
18680
18681 * win32-low.c (win32_add_one_solib): If the dll name is
18682 "ntdll.dll", prepend the system directory to the dll path.
18683
0c85e18e
MK
186842009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18685
18686 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18687
9ac544ce 186882009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18689 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18690
18691 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18692 * configure.ac: Check for __mcoldfire__ and set
18693 gdb_cv_m68k_is_coldfire.
18694 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18695 reg-cf.o and reg-m68k.o.
18696 * configure: Regenerated.
18697
fd7dd3e6
PA
186982009-11-16 Pedro Alves <pedro@codesourcery.com>
18699
18700 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18701 Pass it to thread_db_free.
18702 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18703 proper `detaching' argument to linux_remove_process.
18704 * linux-low.h (thread_db_free): Add `detaching' parameter.
18705 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18706 to thread_db_free.
18707 (thread_db_free): Add `detaching' parameter. Only
18708 call td_ta_clear_event if detaching from process.
18709
75aa492e
MK
187102009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18711
18712 * thread-db.c (thread_db_free): Fix typo.
18713
21e1bee4
PP
187142009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18715
18716 PR gdb/10838
18717 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18718
8838b45e
NS
187192009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18720
18721 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18722 with an i686 compiler.
18723 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18724 needed.
18725 * configure: Rebuilt.
18726
8a35fb51
SL
187272009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18728
18729 PR gdb/10783
18730
18731 * server.c (handle_search_memory_1): Correct read_addr initialization
18732 in loop for searching subsequent chunks.
18733
96f15937
PP
187342009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18735
18736 * configure.ac: New --with-libthread-db option.
18737 * thread-db.c: Allow direct dependence on libthread_db.
18738 (thread_db_free): Adjust.
18739 * config.in: Regenerate.
18740 * configure: Likewise.
889bf7c5 18741
5f7d1694
PP
187422009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18743
18744 PR gdb/10757
18745 * thread-db.c (attach_thread): New function.
18746 (maybe_attach_thread): Return success/failure.
18747 (find_new_threads_callback): Adjust.
889bf7c5
PA
18748 (thread_db_find_new_threads): Loop until no new threads.
18749
88e3b899
PA
187502009-10-13 Pedro Alves <pedro@codesourcery.com>
18751
18752 * proc-service.c (ps_lgetregs): Formatting.
18753
cdbfd419
PP
187542009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18755
18756 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18757 * configure.ac: Adjust.
18758 * linux-low.h (struct process_info_private): Move members to struct
18759 thread_db.
18760 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18761 * linux-low.c (linux_remove_process): Adjust.
18762 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18763 * server.c (handle_query): Move code ...
18764 (handle_monitor_command): ... here. New function.
18765 * target.h (struct target_ops): New member.
18766 * thread-db.c (struct thread_db): New.
18767 (libthread_db_search_path): New variable.
18768 (thread_db_create_event, thread_db_enable_reporting)
18769 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18770 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18771 (try_thread_db_load_1, dladdr_to_soname): New functions.
18772 (try_thread_db_load, thread_db_load_search): New functions.
18773 (thread_db_init): Search for libthread_db.
18774 (thread_db_free): New function.
18775 (thread_db_handle_monitor_command): Likewise.
18776 * config.in: Regenerate.
18777 * configure: Regenerate.
889bf7c5 18778
4168d2d6
UW
187792009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18780
18781 * spu-low.c (spu_kill): Wait for inferior to terminate.
18782 Call clear_inferiors.
18783 (spu_detach): Call clear_inferiors.
18784
81ecdfbb
RW
187852009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18786
18787 * aclocal.m4: Regenerate.
18788 * config.in: Likewise.
18789 * configure: Likewise.
18790
0b9ff2c0
UW
187912009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18792
18793 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18794 (parse_spufs_run): New function.
18795 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18796 (ppc_breakpoint_at): Handle SPU breakpoints.
18797
efcbbd14
UW
187982009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18799
18800 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18801 (SPUFS_MAGIC): Define.
18802 (spu_enumerate_spu_ids): New function.
18803 (linux_qxfer_spu): New function.
18804 (linux_target_ops): Install linux_qxfer_spu.
18805
f4d9bade
UW
188062009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18807
18808 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18809 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18810 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18811 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18812 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18813 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18814 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18815 (init_registers_powerpc_cell32l): Add prototype.
18816 (init_registers_powerpc_cell64l): Likewise.
18817 (ppc_arch_setup): Detect Cell/B.E. architecture.
18818
96e946ca
RW
188192009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18820
18821 * Makefile.in (datarootdir): New variable.
18822
58d6951d
DJ
188232009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18824
18825 * linux-low.c (linux_write_memory): Update debugging output.
18826 * Makefile.in (clean): Add new descriptions.
18827 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18828 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18829 * configure.srv: Add new files for arm*-*-linux*.
18830 * linux-arm-low.c: Add new declarations.
18831 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18832 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18833 (HWCAP_VFPv3D16): New.
18834 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18835 instead of __IWMMXT__.
18836 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18837 (arm_arch_setup): New.
18838 (target_regsets): Remove #ifdef. Add VFP regset.
18839 (the_low_target): Use arm_arch_setup.
18840
12b42a12
DJ
188412009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18842
18843 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18844 the main thread again.
18845
ac8c974e
AR
188462009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18847
18848 Adding Neutrino gdbserver.
18849 * configure: Regenerated.
18850 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18851 * configure.srv (i[34567]86-*-nto*): New target.
18852 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18853 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18854 (nto_comctrl) [__QNX__]: New function.
18855 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18856
4424e0c3 188572009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18858
18859 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18860 srv_tgtobj.
18861
912cf4ba
PA
188622009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18863 Pedro Alves <pedro@codesourcery.com>
18864
18865 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18866 don't support CONTEXT_EXTENDED_REGISTERS.
18867 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18868 (the_low_target): Install them.
18869 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18870 failing with ERROR_PIPE_NOT_CONNECTED.
18871
aa5ca48f
DE
188722009-06-30 Doug Evans <dje@google.com>
18873 Pierre Muller <muller@ics.u-strasbg.fr>
18874
18875 Add h/w watchpoint support to x86-linux, win32-i386.
18876 * Makefile.in (SFILES): Add i386-low.c
18877 (i386_low_h): Define.
18878 (i386-low.o): Add dependencies.
18879 (linux-x86-low.o): Add i386-low.h dependency.
18880 (win32-i386-low.o): Ditto.
18881 * i386-low.c: New file.
18882 * i386-low.h: New file.
18883 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18884 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18885 * linux-low.c (linux_add_process): Initialize arch_private.
18886 (linux_remove_process): Free arch_private.
18887 (add_lwp): Initialize arch_private.
18888 (delete_lwp): Free arch_private.
18889 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18890 provided.
18891 * linux-low.h (process_info_private): New member arch_private.
18892 (lwp_info): New member arch_private.
18893 (linux_target_ops): New members new_process, new_thread,
18894 prepare_to_resume.
18895 (ptid_of): New macro.
18896 * linux-x86-low.c: Include stddef.h, i386-low.h.
18897 (arch_process_info): New struct.
18898 (arch_lwp_info): New struct.
18899 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18900 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18901 (i386_dr_low_get_status): New function.
18902 (x86_insert_point, x86_remove_point): New functions.
18903 (x86_stopped_by_watchpoint): New function.
18904 (x86_stopped_data_address): New function.
18905 (x86_linux_new_process, x86_linux_new_thread): New functions.
18906 (x86_linux_prepare_to_resume): New function.
18907 (the_low_target): Add entries for insert_point, remove_point,
18908 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18909 prepare_to_resume.
18910 * server.c (debug_hw_points): New global.
18911 (monitor_show_help): Document set debug-hw-points.
18912 (handle_query): Process "set debug-hw-points".
18913 * server.h (debug_hw_points): Declare.
18914 (paddress): Declare.
18915 * utils.c (NUMCELLS, CELLSIZE): New macros.
18916 (get_sell, xsnprintf, paddress): New functions.
18917 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18918 remove_point, stopped_by_watchpoint, stopped_data_address.
18919 * win32-i386-low.c: Include i386-low.h.
18920 (debug_reg_state): Replaces dr.
18921 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18922 (i386_dr_low_get_status): New function.
18923 (i386_insert_point, i386_remove_point): New functions.
18924 (i386_stopped_by_watchpoint): New function.
18925 (i386_stopped_data_address): New function.
18926 (i386_initial_stuff): Update.
18927 (get_thread_context,set_thread_context,i386_thread_added): Update.
18928 (the_low_target): Add entries for insert_point,
18929 remove_point, stopped_by_watchpoint, stopped_data_address.
18930 * win32-low.c (win32_insert_watchpoint): New function.
18931 (win32_remove_watchpoint): New function.
18932 (win32_stopped_by_watchpoint): New function.
18933 (win32_stopped_data_address): New function.
18934 (win32_target_ops): Add entries for insert_watchpoint,
18935 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18936 * win32-low.h (win32_target_ops): New members insert_point,
18937 remove_point, stopped_by_watchpoint, stopped_data_address.
18938
d993e290
PA
189392009-06-25 Pedro Alves <pedro@codesourcery.com>
18940
18941 * server.c (process_serial_event): Re-return unsupported, not
18942 error, if the type isn't recognized. Re-allow supporting only
18943 insert or remove packets. Also call require_running for
18944 breakpoints. Add missing break statement to default case. Tidy.
18945 * target.h (struct target_ops): Rename insert_watchpoint to
18946 insert_point, and remove_watchpoint to remove_point.
18947
18948 * linux-low.h (struct linux_target_ops): Likewise.
18949 * linux-low.c (linux_insert_watchpoint): Rename to ...
18950 (linux_insert_point): ... this. Adjust.
18951 (linux_remove_watchpoint): Rename to ...
18952 (linux_remove_point): ... this. Adjust.
18953 (linux_target_ops): Adjust.
18954 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18955 (cris_insert_point): ... this.
18956 (cris_remove_watchpoint): Rename to ...
18957 (cris_remove_point): ... this.
18958 (the_low_target): Adjust.
18959
0f54c268
PM
189602009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18961
18962 * server.c (handle_v_kill): Pass signal_pid to
18963 kill_inferior if multi_process is zero.
18964
c6314022
AR
189652009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18966
18967 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18968 * target.h (target_ops): Comment for *_watchpoint to make it clear
18969 the functions can get types '0' and '1'.
18970
4463ce24
AR
189712009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18972
18973 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18974 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18975 * regcache.c (get_regcache): Likewise.
18976 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18977 * win32-low.c (child_fetch_inferior_registers): Remove check for
18978 regno 0.
18979
cf8fd78b
PA
189802009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18981 Pedro Alves <pedro@codesourcery.com>
18982
18983 * target.h (struct target_ops) <supports_multi_process>: New
18984 callback.
18985 (target_supports_multi_process): New.
18986 * server.c (handle_query): Even if GDB reports support, only
18987 enable multi-process if the target also supports it. Report
18988 multi-process support only if the target backend supports it.
18989 * linux-low.c (linux_supports_multi_process): New function.
18990 (linux_target_ops): Install it as target_supports_multi_process
18991 callback.
18992
47c0c975
DE
189932009-05-24 Doug Evans <dje@google.com>
18994
e09875d4
DE
18995 Global renaming of find_thread_pid to find_thread_ptid.
18996 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18997 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18998 All callers updated.
18999
e27d73f6
DE
19000 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19001 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19002 directly.
19003
47c0c975
DE
19004 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19005 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19006 (linux_resume_one_lwp): Ditto.
19007
2acc282a
DE
190082009-05-23 Doug Evans <dje@google.com>
19009
19010 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19011 from struct inferior_list_entry * to struct lwp_info *.
19012 All callers updated.
19013
9f1036c1
DE
190142009-05-13 Doug Evans <dje@google.com>
19015
19016 * linux-x86-low.c: Don't include assert.h.
19017 (x86_siginfo_fixup): Use fatal, not assert.
19018 (x86_arch_setup): Fix comment.
19019
d0722149
DE
190202009-05-12 Doug Evans <dje@google.com>
19021
19022 Biarch support for i386/amd64 gdbserver.
19023 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19024 Add linux-x86-low.c.
19025 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19026 (linux-x86-low.o): Add.
19027 * linux-x86-64-low.c: Delete.
19028 * linux-i386-low.c: Delete.
19029 * linux-x86-low.c: New file.
19030 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19031 linux-x86-low.o.
19032 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19033 linux-x86-low.o.
19034 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19035 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19036 (linux_child_pid_to_exec_file): New function.
19037 (elf_64_header_p, elf_64_file_p): New functions.
19038 (siginfo_fixup): New function.
19039 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19040 give target a chance to convert layout.
19041 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19042 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19043
fdeb2a12
DE
190442009-05-07 Doug Evans <dje@google.com>
19045
19046 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19047 (regsets_store_inferior_registers): Ditto.
19048
a6dbe5df
PA
190492009-05-06 Pedro Alves <pedro@codesourcery.com>
19050
19051 PR server/10048
19052
19053 * linux-low.c (must_set_ptrace_flags): Delete.
19054 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19055 of the global.
19056 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19057 `lwp->must_set_ptrace_flags' instead.
ba42693b 19058 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19059 (linux_wait_1): ... not here.
19060
5091eb23
DE
190612009-04-30 Doug Evans <dje@google.com>
19062
9f767825
DE
19063 * inferiors.c (started_inferior_callback): New function.
19064 (attached_inferior_callback): New function.
19065 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19066 * server.c (print_started_pid, print_attached_pid): New functions.
19067 (detach_or_kill_for_exit): New function.
19068 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19069 * server.h (have_started_inferiors_p): Declare.
19070 (have_attached_inferiors_p): Declare.
19071
5091eb23
DE
19072 * inferiors.c (remove_process): Fix memory leak, free process.
19073 * linux-low.c (linux_remove_process): New function.
19074 (linux_kill): Call it instead of remove_process.
19075 (linux_detach, linux_wait_1): Ditto.
19076
155c8968
PA
190772009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19078
19079 * configure.srv: Add x86 Windows CE target.
19080
7fe519cb
UW
190812009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19082
19083 * inferiors.c (get_thread_process): Make global.
19084 * server.h (get_thread_process): Add prototype.
19085 * thread-db.c (find_one_thread): Use get_thread_process
19086 instead of current_process.
19087 (thread_db_get_tls_address): Do not crash if called when
19088 thread layer is not yet initialized.
19089
5472f405
UW
190902009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19091
19092 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19093 * spu-low.c (current_tid): Rename to ...
19094 (current_ptid): ... this.
19095 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19096 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19097 ptid_get_lwp (current_ptid) instead of current_tid.
19098 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19099 instead of current_tid. Use find_process_pid to verify pid
19100 argument is valid. Pass proper argument to remove_process.
19101 (spu_thread_alive): Compare current_ptid instead of current_tid.
19102 (spu_resume): Likewise.
19103
55ac2b99
PA
191042009-04-02 Pedro Alves <pedro@codesourcery.com>
19105
19106 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19107 variable.
19108
95954743
PA
191092009-04-01 Pedro Alves <pedro@codesourcery.com>
19110
19111 Implement the multiprocess extensions, and add linux multiprocess
19112 support.
19113
19114 * server.h (ULONGEST): Declare.
19115 (struct ptid, ptid_t): New.
19116 (minus_one_ptid, null_ptid): Declare.
19117 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19118 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19119 (struct inferior_list_entry): Change `id' type from unsigned from
19120 to ptid_t.
19121 (struct sym_cache, struct breakpoint, struct
19122 process_info_private): Forward declare.
19123 (struct process_info): Declare.
19124 (current_process): Declare.
19125 (all_processes): Declare.
19126 (initialize_inferiors): Declare.
19127 (add_thread): Adjust to use ptid_t.
19128 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19129 (add_process, remove_process, find_thread_pid): Declare.
19130 (find_inferior_id): Adjust to use ptid_t.
19131 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19132 (multi_process): Declare.
19133 (push_event): Adjust to use ptid_t.
19134 (read_ptid, write_ptid): Declare.
19135 (prepare_resume_reply): Adjust to use ptid_t.
19136 (clear_symbol_cache): Declare.
19137 * inferiors.c (all_processes): New.
19138 (null_ptid, minus_one_ptid): New.
19139 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19140 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19141 (add_thread): Change unsigned long to ptid. Remove gdb_id
19142 parameter. Adjust.
19143 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19144 (gdb_id_to_thread): Rename to ...
19145 (find_thread_pid): ... this. Change unsigned long to ptid.
19146 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19147 (loaded_dll, pull_pid_from_list): Adjust.
19148 (add_process, remove_process, find_process_pid)
19149 (get_thread_process, current_process, initialize_inferiors): New.
19150 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19151 (struct target_waitstatus) <related_pid>: Ditto.
19152 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19153 return type to int.
19154 (struct target_ops) <join>: Add `pid' argument.
19155 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19156 (struct target_ops) <wait>: Add `ptid' field. Change return type
19157 to ptid.
19158 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19159 (mywait): Add `ptid' argument. Change return type to ptid_t.
19160 (target_pid_to_str): Declare.
19161 * target.c (set_desired_inferior): Adjust to use ptids.
19162 (mywait): Add new `ptid' argument. Adjust.
19163 (target_pid_to_str): New.
19164 * mem-break.h (free_all_breakpoints): Declare.
19165 * mem-break.c (breakpoints): Delelete.
19166 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19167 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19168 to use per-process breakpoint list.
19169 (free_all_breakpoints): New.
19170 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19171 (symbol_cache, all_symbols_looked_up): Delete.
19172 (hexchars): New.
19173 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19174 read_ptid): New.
19175 (prepare_resume_reply): Change ptid argument's type from unsigned
19176 long to ptid_t. Adjust. Implement W;process and X;process.
19177 (free_sym_cache, clear_symbol_cache): New.
19178 (look_up_one_symbol): Adjust to per-process symbol cache. *
19179 * server.c (cont_thread, general_thread, step_thread): Change type
19180 to ptid_t.
19181 (attached): Delete.
19182 (multi_process): New.
19183 (last_ptid): Change type to ptid_t.
19184 (struct vstop_notif) <ptid>: Change type to ptid_t.
19185 (queue_stop_reply, push_event): Change `ptid' argument's type to
19186 ptid_t.
19187 (discard_queued_stop_replies): Add `pid' argument.
19188 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19189 changes. Don't reference the `attached' global.
19190 (attach_inferior): Adjust to mywait interface changes.
19191 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19192 features. Handle and report "multiprocess+". Handle
19193 "qAttached:PID".
19194 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19195 changes.
19196 (handle_v_kill): New.
19197 (handle_v_stopped): Adjust to use target_pid_to_str.
19198 (handle_v_requests): Allow multiple attaches and runs when
19199 multiprocess extensions are in effect. Handle "vKill".
19200 (myresume): Adjust to use ptids.
19201 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19202 (handle_status): Adjust to discard_queued_stop_replies interface
19203 change.
19204 (first_thread_of, kill_inferior_callback)
19205 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19206 (main): Call initialize_inferiors. Adjust to use ptids, killing
19207 and detaching from all inferiors. Handle multiprocess packet
19208 variants.
19209 * linux-low.h: Include gdb_proc_service.h.
19210 (struct process_info_private): New.
19211 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19212 <lwpid_of>: Use ptid_get_lwp.
19213 (get_lwp_thread): Adjust.
19214 (struct lwp_info): Add `dead' member.
19215 (find_lwp_pid): Declare.
19216 * linux-low.c (thread_db_active): Delete.
19217 (new_inferior): Adjust comment.
19218 (inferior_pid): Delete.
19219 (linux_add_process): New.
19220 (handle_extended_wait): Adjust.
19221 (add_lwp): Change unsigned long to ptid.
19222 (linux_create_inferior): Add process to processes table. Adjust
19223 to use ptids. Don't set new_inferior here.
19224 (linux_attach_lwp): Rename to ...
19225 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19226 it. Adjust to use ptids.
19227 (linux_attach_lwp): New.
19228 (linux_attach): Add process to processes table. Don't set
19229 new_inferior here.
19230 (struct counter): New.
19231 (second_thread_of_pid_p, last_thread_of_process_p): New.
19232 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19233 multiple processes.
19234 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19235 processes. Remove process from process table.
19236 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19237 to multiple processes.
19238 (any_thread_of): New.
19239 (linux_detach): Add `pid' argument, and handle it. Remove process
19240 from processes table.
19241 (linux_join): Add `pid' argument. Handle it.
19242 (linux_thread_alive): Change unsighed long argument to ptid_t.
19243 Consider dead lwps as not being alive.
19244 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19245 threads we're not interested in.
19246 (same_lwp, find_lwp_pid): New.
19247 (linux_wait_for_lwp): Change `pid' argument's type from int to
19248 ptid_t. Adjust.
19249 (linux_wait_for_event): Rename to ...
19250 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19251 from int to ptid_t. Adjust.
19252 (linux_wait_for_event): New.
19253 (linux_wait_1): Add `ptid' argument. Change return type to
19254 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19255 that exit from the process table.
19256 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19257 Adjust.
19258 (mark_lwp_dead): New.
19259 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19260 stopping all threads, mark its main lwp as dead.
19261 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19262 ptids.
19263 (fetch_register, usr_store_inferior_registers)
19264 (regsets_fetch_inferior_registers)
19265 (regsets_store_inferior_registers, linux_read_memory)
19266 (linux_write_memory): Inline `inferior_pid'.
19267 (linux_look_up_symbols): Adjust to use per-process
19268 `thread_db_active'.
19269 (linux_request_interrupt): Adjust to use ptids.
19270 (linux_read_auxv): Inline `inferior_pid'.
19271 (initialize_low): Don't reference thread_db_active.
19272 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19273 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19274 (ps_getpid): Return the pid of the current inferior.
19275 * thread-db.c (proc_handle, thread_agent): Delete.
19276 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19277 per-process data.
19278 (find_one_thread): Change argument type to ptid_t. Adjust to
19279 per-process data.
19280 (maybe_attach_thread): Adjust to per-process data and ptids.
19281 (thread_db_find_new_threads): Ditto.
19282 (thread_db_init): Ditto.
19283 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19284 processes table. Adjust to use ptids.
19285 (spu_kill, spu_detach): Adjust interface. Remove process from
19286 processes table.
19287 (spu_join, spu_thread_alive): Adjust interface.
19288 (spu_wait): Adjust interface. Remove process from processes
19289 table. Adjust to use ptids.
19290 * win32-low.c (current_inferior_tid): Delete.
19291 (current_inferior_ptid): New.
19292 (debug_event_ptid): New.
19293 (thread_rec): Take a ptid. Adjust.
19294 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19295 (child_delete_thread): Ditto.
19296 (do_initial_child_stuff): Add `attached' argument. Add process to
19297 processes table.
19298 (child_fetch_inferior_registers, child_store_inferior_registers):
19299 Adjust.
19300 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19301 (win32_attach): Pass 1 to do_initial_child_stuff.
19302 (win32_kill): Adjust interface. Remove process from processes
19303 table.
19304 (win32_detach): Ditto.
19305 (win32_join): Adjust interface.
19306 (win32_thread_alive): Take a ptid.
19307 (win32_resume): Adjust to use ptids.
19308 (get_child_debug_event): Ditto.
19309 (win32_wait): Adjust interface. Remove exiting process from
19310 processes table.
19311
bd99dc85
PA
193122009-04-01 Pedro Alves <pedro@codesourcery.com>
19313
19314 Non-stop mode support.
19315
19316 * server.h (non_stop): Declare.
19317 (gdb_client_data, handler_func): Declare.
19318 (delete_file_handler, add_file_handler, start_event_loop):
19319 Declare.
19320 (handle_serial_event, handle_target_event, push_event)
19321 (putpkt_notif): Declare.
19322 * target.h (enum resume_kind): New.
19323 (struct thread_resume): Replace `step' field by `kind' field.
19324 (TARGET_WNOHANG): Define.
19325 (struct target_ops) <wait>: Add `options' argument.
19326 <supports_non_stop, async, start_non_stop>: New fields.
19327 (target_supports_non_stop, target_async): New.
19328 (start_non_stop): Declare.
19329 (mywait): Add `options' argument.
19330 * target.c (mywait): Add `options' argument. Print child exit
19331 notifications here.
19332 (start_non_stop): New.
19333 * server.c (non_stop, own_buf, mem_buf): New globals.
19334 (struct vstop_notif): New.
19335 (notif_queue): New global.
19336 (queue_stop_reply, push_event, discard_queued_stop_replies)
19337 (send_next_stop_reply): New.
19338 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19339 interface changes.
19340 (attach_inferior): In non-stop mode, don't wait for the target
19341 here.
19342 (handle_general_set): Handle QNonStop.
19343 (handle_query): When handling qC, return the current general
19344 thread, instead of the first thread of the list.
19345 (handle_query): If the backend supports non-stop mode, include
19346 QNonStop+ in the qSupported query response.
19347 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19348 and non-stop mode.
19349 (handle_v_attach, handle_v_run): Handle non-stop mode.
19350 (handle_v_stopped): New.
19351 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19352 (myresume): Adjust to use resume_kind. Handle non-stop.
19353 (queue_stop_reply_callback): New.
19354 (handle_status): Handle non-stop mode.
19355 (main): Clear non_stop flag on reconnection. Use the event-loop.
19356 Refactor serial protocol handling from here ...
19357 (process_serial_event): ... to this new function. When GDB
19358 selects any thread, select one here. In non-stop mode, wait until
19359 GDB acks all pending events before exiting.
19360 (handle_serial_event, handle_target_event): New.
19361 * remote-utils.c (remote_open): Install remote_desc in the event
19362 loop.
19363 (remote_close): Remove remote_desc from the event loop.
19364 (putpkt_binary): Rename to...
19365 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19366 (putpkt_binary): New as wrapper around putpkt_binary_1.
19367 (putpkt_notif): New.
19368 (prepare_resume_reply): In non-stop mode, don't change the
19369 general_thread.
19370 * event-loop.c: New.
19371 * Makefile.in (OBJ): Add event-loop.o.
19372 (event-loop.o): New rule.
19373
19374 * linux-low.h (pid_of): Moved here.
19375 (lwpid_of): New.
19376 (get_lwp_thread): Use lwpid_of.
19377 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19378 * linux-low.c (pid_of): Delete.
19379 (inferior_pid): Use lwpid_of.
19380 (linux_event_pipe): New.
19381 (target_is_async_p): New.
19382 (delete_lwp): New.
19383 (handle_extended_wait): Use lwpid_of.
19384 (add_lwp): Don't set lwpid field.
19385 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19386 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19387 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19388 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19389 first. Adjust to linux_wait_for_event interface changes. Use
19390 lwpid_of.
19391 (linux_detach): Don't delete the main lwp here.
19392 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19393 (status_pending_p): Don't consider explicitly suspended lwps.
19394 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19395 pointer. Add OPTIONS argument. Change return type to int. Use
19396 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19397 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19398 pointer. Add status pointer argument. Return a pid instead of a
19399 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19400 changes. In non-stop mode, don't switch to a random thread.
19401 (linux_wait): Rename to...
19402 (linux_wait_1): ... this. Add target_options argument, and handle
19403 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19404 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19405 clean exit and signal exit code. Don't stop all threads in
19406 non-stop mode. In all-stop mode, only stop all threads when
19407 reporting a stop to GDB. Handle explicit thread stop requests.
19408 (async_file_flush, async_file_mark): New.
19409 (linux_wait): New.
19410 (send_sigstop): Use lwpid_of.
19411 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19412 interface changes. In non-stop mode, don't switch to a random
19413 thread.
19414 (linux_resume_one_lwp): Use lwpid_of.
19415 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19416 (linux_resume_one_thread): ... this. Handle resume_stop. In
19417 non-stop mode, don't look for pending flag in all threads.
19418 (resume_status_pending_p): Don't consider explicitly suspended
19419 threads.
19420 (my_waitpid): Reimplement. Emulate __WALL.
19421 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19422 Use lwpid_of.
19423 (sigchld_handler, linux_supports_non_stop, linux_async)
19424 (linux_start_non_stop): New.
19425 (linux_target_ops): Register linux_supports_non_stop, linux_async
19426 and linux_start_non_stop.
19427 (initialize_low): Install SIGCHLD handler.
19428 * thread-db.c (thread_db_create_event, find_one_thread)
19429 (thread_db_get_tls_address): Use lwpid_of.
19430 * win32-low.c (win32_detach): Adjust to use resume_kind.
19431 (win32_wait): Add `options' argument.
19432 * spu-low.c (spu_resume): Adjust to use resume_kind.
19433 (spu_wait): Add `options' argument.
19434
5b1c542e
PA
194352009-04-01 Pedro Alves <pedro@codesourcery.com>
19436
19437 Decouple target code from remote protocol.
19438
19439 * target.h (enum target_waitkind): New.
19440 (struct target_waitstatus): New.
19441 (struct target_ops) <wait>: Return an unsigned long. Take a
19442 target_waitstatus pointer instead of a char pointer.
19443 (mywait): Likewise.
19444 * target.c (mywait): Change prototype to return an unsigned long.
19445 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19446 * server.h (thread_from_wait, old_thread_from_wait): Delete
19447 declarations.
19448 (prepare_resume_reply): Change prototype to take a
19449 target_waitstatus.
19450 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19451 (last_status, last_ptid): New.
19452 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19453 pid instead of a signal.
19454 (attach_inferior): Remove "status" and "signal" parameters.
19455 Adjust.
19456 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19457 not as an address.
19458 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19459 (handle_v_requests, myresume): Remove "status" and "signal"
19460 parameters. Adjust.
19461 (handle_status): New.
19462 (main): Delete local `status'. Adjust.
19463 * remote-utils.c: Include target.h.
19464 (prepare_resume_reply): Change prototype to take a
19465 target_waitstatus. Adjust.
19466
19467 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19468 interface.
19469 * spu-low.c (spu_wait): Adjust.
19470 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19471 Delete.
19472 (win32_wait): Adjust.
19473
2bd7c093
PA
194742009-04-01 Pedro Alves <pedro@codesourcery.com>
19475
19476 * target.h (struct thread_resume): Delete leave_stopped member.
19477 (struct target_ops): Add a `n' argument to the `resume' callback.
19478 * server.c (start_inferior): Adjust.
19479 (handle_v_cont, myresume): Adjust.
19480 * linux-low.c (check_removed_breakpoint): Adjust to resume
19481 interface change, and to removed leave_stopped field.
19482 (resume_ptr): Delete.
19483 (struct thread_resume_array): New.
19484 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19485 resume interface change.
19486 (linux_continue_one_thread, linux_queue_one_thread)
19487 (resume_status_pending_p): Check if the resume field is NULL
19488 instead of checking the leave_stopped member.
19489 (linux_resume): Adjust to the target resume interface change.
19490 * spu-low.c (spu_resume): Adjust to the target resume interface
19491 change.
19492 * win32-low.c (win32_detach, win32_resume): Ditto.
19493
c35fafde
PA
194942009-04-01 Pedro Alves <pedro@codesourcery.com>
19495
19496 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19497 flag.
19498 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19499 pending.
19500 (linux_continue_one_thread): Only preserve the stepping flag if
19501 there's a pending breakpoint.
19502
0a59d50b
PA
195032009-03-31 Pedro Alves <pedro@codesourcery.com>
19504
19505 * server.c (main): After the inferior having exited, call
19506 remote_close before exiting gdbserver.
19507
f04c6d38
TJB
195082009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19509
19510 Fix size of FPSCR in Power 7 processors.
19511 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19512 (PPC_FEATURE_HAS_DFP): New #define.
19513 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19514 size of the FPSCR.
19515
78e5cee6
PA
195162009-03-23 Pedro Alves <pedro@codesourcery.com>
19517
19518 * server.c (handle_query) Whitespace and formatting.
19519
1b3f6016
PA
195202009-03-22 Pedro Alves <pedro@codesourcery.com>
19521
19522 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19523 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19524 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19525 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19526 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19527 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19528 Makefile.in, configure.ac: Fix whitespace throughout.
19529 * configure: Regenerate.
19530
a07b2135
PA
195312009-03-22 Pedro Alves <pedro@codesourcery.com>
19532
19533 * inferiors.c (find_inferior): Make it safe for the callback
19534 function to delete the currently iterated inferior.
19535
67cc2626
PA
195362009-03-22 Pedro Alves <pedro@codesourcery.com>
19537
19538 * Makefile.in (linuw_low_h): Move higher.
19539 (thread-db.o): Depend on $(linux_low_h).
19540
54a0b537
PA
195412009-03-17 Pedro Alves <pedro@codesourcery.com>
19542
19543 Rename "process" to "lwp" throughout.
19544
19545 * linux-low.c (all_processes): Rename to...
19546 (all_lwps): ... this.
19547 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19548 (add_process): Rename to ...
19549 (add_lwp): ... this. Adjust.
19550 (linux_create_inferior): Adjust.
19551 (linux_attach_lwp): Adjust.
19552 (linux_attach): Adjust.
19553 (linux_kill_one_process): Rename to ...
19554 (linux_kill_one_lwp): ... this. Adjust.
19555 (linux_kill): Adjust.
19556 (linux_detach_one_process): Rename to ...
19557 (linux_detach_one_lwp): ... this. Adjust.
19558 (linux_detach): Adjust.
19559 (check_removed_breakpoint): Adjust.
19560 (status_pending_p): Adjust.
19561 (linux_wait_for_process): Rename to ...
19562 (linux_wait_for_lwp): ... this. Adjust.
19563 (linux_wait_for_event): Adjust.
19564 (send_sigstop): Adjust.
19565 (wait_for_sigstop): Adjust.
19566 (stop_all_processes): Rename to ...
19567 (stop_all_lwps): ... this.
19568 (linux_resume_one_process): Rename to ...
19569 (linux_resume_one_lwp): ... this. Adjust.
19570 (linux_set_resume_request, linux_continue_one_thread)
19571 (linux_queue_one_thread, resume_status_pending_p)
19572 (usr_store_inferior_registers, regsets_store_inferior_registers)
19573 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19574 Adjust.
19575 * linux-low.h (get_process): Rename to ...
19576 (get_lwp): ... this. Adjust.
19577 (get_thread_process): Rename to ...
19578 (get_thread_lwp): ... this. Adjust.
19579 (get_process_thread): Rename to ...
19580 (get_lwp_thread): ... this. Adjust.
19581 (struct process_info): Rename to ...
19582 (struct lwp_info): ... this.
19583 (all_processes): Rename to ...
19584 (all_lwps): ... this.
19585 * proc-service.c (ps_lgetregs): Adjust.
19586 * thread-db.c (thread_db_create_event, find_one_thread)
19587 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19588
0b16c5cf
PA
195892009-03-14 Pedro Alves <pedro@codesourcery.com>
19590
19591 * server.c (handle_query): Handle "qAttached".
19592
32de4b9d
NS
195932009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19594
19595 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19596 GPLv3, update license URL.
19597
2aecd87f
DE
195982009-03-01 Doug Evans <dje@google.com>
19599
93efd302 19600 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19601 (server_h): Add gdb_signals.h.
19602 (signals.o): Update.
19603 * server.h (target_signal_from_host,target_signal_to_host_p)
19604 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19605
86b1f9c5
PM
196062009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19607
19608 * remote-utils.c (getpkt): Also generate remote-debug
19609 information if noack_mode is set.
19610
4aa995e1
PA
196112009-02-06 Pedro Alves <pedro@codesourcery.com>
19612
19613 * server.c (handle_query): Report qXfer:siginfo:read and
19614 qXfer:siginfo:write as supported and handle them.
19615 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19616 * linux-low.c (linux_xfer_siginfo): New.
19617 (linux_target_ops): Set it.
19618
62709adf
PA
196192009-01-26 Pedro Alves <pedro@codesourcery.com>
19620
19621 * server.c (gdbserver_usage): Mention --remote-debug.
19622 (main): Accept '--remote-debug' switch.
19623
aef93bd7
DE
196242009-01-18 Doug Evans <dje@google.com>
19625
19626 * regcache.c (new_register_cache): No need to check result of xcalloc.
19627 * server.c (handle_search_memory): Back out calls to xmalloc,
19628 result is checked and error is returned to user upon failure.
19629 (handle_query): Ditto. Add more checks for result of malloc.
19630 (handle_v_cont): Check result of malloc, report error back to
19631 user upon failure.
19632 (handle_v_run): Ditto. Call freeargv.
19633 * server.h (freeargv): Declare.
19634 * utils.c (freeargv): New fn.
19635
54363045
DE
196362009-01-15 Doug Evans <dje@google.com>
19637
f626972c
DE
19638 * gdbreplay.c (perror_with_name): Make arg const char *.
19639 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19640 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19641 * utils.c (perror_with_name): Make arg const char *.
54363045 19642
18aae699
PA
196432009-01-14 Pedro Alves <pedro@codesourcery.com>
19644
19645 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19646 when handling a EXIT_PROCESS_DEBUG_EVENT.
19647
ff703abe
JB
196482009-01-06 Joel Brobecker <brobecker@adacore.com>
19649
19650 * gdbreplay.c (gdbreplay_version): Update copyright year.
19651 * server.c (gdbserver_version): Likewise.
19652
f21cc1a2 196532009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19654
19655 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19656 (handle_extended_wait): Improve comment.
0e21c1ec 19657
bca929d3
DE
196582008-12-13 Doug Evans <dje@google.com>
19659
19660 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19661 * server.h (ATTR_MALLOC): New macro.
19662 (xmalloc,xcalloc,xstrdup): Declare.
19663 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19664 * inferiors.c: Ditto.
19665 * linux-low.c: Ditto.
19666 * mem-break.c: Ditto.
19667 * regcache.c: Ditto.
19668 * remote-utils.c: Ditto.
19669 * server.c: Ditto.
19670 * target.c: Ditto.
19671 * win32-low.c: Ditto.
19672
97438e3f
DE
196732008-12-12 Doug Evans <dje@google.com>
19674
896c7fbb
DE
19675 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19676 in debugging printf.
19677
97438e3f
DE
19678 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19679
e3b886f8
DE
196802008-12-09 Doug Evans <dje@google.com>
19681
19682 * linux-low.h (struct process_info): Delete member tid, unused.
19683 * thread-db.c (find_one_thread): Update.
19684 (maybe_attach_thread): Update.
19685
07e059b5
VP
196862008-12-02 Pedro Alves <pedro@codesourcery.com>
19687
889bf7c5
PA
19688 * target.h (struct target_ops): Add qxfer_osdata member.
19689 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19690 and dirent.h.
19691 (linux_qxfer_osdata): New functions.
19692 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19693 callback.
19694 * server.c (handle_query): Handle "qXfer:osdata:read:".
19695 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19696 (buffer_xml_printf): New functions.
19697 * server.h (struct buffer): New.
19698 (buffer_grow_str, buffer_grow_str0): New macros.
19699 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19700 (buffer_xml_printf): Declare.
07e059b5 19701
4cab47ab
DE
197022008-11-24 Doug Evans <dje@google.com>
19703
19704 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19705
f142445f
DJ
197062008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19707
19708 * server.c (handle_v_run): Always use the supplied argument list.
19709
d0107bb6 197102008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19711
d0107bb6
BW
19712 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19713 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19714
2c4ad781
TJB
197152008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19716
19717 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19718 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19719 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19720 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19721 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19722 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19723 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19724 XML target descriptions.
19725 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19726 when inferior is running on an ISA 2.05 or later processor. Add
19727 special case to return offset for full 64-bit slot of FPSCR when
19728 in 32-bits.
19729
dfb64f85
DJ
197302008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19731
19732 * Makefile.in (SFILES, clean): Added sparc64 files.
19733 (reg-sparc64.o, reg-sparc64.c): New.
19734 * configure.srv (sparc*-*-linux*): New configuration.
19735 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19736 syscall arguments for SPARC.
19737 (regsets_store_inferior_registers): Likewise.
19738 * linux-sparc-low.c: New file.
19739
66b6e1dd
DE
197402008-10-21 Doug Evans <dje@google.com>
19741
19742 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19743 (READLINE_DIR,READLINE_DEP): Delete.
19744 (INTERNAL_CFLAGS): Update.
19745 (LINTFLAGS): Update.
19746
9b710a42
PA
197472008-10-10 Pedro Alves <pedro@codesourcery.com>
19748
19749 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19750 whole argv from the last run, not just argv[0].
19751
5822d809
PA
197522008-09-08 Pedro Alves <pedro@codesourcery.com>
19753
19754 * regcache.c (new_register_cache): Return NULL if the register
19755 cache size isn't known yet.
19756 (free_register_cache): Avoid dereferencing a NULL regcache.
19757
74aac56f
DJ
197582008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19759
19760 * configure.srv: Merge MIPS and MIPS64.
19761
400b20f5
MR
197622008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19763
19764 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19765
677c5bb1
LM
197662008-08-18 Luis Machado <luisgpm@br.ibm.com>
19767
19768 * Makefile.in: Add required vsx dependencies.
19769
19770 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19771 Declare init_registers_powerpc_vsx32l.
19772 Declare init_registers_powerpc_vsx64l.
19773 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19774 (ppc_arch_setup): Check for VSX in hwcap.
19775 (ppc_fill_vsxregset): New function.
19776 (ppc_store_vsxregset): New function.
19777 Add new VSX entry in regset_info target_regsets.
19778
19779 * configure.srv: Add new VSX dependencies.
19780
a6f3e723
SL
197812008-08-12 Pedro Alves <pedro@codesourcery.com>
19782
19783 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19784 (remote_open): Set or clear transport_is_reliable.
19785 (putpkt_binary): Don't expect acks in noack mode.
19786 (getpkt): Don't send ack/nac in noack mode.
19787 * server.c (handle_general_set): Handle QStartNoAckMode.
19788 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19789 qSupported.
19790 (main): Reset noack_mode on every connection.
19791 * server.h (noack_mode): Declare.
19792
a417dc56
RW
197932008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19794
19795 * Makefile.in (GDBREPLAY_OBS): New variable.
19796 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19797
3221518c
UW
197982008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19799 Daniel Jacobowitz <dan@codesourcery.com>
19800
19801 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19802 (usr_store_inferior_registers): Likewise.
19803 (regsets_store_inferior_registers): Likewise.
19804
ec56be1b
PA
198052008-07-31 Rolf Jansen <rj@surtec.com>
19806 Pedro Alves <pedro@codesourcery.com>
19807
19808 * configure.ac: Check for memmem declaration.
19809 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19810 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19811 (disable_packet_qfThreadInfo): Unconditionally compile.
19812 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19813 * configure, config.in: Regenerate.
19814
2fe5e3ff
DE
198152008-07-28 Doug Kwan <dougkwan@google.com>
19816
19817 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19818 (linux_write_memory): Remove declaration of errno.
19819
836acd6d
UW
198202008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19821
19822 * linux-low.c (handle_extended_wait): Do not use "status"
19823 variable uninitialized.
19824
aeba519e
PA
198252008-07-07 Pedro Alves <pedro@codesourcery.com>
19826
19827 * server.c (handle_v_attach): Inhibit reporting dll changes.
19828
db42f210
PA
198292008-06-27 Pedro Alves <pedro@codesourcery.com>
19830
19831 * remote-utils.c (prepare_resume_reply): If requested, don't
19832 output "thread:TID" in the T stop reply.
19833
19834 * server.c (disable_packet_vCont, disable_packet_Tthread)
19835 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19836 (handle_query): If requested, disable support for qC, qfThreadInfo
19837 and qsThreadInfo.
19838 (handle_v_requests): If requested, disable support for vCont.
19839 (gdbserver_show_disableable): New.
19840 (main): Handle --disable-packet and --disable-packet=LIST.
19841
19842 * server.h (disable_packet_vCont, disable_packet_Tthread)
19843 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19844
8e4c5421
CD
198452008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19846
19847 * server.c (gdbserver_usage): Mention --version.
19848
6e23a804
DJ
198492008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19850
19851 * Makefile.in (gdbreplay.o): New rule.
19852
90aa6a40
JM
198532008-06-06 Joseph Myers <joseph@codesourcery.com>
19854
19855 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19856 message, not gdbserver.
19857
c16158bc 198582008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19859 Nathan Sidwell <nathan@codesourcery.com>
19860 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19861
19862 * acinclude.m4: Include ../../config/acx.m4.
19863 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19864 * configure, config.in: Regenerate.
19865 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19866 * server.c (gdbserver_version): Print PKGVERSION.
19867 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19868 (main): Adjust gdbserver_usage calls.
19869 * gdbreplay.c (version, host_name): Add declarations.
19870 (gdbreplay_version, gdbreplay_usage): New.
19871 (main): Accept --version and --help options.
19872
aeb75bf5
DJ
198732008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19874
19875 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19876 (arm_breakpoint_at): Handle Thumb.
19877 (the_low_target): Add comment.
19878
76b233dd
UW
198792008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19880
19881 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19882
08388c79
DE
198832008-05-09 Doug Evans <dje@google.com>
19884
a3c83fae
DE
19885 * server.h (decode_search_memory_packet): Declare.
19886 * remote-utils.c (decode_search_memory_packet): New fn.
19887 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19888 (handle_search_memory): New fn.
19889 (handle_query): Process qSearch:memory packets.
19890
bb9c3d36
UW
198912008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19892
19893 * regcache.c (registers_length): Remove.
19894 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19895 full register packet.
19896 * regcache.h (registers_length): Remove prototype.
19897 * server.h (PBUFSIZ): Define to 16384.
19898
7284e1be
UW
198992008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19900
19901 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19902 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19903 powerpc-64l.o, and powerpc-altivec64l.o.
19904 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19905 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19906 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19907 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19908 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19909 to srv_xmlfiles.
19910
19911 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19912 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19913 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19914 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19915 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19916 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19917 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19918 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19919 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19920 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19921 (clean): Update.
19922
19923 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19924 (init_registers_powerpc_32l): ... this new prototype.
19925 (init_registers_powerpc_32): Remove, replace by ...
19926 (init_registers_powerpc_altivec32l): ... this new prototype.
19927 (init_registers_powerpc_e500): Remove, replace by ...
19928 (init_registers_powerpc_e500l): ... this new prototype.
19929 (init_registers_ppc64): Remove, replace by ...
19930 (init_registers_powerpc_64l): ... this new prototype.
19931 (init_registers_powerpc_64): Remove, replace by ...
19932 (init_registers_powerpc_altivec64l): ... this new prototype.
19933 (ppc_num_regs): Set to 73.
19934 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19935 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19936 (ppc_cannot_store_register): Handle orig_r3 and trap.
19937 (ppc_arch_setup): Update init_registers_... calls.
19938 (ppc_fill_gregset): Handle orig_r3 and trap.
19939
19940 * inferiors.c (clear_inferiors): Reset current_inferior.
19941
fdc59709
PB
199422008-04-23 Paolo Bonzini <bonzini@gnu.org>
19943
889bf7c5
PA
19944 * acinclude.m4: Add override.m4.
19945 * configure: Regenerate.
fdc59709 19946
c9b2f845
UW
199472008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19948
19949 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19950 initial call to init_register_ppc64.
19951
550512b8
UW
199522008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19953
43aaf8b6
PA
19954 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19955 single powerpc*-*-linux* case.
550512b8
UW
19956 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19957
b6430ec3
UW
199582008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19959
19960 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19961 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19962 from reg_xmlfiles.
19963 * linux-ppc-low.c: Include <elf.h>.
19964 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19965 (ppc_hwcap): New global variable.
19966 (ppc_regmap): Remove __SPE__ #ifdef sections.
19967 (ppc_regmap_e500): New global variable.
19968 (ppc_cannot_store_register): Update __SPE__ special case.
19969 (ppc_get_hwcap): New function.
19970 (ppc_arch_setup): Use it to determine whether inferior supports
19971 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19972 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19973 Do not access registers if target does not support AltiVec.
19974 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19975 Do not access registers if target does not support SPE.
19976 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19977
52fa2412
UW
199782008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19979
19980 * linux-low.c (disabled_regsets, num_regsets): New.
19981 (use_regsets_p): Delete.
19982 (linux_wait_for_process): Clear disabled_regsets.
19983 (regsets_fetch_inferior_registers): Check and set it.
19984 (regsets_store_inferior_registers): Likewise.
19985 (linux_fetch_registers, linux_store_registers): Do not use
19986 use_regsets_p.
19987 (initialize_low): Allocate disabled_regsets.
19988
e28b3332
DJ
199892008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19990
19991 * Makefile.in (LIBOBJS): New.
19992 (OBS): Use LIBOBJS.
19993 (memmem.o): New rule.
19994 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19995 * configure: Regenerated.
19996
4536995d
UW
199972008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19998
19999 * server.c (handle_query): Never return "unsupported" for
20000 qXfer:features:read queries.
20001
221c031f
UW
200022008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20003
20004 * server.c (get_features_xml): Fix inverted condition.
20005 (handle_query): Always support qXfer:feature:read.
20006
ccd213ac
DJ
200072008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20008
20009 * server.c (wrapper_argv): New.
20010 (start_inferior): Handle wrapper_argv. If set, expect an extra
20011 trap.
20012 (gdbserver_usage): Document --wrapper.
20013 (main): Parse --wrapper.
20014
6fe305f7
UW
200152008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20016
20017 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20018 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20019 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20020 (ppc_set_pc): Likewise.
20021 (ppc_arch_setup): New function.
20022 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20023 of collect_register.
889bf7c5 20024 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20025
5b0a002e
UW
200262008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20027
20028 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20029 instead of linux-ppc64-low.o.
20030 * linux-ppc64-low.c: Remove file.
20031 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20032 (linux-ppc64-low.o): Remove rule.
20033
20034 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20035 (init_registers_powerpc_64): Likewise.
20036 (ppc_regmap): Conditionally define depending on __powerpc64__.
20037 (ppc_cannot_store_register): Do not special-case "fpscr" when
20038 compiled on __powerpc64__.
20039 (ppc_collect_ptrace_register): New function.
20040 (ppc_supply_ptrace_register): New function.
20041 (ppc_breakpoint): Change type to "unsigned int".
20042 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20043 (the_low_target): Conditionally provide initializers for the
889bf7c5 20044 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20045 collect_ptrace_register and supply_ptrace_register members.
20046
9b4b61c8
UW
200472008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20048
20049 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20050 * server.c (gdbserver_xmltarget): Define.
20051 (get_features_xml): Use it to replace "target.xml" and arch_string.
20052
20053 * configure.srv: Remove srv_xmltarget. Add XML files that were
20054 mentioned there to srv_xmlfiles instead. Remove conditional tests
20055 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20056 srv_xmlfiles and srv_regobj to include all possible choices.
20057 * configure.ac (srv_xmltarget): Remove.
20058 (srv_xmlfiles): Do not add "target.xml".
20059 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20060 checks for supplementary target information.
20061 * configure: Regenerate.
20062 * Makefile.in (XML_TARGET): Remove.
20063 (target.xml): Remove rule.
20064 (clean): Do not clean up target.xml.
20065 (.PRECIOUS): Do not mention target.xml.
20066
20067 * target.h (struct target_ops): Remove arch_string member.
20068 * linux-low.c (linux_arch_string): Remove.
20069 (linux_target_ops): Remove arch_string initializer.
20070 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20071 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20072 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20073 * spu-low.c (spu_arch_string): Remove.
20074 (spu_target_ops): Remove arch_string initializer.
20075 * win32-low.c (win32_arch_string): Remove.
20076 (win32_target_ops): Remove arch_string initializer.
20077 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20078 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20079 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20080
ee1a7ae4
UW
200812008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20082
20083 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20084 by collect_ptrace_register and supply_ptrace_register hooks.
20085 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20086 instead of checking for the_low_target.left_pad_xfer.
20087 (usr_store_inferior_registers): Use collect_ptrace_register callback
20088 instead of checking for the_low_target.left_pad_xfer.
20089
20090 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20091 (s390_supply_ptrace_register): Likewise.
20092 (s390_fill_gregset): Call s390_collect_ptrace_register.
20093 (the_low_target): Update.
20094
20095 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20096 (ppc_supply_ptrace_register): Likewise.
20097 (the_low_target): Update.
20098
20099 * linux-i386-low.c (the_low_target): Update.
20100 * linux-x86-64-low.c (the_low_target): Update.
20101
d61ddec4
UW
201022008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20103
20104 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20105 reg-s390.o and reg-s390x.o.
20106
20107 * linux-low.c (new_inferior): New global variable.
20108 (linux_create_inferior, linux_attach): Set it.
20109 (linux_wait_for_process): Call the_low_target.arch_setup after the
20110 target has stopped for the first time.
20111 (initialize_low): Do not call the_low_target.arch_setup.
20112
20113 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20114 (s390_set_pc): Likewise.
20115 (s390_arch_setup): New function.
20116 (the_low_target): Use s390_arch_setup as arch_setup routine.
20117
20118 * regcache.c (realloc_register_cache): New function.
20119 (set_register_cache): Call it for each existing regcache.
20120
d05b4ac3
UW
201212008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20122
20123 * server.h (init_registers): Remove prototype.
20124
20125 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20126 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20127 instead of init_registers ().
20128 * linux-arm-low.c (init_registers_arm): Add prototype.
20129 (init_registers_arm_with_iwmmxt): Likewise.
20130 (the_low_target): Add initializer for arch_setup field.
20131 * linux-cris-low.c (init_registers_cris): Add prototype.
20132 (the_low_target): Add initializer for arch_setup field.
20133 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20134 (the_low_target): Add initializer for arch_setup field.
20135 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20136 (the_low_target): Add initializer for arch_setup field.
20137 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20138 (the_low_target): Add initializer for arch_setup field.
20139 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20140 (the_low_target): Add initializer for arch_setup field.
20141 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20142 (the_low_target): Add initializer for arch_setup field.
20143 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20144 (init_registers_mips64_linux): Likewise.
20145 (the_low_target): Add initializer for arch_setup field.
20146 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20147 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20148 (the_low_target): Add initializer for arch_setup field.
20149 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20150 (init_registers_powerpc_64): Likewise.
20151 (the_low_target): Add initializer for arch_setup field.
20152 * linux-s390-low.c (init_registers_s390): Add prototype.
20153 (init_registers_s390x): Likewise.
20154 (the_low_target): Add initializer for arch_setup field.
20155 * linux-sh-low.c (init_registers_sh): Add prototype.
20156 (the_low_target): Add initializer for arch_setup field.
20157 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20158 (the_low_target): Add initializer for arch_setup field.
20159 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20160 (the_low_target): Add initializer for arch_setup field.
20161
20162 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20163 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20164 instead of init_registers ().
20165 * win32-arm-low.c (init_registers_arm): Add prototype.
20166 (the_low_target): Add initializer for arch_setup field.
20167 * win32-i386-low.c (init_registers_i386): Add prototype.
20168 (the_low_target): Add initializer for arch_setup field.
20169
20170 * spu-low.c (init_registers_spu): Add prototype.
20171 (initialize_low): Call initialie_registers_spu () instead of
20172 initialize_registers ().
20173
fd96d250
PA
201742008-02-19 Pedro Alves <pedro@codesourcery.com>
20175
20176 * server.c (handle_v_requests): When handling the vRun and vAttach
20177 packets, if already debugging a process, don't kill it. Return an
20178 error instead.
20179
d41b6bb4
DJ
201802008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20181
20182 * server.c (handle_query): Correct length check.
20183
5ac588cf
PA
201842008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20185
20186 * win32-low.c (do_initial_child_stuff): Add process handle
20187 parameter. Set current_process_handle and current_process_id from the
20188 parameters. Clear globals.
20189 (win32_create_inferior): Don't set current_process_handle and
20190 current_process_id here. Instead pass them on the call to
20191 do_initial_child_stuff.
20192 (win32_attach): Likewise.
20193 (win32_clear_inferiors): New.
20194 (win32_kill): Don't close the current process handle or the
20195 current thread handle here. Instead call win32_clear_inferiors.
20196 (win32_detach): Don't open a new handle to the process. Call
20197 win32_clear_inferiors.
20198 (win32_join): Don't rely on current_process_handle; open a new
20199 handle using the process id.
20200 (win32_wait): Call win32_clear_inferiors when the inferior process
20201 has exited.
20202
ecd7ecbc
DJ
202032008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20204
20205 * server.c (monitor_show_help): Add "exit".
20206
1525d545
MG
202072008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20208
ecd7ecbc 20209 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20210 (clean): Add reg-xtensa.c.
20211 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20212 * configure.srv (xtensa*-*-linux*) New target.
20213 * linux-xtensa-low.c: New.
20214 * xtensa-xtregs.c: New.
1525d545 20215
59a016f0
PA
202162008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20217
20218 * hostio.c: Don't include errno.h.
20219 (errno_to_fileio_errno): Move to hostio-errno.
20220 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20221 error number outputting to the target->hostio_last_error callback.
20222 (hostio_packet_error): Use FILEIO_EINVAL directly.
20223 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20224 calls to hostio_error.
20225 * hostio-errno.c: New.
20226 * server.h (hostio_last_error_from_errno): Declare.
20227 * target.h (target_ops): Add hostio_last_error member.
20228 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20229 as hostio_last_error handler.
889bf7c5 20230 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20231 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20232 (wince_hostio_last_error): New functions.
20233 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20234 as hostio_last_error handler.
20235 (win32_target_ops) [!_WIN32_WCE]: Register
20236 hostio_last_error_from_errno as hostio_last_error handler.
20237 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20238 (hostio-errno.o): New rule.
20239 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20240 * configure.srv (srv_hostio_err_objs): New variable. Default to
20241 hostio-errno.o.
20242 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20243 * configure: Regenerate.
20244
2d717e4f
DJ
202452008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20246
20247 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20248 (linux_kill, linux_detach): Clean up the process list.
20249 * remote-utils.c (remote_open): Improve port number parsing.
20250 (putpkt_binary, input_interrupt): Only send interrupts if the target
20251 is running.
20252 * server.c (extended_protocol): Make static.
20253 (attached): Define earlier.
20254 (exit_requested, response_needed, program_argv): New variables.
20255 (target_running): New.
20256 (start_inferior): Clear attached here.
20257 (attach_inferior): Set attached here.
20258 (require_running): Define.
20259 (handle_query): Use require_running and target_running. Implement
20260 "monitor exit".
20261 (handle_v_attach, handle_v_run): New.
20262 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20263 (gdbserver_usage): Update.
20264 (main): Redo argument parsing. Handle --debug and --multi. Handle
20265 --attach along with other options or after the port. Save
20266 program_argv. Support no initial program. Resynchronize
20267 communication with GDB after an error. Handle "monitor exit".
20268 Use require_running and target_running. Always allow the extended
20269 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20270 restart in extended mode.
20271 * README: Refer to the GDB manual. Update --attach usage.
20272
7407e2de
AS
202732007-12-20 Andreas Schwab <schwab@suse.de>
20274
20275 * linux-low.c (STACK_SIZE): Define.
20276 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20277 (linux_test_for_tracefork): Likewise.
20278
b65d95c5
DJ
202792007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20280
20281 * linux-low.c (linux_wait_for_event): Update messages. Do not
20282 reinsert auto-delete breakpoints.
20283 * mem-break.c (struct breakpoint): Change return type of handler to
20284 int.
20285 (set_breakpoint_at): Update handler type.
20286 (reinsert_breakpoint_handler): Return 1 instead of calling
20287 delete_breakpoint.
20288 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20289 setting a new one.
20290 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20291 * mem-break.h (set_breakpoint_at): Update handler type.
20292 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20293 * win32-low.c (auto_delete_breakpoint): New.
20294 (get_child_debug_event): Use it.
20295
4e799345
DJ
202962007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20297
20298 * configure.ac: Check for pread and pwrite.
20299 * hostio.c (handle_pread): Fall back to lseek and read.
20300 (handle_pwrite): Fall back to lseek and write.
20301 * config.in, configure: Regenerated.
20302
27524b67
DJ
203032007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20304
20305 * server.c (myresume): Add own_buf argument.
20306 (main): Update calls.
20307
a20d5e98
DJ
203082007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20309
20310 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20311 * remote-utils.c (remote_open): Do not call disable_async_io.
20312 (block_async_io): Delete.
20313 (unblock_async_io): Make static.
20314 (initialize_async_io): New.
20315 * server.c (handle_v_cont): Handle async I/O here.
20316 (myresume): Likewise. Move other common resume tasks here...
20317 (main): ... from here. Call initialize_async_io. Disable async
20318 I/O before the main loop.
20319 * server.h (initialize_async_io): Declare.
20320 (block_async_io, unblock_async_io): Delete prototypes.
20321 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20322
b79d787e
DJ
203232007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20324
20325 * remote-utils.c (readchar): Allow binary data in received messages.
20326
d97903b2
PA
203272007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20328
20329 * win32-low.c (attaching): New global.
20330 (win32_create_inferior): Clear the `attaching' global.
20331 (win32_attach): Set the `attaching' global.
20332 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20333 attaching. Only set a breakpoint at the entry point if not
20334 attaching.
20335
311de423
PA
203362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20337
20338 * server.c (main): Don't report dll events on the initial
20339 connection on attaches.
20340
6c2d16d2
PA
203412007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20342
20343 * server.c (main): Relax numerical bases supported for the pid of
20344 the --attach command line argument.
20345
5ca906e6
PA
203462007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20347
20348 * win32-low.c (win32_attach): Call OpenProcess before
20349 DebugActiveProcess, not after. Add last error output to error
20350 call.
20351
9c6c8194
PA
203522007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20353
20354 * win32-low.c (win32_get_thread_context)
20355 (win32_set_thread_context): New functions.
20356 (thread_rec): Use win32_get_thread_context.
20357 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20358 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20359 field.
20360
4d5d1aaa
PA
203612007-12-03 Leo Zayas
20362 Pedro Alves <pedro_alves@portugalmail.pt>
20363
20364 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20365 global variables.
20366 (child_add_thread): Minor cleanup.
20367 (child_continue): Resume artificially suspended threads before
20368 calling ContinueDebugEvent.
20369 (suspend_one_thread): New.
20370 (fake_breakpoint_event): New.
20371 (get_child_debug_event): Change return type to int. Check here if
20372 gdb sent an interrupt request. If a soft interrupt was requested,
20373 fake a breakpoint event. Return 0 if there is no event to handle,
20374 and 1 otherwise.
20375 (win32_wait): Don't check here if gdb sent an interrupt request.
20376 Ensure there is a valid event to handle.
20377 (win32_request_interrupt): Add soft interruption method as last
20378 resort.
20379
c436e841
PA
203802007-12-03 Leo Zayas
20381 Pedro Alves <pedro_alves@portugalmail.pt>
20382
20383 * win32-low.h (win32_thread_info): Add descriptions to the
20384 structure members. Replace `suspend_count' counter by a
20385 `suspended' flag.
20386 * win32-low.c (thread_rec): Update condition of when to get the
20387 context from the inferior. Rely on ContextFlags being set if it
20388 has already been retrieved. Only suspend the inferior thread if
20389 we haven't already. Warn if that fails.
20390 (continue_one_thread): s/suspend_count/suspended/. Only call
20391 ResumeThread once. Warn if that fails.
20392
e7b5fa67
PA
203932007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20394
20395 * win32-low.c (win32_wait): Don't read from the inferior when it
20396 has already exited.
20397
a385171d
PA
203982007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20399
20400 * Makefile.in (win32_low_h): New variable.
20401 (win32-low.o): Add dependency on $(win32_low_h).
20402 (win32-arm-low.o, win32-i386-low.o): New rules.
20403
f80c84b3
DJ
204042007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20405
20406 * hostio.c: Correct copyright year.
20407
a6b151f1
DJ
204082007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20409
20410 * Makefile.in (OBS): Add hostio.o.
20411 (hostio.o): New rule.
20412 * server.h (handle_vFile): Declare.
20413 * hostio.c: New file.
20414 * server.c (handle_v_requests): Take packet_len and new_packet_len
20415 for binary packets. Call handle_vFile.
20416 (main): Update call to handle_v_requests.
20417
f9387fc3
DJ
204182007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20419
20420 * linux-low.c: Include <sched.h>.
20421
51c2684e
DJ
204222007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20423
20424 * linux-low.c (linux_tracefork_grandchild): New.
20425 (linux_tracefork_child): Use clone.
20426 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20427
75f83163
JB
204282007-10-31 Joel Brobecker <brobecker@adacore.com>
20429
20430 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20431
da5898ce
DJ
204322007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20433
20434 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20435
24a09b5f
DJ
204362007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20437
20438 * inferiors.c (change_inferior_id): Delete.
20439 (add_pid_to_list, pull_pid_from_list): New.
20440 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20441 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20442 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20443 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20444 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20445 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20446 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20447 (using_threads): Always set to 1.
20448 (handle_extended_wait): New.
20449 (add_process): Do not set TID.
20450 (linux_create_inferior): Set must_set_ptrace_flags.
20451 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20452 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20453 (linux_thread_alive): Rename TID argument to LWPID.
20454 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20455 (linux_wait_for_event): Do not use TID or check using_threads. Update
20456 call to dead_thread_notify. Call handle_extended_wait.
20457 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20458 (send_sigstop): Delete sigstop_sent.
20459 (wait_for_sigstop): Avoid TID.
20460 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20461 (linux_test_for_tracefork): New.
20462 (linux_lookup_signals): Use thread_db_active and
20463 linux_supports_tracefork_flag.
20464 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20465 * linux-low.h (get_process_thread): Avoid TID.
20466 (struct process_ifo): Move thread_known and tid to the end. Remove
20467 sigstop_sent.
20468 (linux_attach_lwp, thread_db_init): Update prototypes.
20469 * server.h (change_inferior_id): Delete prototype.
20470 (add_pid_to_list, pull_pid_from_list): New prototypes.
20471 * thread-db.c (thread_db_use_events): New.
20472 (find_first_thread): Rename to...
20473 (find_one_thread): ...this. Update callers and messages. Do not
20474 call fatal. Check thread_db_use_events. Do not call
20475 change_inferior_id or new_thread_notify.
20476 (maybe_attach_thread): Update. Do not call new_thread_notify.
20477 (thread_db_init): Set thread_db_use_events. Check use_events.
20478 * utils.c (fatal, warning): Correct message prefix.
20479
30ed0a8f
DJ
204802007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20481
20482 * Makefile.in (clean): Remove new files.
20483 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20484 (powerpc-64.o, powerpc-64.c): New rules.
20485 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20486 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20487 with SPE.
20488 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20489 SPE targets.
20490 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20491 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20492 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20493 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20494 (target_regsets): Add AltiVec and SPE register sets.
20495 * configure.ac: Check for AltiVec and SPE.
20496 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20497 (ppc_fill_vrregset, ppc_store_vrregset): New.
20498 (target_regsets): Add AltiVec register set.
20499 * configure: Regenerated.
20500
fd462a61
DJ
205012007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20502
20503 * linux-low.c (O_LARGEFILE): Define.
20504 (linux_read_memory): Use /proc/PID/mem.
20505 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20506 * configure, config.in: Regenerated.
20507
69f223ed
DJ
205082007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20509
20510 * linux-low.c (linux_wait_for_event): Do not pass signals while
20511 single-stepping.
20512
aec18585
PA
205132007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20514
20515 * win32-low.c (create_process): New.
20516 (win32_create_inferior): Use create_process instead of
20517 CreateProcess. If create_process failed retry appending an ".exe"
20518 suffix. Store the GetLastError result immediatelly after
20519 create_process calls and use it on the call to error.
20520
34d86ddd
PA
205212007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20522
20523 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20524
5a0e3bd0
JB
205252007-08-23 Joel Brobecker <brobecker@adacore.com>
20526
20527 * configure.ac: Switch license to GPLv3.
20528
f88c79e6
MS
205292007-08-01 Michael Snyder <msnyder@access-company.com>
20530
20531 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20532
6b3d9b83
PA
205332007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20534
20535 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20536 typedef.
20537 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20538 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20539 CloseToolhelp32Snapshot.
20540 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20541 CloseToolhelp32Snapshot.
20542
c588c53c
MS
205432007-07-27 Michael Snyder <michael.snyder@access-company.com>
20544
20545 * server.c (main): Check for inferior exit before main loop.
20546
aa0403d9
PA
205472007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20548
20549 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20550 instead of on tmp_desc.
20551
255e7678
DJ
205522007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20553 Daniel Jacobowitz <dan@codesourcery.com>
20554
20555 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20556 (add_thread): Minor cleanups.
20557 (clear_inferiors): Move lower in the file. Clear the DLL
20558 list.
20559 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20560 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20561 (xml_escape_text): New.
20562 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20563 for qSupported.
20564 (handle_v_cont): Report errors.
20565 (gdbserver_version): Update.
20566 (main): Correct size of own_buf. Do not report initial DLL events.
20567 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20568 (unloaded_dll, xml_escape_text): New.
20569 * win32-low.c (enum target_waitkind): Update comments.
20570 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20571 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20572 (win32_EnumProcessModules, win32_GetModuleInformation)
20573 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20574 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20575 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20576 (win32_Module32First, win32_Module32Next, load_toolhelp)
20577 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20578 (get_child_debug_event): Handle DLL events.
20579 (win32_wait): Likewise.
20580
0d37add9
DJ
205812007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20582
20583 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20584 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20585
45e2715e
PA
205862007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20587
20588 * win32-low.c (handle_output_debug_string): Ignore event if not
20589 waiting.
20590
c5674cf1
PA
205912007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20592
20593 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20594
2bbe3cc1
DJ
205952007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20596
20597 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20598
ae13219e
DJ
205992007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20600
20601 * inferiors.c (change_inferior_id): Add comment.
20602 * linux-low.c (check_removed_breakpoint): Add an early
20603 prototype. Improve debug output.
20604 (linux_attach): Doc update.
20605 (linux_detach_one_process, linux_detach): Clean up before releasing
20606 each process.
20607 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20608 * linux-low.h (struct process_info): Doc improvement.
20609 * mem-break.c (delete_all_breakpoints): New.
20610 * mem-break.h (delete_all_breakpoints): New prototype.
20611 * thread-db.c (find_first_thread): New.
20612 (thread_db_create_event): Call it instead of
20613 thread_db_find_new_threads. Clean up unused variables.
20614 (maybe_attach_thread): Remove first thread handling.
20615 (thread_db_find_new_threads): Use find_first_thread.
20616 (thread_db_get_tls_address): Likewise.
20617
4105de34
DJ
206182007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20619
20620 * thread-db.c (thread_db_find_new_threads): Add prototype.
20621 (thread_db_create_event): Check for the main thread before adding
20622 a new thread.
20623 (maybe_attach_thread): Only enable event reporting if TID == 0.
20624 (thread_db_get_tls_address): Check for new threads.
20625
2b876972
DJ
206262007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20627
20628 * linux-low.c (linux_create_inferior): Try execv before execvp.
20629 * spu-low.c (spu_create_inferior): Likewise.
20630
7a245884
DJ
206312007-06-13 Mike Frysinger <vapier@gentoo.org>
20632
20633 * linux-low.c (linux_create_inferior): Change execv to execvp.
20634 * spu-low.c (spu_create_inferior): Likewies.
20635
117ce543
DJ
206362007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20637
20638 * Makefile.in (clean): Clean new files instead of deleted ones.
20639 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20640 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20641 rules.
20642 * configure.srv: Specify XML files and new regformats for MIPS and
20643 MIPS64 GNU/Linux.
20644 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20645 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20646 an entry for the restart register.
20647 (mips_cannot_fetch_register, mips_cannot_store_register)
20648 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20649 register names to match the XML descriptions.
20650 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20651 restart register instead of $0.
20652
0e7f50da
UW
206532007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20654 Markus Deuling <deuling@de.ibm.com>
20655
20656 * remote-utils.c (decode_xfer_write): New function.
20657 * server.h (decode_xfer_write): Add prototype.
20658 * server.c (handle_query): Add PACKET_LEN argument. Support
20659 qXfer:spu:read and qXfer:spu:write packets.
20660 (main): Pass packet_len to handle_query.
20661 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20662 * target.h (target_ops): Add qxfer_spu.
20663
374c1d38
UW
206642007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20665
20666 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20667 accessing non-seekable spufs files.
20668
bb63802a
UW
206692007-05-16 Markus Deuling <deuling@de.ibm.com>
20670
889bf7c5 20671 * server.c (handle_query): Add reply for qC packet.
bb63802a 20672
7390519e
PA
206732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20674 Leo Zayas <lerele@champenstudios@com>
20675
20676 * server.h (check_remote_input_interrupt_request): New function.
20677 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20678 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20679 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20680 (check_remote_input_interrupt_request): New function.
20681 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20682 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20683 winapi_GenerateConsoleCtrlEvent): New typedefs.
20684 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20685 to 250 ms.
20686 (win32_wait): Check for remote interrupt request
20687 with check_remote_input_interrupt_request.
20688 (win32_request_interrupt): New function.
20689 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20690
34b34921
PA
206912007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20692
20693 * win32-low.c (debug_registers_changed,
20694 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20695 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20696 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20697 (thread_rec): Get context using the low target.
20698 (child_add_thread): Call thread_added on the low target,
20699 which does the same thing.
20700 (regptr): Delete.
20701 (do_initial_child_stuff): Remove debug registers references.
20702 Set context using the low target. Resume threads after
20703 setting the contexts.
20704 (child_continue): Remove dead variable. Remove debug
20705 registers references.
20706 (child_fetch_inferior_registers): Go through the low target.
20707 (do_child_store_inferior_registers): Remove.
20708 (child_store_inferior_registers): Go through the low target.
20709 (win32_resume): Remove debug registers references.
20710 Set context using the low target.
20711 (handle_exception): Change return type to void. Don't record
20712 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20713 first chance exception.
889bf7c5 20714 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20715 goto loop. Always return after waiting for debug event.
20716 (win32_wait): Convert to switch statement. Handle spurious
20717 events.
20718
20719 * win32-i386-low.c (debug_registers_changed,
20720 debug_registers_used): New.
20721 (initial_stuff): Rename to ...
20722 (i386_initial_stuff): ... this. Clear debug registers
20723 state variables.
20724 (store_debug_registers): Delete.
20725 (i386_get_thread_context): New.
20726 (load_debug_registers): Delete.
20727 (i386_set_thread_context): New.
20728 (i386_thread_added): New.
20729 (single_step): Rename to ...
20730 (i386_single_step): ... this.
20731 (do_fetch_inferior_registers): Rename to ...
20732 (i386_fetch_inferior_register): ... this.
20733 (i386_store_inferior_register): New.
20734 (the_low_target): Adapt to new interface.
20735
20736 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20737 (arm_get_thread_context): New.
20738 (arm_set_thread_context): New.
20739 (regptr): New.
20740 (do_fetch_inferior_registers): Rename to ...
20741 (arm_fetch_inferior_register): ... this.
20742 (arm_store_inferior_register): New.
20743 (arm_wince_breakpoint): Reimplement as unsigned long.
20744 (arm_wince_breakpoint_len): Define.
20745 (the_low_target): Adapt to new interface.
20746
20747 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20748 load_debug_registers. Add get_thread_context, set_thread_context,
20749 thread_added and store_inferior_register. Rename
20750 fetch_inferior_registers to fetch_inferior_register.
20751 (regptr): Remove declaration.
20752
dd6953e1
PA
207532007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20754
20755 * linux-low.c (linux_detach): Change return type to int. Return 0.
20756 * spu-low.c (spu_detach): Likewise.
20757
444d6139
PA
207582007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20759
20760 * target.h (target_ops): Change return type of detach to int.
20761 Add join.
20762 (join_inferior): New.
20763 * server.c (main): Don't skip detach support on mingw32.
20764 If the inferior doesn't support detaching return error.
20765 Call join_inferior instead of using waitpid.
20766 * linux-low.c (linux_join): New.
20767 (linux_target_op): Add linux_join.
20768 * spu-low.c (spu_join): New.
20769 (spu_target_ops): Add spu_join.
20770 * win32-low.c (win32_detach): Adapt to new interface.
20771 Reopen current_process_handle before detaching. Issue a child
20772 resume before detaching.
20773 (win32_join): New.
20774 (win32_target_op): Add win32_join.
20775
1d5315fe
PA
207762007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20777
20778 * win32-low.c (win32-attach): Fix return value.
20779 * target.h (target_ops): Describe ATTACH return values.
20780
bf914831
PA
207812007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20782
20783 * win32-low.c (GETPROCADDRESS): Define.
20784 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20785 (winapi_DebugSetProcessKillOnExit): Likewise.
20786 (win32_create_inferior): Force usage of ansi CreateProcessA.
20787 (win32_attach): Use GETPROCADDRESS.
20788 (win32_detach): Likewise.
20789
f72f3e60
PA
207902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20791
20792 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20793
ed50f18f
PA
207942007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20795
20796 * win32-low.c: Commit leftover changes from 2007-03-29.
20797
0c2ead7e
DJ
207982007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20799
20800 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20801 fields short instead of int. Add explicit padding.
20802 (i387_cache_to_fsave): Remove unnecessary casts.
20803 (i387_fsave_to_cache): Doc fix.
20804 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20805
73725ff3
DJ
208062007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20807
20808 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20809 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20810
d99f33d8
PA
208112007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * configure.srv (arm*-*-mingw32ce*): Move near the other
20814 arm targets.
20815
68070c10
PA
208162007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20817
2482afc6 20818 * configure.ac: Add errno checking.
68070c10
PA
20819 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20820 sys/file.h and malloc.h.
20821 (AC_CHECK_DECLS): Add perror.
20822 (srv_mingwce): Handle.
2482afc6 20823 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20824 win32-i386-low.o to srv_tgtobj.
20825 (i[34567]86-*-mingw*): Likewise.
20826 (arm*-*-mingw32ce*): Add case.
20827 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20828 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20829 [__MINGW32CE__] (strerror): New function.
20830 [__MINGW32CE__] (errno): Define to GetLastError.
20831 [__MINGW32CE__] (COUNTOF): New macro.
20832 (remote_open): Remove extra close call.
20833 * mem-break.c (delete_breakpoint_at): New function.
20834 * mem-break.h (delete_breakpoint_at): Declare.
20835 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20836 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20837 [USE_WIN32API] (read, write): Add char* casts.
20838 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20839 * server.h: Include wincecompat.h on Windows CE.
20840 [HAVE_ERRNO_H]: Check.
20841 (perror): Declare if not declared.
20842 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20843 (perror_with_name): Remove errno declaration.
20844 * wincecompat.h: New.
20845 * wincecompat.c: New.
20846 * win32-low.h: New.
20847 * win32-arm-low.c: New.
20848 * win32-i386-low.c: New.
20849 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20850 (OUTMSG2): Make it safe.
20851 (_T): New macro.
20852 (COUNTOF): New macro.
20853 (NUM_REGS): Get it from the low target.
20854 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20855 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20856 (thread_rec): Let low target handle debug registers.
20857 (child_add_thread): Likewise.
20858 (child_init_thread_list): Likewise.
20859 (continue_one_thread): Likewise.
20860 (regptr): New.
20861 (do_child_fetch_inferior_registers): Move to ...
20862 * win32-i386-low.c: ... here, and rename to ...
20863 (do_fetch_inferior_registers): ... this.
889bf7c5 20864 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20865 Go through the low target.
20866 (do_child_store_inferior_registers): Use regptr.
20867 (strwinerror): New function.
20868 (win32_create_inferior): Handle Windows CE.
20869 Use strwinerror instead of strerror on Windows error
20870 codes. Add program to the error output.
20871 Don't close the main thread handle on Windows CE.
20872 (win32_attach): Use coredll.dll on Windows CE.
20873 (win32_kill): Close current process and current
20874 thread handles.
20875 (win32_detach): Use coredll.dll on Windows CE.
20876 (win32_resume): Let low target handle debug registers, and
20877 step request.
20878 (handle_exception): Add/Remove initial breakpoint. Avoid
20879 non-existant WSTOPSIG on Windows CE.
20880 (win32_read_inferior_memory): Cast to remove warning.
20881 (win32_arch_string): Go through the low target.
20882 (initialize_low): Call set_breakpoint_data with the low
20883 target's breakpoint.
20884 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20885 FOP_REGNUM, mappings): Move to ...
20886 * win32-i386-low.c: ... here.
20887 * win32-low.c (win32_thread_info): Move to ...
20888 * win32-low.h: ... here.
20889 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20890 win32-arm-low.c and wincecompat.c.
20891 (all:): Add $EXEEXT.
20892 (install-only:): Likewise.
20893 (gdbserver:): Likewise.
20894 (gdbreplay:): Likewise.
20895 * config.in: Regenerate.
20896 * configure: Regenerate.
20897
41093d81
PA
208982007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20899
20900 * win32-low.c: Rename typedef thread_info to
20901 win32_thread_info throughout.
20902
544afa54
PA
209032007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20904
20905 * win32-i386-low.c: Rename to ...
20906 * win32-low.c: ... this.
20907 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20908 * Makefile.in: Likewise.
20909
bce7165d
PA
209102007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20911
20912 * remote-utils.c (monitor_output): Constify msg parameter.
20913 * server.h (monitor_output): Likewise.
20914 * win32-i386-low.c (handle_output_debug_string): New.
20915 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20916 handle_output_debug_string.
20917 (get_child_debug_event): Likewise.
20918
506c7aa0
DJ
209192007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20920
20921 * server.c (main): Correct strtoul check.
20922
42c81e2a
DJ
209232007-03-27 Jon Ringle <jon@ringle.org>
20924
20925 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20926
9453113a
DJ
209272007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20928
20929 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20930
64a69107
DJ
209312007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20932
20933 * terminal.h: Check HAVE_SGTTY_H.
20934
209352007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20936
20937 * remote-utils.c (remote_open): Print out the assigned port number.
20938
c74d0ad8
DJ
209392007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20940
20941 * remote-utils.c (monitor_output): New function.
20942 * server.c (debug_threads): Define here.
20943 (monitor_show_help): New function.
20944 (handle_query): Handle qRcmd.
20945 (main): Do not handle 'd' packet.
20946 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20947 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20948 of debug_threads.
20949
de7c3b4a
PA
209502007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20951
20952 * Makefile.in (EXEEXT): New.
20953 (clean): Use $(EXEEXT).
20954
ef57601b
PA
209552007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20956
20957 * target.h (target_ops): Rename send_signal to request_interrupt,
20958 and remove enum target_signal parameter.
20959 * linux-low.c (linux_request_interrupt): Rename from
20960 linux_send_signal, and always send SIGINT.
20961 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20962 and always send SIGINT.
20963 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20964 of send_signal.
20965 (input_interrupt): Likewise.
20966
820f2bda
PA
209672007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20968
20969 * server.c (get_features_xml): Check if target implemented
20970 arch_string.
20971 * win32-i386-low.c (win32_arch_string): New.
20972 (win32_target_ops): Add win32_arch_string as arch_string member.
20973
ab39bf24
UW
209742007-02-22 Markus Deuling <deuling@de.ibm.com>
20975
20976 * spu-low.c (spu_arch_string): New.
20977 (spu_target_ops): Add spu_arch_string.
20978
61ff6e04
DJ
209792007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20980
20981 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20982 * configure.ac: Do not check for terminal.h.
20983 * configure, config.in: Regenerated.
20984
fb1e4ffc
DJ
209852007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20986
20987 * Makefile.in (OBS): Add $(XML_BUILTIN).
20988 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20989 (clean): Update.
20990 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20991 (arm-with-iwmmxt.c): New.
20992 * config.in, configure: Regenerate.
20993 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20994 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20995 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20996 (arm*-*-linux*): Add iWMMXt and regset support.
20997 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20998 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20999 (arm_store_wmmxregset, target_regsets): New.
21000 * server.c (get_features_xml): Take annex argument. Check builtin
21001 XML documents.
21002 (handle_query): Handle multiple annexes.
21003
0f48aa01
DJ
210042007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21005
21006 * remote-utils.c [USE_WIN32API] (read, write): Define.
21007 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21008 write.
21009
23181151
DJ
210102007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21011
21012 * linux-i386-low.c (the_low_target): Set arch_string.
21013 * linux-x86-64-low.c (the_low_target): Likewise.
21014 * linux-low.c (linux_arch_string): New.
21015 (linux_target_ops): Add it.
21016 * linux-low.h (struct linux_target_ops): Add arch_string.
21017 * server.c (write_qxfer_response): Use const void * for DATA.
21018 (get_features_xml): New.
21019 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21020 * target.h (struct target_ops): Add arch_string method.
21021
9d606399
DJ
210222007-01-03 Denis Pilat <denis.pilat@st.com>
21023 Daniel Jacobowitz <dan@codesourcery.com>
21024
21025 * linux-low.c (linux_kill): Handle being called with no threads.
21026 * win32-i386-low.c (win32_kill): Likewise.
21027 (get_child_debug_event): Clear current_process_handle.
21028
210292006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21030 Daniel Jacobowitz <dan@codesourcery.com>
21031
21032 * remote-utils.c (remote_open): Check the type of specified
21033 serial port devices before opening them.
21034 * server.c (main): Kill the inferior if an error occurs during
21035 the first remote_open.
21036
a5e13d24
DJ
210372006-12-05 Markus Deuling <deuling@de.ibm.com>
21038
21039 * README: Update supported targets.
21040
186947f7
DJ
210412006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21042
21043 * Makefile.in (clean): Remove reg-mips64.c.
21044 (reg-mips64.c, reg-mips64.o): New rules.
21045 * configure.srv: Handle mips64. Include regset support for mips.
21046 * linux-mips-low.c (union mips_register): New.
21047 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21048 (mips_breakpoint, mips_breakpoint_at): Use int.
21049 (mips_collect_register, mips_supply_register)
21050 (mips_collect_register_32bit, mips_supply_register_32bit)
21051 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21052 (mips_store_fpregset, target_regsets): New.
21053 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21054
a13e2c95
UW
210552006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21056
21057 * configure.srv: Add target "spu*-*-*".
21058 * Makefile.in (clean): Remove reg-spu.c.
21059 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21060 * spu-low.c: New file.
21061
cb7283db
DJ
210622006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21063
21064 * configure.ac: Correct td_thr_tls_get_addr test.
21065 * configure: Regenerated.
21066
89be2091
DJ
210672006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21068
21069 * linux-low.c (linux_wait_for_event): Reformat. Use the
21070 pass_signals array.
21071 * remote-utils.c (decode_address_to_semicolon): New.
21072 * server.c (pass_signals, handle_general_set): New.
21073 (handle_query): Mention QPassSignals for qSupported.
21074 (main): Call handle_general_set.
21075 * server.h (pass_signals, decode_address_to_semicolon): New.
21076
000ef4f0
DJ
210772006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21078
21079 * server.c (handle_query): Correct error handling for read_auxv.
21080
b7149293
UW
210812005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21082
21083 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21084 and srv_linux_thread_db to yes.
21085 * linux-s390-low.c (s390_fill_gregset): New function.
21086 (target_regsets): Define data structure.
21087
dae5f5cf
DJ
210882006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21089
21090 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21091 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21092 * config.in, configure: Regenerated.
21093 * inferiors.c (gdb_id_to_thread): New function.
21094 (gdb_id_to_thread_id): Use it.
21095 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21096 * linux-low.h (struct process_info): Add th member.
21097 (thread_db_get_tls_address): New prototype.
21098 * remote-utils.c (decode_address): Make non-static.
21099 * server.c (handle_query): Handle qGetTLSAddr.
21100 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21101 * target.h (struct target_ops): Add get_tls_address.
21102 * thread-db.c (maybe_attach_thread): Save the thread handle.
21103 (thread_db_get_tls_address): New.
21104
32ca6d61
DJ
211052006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21106
21107 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21108 (linux_resume_one_process): Take a siginfo_t *. Update all
21109 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21110 (struct pending_signals): Add a siginfo_t.
21111 (linux_wait_for_process): Always set last_status.
21112 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21113 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21114 * linux-low.h (struct process_info): Add last_status.
21115
5ffff7c1
DJ
211162006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21117
21118 * remote-utils.c (try_rle): New function.
21119 (putpkt_binary): Use it.
21120
8695c747
DJ
211212006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21122
21123 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21124 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21125 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21126 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21127 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21128 point registers.
21129
290fadea
RS
211302006-08-08 Richard Sandiford <richard@codesourcery.com>
21131
21132 * server.c (terminal_fd): New variable.
21133 (old_foreground_pgrp): Likewise.
21134 (restore_old_foreground_pgrp): New function.
21135 (start_inferior): Record the terminal file descriptor in terminal_fd
21136 and its original foreground group in old_foreground_pgrp. Register
21137 restore_old_foreground_pgrp with atexit().
21138
9f2e1e63
DJ
211392006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21140
21141 * server.c (handle_query): Correct qPart to qXfer.
21142
b80864fb
DJ
211432006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21144
21145 * configure.ac: Check for more headers which are missing on
21146 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21147 * configure.srv: Add Cygwin and mingw32.
21148 * remote-utils.c: Don't include headers unconditionally which
21149 are missing on mingw32. Include <winsock.h> for mingw32.
21150 (remote_open): Adjust for mingw32 support. Flush
21151 standard error after writing to it.
21152 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21153 (unblock_async_io, enable_async_io, disable_async_io)
21154 (readchar, getpkt): Update for Winsock support.
21155 (prepare_resume_reply): Expect a protocol signal number.
21156 * server.c: Disable <sys/wait.h> on mingw32.
21157 (start_inferior): Adjust for mingw32 support. Flush
21158 standard error after writing to it.
21159 (attach_inferior): Likewise. Use protocol signal
21160 numbers.
21161 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21162 and names.
21163 * win32-i386-low.c: New file.
21164 * Makefile.in (XM_CLIBS): Set.
21165 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21166 (win32-i386-low.o): New dependency rule.
21167 * linux-low.c (linux_wait): Use target signal numbers.
21168 * target.h (struct target_ops): Doc fix.
21169 * server.h (target_signal_to_name): New prototype.
21170 * gdbreplay.c: Don't include headers unconditionally which
21171 are missing on mingw32. Include <winsock.h> for mingw32.
21172 (remote_close, remote_open): Adjust for Winsock support.
21173 * configure, config.in: Regenerated.
21174
0876f84a
DJ
211752006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21176
21177 * server.c (decode_xfer_read, write_qxfer_response): New.
21178 (handle_query): Take a packet length argument. Handle
21179 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21180 the qSupported response.
21181 (main): Update call to handle_query.
21182
01f9e8fa
DJ
211832006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21184
21185 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21186 (putpkt_binary): Renamed from putpkt and adjusted for binary
21187 data.
21188 (putpkt): New wrapper for putpkt_binary.
21189 (readchar): Don't mask off the high bit.
21190 (decode_X_packet): New function.
21191 * server.c (main): Call putpkt_binary if a handler sets the packet
21192 length. Save the length of the incoming packet. Handle 'X'.
21193 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21194
be2a5f71
DJ
211952006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21196
21197 * server.c (handle_query): Handle qSupported.
21198
ea025f5f
DJ
211992006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21200
21201 * remote-utils.c (all_symbols_looked_up): New variable.
21202 (look_up_one_symbol): Check it.
21203 * server.h (look_up_one_symbol): New declaration.
21204 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21205
9308fc88
DJ
212062006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21207
21208 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21209 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21210 (PTRACE_GET_THREAD_AREA): Define.
21211 (ps_get_thread_area): New function.
21212
52fb6437
NS
212132006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21214
21215 * configure.srv (m68k*-*-uclinux*): New target.
21216 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21217 (linux_resume_one_process): Remove extraneous cast.
21218 (linux_read_offsets): New.
21219 (linux_target_op): Add linux_read_offsets on mmuless systems.
21220 * server.c (handle_query): Add qOffsets logic.
21221 * target.h (struct target_ops): Add read_offsets.
21222
21b0f40c
DJ
212232006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21224
21225 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21226 (PTRACE_GET_THREAD_AREA): Define.
21227 (ps_get_thread_area): New function.
21228 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21229 (linux-x86-64-low.o): Update.
21230
0050a760
DJ
212312006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21232
21233 * configure.ac: Remove checks for prfpregset_t.
21234 * gdb_proc_service.h: New file.
21235 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21236 new "gdb_proc_service.h".
21237 * proc-service.c: Likewise.
21238 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21239 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21240 * Makefile.in (gdb_proc_service_h): Updated.
21241 * configure, config.in: Regenerated.
21242
b92a518e
DJ
212432006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21244
21245 * remote-utils.c (prepare_resume_reply): Move declaration
21246 of gdb_id_from_wait to the top of the block.
21247
545587ee
DJ
212482006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21249
21250 * linux-low.c (regsets_store_inferior_registers): Read the regset
21251 from the target before filling it.
21252
9db87ebd
DJ
212532006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21254
21255 * server.c (attach_inferior): Return SIGTRAP for a successful
21256 attach.
21257
dd24457d
DJ
212582006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21259
21260 * Makefile.in (OBS): Add version.o.
21261 (STAGESTUFF): Delete.
21262 (version.o): Add dependencies.
21263 (version.c): Replace rule.
21264 (clean): Remove version.c.
21265 * server.c (gdbserver_version): New.
21266 (gdbserver_usage): Use printf.
21267 (main): Handle --version and --help.
21268 * server.h (version, host_name): Add declarations.
21269
6f0f660e
EZ
212702005-12-23 Eli Zaretskii <eliz@gnu.org>
21271
889bf7c5
PA
21272 * linux-arm-low.c:
21273 * linux-arm-low.c:
21274 * inferiors.c:
21275 * i387-fp.h:
21276 * i387-fp.c:
21277 * gdbreplay.c:
21278 * regcache.c:
21279 * proc-service.c:
21280 * mem-break.h:
21281 * mem-break.c:
21282 * linux-x86-64-low.c:
21283 * linux-sh-low.c:
21284 * linux-s390-low.c:
21285 * linux-ppc64-low.c:
21286 * linux-ppc-low.c:
21287 * linux-mips-low.c:
21288 * linux-m68k-low.c:
21289 * linux-m32r-low.c:
21290 * linux-low.h:
21291 * linux-low.c:
21292 * linux-ia64-low.c:
21293 * linux-i386-low.c:
21294 * linux-crisv32-low.c:
21295 * thread-db.c:
21296 * terminal.h:
21297 * target.h:
21298 * target.c:
21299 * server.h:
21300 * server.c:
21301 * remote-utils.c:
21302 * regcache.h:
21303 * utils.c:
21304 * Makefile.in:
21305 * configure.ac:
6f0f660e
EZ
21306 * gdbserver.1: Add (C) after Copyright. Update the FSF
21307 address.
21308
9d1fb177
DJ
213092005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21310
21311 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21312 (arm_breakpoint_at): Recognize both breakpoints.
21313 (the_low_target): Use the correct breakpoint instruction.
21314
011a70c2
DJ
213152005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21316
21317 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21318 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21319 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21320 (the_low_target): Update.
21321
7fb85e41
AS
213222005-10-25 Andreas Schwab <schwab@suse.de>
21323
21324 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21325
21326 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21327 (ia64_num_regs): Reduce to 462.
21328
3db0444b
DJ
213292005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21330
21331 * acinclude.m4: Correct quoting.
21332 * aclocal.m4: Regenerated.
21333
21334 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21335 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21336 (thread_db_init): Call thread_db_err_str.
21337 * configure.ac: Check for TD_VERSION.
21338 * config.in, configure: Regenerated.
21339
bee0189a
DJ
213402005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21341
21342 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21343
e9d25b98
DJ
213442005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21345
21346 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21347 is not available. Define HAVE_PTRACE_GETREGS if it is.
21348 * config.in, configure: Regenerated.
21349 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21350 * linux-i386-low.c, linux-m68k-low.c: Update to use
21351 HAVE_PTRACE_GETREGS.
21352 * linux-low.c (regsets_fetch_inferior_registers)
21353 (regsets_store_inferior_registers): Only return 0 if we processed
21354 GENERAL_REGS.
21355 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21356 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21357
a06660f7
DJ
213582005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21359
21360 * inferiors.c (struct thread_info): Add gdb_id.
21361 (add_thread): Add gdb_id argument.
21362 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21363 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21364 calls to add_thread.
21365 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21366 * server.c (handle_query): Use thread_to_gdb_id.
21367 (handle_v_cont, main): Use gdb_id_to_thread_id.
21368 * server.h (add_thread): Update prototype.
21369 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21370 prototypes.
21371
5a1f5858
DJ
213722005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21373
21374 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21375 left-padded registers.
21376 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21377 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21378
e122f1f5
SE
213792005-07-01 Steve Ellcey <sje@cup.hp.com>
21380
21381 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21382 * configure: Regenerate.
21383 * config.in: Regenerate.
21384 * server.h (NEED_DECLARATION_STRERROR):
21385 Replace with !HAVE_DECL_STRERROR.
21386
d592fa2f
DJ
213872005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21388
21389 * linux-low.c (linux_wait, linux_send_signal): Don't test
21390 an unsigned long variable for > 0 if it could be MAX_ULONG.
21391 * server.c (myresume): Likewise.
21392 * target.c (set_desired_inferior): Likewise.
21393
ccbd4912
MK
213942005-06-13 Mark Kettenis <kettenis@gnu.org>
21395
21396 * configure.ac: Simplify and improve check for socklen_t.
21397 * configure, config.in: Regenerate.
21398
f450004a
DJ
213992005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21400
21401 * acconfig.h: Remove.
21402 * configure.ac: Add a test for socklen_t. Use three-argument
21403 AC_DEFINE throughout.
21404 * config.in: Regenerated using autoheader 2.59.
21405 * configure: Regenerated.
21406
21407 * gdbreplay.c (socklen_t): Provide a default.
21408 (remote_open): Use socklen_t.
21409 * remote-utils.c (socklen_t): Provide a default.
21410 (remote_open): Use socklen_t.
21411 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21412 unsigned char.
21413
21414 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21415 char for buffers.
21416 * linux-low.c (linux_read_memory, linux_write_memory)
21417 (linux_read_auxv): Likewise.
21418 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21419 (check_mem_write): Likewise.
21420 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21421 Likewise.
21422 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21423 (registers_from_string, register_data): Likewise.
21424 * server.c (handle_query, main): Likewise.
21425 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21426 (decode_M_packet): Likewise.
21427 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21428 * target.h (struct target_ops): Update read_memory, write_memory,
21429 and read_auxv.
21430 (read_inferior_memory, write_inferior_memory): Update.
21431 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21432 to unsigned char *.
21433 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21434 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21435 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21436 linux-s390-low.c, linux-sh-low.c: Update for changes in
21437 read_inferior_memory and the_low_target->breakpoint.
21438
eee84df1
DJ
214392005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21440
21441 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21442 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21443 * configure.srv: Add powerpc64-*-linux*.
21444 * linux-ppc64-low.c: New file.
21445
45b134e5
OF
214462005-05-23 Orjan Friberg <orjanf@axis.com>
21447
21448 * linux-cris-low.c: New file with support for CRIS.
21449 * linux-crisv32-low.c: Ditto for CRISv32.
21450 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21451 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21452 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21453 reg-crisv32.o, and reg-crisv32.c to make rules.
21454 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21455 recognized targets.
21456
48d93c75
UW
214572005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21458
21459 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21460 of sizeof (PTRACE_XFER_TYPE).
21461 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21462
e013ee27
OF
214632005-05-12 Orjan Friberg <orjanf@axis.com>
21464
889bf7c5 21465 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21466 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21467 pointers for hardware watchpoint support.
21468 * linux-low.h (struct linux_target_ops): Ditto.
21469 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21470 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21471 to linux_target_ops.
21472 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21473 reply packet.
21474 * server.c (main): Recognize 'Z' and 'z' packets.
21475
b0ded00b
UW
214762005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21477
21478 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21479 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21480 (the_low_target): Add new members.
21481
8643e2ad
DJ
214822005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21483
21484 * proc-service.c (ps_lgetregs): Search all_processes instead of
21485 all_threads.
21486
fc620387
DJ
214872005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21488
21489 * server.c (start_inferior): Change return type to int.
21490 (attach_inferior): Change sigptr to int *.
21491 (handle_v_cont, handle_v_requests): Change signal to int *.
21492 (main): Change signal to int.
21493
214942005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21495
21496 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21497 * configure.srv: Add m32r*-*-linux*.
21498 * linux-m32r-low.c: New file.
21499
e0e76420
DJ
215002005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21501
21502 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21503
a1928bad
DJ
215042005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21505
21506 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21507 Take unsigned long arguments for PIDs.
21508 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21509 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21510 (wait_for_sigstop, linux_resume_one_process)
21511 (regsets_fetch_inferior_registers, linux_send_signal)
21512 (linux_read_auxv): Likewise. Update the types of variables holding
21513 PIDs. Update format string specifiers.
21514 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21515 * remote-utils.c (prepare_resume_reply): Likewise.
21516 * server.c (cont_thread, general_thread, step_thread)
21517 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21518 unsigned long.
21519 (handle_query): Update format specifiers.
21520 (handle_v_cont, main): Use strtoul for thread IDs.
21521 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21522 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21523 (general_thread, step_thread, thread_from_wait)
21524 (old_thread_from_wait): Update.
21525 * target.h (struct thread_resume): Use unsigned long for THREAD.
21526 (struct target_ops): Use unsigned long for arguments to attach and
21527 thread_alive.
21528
dcdb98d2
DJ
215292005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21530
21531 * acinclude.m4: Include bfd/bfd.m4 directly.
21532 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21533 <agriffis@toolchain.org>.
21534 * aclocal.m4, configure: Regenerated.
21535
bec39cab
AC
215362005-01-07 Andrew Cagney <cagney@gnu.org>
21537
21538 * configure.ac: Rename configure.in, require autoconf 2.59.
21539 * configure: Re-generate.
21540
434c4c77
DJ
215412004-12-08 Daniel Jacobowitz <dan@debian.org>
21542
21543 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21544 LIBS when finished.
21545 * aclocal.m4: Regenerated.
21546 * configure: Regenerated.
21547
db1d3e1b
AS
215482004-11-21 Andreas Schwab <schwab@suse.de>
21549
21550 * linux-m68k-low.c (m68k_num_gregs): Define.
21551 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21552 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21553 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21554 (m68k_breakpoint_at): New. Add to the_low_target.
21555
21556 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21557 srv_linux_thread_db to yes.
21558
43360365
JB
215592004-10-20 Joel Brobecker <brobecker@gnat.com>
21560
21561 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21562 (ARCH_SET_FS): Likewise.
21563 (ARCH_GET_FS): Likewise.
21564 (ARCH_GET_GS): Likewise.
21565
fd500816
DJ
215662004-10-16 Daniel Jacobowitz <dan@debian.org>
21567
21568 * linux-i386-low.c (ps_get_thread_area): New.
21569 * linux-x86-64-low.c (ps_get_thread_area): New.
21570 * linux-low.c: Include <sys/syscall.h>.
21571 (linux_kill_one_process): Don't kill the first thread here.
21572 (linux_kill): Kill the first thread here.
21573 (kill_lwp): New function.
21574 (send_sigstop, linux_send_signal): Use it.
21575 * proc-service.c: Clean up #ifdefs.
21576 (fpregset_info): Delete.
21577 (ps_lgetregs): Update and enable implementation.
21578 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21579 implementations.
21580 * remote-utils.c (struct sym_cache, symbol_cache): New.
21581 (input_interrupt): Print a clearer message.
21582 (async_io_enabled): New variable.
21583 (enable_async_io, disable_async_io): Use it. Update comments.
21584 (look_up_one_symbol): Use the symbol cache.
21585 * thread-db.c (thread_db_look_up_symbols): New function.
21586 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21587
f6de3c42
DJ
215882004-10-16 Daniel Jacobowitz <dan@debian.org>
21589
21590 * configure.in: Test for -rdynamic.
21591 * configure: Regenerated.
21592 * Makefile (INTERNAL_LDFLAGS): New.
21593 (gdbserver, gdbreplay): Use it.
21594
2c0fc042
AC
215952004-09-02 Andrew Cagney <cagney@gnu.org>
21596
21597 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21598
075b3282
DJ
215992004-03-23 Daniel Jacobowitz <drow@mvista.com>
21600
21601 * linux-low.c (linux_wait): Clear all_processes list also.
21602
fa6a77dc
DJ
216032004-03-12 Daniel Jacobowitz <drow@mvista.com>
21604
21605 * linux-low.c: Include <errno.h>. Remove extern declaration of
21606 errno.
21607
6d782a97
DJ
216082004-03-12 Daniel Jacobowitz <drow@mvista.com>
21609
21610 * gdbreplay.c, server.h, utils.c: Update copyright years.
21611
3a7fb99b
DJ
216122004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21613
21614 * server.c (main): Print child status or termination signal from
21615 variable 'signal', not 'sig'.
21616
c3e735a6
DJ
216172004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21618
21619 * linux-low.c (linux_read_memory): Change return type to
21620 int. Check for and return error from ptrace().
21621 * target.c (read_inferior_memory): Change return type to int. Pass
21622 back return status from the_target->read_memory().
21623 * target.h (struct target_ops): Adapt *read_memory() prototype.
21624 Update comment.
21625 (read_inferior_memory): Adapt prototype.
21626 * server.c (main): Return an error packet if
21627 read_inferior_memory() returns an error.
21628
a59d1c82
DJ
216292004-03-04 Daniel Jacobowitz <drow@mvista.com>
21630
21631 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21632 Unify with other clean targets.
21633
dc3f8883
DJ
216342004-02-29 Daniel Jacobowitz <drow@mvista.com>
21635
21636 * server.c (handle_v_cont): Call set_desired_inferior.
21637
89a208da
DJ
216382004-02-29 Daniel Jacobowitz <drow@mvista.com>
21639
21640 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21641
62ea82f5
DJ
216422004-02-29 Daniel Jacobowitz <drow@mvista.com>
21643
21644 * linux-low.c (linux_wait): Unblock async I/O.
21645 (linux_resume): Block and enable async I/O.
21646 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21647 * server.h (block_async_io, unblock_async_io): Add prototypes.
21648
6910d122
DJ
216492004-02-29 Daniel Jacobowitz <drow@mvista.com>
21650
21651 * remote-utils.c (remote_open): Print a status notice after
21652 opening a TCP port.
21653 * server.c (attach_inferior): Print a status notice after
21654 attaching.
21655
216562004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21657
21658 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21659
c89dc5d4
DJ
216602004-02-26 Daniel Jacobowitz <drow@mvista.com>
21661
21662 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21663 error packet.
21664 * server.c, target.h: Update copyright years.
21665
4b8dad4a
RM
216662004-02-25 Roland McGrath <roland@redhat.com>
21667
21668 * target.h (struct target_ops): New member `read_auxv'.
21669 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21670 * linux-low.c (linux_read_auxv): New function.
21671 (linux_target_ops): Initialize `read_auxv' member to that.
21672
d7446758
JB
216732004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21674
21675 Committed by Jim Blandy <jimb@redhat.com>.
21676
21677 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21678 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21679 instead of GPR_SIZE to distiguish s390 and s390x targets.
21680
5544ad89
DJ
216812004-01-31 Daniel Jacobowitz <drow@mvista.com>
21682
21683 * linux-low.c: Update copyright year.
21684 (check_removed_breakpoint): Clear pending_is_breakpoint.
21685 (linux_set_resume_request, linux_queue_one_thread)
21686 (resume_status_pending_p): New functions.
21687 (linux_continue_one_thread): Use process->resume.
21688 (linux_resume): Only resume threads if there are no pending events.
21689 * linux-low.h (struct process_info): Add resume request
21690 pointer.
21691
2a68b70e
DJ
216922004-01-30 Daniel Jacobowitz <drow@mvista.com>
21693
21694 * regcache.c (new_register_cache): Clear the allocated register
21695 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21696
64386c31
DJ
216972003-10-13 Daniel Jacobowitz <drow@mvista.com>
21698
21699 * linux-low.c (linux_resume): Take a struct thread_resume *
21700 argument.
21701 (linux_wait): Update call.
21702 (resume_ptr): New static variable.
21703 (linux_continue_one_thread): Renamed from
21704 linux_continue_one_process. Use resume_ptr.
21705 (linux_resume): Use linux_continue_one_thread.
21706 * server.c (handle_v_cont, handle_v_requests): New functions.
21707 (myresume): New function.
21708 (main): Handle 'v' case.
21709 * target.h (struct thread_resume): New type.
21710 (struct target_ops): Change argument of "resume" to struct
21711 thread_resume *.
21712 (myresume): Delete macro.
21713
c938e9b0
L
217142003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21715
21716 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21717 (uninstall): Support DESTDIR.
21718
7f313d07
BC
21719Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21720
21721 * configure.srv: Add xscale*linux copy of arm*linux entry.
21722
3b2fc2ea
DJ
217232003-07-24 Daniel Jacobowitz <drow@mvista.com>
21724
21725 * linux-arm-low.c (arm_reinsert_addr): New function.
21726 (the_low_target): Add arm_reinsert_addr.
21727
1c0a559e
MK
217282003-07-08 Mark Kettenis <kettenis@gnu.org>
21729
21730 * mem-break.c: Remove whitespace at end of file.
21731
43d5792c
DJ
217322003-06-28 Daniel Jacobowitz <drow@mvista.com>
21733
21734 * configure.in: Check whether we need to prototype strerror.
21735 * server.h: Optionally prototype strerror.
21736 * gdbreplay.c (perror_with_name): Use strerror.
21737 * linux-low.c (linux_attach_lwp): Use strerror.
21738 * utils.c (perror_with_name): Use strerror.
21739 * config.in, configure: Regenerated.
21740
c8a86edf
DJ
217412003-06-28 Daniel Jacobowitz <drow@mvista.com>
21742
21743 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21744 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21745
73d37363
DJ
217462003-06-20 Daniel Jacobowitz <drow@mvista.com>
21747
21748 * Makefile.in (SFILES): Update.
21749 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21750 low-sun3.c: Remove files.
21751
6ad8ae5c
DJ
217522003-06-17 Daniel Jacobowitz <drow@mvista.com>
21753
21754 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21755 (linux_detach_one_process, linux_detach): New functions.
21756 (linux_target_ops): Add linux_detach.
21757 * server.c (main): Handle 'D' packet.
21758 * target.h (struct target_ops): Add "detach" member.
21759 (detach_inferior): Define.
21760
1581182a
MK
217612003-06-13 Mark Kettenis <kettenis@gnu.org>
21762
21763 From Kelley Cook <kelleycook@wideopenwest.com>:
21764 * configure.srv: Accept i[34567]86 variants.
21765
e5379b03
DJ
217662003-06-05 Daniel Jacobowitz <drow@mvista.com>
21767
21768 * linux-low.c (linux_wait_for_event): Correct comment typos.
21769 (linux_resume_one_process): Call check_removed_breakpoint.
21770 (linux_send_signal): New function.
21771 (linux_target_ops): Add linux_send_signal.
21772 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21773 of kill.
21774 * target.h (struct target_ops): Add send_signal.
21775
2ff29de4
JB
217762003-05-29 Jim Blandy <jimb@redhat.com>
21777
21778 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21779 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21780 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21781 away part of the register's value.
21782
254787d4
DJ
217832003-03-26 Daniel Jacobowitz <drow@mvista.com>
21784
21785 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21786 (linux_wait_for_event, linux_init_signals): Likewise.
21787
94e10508
DJ
217882003-03-17 Daniel Jacobowitz <drow@mvista.com>
21789
21790 * configure.in: Check for stdlib.h.
21791 * configure: Regenerated.
21792 * config.in: Regenerated.
21793
4c0711e0
DJ
217942003-01-04 Andreas Schwab <schwab@suse.de>
21795
21796 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21797
ef66e766
AC
217982003-01-02 Andrew Cagney <ac131313@redhat.com>
21799
21800 * Makefile.in: Remove obsolete code.
21801
a1358604
DJ
218022002-11-20 Daniel Jacobowitz <drow@mvista.com>
21803
21804 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21805 defined(PT_FPR0_HI).
21806
23ce3b1c
DJ
218072002-11-17 Stuart Hughes <seh@zee2.com>
21808
21809 * linux-arm-low.c (arm_num_regs): Increase.
21810 (arm_regmap): Include status register.
21811
218122002-11-17 Daniel Jacobowitz <drow@mvista.com>
21813
21814 * linux-low.c (register_addr): Remove incorrect -1 check.
21815
a9fa9f7d
DJ
218162002-08-29 Daniel Jacobowitz <drow@mvista.com>
21817
21818 * linux-low.c (linux_create_inferior): Call setpgid. Return
21819 the new PID.
21820 (unstopped_p, linux_signal_pid): Remove.
21821 (linux_target_ops): Remove linux_signal_pid.
21822 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21823 global instead of target method.
21824 * target.h (struct target_ops): Remove signal_pid. Update comment
21825 for create_inferior.
21826 * server.c (signal_pid): New variable.
21827 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21828 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21829 (attach_inferior): Set signal_pid.
21830
17574093
DJ
218312002-08-23 Daniel Jacobowitz <drow@mvista.com>
21832
21833 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21834
218352002-08-20 Jim Blandy <jimb@redhat.com>
21836
21837 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21838 default for this.
21839
218402002-08-01 Andrew Cagney <cagney@redhat.com>
21841
21842 * Makefile.in: Make chill references obsolete.
21843
218442002-07-24 Kevin Buettner <kevinb@redhat.com>
21845
21846 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21847 * configure: Regenerate.
21848 * config.in: Regenerate.
21849
218502002-07-09 David O'Brien <obrien@FreeBSD.org>
21851
21852 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21853 (perror_with_name, remote_close, remote_open, expect, play): Static.
21854
218552002-07-04 Michal Ludvig <mludvig@suse.cz>
21856
4b8dad4a 21857 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21858 byte offsets instead of an array of indexes.
21859 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21860
218612002-06-13 Daniel Jacobowitz <drow@mvista.com>
21862
21863 * regcache.c: Add comment.
21864
218652002-06-11 Daniel Jacobowitz <drow@mvista.com>
21866
21867 * thread-db.c: New file.
21868 * proc-service.c: New file.
21869 * acinclude.m4: New file.
21870 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21871 proc-service.o, and thread-db.o.
21872 (linux-low.o): Add USE_THREAD_DB.
21873 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21874 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21875 * aclocal.m4: Regenerated.
21876 * config.in: Regenerated.
21877 * configure: Regenerated.
21878 * configure.in: Check for proc_service.h, sys/procfs.h,
21879 thread_db.h, and linux/elf.h headrs.
21880 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21881 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21882 Check for -lthread_db and thread support.
21883 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21884 PowerPC, and SuperH.
21885 * i387-fp.c: Constify arguments.
21886 * i387-fp.h: Likewise.
21887 * inferiors.c: (struct thread_info): Renamed from
21888 `struct inferior_info'. Remove PID member. Use generic inferior
21889 list header. All uses updated.
21890 (inferiors, signal_pid): Removed.
21891 (all_threads): New variable.
21892 (get_thread): Define.
21893 (add_inferior_to_list): New function.
21894 (for_each_inferior): New function.
21895 (change_inferior_id): New function.
21896 (add_inferior): Removed.
21897 (remove_inferior): New function.
21898 (add_thread): New function.
21899 (free_one_thread): New function.
21900 (remove_thread): New function.
21901 (clear_inferiors): Use for_each_inferior and free_one_thread.
21902 (find_inferior): New function.
21903 (find_inferior_id): New function.
21904 (inferior_target_data): Update argument type.
21905 (set_inferior_target_data): Likewise.
21906 (inferior_regcache_data): Likewise.
21907 (set_inferior_regcache_data): Likewise.
21908 * linux-low.c (linux_bp_reinsert): Remove.
21909 (all_processes, stopping_threads, using_thrads)
21910 (struct pending_signals, debug_threads, pid_of): New.
21911 (inferior_pid): Replace with macro.
21912 (struct inferior_linux_data): Remove.
21913 (get_stop_pc, add_process): New functions.
21914 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21915 Use add_process and add_thread.
21916 (linux_attach_lwp): New function, based on old linux_attach. Use
21917 add_process and add_thread. Set stop_expected for new threads.
21918 (linux_attach): New function.
21919 (linux_kill_one_process): New function.
21920 (linux_kill): Kill all LWPs.
21921 (linux_thread_alive): Use find_inferior_id.
21922 (check_removed_breakpoints, status_pending_p): New functions.
21923 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21924 Update. Use WNOHANG. Wait for cloned processes also. Update process
21925 struct for the found process.
21926 (linux_wait_for_event): New function.
21927 (linux_wait): Use it. Support LWPs.
21928 (send_sigstop, wait_for_sigstop, stop_all_processes)
21929 (linux_resume_one_process, linux_continue_one_process): New functions.
21930 (linux_resume): Support LWPs.
21931 (REGISTER_RAW_SIZE): Remove.
21932 (fetch_register): Use register_size instead. Call supply_register.
21933 (usr_store_inferior_registers): Likewise. Call collect_register.
21934 Fix recursive case.
21935 (regsets_fetch_inferior_registers): Improve error message.
21936 (regsets_store_inferior_registers): Add debugging.
21937 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21938 (unstopped_p, linux_signal_pid): New functions.
21939 (linux_target_ops): Add linux_signal_pid.
21940 (linux_init_signals): New function.
21941 (initialize_low): Call it. Initialize using_threads.
21942 * regcache.c (inferior_regcache_data): Add valid
21943 flag.
21944 (get_regcache): Fetch registers lazily. Add fetch argument
21945 and update all callers.
21946 (regcache_invalidate_one, regcache_invalidate): New
21947 functions.
21948 (new_register_cache): Renamed from create_register_cache.
21949 Return the new regcache.
21950 (free_register_cache): Change argument to a void *.
21951 (registers_to_string, registers_from_string): Call get_regcache
21952 with fetch flag set.
21953 (register_data): Make static. Pass fetch flag to get_regcache.
21954 (supply_register): Call get_regcache with fetch flag clear.
21955 (collect_register): Call get_regcache with fetch flag set.
21956 (collect_register_as_string): New function.
21957 * regcache.h: Update.
21958 * remote-utils.c (putpkt): Flush after debug output and use
21959 stderr.
21960 Handle input interrupts while waiting for an ACK.
21961 (input_interrupt): Use signal_pid method.
21962 (getpkt): Flush after debug output and use stderr.
21963 (outreg): Use collect_register_as_string.
21964 (new_thread_notify, dead_thread_notify): New functions.
21965 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21966 and general_thread.
21967 (look_up_one_symbol): Flush after debug output.
21968 * server.c (step_thread, server_waiting): New variables.
21969 (start_inferior): Don't use signal_pid. Update call to mywait.
21970 (attach_inferior): Update call to mywait.
21971 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21972 (main): Don't fetch/store registers explicitly. Use
21973 set_desired_inferior. Support proposed ``Hs'' packet. Update
21974 calls to mywait.
21975 * server.h: Update.
21976 (struct inferior_list, struct_inferior_list_entry): New.
21977 * target.c (set_desired_inferior): New.
21978 (write_inferior_memory): Constify.
21979 (mywait): New function.
21980 * target.h: Update.
21981 (struct target_ops): New signal_pid method.
21982 (mywait): Removed macro, added prototype.
21983
21984 * linux-low.h (regset_func): Removed.
21985 (regset_fill_func, regset_store_func): New.
21986 (enum regset_type): New.
21987 (struct regset_info): Add type field. Use new operation types.
21988 (struct linux_target_ops): stop_pc renamed to get_pc.
21989 Add decr_pc_after_break and breakpoint_at.
21990 (get_process, get_thread_proess, get_process_thread)
21991 (strut process_info, all_processes, linux_attach_lwp)
21992 (thread_db_init): New.
21993
21994 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21995 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21996 (the_low_target): Add new members.
21997 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21998 (i386_store_fpxregset): Constify.
21999 (target_regsets): Add new kind identifier.
22000 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22001 (i386_set_pc): Add debugging.
22002 (i386_breakpoint_at): New function.
22003 (the_low_target): Add new members.
22004 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22005 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22006 (mips_breakpoint_at): New.
22007 (the_low_target): Add new members.
22008 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22009 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22010 (the_low_target): Add new members.
22011 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22012 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22013 (the_low_target): Add new members.
22014 * linux-x86-64-low.c (target_regsets): Add new kind
22015 identifier.
22016
220172002-05-15 Daniel Jacobowitz <drow@mvista.com>
22018
22019 From Martin Pool <mbp@samba.org>:
22020 * server.c (gdbserver_usage): New function.
22021 (main): Call it.
22022
220232002-05-14 Daniel Jacobowitz <drow@mvista.com>
22024
22025 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22026 stop_at -> stop_pc.
22027
220282002-05-04 Andrew Cagney <ac131313@redhat.com>
22029
22030 * Makefile.in: Remove obsolete code.
22031
220322002-04-24 Michal Ludvig <mludvig@suse.cz>
22033
22034 * linux-low.c (regsets_fetch_inferior_registers),
22035 (regsets_store_inferior_registers): Removed cast to int from
22036 ptrace() calls.
22037 * regcache.h: Added declaration of struct inferior_info.
22038
220392002-04-20 Daniel Jacobowitz <drow@mvista.com>
22040
22041 * inferiors.c (struct inferior_info): Add regcache_data.
22042 (add_inferior): Call create_register_cache.
22043 (clear_inferiors): Call free_register_cache.
22044 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22045 * regcache.c (struct inferior_regcache_data): New.
22046 (registers): Remove.
22047 (get_regcache): New function.
22048 (create_register_cache, free_register_cache): New functions.
22049 (set_register_cache): Don't initialize the register cache here.
22050 (registers_to_string, registers_from_string, register_data): Call
22051 get_regcache.
22052 * regcache.h: Add prototypes.
22053 * server.h: Likewise.
22054
220552002-04-20 Daniel Jacobowitz <drow@mvista.com>
22056
22057 * mem-break.c: New file.
22058 * mem-break.h: New file.
22059 * Makefile.in: Add mem-break.o rule; update server.h
22060 dependencies.
22061 * inferiors.c (struct inferior_info): Add target_data
22062 member.
22063 (clear_inferiors): Free target_data member if set.
22064 (inferior_target_data, set_inferior_target_data): New functions.
22065 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22066 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22067 * linux-low.c (linux_bp_reinsert): New variable.
22068 (struct inferior_linux_data): New.
22069 (linux_create_inferior): Use set_inferior_target_data.
22070 (linux_attach): Likewise. Call add_inferior.
22071 (linux_wait_for_one_inferior): New function.
22072 (linux_wait): Call it.
22073 (linux_write_memory): Add const.
22074 (initialize_low): Call set_breakpoint_data.
22075 * linux-low.h (struct linux_target_ops): Add breakpoint
22076 handling members.
22077 * server.c (attach_inferior): Remove extra add_inferior
22078 call.
22079 * server.h: Include mem-break.h. Update inferior.c
22080 prototypes.
22081 * target.c (read_inferior_memory)
22082 (write_inferior_memory): New functions.
22083 * target.h (read_inferior_memory)
22084 (write_inferior_memory): Change macros to prototypes.
22085 (struct target_ops): Update comments. Add const to write_memory
22086 definition.
22087
220882002-04-11 Daniel Jacobowitz <drow@mvista.com>
22089
22090 * linux-low.c (usr_store_inferior_registers): Support
22091 registers which are allowed to fail to store.
22092 * linux-low.h (linux_target_ops): Likewise.
22093 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22094 (ppc_cannot_store_register): FPSCR may not be storable.
22095
220962002-04-09 Daniel Jacobowitz <drow@mvista.com>
22097
22098 * server.h: Include <string.h> if HAVE_STRING_H.
22099 * ChangeLog: Correct paths in last ChangeLog entry.
22100
221012002-04-09 Daniel Jacobowitz <drow@mvista.com>
22102
22103 * linux-low.h: Remove obsolete prototypes.
22104 (struct linux_target_ops): New.
22105 (extern the_low_target): New.
22106 * linux-low.c (num_regs, regmap): Remove declarations.
22107 (register_addr): Use the_low_target explicitly.
22108 (fetch_register): Likewise.
22109 (usr_fetch_inferior_registers): Likewise.
22110 (usr_store_inferior_registers): Likewise.
22111 * linux-arm-low.c (num_regs): Remove.
22112 (arm_num_regs): Define.
22113 (arm_regmap): Renamed from regmap, made static.
22114 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22115 made static.
22116 (arm_cannot_store_register): Renamed from cannot_store_register,
22117 made static.
22118 (the_low_target): New.
22119 * linux-i386-low.c (num_regs): Remove.
22120 (i386_num_regs): Define.
22121 (i386_regmap): Renamed from regmap, made static.
22122 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22123 made static.
22124 (i386_cannot_store_register): Renamed from cannot_store_register,
22125 made static.
22126 (the_low_target): New.
22127 * linux-ia64-low.c (num_regs): Remove.
22128 (ia64_num_regs): Define.
22129 (ia64_regmap): Renamed from regmap, made static.
22130 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22131 made static.
22132 (ia64_cannot_store_register): Renamed from cannot_store_register,
22133 made static.
22134 (the_low_target): New.
22135 * linux-m68k-low.c (num_regs): Remove.
22136 (m68k_num_regs): Define.
22137 (m68k_regmap): Renamed from regmap, made static.
22138 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22139 made static.
22140 (m68k_cannot_store_register): Renamed from cannot_store_register,
22141 made static.
22142 (the_low_target): New.
22143 * linux-mips-low.c (num_regs): Remove.
22144 (mips_num_regs): Define.
22145 (mips_regmap): Renamed from regmap, made static.
22146 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22147 made static.
22148 (mips_cannot_store_register): Renamed from cannot_store_register,
22149 made static.
22150 (the_low_target): New.
22151 * linux-ppc-low.c (num_regs): Remove.
22152 (ppc_num_regs): Define.
22153 (ppc_regmap): Renamed from regmap, made static.
22154 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22155 made static.
22156 (ppc_cannot_store_register): Renamed from cannot_store_register,
22157 made static.
22158 (the_low_target): New.
22159 * linux-s390-low.c (num_regs): Remove.
22160 (s390_num_regs): Define.
22161 (s390_regmap): Renamed from regmap, made static.
22162 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22163 made static.
22164 (s390_cannot_store_register): Renamed from cannot_store_register,
22165 made static.
22166 (the_low_target): New.
22167 * linux-sh-low.c (num_regs): Remove.
22168 (sh_num_regs): Define.
22169 (sh_regmap): Renamed from regmap, made static.
22170 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22171 made static.
22172 (sh_cannot_store_register): Renamed from cannot_store_register,
22173 made static.
22174 (the_low_target): New.
22175 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22176 (the_low_target): New.
22177
221782002-04-09 Daniel Jacobowitz <drow@mvista.com>
22179
22180 * Makefile.in: Add stamp-h target.
22181 * configure.in: Create stamp-h.
22182 * configure: Regenerated.
22183
221842002-04-09 Daniel Jacobowitz <drow@mvista.com>
22185
22186 * inferiors.c: New file.
22187 * target.c: New file.
22188 * target.h: New file.
22189 * Makefile.in: Add target.o and inferiors.o. Update
22190 dependencies.
22191 * linux-low.c (inferior_pid): New static variable,
22192 moved from server.c.
22193 (linux_create_inferior): Renamed from create_inferior.
22194 Call add_inferior. Return 0 on success instead of a PID.
22195 (linux_attach): Renamed from myattach.
22196 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22197 (linux_thread_alive): Renamed from mythread_alive.
22198 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22199 child dies.
22200 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22201 (regsets_store_inferior_registers): Correct error message.
22202 Add missing ``return 0''.
22203 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22204 (linux_store_registers): Renamed from store_inferior_registers.
22205 (linux_read_memory): Renamed from read_inferior_memory.
22206 (linux_write_memory): Renamed from write_inferior_memory.
22207 (linux_target_ops): New structure.
22208 (initialize_low): Call set_target_ops ().
22209 * remote-utils.c (unhexify): New function.
22210 (hexify): New function.
22211 (input_interrupt): Send signals to ``signal_pid''.
22212 * server.c (inferior_pid): Remove.
22213 (start_inferior): Update create_inferior call.
22214 (attach_inferior): Call add_inferior.
22215 (handle_query): New function.
22216 (main): Call handle_query for `q' packets.
22217 * server.h: Include "target.h". Remove obsolete prototypes.
22218 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22219
222202002-04-09 Daniel Jacobowitz <drow@mvista.com>
22221
22222 * Makefile.in: Add WARN_CFLAGS. Update configury
22223 dependencies.
22224 * configure.in: Check for <string.h>
22225 * configure: Regenerate.
22226 * config.in: Regenerate.
22227 * gdbreplay.c: Include needed system headers.
22228 (remote_open): Remove strchr prototype.
22229 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22230 * regcache.c (supply_register): Change buf argument to const void *.
22231 (supply_register_by_name): Likewise.
22232 (collect_register): Change buf argument to void *.
22233 (collect_register_by_name): Likewise.
22234 * regcache.h: Add missing prototypes.
22235 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22236 * server.c (handle_query): New function.
22237 (attached): New static variable, moved out of main.
22238 (main): Quiet longjmp clobber warnings.
22239 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22240 * utils.c (error): Remove NORETURN.
22241 (fatal): Likewise.