]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
[PATCH] fix windmc typedef bug
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
6479bf85
HD
12020-05-27 Hannes Domani <ssbssa@yahoo.de>
2
3 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
4 (win32_clear_inferiors): Use open_process_used.
5 (get_child_debug_event): Likewise.
6
bea571eb
MW
72020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8
9 PR gdbserver/25893
10 * linux-low.cc (linux_process_target::create_inferior),
11 lynx-low.cc (lynx_process_target::create_inferior),
12 win32-low.cc (win32_process_target::create_inferior): Use
13 construct_inferior_arguments instead of stringify_argv
14 to get string representation which properly escapes
15 special characters.
16 * server.cc (handle_v_run): Just pass empty program arg
17 as such, since any further processing is now handled via
18 construct_inferior_arguments.
19
ace6b919
MW
202020-05-25 Michael Weghorn <m.weghorn@posteo.de>
21
22 * nto-low.cc (nto_process_target::create_inferior): Pass
23 argv to spawnp function as char **.
24
b69ca137
MW
252020-05-25 Michael Weghorn <m.weghorn@posteo.de>
26
27 * server.cc (captured_main), (handle_v_run): No longer
28 insert extra NULL element to args vector.
29
51e2cfa2
PA
302020-05-23 Pedro Alves <palves@redhat.com>
31
32 * gdb-safe-ctype.h: New.
33
8bbf0394
TBA
342020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35
36 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
37 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
38 (ia64_target::low_breakpoint_at): Ditto.
39
01370779
HD
402020-05-15 Hannes Domani <ssbssa@yahoo.de>
41
42 * win32-i386-low.cc (i386_supports_z_point_type): Handle
43 Z_PACKET_HW_BP z_type.
44 (i386_insert_point): Handle raw_bkpt_type type.
45 (i386_remove_point): Likewise.
46
7d186bc0
HD
472020-04-30 Hannes Domani <ssbssa@yahoo.de>
48
49 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
50 Add arch/i386.o.
51 * win32-arm-low.cc (arm_num_regs): New function.
52 (struct win32_target_ops): Use arm_num_regs.
53 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
54 processes.
55 (i386_get_thread_context): Likewise.
56 (i386_prepare_to_resume): Likewise.
57 (i386_thread_added): Likewise.
58 (i386_single_step): Likewise.
59 (i386_fetch_inferior_register): Likewise.
60 (i386_store_inferior_register): Likewise.
61 (i386_arch_setup): Likewise.
62 (i386_win32_num_regs): New function.
63 (struct win32_target_ops): Use i386_win32_num_regs.
64 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
65 processes.
66 (win32_require_context): Likewise.
67 (child_add_thread): Likewise.
68 (do_initial_child_stuff): Likewise.
69 (continue_one_thread): Likewise.
70 (win32_process_target::resume): Likewise.
71 (load_psapi): Likewise.
72 (win32_add_all_dlls): Likewise.
73 (maybe_adjust_pc): Likewise.
74 (win32_process_target::qxfer_siginfo): Likewise.
75 (initialize_low): Likewise.
76 * win32-low.h (struct win32_target_ops): Change num_regs to
77 callback function.
78
1eb39914
SM
792020-04-27 Simon Marchi <simon.marchi@efficios.com>
80
81 * configure.ac: Remove check for fs_base/gs_base in
82 user_regs_struct.
83 * configure: Re-generate.
84 * config.in: Re-generate.
85 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
86 x86_store_gregset): Adjust.
87
51ac8e22
HD
882020-04-22 Hannes Domani <ssbssa@yahoo.de>
89
90 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
91 comparison.
92
a010605f
TT
932020-04-16 Tom Tromey <tromey@adacore.com>
94
95 * win32-low.cc (windows_nat::handle_access_violation): New
96 function.
97
e2275c6e
SM
982020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * win32-low.cc (get_child_debug_event): Fix format string warning.
101
73944e9f
TT
1022020-04-13 Tom Tromey <tom@tromey.com>
103
104 * server.h (gdb_fildes_t): Remove typedef.
105 * remote-utils.c (remote_desc, list_desc): Now int.
106 (INVALID_DESCRIPTOR): Remove.
107 (gdb_connected, remote_close)
108 (check_remote_input_interrupt_request): Update.
109 * utils.h (pfildes): Don't declare.
110 * utils.c (pfildes): Remove.
111
55d7aec8
TT
1122020-04-13 Tom Tromey <tom@tromey.com>
113
114 * server.h (handle_serial_event, handle_target_event): Update.
115 * server.c: Don't call initialize_event_loop.
116 (keep_processing_events): New global.
117 (handle_serial_event): Return void. Set keep_processing_events.
118 (handle_target_event): Return void.
119 (start_event_loop): Move from event-loop.c. Rewrite.
120 * remote-utils.c (handle_accept_event): Return void.
121 (reset_readchar): Use delete_timer.
122 (process_remaining): Return void.
123 (reschedule): Use create_timer.
124 * event-loop.h: Remove.
125 * event-loop.cc: Remove.
126 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
127
e487f994
TT
1282020-04-13 Tom Tromey <tom@tromey.com>
129
130 * server.c (invoke_async_signal_handlers)
131 (check_async_event_handlers, flush_streams, gdb_select): New
132 functions.
133
8ae8e197
TT
1342020-04-13 Tom Tromey <tom@tromey.com>
135
136 * configure: Rebuild.
137 * config.in: Rebuild.
138
360ad8b3
TT
1392020-04-08 Tom Tromey <tromey@adacore.com>
140
141 PR gdb/22992
142 * win32-low.c (child_continue): Call matching_pending_stop.
143 (get_child_debug_event): Call fetch_pending_stop. Push pending
144 stop when needed.
145
523d4f80
TT
1462020-04-08 Tom Tromey <tromey@adacore.com>
147
148 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
149 (win32_process_target::supports_stopped_by_sw_breakpoint):
150 Declare.
151 * win32-low.c (win32_supports_z_point_type): Always handle
152 Z_PACKET_SW_BP.
153 (win32_insert_point): Call insert_memory_breakpoint when needed.
154 (win32_remove_point): Call remove_memory_breakpoint when needed.
155 (win32_process_target::stopped_by_sw_breakpoint)
156 (win32_process_target::supports_stopped_by_sw_breakpoint): New
157 methods.
158 (win32_target_ops): Update.
159 (maybe_adjust_pc): New function.
160 (win32_wait): Call maybe_adjust_pc.
161
e54e5929
TT
1622020-04-08 Tom Tromey <tromey@adacore.com>
163
164 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
165 field.
166 * win32-i386-low.c (the_low_target): Update.
167 * win32-arm-low.c (the_low_target): Update.
168
d6225aff
TT
1692020-04-08 Tom Tromey <tromey@adacore.com>
170
171 * win32-low.h (win32_process_target::read_pc)
172 (win32_process_target::write_pc): Declare.
173 * win32-low.c (win32_process_target::read_pc)
174 (win32_process_target::write_pc): New methods.
175 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
176 functions.
177 (the_low_target): Update.
178 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
179 functions.
180 (the_low_target): Update.
181
2c1d95e8
TT
1822020-04-08 Tom Tromey <tromey@adacore.com>
183
184 * win32-low.c (win32_kill, get_child_debug_event): Use
185 wait_for_debug_event.
186
e758e19c
TT
1872020-04-08 Tom Tromey <tromey@adacore.com>
188
189 * win32-low.c (child_continue): Call continue_last_debug_event.
190
8d30e395
TT
1912020-04-08 Tom Tromey <tromey@adacore.com>
192
193 * win32-low.c (handle_exception): Remove.
194 (windows_nat::handle_ms_vc_exception): New function.
195 (get_child_debug_event): Add "continue_status" parameter.
196 Update.
197 (win32_wait): Update.
198
a816ba18
TT
1992020-04-08 Tom Tromey <tromey@adacore.com>
200
201 * win32-low.c (windows_nat::handle_load_dll): Rename from
202 handle_load_dll. No longer static.
203 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
204 No longer static.
205
d41b524f
TT
2062020-04-08 Tom Tromey <tromey@adacore.com>
207
208 * win32-low.c (handle_output_debug_string): Add parameter. Change
209 return type.
210 (win32_kill, get_child_debug_event): Update.
211
3c76026d
TT
2122020-04-08 Tom Tromey <tromey@adacore.com>
213
214 * win32-low.c (current_process_handle, current_process_id)
215 (main_thread_id, last_sig, current_event, siginfo_er): Move to
216 nat/windows-nat.c.
217
9d8679cc
TT
2182020-04-08 Tom Tromey <tromey@adacore.com>
219
220 * win32-low.c (get_image_name): Remove.
221 (handle_load_dll): Update.
222
28688adf
TT
2232020-04-08 Tom Tromey <tromey@adacore.com>
224
225 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
226 No longer static. Change parameters.
227 (child_add_thread, child_fetch_inferior_registers)
228 (child_store_inferior_registers, win32_resume)
229 (win32_get_tib_address): Update.
230
4834dad0
TT
2312020-04-08 Tom Tromey <tromey@adacore.com>
232
233 * win32-low.h (struct win32_target_ops): Use qualified names where
234 needed.
235 * win32-i386-low.c: Add "using namespace".
236 * win32-low.c: Add "using namespace".
237 * win32-arm-low.c: Add "using namespace".
238
65bafd5b
TT
2392020-04-08 Tom Tromey <tromey@adacore.com>
240
241 * win32-low.c (delete_thread_info): Don't call CloseHandle.
242
98a03287
TT
2432020-04-08 Tom Tromey <tromey@adacore.com>
244
245 * win32-low.c (win32_require_context, suspend_one_thread): Use
246 windows_thread_info::suspend.
247 (continue_one_thread): Use windows_thread_info::resume.
248 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
249
62fe396b
TT
2502020-04-08 Tom Tromey <tromey@adacore.com>
251
252 * win32-i386-low.c (update_debug_registers)
253 (i386_prepare_to_resume, i386_thread_added): Update.
254
e9534bd2
TT
2552020-04-08 Tom Tromey <tromey@adacore.com>
256
257 * win32-low.c (child_add_thread): Use new.
258 (delete_thread_info): Use delete.
259
ae1f8880
TT
2602020-04-08 Tom Tromey <tromey@adacore.com>
261
262 * win32-low.h (struct windows_thread_info): Remove.
263
e56f8ccb
TT
2642020-04-08 Tom Tromey <tromey@adacore.com>
265
266 * win32-low.h (struct windows_thread_info): Rename from
267 win32_thread_info. Remove typedef.
268 (struct win32_target_ops, win32_require_context): Update.
269 * win32-low.c (win32_get_thread_context)
270 (win32_set_thread_context, win32_prepare_to_resume)
271 (win32_require_context, thread_rec, child_add_thread)
272 (delete_thread_info, continue_one_thread)
273 (child_fetch_inferior_registers, child_store_inferior_registers)
274 (win32_resume, suspend_one_thread, win32_get_tib_address):
275 Update.
276 * win32-i386-low.c (update_debug_registers)
277 (win32_get_current_dr, i386_get_thread_context)
278 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
279 (i386_fetch_inferior_register, i386_store_inferior_register):
280 Update.
281 * win32-arm-low.c (arm_get_thread_context)
282 (arm_fetch_inferior_register, arm_store_inferior_register):
283 Update.
284
0dd7b52e
TBA
2852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
286
287 * linux-low.h (struct linux_target_ops): Remove.
288 (the_low_target): Remove.
289 * linux-x86-low.cc (the_low_target): Remove.
290 * linux-aarch64-low.cc (the_low_target): Ditto.
291 * linux-arm-low.cc (the_low_target): Ditto.
292 * linux-bfin-low.cc (the_low_target): Ditto.
293 * linux-cris-low.cc (the_low_target): Ditto.
294 * linux-crisv32-low.cc (the_low_target): Ditto.
295 * linux-ia64-low.cc (the_low_target): Ditto.
296 * linux-m32r-low.cc (the_low_target): Ditto.
297 * linux-m68k-low.cc (the_low_target): Ditto.
298 * linux-mips-low.cc (the_low_target): Ditto.
299 * linux-nios2-low.cc (the_low_target): Ditto.
300 * linux-ppc-low.cc (the_low_target): Ditto.
301 * linux-riscv-low.cc (the_low_target): Ditto.
302 * linux-s390-low.cc (the_low_target): Ditto.
303 * linux-sh-low.cc (the_low_target): Ditto.
304 * linux-sparc-low.cc (the_low_target): Ditto.
305 * linux-tic6x-low.cc (the_low_target): Ditto.
306 * linux-tile-low.cc (the_low_target): Ditto.
307 * linux-xtensa-low.cc (the_low_target): Ditto.
308
fc5ecdb6
TBA
3092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
310
311 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
312 linux target define the op by overriding the declaration in
313 process_stratum_target.
314
315 * linux-low.h (struct linux_target_ops): Remove the op.
316 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
317 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
318 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
319 (x86_get_ipa_tdesc_idx): Turn into...
320 (x86_target::get_ipa_tdesc_idx): ...this.
321 (the_low_target): Remove the op field.
322 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
323 (ppc_get_ipa_tdesc_idx): Turn into...
324 (ppc_target::get_ipa_tdesc_idx): ...this.
325 (the_low_target): Remove the op field.
326 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
327 (s390_get_ipa_tdesc_idx): Turn into...
328 (s390_target::get_ipa_tdesc_idx): ...this.
329 (the_low_target): Remove the op field.
330
9eedd27d
TBA
3312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
332
333 Turn the 'get_syscall_trapinfo' linux target op into a method
334 of process_stratum_target.
335
336 * linux-low.h (struct linux_target_ops): Remove the op.
337 (class linux_process_target) <get_syscall_trapinfo>
338 <gdb_catch_this_syscall>
339 <low_supports_catch_syscall>
340 <low_get_syscall_trapinfo>: Declare.
341 * linux-low.cc (get_syscall_trapinfo): Turn into...
342 (linux_process_target::get_syscall_trapinfo): ...this.
343 (linux_process_target::low_get_syscall_trapinfo): Define.
344 (gdb_catch_this_syscall_p): Turn into...
345 (linux_process_target::gdb_catch_this_syscall): ...this.
346 (linux_process_target::low_supports_catch_syscall): Define.
347
348 Update the callers below.
349
350 (linux_process_target::wait_1)
351 (linux_process_target::supports_catch_syscall)
352
353 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
354 <low_get_syscall_trapinfo>: Declare.
355 (x86_target::low_supports_catch_syscall): Define.
356 (x86_get_syscall_trapinfo): Turn into...
357 (x86_target::low_get_syscall_trapinfo): ...this.
358 (the_low_target): Remove the op field.
359 * linux-aarch64-low.cc (class aarch64_target)
360 <low_supports_catch_syscall>
361 <low_get_syscall_trapinfo>: Declare.
362 (aarch64_target::low_supports_catch_syscall): Define.
363 (aarch64_get_syscall_trapinfo): Turn into...
364 (aarch64_target::low_get_syscall_trapinfo): ...this.
365 (the_low_target): Remove the op field.
366 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
367 <low_get_syscall_trapinfo>: Declare.
368 (arm_target::low_supports_catch_syscall): Define.
369 (arm_get_syscall_trapinfo): Turn into...
370 (arm_target::low_get_syscall_trapinfo): ...this.
371 (the_low_target): Remove the op field.
372 * linux-ppc-low.cc (the_low_target): Remove the op field.
373 * linux-s390-low.cc (the_low_target): Remove the op field.
374
b31cdfa6
TBA
3752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
376
377 Remove the 'supports_hardware_single_step' linux target op and
378 override the process_stratum_target's op definition in
379 linux_process_target to return true.
380
381 * linux-low.h (struct linux_target_ops): Remove the op.
382 (class linux_process_target) <finish_step_over>
383 <maybe_hw_step>: Declare.
384 * linux-low.cc (can_hardware_single_step): Remove.
385 (maybe_hw_step): Turn into...
386 (linux_process_target::maybe_hw_step): ...this.
387 (finish_step_over): Turn into...
388 (linux_process_target::finish_step_over): ...this.
389 (linux_process_target::supports_hardware_single_step): Update
390 to return true.
391
392 Update the callers below.
393
394 (linux_process_target::single_step)
395 (linux_process_target::resume_one_lwp_throw)
396
397 * linux-arm-low.cc (class arm_target)
398 <supports_hardware_single_step>: Declare.
399 (arm_supports_hardware_single_step): Turn into...
400 (arm_target::supports_hardware_single_step): ...this.
401 (the_low_target): Remove the op field.
402 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
403 (the_low_target): Remove the op field.
404 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
405 Remove.
406 (the_low_target): Remove the op field.
407 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
408 (the_low_target): Remove the op field.
409 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
410 (the_low_target): Remove the op field.
411 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
412 (the_low_target): Remove the op field.
413 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
414 (the_low_target): Remove the op field.
415 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
416 (the_low_target): Remove the op field.
417 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
418 (the_low_target): Remove the op field.
419 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
420 (the_low_target): Remove the op field.
421 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
422 (the_low_target): Remove the op field.
423 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
424 (the_low_target): Remove the op field.
425 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
426 Remove.
427 (the_low_target): Remove the op field.
428
9cfd8715
TBA
4292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
430
431 Turn the 'supports_range_stepping' linux target op into a method
432 of linux_process_target.
433
434 * linux-low.h (struct linux_target_ops): Remove the op.
435 (class linux_process_target) <low_supports_range_stepping>: Declare.
436 * linux-low.cc (linux_process_target::low_supports_range_stepping):
437 Define.
438 (linux_process_target::supports_range_stepping): Update the call
439 site.
440 * linux-x86-low.cc (class x86_target)
441 <low_supports_range_stepping>: Declare.
442 (x86_supports_range_stepping): Turn into...
443 (x86_target::low_supports_range_stepping): ...this.
444 (the_low_target): Remove the op field.
445 * linux-aarch64-low.cc (class aarch64_target)
446 <low_supports_range_stepping>: Declare.
447 (aarch64_supports_range_stepping): Turn into...
448 (aarch64_target::low_supports_range_stepping): ...this.
449 (the_low_target): Remove the op field.
450 * linux-arm-low.cc (the_low_target): Remove the op field.
451 * linux-bfin-low.cc (the_low_target): Ditto.
452 * linux-crisv32-low.cc (the_low_target): Ditto.
453 * linux-m32r-low.cc (the_low_target): Ditto.
454 * linux-m68k-low.cc (the_low_target): Ditto.
455 * linux-ppc-low.cc (the_low_target): Ditto.
456 * linux-s390-low.cc (the_low_target): Ditto.
457 * linux-sh-low.cc (the_low_target): Ditto.
458 * linux-tic6x-low.cc (the_low_target): Ditto.
459 * linux-tile-low.cc (the_low_target): Ditto.
460 * linux-xtensa-low.cc (the_low_target): Ditto.
461
ab64c999
TBA
4622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
463
464 Remove the 'emit_ops' linux target ops and let the concrete
465 linux target define the op by overriding the declaration of
466 process_stratum_target.
467
468 * linux-low.h (struct linux_target_ops): Remove the op.
469 (class linux_process_target) <emit_ops>: Remove.
470 * linux-low.cc (linux_process_target::emit_ops): Remove.
471 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
472 (x86_emit_ops): Turn into...
473 (x86_target::emit_ops): ...this.
474 (the_low_target): Remove the op field.
475 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
476 (aarch64_emit_ops): Turn into...
477 (aarch64_target::emit_ops): ...this.
478 (the_low_target): Remove the op field.
479 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
480 (ppc_emit_ops): Turn into...
481 (ppc_target::emit_ops): ...this.
482 (the_low_target): Remove the op field.
483 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
484 (s390_emit_ops): Turn into...
485 (s390_target::emit_ops): ...this.
486 (the_low_target): Remove the op field.
487 * linux-arm-low.cc (the_low_target): Remove the op field.
488 * linux-bfin-low.cc (the_low_target): Ditto.
489 * linux-crisv32-low.cc (the_low_target): Ditto.
490 * linux-m32r-low.cc (the_low_target): Ditto.
491 * linux-m68k-low.cc (the_low_target): Ditto.
492 * linux-sh-low.cc (the_low_target): Ditto.
493 * linux-tic6x-low.cc (the_low_target): Ditto.
494 * linux-tile-low.cc (the_low_target): Ditto.
495 * linux-xtensa-low.cc (the_low_target): Ditto.
496
809a0c35
TBA
4972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
498
499 Remove the 'install_fast_tracepoint_jump_pad' and
500 'get_min_fast_tracepoint_insn_len' linux target ops to let the
501 concrete linux target define the ops by overriding the declarations
502 of process_stratum_target.
503
504 * linux-low.h (struct linux_target_ops): Remove the ops.
505 (class linux_process_target) <supports_fast_tracepoints>
506 <install_fast_tracepoint_jump_pad>
507 <get_min_fast_tracepoint_insn_len>: Remove.
508 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
509 (linux_process_target::install_fast_tracepoint_jump_pad)
510 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
511 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
512 <install_fast_tracepoint_jump_pad>
513 <get_min_fast_tracepoint_insn_len>: Declare.
514 (x86_target::supports_fast_tracepoints): Define.
515 (x86_install_fast_tracepoint_jump_pad): Turn into...
516 (x86_target::install_fast_tracepoint_jump_pad): ...this.
517 (x86_get_min_fast_tracepoint_insn_len): Turn into...
518 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
519 (the_low_target): Remove the op fields.
520 * linux-aarch64-low.cc (class aarch64_target)
521 <supports_fast_tracepoints>
522 <install_fast_tracepoint_jump_pad>
523 <get_min_fast_tracepoint_insn_len>: Declare.
524 (aarch64_target::supports_fast_tracepoints): Define.
525 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
526 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
527 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
528 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
529 (the_low_target): Remove the op fields.
530 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
531 <install_fast_tracepoint_jump_pad>
532 <get_min_fast_tracepoint_insn_len>: Declare.
533 (ppc_target::supports_fast_tracepoints): Define.
534 (ppc_install_fast_tracepoint_jump_pad): Turn into...
535 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
536 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
537 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
538 (the_low_target): Remove the op fields.
539 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
540 <install_fast_tracepoint_jump_pad>
541 <get_min_fast_tracepoint_insn_len>: Declare.
542 (s390_target::supports_fast_tracepoints): Define.
543 (s390_install_fast_tracepoint_jump_pad): Turn into...
544 (s390_target::install_fast_tracepoint_jump_pad): ...this.
545 (s390_get_min_fast_tracepoint_insn_len): Turn into...
546 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
547 (the_low_target): Remove the op fields.
548 * linux-arm-low.cc (the_low_target): Remove the op fields.
549 * linux-bfin-low.cc (the_low_target): Ditto.
550 * linux-crisv32-low.cc (the_low_target): Ditto.
551 * linux-m32r-low.cc (the_low_target): Ditto.
552 * linux-m68k-low.cc (the_low_target): Ditto.
553 * linux-sh-low.cc (the_low_target): Ditto.
554 * linux-tic6x-low.cc (the_low_target): Ditto.
555 * linux-tile-low.cc (the_low_target): Ditto.
556 * linux-xtensa-low.cc (the_low_target): Ditto.
557
13e567af
TBA
5582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
559
560 Turn the 'get_thread_area' linux target op into a method of
561 process_stratum_target.
562
563 * linux-low.h (struct linux_target_ops): Remove the op.
564 (class linux_process_target) <stuck_in_jump_pad>
565 <linux_fast_tracepoint_collecting>
566 <low_get_thread_area>: Declare.
567 * linux-low.cc (supports_fast_tracepoints): Remove.
568 (linux_fast_tracepoint_collecting): Turn into...
569 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
570 (linux_process_target::low_get_thread_area): Define.
571 (stuck_in_jump_pad_callback): Turn into...
572 (linux_process_target::stuck_in_jump_pad): ...this.
573
574 Update the caller below.
575
576 (linux_process_target::stabilize_threads)
577
578 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
579 Declare.
580 (x86_get_thread_area): Turn into...
581 (x86_target::low_get_thread_area): ...this.
582 (the_low_target): Remove the op field.
583 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
584 Declare.
585 (aarch64_get_thread_area): Turn into...
586 (aarch64_target::low_get_thread_area): ...this.
587 (the_low_target): Remove the op field.
588 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
589 Declare.
590 (ppc_get_thread_area): Turn into...
591 (ppc_target::low_get_thread_area): ...this.
592 (the_low_target): Remove the op field.
593 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
594 Declare.
595 (s390_get_thread_area): Turn into...
596 (s390_target::low_get_thread_area): ...this.
597 (the_low_target): Remove the op field.
598 * linux-arm-low.cc (the_low_target): Remove the op field.
599 * linux-bfin-low.cc (the_low_target): Ditto.
600 * linux-crisv32-low.cc (the_low_target): Ditto.
601 * linux-m32r-low.cc (the_low_target): Ditto.
602 * linux-m68k-low.cc (the_low_target): Ditto.
603 * linux-sh-low.cc (the_low_target): Ditto.
604 * linux-tic6x-low.cc (the_low_target): Ditto.
605 * linux-tile-low.cc (the_low_target): Ditto.
606 * linux-xtensa-low.cc (the_low_target): Ditto.
607
47f70aa7
TBA
6082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
609
610 Remote the 'supports_tracepoints' linux target op and let the
611 concrete linux target define it by overriding the op declared in
612 process_stratum_target.
613
614 * linux-low.h (struct linux_target_ops): Remove the op.
615 (class linux_process_target) <supports_tracepoints>: Remove.
616 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
617 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
618 Declare.
619 (x86_supports_tracepoints): Turn into...
620 (x86_target::supports_tracepoints): ...this.
621 (the_low_target): Remove the op field.
622 * linux-aarch64-low.cc (class aarch64_target)
623 <supports_tracepoints>: Declare.
624 (aarch64_supports_tracepoints): Turn into...
625 (aarch64_target::supports_tracepoints): ...this.
626 (the_low_target): Remove the op field.
627 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
628 Declare.
629 (ppc_supports_tracepoints): Turn into...
630 (ppc_target::supports_tracepoints): ...this.
631 (the_low_target): Remove the op field.
632 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
633 Declare.
634 (s390_supports_tracepoints): Turn into...
635 (s390_target::supports_tracepoints): ...this.
636 (the_low_target): Remove the op field.
637 * linux-arm-low.cc (the_low_target): Remove the op field.
638 * linux-bfin-low.cc (the_low_target): Ditto.
639 * linux-crisv32-low.cc (the_low_target): Ditto.
640 * linux-m32r-low.cc (the_low_target): Ditto.
641 * linux-m68k-low.cc (the_low_target): Ditto.
642 * linux-sh-low.cc (the_low_target): Ditto.
643 * linux-tic6x-low.cc (the_low_target): Ditto.
644 * linux-tile-low.cc (the_low_target): Ditto.
645 * linux-xtensa-low.cc (the_low_target): Ditto.
646
a5b5da92
TBA
6472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
648
649 Remove the 'process_qsupported' linux target op and let a concrete
650 linux target define the op by overriding the op declaration in
651 process_stratum_target.
652
653 * linux-low.h (struct linux_target_ops): Remove the op.
654 (class linux_process_target) <process_qsupported>: Remove.
655 * linux-low.cc (linux_process_target::process_qsupported): Remove.
656 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
657 (x86_linux_process_qsupported): Turn into...
658 (x86_target::process_qsupported): ...this.
659 (the_low_target): Remove the op field.
660 * linux-aarch64-low.cc (the_low_target): Remove the op
661 field.
662 * linux-arm-low.cc (the_low_target): Ditto.
663 * linux-bfin-low.cc (the_low_target): Ditto.
664 * linux-crisv32-low.cc (the_low_target): Ditto.
665 * linux-m32r-low.cc (the_low_target): Ditto.
666 * linux-m68k-low.cc (the_low_target): Ditto.
667 * linux-ppc-low.cc (the_low_target): Ditto.
668 * linux-s390-low.cc (the_low_target): Ditto.
669 * linux-sh-low.cc (the_low_target): Ditto.
670 * linux-tic6x-low.cc (the_low_target): Ditto.
671 * linux-tile-low.cc (the_low_target): Ditto.
672 * linux-xtensa-low.cc (the_low_target): Ditto.
673
d7599cc0
TBA
6742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
675
676 Turn the 'prepare_to_resume' linux target op into a method of
677 linux_process_target.
678
679 * linux-low.h (struct linux_target_ops): Remove the op.
680 (class linux_process_target) <low_prepare_to_resume>: Declare.
681 * linux-low.cc (linux_process_target::low_prepare_to_resume):
682 Define.
683
684 Update the callers below:
685
686 (linux_process_target::resume_one_lwp_throw)
687 (linux_process_target::low_prepare_to_resume)
688
689 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
690 Declare.
691 (x86_target::low_prepare_to_resume): Define.
692 (the_low_target): Remove the op field.
693 * linux-aarch64-low.cc (class aarch64_target)
694 <low_prepare_to_resume>: Declare.
695 (aarch64_target::low_prepare_to_resume): Define.
696 (the_low_target): Remove the op field.
697 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
698 Declare.
699 (arm_prepare_to_resume): Turn into...
700 (arm_target::low_prepare_to_resume): ...this.
701 (the_low_target): Remove the op field.
702 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
703 Declare.
704 (mips_linux_prepare_to_resume): Turn into...
705 (mips_target::low_prepare_to_resume): ...this.
706 (the_low_target): Remove the op field.
707 * linux-bfin-low.cc (the_low_target): Remove the op field.
708 * linux-crisv32-low.cc (the_low_target): Ditto.
709 * linux-m32r-low.cc (the_low_target): Ditto.
710 * linux-m68k-low.cc (the_low_target): Ditto.
711 * linux-ppc-low.cc (the_low_target): Ditto.
712 * linux-s390-low.cc (the_low_target): Ditto.
713 * linux-sh-low.cc (the_low_target): Ditto.
714 * linux-tic6x-low.cc (the_low_target): Ditto.
715 * linux-tile-low.cc (the_low_target): Ditto.
716 * linux-xtensa-low.cc (the_low_target): Ditto.
717
fd000fb3
TBA
7182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
719
720 Turn the 'new_process', 'delete_process', 'new_thread',
721 'delete_thread', and 'new_fork' linux target ops into methods
722 of linux_process_target.
723
724 * linux-low.h (struct linux_target_ops): Remove the ops.
725 (class linux_process_target) <add_linux_process>
726 <add_lwp>
727 <delete_lwp>
728 <attach_lwp>
729 <detach_one_lwp>
730 <check_zombie_leaders>
731 <filter_exit_event>
732 <low_new_process>
733 <low_delete_process>
734 <low_new_thread>
735 <low_delete_thread>
736 <low_new_fork>: Declare.
737 * linux-low.cc (delete_lwp): Turn into...
738 (linux_process_target::delete_lwp): ...this.
739 (linux_process_target::low_delete_thread): Define.
740 (linux_add_process): Turn into...
741 (linux_process_target::add_linux_process): ...this.
742 (linux_process_target::low_new_process): Define.
743 (linux_process_target::low_delete_process): Define.
744 (linux_process_target::low_new_fork): Define.
745 (add_lwp): Turn into...
746 (linux_process_target::add_lwp): ...this.
747 (linux_process_target::low_new_thread): Define.
748 (linux_attach_lwp): Turn into...
749 (linux_process_target::attach_lwp): ...this.
750 (linux_detach_one_lwp): Turn into...
751 (linux_process_target::detach_one_lwp): ...this.
752 (linux_detach_lwp_callback): Remove and inline...
753 (linux_process_target::detach): ...here.
754 (check_zombie_leaders): Turn into...
755 (linux_process_target::check_zombie_leaders): ...this.
756 (filter_exit_event): Turn into...
757 (linux_process_target::filter_exit_event): ...this.
758
759 Update the callers below.
760
761 (linux_process_target::handle_extended_wait)
762 (linux_process_target::create_inferior)
763 (attach_proc_task_lwp_callback)
764 (linux_process_target::attach)
765 (linux_process_target::detach)
766 (linux_process_target::mourn)
767 * thread-db.cc (attach_thread)
768
769 * linux-x86-low.cc (class x86_target) <low_new_process>
770 <low_delete_process>
771 <low_new_thread>
772 <low_delete_thread>
773 <low_new_fork>: Declare.
774 (x86_linux_new_process): Turn into...
775 (x86_target::low_new_process): ...this.
776 (x86_linux_delete_process): Turn into...
777 (x86_target::low_delete_process): ...this.
778 (x86_target::low_new_thread): Define.
779 (x86_target::low_delete_thread): Define.
780 (x86_linux_new_fork): Turn into...
781 (x86_target::low_new_fork): ...this.
782 (the_low_target): Remove the op fields.
783 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
784 <low_delete_process>
785 <low_new_thread>
786 <low_delete_thread>
787 <low_new_fork>: Declare.
788 (aarch64_linux_new_process): Turn into...
789 (aarch64_target::low_new_process): ...this.
790 (aarch64_linux_delete_process): Turn into...
791 (aarch64_target::low_delete_process): ...this.
792 (aarch64_target::low_new_thread): Define.
793 (aarch64_target::low_delete_thread): Define.
794 (aarch64_linux_new_fork): Turn into...
795 (aarch64_target::low_new_fork): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-arm-low.cc (class arm_target) <low_new_process>
798 <low_delete_process>
799 <low_new_thread>
800 <low_delete_thread>
801 <low_new_fork>: Declare.
802 (arm_new_process): Turn into...
803 (arm_target::low_new_process): ...this.
804 (arm_delete_process): Turn into...
805 (arm_target::low_delete_process): ...this.
806 (arm_new_thread): Turn into...
807 (arm_target::low_new_thread): ...this.
808 (arm_delete_thread): Turn into...
809 (arm_target::low_delete_thread): ...this.
810 (arm_new_fork): Turn into...
811 (arm_target::low_new_fork): ...this.
812 (the_low_target): Remove the op fields.
813 * linux-mips-low.cc (class mips_target) <low_new_process>
814 <low_delete_process>
815 <low_new_thread>
816 <low_delete_thread>
817 <low_new_fork>: Declare.
818 (mips_linux_new_process): Turn into...
819 (mips_target::low_new_process): ...this.
820 (mips_linux_delete_process): Turn into...
821 (mips_target::low_delete_process): ...this.
822 (mips_linux_new_thread): Turn into...
823 (mips_target::low_new_thread): ...this.
824 (mips_linux_delete_thread): Turn into...
825 (mips_target::low_delete_thread): ...this.
826 (mips_linux_new_fork): Turn into...
827 (mips_target::low_new_fork): ...this.
828 (the_low_target): Remove the op fields.
829 * linux-bfin-low.cc (the_low_target): Remove the op fields.
830 * linux-crisv32-low.cc (the_low_target): Ditto.
831 * linux-m32r-low.cc (the_low_target): Ditto.
832 * linux-m68k-low.cc (the_low_target): Ditto.
833 * linux-ppc-low.cc (the_low_target): Ditto.
834 * linux-s390-low.cc (the_low_target): Ditto.
835 * linux-sh-low.cc (the_low_target): Ditto.
836 * linux-tic6x-low.cc (the_low_target): Ditto.
837 * linux-tile-low.cc (the_low_target): Ditto.
838 * linux-xtensa-low.cc (the_low_target): Ditto.
839
cb63de7c
TBA
8402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 Turn the 'siginfo_fixup' linux target op into a method of
843 linux_process_target.
844
845 * linux-low.h (struct linux_target_ops): Remove the op.
846 (class linux_process_target) <siginfo_fixup>
847 <low_siginfo_fixup>: Declare.
848 * linux-low.cc (siginfo_fixup): Turn into...
849 (linux_process_target::siginfo_fixup): ...this.
850 (linux_process_target::low_siginfo_fixup): Define.
851 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
852 (x86_siginfo_fixup): Turn into...
853 (x86_target::low_siginfo_fixup): ...this.
854 (the_low_target): Remove the op field.
855 * linux-aarch64-low.cc (class aarch64_target):
856 <low_siginfo_fixup>: Declare.
857 (aarch64_linux_siginfo_fixup): Turn into...
858 (aarch64_target::low_siginfo_fixup): ...this.
859 (the_low_target): Remove the op field.
860 * linux-arm-low.cc (the_low_target): Remove the op field.
861 * linux-bfin-low.cc (the_low_target): Ditto.
862 * linux-crisv32-low.cc (the_low_target): Ditto.
863 * linux-m32r-low.cc (the_low_target): Ditto.
864 * linux-m68k-low.cc (the_low_target): Ditto.
865 * linux-mips-low.cc (the_low_target): Ditto.
866 * linux-ppc-low.cc (the_low_target): Ditto.
867 * linux-s390-low.cc (the_low_target): Ditto.
868 * linux-sh-low.cc (the_low_target): Ditto.
869 * linux-tic6x-low.cc (the_low_target): Ditto.
870 * linux-tile-low.cc (the_low_target): Ditto.
871 * linux-xtensa-low.cc (the_low_target): Ditto.
872
b35db733
TBA
8732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
876 linux target ops into methods of linux_process_target.
877
878 * linux-low.h (struct linux_target_ops): Remove the ops.
879 (class linux_process_target) <low_collect_ptrace_register>
880 <low_store_ptrace_register>: Declare.
881 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
882 (linux_process_target::low_supply_ptrace_register): Define.
883
884 Update the callers below.
885
886 (linux_process_target::fetch_register)
887 (linux_process_target::store_register)
888
889 * linux-x86-low.cc (the_low_target): Remove the op fields.
890 * linux-aarch64-low.cc (the_low_target): Ditto.
891 * linux-arm-low.cc (the_low_target): Ditto.
892 * linux-bfin-low.cc (the_low_target): Ditto.
893 * linux-crisv32-low.cc (the_low_target): Ditto.
894 * linux-m32r-low.cc (the_low_target): Ditto.
895 * linux-m68k-low.cc (the_low_target): Ditto.
896 * linux-sh-low.cc (the_low_target): Ditto.
897 * linux-sparc-low.cc (the_low_target): Ditto.
898 * linux-tic6x-low.cc (the_low_target): Ditto.
899 * linux-tile-low.cc (the_low_target): Ditto.
900 * linux-xtensa-low.cc (the_low_target): Ditto.
901 * linux-mips-low.cc (class mips_target)
902 <low_collect_ptrace_register>
903 <low_supply_ptrace_register>: Declare.
904 (mips_collect_ptrace_register): Turn into ...
905 (mips_target::low_collect_ptrace_register): ...this.
906 (mips_supply_ptrace_register): Turn into...
907 (mips_target::low_supply_ptrace_register): ...this.
908 (the_low_target): Remove the op fields.
909 * linux-ppc-low.cc (class ppc_target)
910 <low_collect_ptrace_register>
911 <low_supply_ptrace_register>: Declare.
912 (ppc_collect_ptrace_register): Turn into ...
913 (ppc_target::low_collect_ptrace_register): ...this.
914 (ppc_supply_ptrace_register): Turn into ...
915 (ppc_target::low_supply_ptrace_register): ...this.
916 (ppc_fill_gregset): Update for the calls to
917 low_collect_ptrace_register.
918 (the_low_target): Remove the op fields.
919 * linux-s390-low.cc (class s390_target)
920 <low_collect_ptrace_register>
921 <low_supply_ptrace_register>: Declare.
922 (s390_collect_ptrace_register): Turn into ...
923 (s390_target::low_collect_ptrace_register): ...this.
924 (s390_supply_ptrace_register): Turn into ...
925 (s390_target::low_supply_ptrace_register): ...this.
926 (s390_fill_gregset): Update for the calls to
927 low_collect_ptrace_register.
928 (the_low_target): Remove the op fields.
929
ac1bbaca
TBA
9302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
931
932 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
933 target ops into methods of linux_process_target.
934
935 * linux-low.h (struct linux_target_ops): Remove the ops.
936 (class linux_process_target) <check_stopped_by_watchpoint>
937 <low_stopped_by_watchpoint>
938 <low_stopped_data_address>: Declare.
939 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
940 (linux_process_target::check_stopped_by_watchpoint): ...this.
941 (linux_process_target::low_stopped_by_watchpoint): Define.
942 (linux_process_target::low_stopped_data_address): Define.
943 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
944 <low_stopped_data_address>: Declare.
945 (x86_stopped_by_watchpoint): Turn into...
946 (x86_target::low_stopped_by_watchpoint): ...this.
947 (x86_stopped_data_address): Turn into...
948 (x86_target::low_stopped_data_address): ...this.
949 (the_low_target): Remove the op fields.
950 * linux-aarch64-low.cc (class aarch64_target)
951 <low_stopped_by_watchpoint>
952 <low_stopped_data_address>: Declare.
953 (aarch64_stopped_by_watchpoint): Turn into...
954 (aarch64_target::low_stopped_by_watchpoint): ...this.
955 (aarch64_stopped_data_address): Turn into...
956 (aarch64_target::low_stopped_data_address): ...this.
957 (the_low_target): Remove the op fields.
958 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
959 <low_stopped_data_address>: Declare.
960 (arm_stopped_by_watchpoint): Turn into...
961 (arm_target::low_stopped_by_watchpoint): ...this.
962 (arm_stopped_data_address): Turn into...
963 (arm_target::low_stopped_data_address): ...this.
964 (the_low_target): Remove the op fields.
965 * linux-crisv32-low.cc (class crisv32_target)
966 <low_stopped_by_watchpoint>
967 <low_stopped_data_address>: Declare.
968 (cris_stopped_by_watchpoint): Turn into...
969 (crisv32_target::low_stopped_by_watchpoint): ...this.
970 (cris_stopped_data_address): Turn into...
971 (crisv32_target::low_stopped_data_address): ...this.
972 (the_low_target): Remove the op fields.
973 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
974 <low_stopped_data_address>: Declare.
975 (mips_stopped_by_watchpoint): Turn into...
976 (mips_target::low_stopped_by_watchpoint): ...this.
977 (mips_stopped_data_address): Turn into...
978 (mips_target::low_stopped_data_address): ...this.
979 (the_low_target): Remove the op fields.
980 * linux-bfin-low.cc (the_low_target): Remove the op fields.
981 * linux-m32r-low.cc (the_low_target): Ditto.
982 * linux-m68k-low.cc (the_low_target): Ditto.
983 * linux-ppc-low.cc (the_low_target): Ditto.
984 * linux-s390-low.cc (the_low_target): Ditto.
985 * linux-sh-low.cc (the_low_target): Ditto.
986 * linux-sparc-low.cc (the_low_target): Ditto.
987 * linux-tic6x-low.cc (the_low_target): Ditto.
988 * linux-tile-low.cc (the_low_target): Ditto.
989 * linux-xtensa-low.cc (the_low_target): Ditto.
990
9db9aa23
TBA
9912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
992
993 Turn the 'insert_point' and 'remove_point' linux target ops into
994 methods of linux_process_target.
995
996 * linux-low.h (struct linux_target_ops): Remove the ops.
997 (class linux_process_target) <low_insert_point>
998 <low_remove_point>: Declare.
999 * linux-low.cc (linux_process_target::low_insert_point)
1000 (linux_process_target::low_remove_point): Define.
1001 (linux_process_target::insert_point)
1002 (linux_process_target::remove_point): Update for calls to
1003 low_insert_point and low_remove_point.
1004 * linux-x86-low.cc (class x86_target) <low_insert_point>
1005 <low_remove_point>: Declare.
1006 (x86_insert_point): Turn into...
1007 (x86_target::low_insert_point): ...this.
1008 (x86_remove_point): Turn into...
1009 (x86_target::low_remove_point): ...this.
1010 (the_low_target): Remove the op fields.
1011 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1012 <low_remove_point>: Declare.
1013 (aarch64_insert_point): Turn into...
1014 (aarch64_target::low_insert_point): ...this.
1015 (aarch64_remove_point): Turn into...
1016 (aarch64_target::low_remove_point): ...this.
1017 (the_low_target): Remove the op fields.
1018 * linux-arm-low.cc (class arm_target) <low_insert_point>
1019 <low_remove_point>: Declare.
1020 (arm_insert_point): Turn into...
1021 (arm_target::low_insert_point): ...this.
1022 (arm_remove_point): Turn into...
1023 (arm_target::low_remove_point): ...this.
1024 (the_low_target): Remove the op fields.
1025 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1026 <low_remove_point>: Declare.
1027 (crisv32_insert_point): Turn into...
1028 (crisv32_target::low_insert_point): ...this.
1029 (crisv32_remove_point): Turn into...
1030 (crisv32_target::low_remove_point): ...this.
1031 (the_low_target): Remove the op fields.
1032 * linux-mips-low.cc (class mips_target) <low_insert_point>
1033 <low_remove_point>: Declare.
1034 (mips_insert_point): Turn into...
1035 (mips_target::low_insert_point): ...this.
1036 (mips_remove_point): Turn into...
1037 (mips_target::low_remove_point): ...this.
1038 (the_low_target): Remove the op fields.
1039 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1040 <low_remove_point>: Declare.
1041 (ppc_insert_point): Turn into...
1042 (ppc_target::low_insert_point): ...this.
1043 (ppc_remove_point): Turn into...
1044 (ppc_target::low_remove_point): ...this.
1045 (the_low_target): Remove the op fields.
1046 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1047 * linux-m32r-low.cc (the_low_target): Ditto.
1048 * linux-m68k-low.cc (the_low_target): Ditto.
1049 * linux-s390-low.cc (the_low_target): Ditto.
1050 * linux-sh-low.cc (the_low_target): Ditto.
1051 * linux-sparc-low.cc (the_low_target): Ditto.
1052 * linux-tic6x-low.cc (the_low_target): Ditto.
1053 * linux-tile-low.cc (the_low_target): Ditto.
1054 * linux-xtensa-low.cc (the_low_target): Ditto.
1055
007c9b97
TBA
10562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1057
1058 Remove the 'supports_z_point_type' linux target op and let the
1059 concrete linux target define it by overriding the op declared in
1060 process_stratum_target.
1061
1062 * linux-low.cc (linux_process_target::supports_z_point_type):
1063 Remove.
1064 * linux-low.h (struct linux_target_ops): Remove the op.
1065 (class linux_process_target) <supports_z_point_type>: Remove.
1066 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1067 Declare.
1068 (x86_supports_z_point_type): Turn into...
1069 (x86_target::supports_z_point_type): ...this.
1070 (the_low_target): Remove the op field.
1071 * linux-aarch64-low.cc (class aarch64_target)
1072 <supports_z_point_type>: Declare.
1073 (aarch64_supports_z_point_type): Turn into...
1074 (aarch64_target::supports_z_point_type): ...this.
1075 (the_low_target): Remove the op field.
1076 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1077 Declare.
1078 (arm_supports_z_point_type): Turn into...
1079 (arm_target::supports_z_point_type): ...this.
1080 (the_low_target): Remove the op field.
1081 * linux-crisv32-low.cc (class crisv32_target)
1082 <supports_z_point_type>: Declare.
1083 (cris_supports_z_point_type): Turn into...
1084 (crisv32_target::supports_z_point_type): ...this.
1085 (the_low_target): Remove the op field.
1086 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1087 Declare.
1088 (mips_supports_z_point_type): Turn into...
1089 (mips_target::supports_z_point_type): ...this.
1090 (the_low_target): Remove the op field.
1091 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1092 Declare.
1093 (ppc_supports_z_point_type): Turn into...
1094 (ppc_target::supports_z_point_type): ...this.
1095 (the_low_target): Remove the op field.
1096 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1097 Declare.
1098 (s390_supports_z_point_type): Turn into...
1099 (s390_target::supports_z_point_type): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-bfin-low.cc (the_low_target): Remove the op field.
1102 * linux-m32r-low.cc (the_low_target): Ditto.
1103 * linux-m68k-low.cc (the_low_target): Ditto.
1104 * linux-sh-low.cc (the_low_target): Ditto.
1105 * linux-sparc-low.cc (the_low_target): Ditto.
1106 * linux-tic6x-low.cc (the_low_target): Ditto.
1107 * linux-tile-low.cc (the_low_target): Ditto.
1108 * linux-xtensa-low.cc (the_low_target): Ditto.
1109
d7146cda
TBA
11102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1111
1112 Turn the 'breakpoint_at' linux target op into a method of
1113 linux_process_target.
1114
1115 * linux-low.h (struct linux_target_ops): Remove the op.
1116 (class linux_process_target) <low_breakpoint_at>: Declare.
1117
1118 Update the callers below:
1119
1120 * linux-low.cc (linux_process_target::save_stop_reason)
1121 (linux_process_target::thread_still_has_status_pending)
1122 (linux_process_target::wait_1)
1123
1124 * linux-x86-low.cc (class x86_target)
1125 <low_breakpoint_at>: Declare.
1126 (x86_breakpoint_at): Turn into...
1127 (x86_target::low_breakpoint_at): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-aarch64-low.cc (class aarch64_target)
1130 <low_breakpoint_at>: Declare.
1131 (aarch64_breakpoint_at): Turn into...
1132 (aarch64_target::low_breakpoint_at): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-arm-low.cc (class arm_target)
1135 <low_breakpoint_at>: Declare.
1136 (arm_target::low_breakpoint_at): Define.
1137 (the_low_target): Remove the op field.
1138 * linux-bfin-low.cc (class bfin_target)
1139 <low_breakpoint_at>: Declare.
1140 (bfin_breakpoint_at): Turn into...
1141 (bfin_target::low_breakpoint_at): ...this.
1142 (the_low_target): Remove the op field.
1143 * linux-cris-low.cc (class cris_target)
1144 <low_breakpoint_at>: Declare.
1145 (cris_breakpoint_at): Turn into...
1146 (cris_target::low_breakpoint_at): ...this.
1147 (the_low_target): Remove the op field.
1148 * linux-crisv32-low.cc (class crisv32_target)
1149 <low_breakpoint_at>: Declare.
1150 (crisv32_breakpoint_at): Turn into...
1151 (crisv32_target::low_breakpoint_at): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-ia64-low.cc (class ia64_target)
1154 <low_breakpoint_at>: Declare.
1155 (ia64_target::low_breakpoint_at): Define.
1156 * linux-m32r-low.cc (class m32r_target)
1157 <low_breakpoint_at>: Declare.
1158 (m32r_breakpoint_at): Turn into...
1159 (m32r_target::low_breakpoint_at): ...this.
1160 (the_low_target): Remove the op field.
1161 * linux-m68k-low.cc (class m68k_target)
1162 <low_breakpoint_at>: Declare.
1163 (m68k_breakpoint_at): Turn into...
1164 (m68k_target::low_breakpoint_at): ...this.
1165 (the_low_target): Remove the op field.
1166 * linux-mips-low.cc (class mips_target)
1167 <low_breakpoint_at>: Declare.
1168 (mips_breakpoint_at): Turn into...
1169 (mips_target::low_breakpoint_at): ...this.
1170 (the_low_target): Remove the op field.
1171 * linux-nios2-low.cc (class nios2_target)
1172 <low_breakpoint_at>: Declare.
1173 (nios2_breakpoint_at): Turn into...
1174 (nios2_target::low_breakpoint_at): ...this.
1175 (the_low_target): Remove the op field.
1176 * linux-ppc-low.cc (class ppc_target)
1177 <low_breakpoint_at>: Declare.
1178 (ppc_breakpoint_at): Turn into...
1179 (ppc_target::low_breakpoint_at): ...this.
1180 (the_low_target): Remove the op field.
1181 * linux-riscv-low.cc (class riscv_target)
1182 <low_breakpoint_at>: Declare.
1183 (riscv_breakpoint_at): Turn into...
1184 (riscv_target::low_breakpoint_at): ...this.
1185 (the_low_target): Remove the op field.
1186 * linux-s390-low.cc (class s390_target)
1187 <low_breakpoint_at>: Declare.
1188 (s390_breakpoint_at): Turn into...
1189 (s390_target::low_breakpoint_at): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-sh-low.cc (class sh_target)
1192 <low_breakpoint_at>: Declare.
1193 (sh_breakpoint_at): Turn into...
1194 (sh_target::low_breakpoint_at): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-sparc-low.cc (class sparc_target)
1197 <low_breakpoint_at>: Declare.
1198 (sparc_breakpoint_at): Turn into...
1199 (sparc_target::low_breakpoint_at): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-tic6x-low.cc (class tic6x_target)
1202 <low_breakpoint_at>: Declare.
1203 (tic6x_breakpoint_at): Turn into...
1204 (tic6x_target::low_breakpoint_at): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-tile-low.cc (class tile_target)
1207 <low_breakpoint_at>: Declare.
1208 (tile_breakpoint_at): Turn into...
1209 (tile_target::low_breakpoint_at): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-xtensa-low.cc (class xtensa_target)
1212 <low_breakpoint_at>: Declare.
1213 (xtensa_breakpoint_at): Turn into...
1214 (xtensa_target::low_breakpoint_at): ...this.
1215 (the_low_target): Remove the op field.
1216
d4807ea2
TBA
12172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1218
1219 Turn the 'decr_pc_after_break' linux_target_ops field into
1220 a method of linux_process_target.
1221
1222 * linux-low.h (struct linux_target_ops)
1223 <decr_pc_after_break>: Remove.
1224 (class linux_process_target) <low_decr_pc_after_break>: New method
1225 declaration.
1226 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1227 New method implementation.
1228
1229 Update the users below.
1230
1231 (linux_process_target::save_stop_reason)
1232 (linux_process_target::wait_1)
1233 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1234 New declaration.
1235 (x86_target::low_decr_pc_after_break): New method implementation.
1236 (the_low_target): Remove the field.
1237 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1238 New declaration.
1239 (bfin_target::low_decr_pc_after_break): New method implementation.
1240 (the_low_target): Remove the field.
1241 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1242 New declaration.
1243 (m68k_target::low_decr_pc_after_break): New method implementation.
1244 (the_low_target): Remove the field.
1245 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1246 New declaration.
1247 (s390_target::low_decr_pc_after_break): New method implementation.
1248 (the_low_target): Remove the field.
1249 * linux-aarch64-low.cc (the_low_target): Remove the field.
1250 * linux-arm-low.cc (the_low_target): Remove the field.
1251 * linux-cris-low.cc (the_low_target): Remove the field.
1252 * linux-crisv32-low.cc (the_low_target): Remove the field.
1253 * linux-m32r-low.cc (the_low_target): Remove the field.
1254 * linux-mips-low.cc (the_low_target): Remove the field.
1255 * linux-nios2-low.cc (the_low_target): Remove the field.
1256 * linux-ppc-low.cc (the_low_target): Remove the field.
1257 * linux-riscv-low.cc (the_low_target): Remove the field.
1258 * linux-sh-low.cc (the_low_target): Remove the field.
1259 * linux-sparc-low.cc (the_low_target): Remove the field.
1260 * linux-tic6x-low.cc (the_low_target): Remove the field.
1261 * linux-tile-low.cc (the_low_target): Remove the field.
1262 * linux-xtensa-low.cc (the_low_target): Remove the field.
1263
7582c77c
TBA
12642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1265
1266 Remove the 'supports_software_single_step' linux target op and let
1267 the concrete linux target define it by overriding the op in
1268 process_stratum_target.
1269 Turn the 'get_next_pcs' linux target op into a method of
1270 linux_process_target.
1271
1272 * linux-low.h (struct linux_target_ops): Remove the ops.
1273 (class linux_process_target) <supports_software_single_step>:
1274 Remove.
1275 <low_get_next_pcs>: Declare.
1276 * linux-low.cc (can_software_single_step): Remove.
1277 (linux_process_target::low_get_next_pcs): Define.
1278 (linux_process_target::supports_software_single_step): Remove.
1279
1280 Update the callers below.
1281
1282 (linux_process_target::handle_extended_wait)
1283 (linux_process_target::wait_1)
1284 (linux_process_target::install_software_single_step_breakpoints)
1285 (linux_process_target::single_step)
1286 (linux_process_target::thread_needs_step_over)
1287 (linux_process_target::proceed_one_lwp)
1288 (linux_process_target::supports_range_stepping)
1289
1290 * linux-x86-low.cc (the_low_target): Remove the op field.
1291 * linux-aarch64-low.cc (the_low_target): Ditto.
1292 * linux-bfin-low.cc (the_low_target): Ditto.
1293 * linux-cris-low.cc (the_low_target): Ditto.
1294 * linux-crisv32-low.cc (the_low_target): Ditto.
1295 * linux-m32r-low.cc (the_low_target): Ditto.
1296 * linux-m68k-low.cc (the_low_target): Ditto.
1297 * linux-mips-low.cc (the_low_target): Ditto.
1298 * linux-nios2-low.cc (the_low_target): Ditto.
1299 * linux-ppc-low.cc (the_low_target): Ditto.
1300 * linux-riscv-low.cc (the_low_target): Ditto.
1301 * linux-s390-low.cc (the_low_target): Ditto.
1302 * linux-sh-low.cc (the_low_target): Ditto.
1303 * linux-sparc-low.cc (the_low_target): Ditto.
1304 * linux-tic6x-low.cc (the_low_target): Ditto.
1305 * linux-tile-low.cc (the_low_target): Ditto.
1306 * linux-xtensa-low.cc (the_low_target): Ditto.
1307 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1308 <supports_software_single_step>: Declare.
1309 (arm_target::supports_software_single_step): Define.
1310 (arm_gdbserver_get_next_pcs): Turn into...
1311 (arm_target::low_get_next_pcs): ...this.
1312 (the_low_target): Remove the op field.
1313
3ca4edb6
TBA
13142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1315
1316 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1317 the concrete linux target define it by overriding the op
1318 in process_stratum_target.
1319
1320 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1321 Remove.
1322 * linux-low.h (struct linux_target_ops): Remove the op.
1323 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1324 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1325 Declare.
1326 (x86_sw_breakpoint_from_kind): Turn into...
1327 (x86_target::sw_breakpoint_from_kind): ...this.
1328 (the_low_target): Remove the op field.
1329 * linux-aarch64-low.cc (class aarch64_target)
1330 <sw_breakpoint_from_kind>: Declare.
1331 (aarch64_sw_breakpoint_from_kind): Turn into...
1332 (aarch64_target::sw_breakpoint_from_kind): ...this.
1333 (the_low_target): Remove the op field.
1334 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1335 Declare.
1336 (arm_target::sw_breakpoint_from_kind): Define.
1337 (the_low_target): Remove the op field.
1338 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1339 Declare.
1340 (bfin_sw_breakpoint_from_kind): Turn into...
1341 (bfin_target::sw_breakpoint_from_kind): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1344 Declare.
1345 (cris_sw_breakpoint_from_kind): Turn into...
1346 (cris_target::sw_breakpoint_from_kind): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-crisv32-low.cc (class crisv32_target)
1349 <sw_breakpoint_from_kind>: Declare.
1350 (cris_sw_breakpoint_from_kind): Turn into...
1351 (crisv32_target::sw_breakpoint_from_kind): ...this.
1352 (the_low_target): Remove the op field.
1353 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1354 Declare.
1355 (ia64_target::sw_breakpoint_from_kind): Define.
1356 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1357 Declare.
1358 (m32r_sw_breakpoint_from_kind): Turn into...
1359 (m32r_target::sw_breakpoint_from_kind): ...this.
1360 (the_low_target): Remove the op field.
1361 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1362 Declare.
1363 (m68k_sw_breakpoint_from_kind): Turn into...
1364 (m68k_target::sw_breakpoint_from_kind): ...this.
1365 (the_low_target): Remove the op field.
1366 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1367 Declare.
1368 (mips_sw_breakpoint_from_kind): Turn into...
1369 (mips_target::sw_breakpoint_from_kind): ...this.
1370 (the_low_target): Remove the op field.
1371 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1372 Declare.
1373 (nios2_sw_breakpoint_from_kind): Turn into...
1374 (nios2_target::sw_breakpoint_from_kind): ...this.
1375 (the_low_target): Remove the op field.
1376 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1377 Declare.
1378 (ppc_sw_breakpoint_from_kind): Turn into...
1379 (ppc_target::sw_breakpoint_from_kind): ...this.
1380 (the_low_target): Remove the op field.
1381 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1382 Declare.
1383 (riscv_sw_breakpoint_from_kind): Turn into...
1384 (riscv_target::sw_breakpoint_from_kind): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1387 Declare.
1388 (s390_sw_breakpoint_from_kind): Turn into...
1389 (s390_target::sw_breakpoint_from_kind): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1392 Declare.
1393 (sh_sw_breakpoint_from_kind): Turn into...
1394 (sh_target::sw_breakpoint_from_kind): ...this.
1395 (the_low_target): Remove the op field.
1396 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1397 Declare.
1398 (sparc_sw_breakpoint_from_kind): Turn into...
1399 (sparc_target::sw_breakpoint_from_kind): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1402 Declare.
1403 (tic6x_sw_breakpoint_from_kind): Turn into...
1404 (tic6x_target::sw_breakpoint_from_kind): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1407 Declare.
1408 (tile_sw_breakpoint_from_kind): Turn into...
1409 (tile_target::sw_breakpoint_from_kind): ...this.
1410 (the_low_target): Remove the op field.
1411 * linux-xtensa-low.cc (class xtensa_target)
1412 <sw_breakpoint_from_kind>: Declare.
1413 (xtensa_sw_breakpoint_from_kind): Turn into...
1414 (xtensa_target::sw_breakpoint_from_kind): ...this.
1415 (the_low_target): Remove the op field.
1416
06250e4e
TBA
14172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1418
1419 Remove the 'breakpoint_kind_from_pc' and
1420 'breakpoint_kind_from_current_state' linux target ops, and let the
1421 concrete linux target define them by overriding the ops of
1422 process_stratum_target.
1423
1424 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1425 Remove.
1426 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1427 * linux-low.h (struct linux_target_ops): Remove ops.
1428 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1429 <breakpoint_kind_from_current_state>: Remove.
1430 * linux-x86-low.cc (the_low_target): Remove the op fields.
1431 * linux-bfin-low.cc (the_low_target): Ditto.
1432 * linux-cris-low.cc (the_low_target): Ditto.
1433 * linux-crisv32-low.cc (the_low_target): Ditto.
1434 * linux-m32r-low.cc (the_low_target): Ditto.
1435 * linux-m68k-low.cc (the_low_target): Ditto.
1436 * linux-mips-low.cc (the_low_target): Ditto.
1437 * linux-nios2-low.cc (the_low_target): Ditto.
1438 * linux-ppc-low.cc (the_low_target): Ditto.
1439 * linux-s390-low.cc (the_low_target): Ditto.
1440 * linux-sh-low.cc (the_low_target): Ditto.
1441 * linux-sparc-low.cc (the_low_target): Ditto.
1442 * linux-tic6x-low.cc (the_low_target): Ditto.
1443 * linux-tile-low.cc (the_low_target): Ditto.
1444 * linux-xtensa-low.cc (the_low_target): Ditto.
1445 * linux-aarch64-low.cc (class aarch64_target)
1446 <breakpoint_kind_from_pc>
1447 <breakpoint_kind_from_current_state>: Declare.
1448 (aarch64_breakpoint_kind_from_pc): Turn into...
1449 (aarch64_target::breakpoint_kind_from_pc): ...this.
1450 (aarch64_breakpoint_kind_from_current_state): Turn into...
1451 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1452 (the_low_target): Remove the op fields.
1453 * linux-arm-low.cc (class arm_target):
1454 <breakpoint_kind_from_pc>
1455 <breakpoint_kind_from_current_state>: Declare.
1456 (arm_target::breakpoint_kind_from_pc): Define.
1457 (arm_target::breakpoint_kind_from_current_state): Define.
1458 (the_low_target): Remove the op fields.
1459 * linux-riscv-low.cc (class riscv_target):
1460 <breakpoint_kind_from_pc>: Declare.
1461 (riscv_breakpoint_kind_from_pc): Turn into...
1462 (riscv_target::breakpoint_kind_from_pc): ...this.
1463 (the_low_target): Remove the op fields.
1464
bf9ae9d8
TBA
14652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1466
1467 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1468 of linux_process_target.
1469
1470 * linux-low.h (struct linux_target_ops): Remove the ops.
1471 (class linux_process_target) <low_supports_breakpoints>
1472 <low_get_pc>
1473 <low_set_pc>: Declare.
1474 * linux-low.cc (supports_breakpoints): Turn into...
1475 (linux_process_target::low_supports_breakpoints): ...this.
1476 (linux_process_target::low_get_pc): Define.
1477 (linux_process_target::low_set_pc): Define.
1478
1479 Update the callers below.
1480
1481 (linux_process_target::get_pc)
1482 (linux_process_target::save_stop_reason)
1483 (linux_process_target::maybe_move_out_of_jump_pad)
1484 (linux_process_target::wait_1)
1485 (linux_process_target::resume_one_lwp_throw)
1486 (linux_process_target::resume)
1487 (linux_process_target::proceed_all_lwps)
1488 (linux_process_target::read_pc)
1489 (linux_process_target::write_pc)
1490
1491 * linux-x86-low.cc (class linux_process_target)
1492 <low_supports_breakpoints>
1493 <low_get_pc>
1494 <low_set_pc>: Declare.
1495 (x86_target::low_supports_breakpoints): Define.
1496 (x86_get_pc): Turn into...
1497 (x86_target::low_get_pc): ...this.
1498 (x86_set_pc): Turn into...
1499 (x86_target::low_set_pc): ...this.
1500 (the_low_target): Remove the op fields.
1501 * linux-arm-low.cc (class arm_target)
1502 <low_supports_breakpoints>
1503 <low_get_pc>
1504 <low_set_pc>: Declare.
1505 (arm_target::low_supports_breakpoints)
1506 (arm_target::low_get_pc)
1507 (arm_target::low_set_pc): Define.
1508 (the_low_target): Remove the op fields.
1509 * linux-bfin-low.cc (class bfin_target)
1510 <low_supports_breakpoints>
1511 <low_get_pc>
1512 <low_set_pc>: Declare.
1513 (bfin_target::low_supports_breakpoints)
1514 (bfin_target::low_get_pc)
1515 (bfin_target::low_set_pc): Define.
1516 (the_low_target): Remove the op fields.
1517 * linux-cris-low.cc (class cris_target)
1518 <low_supports_breakpoints>
1519 <low_get_pc>
1520 <low_set_pc>: Declare.
1521 (cris_target::low_supports_breakpoints)
1522 (cris_target::low_get_pc)
1523 (cris_target::low_set_pc): Define.
1524 (the_low_target): Remove the op fields.
1525 * linux-crisv32-low.cc (class crisv32_target)
1526 <low_supports_breakpoints>
1527 <low_get_pc>
1528 <low_set_pc>: Declare.
1529 (crisv32_target::low_supports_breakpoints)
1530 (crisv32_target::low_get_pc)
1531 (crisv32_target::low_set_pc): Define.
1532 (the_low_target): Remove the op fields.
1533 * linux-m32r-low.cc (class m32r_target)
1534 <low_supports_breakpoints>
1535 <low_get_pc>
1536 <low_set_pc>: Declare.
1537 (m32r_target::low_supports_breakpoints)
1538 (m32r_target::low_get_pc)
1539 (m32r_target::low_set_pc): Define.
1540 (the_low_target): Remove the op fields.
1541 * linux-m68k-low.cc (class m68k_target)
1542 <low_supports_breakpoints>
1543 <low_get_pc>
1544 <low_set_pc>: Declare.
1545 (m68k_target::low_supports_breakpoints)
1546 (m68k_target::low_get_pc)
1547 (m68k_target::low_set_pc): Define.
1548 (the_low_target): Remove the op fields.
1549 * linux-nios2-low.cc (class nios2_target)
1550 <low_supports_breakpoints>
1551 <low_get_pc>
1552 <low_set_pc>: Declare.
1553 (nios2_target::low_supports_breakpoints)
1554 (nios2_target::low_get_pc)
1555 (nios2_target::low_set_pc): Define.
1556 (the_low_target): Remove the op fields.
1557 * linux-sh-low.cc (class sh_target)
1558 <low_supports_breakpoints>
1559 <low_get_pc>
1560 <low_set_pc>: Declare.
1561 (sh_target::low_supports_breakpoints)
1562 (sh_target::low_get_pc)
1563 (sh_target::low_set_pc): Define.
1564 (the_low_target): Remove the op fields.
1565 * linux-xtensa-low.cc (class xtensa_target)
1566 <low_supports_breakpoints>
1567 <low_get_pc>
1568 <low_set_pc>: Declare.
1569 (xtensa_target::low_supports_breakpoints)
1570 (xtensa_target::low_get_pc)
1571 (xtensa_target::low_set_pc): Define.
1572 (the_low_target): Remove the op fields.
1573 * linux-sparc-low.cc (class sparc_target)
1574 <low_supports_breakpoints>
1575 <low_get_pc>: Declare.
1576 (sparc_target::low_supports_breakpoints)
1577 (sparc_target::low_get_pc): Define.
1578 (the_low_target): Remove the op fields.
1579 * linux-tile-low.cc (class tile_target)
1580 <low_supports_breakpoints>
1581 <low_get_pc>
1582 <low_set_pc>: Declare.
1583 (tile_target::low_supports_breakpoints)
1584 (tile_target::low_get_pc)
1585 (tile_target::low_set_pc): Define.
1586 (the_low_target): Remove the op fields.
1587 * linux-aarch64-low.cc (class aarch64_target)
1588 <low_supports_breakpoints>
1589 <low_get_pc>
1590 <low_set_pc>: Declare.
1591 (aarch64_target::low_supports_breakpoints): Define.
1592 (aarch64_get_pc): Turn into...
1593 (aarch64_target::low_get_pc): ...this.
1594 (aarch64_set_pc): Turn into...
1595 (aarch64_target::low_set_pc): ...this.
1596 (the_low_target): Remove the op fields.
1597 * linux-mips-low.cc (class mips_target)
1598 <low_supports_breakpoints>
1599 <low_get_pc>
1600 <low_set_pc>: Declare.
1601 (mips_target::low_supports_breakpoints): Define.
1602 (mips_get_pc): Turn into...
1603 (mips_target::low_get_pc): ...this.
1604 (mips_set_pc): Turn into...
1605 (mips_target::low_set_pc): ...this.
1606 (the_low_target): Remove the op fields.
1607 * linux-ppc-low.cc (class ppc_target)
1608 <low_supports_breakpoints>
1609 <low_get_pc>
1610 <low_set_pc>: Declare.
1611 (ppc_target::low_supports_breakpoints): Define.
1612 (ppc_get_pc): Turn into...
1613 (ppc_target::low_get_pc): ...this.
1614 (ppc_set_pc): Turn into...
1615 (ppc_target::low_set_pc): ...this.
1616 (the_low_target): Remove the op fields.
1617 * linux-riscv-low.cc (class riscv_target)
1618 <low_supports_breakpoints>
1619 <low_get_pc>
1620 <low_set_pc>: Declare.
1621 (riscv_target::low_supports_breakpoints): Define.
1622 (riscv_get_pc): Turn into...
1623 (riscv_target::low_get_pc): ...this.
1624 (riscv_set_pc): Turn into...
1625 (riscv_target::low_set_pc): ...this.
1626 (the_low_target): Remove the op fields.
1627 * linux-s390-low.cc (class s390_target)
1628 <low_supports_breakpoints>
1629 <low_get_pc>
1630 <low_set_pc>: Declare.
1631 (s390_target::low_supports_breakpoints): Define.
1632 (s390_get_pc): Turn into...
1633 (s390_target::low_get_pc): ...this.
1634 (s390_set_pc): Turn into...
1635 (s390_target::low_set_pc): ...this.
1636 (the_low_target): Remove the op fields.
1637 * linux-tic6x-low.cc (class tic6x_target)
1638 <low_supports_breakpoints>
1639 <low_get_pc>
1640 <low_set_pc>: Declare.
1641 (tic6x_target::low_supports_breakpoints): Define.
1642 (tic6x_get_pc): Turn into...
1643 (tic6x_target::low_get_pc): ...this.
1644 (tic6x_set_pc): Turn into...
1645 (tic6x_target::low_set_pc): ...this.
1646 (the_low_target): Remove the op fields.
1647
df95181f
TBA
16482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1649
1650 Turn some more static methods in linux-low into private methods
1651 of linux_process_target.
1652
1653 * linux-low.cc (get_pc): Turn into...
1654 (linux_process_target::get_pc): ...this.
1655 (save_stop_reason): Turn into...
1656 (linux_process_target::save_stop_reason): ...this.
1657 (thread_still_has_status_pending_p): Turn into...
1658 (linux_process_target::thread_still_has_status_pending): ...this.
1659 (status_pending_p_callback): Turn into...
1660 (linux_process_target::status_pending_p_callback): ...this.
1661 (resume_stopped_resumed_lwps): Turn into...
1662 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1663 (install_software_single_step_breakpoints): Turn into...
1664 (linux_process_target::install_software_single_step_breakpoints):
1665 ...this.
1666 (single_step): Turn into...
1667 (linux_process_target::single_step): ...this.
1668 (linux_resume_one_lwp_throw): Turn into...
1669 (linux_process_target::resume_one_lwp_throw): ...this.
1670 (linux_resume_one_lwp): Turn into...
1671 (linux_process_target::resume_one_lwp): ...this.
1672 (resume_status_pending_p): Turn into...
1673 (linux_process_target::resume_status_pending): ...this.
1674 (need_step_over_p): Turn into...
1675 (linux_process_target::thread_needs_step_over): ...this.
1676 (linux_resume_one_thread): Turn into...
1677 (linux_process_target::resume_one_thread): ...this.
1678 (proceed_one_lwp): Turn into...
1679 (linux_process_target::proceed_one_lwp): ...this.
1680 (unsuspend_and_proceed_one_lwp): Turn into...
1681 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1682
1683 Update the calls/references to the above functions below.
1684
1685 (linux_process_target::handle_extended_wait)
1686 (linux_process_target::filter_event)
1687 (linux_process_target::wait_for_event_filtered)
1688 (linux_process_target::wait_1)
1689 (linux_process_target::move_out_of_jump_pad)
1690 (linux_process_target::start_step_over)
1691 (linux_process_target::resume)
1692 (linux_process_target::proceed_all_lwps)
1693 (regsets_store_inferior_registers)
1694 (linux_process_target::store_register)
1695
1696 * linux-low.h (class linux_process_target)
1697 <get_pc>
1698 <save_stop_reason>
1699 <thread_still_has_status_pending>
1700 <status_pending_p_callback>
1701 <resume_stopped_resumed_lwps>
1702 <install_software_single_step_breakpoints>
1703 <single_step>
1704 <resume_one_lwp_throw>
1705 <resume_one_lwp>
1706 <resume_status_pending>
1707 <thread_needs_step_over>
1708 <resume_one_thread>
1709 <proceed_one_lwp>
1710 <unsuspend_and_proceed_one_lwp>: Declare.
1711
bd70b1f2
TBA
17122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1713
1714 Turn the 'fetch_register' linux target op into a method of
1715 linux_process_target.
1716
1717 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1718 (class linux_process_target) <low_fetch_register>: Declare.
1719 * linux-x86-low.cc (the_low_target)
1720 * linux-aarch64-low.cc (the_low_target)
1721 * linux-arm-low.cc (the_low_target)
1722 * linux-bfin-low.cc (the_low_target)
1723 * linux-cris-low.cc (the_low_target)
1724 * linux-crisv32-low.cc (the_low_target)
1725 * linux-m32r-low.cc (the_low_target)
1726 * linux-m68k-low.cc (the_low_target)
1727 * linux-nios2-low.cc (the_low_target)
1728 * linux-ppc-low.cc (the_low_target)
1729 * linux-s390-low.cc (the_low_target)
1730 * linux-sh-low.cc (the_low_target)
1731 * linux-sparc-low.cc (the_low_target)
1732 * linux-tic6x-low.cc (the_low_target)
1733 * linux-tile-low.cc (the_low_target)
1734 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1735 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1736 Declare.
1737 (ia64_fetch_register): Turn into...
1738 (ia64_target::low_fetch_register): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1741 Declare.
1742 (mips_fetch_register): Turn into...
1743 (mips_target::low_fetch_register): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1746 Declare.
1747 (riscv_fetch_register): Turn into...
1748 (riscv_target::low_fetch_register): ...this.
1749 (the_low_target): Remove the op field.
1750
1751 Update the callers below.
1752
1753 * linux-low.cc (linux_process_target::fetch_registers)
1754 (linux_process_target::low_fetch_register)
1755
daca57a7
TBA
17562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757
1758 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1759 linux target ops into methods of linux_process_target.
1760
1761 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1762 (class linux_process_target) <fetch_register>
1763 <store_register>
1764 <usr_fetch_inferior_registers>
1765 <usr_store_inferior_registers>
1766 <low_cannot_fetch_register>
1767 <low_cannot_fetch_register> Declare.
1768 * linux-low.cc (fetch_register): Turn into...
1769 (linux_process_target::fetch_register): ...this.
1770 (store_register): Turn into ...
1771 (linux_process_target::store_register): ...this.
1772 (usr_fetch_inferior_registers): Turn into...
1773 (linux_process_target::usr_fetch_inferior_registers): ...this.
1774 (usr_store_inferior_registers): Turn into...
1775 (linux_process_target::usr_store_inferior_registers): ...this.
1776 * linux-x86-low.cc (class x86_target)
1777 <low_cannot_fetch_register>
1778 <low_cannot_store_register>: Declare.
1779 (x86_cannot_store_register): Turn into...
1780 (x86_target::low_cannot_store_register): ...this.
1781 (x86_cannot_fetch_register): Turn into...
1782 (x86_target::low_cannot_fetch_register): ...this.
1783 (the_low_target): Remove the target op fields.
1784 * linux-aarch64-low.cc (class aarch64_target)
1785 <low_cannot_fetch_register>
1786 <low_cannot_store_register>: Declare.
1787 (aarch64_target::low_cannot_fetch_register)
1788 (aarch64_target::low_cannot_store_register): Define.
1789 (the_low_target): Remove the op fields.
1790 * linux-arm-low.cc (class arm_target)
1791 <low_cannot_fetch_register>
1792 <low_cannot_store_register>: Declare.
1793 (arm_cannot_fetch_register): Turn into...
1794 (arm_target::low_cannot_fetch_register): ...this.
1795 (arm_cannot_store_register): Turn into...
1796 (arm_target::low_cannot_store_register): ...this.
1797 (the_low_target): Remove the op fields.
1798 * linux-bfin-low.cc (class bfin_target)
1799 <low_cannot_fetch_register>
1800 <low_cannot_store_register>: Declare.
1801 (bfin_cannot_fetch_register): Turn into...
1802 (bfin_target::low_cannot_fetch_register): ...this.
1803 (bfin_cannot_store_register): Turn into...
1804 (bfin_target::low_cannot_store_register): ...this.
1805 (the_low_target): Remove the op fields.
1806 * linux-cris-low.cc (class cris_target)
1807 <low_cannot_fetch_register>
1808 <low_cannot_store_register>: Declare.
1809 (cris_cannot_fetch_register): Turn into...
1810 (cris_target::low_cannot_fetch_register): ...this.
1811 (cris_cannot_store_register): Turn into...
1812 (cris_target::low_cannot_store_register): ...this.
1813 (the_low_target): Remove the op fields.
1814 * linux-crisv32-low.cc (class crisv32_target)
1815 <low_cannot_fetch_register>
1816 <low_cannot_store_register>: Declare.
1817 (crisv32_target::low_cannot_fetch_register)
1818 (crisv32_target::low_cannot_store_register): Define.
1819 (the_low_target): Remove the op fields.
1820 * linux-ia64-low.cc (class ia64_target)
1821 <low_cannot_fetch_register>
1822 <low_cannot_store_register>: Declare.
1823 (ia64_cannot_fetch_register): Turn into...
1824 (ia64_target::low_cannot_fetch_register): ...this.
1825 (ia64_cannot_store_register): Turn into...
1826 (ia64_target::low_cannot_store_register): ...this.
1827 (the_low_target): Remove the op fields.
1828 * linux-m32r-low.cc (class m32r_target)
1829 <low_cannot_fetch_register>
1830 <low_cannot_store_register>: Declare.
1831 (m32r_cannot_fetch_register): Turn into...
1832 (m32r_target::low_cannot_fetch_register): ...this.
1833 (m32r_cannot_store_register): Turn into...
1834 (m32r_target::low_cannot_store_register): ...this.
1835 (the_low_target): Remove the op fields.
1836 * linux-m68k-low.cc (class m68k_target)
1837 <low_cannot_fetch_register>
1838 <low_cannot_store_register>: Declare.
1839 (m68k_cannot_fetch_register): Turn into...
1840 (m68k_target::low_cannot_fetch_register): ...this.
1841 (m68k_cannot_store_register): Turn into...
1842 (m68k_target::low_cannot_store_register): ...this.
1843 (the_low_target): Remove the op fields.
1844 * linux-mips-low.cc (class mips_target)
1845 <low_cannot_fetch_register>
1846 <low_cannot_store_register>: Declare.
1847 (mips_cannot_fetch_register): Turn into...
1848 (mips_target::low_cannot_fetch_register): ...this.
1849 (mips_cannot_store_register): Turn into...
1850 (mips_target::low_cannot_store_register): ...this.
1851 (get_usrregs_info): Inline at the call sites in
1852 low_cannot_fetch_register and low_cannot_store_register,
1853 and remove.
1854 (the_low_target): Remove the op fields.
1855 * linux-nios2-low.cc (class nios2_target)
1856 <low_cannot_fetch_register>
1857 <low_cannot_store_register>: Declare.
1858 (nios2_cannot_fetch_register): Turn into...
1859 (nios2_target::low_cannot_fetch_register): ...this.
1860 (nios2_cannot_store_register): Turn into...
1861 (nios2_target::low_cannot_store_register): ...this.
1862 (the_low_target): Remove the op fields.
1863 * linux-ppc-low.cc (class ppc_target)
1864 <low_cannot_fetch_register>
1865 <low_cannot_store_register>: Declare.
1866 (ppc_cannot_fetch_register): Turn into...
1867 (ppc_target::low_cannot_fetch_register): ...this.
1868 (ppc_cannot_store_register): Turn into...
1869 (ppc_target::low_cannot_store_register): ...this.
1870 (the_low_target): Remove the op fields.
1871 * linux-riscv-low.cc (class riscv_target)
1872 <low_cannot_fetch_register>
1873 <low_cannot_store_register>: Declare.
1874 (riscv_target::low_cannot_fetch_register)
1875 (riscv_target::low_cannot_store_register): Define.
1876 (the_low_target): Remove the op fields.
1877 * linux-s390-low.cc (class s390_target)
1878 <low_cannot_fetch_register>
1879 <low_cannot_store_register>: Declare.
1880 (s390_cannot_fetch_register): Turn into...
1881 (s390_target::low_cannot_fetch_register): ...this.
1882 (s390_cannot_store_register): Turn into...
1883 (s390_target::low_cannot_store_register): ...this.
1884 (the_low_target): Remove the op fields.
1885 * linux-sh-low.cc (class sh_target)
1886 <low_cannot_fetch_register>
1887 <low_cannot_store_register>: Declare.
1888 (sh_cannot_fetch_register): Turn into...
1889 (sh_target::low_cannot_fetch_register): ...this.
1890 (sh_cannot_store_register): Turn into...
1891 (sh_target::low_cannot_store_register): ...this.
1892 (the_low_target): Remove the op fields.
1893 * linux-sparc-low.cc (class sparc_target)
1894 <low_cannot_fetch_register>
1895 <low_cannot_store_register>: Declare.
1896 (sparc_cannot_fetch_register): Turn into...
1897 (sparc_target::low_cannot_fetch_register): ...this.
1898 (sparc_cannot_store_register): Turn into...
1899 (sparc_target::low_cannot_store_register): ...this.
1900 (the_low_target): Remove the op fields.
1901 * linux-tic6x-low.cc (class tic6x_target)
1902 <low_cannot_fetch_register>
1903 <low_cannot_store_register>: Declare.
1904 (tic6x_cannot_fetch_register): Turn into...
1905 (tic6x_target::low_cannot_fetch_register): ...this.
1906 (tic6x_cannot_store_register): Turn into...
1907 (tic6x_target::low_cannot_store_register): ...this.
1908 (the_low_target): Remove the op fields.
1909 * linux-tile-low.cc (class tile_target)
1910 <low_cannot_fetch_register>
1911 <low_cannot_store_register>: Declare.
1912 (tile_cannot_fetch_register): Turn into...
1913 (tile_target::low_cannot_fetch_register): ...this.
1914 (tile_cannot_store_register): Turn into...
1915 (tile_target::low_cannot_store_register): ...this.
1916 (the_low_target): Remove the op fields.
1917 * linux-xtensa-low.cc (class xtensa_target)
1918 <low_cannot_fetch_register>
1919 <low_cannot_store_register>: Declare.
1920 (xtensa_target::low_cannot_fetch_register)
1921 (xtensa_target::low_cannot_store_register): Define.
1922 (the_low_target): Remove the op fields.
1923
aa8d21c9
TBA
19242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1925
1926 Turn the 'regs_info' linux target op into a method of
1927 linux_process_target.
1928
1929 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1930 (class linux_process_target) <get_regs_info>: Define.
1931
1932 Update the callers below.
1933
1934 * linux-low.cc (linux_process_target::fetch_registers)
1935 (linux_process_target::store_registers)
1936 * proc-service.cc (gregset_info)
1937
1938 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1939 (x86_linux_regs_info): Turn into ...
1940 (x86_target::get_regs_info): ...this.
1941 (the_low_target): Remove the op field.
1942 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1943 Declare.
1944 (aarch64_regs_info): Turn into ...
1945 (aarch64_target::get_regs_info): ...this.
1946 (the_low_target): Remove the op field.
1947 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1948 (arm_regs_info): Turn into ...
1949 (arm_target::get_regs_info): ...this.
1950 (the_low_target): Remove the op field.
1951 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1952 (bfin_regs_info): Turn into ...
1953 (bfin_target::get_regs_info): ...this.
1954 (the_low_target): Remove the op field.
1955 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1956 (cris_regs_info): Turn into ...
1957 (cris_target::get_regs_info): ...this.
1958 (the_low_target): Remove the op field.
1959 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1960 Declare.
1961 (crisv32_regs_info): Turn into ...
1962 (crisv32_target::get_regs_info): ...this.
1963 (the_low_target): Remove the op field.
1964 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1965 (ia64_regs_info): Turn into ...
1966 (ia64_target::get_regs_info): ...this.
1967 (the_low_target): Remove the op field.
1968 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1969 (m32r_regs_info): Turn into ...
1970 (m32r_target::get_regs_info): ...this.
1971 (the_low_target): Remove the op field.
1972 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1973 (m68k_regs_info): Turn into ...
1974 (m68k_target::get_regs_info): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1977 (mips_regs_info): Turn into ...
1978 (mips_target::get_regs_info): ...this.
1979 (the_low_target): Remove the op field.
1980 (get_usrregs_info): Update the call to the op.
1981 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1982 (nios2_regs_info): Turn into ...
1983 (nios2_target::get_regs_info): ...this.
1984 (the_low_target): Remove the op field.
1985 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1986 (ppc_regs_info): Turn into ...
1987 (ppc_target::get_regs_info): ...this.
1988 (the_low_target): Remove the op field.
1989 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1990 (riscv_regs_info): Turn into ...
1991 (riscv_target::get_regs_info): ...this.
1992 (the_low_target): Remove the op field.
1993 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1994 (s390_regs_info): Turn into ...
1995 (s390_target::get_regs_info): ...this.
1996 (the_low_target): Remove the op field.
1997 (s390_collect_ptrace_register)
1998 (s390_supply_ptrace_register)
1999 (s390_fill_gregset): Update the call to the op.
2000 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2001 (sh_regs_info): Turn into ...
2002 (sh_target::get_regs_info): ...this.
2003 (the_low_target): Remove the op field.
2004 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2005 (sparc_regs_info): Turn into ...
2006 (sparc_target::get_regs_info): ...this.
2007 (the_low_target): Remove the op field.
2008 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2009 (tic6x_regs_info): Turn into ...
2010 (tic6x_target::get_regs_info): ...this.
2011 (the_low_target): Remove the op field.
2012 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2013 (tile_regs_info): Turn into ...
2014 (tile_target::get_regs_info): ...this.
2015 (the_low_target): Remove the op field.
2016 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2017 Declare.
2018 (xtensa_regs_info): Turn into ...
2019 (xtensa_target::get_regs_info): ...this.
2020 (the_low_target): Remove the op field.
2021
797bcff5
TBA
20222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2023
2024 Turn the 'arch_setup' linux target op into a method of
2025 linux_process_target.
2026
2027 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2028 (class linux_process_target) <arch_setup_thread>
2029 <low_arch_setup>: New declarations.
2030 * linux-low.cc (linux_arch_setup): Delete.
2031 (linux_arch_setup_thread): Turn into...
2032 (linux_process_target::arch_setup_thread): ... this.
2033
2034 Update the callers below.
2035
2036 (linux_process_target::handle_extended_wait)
2037 (linux_process_target::post_create_inferior)
2038 (linux_process_target::filter_event)
2039
2040 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2041 declaration.
2042 (x86_linux_update_xmltarget): Turn into...
2043 (x86_target::update_xmltarget): ...this.
2044 (x86_linux_process_qsupported): Update the call to
2045 x86_linux_update_xmltarget.
2046 (x86_arch_setup): Turn into ...
2047 (x86_target::low_arch_setup): ...this.
2048 (the_low_target): Remove the op field.
2049 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2050 declaration.
2051 (aarch64_arch_setup): Turn into ...
2052 (aarch64_target::low_arch_setup): ...this.
2053 (the_low_target): Remove the op field.
2054 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2055 declaration.
2056 (arm_arch_setup): Turn into ...
2057 (arm_target::low_arch_setup): ...this.
2058 (the_low_target): Remove the op field.
2059 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2060 declaration.
2061 (bfin_arch_setup): Turn into ...
2062 (bfin_target::low_arch_setup): ...this.
2063 (the_low_target): Remove the op field.
2064 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2065 declaration.
2066 (cris_arch_setup): Turn into ...
2067 (cris_target::low_arch_setup): ...this.
2068 (the_low_target): Remove the op field.
2069 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2070 declaration.
2071 (crisv32_arch_setup): Turn into ...
2072 (crisv32_target::low_arch_setup): ...this.
2073 (the_low_target): Remove the op field.
2074 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2075 declaration.
2076 (ia64_arch_setup): Turn into ...
2077 (ia64_target::low_arch_setup): ...this.
2078 (the_low_target): Remove the op field.
2079 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2080 declaration.
2081 (m32r_arch_setup): Turn into ...
2082 (m32r_target::low_arch_setup): ...this.
2083 (the_low_target): Remove the op field.
2084 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2085 declaration.
2086 (m68k_arch_setup): Turn into ...
2087 (m68k_target::low_arch_setup): ...this.
2088 (the_low_target): Remove the op field.
2089 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2090 declaration.
2091 (mips_arch_setup): Turn into ...
2092 (mips_target::low_arch_setup): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2095 declaration.
2096 (nios2_arch_setup): Turn into ...
2097 (nios2_target::low_arch_setup): ...this.
2098 (the_low_target): Remove the op field.
2099 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2100 declaration.
2101 (ppc_arch_setup): Turn into ...
2102 (ppc_target::low_arch_setup): ...this.
2103 (the_low_target): Remove the op field.
2104 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2105 declaration.
2106 (riscv_arch_setup): Turn into ...
2107 (riscv_target::low_arch_setup): ...this.
2108 (the_low_target): Remove the op field.
2109 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2110 declaration.
2111 (s390_arch_setup): Turn into ...
2112 (s390_target::low_arch_setup): ...this.
2113 (the_low_target): Remove the op field.
2114 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2115 declaration.
2116 (sh_arch_setup): Turn into ...
2117 (sh_target::low_arch_setup): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2120 declaration.
2121 (sparc_arch_setup): Turn into ...
2122 (sparc_target::low_arch_setup): ...this.
2123 (the_low_target): Remove the op field.
2124 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2125 declaration.
2126 (tic6x_arch_setup): Turn into ...
2127 (tic6x_target::low_arch_setup): ...this.
2128 (the_low_target): Remove the op field.
2129 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2130 declaration.
2131 (tile_arch_setup): Turn into ...
2132 (tile_target::low_arch_setup): ...this.
2133 (the_low_target): Remove the op field.
2134 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2135 declaration.
2136 (xtensa_arch_setup): Turn into ...
2137 (xtensa_target::low_arch_setup): ...this.
2138 (the_low_target): Remove the op field.
2139
ef0478f6
TBA
21402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2141
2142 * linux-low.h (the_linux_target): New extern declaration.
2143 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2144 'the_target'.
2145 (the_linux_target): Remove.
2146 * linux-x86-low.cc (class x86_target): New class.
2147 (the_x86_target): New static object.
2148 (the_linux_target): Define as pointer to the_x86_target.
2149 * linux-aarch64-low.cc (class aarch64_target): New class.
2150 (the_aarch64_target): New static object.
2151 (the_linux_target): Define as pointer to the_aarch64_target.
2152 * linux-arm-low.cc (class arm_target): New class.
2153 (the_arm_target): New static object.
2154 (the_linux_target): Define as pointer to the_arm_target.
2155 * linux-bfin-low.cc (class bfin_target): New class.
2156 (the_bfin_target): New static object.
2157 (the_linux_target): Define as pointer to the_bfin_target.
2158 * linux-cris-low.cc (class cris_target): New class.
2159 (the_cris_target): New static object.
2160 (the_linux_target): Define as pointer to the_cris_target.
2161 * linux-crisv32-low.cc (class crisv32_target): New class.
2162 (the_crisv32_target): New static object.
2163 (the_linux_target): Define as pointer to the_crisv32_target.
2164 * linux-ia64-low.cc (class ia64_target): New class.
2165 (the_ia64_target): New static object.
2166 (the_linux_target): Define as pointer to the_ia64_target.
2167 * linux-m32r-low.cc (class m32r_target): New class.
2168 (the_m32r_target): New static object.
2169 (the_linux_target): Define as pointer to the_m32r_target.
2170 * linux-m68k-low.cc (class m68k_target): New class.
2171 (the_m68k_target): New static object.
2172 (the_linux_target): Define as pointer to the_m68k_target.
2173 * linux-mips-low.cc (class mips_target): New class.
2174 (the_mips_target): New static object.
2175 (the_linux_target): Define as pointer to the_mips_target.
2176 * linux-nios2-low.cc (class nios2_target): New class.
2177 (the_nios2_target): New static object.
2178 (the_linux_target): Define as pointer to the_nios2_target.
2179 * linux-ppc-low.cc (class ppc_target): New class.
2180 (the_ppc_target): New static object.
2181 (the_linux_target): Define as pointer to the_ppc_target.
2182 * linux-riscv-low.cc (class riscv_target): New class.
2183 (the_riscv_target): New static object.
2184 (the_linux_target): Define as pointer to the_riscv_target.
2185 * linux-s390-low.cc (class s390_target): New class.
2186 (the_s390_target): New static object.
2187 (the_linux_target): Define as pointer to the_s390_target.
2188 * linux-sh-low.cc (class sh_target): New class.
2189 (the_sh_target): New static object.
2190 (the_linux_target): Define as pointer to the_sh_target.
2191 * linux-sparc-low.cc (class sparc_target): New class.
2192 (the_sparc_target): New static object.
2193 (the_linux_target): Define as pointer to the_sparc_target.
2194 * linux-tic6x-low.cc (class tic6x_target): New class.
2195 (the_tic6x_target): New static object.
2196 (the_linux_target): Define as pointer to the_tic6x_target.
2197 * linux-tile-low.cc (class tile_target): New class.
2198 (the_tile_target): New static object.
2199 (the_linux_target): Define as pointer to the_tile_target.
2200 * linux-xtensa-low.cc (class xtensa_target): New class.
2201 (the_xtensa_target): New static object.
2202 (the_linux_target): Define as pointer to the_xtensa_target.
2203
d16f3f6c
TBA
22042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2205
2206 Turn some static functions in linux-low.cc into private methods of
2207 linux_process_target.
2208
2209 * linux-low.cc (handle_extended_wait): Turn into ...
2210 (linux_process_target::handle_extended_wait): ...this. Call
2211 'mourn' on 'this' object instead of 'the_target'.
2212 (maybe_move_out_of_jump_pad): Turn into...
2213 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2214 (linux_low_filter_event): Turn into...
2215 (linux_process_target::filter_event): ...this.
2216 (linux_wait_for_event_filtered): Turn into...
2217 (linux_process_target::wait_for_event_filtered): ...this.
2218 (linux_wait_for_event): Turn into...
2219 (linux_process_target::wait_for_event): ...this.
2220 (linux_wait_1): Turn into...
2221 (linux_process_target::wait_1): ...this.
2222 (wait_for_sigstop): Turn into...
2223 (linux_process_target::wait_for_sigstop): ...this.
2224 (move_out_of_jump_pad_callback): Turn into...
2225 (linux_process_target::move_out_of_jump_pad): ...this.
2226 (stop_all_lwps): Turn into...
2227 (linux_process_target::stop_all_lwps): ...this.
2228 (start_step_over): Turn into...
2229 (linux_process_target::start_step_over): ...this.
2230 (complete_ongoing_step_over): Turn into...
2231 (linux_process_target::complete_ongoing_step_over): ...this.
2232 (proceed_all_lwps): Turn into...
2233 (linux_process_target::proceed_all_lwps): ...this.
2234 (unstop_all_lwps): Turn into...
2235 (linux_process_target::unstop_all_lwps): ...this.
2236
2237 * linux-low.h (class linux_process_target)
2238 <handle_extended_wait>
2239 <maybe_move_out_of_jump_pad>
2240 filter_event>
2241 <wait_for_event_filtered>
2242 <wait_for_event>
2243 <wait_1>
2244 <wait_for_sigstop>
2245 <move_out_of_jump_pad>
2246 <stop_all_lwps>
2247 <start_step_over>
2248 <complete_ongoing_step_over>
2249 <proceed_all_lwps>
2250 <unstop_all_lwps>: Declare.
2251
2252 Update the callers below.
2253
2254 * linux-low.cc (linux_process_target::attach): Update.
2255 (linux_process_target::stabilize_threads): Ditto.
2256 (linux_process_target::wait): Ditto.
2257
a5863204
TBA
22582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2259
2260 * linux-low.h (struct linux_target_ops): Update the comment for
2261 'cannot_store_register' to return 0 or 1.
2262 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2263 of 2.
2264
c884cc46
SM
22652020-03-20 Simon Marchi <simon.marchi@efficios.com>
2266
2267 * config.in: Re-generate.
2268 * configure: Re-generate.
2269
5a82b8a1
KR
22702020-03-17 Kamil Rytarowski <n54@gmx.com>
2271
2272 * regcache.cc (find_register_by_number): Update.
2273 * tdesc.cc (init_target_desc): Likewise.
2274 * tdesc.h (target_desc::reg_defs): Likewise.
2275
4635ff97
TT
22762020-03-12 Tom Tromey <tom@tromey.com>
2277
2278 * configure: Rebuild.
2279 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2280 (WIN32APILIBS): New subst.
2281 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2282 gdbsupport files.
2283 (gdbsupport/%.o): Remove target.
2284 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2285 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2286 (WIN32APILIBS): New variable.
2287 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2288 (gdbreplay$(EXEEXT)): Likewise.
2289
9a665d62
TT
22902020-03-12 Tom Tromey <tom@tromey.com>
2291
2292 * config.in, configure: Rebuild.
2293 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2294 * acinclude.m4: Include gettext-sister.m4.
2295 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2296 variables.
2297 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2298 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2299
272cd5a3
SM
23002020-03-12 Simon Marchi <simon.marchi@efficios.com>
2301
2302 * acinclude.m4: Update path to selftest.m4.
2303
db6878ac
SM
23042020-03-12 Simon Marchi <simon.marchi@efficios.com>
2305
2306 * configure.ac: Don't source bfd/development.sh, move
2307 GDB_AC_COMMON higher.
2308 * configure: Re-generate.
2309
4d696a5c
SM
23102020-03-12 Simon Marchi <simon.marchi@efficios.com>
2311
2312 * configure: Re-generate.
2313
a0761e34
SM
23142020-03-11 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * configure: Re-generate.
2317
20ea4a60
AB
23182020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2319
2320 * .dir-locals.el: New file.
2321
842806cb
TBA
23222020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2323
2324 * .gitattributes: New file.
2325
442131c1
AB
23262020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2329 reply into an S reply.
2330 * server.cc (disable_packet_T): New global.
2331 (captured_main): Set new global when appropriate.
2332 * server.h (disable_packet_T): Declare.
2333
dda42c0b
TT
23342020-02-21 Tom Tromey <tom@tromey.com>
2335
2336 * Makefile.in (mostlyclean): New target.
2337
52405d85
TBA
23382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2339
2340 * target.h (struct process_stratum_target): Remove.
2341 (class process_target): Rename to ...
2342 (class process_stratum_target): ... this.
2343 * linux-low.h (class linux_process_target): Derive from
2344 'process_stratum_target'.
2345 * linux-low.cc (linux_target_ops): Remove.
2346 (initialize_low): Set the_target to the singleton instance of
2347 linux_process_target.
2348 * lynx-low.h (class lynx_process_target): Derive from
2349 'process_stratum_target'.
2350 * lynx-low.cc (lynx_target_ops): Remove.
2351 (initialize_low): Set the_target to the singleton instance of
2352 lynx_process_target.
2353 * nto-low.h (class nto_process_target): Derive from
2354 'process_stratum_target'.
2355 * nto-low.cc (nto_target_ops): Remove.
2356 (initialize_low): Set the_target to the singleton instance of
2357 nto_process_target.
2358 * win32-low.h (class win32_process_target): Derive from
2359 'process_stratum_target'.
2360 * win32-low.cc (win32_target_ops): Remove.
2361 (initialize_low): Set the_target to the singleton instance of
2362 win32_process_target.
2363
2364 Replace 'the_target->pt' with 'the_target' in the uses below.
2365
2366 * hostio.cc (hostio_error)
2367 (handle_setfs)
2368 (handle_open)
2369 (handle_unlink)
2370 (handle_readlink)
2371 * linux-aarch32-low.cc (arm_breakpoint_at)
2372 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2373 * linux-arm-low.cc (arm_sigreturn_next_pc)
2374 (arm_get_hwcap)
2375 (arm_get_syscall_trapinfo)
2376 * linux-cris-low.cc (cris_breakpoint_at)
2377 * linux-crisv32-low.cc (cris_breakpoint_at)
2378 * linux-low.cc (handle_extended_wait)
2379 (linux_wait_1)
2380 (linux_read_memory)
2381 (linux_process_target::breakpoint_kind_from_pc)
2382 (linux_get_auxv)
2383 * linux-m32r-low.cc (m32r_breakpoint_at)
2384 * linux-mips-low.cc (mips_breakpoint_at)
2385 * linux-nios2-low.cc (nios2_breakpoint_at)
2386 * linux-ppc-low.cc (ppc_breakpoint_at)
2387 * linux-s390-low.cc (s390_get_hwcap)
2388 * linux-sh-low.cc (sh_breakpoint_at)
2389 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2390 (sparc_store_gregset_from_stack)
2391 (sparc_breakpoint_at)
2392 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2393 * linux-tile-low.cc (tile_breakpoint_at)
2394 * linux-x86-low.cc (x86_breakpoint_at)
2395 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2396 * mem-break.cc (bp_size)
2397 (bp_opcode)
2398 (insert_memory_breakpoint)
2399 (set_raw_breakpoint_at)
2400 (delete_raw_breakpoint)
2401 (z_type_supported)
2402 (uninsert_raw_breakpoint)
2403 (reinsert_raw_breakpoint)
2404 (validate_inserted_breakpoint)
2405 * regcache.cc (regcache_read_pc)
2406 (regcache_write_pc)
2407 * remote-utils.cc (putpkt_binary_1)
2408 (input_interrupt)
2409 (getpkt)
2410 (prepare_resume_reply)
2411 * server.cc (handle_general_set)
2412 (handle_detach)
2413 (handle_qxfer_auxv)
2414 (handle_qxfer_exec_file)
2415 (handle_qxfer_libraries_svr4)
2416 (handle_qxfer_osdata)
2417 (handle_qxfer_siginfo)
2418 (handle_qxfer_fdpic)
2419 (handle_query)
2420 (resume)
2421 (handle_v_requests)
2422 (queue_stop_reply_callback)
2423 (captured_main)
2424 * target.cc (prepare_to_access_memory)
2425 (done_accessing_memory)
2426 (read_inferior_memory)
2427 (target_write_memory)
2428 (target_stop_and_wait)
2429 (target_wait)
2430 (target_mourn_inferior)
2431 (target_continue_no_signal)
2432 (target_continue)
2433 (target_supports_multi_process)
2434 (kill_inferior)
2435 * target.h
2436 (target_create_inferior)
2437 (target_post_create_inferior)
2438 (myattach)
2439 (target_supports_fork_events)
2440 (target_supports_vfork_events)
2441 (target_supports_exec_events)
2442 (target_handle_new_gdb_connection)
2443 (detach_inferior)
2444 (mythread_alive)
2445 (fetch_inferior_registers)
2446 (store_inferior_registers)
2447 (join_inferior)
2448 (target_supports_non_stop)
2449 (target_async)
2450 (target_process_qsupported)
2451 (target_supports_catch_syscall)
2452 (target_get_ipa_tdesc_idx)
2453 (target_supports_tracepoints)
2454 (target_supports_fast_tracepoints)
2455 (target_get_min_fast_tracepoint_insn_len)
2456 (target_thread_stopped)
2457 (target_pause_all)
2458 (target_unpause_all)
2459 (target_stabilize_threads)
2460 (target_install_fast_tracepoint_jump_pad)
2461 (target_emit_ops)
2462 (target_supports_disable_randomization)
2463 (target_supports_agent)
2464 (target_enable_btrace)
2465 (target_disable_btrace)
2466 (target_read_btrace)
2467 (target_read_btrace_conf)
2468 (target_supports_range_stepping)
2469 (target_supports_stopped_by_sw_breakpoint)
2470 (target_stopped_by_sw_breakpoint)
2471 (target_supports_stopped_by_hw_breakpoint)
2472 (target_supports_hardware_single_step)
2473 (target_stopped_by_hw_breakpoint)
2474 (target_breakpoint_kind_from_pc)
2475 (target_breakpoint_kind_from_current_state)
2476 (target_supports_software_single_step)
2477 (target_core_of_thread)
2478 (target_thread_name)
2479 (target_thread_handle)
2480 * win32-low.cc (do_initial_child_stuff)
2481
2482 Rename target op default definitions listed below.
2483
2484 * target.cc (process_target::post_create_inferior): Rename as ...
2485 (process_stratum_target::post_create_inferior): ... this.
2486 (process_target::prepare_to_access_memory): Rename as ...
2487 (process_stratum_target::prepare_to_access_memory): ... this.
2488 (process_target::done_accessing_memory): Rename as ...
2489 (process_stratum_target::done_accessing_memory): ... this.
2490 (process_target::look_up_symbols): Rename as ...
2491 (process_stratum_target::look_up_symbols): ... this.
2492 (process_target::supports_read_auxv): Rename as ...
2493 (process_stratum_target::supports_read_auxv): ... this.
2494 (process_target::read_auxv): Rename as ...
2495 (process_stratum_target::read_auxv): ... this.
2496 (process_target::supports_z_point_type): Rename as ...
2497 (process_stratum_target::supports_z_point_type): ... this.
2498 (process_target::insert_point): Rename as ...
2499 (process_stratum_target::insert_point): ... this.
2500 (process_target::remove_point): Rename as ...
2501 (process_stratum_target::remove_point): ... this.
2502 (process_target::stopped_by_sw_breakpoint): Rename as ...
2503 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2504 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2505 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2506 (process_target::stopped_by_hw_breakpoint): Rename as ...
2507 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2508 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2509 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2510 (process_target::supports_hardware_single_step): Rename as ...
2511 (process_stratum_target::supports_hardware_single_step): ... this.
2512 (process_target::stopped_by_watchpoint): Rename as ...
2513 (process_stratum_target::stopped_by_watchpoint): ... this.
2514 (process_target::stopped_data_address): Rename as ...
2515 (process_stratum_target::stopped_data_address): ... this.
2516 (process_target::supports_read_offsets): Rename as ...
2517 (process_stratum_target::supports_read_offsets): ... this.
2518 (process_target::read_offsets): Rename as ...
2519 (process_stratum_target::read_offsets): ... this.
2520 (process_target::supports_get_tls_address): Rename as ...
2521 (process_stratum_target::supports_get_tls_address): ... this.
2522 (process_target::get_tls_address): Rename as ...
2523 (process_stratum_target::get_tls_address): ... this.
2524 (process_target::hostio_last_error): Rename as ...
2525 (process_stratum_target::hostio_last_error): ... this.
2526 (process_target::supports_qxfer_osdata): Rename as ...
2527 (process_stratum_target::supports_qxfer_osdata): ... this.
2528 (process_target::qxfer_osdata): Rename as ...
2529 (process_stratum_target::qxfer_osdata): ... this.
2530 (process_target::supports_qxfer_siginfo): Rename as ...
2531 (process_stratum_target::supports_qxfer_siginfo): ... this.
2532 (process_target::qxfer_siginfo): Rename as ...
2533 (process_stratum_target::qxfer_siginfo): ... this.
2534 (process_target::supports_non_stop): Rename as ...
2535 (process_stratum_target::supports_non_stop): ... this.
2536 (process_target::async): Rename as ...
2537 (process_stratum_target::async): ... this.
2538 (process_target::start_non_stop): Rename as ...
2539 (process_stratum_target::start_non_stop): ... this.
2540 (process_target::supports_multi_process): Rename as ...
2541 (process_stratum_target::supports_multi_process): ... this.
2542 (process_target::supports_fork_events): Rename as ...
2543 (process_stratum_target::supports_fork_events): ... this.
2544 (process_target::supports_vfork_events): Rename as ...
2545 (process_stratum_target::supports_vfork_events): ... this.
2546 (process_target::supports_exec_events): Rename as ...
2547 (process_stratum_target::supports_exec_events): ... this.
2548 (process_target::handle_new_gdb_connection): Rename as ...
2549 (process_stratum_target::handle_new_gdb_connection): ... this.
2550 (process_target::handle_monitor_command): Rename as ...
2551 (process_stratum_target::handle_monitor_command): ... this.
2552 (process_target::core_of_thread): Rename as ...
2553 (process_stratum_target::core_of_thread): ... this.
2554 (process_target::supports_read_loadmap): Rename as ...
2555 (process_stratum_target::supports_read_loadmap): ... this.
2556 (process_target::read_loadmap): Rename as ...
2557 (process_stratum_target::read_loadmap): ... this.
2558 (process_target::process_qsupported): Rename as ...
2559 (process_stratum_target::process_qsupported): ... this.
2560 (process_target::supports_tracepoints): Rename as ...
2561 (process_stratum_target::supports_tracepoints): ... this.
2562 (process_target::read_pc): Rename as ...
2563 (process_stratum_target::read_pc): ... this.
2564 (process_target::write_pc): Rename as ...
2565 (process_stratum_target::write_pc): ... this.
2566 (process_target::supports_thread_stopped): Rename as ...
2567 (process_stratum_target::supports_thread_stopped): ... this.
2568 (process_target::thread_stopped): Rename as ...
2569 (process_stratum_target::thread_stopped): ... this.
2570 (process_target::supports_get_tib_address): Rename as ...
2571 (process_stratum_target::supports_get_tib_address): ... this.
2572 (process_target::get_tib_address): Rename as ...
2573 (process_stratum_target::get_tib_address): ... this.
2574 (process_target::pause_all): Rename as ...
2575 (process_stratum_target::pause_all): ... this.
2576 (process_target::unpause_all): Rename as ...
2577 (process_stratum_target::unpause_all): ... this.
2578 (process_target::stabilize_threads): Rename as ...
2579 (process_stratum_target::stabilize_threads): ... this.
2580 (process_target::supports_fast_tracepoints): Rename as ...
2581 (process_stratum_target::supports_fast_tracepoints): ... this.
2582 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2583 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2584 (process_target::emit_ops): Rename as ...
2585 (process_stratum_target::emit_ops): ... this.
2586 (process_target::supports_disable_randomization): Rename as ...
2587 (process_stratum_target::supports_disable_randomization): ... this.
2588 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2589 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2590 (process_target::qxfer_libraries_svr4): Rename as ...
2591 (process_stratum_target::qxfer_libraries_svr4): ... this.
2592 (process_target::supports_agent): Rename as ...
2593 (process_stratum_target::supports_agent): ... this.
2594 (process_target::enable_btrace): Rename as ...
2595 (process_stratum_target::enable_btrace): ... this.
2596 (process_target::disable_btrace): Rename as ...
2597 (process_stratum_target::disable_btrace): ... this.
2598 (process_target::read_btrace): Rename as ...
2599 (process_stratum_target::read_btrace): ... this.
2600 (process_target::read_btrace_conf): Rename as ...
2601 (process_stratum_target::read_btrace_conf): ... this.
2602 (process_target::supports_range_stepping): Rename as ...
2603 (process_stratum_target::supports_range_stepping): ... this.
2604 (process_target::supports_pid_to_exec_file): Rename as ...
2605 (process_stratum_target::supports_pid_to_exec_file): ... this.
2606 (process_target::pid_to_exec_file): Rename as ...
2607 (process_stratum_target::pid_to_exec_file): ... this.
2608 (process_target::supports_multifs): Rename as ...
2609 (process_stratum_target::supports_multifs): ... this.
2610 (process_target::multifs_open): Rename as ...
2611 (process_stratum_target::multifs_open): ... this.
2612 (process_target::multifs_unlink): Rename as ...
2613 (process_stratum_target::multifs_unlink): ... this.
2614 (process_target::multifs_readlink): Rename as ...
2615 (process_stratum_target::multifs_readlink): ... this.
2616 (process_target::breakpoint_kind_from_pc): Rename as ...
2617 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2618 (process_target::breakpoint_kind_from_current_state): Rename as ...
2619 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2620 (process_target::thread_name): Rename as ...
2621 (process_stratum_target::thread_name): ... this.
2622 (process_target::thread_handle): Rename as ...
2623 (process_stratum_target::thread_handle): ... this.
2624 (process_target::supports_software_single_step): Rename as ...
2625 (process_stratum_target::supports_software_single_step): ... this.
2626 (process_target::supports_catch_syscall): Rename as ...
2627 (process_stratum_target::supports_catch_syscall): ... this.
2628 (process_target::get_ipa_tdesc_idx): Rename as ...
2629 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2630
478f9adf
PA
26312020-02-20 Pedro Alves <palves@redhat.com>
2632
2633 * target.cc (set_target_ops): Simply copy the given target pointer
2634 instead of creating a copy of the pointed object.
2635
d633e831
TBA
26362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2637
2638 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2639 of process_target.
2640
2641 * target.h (struct process_stratum_target): Remove the target op.
2642 (class process_target): Add the target op.
2643 (target_get_ipa_tdesc_idx): Update the macro.
2644 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2645
2646 Update the derived classes and callers below.
2647
2648 * linux-low.cc (linux_target_ops): Update.
2649 (linux_get_ipa_tdesc_idx): Turn into ...
2650 (linux_process_target::get_ipa_tdesc_idx): ... this.
2651 * linux-low.h (class linux_process_target): Update.
2652 * lynx-low.cc (lynx_target_ops): Update.
2653 * nto-low.cc (nto_target_ops): Update.
2654 * win32-low.cc (win32_target_ops): Update.
2655
bc8d3ae4
TBA
26562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2657
2658 Turn process_stratum_target's supports_catch_syscall op into a
2659 method of process_target.
2660
2661 * target.h (struct process_stratum_target): Remove the target op.
2662 (class process_target): Add the target op.
2663 (target_supports_catch_syscall): Update the macro.
2664 * target.cc (process_target::supports_catch_syscall): Define.
2665
2666 Update the derived classes and callers below.
2667
2668 * linux-low.cc (linux_target_ops): Update.
2669 (linux_supports_catch_syscall): Turn into ...
2670 (linux_process_target::supports_catch_syscall): ... this.
2671 * linux-low.h (class linux_process_target): Update.
2672 * lynx-low.cc (lynx_target_ops): Update.
2673 * nto-low.cc (nto_target_ops): Update.
2674 * win32-low.cc (win32_target_ops): Update.
2675
5303a34f
TBA
26762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2677
2678 Turn process_stratum_target's supports_software_single_step op
2679 into a method of process_target.
2680
2681 * target.h (struct process_stratum_target): Remove the target op.
2682 (class process_target): Add the target op.
2683 (target_supports_software_single_step): Update the macro.
2684 * target.cc (process_target::supports_software_single_step): Define.
2685
2686 Update the derived classes and callers below.
2687
2688 * linux-low.cc (linux_target_ops): Update.
2689 (linux_supports_software_single_step): Turn into ...
2690 (linux_process_target::supports_software_single_step): ... this.
2691 * linux-low.h (class linux_process_target): Update.
2692 * lynx-low.cc (lynx_target_ops): Update.
2693 * nto-low.cc (nto_target_ops): Update.
2694 * win32-low.cc (win32_target_ops): Update.
2695
7f63b89b
TBA
26962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2697
2698 Turn process_stratum_target's thread_name and thread_handle ops
2699 into methods of process_target.
2700
2701 * target.h (struct process_stratum_target): Remove the target ops.
2702 (class process_target): Add the target ops.
2703 (target_thread_name): Update the macro.
2704 (target_thread_handle): Update the macro.
2705 * target.cc (process_target::thread_name): Define.
2706 (process_target::thread_handle): Define.
2707
2708 Update the derived classes and callers below.
2709
2710 * linux-low.cc (linux_target_ops): Update.
2711 (linux_process_target::thread_name): Define.
2712 (linux_process_target::thread_handle): Define.
2713 * linux-low.h (class linux_process_target): Update.
2714 * lynx-low.cc (lynx_target_ops): Update.
2715 * nto-low.cc (nto_target_ops): Update.
2716 * win32-low.cc (win32_target_ops): Update.
2717
d367006f
TBA
27182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2719
2720 Turn process_stratum_target's breakpoint_kind_from_pc,
2721 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2722 ops into methods of process_target.
2723
2724 * target.h (struct process_stratum_target): Remove the target op.
2725 (class process_target): Add the target op.
2726 (target_breakpoint_kind_from_pc): Update the macro.
2727 (target_breakpoint_kind_from_current_state): Update the macro.
2728 (default_breakpoint_kind_from_pc): Remove declaration.
2729 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2730 (process_target::breakpoint_kind_from_pc): ... this.
2731 (process_target::breakpoint_kind_from_current_state): Define.
2732
2733 Update the derived classes and callers below.
2734
2735 * mem-break.cc (bp_size): Update.
2736 (bp_opcode): Update.
2737 * linux-low.cc (linux_target_ops): Update.
2738 (linux_wait_1): Update.
2739 (linux_breakpoint_kind_from_pc): Turn into ...
2740 (linux_process_target::breakpoint_kind_from_pc): ... this.
2741 (linux_sw_breakpoint_from_kind): Turn into ...
2742 (linux_process_target::sw_breakpoint_from_kind): ... this.
2743 (linux_breakpoint_kind_from_current_state): Turn into ...
2744 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2745 * linux-low.h (class linux_process_target): Update.
2746 * lynx-low.cc (lynx_target_ops): Update.
2747 (lynx_process_target::sw_breakpoint_from_kind): Define.
2748 * lynx-low.h (class lynx_process_target): Update.
2749 * nto-low.cc (nto_target_ops): Update.
2750 (nto_sw_breakpoint_from_kind): Turn into ...
2751 (nto_process_target::sw_breakpoint_from_kind): ... this.
2752 * nto-low.h (class nto_process_target): Update.
2753 * win32-low.cc (win32_target_ops): Update.
2754 (win32_sw_breakpoint_from_kind): Turn into ...
2755 (win32_process_target::sw_breakpoint_from_kind): ... this.
2756 * win32-low.h (class win32_process_target): Update.
2757
c9b7b804
TBA
27582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2759
2760 Turn process_stratum_target's multifs_open, multifs_readlink,
2761 multifs_unlink ops into methods of process_target.
2762
2763 * target.h (struct process_stratum_target): Remove the target ops.
2764 (class process_target): Add the target ops. Also add
2765 'supports_multifs'.
2766 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2767 "sys/stat.h".
2768 (process_target::supports_multifs): Define.
2769 (process_target::multifs_open): Define.
2770 (process_target::multifs_readlink): Define.
2771 (process_target::multifs_unlink): Define.
2772
2773 Update the derived classes and callers below.
2774
2775 * hostio.cc (handle_setfs): Update.
2776 (handle_open): Update.
2777 (handle_unlink): Update.
2778 (handle_readlink): Update.
2779 * linux-low.cc (linux_target_ops): Update.
2780 (linux_process_target::supports_multifs): Define.
2781 (linux_process_target::multifs_open): Define.
2782 (linux_process_target::multifs_readlink): Define.
2783 (linux_process_target::multifs_unlink): Define.
2784 * linux-low.h (class linux_process_target): Update.
2785 * lynx-low.cc (lynx_target_ops): Update.
2786 * nto-low.cc (nto_target_ops): Update.
2787 * win32-low.cc (win32_target_ops): Update.
2788
8247b823
TBA
27892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2790
2791 Turn process_stratum_target's pid_to_exec_file op into a method
2792 of process_target.
2793
2794 * target.h (struct process_stratum_target): Remove the target op.
2795 (class process_target): Add the target op. Also add
2796 'supports_pid_to_exec_file'.
2797 * target.cc (process_target::pid_to_exec_file): Define.
2798 (process_target::supports_pid_to_exec_file): Define.
2799
2800 Update the derived classes and callers below.
2801
2802 * server.cc (handle_qxfer_exec_file): Update.
2803 (handle_query): Update.
2804 * linux-low.cc (linux_target_ops): Update.
2805 (linux_process_target::supports_pid_to_exec_file): Define.
2806 (linux_process_target::pid_to_exec_file): Define.
2807 * linux-low.h (class linux_process_target): Update.
2808 * lynx-low.cc (lynx_target_ops): Update.
2809 * nto-low.cc (nto_target_ops): Update.
2810 * win32-low.cc (win32_target_ops): Update.
2811
2526e0cd
TBA
28122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2813
2814 Turn process_stratum_target's supports_range_stepping op into a
2815 method of process_target.
2816
2817 * target.h (struct process_stratum_target): Remove the target op.
2818 (class process_target): Add the target op.
2819 (target_supports_range_stepping): Update the macro.
2820 * target.cc (process_target::supports_range_stepping): Define.
2821
2822 Update the derived classes and callers below.
2823
2824 * linux-low.cc (linux_target_ops): Update.
2825 (linux_supports_range_stepping): Turn into ...
2826 (linux_process_target::supports_range_stepping): ... this.
2827 * linux-low.h (class linux_process_target): Update.
2828 * lynx-low.cc (lynx_target_ops): Update.
2829 * nto-low.cc (nto_target_ops): Update.
2830 * win32-low.cc (win32_target_ops): Update.
2831
79597bdd
TBA
28322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2833
2834 Turn process_stratum_target's btrace-related ops (enable_btrace,
2835 disable_btrace, read_btrace, read_btrace_conf) into methods of
2836 process_target.
2837
2838 * target.h (struct process_stratum_target): Remove the target ops.
2839 (class process_target): Add the target ops.
2840 (target_enable_btrace): Update.
2841 (target_disable_btrace): Update.
2842 (target_read_btrace): Update.
2843 (target_read_btrace_conf): Update.
2844 * target.cc (process_target::enable_btrace): Define.
2845 (process_target::disable_btrace): Define.
2846 (process_target::read_btrace): Define.
2847 (process_target::read_btrace_conf): Define.
2848
2849 Update the derived classes and callers below.
2850
2851 * linux-low.cc (linux_target_ops): Update.
2852 (linux_process_target:enable_btrace): Define as a wrapper around
2853 linux_enable_btrace.
2854 (linux_low_disable_btrace): Turn into ...
2855 (linux_process_target::disable_btrace): ... this.
2856 (linux_low_read_btrace): Turn into ...
2857 (linux_process_target::read_btrace): ... this.
2858 (linux_low_btrace_conf): Turn into ...
2859 (linux_process_target::read_btrace_conf): ... this.
2860 * linux-low.h (class linux_process_target): Update.
2861 * lynx-low.cc (lynx_target_ops): Update.
2862 * nto-low.cc (nto_target_ops): Update.
2863 * win32-low.cc (win32_target_ops): Update.
2864
c0245cb9
TBA
28652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2866
2867 Turn process_stratum_target's supports_agent op into a method of
2868 process_target.
2869
2870 * target.h (struct process_stratum_target): Remove the target op.
2871 (class process_target): Add the target op.
2872 (target_supports_agent): Update the macro.
2873 * target.cc (process_target::supports_agent): Define.
2874
2875 Update the derived classes and callers below.
2876
2877 * linux-low.cc (linux_target_ops): Update.
2878 (linux_supports_agent): Turn into ...
2879 (linux_process_target::supports_agent): ... this.
2880 * linux-low.h (class linux_process_target): Update.
2881 * lynx-low.cc (lynx_target_ops): Update.
2882 * nto-low.cc (nto_target_ops): Update.
2883 * win32-low.cc (win32_target_ops): Update.
2884
974387bb
TBA
28852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2886
2887 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2888 method of process_target.
2889
2890 * target.h (struct process_stratum_target): Remove the target op.
2891 (class process_target): Add the target op. Also add
2892 'supports_qxfer_libraries_svr4'.
2893 * target.cc (process_target::qxfer_libraries_svr4): Define.
2894 (process_target::supports_qxfer_libraries_svr4): Define.
2895
2896 Update the derived classes and callers below.
2897
2898 * server.cc (handle_qxfer_libraries_svr4): Update.
2899 (handle_query): Update.
2900 * linux-low.cc (linux_target_ops): Update.
2901 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2902 (linux_qxfer_libraries_svr4): Turn into ...
2903 (linux_process_target::qxfer_libraries_svr4): ... this.
2904 * linux-low.h (class linux_process_target): Update.
2905 * lynx-low.cc (lynx_target_ops): Update.
2906 * nto-low.cc (nto_target_ops): Update.
2907 * win32-low.cc (win32_target_ops): Update.
2908
c756403b
TBA
29092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2910
2911 Turn process_stratum_target's supports_disable_randomization op
2912 into a method of process_target.
2913
2914 * target.h (struct process_stratum_target): Remove the target op.
2915 (class process_target): Add the target op.
2916 (target_supports_disable_randomization): Update the macro.
2917 * target.cc (process_target::supports_disable_randomization): Define.
2918
2919 Update the derived classes and callers below.
2920
2921 * linux-low.cc (linux_target_ops): Update.
2922 (linux_supports_disable_randomization): Turn into ...
2923 (linux_process_target::supports_disable_randomization): ... this.
2924 * linux-low.h (class linux_process_target): Update.
2925 * lynx-low.cc (lynx_target_ops): Update.
2926 * nto-low.cc (nto_target_ops): Update.
2927 * win32-low.cc (win32_target_ops): Update.
2928
345dafad
TBA
29292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2930
2931 Turn process_stratum_target's emit_ops op into a method of
2932 process_target.
2933
2934 * target.h (struct process_stratum_target): Remove the target op.
2935 (class process_target): Add the target op.
2936 (target_emit_ops): Update the macro.
2937 * target.cc (process_target::emit_ops): Define.
2938
2939 Update the derived classes and callers below.
2940
2941 * linux-low.cc (linux_target_ops): Update.
2942 (linux_emit_ops): Turn into ...
2943 (linux_process_target::emit_ops): ... this.
2944 * linux-low.h (class linux_process_target): Update.
2945 * lynx-low.cc (lynx_target_ops): Update.
2946 * nto-low.cc (nto_target_ops): Update.
2947 * win32-low.cc (win32_target_ops): Update.
2948
c23c9391
TBA
29492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2950
2951 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2952 and get_min_fast_tracepoint_insn_len ops into methods of
2953 process_target.
2954
2955 * target.h (struct process_stratum_target): Remove the target ops.
2956 (class process_target): Add the target ops. Also add
2957 'supports_fast_tracepoints'.
2958 (target_supports_fast_tracepoints): Update the macro.
2959 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2960 (install_fast_tracepoint_jump_pad): Update and rename the macro
2961 to ...
2962 (target_install_fast_tracepoint_jump_pad): ... this.
2963 * target.cc (process_target::supports_fast_tracepoints): Define.
2964 (process_target::install_fast_tracepoint_jump_pad): Define.
2965 (process_target::get_min_fast_tracepoint_insn_len): Define.
2966
2967 Update the derived classes and callers below.
2968
2969 * tracepoint.cc (install_fast_tracepoint): Update.
2970 * linux-low.cc (linux_target_ops): Update.
2971 (linux_process_target::supports_fast_tracepoints): Define.
2972 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2973 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2974 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2975 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2976 * linux-low.h (class linux_process_target): Update.
2977 * lynx-low.cc (lynx_target_ops): Update.
2978 * nto-low.cc (nto_target_ops): Update.
2979 * win32-low.cc (win32_target_ops): Update.
2980
5c9eb2f2
TBA
29812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2982
2983 Turn process_stratum_target's stabilize_threads op into a
2984 method of process_target.
2985
2986 * target.h (struct process_stratum_target): Remove the target op.
2987 (class process_target): Add the target op.
2988 (target_stabilize_threads): Update the macro.
2989 * target.cc (process_target::stabilize_threads): Define.
2990
2991 Update the derived classes and callers below.
2992
2993 * server.cc (handle_status): Update.
2994 * tracepoint.cc (cmd_qtdp): Update.
2995 (cmd_qtstart): Update.
2996 * linux-low.cc (linux_target_ops): Update.
2997 (linux_stabilize_threads): Turn into ...
2998 (linux_process_target::stabilize_threads): ... this.
2999 (linux_wait_1): Update.
3000 * linux-low.h (class linux_process_target): Update.
3001 * lynx-low.cc (lynx_target_ops): Update.
3002 * nto-low.cc (nto_target_ops): Update.
3003 * win32-low.cc (win32_target_ops): Update.
3004
29e8dc09
TBA
30052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3006
3007 Turn process_stratum_target's pause_all and unpause_all ops
3008 into methods of process_target.
3009
3010 * target.h (struct process_stratum_target): Remove the target ops.
3011 (class process_target): Add the target ops.
3012 (pause_all): Update the macro and rename to...
3013 (target_pause_all): ... this.
3014 (unpause_all): Update the macro and rename to...
3015 (target_unpause_all): ... this.
3016 * target.cc (process_target::pause_all): Define.
3017 (process_target::unpause_all): Define.
3018
3019 Update the derived classes and callers below.
3020
3021 * server.cc (handle_status): Update.
3022 * tracepoint.cc (clear_installed_tracepoints): Update.
3023 (cmd_qtdp): Update.
3024 (cmd_qtstart): Update.
3025 (stop_tracing): Update.
3026 (cmd_qtstatus): Update.
3027 (upload_fast_traceframes): Update.
3028 (run_inferior_command): Update.
3029 * linux-low.cc (linux_target_ops): Update.
3030 (linux_pause_all): Turn into ...
3031 (linux_process_target::pause_all): ... this.
3032 (linux_unpause_all): Turn into ...
3033 (linux_process_target::unpause_all): ... this.
3034 (linux_process_target::prepare_to_access_memory): Update.
3035 (linux_process_target::done_accessing_memory): Update.
3036 * linux-low.h (class linux_process_target): Update.
3037 * lynx-low.cc (lynx_target_ops): Update.
3038 * nto-low.cc (nto_target_ops): Update.
3039 * win32-low.cc (win32_target_ops): Update.
3040
4e2e869c
TBA
30412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3042
3043 Turn process_stratum_target's get_tib_address op into a method of
3044 process_target.
3045
3046 * target.h (struct process_stratum_target): Remove the target op.
3047 (class process_target): Add the target op. Also add
3048 'supports_get_tib_address'.
3049 * target.cc (process_target::get_tib_address): Define.
3050 (process_target::supports_get_tib_address): Define.
3051
3052 Update the derived classes and callers below.
3053
3054 * server.cc (handle_query): Update.
3055 * linux-low.cc (win32_target_ops): Update.
3056 * lynx-low.cc (lynx_target_ops): Update.
3057 * nto-low.cc (nto_target_ops): Update.
3058 * win32-low.cc (win32_target_ops): Update.
3059 (win32_process_target::supports_get_tib_address): Define.
3060 (win32_get_tib_address): Turn into ...
3061 (win32_process_target::get_tib_address): ... this.
3062 * win32-low.h (class win32_process_target): Update.
3063
68119632
TBA
30642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3065
3066 Turn process_stratum_target's thread_stopped op into a method of
3067 process_target.
3068
3069 * target.h (struct process_stratum_target): Remove the target op.
3070 (class process_target): Add the target op. Also add
3071 'supports_thread_stopped'.
3072 (target_thread_stopped): Update the macro.
3073 * target.cc (process_target::thread_stopped): Define.
3074 (process_target::supports_thread_stopped): Define.
3075 (prepare_to_access_memory): Update.
3076
3077 Update the derived classes and callers below.
3078
3079 * server.cc (queue_stop_reply_callback): Update.
3080 * linux-low.cc (linux_target_ops): Update.
3081 (linux_process_target::supports_thread_stopped): Define.
3082 (linux_thread_stopped): Turn into ...
3083 (linux_process_target::thread_stopped): ... this.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3088
770d8f6a
TBA
30892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3090
3091 Turn process_stratum_target's read_pc and write_pc ops into
3092 methods of process_target.
3093
3094 * target.h (struct process_stratum_target): Remove the target ops.
3095 (class process_target): Add the target ops.
3096 * target.cc (process_target::read_pc): Define.
3097 (process_target::write_pc): Define.
3098
3099 Update the derived classes and callers below.
3100
3101 * regcache.cc (regcache_read_pc): Update.
3102 (regcache_write_pc): Update.
3103 * linux-low.cc (linux_target_ops): Update.
3104 (linux_read_pc): Turn into ...
3105 (linux_process_target::read_pc): ... this.
3106 (linux_write_pc): Turn into ...
3107 (linux_process_target::write_pc): ... this.
3108 * linux-low.h (class linux_process_target): Update.
3109 * lynx-low.cc (lynx_target_ops): Update.
3110 * nto-low.cc (nto_target_ops): Update.
3111 * win32-low.cc (win32_target_ops): Update.
3112
290732bf
TBA
31132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3114
3115 Turn process_stratum_target's supports_tracepoints op into a
3116 method of process_target.
3117
3118 * target.h (struct process_stratum_target): Remove the target op.
3119 (class process_target): Add the target op.
3120 (target_supports_tracepoints): Update the macro.
3121 * target.cc (process_target::supports_tracepoints): Define.
3122
3123 Update the derived classes and callers below.
3124
3125 * linux-low.cc (linux_target_ops): Update.
3126 (linux_supports_tracepoints): Turn into ...
3127 (linux_process_target::supports_tracepoints): ... this.
3128 * linux-low.h (class linux_process_target): Update.
3129 * lynx-low.cc (lynx_target_ops): Update.
3130 * nto-low.cc (nto_target_ops): Update.
3131 * win32-low.cc (win32_target_ops): Update.
3132
0df28b1b
TBA
31332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3134
3135 Turn process_stratum_target's process_qsupported op into a method
3136 of process_target.
3137
3138 * target.h (struct process_stratum_target): Remove the target op.
3139 (class process_target): Add the target op.
3140 (target_process_qsupported): Update the macro.
3141 * target.cc (process_target::process_qsupported): Define.
3142
3143 Update the derived classes and callers below.
3144
3145 * linux-low.cc (linux_target_ops): Update.
3146 (linux_process_qsupported): Turn into ...
3147 (linux_process_target::process_qsupported): ... this.
3148 * linux-low.h (class linux_process_target): Update.
3149 * lynx-low.cc (lynx_target_ops): Update.
3150 * nto-low.cc (nto_target_ops): Update.
3151 * win32-low.cc (win32_target_ops): Update.
3152
9da41fda
TBA
31532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3154
3155 Turn process_stratum_target's read_loadmap op into a method of
3156 process_target.
3157
3158 * target.h (struct process_stratum_target): Remove the target op.
3159 (class process_target): Add the target op. Also add
3160 'supports_read_loadmap'.
3161 * target.cc (process_target::read_loadmap): Define.
3162 (process_target::supports_read_loadmap): Define.
3163
3164 Update the derived classes and callers below.
3165
3166 * server.cc (handle_qxfer_fdpic): Update.
3167 (handle_query): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_process_target::supports_read_loadmap): Define.
3170 (linux_read_loadmap): Turn into ...
3171 (linux_process_target::read_loadmap): ... this.
3172 * linux-low.h (class linux_process_target): Update.
3173 * lynx-low.cc (lynx_target_ops): Update.
3174 * nto-low.cc (nto_target_ops): Update.
3175 * win32-low.cc (win32_target_ops): Update.
3176
95a45fc1
TBA
31772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3178
3179 Turn process_stratum_target's core_of_thread op into a method of
3180 process_target.
3181
3182 * target.h (struct process_stratum_target): Remove the target op.
3183 (class process_target): Add the target op.
3184 (target_core_of_thread): Update the macro.
3185 * target.cc (process_target::core_of_thread): Define.
3186
3187 Update the derived classes and callers below.
3188
3189 * linux-low.cc (linux_target_ops): Update.
3190 (linux_process_target::core_of_thread): Define.
3191 * linux-low.h (class linux_process_target): Update.
3192 * lynx-low.cc (lynx_target_ops): Update.
3193 * nto-low.cc (nto_target_ops): Update.
3194 * win32-low.cc (win32_target_ops): Update.
3195
55cf3021
TBA
31962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3197
3198 Turn process_stratum_target's handle_monitor_command op into a
3199 method of process_target.
3200
3201 * target.h (struct process_stratum_target): Remove the target op.
3202 (class process_target): Add the target op.
3203 (target_handle_monitor_command): Update the macro.
3204 * target.cc (process_target::handle_monitor_command): Define.
3205
3206 Update the derived classes and callers below.
3207
3208 * server.cc (handle_query): Update.
3209 * linux-low.cc (linux_target_ops): Update.
3210 (linux_process_target::handle_monitor_command): Define.
3211 * linux-low.h (class linux_process_target): Update.
3212 * lynx-low.cc (lynx_target_ops): Update.
3213 * nto-low.cc (nto_target_ops): Update.
3214 * win32-low.cc (win32_target_ops): Update.
3215
fb00dfce
TBA
32162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3217
3218 Turn process_stratum_target's handle_new_gdb_connection op into a
3219 method of process_target.
3220
3221 * target.h (struct process_stratum_target): Remove the target op.
3222 (class process_target): Add the target op.
3223 (target_handle_new_gdb_connection): Update the macro.
3224 * target.cc (process_target::handle_new_gdb_connection): Define.
3225
3226 Update the derived classes and callers below.
3227
3228 * linux-low.cc (linux_target_ops): Update.
3229 (linux_handle_new_gdb_connection): Turn into ...
3230 (linux_process_target::handle_new_gdb_connection): ... this.
3231 * linux-low.h (class linux_process_target): Update.
3232 * lynx-low.cc (lynx_target_ops): Update.
3233 * nto-low.cc (nto_target_ops): Update.
3234 * win32-low.cc (win32_target_ops): Update.
3235
9690a72a
TBA
32362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 Turn process_stratum_target's supports_fork_events,
3239 supports_vfork_events, and supports_exec_events ops into methods
3240 of process_target.
3241
3242 * target.h (struct process_stratum_target): Remove the target ops.
3243 (class process_target): Add the target ops.
3244 (target_supports_fork_events): Update the macro.
3245 (target_supports_vfork_events): Update the macro.
3246 (target_supports_exec_events): Update the macro.
3247 * target.cc (process_target::supports_fork_events): Define.
3248 (process_target::supports_vfork_events): Define.
3249 (process_target::supports_exec_events): Define.
3250
3251 Update the derived classes and callers below.
3252
3253 * linux-low.cc (linux_target_ops): Update.
3254 (linux_supports_fork_events): Turn into ...
3255 (linux_process_target::supports_fork_events): ... this.
3256 (linux_supports_vfork_events): Turn into ...
3257 (linux_process_target::supports_vfork_events): ... this.
3258 (linux_supports_exec_events): Turn into ...
3259 (linux_process_target::supports_exec_events): ... this.
3260 * linux-low.h (class linux_process_target): Update.
3261 * lynx-low.cc (lynx_target_ops): Update.
3262 * nto-low.cc (nto_target_ops): Update.
3263 * win32-low.cc (win32_target_ops): Update.
3264
652aef77
TBA
32652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3266
3267 Turn process_stratum_target's supports_multi_process op into a
3268 method of process_target.
3269
3270 * target.h (struct process_stratum_target): Remove the target op.
3271 (class process_target): Add the target op.
3272 * target.cc (process_target::supports_multi_process): Define.
3273 (target_supports_multi_process): Update.
3274
3275 Update the derived classes and callers below.
3276
3277 * linux-low.cc (linux_target_ops): Update.
3278 (linux_supports_multi_process): Turn into ...
3279 (linux_process_target::supports_multi_process): ... this.
3280 * linux-low.h (class linux_process_target): Update.
3281 * lynx-low.cc (lynx_target_ops): Update.
3282 * nto-low.cc (nto_target_ops): Update.
3283 * win32-low.cc (win32_target_ops): Update.
3284
0dc587d4
TBA
32852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3286
3287 Turn process_stratum_target's supports_non_stop, async, and
3288 start_non_stop ops into methods of process_target.
3289
3290 * target.h (struct process_stratum_target): Remove the target ops.
3291 (class process_target): Add the target ops.
3292 (target_supports_non_stop): Update the macro.
3293 (target_async): Update the macro.
3294 (start_non_stop): Remove declaration.
3295 * target.cc (process_target::supports_non_stop): Define.
3296 (process_target::async): Define.
3297 (process_target::start_non_stop): Define.
3298 (start_non_stop): Remove.
3299
3300 Update the derived classes and callers below.
3301
3302 * server.cc (handle_qxfer_siginfo): Update.
3303 (handle_query): Update.
3304 * linux-low.cc (linux_target_ops): Update.
3305 (linux_supports_non_stop): Turn into ...
3306 (linux_process_target::supports_non_stop): ... this.
3307 (linux_async): Turn into ...
3308 (linux_process_target::async): ... this.
3309 (linux_start_non_stop): Turn into ...
3310 (linux_process_target::start_non_stop): ... this.
3311 * linux-low.h (class linux_process_target): Update.
3312 * lynx-low.cc (lynx_target_ops): Update.
3313 * nto-low.cc (nto_target_ops): Update.
3314 (nto_supports_non_stop): Remove; rely on the default behavior
3315 instead.
3316 * win32-low.cc (win32_target_ops): Update.
3317
d7abedf7
TBA
33182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319
3320 Turn process_stratum_target's qxfer_siginfo op into a method of
3321 process_target.
3322
3323 * target.h (struct process_stratum_target): Remove the target op.
3324 (class process_target): Add the target op. Also add
3325 'supports_qxfer_siginfo'.
3326 * target.cc (process_target::qxfer_siginfo): Define.
3327 (process_target::supports_qxfer_siginfo): Define.
3328
3329 Update the derived classes and callers below.
3330
3331 * server.cc (handle_qxfer_siginfo): Update.
3332 (handle_query): Update.
3333 * linux-low.cc (linux_target_ops): Update.
3334 (linux_process_target::supports_qxfer_siginfo): Define.
3335 (linux_xfer_siginfo): Turn into ...
3336 (linux_process_target::qxfer_siginfo): ... this.
3337 * linux-low.h (class linux_process_target): Update.
3338 * lynx-low.cc (lynx_target_ops): Update.
3339 * nto-low.cc (nto_target_ops): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3341
2d0795ee
TBA
33422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3343
3344 Turn process_stratum_target's qxfer_osdata op into a method of
3345 process_target.
3346
3347 * target.h (struct process_stratum_target): Remove the target op.
3348 (class process_target): Add the target op. Also add
3349 'supports_qxfer_osdata'.
3350 * target.cc (process_target::qxfer_osdata): Define.
3351 (process_target::supports_qxfer_osdata): Define.
3352
3353 Update the derived classes and callers below.
3354
3355 * server.cc (handle_qxfer_osdata): Update.
3356 (handle_query): Update.
3357 * linux-low.cc (linux_target_ops): Update.
3358 (linux_process_target::supports_qxfer_osdata): Define.
3359 (linux_qxfer_osdata): Turn into ...
3360 (linux_process_target::qxfer_osdata): ... this.
3361 * linux-low.h (class linux_process_target): Update.
3362 * lynx-low.cc (lynx_target_ops): Update.
3363 * nto-low.cc (nto_target_ops): Update.
3364 * win32-low.cc (win32_target_ops): Update.
3365
ea06bbaa
TBA
33662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3367
3368 Turn process_stratum_target's hostio_last_error op into a
3369 method of process_target.
3370
3371 * target.h (struct process_stratum_target): Remove the target op.
3372 (class process_target): Add the target op.
3373 * target.cc: Add "hostio.h" to includes.
3374 (process_target::hostio_last_error): Define.
3375
3376 Update the derived classes and callers below.
3377
3378 * hostio.cc (hostio_error): Update.
3379 * linux-low.cc: Remove "hostio.h" from includes.
3380 (linux_target_ops): Update.
3381 * lynx-low.cc (lynx_target_ops): Update.
3382 * nto-low.cc (nto_target_ops): Update.
3383 * win32-low.h (class win32_process_target): Update.
3384 * win32-low.cc (win32_target_ops): Update.
3385 (wince_hostio_last_error): Turn into ...
3386 (win32_process_target::hostio_last_error): ... this.
3387
6e3fd7e9
TBA
33882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3389
3390 Turn process_stratum_target's get_tls_address op into a method of
3391 process_target.
3392
3393 * target.h (struct process_stratum_target): Remove the target op.
3394 (class process_target): Add the target op. Also add
3395 'supports_get_tls_address'.
3396 * target.cc (process_target::get_tls_address): Define.
3397 (process_target::supports_get_tls_address): Define.
3398
3399 Update the derived classes and callers below.
3400
3401 * server.cc (handle_query): Update.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_target::supports_get_tls_address): Define.
3404 (linux_process_target::get_tls_address): Define.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3409
5203ae1e
TBA
34102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3411
3412 Turn process_stratum_target's read_offsets op into a method of
3413 process_target.
3414
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op. Also add
3417 'supports_read_offsets'.
3418 * target.cc (process_target::read_offsets): Define.
3419 (process_target::supports_read_offsets): Define.
3420
3421 Update the derived classes and callers below.
3422
3423 * server.cc (handle_query): Update.
3424 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3425 (linux_target_ops): Update.
3426 (linux_process_target::supports_read_offsets): Define.
3427 (linux_read_offsets): Turn into ...
3428 (linux_process_target::read_offsets): ... this.
3429 * linux-low.h (class linux_process_target): Update.
3430 * lynx-low.cc (lynx_target_ops): Update.
3431 * nto-low.cc (nto_target_ops): Update.
3432 * win32-low.cc (win32_target_ops): Update.
3433
6eeb5c55
TBA
34342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3435
3436 Turn process_stratum_target's stopped_by_watchpoint and
3437 stopped_data_address ops into methods of process_target.
3438
3439 * target.h (struct process_stratum_target): Remove the target ops.
3440 (class process_target): Add the target ops.
3441 * target.cc (process_target::stopped_by_watchpoint): Define.
3442 (process_target::stopped_data_address): Define.
3443
3444 Update the derived classes and callers below.
3445
3446 * remote-utils.cc (prepare_resume_reply): Update.
3447 * linux-low.cc (linux_target_ops): Update.
3448 (linux_stopped_by_watchpoint): Turn into ...
3449 (linux_process_target::stopped_by_watchpoint): ... this.
3450 (linux_stopped_data_address): Turn into ...
3451 (linux_process_target::stopped_data_address): ... this.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 * nto-low.cc (nto_target_ops): Update.
3455 (nto_stopped_by_watchpoint): Turn into ...
3456 (nto_process_target::stopped_by_watchpoint): ... this.
3457 (nto_stopped_data_address): Turn into ...
3458 (nto_process_target::stopped_data_address): ... this.
3459 * nto-low.h (class nto_process_target): Update.
3460 * win32-low.cc (win32_target_ops): Update.
3461 (win32_stopped_by_watchpoint): Turn into ...
3462 (win32_process_target::stopped_by_watchpoint): ... this.
3463 (win32_stopped_data_address): Turn into ...
3464 (win32_process_target::stopped_data_address): ... this.
3465 * win32-low.h (class win32_process_target): Update.
3466
22aa6223
TBA
34672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468
3469 Turn process_stratum_target's supports_hardware_single_step op into
3470 a method of process_target.
3471
3472 * target.h (struct process_stratum_target): Remove the target op.
3473 (class process_target): Add the target op.
3474 (target_supports_hardware_single_step): Update the macro.
3475 (target_can_do_hardware_single_step): Remove declaration.
3476 * target.cc (process_target::supports_hardware_single_step): Define.
3477 (target_can_do_hardware_single_step): Remove.
3478
3479 Update the derived classes and callers below.
3480
3481 * linux-low.h (class linux_process_target): Update.
3482 * linux-low.cc (linux_target_ops): Update.
3483 (linux_supports_hardware_single_step): Turn into ...
3484 (linux_process_target::supports_hardware_single_step): ... this.
3485 * lynx-low.h (class lynx_process_target): Update.
3486 * lynx-low.cc (lynx_target_ops): Update.
3487 (lynx_process_target::supports_hardware_single_step): Define.
3488 * nto-low.h (class nto_process_target): Update.
3489 * nto-low.cc (nto_target_ops): Update.
3490 (nto_process_target::supports_hardware_single_step): Define.
3491 * win32-low.h (class win32_process_target): Update.
3492 * win32-low.cc (win32_target_ops): Update.
3493 (win32_process_target::supports_hardware_single_step): Define.
3494
93fe88b2
TBA
34952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3496
3497 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3498 ops into methods of process_target.
3499
3500 * target.h (struct process_stratum_target): Remove the target ops.
3501 (class process_target): Add the target ops.
3502 (target_stopped_by_hw_breakpoint): Update the macro.
3503 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3504 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3505 (process_target::supports_stopped_by_hw_breakpoint): Define.
3506
3507 Update the derived classes and callers below.
3508
3509 * linux-low.cc (linux_target_ops): Update.
3510 (linux_stopped_by_hw_breakpoint): Turn into ...
3511 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3512 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3513 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3514 * linux-low.h (class linux_process_target): Update.
3515 * lynx-low.cc (lynx_target_ops): Update.
3516 * nto-low.cc (nto_target_ops): Update.
3517 * win32-low.cc (win32_target_ops): Update.
3518
84320c4e
TBA
35192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3520
3521 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3522 ops into methods of process_target.
3523
3524 * target.h (struct process_stratum_target): Remove the target ops.
3525 (class process_target): Add the target ops.
3526 (target_stopped_by_sw_breakpoint): Update the macro.
3527 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3528 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3529 (process_target::supports_stopped_by_sw_breakpoint): Define.
3530
3531 Update the derived classes and callers below.
3532
3533 * linux-low.cc (linux_target_ops): Update.
3534 (linux_stopped_by_sw_breakpoint): Turn into ...
3535 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3536 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3537 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3538 * linux-low.h (class linux_process_target): Update.
3539 * lynx-low.cc (lynx_target_ops): Update.
3540 * nto-low.cc (nto_target_ops): Update.
3541 * win32-low.cc (win32_target_ops): Update.
3542
7e0bde70
TBA
35432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3544
3545 Turn process_stratum_target's insert_point and remove_point ops
3546 into methods of process_target.
3547
3548 * target.h (struct process_stratum_target): Remove the target ops.
3549 (class process_target): Add the target ops.
3550 * target.cc (process_target::insert_point): Define.
3551 (process_target::remove_point): Define.
3552
3553 Update the derived classes and callers below.
3554
3555 * mem-break.cc (set_raw_breakpoint_at): Update.
3556 (delete_raw_breakpoint): Update.
3557 (uninsert_raw_breakpoint): Update.
3558 (reinsert_raw_breakpoint): Update.
3559 * linux-low.cc (linux_target_ops): Update.
3560 (linux_insert_point): Turn into ...
3561 (linux_process_target::insert_point): ... this.
3562 (linux_remove_point): Turn into ...
3563 (linux_process_target::remove_point): ... this.
3564 * linux-low.h (class linux_process_target): Update.
3565 * lynx-low.cc (lynx_target_ops): Update.
3566 * nto-low.cc (nto_target_ops): Update.
3567 (nto_insert_point): Turn into ...
3568 (nto_process_target::insert_point): ... this.
3569 (nto_remove_point): Turn into ...
3570 (nto_process_target::remove_point): ... this.
3571 * nto-low.h (class nto_process_target): Update.
3572 * win32-low.cc (win32_target_ops): Update.
3573 (win32_insert_point): Turn into ...
3574 (win32_process_target::insert_point): ... this.
3575 (win32_remove_point): Turn into ...
3576 (win32_process_target::remove_point): ... this.
3577 * win32-low.h (class win32_process_target): Update.
3578
a2b2297a
TBA
35792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3580
3581 Turn process_stratum_target's supports_z_point_type op into a
3582 method of process_target.
3583
3584 * target.h (struct process_stratum_target): Remove the target op.
3585 (class process_target): Add the target op.
3586 * target.cc (process_target::supports_z_point_type): Define.
3587
3588 Update the derived classes and callers below.
3589
3590 * mem-break.cc (z_type_supported): Update.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_supports_z_point_type): Turn into ...
3593 (linux_process_target::supports_z_point_type): ... this.
3594 * linux-low.h (class linux_process_target): Update.
3595 * lynx-low.cc (lynx_target_ops): Update.
3596 * nto-low.cc (nto_target_ops): Update.
3597 (nto_supports_z_point_type): Turn into ...
3598 (nto_process_target::supports_z_point_type): ... this.
3599 * nto-low.h (class nto_process_target): Update.
3600 * win32-low.cc (win32_target_ops): Update.
3601 (win32_supports_z_point_type): Turn into ...
3602 (win32_process_target::supports_z_point_type): ... this.
3603 * win32-low.h (class win32_process_target): Update.
3604
eac215cc
TBA
36052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606
3607 Turn process_stratum_target's read_auxv op into a method of
3608 process_target.
3609
3610 * target.h (class process_stratum_target): Remove the target op.
3611 (struct process_target): Add the target op. Also add
3612 'supports_read_auxv'.
3613 * target.cc (process_target::read_auxv): Define.
3614 (process_target::supports_read_auxv): Define.
3615
3616 Update the derived classes and callers below.
3617
3618 * server.cc (handle_qxfer_auxv): Update.
3619 (handle_query): Update.
3620 * linux-low.cc (linux_target_ops): Update.
3621 (linux_process_target::supports_read_auxv): Define.
3622 (linux_read_auxv): Turn into ...
3623 (linux_process_target::read_auxv): ... this.
3624 * linux-low.h (class linux_process_target): Update.
3625 * lynx-low.cc (lynx_target_ops): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 (nto_process_target::supports_read_auxv): Define.
3628 (nto_read_auxv): Turn into ...
3629 (nto_process_target::read_auxv): ... this.
3630 * nto-low.h (class nto_process_target): Update.
3631 * win32-low.cc (win32_target_ops): Update.
3632
eb497a2a
TBA
36332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634
3635 Turn process_stratum_target's request_interrupt op into a method of
3636 process_target.
3637
3638 * target.h (struct process_stratum_target): Remove the target op.
3639 (class process_target): Add the target op.
3640
3641 Update the derived classes and callers below.
3642
3643 * remote-utils.cc (putpkt_binary_1): Update.
3644 (input_interrupt): Update.
3645 (getpkt): Update.
3646 * server.cc (handle_v_requests): Update.
3647 * linux-low.cc (linux_target_ops): Update.
3648 (linux_request_interrupt): Turn into ...
3649 (linux_process_target::request_interrupt): ... this.
3650 * linux-low.h (class linux_process_target): Update.
3651 * lynx-low.cc (lynx_target_ops): Update.
3652 (lynx_request_interrupt): Turn into ...
3653 (lynx_process_target::request_interrupt): ... this.
3654 * lynx-low.h (class lynx_process_target): Update.
3655 * nto-low.cc (nto_target_ops): Update.
3656 (nto_request_interrupt): Turn into ...
3657 (nto_process_target::request_interrupt): ... this.
3658 * nto-low.h (class nto_process_target): Update.
3659 * win32-low.cc (win32_target_ops): Update.
3660 (win32_request_interrupt): Turn into ...
3661 (win32_process_target::request_interrupt): ... this.
3662 * win32-low.h (class win32_process_target): Update.
3663
2a31c7aa
TBA
36642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665
3666 Turn process_stratum_target's look_up_symbols op into a method of
3667 process_target.
3668
3669 * target.h (struct process_stratum_target): Remove the target op.
3670 (class process_target): Add the target op.
3671 * target.cc (process_target::look_up_symbols): Define.
3672
3673 Update the derived classes and callers below.
3674
3675 * server.cc (handle_query): Update.
3676 * linux-low.cc (linux_target_ops): Update.
3677 (linux_look_up_symbols): Turn into ...
3678 (linux_process_target::look_up_symbols): ... this.
3679 * linux-low.h (class linux_process_target): Update.
3680 * lynx-low.cc (lynx_target_ops): Update.
3681 * nto-low.cc (nto_target_ops): Update.
3682 * win32-low.cc (win32_target_ops): Update.
3683
e2558df3
TBA
36842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3685
3686 Turn process_stratum_target's read_memory and write_memory
3687 ops into methods of process_target.
3688
3689 * target.h (struct process_stratum_target): Remove the target ops.
3690 (class process_target): Add the target ops.
3691
3692 Update the derived classes and callers below.
3693
3694 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3695 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3696 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3697 (arm_get_syscall_trapinfo): Update.
3698 * linux-cris-low.cc (cris_breakpoint_at): Update.
3699 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3700 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3701 * linux-mips-low.cc (mips_breakpoint_at): Update.
3702 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3703 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3704 * linux-sh-low.cc (sh_breakpoint_at): Update.
3705 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3706 (sparc_store_gregset_from_stack): Update.
3707 (sparc_breakpoint_at): Update.
3708 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3709 * linux-tile-low.cc (tile_breakpoint_at): Update.
3710 * linux-x86-low.cc (x86_breakpoint_at): Update.
3711 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3712 * mem-brea.cc (insert_memory_breakpoint): Update.
3713 (validate_inserted_breakpoint): Update.
3714 * target.cc (read_inferior_memory): Update.
3715 (target_write_memory): Update.
3716 * linux-low.cc (linux_target_ops): Update.
3717 (linux_read_memory): Make a wrapper around the read_memory target
3718 op call.
3719 (linux_process_target::read_memory): Rename from linux_read_memory.
3720 (linux_write_memory): Turn into ...
3721 (linux_process_target::write_memory): ... this.
3722 * linux-low.h (class linux_process_target): Update.
3723 * lynx-low.cc (lynx_target_ops): Update.
3724 (lynx_read_memory): Turn into ...
3725 (lynx_process_target::read_memory): ... this.
3726 (lynx_write_memory): Turn into ...
3727 (lynx_process_target::write_memory): ... this.
3728 * lynx-low.h (class lynx_process_target): Update.
3729 * nto-low.cc (nto_target_ops): Update.
3730 (nto_read_memory): Turn into ...
3731 (nto_process_target::read_memory): ... this.
3732 (nto_write_memory): Turn into ...
3733 (nto_process_target::write_memory): ... this.
3734 * nto-low.h (class nto_process_target): Update.
3735 * win32-low.cc (win32_target_ops): Update.
3736 (win32_read_inferior_memory): Turn into ...
3737 (win32_process_target::read_memory): ... this.
3738 (win32_write_inferior_memory): Turn into ...
3739 (win32_process_target::write_memory): ... this.
3740 * win32-low.h (class win32_process_target): Update.
3741
79b44087
TBA
37422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3743
3744 Turn process_stratum_target's prepare_to_access_memory and
3745 done_accessing_memory 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 * target.cc (process_target::prepare_to_access_memory): Define.
3750 (process_target::done_accessing_memory): Define.
3751 (prepare_to_access_memory): Update.
3752 (done_accessing_memory): Update.
3753
3754 Update the derived classes and callers below.
3755
3756 * linux-low.cc (linux_target_ops): Update.
3757 (linux_prepare_to_access_memory): Turn into ...
3758 (linux_process_target::prepare_to_access_memory): ... this.
3759 (linux_done_accessing_memory): Turn into ...
3760 (linux_process_target::done_accessing_memory): ... this.
3761 * linux-low.h (class linux_process_target): Update.
3762 * lynx-low.cc (lynx_target_ops): Update.
3763 * nto-low.cc (nto_target_ops): Update.
3764 * win32-low.cc (win32_target_ops): Update.
3765
a5a4d4cd
TBA
37662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3767
3768 Turn process_stratum_target's fetch_registers and store_registers
3769 ops into methods of process_target.
3770
3771 * target.h (struct process_stratum_target): Remove the target ops.
3772 (class process_target): Add the target ops.
3773 (fetch_inferior_registers): Update the macro.
3774 (store_inferior_registers): Update the macro.
3775
3776 Update the derived classes and callers below.
3777
3778 * linux-low.cc (linux_target_ops): Update.
3779 (linux_fetch_registers): Turn into ...
3780 (linux_process_target::fetch_registers): ... this.
3781 (linux_store_registers): Turn into ...
3782 (linux_process_target::store_registers): ... this.
3783 * linux-low.h (class linux_process_target): Update.
3784 * lynx-low.cc (lynx_target_ops): Update.
3785 (lynx_fetch_registers): Turn into ...
3786 (lynx_process_target::fetch_registers): ... this.
3787 (lynx_store_registers): Turn into ...
3788 (lynx_process_target::store_registers): ... this.
3789 * lynx-low.h (class lynx_process_target): Update.
3790 * nto-low.cc (nto_target_ops): Update.
3791 (nto_fetch_registers): Turn into ...
3792 (nto_process_target::fetch_registers): ... this.
3793 (nto_store_registers): Turn into ...
3794 (nto_process_target::store_registers): ... this.
3795 * nto-low.h (class nto_process_target): Update.
3796 * win32-low.cc (win32_target_ops): Update.
3797 (win32_fetch_inferior_registers): Turn into ...
3798 (win32_process_target::fetch_registers): ... this.
3799 (win32_store_inferior_registers): Turn into ...
3800 (win32_process_target::store_registers): ... this.
3801 * win32-low.h (class win32_process_target): Update.
3802
6532e7e3
TBA
38032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3804
3805 Turn process_stratum_target's wait op into a method of
3806 process_target.
3807
3808 * target.h (struct process_stratum_target): Remove the target op.
3809 (class process_target): Add the target op.
3810
3811 Update the derived classes and callers below.
3812
3813 * target.cc (target_wait): Update.
3814 * linux-low.cc (linux_target_ops): Update.
3815 (linux_wait): Turn into ...
3816 (linux_process_target::wait): ... this.
3817 * linux-low.h (class linux_process_target): Update.
3818 * lynx-low.cc (lynx_target_ops): Update.
3819 (lynx_wait): Turn into ...
3820 (lynx_process_target::wait): ... this.
3821 * lynx-low.h (class lynx_process_target): Update.
3822 * nto-low.cc (nto_target_ops): Update.
3823 (nto_wait): Turn into ...
3824 (nto_process_target::wait): ... this.
3825 * nto-low.h (class nto_process_target): Update.
3826 * win32-low.cc (win32_target_ops): Update.
3827 (win32_wait): Turn into ...
3828 (win32_process_target::wait): ... this.
3829 (do_initial_child_stuff): Update.
3830 * win32-low.h (class win32_process_target): Update.
3831
0e4d7e35
TBA
38322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3833
3834 Turn process_stratum_target's resume op into a method of
3835 process_target.
3836
3837 * target.h (struct process_stratum_target): Remove the target op.
3838 (class process_target): Add the target op.
3839
3840 Update the derived classes and callers below.
3841
3842 * server.cc (resume): Update.
3843 * target.cc (target_stop_and_wait): Update.
3844 (target_continue_no_signal): Update.
3845 (target_continue): Update.
3846 * linux-low.cc (linux_target_ops): Update.
3847 (linux_resume): Turn into ...
3848 (linux_process_target::resume): ... this.
3849 * linux-low.h (class linux_process_target): Update.
3850 * lynx-low.cc (lynx_target_ops): Update.
3851 (lynx_resume): Turn into ...
3852 (lynx_process_target::resume): ... this.
3853 * lynx-low.h (class lynx_process_target): Update.
3854 * nto-low.cc (nto_target_ops): Update.
3855 (nto_resume): Turn into ...
3856 (nto_process_target::resume): ... this.
3857 * nto-low.h (class nto_process_target): Update.
3858 * win32-low.cc (win32_target_ops): Update.
3859 (win32_resume): Turn into ...
3860 (win32_process_target::resume): ... this.
3861 (win32_process_target::detach): Update.
3862 (do_initial_child_stuff): Update.
3863 * win32-low.h (class win32_process_target): Update.
3864
13d3d99b
TBA
38652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3866
3867 Turn process_stratum_target's thread_alive op into a method of
3868 process_target.
3869
3870 * target.h (struct process_stratum_target): Remove the target op.
3871 (class process_target): Add the target op.
3872 (mythread_alive): Update the macro.
3873
3874 Update the derived classes and callers below.
3875
3876 * linux-low.cc (linux_target_ops): Update.
3877 (linux_thread_alive): Turn into ...
3878 (linux_process_target::thread_alive): ... this.
3879 (wait_for_sigstop): Update.
3880 * linux-low.h (class linux_process_target): Update.
3881 * lynx-low.cc (lynx_target_ops): Update.
3882 (lynx_thread_alive): Turn into ...
3883 (lynx_process_target::thread_alive): ... this.
3884 * lynx-low.h (class lynx_process_target): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 (nto_thread_alive): Turn into ...
3887 (nto_process_target::thread_alive): ... this.
3888 * nto-low.h (class nto_process_target): Update.
3889 * win32-low.cc (win32_target_ops): Update.
3890 (win32_thread_alive): Turn into ...
3891 (win32_process_target::thread_alive): ... this.
3892 * win32-low.h (class win32_process_target): Update.
3893
95a49a39
TBA
38942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3895
3896 Turn process_stratum_target's join op into a method of
3897 process_target.
3898
3899 * target.h (struct process_stratum_target): Remove the target op.
3900 (class process_target): Add the target op.
3901 (join_inferior): Update the macro.
3902
3903 Update the derived classes and callers below.
3904
3905 * linux-low.cc (linux_target_ops): Update.
3906 (linux_join): Turn into ...
3907 (linux_process_target::join): ... this.
3908 * linux-low.h (class linux_process_target): Update.
3909 * lynx-low.cc (lynx_target_ops): Update.
3910 (lynx_join): Turn into ...
3911 (lynx_process_target::join): ... this.
3912 * lynx-low.h (class lynx_process_target): Update.
3913 * nto-low.cc (nto_target_ops): Update.
3914 (nto_process_target::join): Define.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_join): Turn into ...
3918 (win32_process_target::join): ... this.
3919 * win32-low.h (class win32_process_target): Update.
3920
8adb37b9
TBA
39212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922
3923 Turn process_stratum_target's mourn op into a method of
3924 process_target.
3925
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928
3929 Update the derived classes and callers below.
3930
3931 * target.cc (target_mourn_inferior): Update.
3932 * linux-low.cc (linux_target_ops): Update.
3933 (linux_mourn): Turn into ...
3934 (linux_process_target::mourn): ... this.
3935 (handle_extended_wait): Update.
3936 (linux_process_target::kill): Update.
3937 (linux_process_target::detach): Update.
3938 * linux-low.h (class linux_process_target): Update.
3939 * lynx-low.cc (lynx_target_ops): Update.
3940 (lynx_mourn): Turn into ...
3941 (lynx_process_target::mourn): ... this.
3942 * lynx-low.h (class lynx_process_target): Update.
3943 * nto-low.cc (nto_target_ops): Update.
3944 (nto_mourn): Turn into ...
3945 (nto_process_target::mourn): ... this.
3946 * nto-low.h (class nto_process_target): Update.
3947 * win32-low.cc (win32_target_ops): Update.
3948 (win32_mourn): Turn into ...
3949 (win32_process_target::mourn): ... this.
3950 * win32-low.h (class win32_process_target): Update.
3951
9061c9cf
TBA
39522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3953
3954 Turn process_stratum_target's detach 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 (detach_inferior): Update the macro.
3960
3961 Update the derived classes and callers below.
3962
3963 * linux-low.cc (linux_target_ops): Update.
3964 (linux_detach): Turn into ...
3965 (linux_process_target::detach): ... this.
3966 * linux-low.h (class linux_process_target): Update.
3967 * lynx-low.cc (lynx_target_ops): Update.
3968 (lynx_detach): Turn into ...
3969 (lynx_process_target::detach): ... this.
3970 * lynx-low.h (class lynx_process_target): Update.
3971 * nto-low.cc (nto_target_ops): Update.
3972 (nto_detach): Turn into ...
3973 (nto_process_target::detach): ... this.
3974 * nto-low.h (class nto_process_target): Update.
3975 * win32-low.cc (win32_target_ops): Update.
3976 (win32_detach): Turn into ...
3977 (win32_process_target::detach): ... this.
3978 * win32-low.h (class win32_process_target): Update.
3979
c6885a57
TBA
39802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3981
3982 Turn process_stratum_target's kill op into a method of
3983 process_target.
3984
3985 * target.h (struct process_stratum_target): Remove the target op.
3986 (class process_target): Add the target op.
3987
3988 Update the derived classes and callers below.
3989
3990 * target.cc (kill_inferior): Update.
3991 * linux-low.cc (linux_target_ops): Update.
3992 (linux_kill): Turn into ...
3993 (linux_process_target::kill): ... this.
3994 * linux-low.h (class linux_process_target): Update.
3995 * lynx-low.cc (lynx_target_ops): Update.
3996 (lynx_kill): Turn into ...
3997 (lynx_process_target::kill): ... this.
3998 * lynx-low.h (class lynx_process_target): Update.
3999 * nto-low.cc (nto_target_ops): Update.
4000 (nto_kill): Turn into ...
4001 (nto_process_target::kill): ... this.
4002 * nto-low.h (class nto_process_target): Update.
4003 * win32-low.cc (win32_target_ops): Update.
4004 (win32_kill): Turn into ...
4005 (win32_process_target::kill): ... this.
4006 * win32-low.h (class win32_process_target): Update.
4007
ef03dad8
TBA
40082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4009
4010 Turn process_stratum_target's attach op into a method of
4011 process_target.
4012
4013 * target.h (struct process_stratum_target): Remove the target op.
4014 (class process_target): Add the target op.
4015 (myattach): Update the macro.
4016
4017 Update the derived classes and callers below.
4018
4019 * linux-low.cc (linux_target_ops): Update.
4020 (linux_attach): Turn into ...
4021 (linux_process_target::attach): ... this.
4022 * linux-low.h (class linux_process_target): Update.
4023 * lynx-low.cc (lynx_target_ops): Update.
4024 (lynx_attach): Turn into ...
4025 (lynx_process_target::attach): ... this.
4026 * lynx-low.h (class lynx_process_target): Update.
4027 * nto-low.cc (nto_target_ops): Update.
4028 (nto_attach): Turn into ...
4029 (nto_process_target::attach): ... this.
4030 * nto-low.h (class nto_process_target): Update.
4031 * win32-low.cc (win32_target_ops): Update.
4032 (win32_attach): Turn into ...
4033 (win32_process_target::attach): ... this.
4034 * win32-low.h (class win32_process_target): Update.
4035
6dee9afb
TBA
40362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4037
4038 Turn process_stratum_target's post_create_inferior op into a method
4039 of process_target.
4040
4041 * target.h (struct process_stratum_target): Remove the target op.
4042 (class process_target): Add the target op.
4043 (target_post_create_inferior): Update the macro.
4044 * target.cc (process_target::post_create_inferior): Define.
4045
4046 Update the derived classes and callers below.
4047
4048 * linux-low.cc (linux_target_ops): Update.
4049 (linux_post_create_inferior): Turn into ...
4050 (linux_process_target::post_create_inferior): ... this.
4051 * linux-low.h (class linux_process_target): Update.
4052 * lynx-low.cc (lynx_target_ops): Update.
4053 * nto-low.cc (nto_target_ops): Update.
4054 * win32-low.cc (win32_target_ops): Update.
4055
15295543
TBA
40562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4057
4058 Turn process_stratum_target's create_inferior op into a method of
4059 process_target.
4060
4061 * target.h (struct process_stratum_target): Remove the target op.
4062 (class process_target): Add the target op.
4063 (create_inferior): Rename the macro to ...
4064 (target_create_inferior): ... this.
4065
4066 Update the derived classes and callers below.
4067
4068 * server.cc (handle_v_run): Update.
4069 (captured_main): Update.
4070 (process_serial_event): Update.
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_create_inferior): Turn into ...
4073 (linux_process_target::create_inferior): ... this.
4074 * linux-low.h (class linux_process_target): Update.
4075 * lynx-low.cc (lynx_target_ops): Update.
4076 (lynx_create_inferior): Turn into ...
4077 (lynx_process_target::create_inferior): ... this.
4078 * lynx-low.h (class lynx_process_target): Update.
4079 * nto-low.cc (nto_target_ops): Update.
4080 (nto_create_inferior): Turn into ...
4081 (nto_process_target::create_inferior): ... this.
4082 * nto-low.h (class nto_process_target): Update.
4083 * win32-low.cc (win32_target_ops): Update.
4084 (win32_create_inferior): Turn into ...
4085 (win32_process_target::create_inferior): ... this.
4086 * win32-low.h (class win32_process_target): Update.
4087
5ef9273d
TBA
40882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4089
4090 * target.h (class process_target): New class definition.
4091 (struct process_stratum_target) <pt>: New field with type
4092 'process_target*'.
4093 * linux-low.h (class linux_process_target): Define as a derived
4094 class of 'process_target'.
4095 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4096 as the 'pt' field.
4097 * lynx-low.h (class lynx_process_target): Define as a derived
4098 class of 'process_target'.
4099 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4100 as the 'pt' field.
4101 * nto-low.h (class nto_process_target): Define as a derived
4102 class of 'process_target'.
4103 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4104 as the 'pt' field.
4105 * win32-low.h (class win32_process_target): Define as a derived
4106 class of 'process_target'.
4107 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4108 as the 'pt' field.
4109
9f1528a1
AB
41102020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4111
4112 * configure: Regenerate.
4113
bf84f706
MR
41142020-02-19 Maciej W. Rozycki <macro@wdc.com>
4115 Andrew Burgess <andrew.burgess@embecosm.com>
4116
4117 * linux-riscv-low.cc: New file.
4118 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4119 and nat/riscv-linux-tdesc.c.
4120 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4121 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4122 Define.
4123
1a627e7e
TT
41242020-02-14 Tom Tromey <tom@tromey.com>
4125
4126 * acinclude.m4: Don't include acx_configure_dir.m4.
4127 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4128 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4129 (all, install-only, uninstall, clean-info, clean)
4130 (maintainer-clean): Don't recurse.
4131 (subdir_do, all-lib): Remove.
4132 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4133 (GNULIB_H): Remove.
4134 (generated_files): Update.
4135 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4136 * configure: Rebuild.
4137 * configure.ac: Don't configure gnulib or libiberty.
4138 (GNULIB): Update.
4139
a9b34532
EZ
41402020-02-14 Eli Zaretskii <eliz@gnu.org>
4141
4142 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4143 preparing the command line for CreateProcess.
4144 (win32_create_inferior): Reflect the program name in debugging
4145 output that shows the process and its command line.
4146
feacfcac
SM
41472020-02-13 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * Makefile.in: Rename source files from .c to .cc.
4150 * %.c: Rename to %.cc.
4151 * configure.ac: Rename server.c to server.cc.
4152 * configure: Re-generate.
4153
06b3c5bd
SM
41542020-02-13 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4157
052793ad
HD
41582020-02-12 Hannes Domani <ssbssa@yahoo.de>
4159
4160 * win32-low.c (win32_create_inferior): Set signal_pid.
4161
f20e3e82
MR
41622020-02-12 Maciej W. Rozycki <macro@wdc.com>
4163 Pedro Alves <palves@redhat.com>
4164
4165 Skip building gdbserver in a cross-configuration.
4166 * configure.srv: Set $gdbserver_host depending on whether $target
4167 is $host. Use $gdbserver_host instead of $host.
4168
8ddd8e0e
SM
41692020-02-11 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * configure: Re-generate.
4172
898e7f60
SM
41732020-02-11 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * configure: Re-generate.
4176
58df732b
SM
41772020-02-11 Simon Marchi <simon.marchi@efficios.com>
4178
4179 * acinclude.m4: Update warning.m4 path.
4180
7928d571
HD
41812020-02-09 Hannes Domani <ssbssa@yahoo.de>
4182
4183 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4184 (handle_exception): Set siginfo_er.
4185 (win32_xfer_siginfo): New function.
4186
919adfe8
TT
41872020-02-07 Tom Tromey <tom@tromey.com>
4188 Pedro Alves <palves@redhat.com>
4189
4190 * README: Update build documentation.
4191 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4192 host, not target.
4193 * configure.ac: Update paths.
4194 * configure: Rebuild.
4195 * acinclude.m4: Update paths.
4196 * Makefile.in: Update include paths.
4197 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4198 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4199 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4200 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4201 (%-generated.c): Update paths.
4202 * Move entire directory from ../gdb/gdbserver.
4203
287c844a
MR
42042020-01-29 Maciej W. Rozycki <macro@wdc.com>
4205
4206 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4207
548a204f
PFC
42082020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4209
4210 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4211 assignment instead of srv_linux_obj.
4212
a2236a08
HD
42132020-01-28 Hannes Domani <ssbssa@yahoo.de>
4214
4215 * server.c (handle_qxfer_libraries): Write segment-address with
4216 paddress.
4217
bdaed379
HD
42182020-01-24 Hannes Domani <ssbssa@yahoo.de>
4219
4220 * Makefile.in (install-strip): New target.
4221 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4222 * aclocal.m4: Regenerate.
4223 * configure: Regenerate.
4224 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4225
42cd72aa
MR
42262020-01-24 Maciej W. Rozycki <macro@wdc.com>
4227
4228 * Makefile.in (SFILES): Adjust paths to point to real files.
4229 (OBS): Move waitstatus.o to target/waitstatus.o.
4230 (TAGS): Transform paths appropriately.
4231 (%.o): Rename to...
4232 (nat/%.o): ... this pattern rule.
4233 (%.o): Rename to...
4234 (target/%.o): ... this pattern rule.
4235 * configure.srv: Adjust paths throughout to include nat/ prefix
4236 with the revant files.
4237 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4238 * configure: Regenerate.
4239
42ba50ec
MR
42402020-01-24 Maciej W. Rozycki <macro@wdc.com>
4241
4242 * Makefile.in (TAGS): Remove config files from the recipe.
4243
05ea2a05
TT
42442020-01-14 Tom Tromey <tom@tromey.com>
4245
4246 * configure: Rebuild.
4247 * configure.ac: Remove any checks that were added to common.m4.
4248 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4249 lib-link.m4.
4250
01027315
TT
42512020-01-14 Tom Tromey <tom@tromey.com>
4252
4253 * server.h: Include config.h.
4254 * gdbreplay.c: Include config.h.
4255 * configure: Rebuild.
4256 * configure.ac: Don't source common.host.
4257 * acinclude.m4: Update path.
4258 * Makefile.in (INCSUPPORT): New variable.
4259 (INCLUDE_CFLAGS): Add INCSUPPORT.
4260 (SFILES): Update paths.
4261 (version-generated.c): Update path to create-version.sh.
4262 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4263
b2ceabe8
TT
42642020-01-14 Tom Tromey <tom@tromey.com>
4265
4266 * configure.ac (LIBS): Use WIN32APILIBS.
4267 (USE_WIN32API): Don't define.
4268 * configure: Rebuild.
4269
25c51f71
TT
42702020-01-14 Tom Tromey <tom@tromey.com>
4271
4272 * configure: Rebuild.
4273
c0bd321d
SM
42742020-01-13 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * Makefile.in (%-generated.c): Remove rule for files from
4277 regformats/i386.
4278
bb564c58
SM
42792020-01-13 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * configure: Re-generate.
4282
6e37c371
SM
42832020-01-13 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4286 Define to static.
4287 * tracepoint.c (stop_tracing, flush_trace_buffer,
4288 about_to_request_buffer_space, get_trace_state_variable_value,
4289 set_trace_state_variable_value, gdb_collect): Add declaration.
4290
df4a0200
SM
42912020-01-13 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4294 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4295 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4296 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4297 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4298 static.
4299
89e94ec9
SM
43002020-01-13 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * inferiors.c: Include gdbsupport/common-inferior.h.
4303
2552728a
SM
43042020-01-13 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * hostio-errno.c: Include hostio.h.
4307
4025fa09
SM
43082020-01-13 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4311 prerequisite.
4312
c0b0a142
SM
43132020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4316 * linux-arm-tdesc.h: Include arch/arm.h.
4317
bb1183e2
SM
43182020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4321
f5df0b5f
SM
43222020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4325 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4326
5b6d1e4f
PA
43272020-01-10 Pedro Alves <palves@redhat.com>
4328
4329 * fork-child.c (post_fork_inferior): Pass target down to
4330 startup_inferior.
4331 * inferiors.c (switch_to_thread): Add process_stratum_target
4332 parameter.
4333 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4334 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4335 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4336 * remote-utils.c (prepare_resume_reply): Pass the target to
4337 switch_to_thread.
4338 * target.c (the_target): Now a process_stratum_target.
4339 (done_accessing_memory): Pass the target to switch_to_thread.
4340 (set_target_ops): Ajust to use process_stratum_target.
4341 * target.h (struct target_ops): Rename to ...
4342 (struct process_stratum_target): ... this.
4343 (the_target, set_target_ops): Adjust.
4344 (prepare_to_access_memory): Adjust comment.
4345 * win32-low.c (child_xfer_memory): Adjust to use
4346 process_stratum_target.
4347 (win32_target_ops): Now a process_stratum_target.
4348
559e7e50
EZ
43492020-01-06 Eli Zaretskii <eliz@gnu.org>
4350 Pedro Alves <palves@redhat.com>
4351
4352 * win32-low.c (get_child_debug_event): Extract the fatal exception
4353 from the exit status and convert to the equivalent Posix signal
4354 number.
4355 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4356 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4357
48189bec
HD
43582020-01-01 Hannes Domani <ssbssa@yahoo.de>
4359
4360 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4361
5dd8bf88
JB
43622020-01-01 Joel Brobecker <brobecker@adacore.com>
4363
4364 * server.c (gdbserver_version): Change copyright year to 2020.
4365 * gdbreplay.c (gdbreplay_version): Likewise.
4366
0ad6b8ee
CB
43672019-12-19 Christian Biesinger <cbiesinger@google.com>
4368
4369 * configure: Regenerate.
4370 * configure.ac: Quote variable arguments of test.
4371
1ee7b812
BE
43722019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4373
4374 * Makefile.in: Fix build with GNU Make 3.81
4375
d9fa87f4
TT
43762019-12-16 Tom Tromey <tromey@adacore.com>
4377
4378 * server.c (get_exec_file): Constify result.
4379
ab7d13f0
CB
43802019-12-10 Christian Biesinger <cbiesinger@google.com>
4381
4382 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4383 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4384 * config.in: Regenerate.
4385 * configure: Regenerate.
4386 * configure.ac: Don't check for strerror.
4387 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4388 Call safe_strerror instead of strerror.
4389 * server.h (strerror): Remove this now-unnecessary declaration.
4390 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4391 strerror.
4392 (gdb_agent_helper_thread): Likewise.
4393 * utils.c (perror_with_name): Likewise.
4394
4da8c3a8
TT
43952019-11-26 Tom Tromey <tom@tromey.com>
4396
4397 * configure, config.in: Rebuild.
4398
21987b9c
TT
43992019-11-26 Tom Tromey <tom@tromey.com>
4400
4401 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4402 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4403 gdb_sigmask.
4404 * configure, config.in: Rebuild.
4405
5e030278
TT
44062019-11-26 Tom Tromey <tom@tromey.com>
4407
4408 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4409 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4410 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4411 * acinclude.m4: Include ax_pthread.m4.
4412 * config.in, configure: Rebuild.
4413
6d91ce9a
CB
44142019-11-26 Christian Biesinger <cbiesinger@google.com>
4415
4416 * debug.c (debug_set_output): Call safe_strerror instead of
4417 strerror.
4418 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4419 (linux_kill_one_lwp): Likewise.
4420 (linux_detach_one_lwp): Likewise.
4421 (linux_wait_for_event_filtered): Likewise.
4422 (store_register): Likewise.
4423 * lynx-low.c (lynx_attach): Likewise.
4424 * mem-break.c (insert_memory_breakpoint): Likewise.
4425 (remove_memory_breakpoint): Likewise.
4426 (delete_fast_tracepoint_jump): Likewise.
4427 (set_fast_tracepoint_jump): Likewise.
4428 (uninsert_fast_tracepoint_jumps_at): Likewise.
4429 (reinsert_fast_tracepoint_jumps_at): Likewise.
4430 * nto-low.c (nto_xfer_memory): Likewise.
4431 (nto_resume): Likewise.
4432
6cdd651f
LM
44332019-11-20 Luis Machado <luis.machado@linaro.org>
4434
4435 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4436 instead of register count.
4437 * tdesc.c (tdesc_contains_feature): New function.
4438 * tdesc.h (tdesc_contains_feature): New prototype.
4439
cd850b40
CB
44402019-11-15 Christian Biesinger <cbiesinger@google.com>
4441
4442 * Makefile.in: Add safe-strerror.c.
4443 * configure: Regenerate.
4444 * configure.ac: Don't source common.host.
4445
5abebf3c
CB
44462019-11-15 Christian Biesinger <cbiesinger@google.com>
4447
4448 * config.in: Regenerate.
4449 * configure: Regenerate.
4450
e06f3d6e
AB
44512019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * ax.c (ax_printf): Handle size_t_arg.
4454
ca3a04f6
CB
44552019-11-06 Christian Biesinger <cbiesinger@google.com>
4456
4457 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4458 * mi/mi-main.c (output_cores): Likewise.
4459 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4460 (linux_xfer_osdata_modules): Likewise.
4461 * remote.c (register_remote_support_xml): Likewise.
4462 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4463 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4464
e48f6033
CB
44652019-11-01 Christian Biesinger <cbiesinger@google.com>
4466
4467 * configure: Regenerate.
4468 * configure.ac: Remove check for strerror_r.
4469
e7e97a2e
CB
44702019-10-31 Christian Biesinger <cbiesinger@google.com>
4471
4472 * config.in: Regenerate.
4473 * configure: Regenerate.
4474 * configure.ac: Also check for strerror_r.
4475
75cafaa6
CB
44762019-10-31 Christian Biesinger <cbiesinger@google.com>
4477
4478 * ax.h (debug_agent): Remove duplicate declaration.
4479
30baf67b
TV
44802019-10-26 Tom de Vries <tdevries@suse.de>
4481
4482 * linux-aarch64-low.c: Fix typos in comments.
4483 * linux-arm-low.c: Same.
4484 * linux-low.c: Same.
4485 * linux-ppc-low.c: Same.
4486 * proc-service.c: Same.
4487 * regcache.h: Same.
4488 * server.c: Same.
4489 * tracepoint.c: Same.
4490 * win32-low.c: Same.
4491
52c64cf7
TT
44922019-10-25 Tom Tromey <tromey@adacore.com>
4493
4494 * utils.c (xstrdup): Remove.
4495
c12d372d
TT
44962019-10-23 Tom Tromey <tom@tromey.com>
4497
4498 * configure, config.in: Rebuild.
4499
4d0b984b
TT
45002019-10-23 Tom Tromey <tom@tromey.com>
4501
4502 * configure: Rebuild.
4503 * acinclude.m4: Use m4_include, not sinclude.
4504
c5adaa19
TT
45052019-10-17 Tom Tromey <tromey@adacore.com>
4506
4507 * configure: Rebuild.
4508 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4509 in AC_CONFIG_FILES invocation.
4510 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4511 invocation.
4512
fec4e896
CB
45132019-10-16 Christian Biesinger <cbiesinger@google.com>
4514
4515 * server.c: Include xml-builtin.h.
4516 (get_xml_features): Don't declare xml_builtins here.
4517
00975ff6
AB
45182019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4519
4520 * Makefile.in: Remove references to vec-ipa.o.
4521
0dc32745
AB
45222019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * Makefile.in: Remove references to vec.c.
4525
3e6ec53a
CB
45262019-10-02 Christian Biesinger <cbiesinger@google.com>
4527
4528 * server.c (server_waiting): Change to bool.
4529 (extended_protocol): Likewise.
4530 (response_needed): Likewise.
4531 (exit_requested): Likewise.
4532 (run_once): Likewise.
4533 (report_no_resumed): Likewise.
4534 (non_stop): Likewise.
4535 (disable_packet_vCont): Likewise.
4536 (disable_packet_Tthread): Likewise.
4537 (disable_packet_qC): Likewise.
4538 (disable_packet_qfThreadInfo): Likewise.
4539 (handle_general_set): Update.
4540 (handle_detach): Update.
4541 (handle_monitor_command): Update.
4542 (handle_query): Update.
4543 (captured_main): Update.
4544 (process_serial_event): Update.
4545 * server.h (server_waiting): Change to bool.
4546 (disable_packet_vCont): Likewise.
4547 (disable_packet_Tthread): Likewise.
4548 (disable_packet_qC): Likewise.
4549 (disable_packet_qfThreadInfo): Likewise.
4550 (run_once): Likewise.
4551 (non_stop): Likewise.
4552 * target.c (target_stop_and_wait): Update.
4553
80fd2826
TT
45542019-10-02 Tom Tromey <tromey@adacore.com>
4555
4556 * Makefile.in (SFILES): Add common-inferior.c.
4557 (OBS): Add common-inferior.o.
4558 * server.c (startup_with_shell): Don't define.
4559
46f29a9a
AB
45602019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * linux-low.c (linux_low_read_btrace): Update for change to
4563 std::vector.
4564
f9d949fb
CB
45652019-09-20 Christian Biesinger <cbiesinger@google.com>
4566
4567 * debug.c (debug_threads): Remove comment in favor of the header.
4568 * debug.h (using_threads): Add declaration.
4569 (debug_threads): Add comment.
4570 * linux-aarch64-low.c: Include debug.h and remove declaration of
4571 debug_threads.
4572 * nto-low.c: Likewise.
4573 * remote-utils.c: Likewise.
4574 * thread-db.c: Likewise.
4575
abf516c6
UW
45762019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4577
4578 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4579 and powerpc-cell64l-ipa.o.
4580 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4581 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4582 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4583 (spu*-*-*): Remove.
4584
4585 * spu-low.c: Remove file.
4586
4587 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4588 (parse_spufs_run): Remove.
4589 (ppc_get_pc): Remove Cell/B.E. support.
4590 (ppc_set_pc): Likewise.
4591 (ppc_breakpoint_at): Likewise.
4592 (ppc_arch_setup): Likewise.
4593 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4594 tdesc_powerpc_cell32l.
4595 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4596 or init_registers_powerpc_cell32l.
4597 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4598 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4599 or init_registers_powerpc_cell32l.
4600 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4601 (init_registers_powerpc_cell32l): Remove prototype.
4602 (init_registers_powerpc_cell64l): Likewise.
4603
4604 * target.h (struct target_ops): Remove qxfer_spu member.
4605 * server.c (handle_qxfer_spu): Remove.
4606 (qxfer_packets): Remove entry for "spu".
4607 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4608 * linux-low.c (SPUFS_MAGIC): Remove.
4609 (spu_enumerate_spu_ids): Remove.
4610 (linux_qxfer_spu): Remove.
4611 (linux_target_ops): Remove qxfer_spu member.
4612 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4613 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4614 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4615
2d41fa11
SDJ
46162019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4617
4618 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4619 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4620 * config.in: Regenerate.
4621 * configure: Regenerate.
4622
d59b55f0
TT
46232019-08-15 Tom Tromey <tromey@adacore.com>
4624
4625 * target.c (target_write_memory): Use gdb::byte_vector.
4626
4196ab2a
TT
46272019-08-15 Tom Tromey <tromey@adacore.com>
4628
4629 * tracepoint.c (write_inferior_data_pointer)
4630 (write_inferior_integer, write_inferior_int8)
4631 (write_inferior_uinteger, m_tracepoint_action_download)
4632 (r_tracepoint_action_download, x_tracepoint_action_download)
4633 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4634 (download_agent_expr, download_tracepoint_1)
4635 (download_trace_state_variables, upload_fast_traceframes): Update.
4636 * server.c (gdb_write_memory): Update.
4637 * remote-utils.c (relocate_instruction): Update.
4638 * proc-service.c (ps_pdwrite): Update.
4639 * mem-break.c (remove_memory_breakpoint)
4640 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4641 (uninsert_fast_tracepoint_jumps_at)
4642 (reinsert_fast_tracepoint_jumps_at): Update.
4643 * linux-x86-low.c (append_insns)
4644 (i386_install_fast_tracepoint_jump_pad)
4645 (amd64_write_goto_address, i386_write_goto_address): Update.
4646 * linux-s390-low.c (append_insns, s390_write_goto_address):
4647 Update.
4648 * linux-ppc-low.c (ppc_relocate_instruction)
4649 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4650 (ppc_write_goto_address): Update.
4651 * linux-aarch64-low.c (append_insns): Update.
4652 * target.h (struct target_ops): Update.
4653 (write_inferior_memory): Don't declare.
4654 * target.c (target_write_memory): Rename from
4655 write_inferior_memory. Remove old target_write_memory.
4656
c6778d00
TT
46572019-08-15 Tom Tromey <tromey@adacore.com>
4658
4659 * target.c (write_inferior_memory): Use std::vector.
4660
404f2902
FCE
46612019-08-06 Frank Ch. Eigler <fche@redhat.com>
4662
4663 PR build/24886
4664 * configure.ac: Drop enable-libmcheck support.
4665 * configure, config.in: Rebuild.
4666 * acinclude.m4: Don't include it.
4667
4c5aa8e0
AH
46682019-07-19 Alan Hayward <alan.hayward@arm.com>
4669
4670 * configure.srv: Remove Arm xml files.
4671
7cc17433
AH
46722019-07-19 Alan Hayward <alan.hayward@arm.com>
4673
4674 * configure.srv: Add new files. Remove xml generated files.
4675 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4676 registers.
4677 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4678 * linux-aarch32-tdesc.c: New file.
4679 * linux-aarch32-tdesc.h: New file.
4680 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4681 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4682 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4683 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4684 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4685 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4686 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4687 (arm_read_description): Call arm_linux_read_description.
4688 (initialize_low_arch): Don't init registers.
4689 * linux-arm-tdesc.c: New file.
4690 * linux-arm-tdesc.h: New file.
4691
166a82be
AH
46922019-07-10 Alan Hayward <alan.hayward@arm.com>
4693
4694 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4695 Move counter inside for.
4696 (arm_read_description): Check ptrace earlier.
4697 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4698
268a13a5
TT
46992019-07-09 Tom Tromey <tom@tromey.com>
4700
4701 * configure: Rebuild.
4702 * configure.ac: Change common to gdbsupport.
4703 * acinclude.m4: Change common to gdbsupport.
4704 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4705 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4706 common to gdbsupport.
4707 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4708 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4709 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4710 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4711 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4712 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4713 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4714 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4715 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4716 common to gdbsupport.
4717
350fab54
AH
47182019-07-04 Alan Hayward <alan.hayward@arm.com>
4719
4720 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4721 defines.
4722 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4723
2b40fda7
AH
47242019-07-04 Alan Hayward <alan.hayward@arm.com>
4725
4726 * configure.srv: Remove legacy xml.
4727 * linux-aarch64-low.c (initialize_low_arch): Remove
4728 initialize_low_tdesc call.
4729 * linux-aarch64-tdesc-selftest.c: Remove file.
4730 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4731 * linux-x86-low.c (initialize_low_arch): Remove
4732 initialize_low_tdesc call.
4733 * linux-x86-tdesc-selftest.c: Remove file.
4734 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4735
7d10623d
TV
47362019-06-20 Tom de Vries <tdevries@suse.de>
4737
4738 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4739 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4740
8d6a48df
TV
47412019-06-19 Tom de Vries <tdevries@suse.de>
4742
4743 * debug.h (debug_write): Change return type to ssize_t.
4744 * debug.c (debug_write): Same.
4745
73cc7272
TT
47462019-06-14 Tom Tromey <tom@tromey.com>
4747
4748 * configure.ac: Use new path to gnulib.
4749 * configure: Rebuild.
4750 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4751 to gnulib.
4752
08f10e02
TT
47532019-06-11 Tom Tromey <tom@tromey.com>
4754
4755 * Makefile.in (SFILES): Add alloc.c.
4756 (OBS): Add alloc.o.
4757 (IPA_OBJS): Add alloc-ipa.o.
4758 (alloc-ipa.o): New target.
4759 (%.o: ../%.c): New pattern rule.
4760
422186a9
TT
47612019-06-10 Tom Tromey <tromey@adacore.com>
4762
4763 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4764 end warning with a newline.
4765 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4766 newline.
4767 * thread-db.c (attach_thread): Don't end warning with a newline.
4768 (thread_db_notice_clone): Likewise.
4769 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4770 newline.
4771 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4772 end warning with a newline.
4773
b02f78f9
PA
47742019-06-04 Pedro Alves <palves@redhat.com>
4775
4776 * server.c (captured_main): Use make_unique_xstrdup.
4777
88ed7edb
TT
47782019-06-02 Tom Tromey <tom@tromey.com>
4779
4780 * gdbreplay.c (fromhex): Remove.
4781 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4782
33a6bc35
TT
47832019-05-29 Tom Tromey <tromey@adacore.com>
4784
4785 * configure: Rebuild.
4786
e90a813d
KB
47872019-05-06 Kevin Buettner <kevinb@redhat.com>
4788
4789 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4790 sign extension code on 32-bit builds.
4791
353ea2d1
EZ
47922019-05-03 Eli Zaretskii <eliz@gnu.org>
4793
4794 * remote-utils.c:
4795 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4796
b494cdff
TT
47972019-04-19 Tom Tromey <tom@tromey.com>
4798
4799 * server.c (struct vstop_notif): Derive from notif_event.
4800 <base>: Remove.
4801 (queue_stop_reply): Update.
4802 (remove_all_on_match_ptid): Change type. Rewrite.
4803 (discard_queued_stop_replies): Rewrite.
4804 (in_queued_stop_replies_ptid): Change type.
4805 (in_queued_stop_replies): Rewrite.
4806 (notif_stop): Update.
4807 (queue_stop_reply_callback): Update.
4808 (captured_main): Don't call initialize_notif.
4809 (push_stop_notification): Update.
4810 * notif.c (notif_write_event, handle_notif_ack)
4811 (notif_event_enque, notif_push): Update.
4812 (notif_event_xfree, initialize_notif): Remove.
4813 * notif.h (struct notif_event): Include <list>, not
4814 "common/queue.h".
4815 (struct notif_server) <queue>: Now a std::list.
4816 (notif_event_p): Remove typedef.
4817 (initialize_notif): Don't declare.
4818 (struct notif_event): Add virtual destructor.
4819
a7e559cc
AH
48202019-04-17 Alan Hayward <alan.hayward@arm.com>
4821
4822 * ax.c (ax_vdebug): Call debug_printf.
4823 * debug.c (debug_write): New function.
4824 * debug.h (debug_write): New declaration.
4825 * linux-low.c (sigchld_handler): Call debug_write.
4826
aeb2e706
AH
48272019-04-17 Alan Hayward <alan.hayward@arm.com>
4828
4829 * debug.c (debug_set_output): New function.
4830 (debug_vprintf): Send output to debug_file.
4831 (debug_flush): Likewise.
4832 * debug.h (debug_set_output): New declaration.
4833 * server.c (handle_monitor_command): Add debug-file option.
4834 (captured_main): Likewise.
4835
c1bc0935
AH
48362019-04-17 Alan Hayward <alan.hayward@arm.com>
4837
4838 * debug.c (remote_debug): Add definition.
4839 * debug.h (remote_debug): Add declaration.
4840 * hostio.c (remote_debug): Remove declaration.
4841 * remote-utils.c (struct ui_file): Likewise.
4842 (remote_debug): Likewise.
4843 * remote-utils.h (remote_debug): Likewise,
4844 * server.c (remote_debug): Remove definition.
4845
3f52fdbc
KB
48462019-04-10 Kevin Buettner <kevinb@redhat.com>
4847
4848 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4849 when using a 64-bit gdbserver.
4850
b0319eaa
TT
48512019-04-09 Tom Tromey <tromey@adacore.com>
4852
4853 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4854
eedc3f4f
TT
48552019-04-08 Tom Tromey <tom@tromey.com>
4856
4857 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4858 throw.
4859 (linux_resume_one_lwp): Likewise.
4860
230d2906
TT
48612019-04-08 Tom Tromey <tom@tromey.com>
4862
4863 * gdbreplay.c: Update.
4864 * linux-low.c: Update.
4865 * server.c: Update.
4866
a70b8144
TT
48672019-04-08 Tom Tromey <tom@tromey.com>
4868
4869 * server.c: Use C++ exception handling.
4870 * linux-low.c: Use C++ exception handling.
4871 * gdbreplay.c: Use C++ exception handling.
4872
3d6e9d23
TT
48732019-04-08 Tom Tromey <tom@tromey.com>
4874
4875 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4876 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4877 (captured_main, main): Update.
4878 * gdbreplay.c (main): Update.
4879
0570503d
PFC
48802019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4881
4882 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4883 value in argument pointer, return 1 if the entry is found and 0
4884 otherwise. Move comment.
4885 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4886 * linux-low.h (linux_get_auxv): Declare.
4887 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4888
227a9e65
TT
48892019-04-05 Tom Tromey <tromey@adacore.com>
4890
4891 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4892 variables.
4893
69f4c9cc
AH
48942019-03-28 Alan Hayward <alan.hayward@arm.com>
4895
4896 * linux-low.c (AT_HWCAP2): Add define if not already included.
4897
974c89e0
AH
48982019-03-26 Alan Hayward <alan.hayward@arm.com>
4899
4900 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4901 (aarch64_arch_setup): Call linux_get_hwcap.
4902 * linux-arm-low.c (arm_get_hwcap): Remove function.
4903 (arm_read_description): Call linux_get_hwcap.
4904 * linux-low.c (linux_get_auxv): New function.
4905 (linux_get_hwcap): Likewise.
4906 (linux_get_hwcap2): Likewise.
4907 * linux-low.h (linux_get_hwcap): New declaration.
4908 (linux_get_hwcap2): Likewise.
4909 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4910 (ppc_arch_setup): Call linux_get_hwcap.
4911 * linux-s390-low.c (s390_get_hwcap): Remove function.
4912 (s390_arch_setup): Call linux_get_hwcap.
4913
1ef53e6b
AH
49142019-03-22 Alan Hayward <alan.hayward@arm.com>
4915 Jiong Wang <jiong.wang@arm.com>
4916
4917 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4918 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4919 to fail.
4920 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4921
ee4fbcfa
AH
49222019-03-22 Alan Hayward <alan.hayward@arm.com>
4923 Jiong Wang <jiong.wang@arm.com>
4924
4925 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4926 (aarch64_get_hwcap): New function.
4927 (aarch64_arch_setup): Read APIA hwcap.
4928
6dc0ebde
AH
49292019-03-22 Alan Hayward <alan.hayward@arm.com>
4930 Jiong Wang <jiong.wang@arm.com>
4931
4932 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4933 (initialize_low_tracepoint): Likewise.
4934 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4935 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4936 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4937 (aarch64_linux_read_description): Likewise.
4938 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4939
1163a4b7
JB
49402019-03-12 John Baldwin <jhb@FreeBSD.org>
4941
4942 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4943 i386_create_target_description for 'segments' parameter.
4944 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4945 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4946 * win32-i386-low.c (i386_arch_setup): Likewise.
4947
d3a70e03
TT
49482019-03-12 Tom Tromey <tromey@adacore.com>
4949
4950 * linux-low.c (iterate_over_lwps): Update.
4951
37991b4f
TT
49522019-03-06 Tom Tromey <tom@tromey.com>
4953
4954 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4955 (captured_main): Use SCOPE_EXIT.
4956
45950eb6
SDJ
49572019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4958
4959 * configure.srv: Use '$enable_unittest' instead of '$development'
4960 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4961 case.
4962
43ac54fc
TT
49632019-02-27 Tom Tromey <tromey@adacore.com>
4964
4965 * gdbreplay.c (logchar): Handle \r\n.
4966
df0da8a2
AH
49672019-02-07 Alan Hayward <alan.hayward@arm.com>
4968
4969 * linux-low.c (linux_attach): Add process before lwp.
4970 * server.c (attach_inferior): Check if already attached.
4971
1a5c2598
TT
49722019-02-07 Tom Tromey <tom@tromey.com>
4973
4974 * x86-tdesc.h: Rename include guard.
4975 * x86-low.h: Add include guard.
4976 * wincecompat.h: Rename include guard.
4977 * win32-low.h: Add include guard.
4978 * utils.h: Rename include guard.
4979 * tracepoint.h: Rename include guard.
4980 * tdesc.h: Rename include guard.
4981 * target.h: Rename include guard.
4982 * server.h: Rename include guard.
4983 * remote-utils.h: Rename include guard.
4984 * regcache.h: Rename include guard.
4985 * nto-low.h: Rename include guard.
4986 * notif.h: Add include guard.
4987 * mem-break.h: Rename include guard.
4988 * lynx-low.h: Add include guard.
4989 * linux-x86-tdesc.h: Add include guard.
4990 * linux-s390-tdesc.h: Add include guard.
4991 * linux-ppc-tdesc-init.h: Add include guard.
4992 * linux-low.h: Add include guard.
4993 * linux-aarch64-tdesc.h: Add include guard.
4994 * linux-aarch32-low.h: Add include guard.
4995 * inferiors.h: Rename include guard.
4996 * i387-fp.h: Rename include guard.
4997 * hostio.h: Rename include guard.
4998 * gdbthread.h: Rename include guard.
4999 * gdb_proc_service.h: Rename include guard.
5000 * event-loop.h: Rename include guard.
5001 * dll.h: Rename include guard.
5002 * debug.h: Rename include guard.
5003 * ax.h: Rename include guard.
5004
956cc47c
SN
50052018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5006
5007 PR gdb/23985
5008 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5009 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5010
a0707f3c
TT
50112019-01-25 Tom Tromey <tom@tromey.com>
5012
5013 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5014
0747795c
TT
50152019-01-25 Tom Tromey <tom@tromey.com>
5016
5017 * win32-low.c: Fix common/ includes.
5018 * win32-i386-low.c: Fix common/ includes.
5019 * tracepoint.c: Fix common/ includes.
5020 * thread-db.c: Fix common/ includes.
5021 * target.h: Fix common/ includes.
5022 * symbol.c: Fix common/ includes.
5023 * spu-low.c: Fix common/ includes.
5024 * server.h: Fix common/ includes.
5025 * server.c: Fix common/ includes.
5026 * remote-utils.c: Fix common/ includes.
5027 * regcache.h: Fix common/ includes.
5028 * regcache.c: Fix common/ includes.
5029 * nto-x86-low.c: Fix common/ includes.
5030 * notif.h: Fix common/ includes.
5031 * mem-break.h: Fix common/ includes.
5032 * lynx-low.c: Fix common/ includes.
5033 * lynx-i386-low.c: Fix common/ includes.
5034 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5035 * linux-x86-low.c: Fix common/ includes.
5036 * linux-low.c: Fix common/ includes.
5037 * inferiors.h: Fix common/ includes.
5038 * i387-fp.c: Fix common/ includes.
5039 * hostio.c: Fix common/ includes.
5040 * hostio-errno.c: Fix common/ includes.
5041 * gdbthread.h: Fix common/ includes.
5042 * gdbreplay.c: Fix common/ includes.
5043 * fork-child.c: Fix common/ includes.
5044 * event-loop.c: Fix common/ includes.
5045 * ax.c:
5046 (enum gdb_agent_op): Fix common/ includes.
5047
be6d4f74
TT
50482019-01-21 Tom Tromey <tom@tromey.com>
5049
5050 * tracepoint.c: Fix includes.
5051 * remote-utils.c: Fix includes.
5052 * linux-x86-low.c: Fix includes.
5053
66d91b39
JB
50542019-01-01 Joel Brobecker <brobecker@adacore.com>
5055
5056 * gdbreplay.c (gdbreplay_version): Update copyright year in
5057 version message.
5058 * server.c (gdbserver_version): Likewise.
5059
754e3168
AH
50602018-12-05 Alan Hayward <alan.hayward@arm.com>
5061
5062 * linux-low.c (add_lwp): Switch ordering.
5063
d105de22
TT
50642018-11-29 Tom Tromey <tom@tromey.com>
5065
5066 * win32-low.c (win32_join): Take pid, not process.
5067 * target.h (struct target_ops) <join>: Change argument type.
5068 (join_inferior): Change argument name.
5069 * spu-low.c (spu_join): Take pid, not process.
5070 * server.c (handle_detach): Preserve pid before destroying
5071 process.
5072 * lynx-low.c (lynx_join): Take pid, not process.
5073 * linux-low.c (linux_join): Take pid, not process.
5074
50138245
AH
50752018-11-23 Alan Hayward <alan.hayward@arm.com>
5076
5077 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5078 (aarch64_cannot_fetch_register): Likewise.
5079 (struct linux_target_ops): Update references.
5080
64f57f3d
PFC
50812018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5082
5083 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5084
8d619c01
EBM
50852018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5086
5087 * configure.srv (ipa_ppc_linux_regobj): Add
5088 powerpc-isa207-htm-vsx32l-ipa.o and
5089 powerpc-isa207-htm-vsx64l-ipa.o.
5090 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5091 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5092 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5093 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5094 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5095 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5096 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5097 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5098 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5099 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5100 (init_registers_powerpc_isa207_htm_vsx32l)
5101 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5102 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5103 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5104 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5105 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5106 (ppc_store_tm_ctarregset): New functions.
5107 (ppc_regsets): Add entries for HTM regsets.
5108 (ppc_arch_setup): Set htm in features struct when needed. Set
5109 sizes for the HTM regsets.
5110 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5111 (initialize_low_arch): Call
5112 init_registers_powerpc_isa207_htm_vsx32l and
5113 init_registers_powerpc_isa207_htm_vsx64l.
5114 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5115 PPC_TDESC_ISA207_HTM_VSX.
5116 (initialize_low_tracepoint): Call
5117 init_registers_powerpc_isa207_htm_vsx32l and
5118 init_registers_powerpc_isa207_htm_vsx64l.
5119
232bfb86
EBM
51202018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5121
5122 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5123 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5124 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5125 (ppc_store_pmuregset): New functions.
5126 (ppc_regsets): Add entries for ebb and pmu regsets.
5127 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5128 pmu regsets are available. Set sizes for these regsets.
5129
f2cf6173
EBM
51302018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5131
5132 * configure.srv (ipa_ppc_linux_regobj): Add
5133 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5134 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5135 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5136 rs6000/powerpc-isa207-vsx32l.xml, and
5137 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5138 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5139 <PPC_TDESC_ISA207_VSX>: New enum value.
5140 (init_registers_powerpc_isa207_vsx32l): Declare.
5141 (init_registers_powerpc_isa207_vsx64l): Declare.
5142 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5143 (ppc_store_tarregset): New function.
5144 (ppc_regsets): Add entry for the TAR regset.
5145 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5146 size for the TAR regsets.
5147 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5148 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5149 and init_registers_powerpc_isa207_vsx64l.
5150 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5151 (initialize_low_tracepoint): Call
5152 init_registers_powerpc_isa207_vsx32l and
5153 init_registers_powerpc_isa207_vsx64l.
5154
7ca18ed6
EBM
51552018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5156 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5157
5158 * configure.srv (ipa_ppc_linux_regobj): Add
5159 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5160 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5161 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5162 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5163 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5164 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5165 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5166 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5167 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5168 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5169 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5170 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5171 (ppc_hwcap): Add comment.
5172 (ppc_hwcap2): New global.
5173 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5174 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5175 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5176 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5177 when needed. Set sizes for the the DSCR and PPR regsets.
5178 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5179 (initialize_low_arch): Call
5180 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5181 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5182 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5183 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5184 (initialize_low_tracepoint): Call
5185 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5186 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5187
5c849b22
PFC
51882018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5189
5190 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5191
8ecfd7bd
SDJ
51922018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5193 Simon Marchi <simark@simark.ca>
5194
5195 * acinclude.m4: Include "../selftest.m4".
5196 * configure: Regenerate.
5197 * configure.ac: Use "GDB_AC_SELFTEST".
5198 * configure.srv: Use "$enable_unittests" instead of
5199 "$development" when checking whether unit tests have been
5200 enabled.
5201 * server.c (captured_main): Update message informing that
5202 selftests have been disabled.
5203
96643e35
TT
52042018-10-04 Tom Tromey <tom@tromey.com>
5205
5206 * configure: Rebuild.
5207
da4ae14a
TT
52082018-10-04 Tom Tromey <tom@tromey.com>
5209
5210 * server.c (handle_status): Rename inner "thread".
5211 (process_serial_event): Declare "res" in 'm' case.
5212 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5213 (iterate_over_lwps): Rename inner "thread".
5214 (linux_qxfer_libraries_svr4): Rename inner "len".
5215 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5216
7c619dbd
GB
52172018-10-01 Gary Benson <gbenson@redhat.com>
5218
5219 * gdb_proc_service.h: Moved common code to
5220 common/gdb_proc_service.h.
5221
3795e814
GB
52222018-10-01 Gary Benson <gbenson@redhat.com>
5223
5224 * gdb_proc_service.h: Synchronize comments and whitespace with
5225 GDB's version of this file.
5226
49b036f1
TT
52272018-09-25 Tom Tromey <tom@tromey.com>
5228
5229 * configure: Rebuild.
5230 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5231
8ff03f0b
SM
52322018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5233
5234 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5235 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5236 ($(IPA_LIB)): Sort IPA_OBJS.
5237
a1cd91dc
SM
52382018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5239
5240 * Makefile.in: Remove references to $(ADD_DEPS).
5241
752312ba
TT
52422018-09-16 Tom Tromey <tom@tromey.com>
5243
5244 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5245 variables.
5246 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5247 variables.
5248
f1628857
TT
52492018-09-05 Tom Tromey <tom@tromey.com>
5250
5251 * configure: Rebuild.
5252
ad202fcc
SM
52532018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5254
5255 PR build/23399
5256 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5257
d3d8724a
TT
52582018-08-27 Tom Tromey <tom@tromey.com>
5259
5260 PR build/23087:
5261 * configure: Rebuild.
5262
b4f183d2
TT
52632018-08-27 Tom Tromey <tom@tromey.com>
5264
5265 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5266 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5267 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5268 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5269 (s390x_emit_stack_adjust): Add casts to unsigned char.
5270
4e2aa472
SM
52712018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5272
5273 PR gdb/23374
5274 PR gdb/23375
5275 * server.h (struct client_state) <disable_randomization>:
5276 Initialize to 1.
5277
cf4088a9
SM
52782018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5281 variable.
5282 (mips_supply_ptrace_register): Likewise.
5283
a0de763e
TT
52842018-07-22 Tom Tromey <tom@tromey.com>
5285
5286 * configure: Rebuild.
5287
b0a7723d
TT
52882018-07-22 Tom Tromey <tom@tromey.com>
5289
5290 * win32-low.c (win32_create_inferior): Remove unused variables.
5291 * gdbreplay.c (remote_open): Remove unused variable.
5292 * remote-utils.c (remote_prepare): Remove unused variable.
5293 * x86-tdesc.h (X86_TDESC_H): Define.
5294 (amd64_expedite_regs): Define conditionally.
5295 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5296 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5297 * remote-utils.c (readchar): Remove unused variable.
5298
a780ef4f
PA
52992018-07-13 Pedro Alves <palves@redhat.com>
5300
5301 * linux-low.c (linux_kill): Change parameter to process_info
5302 pointer instead of pid. Adjust.
5303 * lynx-low.c (lynx_kill): Likewise.
5304 * nto-low.c (nto_kill): Likewise.
5305 * spu-low.c (spu_kill): Likewise.
5306 * win32-low.c (win32_kill): Likewise.
5307 * server.c (handle_v_kill, kill_inferior_callback)
5308 (detach_or_kill_for_exit): Adjust.
5309 * target.c (kill_inferior): Change parameter to process_info
5310 pointer instead of pid. Adjust.
5311 * target.h (struct target_ops) <kill>: Change parameter to
5312 process_info pointer instead of pid. Adjust all implementations
5313 and callers.
5314 (kill_inferior): Likewise.
5315
ef2ddb33
PA
53162018-07-13 Pedro Alves <palves@redhat.com>
5317
5318 * linux-low.c (linux_detach, linux_join): Change parameter to
5319 process_info pointer instead of pid. Adjust.
5320 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5321 * nto-low.c (nto_detach): Likewise.
5322 * spu-low.c (spu_detach, spu_join): Likewise.
5323 * win32-low.c (win32_detach, win32_join): Likewise.
5324 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5325 * target.h (struct target_ops) <detach, join>: Change parameter to
5326 process_info pointer instead of pid. Adjust all implementations
5327 and callers.
5328 (detach_inferior, join_inferior): Rename 'pid' parameter to
5329 'proc'.
5330
c7ab0aef
SDJ
53312018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5332 Jan Kratochvil <jan.kratochvil@redhat.com>
5333 Paul Fertser <fercerpav@gmail.com>
5334 Tsutomu Seki <sekiriki@gmail.com>
5335
5336 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5337 (OBS): Add 'common/netstuff.o'.
5338 (GDBREPLAY_OBS): Likewise.
5339 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5340 (remote_open): Implement support for IPv6
5341 connections.
5342 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5343 and 'wspiapi.h'.
5344 (handle_accept_event): Accept connections from IPv6 sources.
5345 (remote_prepare): Handle IPv6-style hostnames; implement
5346 support for IPv6 connections.
5347 (remote_open): Implement support for printing connections from
5348 IPv6 sources.
5349
31445d10
PA
53502018-07-11 Pedro Alves <palves@redhat.com>
5351
5352 PR gdb/23377
5353 * mem-break.c (any_persistent_commands): Add process_info
5354 parameter and use it instead of relying on the current process.
5355 Change return type to bool.
5356 * mem-break.h (any_persistent_commands): Add process_info
5357 parameter and change return type to bool.
5358 * server.c (handle_detach): Remove require_running_or_return call.
5359 Look up the process_info for the process we're about to detach.
5360 If not found, return back error to GDB. Adjust
5361 any_persistent_commands call to pass down a process pointer.
5362
cb197132
PA
53632018-07-11 Pedro Alves <palves@redhat.com>
5364
5365 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5366 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5367 instead of collect_register_by_name.
5368 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5369 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5370
1b919490
VB
53712018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5372 Pedro Alves <palves@redhat.com>
5373
5374 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5375
d7e15655
TT
53762018-07-03 Tom Tromey <tom@tromey.com>
5377
5378 * linux-low.c: Update.
5379 * lynx-low.c: Update.
5380 * mem-break.c: Update.
5381 * nto-low.c: Update.
5382 * remote-utils.c: Update.
5383 * server.c: Update.
5384 * spu-low.c: Update.
5385 * target.c: Update.
5386 * win32-low.c: Update.
5387
26a57c92
TT
53882018-07-03 Tom Tromey <tom@tromey.com>
5389
5390 * server.c: Update.
5391
0e998d96
TT
53922018-07-03 Tom Tromey <tom@tromey.com>
5393
5394 * linux-low.c: Update.
5395
cc6bcb54
TT
53962018-07-03 Tom Tromey <tom@tromey.com>
5397
5398 * target.c: Update.
5399
e38504b3
TT
54002018-07-03 Tom Tromey <tom@tromey.com>
5401
5402 * linux-low.c: Update.
5403 * linux-mips-low.c: Update.
5404 * lynx-low.c: Update.
5405 * nto-low.c: Update.
5406 * remote-utils.c: Update.
5407 * server.c: Update.
5408 * spu-low.c: Update.
5409 * target.c: Update.
5410 * thread-db.c: Update.
5411
e99b03dc
TT
54122018-07-03 Tom Tromey <tom@tromey.com>
5413
5414 * linux-low.c: Update.
5415 * linux-mips-low.c: Update.
5416 * lynx-low.c: Update.
5417 * mem-break.c: Update.
5418 * nto-low.c: Update.
5419 * remote-utils.c: Update.
5420 * server.c: Update.
5421 * spu-low.c: Update.
5422 * target.c: Update.
5423 * tracepoint.c: Update.
5424
f2907e49
TT
54252018-07-03 Tom Tromey <tom@tromey.com>
5426
5427 * linux-low.c: Update.
5428 * linux-ppc-low.c: Update.
5429 * linux-x86-low.c: Update.
5430 * proc-service.c: Update.
5431 * server.c: Update.
5432 * spu-low.c: Update.
5433 * thread-db.c: Update.
5434 * win32-low.c: Update.
5435
fd79271b
TT
54362018-07-03 Tom Tromey <tom@tromey.com>
5437
5438 * linux-low.c: Update.
5439 * lynx-low.c: Update.
5440 * nto-low.c: Update.
5441 * remote-utils.c: Update.
5442 * spu-low.c: Update.
5443 * thread-db.c: Update.
5444 * win32-low.c: Update.
5445
c0867626
SDJ
54462018-06-29 Joel Brobecker <brobecker@adacore.com>
5447
5448 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5449 parameter in call to 'amd64_create_target_description'.
5450
2512d7ef
JK
54512018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 * x86-tdesc.h: Remove executable permission flag.
5454
d0ac1c44
SM
54552018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5456
5457 * configure.ac: Remove AC_PREREQ, add missing quoting.
5458 * configure: Re-generate.
5459 * config.in: Re-generate.
5460 * aclocal.m4: Re-generate.
5461
c4eb05ff
SM
54622018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5463
5464 * tracepoint.h (current_traceframe): Remove declaration.
5465
02895270
AH
54662018-06-18 Alan Hayward <alan.hayward@arm.com>
5467
5468 * linux-aarch64-low.c (is_sve_tdesc): New function.
5469 (aarch64_sve_regs_copy_to_regcache): Likewise.
5470 (aarch64_sve_regs_copy_from_regcache): Likewise.
5471 (aarch64_regs_info): Add SVE checks.
5472 (initialize_low_arch): Initialize SVE.
5473
e9902bfc
AH
54742018-06-18 Alan Hayward <alan.hayward@arm.com>
5475
5476 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5477
fefa175e
AH
54782018-06-11 Alan Hayward <alan.hayward@arm.com>
5479
5480 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5481 (initialize_low_tracepoint): Likewise
5482 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5483 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5484 param.
5485 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5486 checks.
5487 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5488
b91ad3ff
AH
54892018-06-11 Alan Hayward <alan.hayward@arm.com>
5490
5491 * server.h (PBUFSIZ): Increase size
5492
f868386e
AH
54932018-06-11 Alan Hayward <alan.hayward@arm.com>
5494
5495 * regcache.c (regcache::raw_compare): New function.
5496 * regcache.h (regcache::raw_compare): New declaration.
5497
9c861883
AH
54982018-06-11 Alan Hayward <alan.hayward@arm.com>
5499
5500 * regcache.c (new_register_cache): Use new.
5501 (free_register_cache): Use delete.
5502 (register_data): Use const.
5503 (supply_register): Move body inside regcache.
5504 (regcache::raw_supply): New override function.
5505 (collect_register): Move body inside regcache.
5506 (regcache::raw_collect): New override function.
5507 (regcache::get_register_status): New override function.
5508 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5509
40591844
TT
55102018-06-09 Tom Tromey <tom@tromey.com>
5511
5512 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5513 declare queue.
5514 (event_queue): Use std::queue.
5515 (gdb_event_xfree): Remove.
5516 (initialize_event_loop, process_event, wait_for_event): Update.
5517
6341380d
SC
55182018-06-08 Stan Cox <scox@redhat.com>
5519
5520 * win32-low.c (win32_create_inferior): last_ptid and last_status
5521 moved to client_state.
5522
03349c93
PA
55232018-06-08 Pedro Alves <palves@redhat.com>
5524
5525 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5526 common/common-exceptions.o, common/common-utils.o,
5527 common/errors.o, common/print-utils.o and utils.o.
5528 * gdbreplay.c: Include "common-defs.h" instead of the two
5529 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5530 string.h or alloca.h.
5531 (perror_with_name): Delete.
5532 (remote_open): Use xstrdup instead of strdup.
5533 (main): Rename to ...
5534 (captured_main): ... this.
5535 (main): New.
5536
8dcc53b3
TT
55372018-06-08 Tom Tromey <tom@tromey.com>
5538
5539 * linux-low.c (linux_low_read_btrace): Update.
5540
c12a5089
SC
55412018-06-04 Stan Cox <scox@redhat.com>
5542
5543 * server.h (struct client_state): New.
5544 * server.c (cont_thread, general_thread, multi_process)
5545 (report_fork_events, report_vfork_events, report_exec_events)
5546 (report_thread_events, swbreak_feature, hwbreak_feature)
5547 (vCont_supported, disable_randomization, pass_signals)
5548 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5549 Moved to client_state.
5550 * remote-utils.c (remote_debug, noack_mode)
5551 (transport_is_reliable): Moved to client_state.
5552 * tracepoint.c (current_traceframe): Moved to client_state.
5553
5554 Update all callers.
5555 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5556 linux-low.c, remote-utils.h, target.c: Use client_state.
5557
122394f1
AH
55582018-05-31 Alan Hayward <alan.hayward@arm.com>
5559
5560 * configure.srv: Add new c/h file.
5561
95228a0d
AH
55622018-05-31 Alan Hayward <alan.hayward@arm.com>
5563
5564 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5565 null VQ.
5566
d8dab6c3
MR
55672018-05-25 Maciej W. Rozycki <macro@mips.com>
5568
5569 * gdb.arch/mips-fpregset-core.exp: New test.
5570 * gdb.arch/mips-fpregset-core.c: New test source.
5571
81e25b7c
EK
55722018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5573
5574 PR server/23198
5575 * hostio.c (require_int): Do not report overflow for integers
5576 between 0xfffffff and 0x7fffffff.
5577
7e947ad3
MR
55782018-05-22 Maciej W. Rozycki <macro@mips.com>
5579
5580 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5581 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5582 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5583 functions.
5584 (the_low_target): Wire them.
5585
1d75a658
PFC
55862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5587
5588 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5589 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5590 mode. Call collect_register_by_name with vscr using
5591 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5592 (ppc_store_vrregset): Add and set vscr_offset variable as in
5593 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5594 vscr_offset.
5595
d078308a
PFC
55962018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5597
5598 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5599 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5600 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5601
7273b5fc
PFC
56022018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5603
5604 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5605 (ppc_store_vsxregset): Likewise.
5606 (ppc_fill_vrregset): Likewise.
5607 (ppc_store_vrregset): Likewise.
5608 (ppc_fill_evrregset): Likewise.
5609 (ppc_store_evrregset): Likewise.
5610 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5611 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5612 needed.
5613
2e077f5e
PFC
56142018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5615
5616 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5617 wordsize of the inferior. Call ppc_linux_target_wordsize.
5618
bd64614e
PFC
56192018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5620
5621 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5622 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5623 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5624 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5625 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5626 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5627 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5628 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5629 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5630 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5631 (tdesc_powerpc_e500l): Remove.
5632 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5633 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5634 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5635 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5636 linux-ppc-tdesc.h.
5637 (ppc_arch_setup): Remove target description matching code. Fill a
5638 ppc_linux_features struct and call ppc_linux_match_description
5639 with it.
5640
75d74cca
MR
56412018-05-22 Maciej W. Rozycki <macro@mips.com>
5642
5643 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5644 width of the requested register exceeds the width of the
5645 `ptrace' data type.
5646 (mips_cannot_store_register): Likewise.
5647
e4439e43
MR
56482018-05-21 Maciej W. Rozycki <macro@mips.com>
5649
5650 * linux-mips-low.c (mips_fetch_register): New function. Update
5651 preceding comment.
5652 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5653 (the_low_target): Wire `mips_fetch_register'.
5654
55271bf9
JB
56552018-05-10 Joel Brobecker <brobecker@adacore.com>
5656
5657 * lynx-i386-low.c (LYNXOS_178): New macro.
5658 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5659 the layout on LynxOS-178.
5660 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5661 handle floating point registers that are not supported by
5662 LynxOS-178.
5663
1a34f210
TT
56642018-05-10 Tom Tromey <tom@tromey.com>
5665
5666 * configure: Rebuild.
5667
190852c8
JB
56682018-05-10 Joel Brobecker <brobecker@adacore.com>
5669
5670 PR server/23158:
5671 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5672 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5673 Use it to set the expedite_regs field in the given tdesc.
5674 * x86-tdesc.h: New file.
5675 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5676 Adjust following the addition of the new expedite_regs parameter
5677 to init_target_desc.
5678 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5679 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5680 (i386_linux_read_description, amd64_linux_read_description):
5681 Adjust following the addition of the new expedite_regs parameter
5682 to init_target_desc.
5683 * lynx-i386-low.c: #include "x86-tdesc.h".
5684 (lynx_i386_arch_setup): Adjust following the addition of the new
5685 expedite_regs parameter to init_target_desc.
5686 * nto-x86-low.c: #include "x86-tdesc.h".
5687 (nto_x86_arch_setup): Adjust following the addition of the new
5688 expedite_regs parameter to init_target_desc.
5689 * win32-i386-low.c: #include "x86-tdesc.h".
5690 (i386_arch_setup): Adjust following the addition of the new
5691 expedite_regs parameter to init_target_desc.
5692
7dbac825
JB
56932018-05-10 Joel Brobecker <brobecker@adacore.com>
5694
5695 PR server/23158:
5696 * win32-low.c (win32_create_inferior): Add call to my_wait
5697 setting last_status global.
5698
906994d9
JB
56992018-05-10 Joel Brobecker <brobecker@adacore.com>
5700
5701 PR server/23158:
5702 * win32-low.c (create_process): Only call gdb_tilde_expand if
5703 inferior_cwd is not NULL.
5704
8ee22052
AB
57052018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5706
5707 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5708 registers to the cache if their values have changed.
5709 (i387_xsave_to_cache): Provide default values for x87 control
5710 registers when these features are available, but disabled.
5711 * regcache.c (supply_register_by_name_zeroed): New function.
5712 * regcache.h (supply_register_by_name_zeroed): Declare new
5713 function.
5714
aff689d3
TT
57152018-05-07 Tom Tromey <tom@tromey.com>
5716
5717 * configure: Rebuild.
5718
85e26832
TT
57192018-05-04 Tom Tromey <tom@tromey.com>
5720
5721 * configure: Rebuild.
5722
a3b60e45
JK
57232018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5724 Pedro Alves <palves@redhat.com>
5725
5726 * linux-aarch64-low.c (aarch64_stopped_data_address):
5727 Likewise.
5728
632e107b
TT
57292018-04-27 Tom Tromey <tom@tromey.com>
5730
5731 * configure: Rebuild.
5732
458412c3
TT
57332018-04-23 Tom Tromey <tom@tromey.com>
5734
5735 * configure: Rebuild.
5736
f31c089e
SM
57372018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5738
5739 * Makefile.in (depcomp): Add "..".
5740 (all_deps_files): New and use it.
5741
b319b098
AH
57422018-04-18 Alan Hayward <alan.hayward@arm.com>
5743
5744 * configure.srv (aarch64*-*-linux*): Don't include xml.
5745 (i[34567]86-*-cygwin*): Likewise.
5746 (i[34567]86-*-linux*): Likewise.
5747 (i[34567]86-*-lynxos*): Likewise.
5748 (i[34567]86-*-mingw32ce*): Likewise.
5749 (i[34567]86-*-mingw*): Likewise.
5750 (i[34567]86-*-nto*): Likewise.
5751 (tic6x-*-uclinux): Likewise.
5752 (x86_64-*-linux*): Likewise.
5753 (x86_64-*-mingw*): Likewise.
5754 (x86_64-*-cygwin*): Likewise.
5755
3b74854b
AH
57562018-04-18 Alan Hayward <alan.hayward@arm.com>
5757
5758 * tdesc.c: Remove xml parameter.
5759
e98577a9
AH
57602018-04-18 Alan Hayward <alan.hayward@arm.com>
5761
5762 * server.c (get_features_xml): Remove cast.
5763 * tdesc.c (void target_desc::accept): Fill in function.
5764 (tdesc_get_features_xml): Remove old xml creation.
5765 (print_xml_feature::visit_pre): Add xml vistor.
5766 * tdesc.h (struct target_desc): Make xmltarget mutable.
5767 (tdesc_get_features_xml): Remove declaration.
5768
d278f585
AH
57692018-04-18 Alan Hayward <alan.hayward@arm.com>
5770
5771 * tdesc.c (tdesc_architecture_name): Add new function.
5772 (tdesc_osabi_name): Likewise.
5773 (tdesc_get_features_xml): Use new functions.
5774
eee8a18d
AH
57752018-04-18 Alan Hayward <alan.hayward@arm.com>
5776
5777 * tdesc.c (tdesc_create_flags): Remove.
5778 (tdesc_add_flag): Likewise.
5779 (tdesc_named_type): Likewise.
5780 (tdesc_create_union): Likewise.
5781 (tdesc_create_struct): Likewise.
5782 (tdesc_create_vector): Likewise.
5783 (tdesc_add_bitfield): Likewise.
5784 (tdesc_add_field): Likewise.
5785 (tdesc_set_struct_size): Likewise.
5786
82ec9bc7
AH
57872018-04-18 Alan Hayward <alan.hayward@arm.com>
5788
5789 * tdesc.c (~target_desc): Remove implictly deleted items.
5790 (init_target_desc): Iterate all features.
5791 (tdesc_get_features_xml): Use vector.
5792 (tdesc_create_feature): Create feature.
5793 * tdesc.h (tdesc_feature) Remove
5794 (target_desc): Add features.
5795
ea3e7d71
AH
57962018-04-18 Alan Hayward <alan.hayward@arm.com>
5797
5798 * Makefile.in: Add common/tdesc.c
5799 * tdesc.c (init_target_desc): init all reg_defs from register
5800 vector.
5801 (tdesc_create_reg): Create tdesc_reg.
5802 * tdesc.h (tdesc_feature): Add register vector.
5803
17d08cd4
SM
58042018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5805
5806 * tdesc.h (struct target_desc) <features>: Change type to
5807 std::vector<std::string>.
5808 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5809 changes.
5810 (tdesc_get_features_xml): Likewise.
5811 (tdesc_create_feature): Likewise.
5812
5cd3e386
AH
58132018-03-26 Alan Hayward <alan.hayward@arm.com>
5814
5815 * regcache.c (find_register_by_number): Return a ref.
5816 (find_regno): Use references.
5817 (register_size): Likewise.
5818 (register_data): Likewise.
5819 * tdesc.c (target_desc::~target_desc): Remove free calls.
5820 (target_desc::operator==): Use std::vector compare.
5821 (init_target_desc): Use reference.
5822 (tdesc_create_reg): Use reg constructors.
5823 * tdesc.h (struct target_desc): Replace pointer with object.
5824
dff7492c
AH
58252018-03-23 Alan Hayward <alan.hayward@arm.com>
5826
5827 * regcache.c (find_register_by_number): Make static.
5828 (find_regno): Use find_register_by_number
5829 * regcache.h (struct reg): Remove declaration.
5830
d80e5242
AH
58312018-03-23 Alan Hayward <alan.hayward@arm.com>
5832
5833 * tdesc.c (target_desc::~target_desc): Move to here.
5834 (target_desc::operator==): Likewise.
5835 * tdesc.h (target_desc::~target_desc): Move from here.
5836 (target_desc::operator==): Likewise.
5837
f69c5afb
AA
58382018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5839
5840 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5841
ce29f843
AA
58422018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5843
5844 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5845 S390_TDESC_GS.
5846 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5847 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5848 and init_registers_s390_gs_linux64.
5849
c49bd90b
AA
58502018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5851
5852 * linux-s390-low.c (s390_fill_gs): Remove function.
5853 (s390_fill_gsbc): Remove function.
5854 (s390_regsets): Set fill functions for the guarded storage regsets
5855 to NULL.
5856
7edb9bd3
AA
58572018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5858
5859 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5860 the word size. Add comment.
5861 (s390_get_wordsize): New function.
5862 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5863 pswm with it. Instead, use s390_get_wordsize to determine the
5864 word size first and derive the correct tdesc from that directly.
5865
39be3c7e
SM
58662018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5867
5868 * Makefile.in: Include silent-rules.mk.
5869 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5870 (COMPILE): Add ECHO_CXX.
5871 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5872 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5873 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5874 (version-generated.c): Add ECHO_GEN.
5875 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5876 (IPAGENT_COMPILE): Add ECHO_CXX.
5877 (%-generated.c): Add ECHO_REGDAT.
5878
3ae9ce5d
TT
58792018-03-14 Tom Tromey <tom@tromey.com>
5880
5881 PR cli/14977:
5882 * ax.c (ax_printf): Special case for NULL.
5883
e6a58aa8
SM
58842018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5885
5886 * linux-low.c (linux_qxfer_libraries_svr4): Use
5887 xml_escape_text_append.
5888
f6e8a41e
SM
58892018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5892
b9671caf
SM
58932018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5894
5895 * server.c (handle_general_set): Remove unnecessary xstrdup.
5896
e80aaf61
SM
58972018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5898
5899 * server.c (parse_debug_format_options): Adjust to
5900 delim_string_to_char_ptr_vec changes.
5901 * thread-db.c (thread_db_load_search): Adjust to
5902 dirnames_to_char_ptr_vec changes.
5903
b1223e78
MM
59042018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5905
5906 * target.h (target_enable_btrace, target_disable_btrace)
5907 (target_read_btrace, target_read_btrace_conf): Turn macro into
5908 inline function. Throw error if target method is not defined.
5909 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5910 check for btrace target method. Be prepared to handle exceptions
5911 from btrace target methods.
5912
81561546
SDJ
59132018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5914
5915 * server.c (captured_main): Change order of error message printed
5916 when the current working directory cannot be found.
5917
25e3c82c
SDJ
59182018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5919
5920 * server.c: Include "filenames.h" and "pathstuff.h".
5921 (program_name): Delete variable.
5922 (program_path): New anonymous class.
5923 (get_exec_wrapper): Use "program_path" instead of
5924 "program_name".
5925 (handle_v_run): Likewise.
5926 (captured_main): Likewise.
5927 (process_serial_event): Likewise.
5928
b4987c95
SDJ
59292018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5930
5931 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5932 (OBJS): Add "pathstuff.o".
5933 * server.c (current_directory): New global variable.
5934 (captured_main): Initialize "current_directory".
5935
f46cd62a
AH
59362018-02-26 Alan Hayward <alan.hayward@arm.com>
5937
5938 * tdesc.c: Use common/tdesc.h.
5939 * tdesc.h: Likewise.
5940
a543c5ca
AH
59412018-02-20 Alan Hayward <alan.hayward@arm.com>
5942 Simon Marchi <simon.marchi@ericsson.com>
5943
5944 * Makefile.in: Switch order of make rules.
5945
b5884fa7
AH
59462018-02-19 Alan Hayward <alan.hayward@arm.com>
5947
5948 * Makefile.in: Add common directory in build.
5949 * configure.ac: Add common reference.
5950 * configure: Regenerate.
5951
de6242d3
MM
59522018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5953
5954 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5955 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5956 * spu-low.c (spu_target_ops): Likewise.
5957 * win32-low.c (win32_target_ops): Likewise.
5958 * server.c (supported_btrace_packets): Report packets unconditionally.
5959 * target.h (target_ops) <supports_btrace>: Remove.
5960 (target_supports_btrace): Remove.
5961
9ee23a85
MM
59622018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5963
5964 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5965 (handle_btrace_disable): Change return type to void. Use exceptions
5966 to report errors.
5967 (handle_btrace_general_set): Catch exception and copy message to
5968 return message.
5969
8ce47547
TT
59702018-02-08 Tom Tromey <tom@tromey.com>
5971
5972 * linux-low.c (install_software_single_step_breakpoints): Use
5973 make_scoped_restore.
5974 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5975 (do_restore_current_thread_cleanup): Remove.
5976 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5977 declare.
5978
45dd3607
TT
59792018-02-08 Tom Tromey <tom@tromey.com>
5980
5981 * mem-break.c (set_raw_breakpoint_at): Use
5982 gdb::unique_xmalloc_ptr.
5983
e671cd59
PA
59842018-01-30 Pedro Alves <palves@redhat.com>
5985
5986 PR gdb/13211
5987 * target.c (target_terminal::terminal_state): Rename to ...
5988 (target_terminal::m_terminal_state): ... this.
5989
a0aad537
JC
59902018-01-19 James Clarke <jrtc27@jrtc27.com>
5991
5992 * linux-low.c (handle_extended_wait): Surround call to
5993 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5994
4d9b86e1
SM
59952018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5996
5997 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5998 linux_ptrace_attach_fail_reason_string now returning an
5999 std::string.
6000 (linux_attach): Likewise.
6001 * thread-db.c (attach_thread): Likewise.
6002
f517c180
EA
60032018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6004
6005 PR gdb/21559
6006 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6007 checking for fs_base/gs_base fields in struct user_regs_struct.
6008 * configure: Regenerate.
6009
9a70f35c
YQ
60102018-01-16 Yao Qi <yao.qi@linaro.org>
6011
6012 PR gdb/18749
6013 * linux-low.c (fetch_register): Call supply_register instead of
6014 error.
6015
605fd3c6
YQ
60162018-01-08 Yao Qi <yao.qi@linaro.org>
6017 Simon Marchi <simon.marchi@ericsson.com>
6018
6019 * Makefile.in (OBS): Remove selftest.o.
6020 * configure.ac: Set srv_selftest_objs if $development is true.
6021 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6022 * configure: Re-generated.
6023 * server.c (captured_main): Wrap variable selftest_filter with
6024 GDB_SELF_TEST.
6025
2cc05030
SM
60262018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * server.c (parse_debug_format_options): Return std::string.
6029 (handle_monitor_command, captured_main): Adjust.
6030
e379cee6
PA
60312018-01-05 Pedro Alves <palves@redhat.com>
6032
6033 PR gdb/18653
6034 * server.c (captured_main): Pass quiet=false to
6035 save_original_signals_state.
6036
82e1e79a
JB
60372018-01-01 Joel Brobecker <brobecker@adacore.com>
6038
6039 * gdbreplay.c (gdbreplay_version): Update copyright year in
6040 version message.
6041 * server.c (gdbserver_version): Likewise.
6042
8e481c3b
TT
60432017-12-08 Tom Tromey <tom@tromey.com>
6044
6045 * ax.c (ax_printf): Update.
6046
a8806230
YQ
60472017-12-07 Yao Qi <yao.qi@linaro.org>
6048
6049 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6050 aarch64_linux_read_description.
6051 * linux-amd64-ipa.c (idx2mask): New array.
6052 (get_ipa_tdesc): Move idx2mask out.
6053 (initialize_low_tracepoint): Initialize target descriptions.
6054 * linux-i386-ipa.c (idx2mask): New array.
6055 (get_ipa_tdesc): Move idx2mask out.
6056 (initialize_low_tracepoint): Initialize target descriptions.
6057
d4a0e8b5
SM
60582017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6059
6060 * tdesc.c (struct tdesc_type): Change return type.
6061 (tdesc_add_flag): Change parameter type.
6062 (tdesc_add_bitfield): Likewise.
6063 (tdesc_add_field): Likewise.
6064 (tdesc_set_struct_size): Likewise.
6065
798a7429
SM
60662017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6067
6068 * regcache.c (registers_to_string): Remove unused variable.
6069
c0e15c9b
SM
60702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * inferiors.c (for_each_inferior_with_data): Remove.
6073 * inferiors.h (for_each_inferior_with_data): Remove.
6074 * server.c (handle_qxfer_threads_worker): Change parameter type.
6075 (handle_qxfer_threads_proper): Use for_each_thread.
6076
f0045347
SM
60772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6078
6079 * inferiors.c (for_each_inferior): Remove.
6080 (clear_inferiors): Use for_each_thread.
6081 * inferiors.h (for_each_inferior): Remove.
6082 * linux-low.c (linux_wait_for_event_filtered): Use
6083 for_each_thread.
6084 (linux_stabilize_threads): Likewise.
6085 * regcache.c (regcache_release): Likewise.
6086 * server.c (gdb_wants_all_threads_stopped): Likewise.
6087 (clear_pending_status_callback): Remove.
6088 (handle_status): Use for_each_thread.
6089 (captured_main): Likewise.
6090 * win32-low.c (child_init_thread_list): Likewise.
6091 (win32_clear_inferiors): Likewise.
6092 (fake_breakpoint_event): Likewise.
6093
9521758b
SM
60942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 * inferiors.h (find_inferior): Remove.
6097 * inferiors.c (find_inferior): Remove.
6098
8f86d7aa
SM
60992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6100
6101 * linux-low.c (resume_status_pending_p): Update comment.
6102 (need_step_over_p): Update comment.
6103
e2b44075
SM
61042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6105
6106 * linux-low.c (proceed_one_lwp): Return void, change parameter
6107 type.
6108 (unsuspend_and_proceed_one_lwp): Likewise.
6109 (proceed_all_lwps): Use for_each_thread.
6110 (unstop_all_lwps): Likewise.
6111
c80825ff
SM
61122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * linux-low.c (linux_resume_one_thread): Return void, take
6115 parameter directly.
6116 (linux_resume): Use for_each_thread.
6117
df3e4dbe
SM
61182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6119
6120 * linux-low.c (send_sigstop_callback): Return void, change
6121 parameter type. Rename to...
6122 (send_sigstop): ... this.
6123 (suspend_and_send_sigstop_callback): Return void, change parameter
6124 type. Rename to...
6125 (suspend_and_send_sigstop): ... this.
6126 (stop_all_lwps): Use for_each_thread.
6127
5a6b0a41
SM
61282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * linux-low.c (lwp_running): Return bool, remove unused
6131 argument.
6132 (linux_stabilize_threads): Use find_thread.
6133
39a64da5
SM
61342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6135
6136 * linux-low.c (select_singlestep_lwp_callback): Remove.
6137 (count_events_callback): Remove.
6138 (select_event_lwp_callback): Remove.
6139 (select_event_lwp): Use find_thread/for_each_thread.
6140
a1385b7b
SM
61412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * linux-low.c (not_stopped_callback): Return bool, take filter
6144 argument directly.
6145 (linux_wait_for_event_filtered): Use find_thread.
6146 (linux_wait_1): Likewise.
6147
454296a2
SM
61482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6149
6150 * linux-low.c (same_lwp): Remove.
6151 (find_lwp_pid): Use find_thread.
6152
6b2a85da
SM
61532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6154
6155 * linux-low.c (delete_lwp_callback): Remove.
6156 (linux_mourn): Use for_each_thread.
6157
798a38e8
SM
61582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6159
6160 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6161 args parameter, don't check for pid.
6162 (linux_detach): Use for_each_thread.
6163
e4eb0dec
SM
61642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6165
6166 * linux-low.c (struct counter): Remove.
6167 (second_thread_of_pid_p): Remove.
6168 (last_thread_of_process_p): Use find_thread.
6169
83e1b6c1
SM
61702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * inferiors.c (find_inferior_in_random): Remove.
6173 * inferiors.h (find_inferior_in_random): Remove.
6174 * linux-low.c (status_pending_p_callback): Return bool, accept
6175 parameter ptid directly.
6176 (linux_wait_for_event_filtered): Use find_thread_in_random.
6177 (linux_wait_1): Likewise.
6178
8dc7b443
SM
61792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * inferiors.c (find_inferior_id): Remove.
6182 (find_thread_ptid): Move implemention from find_inferior_id to
6183 here.
6184 * inferiors.h (find_inferior_id): Remove.
6185 * server.c (handle_status): Use find_thread_ptid.
6186 (process_serial_event): Likewise.
6187 * thread-db.c (find_one_thread): Likewise.
6188 (thread_db_thread_handle): Likewise.
6189 * win32-low.c (thread_rec): Likewise.
6190 (child_delete_thread): Likewise.
6191 (win32_thread_alive): Likewise.
6192 (get_child_debug_event): Likewise.
6193
da25033c
SM
61942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6195
6196 * linux-mips-low.c (update_watch_registers_callback): Return
6197 void, remove pid_p parameter, don't check for pid.
6198 (mips_insert_point, mips_remove_point): Use for_each_thread.
6199
c91bb56b
SM
62002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6201
6202 * lynx.low (lynx_delete_thread_callback): Remove.
6203 (lynx_mourn): Use for_each_thread.
6204
634a3254
SM
62052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6206
6207 * regcache.c (regcache_invalidate_one): Remove.
6208 (regcache_invalidate_pid): use for_each_thread.
6209
41272101
TT
62102017-11-26 Tom Tromey <tom@tromey.com>
6211
6212 * linux-low.c (linux_create_inferior): Update.
6213
f5291a6f
UW
62142017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6215
6216 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6217
6654d750
AH
62182017-11-24 Alan Hayward <alan.hayward@arm.com>
6219
6220 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6221 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6222 * linux-aarch64-tdesc-selftest.c: New file.
6223 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6224
62252017-11-24 Alan Hayward <alan.hayward@arm.com>
6226
6227 * configure.srv: Add new file.
6228 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6229 * linux-aarch64-tdesc-selftest.c: New file.
6230 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6231
49bdb7ee
AH
62322017-11-24 Alan Hayward <alan.hayward@arm.com>
6233
6234 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6235 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6236 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6237
d6d7ce56
AH
62382017-11-24 Alan Hayward <alan.hayward@arm.com>
6239
6240 * configure.srv: Add new files.
6241 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6242 aarch64_linux_read_description.
6243 * linux-aarch64-low.c (aarch64_linux_read_description):
6244 Merge with aarch64_arch_setup.
6245 (aarch64_arch_setup): Call aarch64_linux_read_description.
6246 * linux-aarch64-tdesc.c: New file.
6247 * linux-aarch64-tdesc.h: New file.
6248
506fe5f4
YQ
62492017-11-24 Yao Qi <yao.qi@linaro.org>
6250
6251 * configure.srv: Set $srv_regobj for tic6x-linux.
6252 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6253 (tic6x_read_description): Move some code to tic6x_arch_setup.
6254 (tic6x_tdesc_test): New function.
6255 (initialize_low_arch): Call selftests::register_test.
6256
29f9a567
YQ
62572017-11-22 Yao Qi <yao.qi@linaro.org>
6258
6259 * remote-utils.c (prepare_resume_reply): Use memcpy.
6260
578290ec
SM
62612017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6262
6263 * linux-low.c (kill_one_lwp_callback): Return void, take
6264 argument directly, don't filter on pid.
6265 (linux_kill): Use for_each_thread.
6266
eca55aec
SM
62672017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6268
6269 * linux-low.c (need_step_over_p): Return bool, remove dummy
6270 argument.
6271 (linux_resume, proceed_all_lwps): Use find_thread.
6272
25c28b4d
SM
62732017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6274
6275 * linux-low.c (resume_status_pending_p): Return bool, remove
6276 flag_p argument.
6277 (linux_resume): Use find_thread.
6278
5fdda392
SM
62792017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6280
6281 * linux-low.c (struct thread_resume_array): Remove.
6282 (linux_set_resume_request): Return void, take arguments
6283 directly.
6284 (linux_resume): Use for_each_thread.
6285
fcb056a5
SM
62862017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6287
6288 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6289 return bool, remove data argument.
6290 (linux_stabilize_threads): Use find_thread.
6291
139720c5
SM
62922017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6293
6294 * linux-low.c (unsuspend_one_lwp): Remove.
6295 (unsuspend_all_lwps): Use for_each_thread, inline code from
6296 unsuspend_one_lwp.
6297
6d1e5673
SM
62982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6299
6300 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6301 * linux-low.c (struct iterate_over_lwps_args): Remove.
6302 (iterate_over_lwps_filter): Remove.
6303 (iterate_over_lwps): Use find_thread.
6304
bbf550d5
SM
63052017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6306
6307 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6308 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6309 code from reset_lwp_ptrace_options_callback.
6310
00192f77
SM
63112017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6312
6313 * linux-arm-low.c (struct update_registers_data): Remove.
6314 (update_registers_callback): Return void, take arguments
6315 directly, don't check thread's pid.
6316 (arm_insert_point, arm_remove_point): Use for_each_thread.
6317
2bee2b6c
SM
63182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6319
6320 * win32-low.c (continue_one_thread): Return void, take argument
6321 directly.
6322 (child_continue): Use for_each_thread.
6323
0b360f19
SM
63242017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6325
6326 * win32-i386-low.c (update_debug_registers_callback): Rename
6327 to ...
6328 (update_debug_registers): ... this, return void, remove pid_p arg.
6329 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6330
f27866ba
SM
63312017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * inferiors.h (struct process_info): Add constructor, initialize
6334 fields..
6335 <syscalls_to_catch>: Change type to std::vector<int>.
6336 * inferiors.c (add_process): Allocate process_info with new.
6337 (remove_process): Free process_info with delete.
6338 * linux-low.c (handle_extended_wait): Adjust.
6339 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6340 * server.c (handle_general_set): Adjust.
6341
e849ea89
PA
63422017-11-16 Pedro Alves <palves@redhat.com>
6343
6344 * remote-utils.c (remote_close): Block SIGIO signals instead of
6345 uninstalling the SIGIO handler.
6346
1d0aa65c
AH
63472017-11-16 Alan Hayward <alan.hayward@arm.com>
6348
6349 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6350
3491a34c
YQ
63512017-11-16 Yao Qi <yao.qi@linaro.org>
6352
6353 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6354 (tic6x_store_gregset): Likewise.
6355 (tic6x_usrregs_info): Move it up.
6356
a602f924
AH
63572017-11-15 Alan Hayward <alan.hayward@arm.com>
6358
6359 * Makefile.in: Update arch rules.
6360 * configure.srv: Explicitly mark arch/ files.
6361
5616b6c3
AS
63622017-11-13 Andreas Schwab <schwab@suse.de>
6363
6364 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6365 function.
6366 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6367
d1928160
PA
63682017-11-06 Pedro Alves <palves@redhat.com>
6369
6370 * config.in, configure: Regenerate.
6371
bac608e7
SM
63722017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6373
6374 * target.c (struct thread_search): Remove.
6375 (thread_search_callback): Remove.
6376 (prepare_to_access_memory): Use for_each_thread instead of
6377 find_inferior. Inline code from thread_search_callback.
6378
eaddb425
SM
63792017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6380
6381 * server.c (struct visit_actioned_threads_data): Remove.
6382 (visit_actioned_threads): Change prototype to take arguments
6383 directly.
6384 (resume): Use find_thread instead of find_inferior.
6385
99078d34
SM
63862017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6387
6388 * server.c (queue_stop_reply_callback): Change prototype, return
6389 void.
6390 (find_status_pending_thread_callback): Remove.
6391 (handle_status): Replace find_inferior with find_thread and
6392 for_each_thread.
6393
cc628f3d
AH
63942017-10-25 Alan Hayward <alan.hayward@arm.com>
6395
6396 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6397 with REGNO.
6398 (aarch64_store_gregset): Likewise.
6399 (aarch64_fill_fpregset): Likewise.
6400 (aarch64_store_fpregset): Likewise.
6401
4d3bb80e
SM
64022017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6403
6404 * gdbthread.h (find_thread, for_each_thread): New functions.
6405 * inferiors.c (thread_of_pid): Remove.
6406 (find_any_thread_of_pid): Use find_thread.
6407 * linux-low.c (num_lwps): Use for_each_thread.
6408
7a7cdfa0
YQ
64092017-10-17 Yao Qi <yao.qi@linaro.org>
6410
6411 * Makefile.in: Remove one rule.
6412 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6413
e675d170
YQ
64142017-10-17 Yao Qi <yao.qi@linaro.org>
6415
6416 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6417 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6418
7eb4e0f9
YQ
64192017-10-17 Yao Qi <yao.qi@linaro.org>
6420
6421 * configure.srv: Rename arm.o with arch/arm.o.
6422
60d6cfc9
YQ
64232017-10-17 Yao Qi <yao.qi@linaro.org>
6424
6425 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6426 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6427 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6428 (arch-i386.o, arch-amd64.o): Remove rules.
6429 (arch/%.o): New rule.
6430 Update POSTCOMPILE and COMPILE.pre.
6431 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6432 * configure: Re-generated.
6433 * configure.srv: Replace arch-i386.o with arch/i386.o.
6434 Replace arch-amd64.o with arch/amd64.o.
6435
5bfda255
YQ
64362017-10-16 Yao Qi <yao.qi@linaro.org>
6437
6438 * configure: Regenerated.
6439
9c80ecd6
SM
64402017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6441
6442 * inferiors.h: (struct inferior_list): Remove.
6443 (struct inferior_list_entry); Remove.
6444 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6445 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6446 get_first_inferior): Remove.
6447 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6448 find_inferior_id, find_inferior_in_random): Change signature.
6449 * inferiors.c (all_threads): Change type to
6450 std::list<thread_info *>.
6451 (get_thread): Remove macro.
6452 (find_inferior, find_inferior_id): Change signature, implement
6453 using find_thread.
6454 (find_inferior_in_random): Change signature, implement using
6455 find_thread_in_random.
6456 (for_each_inferior, for_each_inferior_with_data): Change
6457 signature, implement using for_each_thread.
6458 (add_inferior_to_list, remove_inferior): Remove.
6459 (add_thread, get_first_thread, thread_of_pid,
6460 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6461 (get_first_inferior, one_inferior_p, clear_inferior_list):
6462 Remove.
6463 (clear_inferiors, get_thread_process): Update.
6464 * gdbthread.h: Include <list>.
6465 (struct thread_info) <entry>: Remove field.
6466 <id>: New field.
6467 (all_threads): Change type to std::list<thread_info *>.
6468 (get_first_inferior): Add doc.
6469 (find_thread, for_each_thread, find_thread_in_random): New
6470 functions.
6471 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6472 * linux-arm-low.c (update_registers_callback): Update.
6473 * linux-low.c (second_thread_of_pid_p): Update.
6474 (kill_one_lwp_callback, linux_detach_lwp_callback,
6475 delete_lwp_callback, status_pending_p_callback, same_lwp,
6476 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6477 iterate_over_lwps, not_stopped_callback,
6478 resume_stopped_resumed_lwps, count_events_callback,
6479 select_singlestep_lwp_callback, select_event_lwp_callback,
6480 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6481 suspend_and_send_sigstop_callback, wait_for_sigstop,
6482 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6483 lwp_running, linux_set_resume_request, resume_status_pending_p,
6484 need_step_over_p, start_step_over, linux_resume_one_thread,
6485 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6486 reset_lwp_ptrace_options_callback): Update.
6487 * linux-mips-low.c (update_watch_registers_callback): Update.
6488 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6489 Update.
6490 (free_register_cache_thread_one): Remove.
6491 (regcache_release): Update.
6492 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6493 handle_qxfer_threads_worker): Update.
6494 (handle_query): Update, use list iterator.
6495 (visit_actioned_threads, handle_pending_status,
6496 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6497 clear_pending_status_callback, set_pending_status_callback,
6498 find_status_pending_thread_callback, handle_status,
6499 process_serial_event): Update.
6500 * target.c (thread_search_callback): Update.
6501 * thread-db.c (thread_db_get_tls_address): Update.
6502 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6503 Update.
6504 * win32-i386-low.c (update_debug_registers_callback): Update.
6505 * win32-low.c (delete_thread_info, child_delete_thread,
6506 continue_one_thread, suspend_one_thread,
6507 get_child_debug_event): Adjust.
6508
9179355e
SM
65092017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6512 * inferiors.h: Include <list>.
6513 (struct process_info) <entry>: Remove field.
6514 <pid>: New field.
6515 (pid_of): Change macro to function.
6516 (ptid_of, lwpid_of): Remove macro.
6517 (all_processes): Change type to std::list<process_info *>.
6518 (ALL_PROCESSES): Remove macro.
6519 (for_each_process, find_process): New function.
6520 * inferiors.c (all_processes): Change type to
6521 std::list<process_info *>.
6522 (find_thread_process): Adjust.
6523 (add_process): Likewise.
6524 (remove_process): Likewise.
6525 (find_process_pid): Likewise.
6526 (get_first_process): Likewise.
6527 (started_inferior_callback): Remove.
6528 (have_started_inferiors_p): Adjust.
6529 (attached_inferior_callback): Remove.
6530 (have_attached_inferiors_p): Adjust.
6531 * linux-low.c (check_zombie_leaders): Likewise.
6532 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6533 (x86_linux_update_xmltarget): Adjust.
6534 * server.c (handle_query): Likewise.
6535 (gdb_reattached_process): Remove.
6536 (handle_status): Adjust.
6537 (kill_inferior_callback): Likewise.
6538 (detach_or_kill_inferior): Remove.
6539 (print_started_pid): Likewise.
6540 (print_attached_pid): Likewise.
6541 (detach_or_kill_for_exit): Update.
6542 (process_serial_event): Likewise.
6543 * linux-arm-low.c (arm_new_fork): Likewise.
6544
c9cb8905
SM
65452017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6546
6547 * dll.h: Include <list>.
6548 (struct dll_info): Add constructor.
6549 <entry>: Remove field.
6550 (all_dlls): Change type to std::list<dll_info>.
6551 * dll.c: Include <algorithm>.
6552 (get_dll): Remove macro.
6553 (all_dlls): Change type to std::list<dll_info *>.
6554 (free_one_dll): Remove.
6555 (match_dll): Likewise.
6556 (loaded_dll): Adjust.
6557 (unloaded_dll): Adjust to all_dlls type change, use
6558 std::find_if. Inline code from match_dll.
6559 (clear_dlls): Adjust to all_dlls type change.
6560 * server.c (emit_dll_description): Remove.
6561 (handle_qxfer_libraries): Adjust to all_dlls type change,
6562 integrate emit_dll_description's functionality.
6563
04ec7890
SM
65642017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6565
6566 * linux-low.h (struct linux_target_ops) <delete_process>: New
6567 field.
6568 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6569 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6570 (struct linux_target_ops): Add delete_process callback.
6571 * linux-arm-low.c (arm_delete_process): New.
6572 (struct linux_target_ops): Add delete_process callback.
6573 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6574 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6575 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6576 * linux-mips-low.c (mips_linux_delete_process): New.
6577 (struct linux_target_ops): Add delete_process callback.
6578 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6579 * linux-s390-low.c (struct linux_target_ops): Likewise.
6580 * linux-sh-low.c (struct linux_target_ops): Likewise.
6581 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6582 * linux-tile-low.c (struct linux_target_ops): Likewise.
6583 * linux-x86-low.c (x86_linux_delete_process): New.
6584 (struct linux_target_ops): Add delete_process callback.
6585 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6586
466eecee
SM
65872017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6588
6589 * linux-aarch64-low.c (the_low_target): Add thread delete
6590 callback.
6591 * linux-arm-low.c (arm_delete_thread): New function.
6592 (the_low_target): Add thread delete callback.
6593 * linux-bfin-low.c (the_low_target): Likewise.
6594 * linux-crisv32-low.c (the_low_target): Likewise.
6595 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6596 set.
6597 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6598 field.
6599 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6600 * linux-mips-low.c (mips_linux_delete_thread): New function.
6601 (the_low_target): Add thread delete callback.
6602 * linux-ppc-low.c (the_low_target): Likewise.
6603 * linux-s390-low.c (the_low_target): Likewise.
6604 * linux-sh-low.c (the_low_target): Likewise.
6605 * linux-tic6x-low.c (the_low_target): Likewise.
6606 * linux-tile-low.c (the_low_target): Likewise.
6607 * linux-x86-low.c (the_low_target): Likewise.
6608 * linux-xtensa-low.c (the_low_target): Likewise.
6609
b79f7801
YZ
66102017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6611
6612 * win32-low.c: Include "common-inferior.h".
6613
bc3b087d
SDJ
66142017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6615
6616 * inferiors.c (set_inferior_cwd): New function.
6617 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6618 (handle_query): Inform that QSetWorkingDir is supported.
6619 * win32-low.c (create_process): Pass the inferior's cwd to
6620 CreateProcess.
6621
d092c5a2
SDJ
66222017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6623
6624 * inferiors.c (current_inferior_cwd): New global variable.
6625 (get_inferior_cwd): New function.
6626 * inferiors.h (struct process_info) <cwd>: New field.
6627
7da0a886
SDJ
66282017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6629
6630 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6631 (OBS): Add gdb_tilde_expand.o.
6632
289a6840
SM
66332017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6634
6635 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6636 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6637
256642e8
PA
66382017-09-29 Pedro Alves <palves@redhat.com>
6639
6640 * ax.c (gdb_parse_agent_expr): Constify.
6641 * ax.h (gdb_parse_agent_expr): Constify.
6642 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6643 Constify.
6644 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6645 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6646 * remote-utils.h (read_ptid): Constify.
6647 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6648 (process_point_options, process_serial_event): Constify.
6649 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6650 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6651 (cmd_qtbuffer): Constify.
6652
5b9ca4d4
PA
66532017-09-29 Pedro Alves <palves@redhat.com>
6654
6655 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6656 fails.
6657
94c207e0
PA
66582017-09-29 Pedro Alves <palves@redhat.com>
6659
6660 * linux-low.c (handle_extended_wait): Pass parent thread instead
6661 of process to thread_db_notice_clone.
6662 * linux-low.h (thread_db_notice_clone): Replace parent process
6663 parameter with parent thread parameter.
6664 * thread-db.c (find_one_thread): Add comment.
6665 (thread_db_notice_clone): Replace parent process parameter with
6666 parent thread parameter. Temporarily switch to the parent thread.
6667
75352e28
SDJ
66682017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6669
6670 * gdbthread.h: Include "common-gdbthread.h".
6671 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6672 "if" when validating the ptid.
6673 * remote-utils.c: Include "gdbthread.h".
6674 (prepare_resume_reply): Use "switch_to_thread".
6675 * target.c (done_accessing_memory): Likewise.
6676
ad339634
AA
66772017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6678
6679 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6680 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6681 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6682 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6683 s390x-gs-linux64-ipa.o to ipa_obj.
6684 * linux-s390-low.c (HWCAP_S390_GS): New define.
6685 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6686 New functions.
6687 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6688 (s390_arch_setup): Check for guarded-storage support and choose
6689 appropriate tdesc.
6690 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6691 init_registers_s390x_gs_linux64.
6692 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6693 enum value.
6694 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6695 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6696
cc4d742f
SM
66972017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6698
6699 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6700
f6327dcb
KB
67012017-09-21 Kevin Buettner <kevinb@redhat.com>
6702
6703 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6704 (thread_db_thread_handle): Declare.
6705 * linux-low.c (linux_target_ops): Initialize thread_handle.
6706 * server.c (handle_qxfer_threads_worker): Add support for
6707 "handle" attribute.
6708 * target.h (struct target_ops): Add new function pointer,
6709 thread_handle.
6710 (target_thread_handle): Define.
6711 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6712 field in lwp.
6713 (thread_db_thread_handle): New function.
6714
86299109
KB
67152017-09-21 Kevin Buettner <kevinb@redhat.com>
6716
6717 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6718 * linux-low.h (thread_db_notice_clone): Declare.
6719 * thread-db.c (thread_db_notice_clone): New function.
6720
f557a88a
PA
67212017-09-21 Pedro Alves <palves@redhat.com>
6722
6723 * server.c (gdb_read_memory, handle_status, process_serial_event)
6724 (handle_serial_event, handle_target_event): Adjust to
6725 set_desired_thread prototype change.
6726 * target.c (set_desired_thread): Remove 'use_general' parameter
6727 and adjust.
6728 * target.h (set_desired_thread): Remove 'use_general' parameter.
6729
223ffa71
TT
67302017-09-20 Tom Tromey <tom@tromey.com>
6731
6732 * target.c (target_terminal::terminal_state): Define.
6733 (target_terminal::init): Rename from target_terminal_init.
6734 (target_terminal::inferior): Rename from
6735 target_terminal_inferior.
6736 (target_terminal::ours): Rename from target_terminal_ours.
6737 (target_terminal::ours_for_output, target_terminal::info): New.
6738
04fd3ba9
SM
67392017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6740
6741 * server.c (accumulate_file_name_length): Remove.
6742 (emit_dll_description): Adjust to std::string change.
6743 (handle_qxfer_libraries): Use std::string to hold document.
6744
5e187554
SM
67452017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6746
6747 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6748 return type of xml_escape_text.
6749 * server.c (emit_dll_description): Likewise.
6750
1526853e
SM
67512017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6752
6753 * server.c (captured_main): Accept argument for --selftest.
6754 Update run_tests call.
6755 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6756 when registering selftests.
6757
c4dfafab
SDJ
67582017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6759
6760 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6761 instead of "VEC" for "target_desc.reg_defs".
6762 (regcache_cpy): Likewise.
6763 (registers_to_string): Likewise.
6764 (registers_from_string): Likewise.
6765 (find_regno): Likewise.
6766 (supply_regblock): Likewise.
6767 (regcache_raw_read_unsigned): Likewise.
6768 * tdesc.c (init_target_desc): Likewise.
6769 (tdesc_create_reg): Likewise.
6770 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6771 (struct target_desc) <reg_defs>: Convert to "std::vector".
6772 (target_desc): Do not initialize "reg_defs".
6773 (~target_desc): Update code to use "std::vector" instead of "VEC"
6774 for "target_desc.reg_defs".
6775 (operator==): Likewise.
6776
124aceb4
SM
67772017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6778
6779 * inferiors.h (thread_to_gdb_id): Remove.
6780 * inferiors.c (thread_to_gdb_id): Remove.
6781 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6782 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6783 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6784 Likewise.
6785 * nto-low.c (nto_fetch_registers, nto_store_registers,
6786 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6787
96cde54f
SM
67882017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6789
6790 * inferiors.h (gdb_id_to_thread_id): Remove.
6791 * inferiors.c (gdb_id_to_thread_id): Remove.
6792 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6793 removal. Move pid declaration closer to where it's used.
6794
e8ca139e
SM
67952017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6796
6797 * server.c (handle_detach): New function.
6798 (process_serial_event): Move code out, call handle_detach.
6799
f8a4e119
SM
68002017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6801
6802 * server.c (require_running): Rename to ...
6803 (require_running_or_return): ... this ...
6804 (require_running_or_break): ... and this.
6805 (handle_query, process_serial_event): Adjust.
6806
0eb0a407
SM
68072017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6808
6809 * linux-low.c (linux_set_resume_request): Remove unused
6810 variables.
6811
785922a5
SM
68122017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6813
6814 * server.c (first_thread_of): Remove.
6815 (process_serial_event): Replace usage of first_thread_of with
6816 find_any_thread_of_pid.
6817 * tracepoint.c (same_process_p): Remove.
6818 (gdb_agent_about_to_close): Replace usage of same_process_p with
6819 find_any_thread_of_pid.
6820 * linux-x86-low.c (same_process_callback): Remove.
6821 (x86_arch_setup_process_callback): Replace usage of
6822 same_process_callback with find_any_thread_of_pid.
6823 * thread-db.c (any_thread_of): Remove.
6824 (switch_to_process): Replace usage of any_thread_of with
6825 find_any_thread_of_pid.
6826 * inferiors.c (thread_pid_matches_callback): Remove.
6827 (find_thread_process): Adjust to use find_any_thread_of_pid.
6828
a059f00c
SDJ
68292017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6830
6831 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6832 with "!VEC_empty".
a059f00c 6833
cc397f3a
SDJ
68342017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6835
6836 * linux-low.c (handle_extended_wait): Use
6837 "allocate_target_description" instead of "XNEW".
6838 * linux-x86-low.c (initialize_low_arch): Likewise.
6839
22916b07
YQ
68402017-09-05 Yao Qi <yao.qi@linaro.org>
6841
6842 * configure.srv (srv_i386_regobj): Remove.
6843 (srv_amd64_regobj): Remove.
6844 (srv_regobj): Set it to "" for x86 non-linux targets.
6845 * linux-x86-tdesc.c (i386_linux_read_description):
6846 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6847 (init_registers_i386): Remove the declaration.
6848 (tdesc_i386): Remove the declaration.
6849 (lynx_i386_arch_setup): Call i386_create_target_description.
6850 * nto-x86-low.c: Likewise.
6851 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6852 [!__x86_64__]: include arch/i386.h.
6853 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6854
38602d55
YQ
68552017-09-05 Yao Qi <yao.qi@linaro.org>
6856
6857 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6858 i386/amd64-XXX-linux from it.
6859
44b886ff
YQ
68602017-09-05 Yao Qi <yao.qi@linaro.org>
6861
6862 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6863 false.
6864 (ipa_amd64_linux_regobj): Remove.
6865 (ipa_x32_linux_regobj): Remove.
6866
b4570e4b
YQ
68672017-09-05 Yao Qi <yao.qi@linaro.org>
6868
6869 * Makefile.in (arch-amd64.o): New rule.
6870 * configure.srv: Append arch-amd64.o.
6871 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6872 (get_ipa_tdesc): Call amd64_linux_read_description.
6873 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6874 and init_registers_amd64_XXX.
6875 * linux-x86-low.c (x86_linux_read_description): Call
6876 amd64_linux_read_description.
6877 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6878 (initialize_low_arch): Don't call init_registers_x32_XXX and
6879 init_registers_amd64_XXX.
6880 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6881 and tdesc_amd64_XXX.
6882 [__x86_64__] (amd64_tdesc_test): New function.
6883 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6884 and init_registers_amd64_XXX.
6885 * linux-x86-tdesc.c: Include arch/amd64.h.
6886 (xcr0_to_tdesc_idx): New function.
6887 (i386_linux_read_description): New function.
6888 (amd64_get_ipa_tdesc_idx): New function.
6889 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6890 (amd64_get_ipa_tdesc): Declare.
6891
d1f28ea2
YQ
68922017-09-05 Yao Qi <yao.qi@linaro.org>
6893
6894 * configure.srv (srv_i386_linux_xmlfiles): Remove
6895 i386/i386-XXX-linux.xml from it.
6896
25a93583
YQ
68972017-09-05 Yao Qi <yao.qi@linaro.org>
6898
6899 * configure.srv: Set srv_i386_linux_regobj empty if $development
6900 is false.
6901 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6902 initialize_low_tdesc.
6903 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6904 with #if initialize_low_tdesc.
6905 * linux-x86-tdesc-selftest.c: New file.
6906 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6907
5f035c07
YQ
69082017-09-05 Yao Qi <yao.qi@linaro.org>
6909
6910 * Makefile.in (arch-i386.o): New rule.
6911 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6912 (x86_64-*-linux*): Likewise.
6913 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6914 include arch/i386.h.
6915 (i386_linux_read_description): Remove code and call
6916 i386_create_target_description.
6917 * tdesc.c (allocate_target_description): New function.
6918 * tdesc.h (set_tdesc_architecture): Remove declaration.
6919 (set_tdesc_osabi): Likewise.
6920
0abe8a89
YQ
69212017-09-05 Yao Qi <yao.qi@linaro.org>
6922
6923 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6924 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6925 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6926 .xmltarget.
6927 * server.c (get_features_xml): Call tdesc_get_features_xml.
6928 * tdesc.c (set_tdesc_architecture): New function.
6929 (set_tdesc_osabi): New function.
6930 (tdesc_get_features_xml): New function.
6931 (tdesc_create_feature): Add an argument.
6932 * tdesc.h (struct target_desc) <features>: New field.
6933 <arch, osabi>: New field.
6934 (~target_desc): xfree features, arch, and osabi.
6935 (target_desc::oerator==): Don't compare .xmltarget.
6936 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6937 (set_tdesc_osabi): Likewise.
6938 (tdesc_get_features_xml): Likewise.
6939
0a188386
YQ
69402017-09-05 Yao Qi <yao.qi@linaro.org>
6941
6942 * linux-x86-tdesc.c: Include selftest.h.
6943 (i386_tdesc_test): New function.
6944 (initialize_low_tdesc): Call selftests::register_test.
6945 * tdesc.h: Include regdef.h.
6946 (target_desc): Override operator == and !=.
6947
f49ff000
YQ
69482017-09-05 Yao Qi <yao.qi@linaro.org>
6949
6950 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6951 (ipa_obj): Likewise.
6952 * linux-i386-ipa.c: Include common/x86-xstate.h
6953 (get_ipa_tdesc): Call i386_linux_read_description.
6954 (initialize_low_tracepoint): Don't call init_registers_XXX
6955 functions, call initialize_low_tdesc instead.
6956 * linux-x86-low.c (x86_linux_read_description): Call
6957 i386_linux_read_description.
6958 (initialize_low_arch): Don't call init_registers_i386_XXX
6959 functions, call initialize_low_tdesc.
6960 * linux-x86-tdesc.c: New file.
6961 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6962 (i386_get_ipa_tdesc_idx): Declare.
6963 (i386_get_ipa_tdesc): Declare.
6964 (initialize_low_tdesc): Declare.
6965
2b68ef2f
YQ
69662017-09-05 Yao Qi <yao.qi@linaro.org>
6967
6968 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6969 instead of 0.
6970
f7000548
YQ
69712017-09-05 Yao Qi <yao.qi@linaro.org>
6972
6973 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6974 * regcache.c (get_thread_regcache): Use VEC_length.
6975 (init_register_cache): Likewise.
6976 (regcache_cpy): Likewise.
6977 (registers_to_string): Iterate reg_defs via VEC_iterate.
6978 (find_regno): Likewise.
6979 (find_register_by_number): Use VEC_index.
6980 (register_size): Call find_register_by_number.
6981 (register_data): Call find_register_by_number.
6982 (supply_regblock): Use VEC_length.
6983 (regcache_raw_read_unsigned): Likewise.
6984 * tdesc.c (init_target_desc): Iterate reg_defs via
6985 VEC_iterate.
6986 (default_description): Update initializer.
6987 (copy_target_description): Don't update field num_registers.
6988 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6989 <num_registers>: Remove.
6990
50a421ac
SM
69912017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6992
6993 * Makefile.in (.SECONDARY): Define target.
6994
23fdd69e
SM
69952017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6996
6997 * linux-low.c (linux_wait_1): Adjust.
6998 * server.c (queue_stop_reply_callback): Adjust.
6999
0a2dde4a
SDJ
70002017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7001
7002 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7003 QEnvironmentUnset and QEnvironmentReset packets.
7004 (handle_query): Inform remote that QEnvironmentHexEncoded,
7005 QEnvironmentUnset and QEnvironmentReset are supported.
7006
6afd337d
SM
70072017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * inferiors.h (inferior_target_data): Rename to ...
7010 (thread_target_data): ... this.
7011 (inferior_regcache_data): Rename to ...
7012 (thread_regcache_data): ... this.
7013 (set_inferior_regcache_data): Rename to ...
7014 (set_thread_regcache_data): ... this.
7015 * inferiors.c (inferior_target_data): Rename to ...
7016 (thread_target_data): ... this.
7017 (inferior_regcache_data): Rename to ...
7018 (thread_regcache_data): ... this.
7019 (set_inferior_regcache_data): Rename to ...
7020 (set_thread_regcache_data): ... this.
7021 (free_one_thread): Update.
7022 * linux-low.h (get_thread_lwp): Update.
7023 * regcache.c (get_thread_regcache): Update.
7024 (regcache_invalidate_thread): Update.
7025 (free_register_cache_thread): Update.
7026 * win32-i386-low.c (update_debug_registers_callback): Update.
7027 (win32_get_current_dr): Update.
7028 * win32-low.c (thread_rec): Update.
7029 (delete_thread_info): Update.
7030 (continue_one_thread): Update.
7031 (suspend_one_thread): Update.
7032
a160cc46
SM
70332017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * inferiors.c (set_inferior_target_data): Remove.
7036 * inferiors.h (set_inferior_target_data): Remove.
7037
6d580b63
YQ
70382017-08-18 Yao Qi <yao.qi@linaro.org>
7039
7040 * Makefile.in (OBS): Add selftest.o.
7041 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7042 * configure, config.in: Re-generated.
7043 * server.c: Include common/sefltest.h.
7044 (captured_main): Handle option --selftest.
7045
f5a29eb0
YQ
70462017-08-09 Yao Qi <yao.qi@linaro.org>
7047
7048 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7049 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7050 i386-avx-mpx.o and i386-mmx.o.
7051 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7052 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7053 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7054 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7055 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7056 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7057 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7058 i386/amd64-avx-mpx.xml.
7059
57757c2f
YQ
70602017-08-09 Yao Qi <yao.qi@linaro.org>
7061
7062 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7063 and x32-avx-avx512.o.
7064 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7065 i386/x32-avx-avx512.xml.
7066
229d26fc
SM
70672017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7068
7069 * tracepoint.h (enum class fast_tpoint_collect_result): New
7070 enumeration.
7071 (fast_tracepoint_collecting): Change return type to
7072 fast_tpoint_collect_result.
7073 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7074 * linux-low.h: Include tracepoint.h.
7075 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7076 fast_tpoint_collect_result.
7077 * linux-low.c (handle_tracepoints): Adjust.
7078 (linux_fast_tracepoint_collecting): Change return type to
7079 fast_tpoint_collect_result.
7080 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7081 linux_wait_1, stuck_in_jump_pad_callback,
7082 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7083 proceed_one_lwp): Adjust to type change.
7084
2e1e43e1
YQ
70852017-07-10 Yao Qi <yao.qi@linaro.org>
7086
7087 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7088
adc764e7
YQ
70892017-06-29 Yao Qi <yao.qi@linaro.org>
7090
7091 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7092 Remove.
7093 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7094
a206891a
SM
70952017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7096
7097 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7098
9a6c7d9c
SDJ
70992017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7100
7101 * linux-low.c (linux_create_inferior): Adjust code to access the
7102 environment information via 'gdb_environ' class.
7103 * lynx-low.c (lynx_create_inferior): Likewise.
7104 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7105 (get_environ): Return a pointer to 'our_environ'.
7106 (captured_main): Initialize 'our_environ'.
7107 * server.h (get_environ): Adjust prototype.
7108 * spu-low.c (spu_create_inferior): Adjust code to access the
7109 environment information via 'gdb_environ' class.
7110
ae3e2ccf
SM
71112017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7112
7113 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7114 usage of "register" keyword.
7115
3e019bdc
SM
71162017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7117
7118 * configure: Re-generate.
7119
8465943a
SM
71202017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7121
7122 * configure: Re-generate.
7123
cf0dd6f0
SM
71242017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * Makefile.in (COMPILE.pre): Add "-x c++".
7127
9845682b
SDJ
71282017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7129
7130 * fork-child.c: Conditionally include <signal.h>.
7131
aefd8b33
SDJ
71322017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7133
7134 * server.c (handle_general_set): Handle new packet
7135 "QStartupWithShell".
7136 (handle_query): Add "QStartupWithShell" to the list of supported
7137 packets.
7138 (gdbserver_usage): Add help text explaining the
7139 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7140 options.
7141 (captured_main): Recognize and act upon the presence of the new
7142 CLI options.
7143
2090129c
SDJ
71442017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7145 Pedro Alves <palves@redhat.com>
7146
7147 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7148 * configure: Regenerate.
7149 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7150 "fork-inferior.o".
7151 (i[34567]86-*-lynxos*): Likewise.
7152 (spu*-*-*): Likewise.
7153 * fork-child.c: New file.
7154 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7155 and "environ.h".
7156 (linux_ptrace_fun): New function.
7157 (linux_create_inferior): Adjust function prototype to reflect
7158 change on "target.h". Adjust function code to use
7159 "fork_inferior".
7160 (linux_request_interrupt): Delete "signal_pid".
7161 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7162 (lynx_ptrace_fun): New function.
7163 (lynx_create_inferior): Adjust function prototype to reflect
7164 change on "target.h". Adjust function code to use
7165 "fork_inferior".
7166 * nto-low.c (nto_create_inferior): Adjust function prototype and
7167 code to reflect change on "target.h". Update comments.
7168 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7169 "common-terminal.h" and "environ.h".
7170 (terminal_fd): Moved to fork-child.c.
7171 (old_foreground_pgrp): Likewise.
7172 (restore_old_foreground_pgrp): Likewise.
7173 (last_status): Make it global.
7174 (last_ptid): Likewise.
7175 (our_environ): New variable.
7176 (startup_with_shell): Likewise.
7177 (program_name): Likewise.
7178 (program_argv): Rename to...
7179 (program_args): ...this.
7180 (wrapper_argv): New variable.
7181 (start_inferior): Delete function.
7182 (get_exec_wrapper): New function.
7183 (get_exec_file): Likewise.
7184 (get_environ): Likewise.
7185 (prefork_hook): Likewise.
7186 (post_fork_inferior): Likewise.
7187 (postfork_hook): Likewise.
7188 (postfork_child_hook): Likewise.
7189 (handle_v_run): Update code to deal with arguments coming from the
7190 remote host. Update calls from "start_inferior" to
7191 "create_inferior".
7192 (captured_main): Likewise. Initialize environment variable. Call
7193 "have_job_control".
7194 * server.h (post_fork_inferior): New prototype.
7195 (get_environ): Likewise.
7196 (last_status): Declare.
7197 (last_ptid): Likewise.
7198 (signal_pid): Likewise.
7199 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7200 (spu_ptrace_fun): New function.
7201 (spu_create_inferior): Adjust function prototype to reflect change
7202 on "target.h". Adjust function code to use "fork_inferior".
7203 * target.c (target_terminal_init): New function.
7204 (target_terminal_inferior): Likewise.
7205 (target_terminal_ours): Likewise.
7206 * target.h: Include <vector>.
7207 (struct target_ops) <create_inferior>: Update prototype.
7208 (create_inferior): Update macro.
7209 * utils.c (gdb_flush_out_err): New function.
7210 * win32-low.c (win32_create_inferior): Adjust function prototype
7211 and code to reflect change on "target.h".
7212
043a4934
SDJ
72132017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7214
7215 * inferiors.c (switch_to_thread): New function.
7216
15652511
SDJ
72172017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7218
7219 * Makefile.in (SFILE): Add "common/job-control.c".
7220 (OBS): Add "job-control.o".
7221
21ea5acd
SDJ
72222017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7223
7224 * Makefile: Remove "@host_makefile_frag@".
7225
e13cb306
PA
72262017-05-05 Pedro Alves <palves@redhat.com>
7227
7228 * configure: Regenerate.
7229
c94fee56
SDJ
72302017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7231
7232 * configure: Regenerate.
7233
a0ff9e1a
SM
72342017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7235
7236 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7237 software_single_step change of return type to
7238 std::vector<CORE_ADDR>.
7239 * linux-low.c (install_software_single_step_breakpoints):
7240 Likewise.
7241 * linux-low.h (install_software_single_step_breakpoints):
7242 Likewise.
7243
be628ab8
SDJ
72442017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7245
7246 * remote-utils.c: Include "gdb_termios.h" instead of
7247 "terminal.h".
7248 * terminal.h: Delete file.
7249
7c5ded6a
SDJ
72502017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7251
7252 * server.c: Include <vector>.
7253 <program_argv, wrapper_argv>: Convert to std::vector.
7254 (start_inferior): Rewrite function to use C++.
7255 (handle_v_run): Likewise. Update code that calculates the argv
7256 based on the vRun packet; use C++.
7257 (captured_main): Likewise.
7258
436252de
SM
72592017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 * server.c (handle_v_cont): Initialize thread_resume::thread
7262 with null_ptid.
7263
9bf2a700
PA
72642017-04-05 Pedro Alves <palves@redhat.com>
7265
7266 * configure: Regenerate.
7267
a121b7c1
PA
72682017-04-05 Pedro Alves <palves@redhat.com>
7269
7270 * gdbreplay.c (sync_error): Constify.
7271 * linux-x86-low.c (push_opcode): Constify.
7272
21c8a587
PA
72732017-04-05 Pedro Alves <palves@redhat.com>
7274
7275 * win32-low.c (get_child_debug_event)
7276 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7277 Report TARGET_WAITKIND_SPURIOUS instead.
7278
fb32b4f7
PA
72792017-04-05 Pedro Alves <palves@redhat.com>
7280
e79be6e5
SM
7281 * remote-utils.c (remote_prepare, remote_open): Constify.
7282 * remote-utils.h (remote_prepare, remote_open): Constify.
7283 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7284
65dd1e59
SM
72852017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7286
7287 * Makefile.in (clean): Clear .deps.
7288
8fa5b777
SM
72892017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7290
7291 * .gitignore: Remove generated files, replace with wildcard.
7292 * (clean): Replace removal of generated files with wildcard.
7293 (version.c): Replace with...
7294 (version-generated.c): ...this.
7295 (xml-builtin.c): Replace with...
7296 (xml-builtin-generated.c): ...this.
7297 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7298 (%.c: *regformats*): Replace with...
7299 (%-generated.c: *regformats*): ...this.
7300
a12e714b
MF
73012017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7302
7303 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7304 (xtensa_fill_gregset): Call collect_register_by_name for
7305 threadptr register.
7306 (xtensa_store_gregset): Call supply_register_by_name for
7307 threadptr register.
7308
1a09b50a
MF
73092017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7310
7311 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7312 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7313 (xtensa_store_gregset): Call supply_register for all registers in
7314 a0_regnum..a0_regnum + C0_NREGS range.
7315
1a01e7c6
SM
73162017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7317
7318 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7319 (ax-ipa.o: ax.c): Remove.
7320 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7321 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7322 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7323 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7324 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7325
36bc18a8
SM
73262017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7327
7328 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7329 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7330 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7331 (errors-ipa.o: ../common/errors.c): Remove.
7332 (format-ipa.o: ../common/format.c): Remove.
7333 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7334
a8ebe3d5
SM
73352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7336
7337 * Makefile.in (%-ipa.o: %.c): New rule.
7338 (tracepoint-ipa.o: tracepoint.c): Remove.
7339 (utils-ipa.o: utils.c): Remove.
7340 (remote-utils-ipa.o: remote-utils.c): Remove.
7341 (regcache-ipa.o: regcache.c): Remove.
7342 (i386-linux-ipa.o: i386-linux.c): Remove.
7343 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7344 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7345 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7346 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7347 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7348 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7349 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7350 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7351 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7352 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7353 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7354 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7355 (aarch64-ipa.o: aarch64.c): Remove.
7356 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7357 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7358 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7359 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7360 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7361 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7362 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7363 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7364 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7365 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7366 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7367 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7368 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7369 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7370 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7371 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7372 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7373 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7374 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7375 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7376 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7377 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7378 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7379 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7380 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7381 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7382 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7383 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7384 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7385 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7386 (tdesc-ipa.o: tdesc.c): Remove.
7387 (x32-linux-ipa.o: x32-linux.c): Remove.
7388 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7389 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7390
50cfacb7
SM
73912017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7392
7393 * Makefile.in (%.o: ../arch/%.c): New rule.
7394 (arm.o: ../arch/arm.c): Remove.
7395 (arm-linux.o: ../arch/arm-linux.c): Remove.
7396 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7397 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7398
c5a22423
SM
73992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7400
7401 * Makefile.in (%.o: ../nat/%.c): New rule.
7402 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7403 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7404 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7405 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7406 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7407 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7408 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7409 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7410 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7411 (linux-personality.o: ../nat/linux-personality.c): Remove.
7412 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7413 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7414 (x86-linux.o: ../nat/x86-linux.c): Remove.
7415 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7416 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7417
6bda016b
SM
74182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7419
7420 * Makefile.in (%.o: ../common/%.c): New rule.
7421 (signals.o: ../common/signals.c): Remove.
7422 (print-utils.o: ../common/print-utils.c): Remove.
7423 (rsp-low.o: ../common/rsp-low.c): Remove.
7424 (common-utils.o: ../common/common-utils.c): Remove.
7425 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7426 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7427 (vec.o: ../common/vec.c): Remove.
7428 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7429 (xml-utils.o: ../common/xml-utils.c): Remove.
7430 (ptid.o: ../common/ptid.c): Remove.
7431 (buffer.o: ../common/buffer.c): Remove.
7432 (format.o: ../common/format.c): Remove.
7433 (filestuff.o: ../common/filestuff.c): Remove.
7434 (agent.o: ../common/agent.c): Remove.
7435 (errors.o: ../common/errors.c): Remove.
7436 (environ.o: ../common/environ.c): Remove.
7437 (common-debug.o: ../common/common-debug.c): Remove.
7438 (cleanups.o: ../common/cleanups.c): Remove.
7439 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7440 (fileio.o: ../common/fileio.c): Remove.
7441 (common-regcache.o: ../common/common-regcache.c): Remove.
7442 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7443 (new-op.o: ../common/new-op.c): Remove.
7444 (btrace-common.o: ../common/btrace-common.c): Remove.
7445
21122961
SM
74462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7447
7448 * Makefile.in (%.o: ../target/%.c): New rule.
7449 (waitstatus.o: ../target/waitstatus.c): Remove.
7450
c362e621
SM
74512017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7452
7453 * Makefile.in
7454 (%.c: ../regformats/%.dat,
7455 (%.c: ../regformats/arm/%.dat,
7456 (%.c: ../regformats/i386/%.dat,
7457 (%.c: ../regformats/rs6000/%.dat): New rules.
7458 (aarch64.c): Remove.
7459 (reg-arm.c): Remove.
7460 (arm-with-iwmmxt.c): Remove.
7461 (arm-with-vfpv2.c): Remove.
7462 (arm-with-vfpv3.c): Remove.
7463 (arm-with-neon.c): Remove.
7464 (reg-bfin.c): Remove.
7465 (reg-cris.c): Remove.
7466 (reg-crisv32.c): Remove.
7467 (i386.c): Remove.
7468 (i386-linux.c): Remove.
7469 (i386-avx.c): Remove.
7470 (i386-avx-linux.c): Remove.
7471 (i386-avx-avx512.c): Remove.
7472 (i386-avx-avx512-linux.c): Remove.
7473 (i386-mpx.c): Remove.
7474 (i386-mpx-linux.c): Remove.
7475 (i386-avx-mpx-avx512-pku.c): Remove.
7476 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7477 (i386-avx-mpx.c): Remove.
7478 (i386-avx-mpx-linux.c): Remove.
7479 (i386-mmx.c): Remove.
7480 (i386-mmx-linux.c): Remove.
7481 (reg-ia64.c): Remove.
7482 (reg-m32r.c): Remove.
7483 (reg-m68k.c): Remove.
7484 (reg-cf.c): Remove.
7485 (mips-linux.c): Remove.
7486 (mips-dsp-linux.c): Remove.
7487 (mips64-linux.c): Remove.
7488 (mips64-dsp-linux.c): Remove.
7489 (nios2-linux.c): Remove.
7490 (powerpc-32.c): Remove.
7491 (powerpc-32l.c): Remove.
7492 (powerpc-altivec32l.c): Remove.
7493 (powerpc-cell32l.c): Remove.
7494 (powerpc-vsx32l.c): Remove.
7495 (powerpc-isa205-32l.c): Remove.
7496 (powerpc-isa205-altivec32l.c): Remove.
7497 (powerpc-isa205-vsx32l.c): Remove.
7498 (powerpc-e500l.c): Remove.
7499 (powerpc-64l.c): Remove.
7500 (powerpc-altivec64l.c): Remove.
7501 (powerpc-cell64l.c): Remove.
7502 (powerpc-vsx64l.c): Remove.
7503 (powerpc-isa205-64l.c): Remove.
7504 (powerpc-isa205-altivec64l.c): Remove.
7505 (powerpc-isa205-vsx64l.c): Remove.
7506 (s390-linux32.c): Remove.
7507 (s390-linux32v1.c): Remove.
7508 (s390-linux32v2.c): Remove.
7509 (s390-linux64.c): Remove.
7510 (s390-linux64v1.c): Remove.
7511 (s390-linux64v2.c): Remove.
7512 (s390-te-linux64.c): Remove.
7513 (s390-vx-linux64.c): Remove.
7514 (s390-tevx-linux64.c): Remove.
7515 (s390x-linux64.c): Remove.
7516 (s390x-linux64v1.c): Remove.
7517 (s390x-linux64v2.c): Remove.
7518 (s390x-te-linux64.c): Remove.
7519 (s390x-vx-linux64.c): Remove.
7520 (s390x-tevx-linux64.c): Remove.
7521 (tic6x-c64xp-linux.c): Remove.
7522 (tic6x-c64x-linux.c): Remove.
7523 (tic6x-c62x-linux.c): Remove.
7524 (reg-sh.c): Remove.
7525 (reg-sparc64.c): Remove.
7526 (reg-spu.c): Remove.
7527 (amd64.c): Remove.
7528 (amd64-linux.c): Remove.
7529 (amd64-avx.c): Remove.
7530 (amd64-avx-linux.c): Remove.
7531 (amd64-avx-avx512.c): Remove.
7532 (amd64-avx-avx512-linux.c): Remove.
7533 (amd64-mpx.c): Remove.
7534 (amd64-mpx-linux.c): Remove.
7535 (amd64-avx-mpx-avx512-pku.c): Remove.
7536 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7537 (amd64-avx-mpx.c): Remove.
7538 (amd64-avx-mpx-linux.c): Remove.
7539 (x32.c): Remove.
7540 (x32-linux.c): Remove.
7541 (x32-avx.c): Remove.
7542 (x32-avx-linux.c): Remove.
7543 (x32-avx-avx512.c): Remove.
7544 (x32-avx-avx512-linux.c): Remove.
7545 (reg-xtensa.c): Remove.
7546 (reg-tilegx.c): Remove.
7547 (reg-tilegx32.c): Remove.
7548
1672e0d9
SDJ
75492017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7550
7551 * Makefile.in (SFILES): Add "common/environ.c".
7552 (OBJS): Add "common/environ.h".
7553
239b6d10
WT
75542017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7555
7556 * configure.ac: Check if the fs_base and gs_base members of
7557 `struct user_regs_struct' exist.
7558 * config.in: Regenerated.
7559 * configure: Likewise.
7560
694b382c
AT
75612017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7562
7563 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7564 target_read_memory.
7565 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7566 (get_next_pcs_syscall_next_pc): Likewise.
7567
7dc53023
LM
75682016-12-23 Luis Machado <lgustavo@codesourcery.com>
7569
7570 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7571 * nto-x86-low.c: Likewise.
7572
ad02e4fe
SM
75732016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7574
7575 * Makefile.in: Include disable-implicit-rules.mk.
7576
dcb07cfa
PA
75772016-11-23 Pedro Alves <palves@redhat.com>
7578
7579 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7580 (debug_vprintf): Use std::chrono::steady_clock instead of
7581 gettimeofday. Use '.' instead of ':'.
7582 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7583 (get_timestamp): Use std::chrono::steady_clock instead of
7584 gettimeofday.
7585
8629c02c
SM
75862016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7587
7588 * Makefile.in: Fix whitespace formatting.
7589
b593ecca
SM
75902016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7591
7592 * Makefile.in (SFILES, OBS): Flatten list and order
7593 alphabetically.
7594
9986ba08
PA
75952016-11-23 Pedro Alves <palves@redhat.com>
7596
7597 * event-loop.c (handle_file_event): Use warning.
7598 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7599 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7600 Use warning.
7601
4eefa7bc
PA
76022016-11-23 Pedro Alves <palves@redhat.com>
7603
7604 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7605 output.
7606 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7607 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7608 debug_printf and debug_flush for debug output.
7609 * server.c (handle_general_set): Likewise.
7610 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7611 output.
7612
5443506e
SM
76132016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7614
7615 * Makefile.in (.c.o): Replace rule with ...
7616 (%.o: %.c): ... this one.
7617
3b165252
SM
76182016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7619
7620 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7621 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7622 make.
7623 * configure.ac: Remove checks for the make program.
7624 * configure: Re-generate.
7625
0bcda685
PA
76262016-10-28 Pedro Alves <palves@redhat.com>
7627
7628 * Makefile.in (CXX_DIALECT): Get from configure.
7629 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7630 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7631 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7632 * config.in: Regenerate.
7633 * configure: Regenerate.
7634
c3805894
YQ
76352016-10-27 Yao Qi <yao.qi@linaro.org>
7636
7637 * linux-low.c (linux_supports_range_stepping): Return true if
7638 can_software_single_step return true.
7639
89342618
YQ
76402016-10-27 Yao Qi <yao.qi@linaro.org>
7641
7642 * inferiors.c (find_inferior_in_random): New function.
7643 * inferiors.h (find_inferior_in_random): Declare.
7644 * linux-low.c (linux_wait_for_event_filtered): Call
7645 find_inferior_in_random instead of find_inferior.
7646
e3652c84
YQ
76472016-10-27 Yao Qi <yao.qi@linaro.org>
7648
7649 * linux-low.c (linux_wait_1): If single-step breakpoints are
7650 inserted, remove them.
7651
5a04c4cf
PA
76522016-10-26 Pedro Alves <palves@redhat.com>
7653
7654 * linux-low.c (handle_extended_wait): Link parent/child fork
7655 threads.
7656 (linux_wait_1): Unlink them.
7657 (linux_set_resume_request): Ignore resume requests for
7658 already-resumed and unhandled fork child threads.
7659 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7660 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7661 New functions.
7662 (handle_v_requests) <vCont>: Don't call require_running.
7663 * server.h (in_queued_stop_replies): New declaration.
7664
cb93dc7f
YQ
76652016-10-24 Yao Qi <yao.qi@linaro.org>
7666
7667 PR server/20733
7668 * linux-aarch64-low.c (append_insns): Cast the return value to
7669 'uint32_t *'.
7670
a1078bea
YQ
76712016-10-10 Yao Qi <yao.qi@linaro.org>
7672
7673 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7674
1fb77080
SDJ
76752016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7676
7677 * target.c (target_supports_multi_process): New function, moved
7678 from...
7679 * target.h (target_supports_multi_process): ... here. Remove
7680 macro.
7681
39b5a3b9
TT
76822016-10-05 Tom Tromey <tom@tromey.com>
7683
7684 PR remote/20655:
7685 * tracepoint.c (handle_tracepoint_bkpts): Check
7686 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7687
c1d0b70a
YQ
76882016-10-05 Yao Qi <yao.qi@linaro.org>
7689
7690 * configure.srv: Update the path of arm-*.xml files.
7691
0a69eedb
YQ
76922016-10-05 Terry Guo <terry.guo@arm.com>
7693 Yao Qi <yao.qi@linaro.org>
7694
7695 * Makefile.in: Adjust the path of rules.
7696 * configure.srv: Update the path of xml files.
7697 * regformats/arm-with-iwmmxt.dat: Regenerated.
7698 * regformats/arm-with-neon.dat: Likewise.
7699 * regformats/arm-with-vfpv2.dat: Likewise.
7700 * regformats/arm-with-vfpv3.dat Likewise.
7701
17e16485
YQ
77022016-09-30 Yao Qi <yao.qi@linaro.org>
7703
7704 PR gdbserver/20627
7705 * target.c (target_stop_and_wait): Don't call
7706 target_continue_no_signal, use resume_stop instead.
7707
edeeb602
YQ
77082016-09-26 Yao Qi <yao.qi@linaro.org>
7709
7710 * linux-low.c (linux_wait_1): Call debug_exit.
7711
503b1c39
PA
77122016-09-23 Pedro Alves <palves@redhat.com>
7713
7714 * Makefile.in (SFILES): Add common/new-op.c.
7715 (OBS): Add common/new-op.o.
7716 (new-op.o): New rule.
7717
74172ecf
SM
77182016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7719
7720 * .gitinore: Ignore more files.
7721
fc6cda2e
YQ
77222016-09-21 Yao Qi <yao.qi@linaro.org>
7723
7724 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7725 23.
7726
bc1e6c81
SDJ
77272016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7728
7729 * server.c (start_inferior): Call target_mourn_inferior instead of
7730 mourn_inferior; pass ptid_t argument to it.
7731 (resume): Likewise.
7732 (handle_target_event): Likewise.
7733 * target.c (target_mourn_inferior): New function.
7734 * target.h (mourn_inferior): Delete macro.
7735
0e00e962
AA
77362016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7737
7738 * linux-low.c (lwp_is_stepping): New function.
7739
1d8cb77d
CL
77402016-09-06 Carl Love <cel@us.ibm.com>
7741
7742 * server.c (start_inferior): Fixed comment, requested comment change
7743 didn't get updated correctly. Removed reference to ptrace () call as
7744 it is only true on Linux systems.
7745
7313bced
CL
77462016-09-06 Carl Love <cel@us.ibm.com>
7747
7748 * server.c (start_inferior): Do not call
7749 function target_post_create_inferior () if the
7750 inferior process has already exited.
7751
cf6de44d
PA
77522016-09-05 Pedro Alves <palves@redhat.com>
7753
7754 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7755 (COMPILE.pre, CC_LD): Use CXX directly.
7756 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7757 * acinclude.m4: Don't include build-with-cxx.m4.
7758 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7759 * configure: Regenerate.
7760
c1da6748
AT
77612016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7762
7763 PR gdb/19495
7764 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7765 call writing data to own_buf.
7766
f2b9e3df
SDJ
77672016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7768
7769 * target.c (mywait): Call target_wait instead of
7770 the_target->wait.
7771 (target_wait): New function.
7772
049a8570
SDJ
77732016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7774
7775 * server.c (start_inferior): New variable 'ptid'. Replace calls
7776 to the_target->resume by target_continue{,_no_signal}, depending
7777 on the case.
7778 * target.c (target_stop_and_wait): Call target_continue_no_signal
7779 instead of the_target->resume.
7780 (target_continue): New function.
7781
3aa5cfa0
AT
77822016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7783
7784 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7785
754653a7
AZ
77862016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7787
7788 PR server/20491
7789 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7790 ps_prochandle.
7791 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7792 * linux-arm-low.c (ps_get_thread_area): Likewise.
7793 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7794 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7795 * linux-mips-low.c (ps_get_thread_area): Likewise.
7796 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7797 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7798 * linux-x86-low.c (ps_get_thread_area): Likewise.
7799 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7800
ed036b40
PA
78012016-08-19 Pedro Alves <palves@redhat.com>
7802
7803 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7804
c8ef42ee
PA
78052016-08-19 Pedro Alves <palves@redhat.com>
7806
7807 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7808 comment. Use memcpy instead of casting through unsigned long.
7809
9c235a72
PA
78102016-08-19 Pedro Alves <palves@redhat.com>
7811
7812 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7813 allocating around 0x80000000.
7814
201506da
PA
78152016-08-19 Pedro Alves <palves@redhat.com>
7816
7817 PR gdb/20415
7818 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7819 (x32-avx512-linux-ipa.o): New rules.
7820 * configure.ac (x86_64-*-linux*): New x32 check.
7821 * configure.srv (ipa_x32_linux_regobj): New.
7822 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7823 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7824 descriptions.
7825 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7826 descriptions.
7827 * configure: Regenerate.
7828
f348d89a
PA
78292016-08-09 Pedro Alves <palves@redhat.com>
7830
7831 PR gdb/18653
7832 * Makefile.in (OBS): Add signals-state-save-restore.o.
7833 (signals-state-save-restore.o): New rule.
7834 * config.in: Regenerate.
7835 * configure: Regenerate.
7836 * linux-low.c: Include "signals-state-save-restore.h".
7837 (linux_create_inferior): Call
7838 restore_original_signals_state.
7839 * server.c: Include "dispositions-save-restore.h".
7840 (captured_main): Call save_original_signals_state.
7841
1baf5149
PA
78422016-08-05 Pedro Alves <palves@redhat.com>
7843
7844 * configure: Regenerate.
7845
fcd4a73d
YQ
78462016-08-04 Yao Qi <yao.qi@linaro.org>
7847
7848 * linux-low.c (regsets_fetch_inferior_registers): Check
7849 errno is ESRCH or not.
7850
979659d0
YQ
78512016-08-02 Yao Qi <yao.qi@linaro.org>
7852
7853 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7854 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7855 (thread_db_load_search): Update.
7856 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7857 td_ta_set_event and td_ta_event_getmsg.
7858
6598661d
PA
78592016-07-26 Pedro Alves <palves@redhat.com>
7860
7861 PR server/20414
7862 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7863 of unsigned long for 64-bit registers and use uint32_t instead of
7864 unsigned int for 32-bit registers.
7865
9cf12d57
PA
78662016-07-26 Pedro Alves <palves@redhat.com>
7867
7868 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7869 to 'ptrace'.
7870
305450ed
TT
78712016-07-21 Tom Tromey <tom@tromey.com>
7872
7873 * configure: Rebuild.
7874
2583da7c
YQ
78752016-07-21 Yao Qi <yao.qi@linaro.org>
7876
7877 * mem-break.c (find_gdb_breakpoint): Cast bp to
7878 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7879
21536b36
YQ
78802016-07-21 Yao Qi <yao.qi@linaro.org>
7881
7882 * server.c (handle_v_requests): Support s and S actions
7883 if target_supports_software_single_step return true.
7884
8901d193
YQ
78852016-07-21 Yao Qi <yao.qi@linaro.org>
7886
7887 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7888 is resume_step, call maybe_hw_step.
7889 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7890 and unstop them.
7891 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7892 breakpoints or not.
7893 (proceed_one_lwp): If resume request is resume_step, install
7894 reinsert breakpoints and call maybe_hw_step.
7895
0e9a339e
YQ
78962016-07-21 Yao Qi <yao.qi@linaro.org>
7897
7898 * linux-low.c (proceed_one_lwp): Declare.
7899 (linux_resume_one_thread): Remove local variable 'step'.
7900 Lift code enqueue signal. Call proceed_one_lwp instead of
7901 linux_resume_one_lwp.
7902
4281b351
YQ
79032016-07-21 Yao Qi <yao.qi@linaro.org>
7904
7905 * linux-low.c (linux_resume_one_thread): Call
7906 enqueue_pending_signal.
7907
984a2c04
YQ
79082016-07-21 Yao Qi <yao.qi@linaro.org>
7909
7910 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7911 * inferiors.c (do_restore_current_thread_cleanup): New function.
7912 (make_cleanup_restore_current_thread): Likewise.
7913 * linux-low.c (install_software_single_step_breakpoints): Call
7914 make_cleanup_restore_current_thread. Switch current_thread to
7915 thread.
7916
bec903c9
YQ
79172016-07-21 Yao Qi <yao.qi@linaro.org>
7918
7919 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7920 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7921 (clone_one_breakpoint): Likewise.
7922 (delete_reinsert_breakpoints): Change parameter to thread.
7923 Callers updated.
7924 (has_reinsert_breakpoints): Likewise.
7925 (uninsert_reinsert_breakpoints): Likewise.
7926 (reinsert_reinsert_breakpoints): Likewise.
7927 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7928 (delete_reinsert_breakpoints): Likewise.
7929 (reinsert_reinsert_breakpoints): Likewise.
7930 (uninsert_reinsert_breakpoints): Likewise.
7931 (has_reinsert_breakpoints): Likewise.
7932
63c40ec7
YQ
79332016-07-21 Yao Qi <yao.qi@linaro.org>
7934
7935 * inferiors.c (get_thread_process): Make parameter const.
7936 * inferiors.h (get_thread_process): Update declaration.
7937 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7938 Add new parameters child_thread and parent_thread. Callers
7939 updated.
7940 * mem-break.h (clone_all_breakpoints): Update declaration.
7941
9aa76cd0
YQ
79422016-07-21 Yao Qi <yao.qi@linaro.org>
7943
7944 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7945 <command_list, handler>: Remove.
7946 (struct gdb_breakpoint): New.
7947 (struct other_breakpoint): New.
7948 (struct reinsert_breakpoint): New.
7949 (is_gdb_breakpoint): New function.
7950 (any_persistent_commands): Update command_list if
7951 is_gdb_breakpoint returns true.
7952 (set_breakpoint): Create breakpoints according to their types.
7953 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7954 (set_gdb_breakpoint_1): Likewise.
7955 (set_gdb_breakpoint): Likewise.
7956 (clear_breakpoint_conditions): Change parameter type to
7957 'struct gdb_breakpoint *'.
7958 (clear_breakpoint_commands): Likewise.
7959 (clear_breakpoint_conditions_and_commands): Likewise.
7960 (add_condition_to_breakpoint): Likewise.
7961 (add_breakpoint_condition): Likewise.
7962 (add_commands_to_breakpoint): Likewise.
7963 (check_breakpoints): Check other_breakpoint.
7964 (clone_one_breakpoint): Clone breakpopint according to its type.
7965 * mem-break.h (struct gdb_breakpoint): Declare.
7966 (set_gdb_breakpoint): Update declaration.
7967 (clear_breakpoint_conditions_and_commands): Likewise.
7968 (add_breakpoint_condition): Likewise.
7969 (add_breakpoint_commands): Likewise.
7970 * server.c (process_point_options): Change parameter type to
7971 'struct gdb_breakpoint *'.
7972
811f8301
YQ
79732016-07-21 Yao Qi <yao.qi@linaro.org>
7974
7975 * mem-break.c (set_breakpoint_at): Rename it to ...
7976 (set_breakpoint_type_at): ... it.
7977 (set_breakpoint_at): Call set_breakpoint_type_at.
7978 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7979 * mem-break.h (set_breakpoint_at): Update comments.
7980
b1c51e36
CLT
79812016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7982
7983 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7984 to buf parameter.
7985 (nios2_store_gregset): Likewise.
7986
ced2dffb
PA
79872016-07-01 Pedro Alves <palves@redhat.com>
7988 Antoine Tremblay <antoine.tremblay@ericsson.com>
7989
7990 * linux-low.c: Change interface to take the target lwp_info
7991 pointer directly and return void. Handle detaching from a zombie
7992 thread.
7993 (linux_detach_lwp_callback): New function.
7994 (linux_detach): Detach from the leader thread after detaching from
7995 the clone threads.
7996
2ac09a5b
YQ
79972016-06-28 Yao Qi <yao.qi@linaro.org>
7998
7999 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8000 for variable new_offset.
8001 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8002 (aarch64_ftrace_insn_reloc_cb): Likewise.
8003 (aarch64_ftrace_insn_reloc_tb): Likewise.
8004 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8005 PRIx64 instead of PRIx32.
8006
79e7fd4f
YQ
80072016-06-28 Yao Qi <yao.qi@linaro.org>
8008
8009 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8010 (the_low_target): Install arm_get_syscall_trapinfo.
8011
061fc021
YQ
80122016-06-28 Yao Qi <yao.qi@linaro.org>
8013
8014 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8015 function.
8016 (the_low_target): Install aarch64_get_syscall_trapinfo.
8017
4cc32bec
YQ
80182016-06-28 Yao Qi <yao.qi@linaro.org>
8019
8020 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8021 Callers updated.
8022 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8023 Remove parameter sysno.
8024 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8025 sysret.
8026
782c1122
AA
80272016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8028
8029 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8030 (s390_emit_ne_goto): Likewise.
8031 (s390_emit_lt_goto): Likewise.
8032 (s390_emit_le_goto): Likewise.
8033 (s390_emit_gt_goto): Likewise.
8034 (s390_emit_ge_goto): Likewise.
8035 (s390x_emit_eq_goto): Likewise.
8036 (s390x_emit_ne_goto): Likewise.
8037 (s390x_emit_lt_goto): Likewise.
8038 (s390x_emit_le_goto): Likewise.
8039 (s390x_emit_gt_goto): Likewise.
8040 (s390x_emit_ge_goto): Likewise.
8041 (s390_emit_ops_impl): Mark variable static.
8042 (s390x_emit_ops): Likewise.
8043
2e7b624b
YQ
80442016-06-17 Yao Qi <yao.qi@linaro.org>
8045
8046 * linux-low.c (handle_extended_wait): Call
8047 uninsert_reinsert_breakpoints for the parent process. Remove
8048 reinsert breakpoints from the child process. Reinsert them to
8049 the parent process when vfork is done.
8050 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8051 (reinsert_reinsert_breakpoints): New function.
8052 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8053 (reinsert_reinsert_breakpoints): Declare.
8054
8a81c5d7
YQ
80552016-06-17 Yao Qi <yao.qi@linaro.org>
8056
8057 * linux-low.c (handle_extended_wait): If the parent is doing
8058 step-over, remove the reinsert breakpoints from the forked child.
8059
f50bf8e5
YQ
80602016-06-17 Yao Qi <yao.qi@linaro.org>
8061
8062 * linux-low.c (unsuspend_all_lwps): Declare.
8063 (linux_low_filter_event): If thread exited, call finish_step_over.
8064 If step-over is finished, unsuspend other threads.
8065
8376a3cb
YQ
80662016-06-17 Yao Qi <yao.qi@linaro.org>
8067
8068 * linux-low.c (linux_resume_one_lwp_throw): Assert
8069 has_reinsert_breakpoints returns false.
8070 * mem-break.c (delete_disabled_breakpoints): Assert
8071 bp type isn't reinsert_breakpoint.
8072
f79b145d
YQ
80732016-06-17 Yao Qi <yao.qi@linaro.org>
8074
8075 * linux-low.c (maybe_hw_step): New function.
8076 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8077 (finish_step_over): Switch current_thread to lwp temporarily,
8078 and assert has_reinsert_breakpoints returns true.
8079 (proceed_one_lwp): Call maybe_hw_step.
8080 * mem-break.c (has_reinsert_breakpoints): New function.
8081 * mem-break.h (has_reinsert_breakpoints): Declare.
8082
0ae534d2
JT
80832016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8084
8085 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8086
fcdad592
YQ
80872016-05-17 Yao Qi <yao.qi@linaro.org>
8088
8089 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8090 instead of find_inferior.
8091
9e784964
YQ
80922016-05-05 Yao Qi <yao.qi@linaro.org>
8093
8094 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8095 Initialize res to zero.
8096
cf2ebb6e
YQ
80972016-05-05 Yao Qi <yao.qi@linaro.org>
8098
8099 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8100 to uint32_t.
8101
c1aebf87
UW
81022016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8103
8104 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8105 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8106 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8107
35fd2deb 81082016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8109 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8110
8111 * tracepoint.c (write_inferior_int8): New function.
8112 (cmd_qtenable_disable): Write enable flag using
8113 write_inferior_int8.
8114
484b3c32
YQ
81152016-04-25 Yao Qi <yao.qi@linaro.org>
8116
8117 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8118 (need_step_over_p): Return zero if the LWP has pending signals
8119 can be delivered on software single step target.
8120
85ba7d86
YQ
81212016-04-25 Yao Qi <yao.qi@linaro.org>
8122
8123 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8124 return instead of error.
8125
3539aa13
YQ
81262016-04-22 Yao Qi <yao.qi@linaro.org>
8127
8128 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8129 to 23.
8130
5b061e98
YQ
81312016-04-22 Yao Qi <yao.qi@linaro.org>
8132
8133 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8134 signal when stepping over breakpoint with software single
8135 step.
8136
3451269c
PA
81372016-04-21 Pedro Alves <palves@redhat.com>
8138
8139 * linux-s390-low.c (s390_collect_ptrace_register)
8140 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8141 add casts.
8142 (s390_check_regset): Use void * instead of gdb_byte *.
8143
a2358508
PA
81442016-04-20 Pedro Alves <palves@redhat.com>
8145
8146 * configure: Renegerate.
8147
6885166d
YQ
81482016-04-20 Yao Qi <yao.qi@linaro.org>
8149
8150 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8151 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8152 number 16.
8153 (arm_store_gregset): Likewise.
8154
2b863f51
WT
81552016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8156
8157 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8158 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8159 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8160 (amd64-avx-mpx-linux.c): New rules.
8161 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8162 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8163 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8164 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8165 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8166 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8167 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8168 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8169 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8170 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8171 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8172 * linux-x86-low.c (x86_linux_read_description): Add case for
8173 X86_XSTATE_AVX_MPX_MASK.
8174 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8175 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8176 init_registers_i386_avx_mpx_linux.
8177 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8178 (initialize_low_tracepoint): Call
8179 init_registers_i386_avx_mpx_linux.
8180 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8181 (initialize_low_tracepoint): Call
8182 init_registers_amd64_avx_mpx_linux.
8183 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8184 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8185 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8186 declarations.
8187
9b30624b
PA
81882016-04-18 Pedro Alves <palves@redhat.com>
8189
8190 * configure: Regenerate.
8191
45e3745e
AT
81922016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8193
8194 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8195 (aarch64_emit_sub): Likewise.
8196
2afc13ff
PA
81972016-04-12 Pedro Alves <palves@redhat.com>
8198
8199 * utils.c (prepare_to_throw_exception): Delete.
8200
6e774b13
SM
82012016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8202
8203 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8204
4dca19f8
MK
82052016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8206
8207 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8208
d0a9981f
MK
82092016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8210
8211 * linux-aarch64-ipa.c: Add <elf.h> include.
8212 * linux-ppc-ipa.c: Add <elf.h> include.
8213 * linux-s390-ipa.c: Add <elf.h> include.
8214
252db07e
MK
82152016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8216
8217 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8218 (get_raw_reg_ptr): Likewise.
8219 (get_trace_state_variable_value_ptr): Likewise.
8220 (set_trace_state_variable_value_ptr): Likewise.
8221 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8222 char *.
8223
14e2b6d9
MK
82242016-03-31 Wei-cheng Wang <cole945@gmail.com>
8225 Marcin Kościelnicki <koriakin@0x04.net>
8226
8227 PR/17221
8228 * linux-ppc-low.c (emit_insns): New function.
8229 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8230 (ppc_emit_prologue): New function.
8231 (ppc_emit_epilogue): New function.
8232 (ppc_emit_add): New function.
8233 (ppc_emit_sub): New function.
8234 (ppc_emit_mul): New function.
8235 (ppc_emit_lsh): New function.
8236 (ppc_emit_rsh_signed): New function.
8237 (ppc_emit_rsh_unsigned): New function.
8238 (ppc_emit_ext): New function.
8239 (ppc_emit_zero_ext): New function.
8240 (ppc_emit_log_not): New function.
8241 (ppc_emit_bit_and): New function.
8242 (ppc_emit_bit_or): New function.
8243 (ppc_emit_bit_xor): New function.
8244 (ppc_emit_bit_not): New function.
8245 (ppc_emit_equal): New function.
8246 (ppc_emit_less_signed): New function.
8247 (ppc_emit_less_unsigned): New function.
8248 (ppc_emit_ref): New function.
8249 (ppc_emit_const): New function.
8250 (ppc_emit_reg): New function.
8251 (ppc_emit_pop): New function.
8252 (ppc_emit_stack_flush): New function.
8253 (ppc_emit_swap): New function.
8254 (ppc_emit_stack_adjust): New function.
8255 (ppc_emit_call): New function.
8256 (ppc_emit_int_call_1): New function.
8257 (ppc_emit_void_call_2): New function.
8258 (ppc_emit_if_goto): New function.
8259 (ppc_emit_goto): New function.
8260 (ppc_emit_eq_goto): New function.
8261 (ppc_emit_ne_goto): New function.
8262 (ppc_emit_lt_goto): New function.
8263 (ppc_emit_le_goto): New function.
8264 (ppc_emit_gt_goto): New function.
8265 (ppc_emit_ge_goto): New function.
8266 (ppc_write_goto_address): New function.
8267 (ppc_emit_ops_impl): New static variable.
8268 (ppc64v1_emit_prologue): New function.
8269 (ppc64v2_emit_prologue): New function.
8270 (ppc64_emit_epilogue): New function.
8271 (ppc64_emit_add): New function.
8272 (ppc64_emit_sub): New function.
8273 (ppc64_emit_mul): New function.
8274 (ppc64_emit_lsh): New function.
8275 (ppc64_emit_rsh_signed): New function.
8276 (ppc64_emit_rsh_unsigned): New function.
8277 (ppc64_emit_ext): New function.
8278 (ppc64_emit_zero_ext): New function.
8279 (ppc64_emit_log_not): New function.
8280 (ppc64_emit_bit_and): New function.
8281 (ppc64_emit_bit_or): New function.
8282 (ppc64_emit_bit_xor): New function.
8283 (ppc64_emit_bit_not): New function.
8284 (ppc64_emit_equal): New function.
8285 (ppc64_emit_less_signed): New function.
8286 (ppc64_emit_less_unsigned): New function.
8287 (ppc64_emit_ref): New function.
8288 (ppc64_emit_const): New function.
8289 (ppc64v1_emit_reg): New function.
8290 (ppc64v2_emit_reg): New function.
8291 (ppc64_emit_pop): New function.
8292 (ppc64_emit_stack_flush): New function.
8293 (ppc64_emit_swap): New function.
8294 (ppc64v1_emit_call): New function.
8295 (ppc64v2_emit_call): New function.
8296 (ppc64v1_emit_int_call_1): New function.
8297 (ppc64v2_emit_int_call_1): New function.
8298 (ppc64v1_emit_void_call_2): New function.
8299 (ppc64v2_emit_void_call_2): New function.
8300 (ppc64_emit_if_goto): New function.
8301 (ppc64_emit_eq_goto): New function.
8302 (ppc64_emit_ne_goto): New function.
8303 (ppc64_emit_lt_goto): New function.
8304 (ppc64_emit_le_goto): New function.
8305 (ppc64_emit_gt_goto): New function.
8306 (ppc64_emit_ge_goto): New function.
8307 (ppc64v1_emit_ops_impl): New static variable.
8308 (ppc64v2_emit_ops_impl): New static variable.
8309 (ppc_emit_ops): New function.
8310 (linux_low_target): Wire in ppc_emit_ops.
8311
a2174ba4
MK
83122016-03-31 Wei-cheng Wang <cole945@gmail.com>
8313 Marcin Kościelnicki <koriakin@0x04.net>
8314
8315 PR/17221
8316 * Makefile.in: Add powerpc-*-ipa.o
8317 * configure.srv: Add ipa_obj for powerpc*-linux.
8318 * linux-ppc-ipa.c: New file.
8319 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8320 includes.
8321 (PPC_FIELD): New macro.
8322 (PPC_SEXT): New macro.
8323 (PPC_OP6): New macro.
8324 (PPC_BO): New macro.
8325 (PPC_LI): New macro.
8326 (PPC_BD): New macro.
8327 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8328 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8329 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8330 (ppc_get_thread_area): New function.
8331 (is_elfv2_inferior): New function.
8332 (gen_ds_form): New function.
8333 (GEN_STD): New macro.
8334 (GEN_STDU): New macro.
8335 (GEN_LD): New macro.
8336 (GEN_LDU): New macro.
8337 (gen_d_form): New function.
8338 (GEN_ADDI): New macro.
8339 (GEN_ADDIS): New macro.
8340 (GEN_LI): New macro.
8341 (GEN_LIS): New macro.
8342 (GEN_ORI): New macro.
8343 (GEN_ORIS): New macro.
8344 (GEN_LWZ): New macro.
8345 (GEN_STW): New macro.
8346 (GEN_STWU): New macro.
8347 (gen_xfx_form): New function.
8348 (GEN_MFSPR): New macro.
8349 (GEN_MTSPR): New macro.
8350 (GEN_MFCR): New macro.
8351 (GEN_MTCR): New macro.
8352 (GEN_SYNC): New macro.
8353 (GEN_LWSYNC): New macro.
8354 (gen_x_form): New function.
8355 (GEN_OR): New macro.
8356 (GEN_MR): New macro.
8357 (GEN_LWARX): New macro.
8358 (GEN_STWCX): New macro.
8359 (GEN_CMPW): New macro.
8360 (gen_md_form): New function.
8361 (GEN_RLDICL): New macro.
8362 (GEN_RLDICR): New macro.
8363 (gen_i_form): New function.
8364 (GEN_B): New macro.
8365 (GEN_BL): New macro.
8366 (gen_b_form): New function.
8367 (GEN_BNE): New macro.
8368 (GEN_LOAD): New macro.
8369 (GEN_STORE): New macro.
8370 (gen_limm): New function.
8371 (gen_atomic_xchg): New function.
8372 (gen_call): New function.
8373 (ppc_relocate_instruction): New function.
8374 (ppc_install_fast_tracepoint_jump_pad): New function.
8375 (ppc_get_min_fast_tracepoint_insn_len): New function.
8376 (ppc_get_ipa_tdesc_idx): New function.
8377 (the_low_target): Wire in the new functions.
8378 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8379 tdescs.
8380 * linux-ppc-tdesc.h: New file.
8381
a13c4696
MK
83822016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8383
8384 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8385 (alloc_jump_pad_buffer): New function.
8386 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8387 (alloc_jump_pad_buffer): New function.
8388 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8389 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8390 (alloc_jump_pad_buffer): New function.
8391 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8392 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8393 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8394 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8395
1cda1512
MK
83962016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8397
8398 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8399 * linux-amd64-ipa.c: Likewise.
8400 * linux-i386-ipa.c: Likewise.
8401 * linux-s390-ipa.c: Likewise.
8402 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8403 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8404 set_trace_state_variable_value_ptr.
8405 (struct ipa_sym_addresses): Likewise.
8406 (symbol_list): Likewise.
8407 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8408 accessing gdb_collect directly.
8409 (gdb_collect_ptr_type): New typedef.
8410 (get_raw_reg_ptr_type): New typedef.
8411 (get_trace_state_variable_value_ptr_type): New typedef.
8412 (set_trace_state_variable_value_ptr_type): New typedef.
8413 (gdb_collect_ptr): New global.
8414 (get_raw_reg_ptr): New global.
8415 (get_trace_state_variable_value_ptr): New global.
8416 (set_trace_state_variable_value_ptr): New global.
8417 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8418 accessing get_raw_reg directly.
8419 (get_get_tsv_func_addr): Likewise for
8420 get_trace_state_variable_value_ptr.
8421 (get_set_tsv_func_addr): Likewise for
8422 set_trace_state_variable_value_ptr.
8423 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8424
72fb5488
SM
84252016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8426
8427 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8428
28170b88
MK
84292016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8430
8431 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8432 packets.
8433 (relocate_instruction): Remove own_buf.
8434 * server.c (own_buf): Make global.
8435 (handle_v_requests): Make global.
8436 * server.h (own_buf): New declaration.
8437 (handle_v_requests): New prototype.
8438
f39e8743
MK
84392016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8440
8441 PR 18377
8442 * linux-s390-low.c (add_insns): New function.
8443 (s390_emit_prologue): New function.
8444 (s390_emit_epilogue): New function.
8445 (s390_emit_add): New function.
8446 (s390_emit_sub): New function.
8447 (s390_emit_mul): New function.
8448 (s390_emit_lsh): New function.
8449 (s390_emit_rsh_signed): New function.
8450 (s390_emit_rsh_unsigned): New function.
8451 (s390_emit_ext): New function.
8452 (s390_emit_log_not): New function.
8453 (s390_emit_bit_and): New function.
8454 (s390_emit_bit_or): New function.
8455 (s390_emit_bit_xor): New function.
8456 (s390_emit_bit_not): New function.
8457 (s390_emit_equal): New function.
8458 (s390_emit_less_signed): New function.
8459 (s390_emit_less_unsigned): New function.
8460 (s390_emit_ref): New function.
8461 (s390_emit_if_goto): New function.
8462 (s390_emit_goto): New function.
8463 (s390_write_goto_address): New function.
8464 (s390_emit_litpool): New function.
8465 (s390_emit_const): New function.
8466 (s390_emit_call): New function.
8467 (s390_emit_reg): New function.
8468 (s390_emit_pop): New function.
8469 (s390_emit_stack_flush): New function.
8470 (s390_emit_zero_ext): New function.
8471 (s390_emit_swap): New function.
8472 (s390_emit_stack_adjust): New function.
8473 (s390_emit_set_r2): New function.
8474 (s390_emit_int_call_1): New function.
8475 (s390_emit_void_call_2): New function.
8476 (s390_emit_eq_goto): New function.
8477 (s390_emit_ne_goto): New function.
8478 (s390_emit_lt_goto): New function.
8479 (s390_emit_le_goto): New function.
8480 (s390_emit_gt_goto): New function.
8481 (s390_emit_ge_goto): New function.
8482 (s390x_emit_prologue): New function.
8483 (s390x_emit_epilogue): New function.
8484 (s390x_emit_add): New function.
8485 (s390x_emit_sub): New function.
8486 (s390x_emit_mul): New function.
8487 (s390x_emit_lsh): New function.
8488 (s390x_emit_rsh_signed): New function.
8489 (s390x_emit_rsh_unsigned): New function.
8490 (s390x_emit_ext): New function.
8491 (s390x_emit_log_not): New function.
8492 (s390x_emit_bit_and): New function.
8493 (s390x_emit_bit_or): New function.
8494 (s390x_emit_bit_xor): New function.
8495 (s390x_emit_bit_not): New function.
8496 (s390x_emit_equal): New function.
8497 (s390x_emit_less_signed): New function.
8498 (s390x_emit_less_unsigned): New function.
8499 (s390x_emit_ref): New function.
8500 (s390x_emit_if_goto): New function.
8501 (s390x_emit_const): New function.
8502 (s390x_emit_call): New function.
8503 (s390x_emit_reg): New function.
8504 (s390x_emit_pop): New function.
8505 (s390x_emit_stack_flush): New function.
8506 (s390x_emit_zero_ext): New function.
8507 (s390x_emit_swap): New function.
8508 (s390x_emit_stack_adjust): New function.
8509 (s390x_emit_int_call_1): New function.
8510 (s390x_emit_void_call_2): New function.
8511 (s390x_emit_eq_goto): New function.
8512 (s390x_emit_ne_goto): New function.
8513 (s390x_emit_lt_goto): New function.
8514 (s390x_emit_le_goto): New function.
8515 (s390x_emit_gt_goto): New function.
8516 (s390x_emit_ge_goto): New function.
8517 (s390_emit_ops): New function.
8518 (struct linux_target_ops): Fill in emit_ops hook.
8519
abd9baf9
MK
85202016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8521
8522 PR 18377
8523 * Makefile.in: Add s390 IPA files.
8524 * configure.srv: Build IPA for s390.
8525 * linux-s390-ipa.c: New file.
8526 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8527 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8528 (tdesc_s390_linux32): Likewise.
8529 (init_registers_s390_linux32v1): Likewise.
8530 (tdesc_s390_linux32v1): Likewise.
8531 (init_registers_s390_linux32v2): Likewise.
8532 (tdesc_s390_linux32v2): Likewise.
8533 (init_registers_s390_linux64): Likewise.
8534 (tdesc_s390_linux64): Likewise.
8535 (init_registers_s390_linux64v1): Likewise.
8536 (tdesc_s390_linux64v1): Likewise.
8537 (init_registers_s390_linux64v2): Likewise.
8538 (tdesc_s390_linux64v2): Likewise.
8539 (init_registers_s390_te_linux64): Likewise.
8540 (tdesc_s390_te_linux64): Likewise.
8541 (init_registers_s390_vx_linux64): Likewise.
8542 (tdesc_s390_vx_linux64): Likewise.
8543 (init_registers_s390_tevx_linux64): Likewise.
8544 (tdesc_s390_tevx_linux64): Likewise.
8545 (init_registers_s390x_linux64): Likewise.
8546 (tdesc_s390x_linux64): Likewise.
8547 (init_registers_s390x_linux64v1): Likewise.
8548 (tdesc_s390x_linux64v1): Likewise.
8549 (init_registers_s390x_linux64v2): Likewise.
8550 (tdesc_s390x_linux64v2): Likewise.
8551 (init_registers_s390x_te_linux64): Likewise.
8552 (tdesc_s390x_te_linux64): Likewise.
8553 (init_registers_s390x_vx_linux64): Likewise.
8554 (tdesc_s390x_vx_linux64): Likewise.
8555 (init_registers_s390x_tevx_linux64): Likewise.
8556 (tdesc_s390x_tevx_linux64): Likewise.
8557 (have_hwcap_s390_vx): New static variable.
8558 (s390_arch_setup): Fill have_hwcap_s390_vx.
8559 (s390_get_thread_area): New function.
8560 (s390_ft_entry_gpr_esa): New const.
8561 (s390_ft_entry_gpr_zarch): New const.
8562 (s390_ft_entry_misc): New const.
8563 (s390_ft_entry_fr): New const.
8564 (s390_ft_entry_vr): New const.
8565 (s390_ft_main_31): New const.
8566 (s390_ft_main_64): New const.
8567 (s390_ft_exit_fr): New const.
8568 (s390_ft_exit_vr): New const.
8569 (s390_ft_exit_misc): New const.
8570 (s390_ft_exit_gpr_esa): New const.
8571 (s390_ft_exit_gpr_zarch): New const.
8572 (append_insns): New function.
8573 (s390_relocate_instruction): New function.
8574 (s390_install_fast_tracepoint_jump_pad): New function.
8575 (s390_get_min_fast_tracepoint_insn_len): New function.
8576 (s390_get_ipa_tdesc_idx): New function.
8577 (struct linux_target_ops): Wire in the above functions.
8578 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8579 * linux-s390-tdesc.h: New file.
8580
a4105d04
MK
85812016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8582
8583 * linux-s390-low.c (s390_supports_tracepoints): New function.
8584 (struct linux_target_ops): Fill supports_tracepoints hook.
8585
35ac8b3e
YQ
85862016-03-18 Yao Qi <yao.qi@linaro.org>
8587
8588 * linux-low.c (lwp_signal_can_be_delivered): New function.
8589 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8590
94610ec4
YQ
85912016-03-18 Yao Qi <yao.qi@linaro.org>
8592
8593 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8594 0 if signal is enqueued. Remove 'signal' from one debugging
8595 message. Move one debugging message to some lines below.
8596 Remove code setting 'signal' to 0.
8597
80aea927
YQ
85982016-03-18 Yao Qi <yao.qi@linaro.org>
8599
8600 * linux-low.c (linux_low_filter_event): Remove redundant
8601 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8602
b04fd3be
MK
86032016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8604
8605 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8606 (struct linux_target_ops): Wire in the above.
8607
c40c8d4b
YQ
86082016-03-03 Yao Qi <yao.qi@linaro.org>
8609
8610 * linux-low.c: Update comments to start_step_over.
8611
0f8288ae
YQ
86122016-03-03 Yao Qi <yao.qi@linaro.org>
8613
8614 PR server/19736
8615 * linux-low.c (handle_extended_wait): Set child suspended
8616 if event_lwp->bp_reinsert isn't zero.
8617
fdbd04a8
YQ
86182016-03-02 Yao Qi <yao.qi@linaro.org>
8619
8620 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8621 enqueue_pending_signal.
8622
6896a8fa
MK
86232016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8624
8625 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8626 is actually loaded.
8627
ab503087
MK
86282016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8629
8630 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8631 (s390_regmap_3264) [!__s390x__]: New global.
8632 (s390_collect_ptrace_register): Skip map entries containing -1.
8633 (s390_supply_ptrace_register): Ditto.
8634 (s390_fill_gprs_high): New function.
8635 (s390_store_gprs_high): New function.
8636 (s390_regsets): Add NT_S390_HIGH_GPRS.
8637 (s390_get_hwcap): Enable on 31-bit.
8638 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8639 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8640 Detect NT_S390_HIGH_GPRS.
8641 (s390_usrregs_info_3264): Enable on 31-bit.
8642 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8643 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8644
ae91f625
MK
86452016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8646
8647 PR gdb/13808
8648 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8649 * configure.srv: Ditto.
8650 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8651 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8652 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8653 (init_registers_amd64_linux): Remove prototype.
8654 (tdesc_amd64_linux): Remove declaration.
8655 (get_ipa_tdesc): New function.
8656 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8657 initialize remaining tdescs.
8658 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8659 (init_registers_i386_linux): Remove prototype.
8660 (tdesc_i386_linux): Remove declaration.
8661 (get_ipa_tdesc): New function.
8662 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8663 initialize remaining tdescs.
8664 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8665 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8666 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8667 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8668 (x86_get_ipa_tdesc_idx): New function.
8669 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8670 * linux-x86-tdesc.h: New file.
8671 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8672 (target_get_ipa_tdesc_idx): New macro.
8673 * tracepoint.c (ipa_tdesc_idx): New macro.
8674 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8675 (symbol_list): Add ipa_tdesc_idx.
8676 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8677 (ipa_tdesc): Remove.
8678 (ipa_tdesc_idx): New variable.
8679 (get_context_regcache): Use get_ipa_tdesc.
8680 (gdb_collect): Ditto.
8681 (gdb_probe): Ditto.
8682 * tracepoint.h (get_ipa_tdesc): New prototype.
8683 (ipa_tdesc): Remove.
8684
e7ad2f14
PA
86852016-02-24 Pedro Alves <palves@redhat.com>
8686
8687 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8688 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8689 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8690 Factor out common code between the USE_SIGTRAP_SIGINFO and
8691 !USE_SIGTRAP_SIGINFO blocks.
8692 (linux_low_filter_event): Call save_stop_reason instead of
8693 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8694 Update comments.
8695 (linux_wait_1): Update comments.
8696
657f9cde
WW
86972016-02-24 Wei-cheng Wang <cole945@gmail.com>
8698
8699 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8700 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8701 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8702 ppc_insert_point, ppc_remove_point.
8703
b00b61e1
MK
87042016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8705
8706 * linux-s390-low.c (s390_supports_z_point_type): New function.
8707 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8708
553cb527
YQ
87092016-02-16 Yao Qi <yao.qi@linaro.org>
8710
8711 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8712 PC. Get pc from regcache_read_pc.
8713
a5652c21
YQ
87142016-02-12 Yao Qi <yao.qi@linaro.org>
8715
8716 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8717 or linux_get_pc_32bit.
8718 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8719
ed443b61
YQ
87202016-02-12 Yao Qi <yao.qi@linaro.org>
8721
8722 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8723 arm_linux_get_next_pcs_fixup.
8724
020ecd38
MK
87252016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8726
8727 * tracepoint.c (x_tracepoint_action_download): Change
8728 write_inferior_data_ptr to write_inferior_data_pointer.
8729 (cmd_qtstart): Likewise.
8730 (write_inferior_data_ptr): Remove.
8731 (download_agent_expr): Change write_inferior_data_ptr to
8732 write_inferior_data_pointer.
8733 (download_tracepoint_1): Likewise.
8734 (download_tracepoint): Likewise.
8735 (download_trace_state_variables): Likewise.
8736
7cae9051
WW
87372016-02-11 Wei-cheng Wang <cole945@gmail.com>
8738 Marcin Kościelnicki <koriakin@0x04.net>
8739
8740 * tracepoint.c (struct tracepoint_action_ops): Remove.
8741 (struct tracepoint_action): Remove ops.
8742 (m_tracepoint_action_download, r_tracepoint_action_download)
8743 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8744 size and offset accordingly.
8745 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8746 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8747 (tracepoint_action_send, tracepoint_action_download): New functions.
8748 Helpers for trace action handlers.
8749 (add_tracepoint_action): Remove setup actions ops.
8750 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8751
9f6a71b4
YQ
87522016-02-10 Yao Qi <yao.qi@linaro.org>
8753
8754 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8755
1e94266c
SM
87562016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8757
8758 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8759 to AC_OUTPUT.
8760 * configure: Regenerate.
8761
8adce034
SM
87622016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8763
8764 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8765 void * to gdb_byte *.
8766 * linux-low.c (siginfo_fixup): Likewise.
8767 (linux_xfer_siginfo): Likewise.
8768 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8769 Likewise.
8770 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8771
93813b37
WT
87722016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8773
8774 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8775 to srv_tgtobj.
8776 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8777 to srv_tgtobj.
8778 * linux-x86-low.c [__x86_64__]: Include
8779 "nat/amd64-linux-siginfo.h".
8780 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8781 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8782 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8783 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8784 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8785 (cpt_si_fd, si_timerid, si_overrun): Move from
8786 nat/amd64-linux-siginfo.c.
8787 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8788
8424cc97
SM
87892016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8790
8791 * server.c (skip_to_semicolon): Remove.
8792 (process_point_options): Use strchrnul instead of
8793 skip_to_semicolon.
8794
4d18591b
YQ
87952016-01-26 Yao Qi <yao.qi@linaro.org>
8796
8797 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8798 * linux-low.c (install_software_single_step_breakpoints): Don't
8799 call regcache_read_pc.
8800 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8801 argument pc.
8802
d8020970
YQ
88032016-01-26 Yao Qi <yao.qi@linaro.org>
8804
8805 * linux-low.c (install_software_single_step_breakpoints): Call
8806 regcache_read_pc instead of get_pc.
8807
8b207339
YQ
88082016-01-26 Yao Qi <yao.qi@linaro.org>
8809
8810 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8811 (unblock_async_io): Rename to ...
8812 (block_unblock_async_io): ... it. New function.
8813 (enable_async_io): Don't install SIGIO handler. Unblock it
8814 instead.
8815 (disable_async_io): Don't ignore SIGIO. Block it instead.
8816 (initialize_async_io): Install SIGIO handler. Don't call
8817 unblock_async_io.
8818
18879fef
YQ
88192016-01-26 Yao Qi <yao.qi@linaro.org>
8820
8821 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8822 first character is '\003', call *the_target->request_interrupt.
8823
a0f8e08a
YQ
88242016-01-25 Yao Qi <yao.qi@linaro.org>
8825
8826 * remote-utils.c (new_thread_notify): Remove.
8827 (dead_thread_notify): Likewise.
8828 * remote-utils.h (new_thread_notify): Remove declaration.
8829 (dead_thread_notify): Likewise.
8830
cc5fd9ab
MK
88312016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8832
8833 * gdb.trace/pending.exp: Fix expected message on continue.
8834
99e8eb11
MK
88352016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8836
8837 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8838 it works properly on big-endian machines where sizeof (CORE_ADDR)
8839 != sizeof (void *).
8840
a994041d
PA
88412016-01-21 Pedro Alves <palves@redhat.com>
8842
8843 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8844 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8845 * configure: Regenerate.
8846
f7a6a40d
YQ
88472016-01-21 Yao Qi <yao.qi@linaro.org>
8848
8849 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8850 is_thumb and set it according to CPSR saved on the stack.
8851 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8852 arm_sigreturn_next_pc.
8853
6f69e520
YQ
88542016-01-18 Yao Qi <yao.qi@linaro.org>
8855
8856 * linux-low.c (linux_set_pc_64bit): New function.
8857 (linux_get_pc_64bit): New function.
8858 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8859 Declare.
8860 * linux-sparc-low.c (debug_threads): Remove declaration.
8861 (sparc_get_pc): Remove.
8862 (the_low_target): Use linux_get_pc_64bit instead of
8863 sparc_get_pc.
8864 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8865 (the_low_target): Use linux_get_pc_64bit and
8866 linux_set_pc_64bit.
8867
276d4552
YQ
88682016-01-18 Yao Qi <yao.qi@linaro.org>
8869
8870 * linux-arm-low.c (debug_threads): Remove declaration.
8871 (arm_get_pc, arm_set_pc): Remove.
8872 (the_low_target): Use linux_get_pc_32bit and
8873 linux_set_pc_32bit.
8874 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8875 (the_low_target): Use linux_get_pc_32bit and
8876 linux_set_pc_32bit.
8877 * linux-cris-low.c (debug_threads): Remove declaration.
8878 (cris_get_pc, cris_set_pc,): Remove.
8879 (the_low_target): Use linux_get_pc_32bit and
8880 linux_set_pc_32bit.
8881 * linux-crisv32-low.c (debug_threads): Remove declaration.
8882 (cris_get_pc, cris_set_pc): Remove.
8883 (the_low_target): Use linux_get_pc_32bit and
8884 linux_set_pc_32bit.
8885 * linux-low.c: Include inttypes.h.
8886 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8887 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8888 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8889 (the_low_target): Use linux_get_pc_32bit and
8890 linux_set_pc_32bit.
8891 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8892 (the_low_target): Use linux_get_pc_32bit and
8893 linux_set_pc_32bit.
8894 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8895 (the_low_target): Use linux_get_pc_32bit and
8896 linux_set_pc_32bit.
8897 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8898 (the_low_target): Use linux_get_pc_32bit and
8899 linux_set_pc_32bit.
8900 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8901 (the_low_target): Use linux_get_pc_32bit and
8902 linux_set_pc_32bit.
8903
eb0edac8
GB
89042016-01-18 Gary Benson <gbenson@redhat.com>
8905
8906 * configure.ac (AC_FUNC_FORK): New check.
8907 * config.in: Regenerate.
8908 * configure: Likewise.
8909
1b451dda
YQ
89102016-01-14 Yao Qi <yao.qi@linaro.org>
8911
8912 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8913 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8914 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8915 arm_get_next_pcs_ctor.
8916
82075af2
JS
89172016-01-12 Josh Stone <jistone@redhat.com>
8918 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8919
8920 * inferiors.h: Include "gdb_vecs.h".
8921 (struct process_info): Add syscalls_to_catch.
8922 * inferiors.c (remove_process): Free syscalls_to_catch.
8923 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8924 syscall_return stops.
8925 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8926 * server.c (handle_general_set): Handle QCatchSyscalls.
8927 (handle_query): Report support for QCatchSyscalls.
8928 * target.h (struct target_ops): Add supports_catch_syscall.
8929 (target_supports_catch_syscall): New macro.
8930 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8931 (struct lwp_info): Add syscall_state.
8932 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8933 Maintain syscall_state and syscalls_to_catch across exec.
8934 (get_syscall_trapinfo): New function, proxy to the_low_target.
8935 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8936 (linux_low_filter_event): Toggle syscall_state entry/return for
8937 syscall traps, and set it ignored for all others.
8938 (gdb_catching_syscalls_p): New function.
8939 (gdb_catch_this_syscall_p): New function.
8940 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8941 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8942 (linux_supports_catch_syscall): New function.
8943 (linux_target_ops): Install it.
8944 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8945 (the_low_target): Install it.
8946
8f13a3ce
MF
89472016-01-12 Mike Frysinger <vapier@gentoo.org>
8948
8949 * acinclude.m4: Include new ../warning.m4 file.
8950 * configure: Regenerated.
8951 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8952
5b3da067
MF
89532016-01-12 Mike Frysinger <vapier@gentoo.org>
8954
8955 * ax.c (is_goto_target): Mark static.
8956 * linux-low.c (register_addr): Likewise.
8957 (linux_fetch_registers, linux_store_registers): Likewise.
8958 * mem-break.c (any_persistent_commands): Fix old prototype.
8959 (add_commands_to_breakpoint): Mark static.
8960 * regcache.c (find_register_by_name): Delete unused func.
8961 * remote-utils.c (hex_or_minus_one): Mark static.
8962 * server.c (monitor_show_help): Mark static.
8963 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8964 handle_v_requests): Likewise.
8965
bc504a31
PA
89662016-01-12 Pedro Alves <palves@redhat.com>
8967
8968 Remove use of the registered trademark symbol throughout.
8969
5a0dd67a
YQ
89702016-01-08 Yao Qi <yao.qi@linaro.org>
8971
8972 * remote-utils.c (getpkt): If c is '\003', call target hook
8973 request_interrupt.
8974
b2ca446f
YQ
89752016-01-06 Yao Qi <yao.qi@linaro.org>
8976
8977 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8978 linux-aarch32-low.c.
8979 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8980 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8981 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8982 (thumb2_breakpoint): Declare.
8983 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8984 linux-aarch32-low.h.
8985 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8986 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8987 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8988
edd88788
JB
89892016-01-01 Joel Brobecker <brobecker@adacore.com>
8990
8991 * gdbreplay.c (gdbreplay_version): Change copyright year in
8992 version message.
8993 * server.c (gdbserver_version): Likewise.
8994
65da7f14
PP
89952015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8996
8997 * server.c (crc32_table): Delete.
8998 (crc32): Use libiberty's xcrc32 function.
8999
4abd5ed2
JB
90002015-12-22 Joel Brobecker <brobecker@adacore.com>
9001
9002 * lynx-low.c (lynx_delete_thread_callback): New function.
9003 (lynx_mourn): Properly delete our process and all of its
9004 threads. Remove call to clear_inferiors.
9005
0e50fe5c
JB
90062015-12-22 Joel Brobecker <brobecker@adacore.com>
9007
9008 * target.c (thread_search_callback): Add check that
9009 the thread_stopped target callback is not NULL before
9010 calling it.
9011
35adc03f
YQ
90122015-12-21 Yao Qi <yao.qi@linaro.org>
9013
9014 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9015 arm breakpoint.
9016
bd2b2909
AT
90172015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9018
9019 * server.c (handle_query): Call target_supports_software_single_step.
9020
7fe5e27e
AT
90212015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9022
9023 * linux-low.c (single_step): New function.
9024 (linux_resume_one_lwp_throw): Call single_step.
9025 (start_step_over): Likewise.
9026
d9311bfa
AT
90272015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9028
9029 * Makefile.in (SFILES): Append arch/arm-linux.c,
9030 arch/arm-get-next-pcs.c.
9031 (arm-linux.o): New rule.
9032 (arm-get-next-pcs.o): New rule.
9033 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9034 arm-linux.o.
9035 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9036 to linux-aarch32-low.c.
9037 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9038 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9039 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9040 (thumb2_breakpoint_len): Likewise.
9041 (arm_is_thumb_mode): Make non-static.
9042 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9043 from linux-aarch32-low.c.
9044 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9045 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9046 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9047 (thumb2_breakpoint_len): Likewise.
9048 (arm_is_thumb_mode): New declaration.
9049 * linux-arm-low.c: Include arch/arm-linux.h
9050 aarch/arm-get-next-pcs.h, sys/syscall.h.
9051 (get_next_pcs_ops): New struct.
9052 (get_next_pcs_addr_bits_remove): New function.
9053 (get_next_pcs_is_thumb): New function.
9054 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9055 (arm_sigreturn_next_pc): Likewise.
9056 (get_next_pcs_syscall_next_pc): Likewise.
9057 (arm_gdbserver_get_next_pcs): Likewise.
9058 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9059 Initialize.
9060 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9061 * server.h: Include gdb_vecs.h.
9062
68ce2059
AT
90632015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9064
9065 * Makefile.in (SFILES): Append common/common-regcache.c.
9066 (OBS): Append common-regcache.o.
9067 (common-regcache.o): New rule.
9068 * regcache.c (init_register_cache): Initialize cache to
9069 REG_UNAVAILABLE.
9070 (regcache_raw_read_unsigned): New function.
9071 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9072 register_status enum.
9073
fa5308bd
AT
90742015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9075
9076 * linux-aarch64-low.c (the_low_targets): Rename
9077 breakpoint_reinsert_addr to get_next_pcs.
9078 * linux-arm-low.c (the_low_targets): Likewise.
9079 * linux-bfin-low.c (the_low_targets): Likewise.
9080 * linux-cris-low.c (the_low_targets): Likewise.
9081 * linux-crisv32-low.c (the_low_targets): Likewise.
9082 * linux-low.c (can_software_single_step): Likewise.
9083 (install_software_single_step_breakpoints): New function.
9084 (start_step_over): Use install_software_single_step_breakpoints.
9085 * linux-low.h: New CORE_ADDR vector.
9086 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9087 get_next_pcs.
9088 * linux-mips-low.c (the_low_targets): Likewise.
9089 * linux-nios2-low.c (the_low_targets): Likewise.
9090 * linux-sparc-low.c (the_low_targets): Likewise.
9091
4a6ed09b
PA
90922015-12-17 Pedro Alves <palves@redhat.com>
9093
9094 * linux-low.c (linux_kill_one_lwp): Remove references to
9095 LinuxThreads.
9096 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9097 to 'kill'.
9098 (linux_init_signals): Delete.
9099 (initialize_low): Adjust.
9100 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9101
7544db95
PA
91022015-12-16 Pedro Alves <palves@redhat.com>
9103
9104 * configure.ac (compiler warning flags): When testing a
9105 -Wno-foo option, check whether -Wfoo works instead.
9106 * configure: Regenerate.
9107
8020350c
DB
91082015-12-11 Don Breazeal <donb@codesourcery.com>
9109
9110 * server.c (process_serial_event): Don't exit from gdbserver
9111 in remote mode if there are still active inferiors.
9112
db91f502
YQ
91132015-12-11 Yao Qi <yao.qi@linaro.org>
9114
9115 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9116 arm_breakpoint_at if the process is 32-bit.
9117
b37a6290
YQ
91182015-12-11 Yao Qi <yao.qi@linaro.org>
9119
9120 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9121 arm breakpoint.
9122
17b1509a
YQ
91232015-12-07 Yao Qi <yao.qi@linaro.org>
9124
9125 * configure.srv: Append arm.o to srv_tgtobj for
9126 aarch64*-*-linux* target.
9127 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9128 from linux-arm-low.c.
9129 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9130 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9131 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9132 (thumb2_breakpoint_len): Likewise.
9133 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9134 (arm_breakpoint_kinds): Likewise.
9135 (arm_breakpoint_kind_from_pc): Likewise.
9136 (arm_sw_breakpoint_from_kind): Likewise.
9137 (arm_breakpoint_kind_from_current_state): Likewise.
9138 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9139 (arm_sw_breakpoint_from_kind): Declare.
9140 (arm_breakpoint_kind_from_current_state): Declare.
9141 (arm_breakpoint_at): Declare.
9142 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9143 arm_sw_breakpoint_from_kind if process is 32-bit.
9144 (aarch64_breakpoint_kind_from_pc): New function.
9145 (aarch64_breakpoint_kind_from_current_state): New function.
9146 (the_low_target): Initialize fields breakpoint_kind_from_pc
9147 and breakpoint_kind_from_current_state.
9148 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9149 linux-aarch32-low.c.
9150 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9151 (arm_breakpoint, arm_breakpoint_len): Likewise.
9152 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9153 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9154 (arm_is_thumb_mode): Likewise.
9155 (arm_breakpoint_at): Likewise.
9156 (arm_breakpoint_kind_from_pc): Likewise.
9157 (arm_sw_breakpoint_from_kind): Likewise.
9158 (arm_breakpoint_kind_from_current_state): Likewise.
9159
9160 Revert:
9161 2015-08-04 Yao Qi <yao.qi@linaro.org>
9162
9163 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9164 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9165 * server.c (extended_protocol): Remove "static".
9166 * server.h (extended_protocol): Declare it.
9167
ece66d65
JS
91682015-12-04 Josh Stone <jistone@redhat.com>
9169
9170 * target.h (struct target_ops) <arch_setup>: Rename to ...
9171 (struct target_ops) <post_create_inferior>: ... this.
9172 (target_arch_setup): Rename to ...
9173 (target_post_create_inferior): ... this, calling post_create_inferior.
9174 * server.c (start_inferior): Update target_arch_setup calls to
9175 target_post_create_inferior.
9176 * linux-low.c (linux_low_ptrace_options): Forward declare.
9177 (linux_arch_setup): Update its comment for general use.
9178 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9179 (struct linux_target_ops): Use linux_post_create_inferior.
9180 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9181 to post_create_inferior.
9182 * nto-low.c (struct nto_target_ops): Likewise.
9183 * spu-low.c (struct spu_target_ops): Likewise.
9184 * win32-low.c (struct win32_target_ops): Likewise.
9185
e58c48b4
AT
91862015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9187
9188 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9189
fbec8956
AT
91902015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9191
9192 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9193 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9194 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9195 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9196 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9197 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9198 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9199 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9200 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9201 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9202 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9203 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9204
9b4c5f87
AT
92052015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9206
9207 * linux-low.c (linux_look_up_symbols): Don't call
9208 linux_supports_traceclone.
9209 * linux-low.h (thread_db_init): Remove use_events argument.
9210 * thread-db.c (thread_db_use_event): Remove global variable.
9211 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9212 (struct thread_db) <td_create_bp>: Remove field.
9213 (thread_db_create_event): Remove function.
9214 (thread_db_enable_reporting): Likewise.
9215 (find_one_thread): Don't check for thread_db_use_events.
9216 (attach_thread): Likewise.
9217 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9218 (try_thread_db_load_1): Don't check for thread_db_use_events.
9219 (thread_db_init): Remove use_events argument and thread events
9220 handling.
9221 (remove_thread_event_breakpoints): Remove function.
9222 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9223
7d00775e
AT
92242015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9225
9226 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9227 New function.
9228 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9229 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9230 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9231 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9232 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9233 Initialize.
9234 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9235 New function.
9236 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9237 * linux-low.c (can_hardware_single_step): Use
9238 supports_hardware_single_step.
9239 (can_software_single_step): New function.
9240 (start_step_over): Call can_software_single_step.
9241 (linux_supports_hardware_single_step): New function.
9242 (struct target_ops) <supports_software_single_step>: Initialize.
9243 * linux-low.h (struct linux_target_ops)
9244 <supports_hardware_single_step>: Initialize.
9245 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9246 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9247 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9248 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9249 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9250 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9251 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9252 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9253 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9254 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9255 Initialize.
9256 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9257 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9258 Initialize.
9259 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9260 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9261 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9262 New function.
9263 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9264 * target.h (struct target_ops): <supports_software_single_step>:
9265 New field.
9266 (target_supports_software_single_step): New macro.
9267
2d97cd35
AT
92682015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9269
9270 * linux-low.c (linux_wait_1): Fix pc advance condition.
9271 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9272 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9273
769ef81f
AT
92742015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9275
9276 * linux-arm-low.c (arm_is_thumb_mode): New function.
9277 (arm_breakpoint_at): Use arm_is_thumb_mode.
9278 (arm_breakpoint_kind_from_current_state): New function.
9279 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9280 Initialize.
9281 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9282 (linux_breakpoint_kind_from_current_state): New function.
9283 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9284 * linux-low.h (struct linux_target_ops)
9285 <breakpoint_kind_from_current_state>: New field.
9286 * target.h (struct target_ops): Likewise.
9287 (target_breakpoint_kind_from_current_state): New macro.
9288
1bebeeca
PA
92892015-11-30 Pedro Alves <palves@redhat.com>
9290
9291 * linux-low.c (linux_resume): Wake up the event loop before
9292 returning.
9293
a67a9fae
PA
92942015-11-30 Pedro Alves <palves@redhat.com>
9295
9296 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9297 check.
9298 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9299 to -1.
9300 * target.c (struct thread_search): New structure.
9301 (thread_search_callback): New function.
9302 (prev_general_thread): New global.
9303 (prepare_to_access_memory, done_accessing_memory): New functions.
9304 * target.h (prepare_to_access_memory, done_accessing_memory):
9305 Replace macros with function declarations.
9306
f2faf941
PA
93072015-11-30 Pedro Alves <palves@redhat.com>
9308
9309 PR 14618
9310 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9311 report TARGET_WAITKIND_NO_RESUMED.
9312 * remote-utils.c (prepare_resume_reply): Handle
9313 TARGET_WAITKIND_NO_RESUMED.
9314 * server.c (report_no_resumed): New global.
9315 (handle_query) <qSupported>: Handle "no-resumed+". Report
9316 "no-resumed+" support.
9317 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9318 return error if the client doesn't support no-resumed events.
9319 (push_stop_notification): New function.
9320 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9321 events if the client supports them.
9322
a681f9c9
PA
93232015-11-30 Pedro Alves <palves@redhat.com>
9324
9325 * linux-low.c (thread_still_has_status_pending_p): Don't check
9326 vCont;t here.
9327 (lwp_resumed): New function.
9328 (status_pending_p_callback): Return early if the LWP is not
9329 supposed to be resumed.
9330
65706a29
PA
93312015-11-30 Pedro Alves <palves@redhat.com>
9332
9333 * linux-low.c (handle_extended_wait): Assert that the LWP's
9334 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9335 thread create events, leave the new child's status pending.
9336 (linux_low_filter_event): If GDB wants to hear about thread exit
9337 events, leave the LWP marked dead and don't delete it.
9338 (linux_wait_for_event_filtered): Don't check for thread exit.
9339 (filter_exit_event): New function.
9340 (linux_wait_1): Use it, when returning an exit event.
9341 (linux_resume_one_lwp_throw): Assert that the LWP's
9342 waitstatus is TARGET_WAITKIND_IGNORE.
9343 * remote-utils.c (prepare_resume_reply): Handle
9344 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9345 * server.c (report_thread_events): New global.
9346 (handle_general_set): Handle QThreadEvents.
9347 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9348 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9349 TARGET_WAITKIND_THREAD_EXITED.
9350 * server.h (report_thread_events): Declare.
9351
56cf4bed
PA
93522015-11-30 Pedro Alves <palves@redhat.com>
9353
9354 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9355 the thread's last_resume_kind was resume_stop.
9356
500c1d85
PA
93572015-11-30 Pedro Alves <palves@redhat.com>
9358
9359 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9360 before returning.
9361
de979965
PA
93622015-11-30 Pedro Alves <palves@redhat.com>
9363
9364 * server.c (handle_v_requests): Handle vCtrlC.
9365
34c65914
PA
93662015-11-30 Pedro Alves <palves@redhat.com>
9367
9368 * gdbthread.h (find_any_thread_of_pid): Declare.
9369 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9370 functions.
9371 * server.c (handle_query): If current_thread is NULL, look for
9372 another thread of the selected process.
9373
79efa585 93742015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9375 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9376
9377 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9378 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9379 name in reply.
9380 * target.h (struct target_ops) <thread_name>: New field.
9381 (target_thread_name): New macro.
9382
80d82c19
JB
93832015-11-23 Joel Brobecker <brobecker@adacore.com>
9384
9385 * regcache.h (regcache_invalidate_pid): Add declaration.
9386 * regcache.c (regcache_invalidate_pid): New function, extracted
9387 from regcache_invalidate.
9388 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9389 Add trivial documentation comment.
9390 * lynx-low.c: Use regcache_invalidate_pid instead of
9391 regcache_invalidate.
9392
64da5dd5
JB
93932015-11-23 Joel Brobecker <brobecker@adacore.com>
9394
9395 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9396 and Elf64_auxv_t if the target is Android.
9397
37ce4055
DE
93982015-11-22 Doug Evans <xdje42@gmail.com>
9399
9400 * target.h: #include <sys/types.h>.
9401
06e03fff
PA
94022015-11-19 Pedro Alves <palves@redhat.com>
9403
9404 * linux-low.c (linux_process_qsupported): Change prototype.
9405 Adjust.
9406 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9407 Change prototype.
9408 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9409 and adjust to loop over all features.
9410 * server.c (handle_query) <qSupported>: Adjust to call
9411 target_process_qsupported once, passing it a vector of unprocessed
9412 features.
9413 * target.h (struct target_ops) <process_qsupported>: Change
9414 prototype.
9415 (target_process_qsupported): Adjust.
9416
9a084706
PA
94172015-11-19 Pedro Alves <palves@redhat.com>
9418
9419 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9420 mode.
9421 * configure: Regenerate.
9422
dad44a1f
PA
94232015-11-19 Pedro Alves <palves@redhat.com>
9424
9425 * configure: Regenerate.
9426
231c0592
YQ
94272015-11-19 Yao Qi <yao.qi@linaro.org>
9428
9429 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9430 type to uint32_t.
9431
6c1c9a8b
YQ
94322015-11-19 Yao Qi <yao.qi@linaro.org>
9433
9434 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9435 (struct aarch64_operand): Move enum out.
9436
9caa3311
YQ
94372015-11-19 Yao Qi <yao.qi@linaro.org>
9438
9439 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9440 struct user_fpsimd_state *.
9441 (aarch64_store_fpregset): Likewise.
9442
6a69a054
YQ
94432015-11-19 Yao Qi <yao.qi@linaro.org>
9444
9445 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9446 struct user_pt_regs *.
9447 (aarch64_store_gregset): Likewise.
9448
1798301e
PA
94492015-11-18 Pedro Alves <palves@redhat.com>
9450
9451 * Makefile.in (all_object_files): Add $IPA_OBJS.
9452
ce7715e2
PA
94532015-11-17 Pedro Alves <palves@redhat.com>
9454
9455 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9456 GDB_SIGNAL_0 and gdb_signal_to_string.
9457
c0879059
PA
94582015-11-17 Pedro Alves <palves@redhat.com>
9459
9460 * win32-low.c (handle_output_debug_string): Remove parameter.
9461 (win32_kill): Remove our_status local and adjust call to
9462 handle_output_debug_string.
9463 (get_child_debug_event): Adjust call to
9464 handle_output_debug_string.
9465
1996e237
SM
94662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9467
9468 * linux-mips-low.c (mips_fill_gregset): Add cast.
9469 (mips_store_gregset): Likewise.
9470 (mips_fill_fpregset): Likewise.
9471 (mips_store_fpregset): Likewise.
9472
cbec665b
SM
94732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9474
9475 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9476 priv.
9477
eb3e3c67
SM
94782015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9479
9480 * linux-mips-low.c (mips_linux_new_thread): Change type of
9481 watch_type to enum target_hw_bp_type.
9482
171de4b8
SM
94832015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9484
9485 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9486 Change return type to arm_hwbp_type.
9487
04248ead
SM
94882015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9489
9490 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9491 (arm_store_gregset): Likewise.
9492 * linux-arm-low.c (arm_get_hwcap): Likewise.
9493 (arm_read_description): Likewise.
9494
04b3479c
SM
94952015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9496
9497 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9498
2bc84e8a
SM
94992015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9500
9501 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9502 (ppc_fill_vsxregset): Likewise.
9503 (ppc_store_vsxregset): Likewise.
9504 (ppc_fill_vrregset): Likewise.
9505 (ppc_store_vrregset): Likewise.
9506 (ppc_fill_evrregset): Likewise.
9507 (ppc_store_evrregset): Likewise.
9508
e6c5bb05
SM
95092015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9510
9511 * linux-ppc-low.c (ppc_usrregs_info): Remove
9512 forward-declaration.
9513 (ppc_arch_setup): Move lower in file.
9514
7ea45d72
SM
95152015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9516
9517 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9518 (ps_pdwrite): Likewise.
9519
69291610
HW
95202015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9521
9522 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9523 to after assert checks.
9524
b42945fd
SM
95252015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9526
9527 * proc-service.c (ps_pdread): Add/adjust casts.
9528 (ps_pdwrite): Add/adjust casts.
9529
d6f85c84
SM
95302015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9531
9532 * server.c (handle_search_memory_1): Cast return value of
9533 memmem.
9534
f98cd059
SM
95352015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9536
9537 * server.c (write_qxfer_response): Change type of data to
9538 gdb_byte *.
9539
d2412fa5
PA
95402015-10-29 Pedro Alves <palves@redhat.com>
9541
9542 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9543
c17414a2
PA
95442015-10-29 Pedro Alves <palves@redhat.com>
9545
9546 * tracepoint.c (clear_installed_tracepoints): Add casts.
9547
e053fbc4
PA
95482015-10-29 Pedro Alves <palves@redhat.com>
9549
9550 * server.c (handle_v_cont, process_serial_event): Add enum
9551 gdb_signal casts to signal parsing code.
9552
add67df8
PA
95532015-10-29 Pedro Alves <palves@redhat.com>
9554
9555 * linux-low.h (NULL_REGSET): Define.
9556 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9557 * linux-arm-low.c (arm_regsets): Likewise.
9558 * linux-crisv32-low.c (cris_regsets): Likewise.
9559 * linux-m68k-low.c (m68k_regsets): Likewise.
9560 * linux-mips-low.c (mips_regsets): Likewise.
9561 * linux-nios2-low.c (nios2_regsets): Likewise.
9562 * linux-ppc-low.c (ppc_regsets): Likewise.
9563 * linux-s390-low.c (s390_regsets): Likewise.
9564 * linux-sh-low.c (sh_regsets): Likewise.
9565 * linux-sparc-low.c (sparc_regsets): Likewise.
9566 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9567 * linux-tile-low.c (tile_regsets): Likewise.
9568 * linux-x86-low.c (x86_regsets): Likewise.
9569 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9570
50bc912a
PA
95712015-10-29 Pedro Alves <palves@redhat.com>
9572
9573 * linux-low.h (NULL_REGSET): Define.
9574 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9575 * linux-arm-low.c (arm_regsets): Likewise.
9576 * linux-crisv32-low.c (cris_regsets): Likewise.
9577 * linux-m68k-low.c (m68k_regsets): Likewise.
9578 * linux-mips-low.c (mips_regsets): Likewise.
9579 * linux-nios2-low.c (nios2_regsets): Likewise.
9580 * linux-ppc-low.c (ppc_regsets): Likewise.
9581 * linux-s390-low.c (s390_regsets): Likewise.
9582 * linux-sh-low.c (sh_regsets): Likewise.
9583 * linux-sparc-low.c (sparc_regsets): Likewise.
9584 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9585 * linux-tile-low.c (tile_regsets): Likewise.
9586 * linux-x86-low.c (x86_regsets): Likewise.
9587 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9588
682b2546
DE
95892015-10-26 Doug Evans <dje@google.com>
9590
9591 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9592
963843d4
DE
95932015-10-26 Doug Evans <dje@google.com>
9594
9595 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9596
d41401ac
DE
95972015-10-26 Doug Evans <dje@google.com>
9598
9599 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9600 for debug_printf.
9601 (attach_thread, find_new_threads_callback): Ditto.
9602
3db28855
AT
96032015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9604
9605 * mem-break.h (set_breakpoint_data): Remove.
9606
fb78e89c
AT
96072015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9608
9609 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9610 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9611 (initialize_low): Remove set_breakpoint_data call.
9612 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9613 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9614 (initialize_low): Remove set_breakpoint_data call.
9615 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9616 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9617 (initialize_low): Remove set_breakpoint_data call.
9618
2e6ee069
AT
96192015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9620
9621 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9622 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9623 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9624 * target.h (target_breakpoint_kind_from_pc): New macro.
9625
1652a986
AT
96262015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9627
9628 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9629 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9630 the default breakpoint kind.
9631
abeead09
AT
96322015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9633
9634 * linux-arm-low.c (arm_supports_z_point_type): Add software
9635 breakpoint support.
9636
b0b4b501
AT
96372015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9638
9639 * linux-arm-low.c: Refactor breakpoint definitions.
9640 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9641 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9642
8689682c
AT
96432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9644
9645 * Makefile.in: Add arm.c/o.
9646 * configure.srv: Likewise.
9647 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9648 (arm_breakpoint_kind_from_pc): New function.
9649 (arm_sw_breakpoint_from_kind): Return proper kind.
9650 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9651
27165294
AT
96522015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9653
9654 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9655 removal.
9656 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9657 (struct raw_breakpoint) <size>: Remove.
9658 (struct raw_breakpoint) <kind>: Add.
9659 (bp_size): New function.
9660 (bp_opcode): Likewise.
9661 (find_raw_breakpoint_at): Adjust for kind.
9662 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9663 (remove_memory_breakpoint): Adjust for kind call bp_size.
9664 (set_raw_breakpoint_at): Adjust for kind.
9665 (set_breakpoint): Likewise.
9666 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9667 (delete_raw_breakpoint): Adjust for kind.
9668 (delete_breakpoint): Likewise.
9669 (find_gdb_breakpoint): Likewise.
9670 (set_gdb_breakpoint_1): Likewise.
9671 (set_gdb_breakpoint): Likewise.
9672 (delete_gdb_breakpoint_1): Likewise.
9673 (delete_gdb_breakpoint): Likewise.
9674 (uninsert_raw_breakpoint): Likewise.
9675 (reinsert_raw_breakpoint): Likewise.
9676 (set_breakpoint_data): Remove.
9677 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9678 (check_mem_read): Adjust for kind call bp_size.
9679 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9680 (clone_one_breakpoint): Adjust for kind.
9681 * mem-break.h (set_gdb_breakpoint): Likewise.
9682 (delete_gdb_breakpoint): Likewise.
9683 * server.c (process_serial_event): Likewise.
9684
dd373349
AT
96852015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9686
9687 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9688 (struct linux_target_ops) <breakpoint>: Remove.
9689 (struct linux_target_ops) <breakpoint_len>: Remove.
9690 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9691 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9692 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9693 (arm_sw_breakpoint_from_kind): New function.
9694 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9695 (struct linux_target_ops) <breakpoint>: Remove.
9696 (struct linux_target_ops) <breakpoint_len>: Remove.
9697 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9698 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9699 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9700 (struct linux_target_ops) <breakpoint>: Remove.
9701 (struct linux_target_ops) <breakpoint_len>: Remove.
9702 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9703 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9704 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9705 (struct linux_target_ops) <breakpoint>: Remove.
9706 (struct linux_target_ops) <breakpoint_len>: Remove.
9707 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9708 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9709 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9710 and sw_breakpoint_from_kind to increment the pc.
9711 (linux_breakpoint_kind_from_pc): New function.
9712 (linux_sw_breakpoint_from_kind): New function.
9713 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9714 (initialize_low): Call breakpoint_kind_from_pc and
9715 sw_breakpoint_from_kind to replace breakpoint_data/len.
9716 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9717 New field.
9718 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9719 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9720 (struct linux_target_ops) <breakpoint>: Remove.
9721 (struct linux_target_ops) <breakpoint_len>: Remove.
9722 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9723 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9724 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9725 (struct linux_target_ops) <breakpoint>: Remove.
9726 (struct linux_target_ops) <breakpoint_len>: Remove.
9727 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9728 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9729 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9730 (struct linux_target_ops) <breakpoint>: Remove.
9731 (struct linux_target_ops) <breakpoint_len>: Remove.
9732 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9733 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9734 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9735 (struct linux_target_ops) <breakpoint>: Remove.
9736 (struct linux_target_ops) <breakpoint_len>: Remove.
9737 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9738 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9739 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9740 (struct linux_target_ops) <breakpoint>: Remove.
9741 (struct linux_target_ops) <breakpoint_len>: Remove.
9742 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9743 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9744 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9745 (struct linux_target_ops) <breakpoint>: Remove.
9746 (struct linux_target_ops) <breakpoint_len>: Remove.
9747 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9748 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9749 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9750 (struct linux_target_ops) <breakpoint>: Remove.
9751 (struct linux_target_ops) <breakpoint_len>: Remove.
9752 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9753 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9754 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9755 (struct linux_target_ops) <breakpoint>: Remove.
9756 (struct linux_target_ops) <breakpoint_len>: Remove.
9757 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9758 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9759 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9760 (struct linux_target_ops) <breakpoint>: Remove.
9761 (struct linux_target_ops) <breakpoint_len>: Remove.
9762 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9763 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9764 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9765 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9766 (struct linux_target_ops) <breakpoint>: Remove.
9767 (struct linux_target_ops) <breakpoint_len>: Remove.
9768 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9769 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9770 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9771 (struct linux_target_ops) <breakpoint>: Remove.
9772 (struct linux_target_ops) <breakpoint_len>: Remove.
9773 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9774 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9775
4cd98a19
AT
97762015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9777
9778 * linux-cris-low.c (cris_get_pc): Remove void arg.
9779
774ee6d2
AR
97802015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9781
9782 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9783 variable name.
9784
833dcd29
AR
97852015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9786
9787 * inferiors.c (thread_pid_matches_callback): New function.
9788 (find_thread_process): New function.
9789 (remove_thread): Reset current_thread.
9790 (remove_process): Assert threads have been removed first.
9791
8d689ee5
YQ
97922015-10-15 Yao Qi <yao.qi@linaro.org>
9793
9794 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9795 if it is 3.
9796 (aarch64_remove_point): Likewise.
9797 * regcache.c (regcache_register_size): New function.
9798
1c2e1515
YQ
97992015-10-12 Yao Qi <yao.qi@linaro.org>
9800
9801 * linux-aarch64-low.c: Update all callers as emit_load_store
9802 is renamed to aarch64_emit_load_store.
9803
e1c587c3
YQ
98042015-10-12 Yao Qi <yao.qi@linaro.org>
9805
9806 * linux-aarch64-low.c: Update all callers of function renaming
9807 from emit_insn to aarch64_emit_insn.
9808
b6542f81
YQ
98092015-10-12 Yao Qi <yao.qi@linaro.org>
9810
9811 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9812 arch/aarch64-insn.h.
9813 (struct aarch64_memory_operand): Likewise.
9814 (ENCODE): Likewise.
9815 (emit_insn): Move to arch/aarch64-insn.c.
9816 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9817 (emit_load_store): Move to arch/aarch64-insn.c.
9818 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9819 (can_encode_int32): Remove.
9820
246994ce
YQ
98212015-10-12 Yao Qi <yao.qi@linaro.org>
9822
9823 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9824 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9825 (aarch64_relocate_instruction): Likewise.
9826 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9827 (struct aarch64_insn_visitor): Likewise.
9828
0badd99f
YQ
98292015-10-12 Yao Qi <yao.qi@linaro.org>
9830
9831 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9832 (struct aarch64_insn_visitor): New.
9833 (struct aarch64_insn_relocation_data): New.
9834 (aarch64_ftrace_insn_reloc_b): New function.
9835 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9836 (aarch64_ftrace_insn_reloc_cb): Likewise.
9837 (aarch64_ftrace_insn_reloc_tb): Likewise.
9838 (aarch64_ftrace_insn_reloc_adr): Likewise.
9839 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9840 (aarch64_ftrace_insn_reloc_others): Likewise.
9841 (visitor): New.
9842 (aarch64_relocate_instruction): Use visitor.
9843
dfaffe9d
YQ
98442015-10-12 Yao Qi <yao.qi@linaro.org>
9845
9846 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9847 int. Add argument buf.
9848 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9849 aarch64_relocate_instruction.
9850
70b439f0
YQ
98512015-10-12 Yao Qi <yao.qi@linaro.org>
9852
9853 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9854 argument insn. Remove local variable insn. Don't call
9855 target_read_uint32.
9856 (aarch64_install_fast_tracepoint_jump_pad): Call
9857 target_read_uint32.
9858
7781c06f
YQ
98592015-09-30 Yao Qi <yao.qi@linaro.org>
9860
9861 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9862 (emit_load_store_pair): Likewise.
9863
9a3c8263
SM
98642015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9865
9866 * dll.c (match_dll): Add cast(s).
9867 (unloaded_dll): Likewise.
9868 * linux-low.c (second_thread_of_pid_p): Likewise.
9869 (delete_lwp_callback): Likewise.
9870 (count_events_callback): Likewise.
9871 (select_event_lwp_callback): Likewise.
9872 (linux_set_resume_request): Likewise.
9873 * server.c (accumulate_file_name_length): Likewise.
9874 (emit_dll_description): Likewise.
9875 (handle_qxfer_threads_worker): Likewise.
9876 (visit_actioned_threads): Likewise.
9877 * thread-db.c (any_thread_of): Likewise.
9878 * tracepoint.c (same_process_p): Likewise.
9879 (match_blocktype): Likewise.
9880 (build_traceframe_info_xml): Likewise.
9881
224c3ddb
SM
98822015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9883
9884 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9885 assignment.
9886 (gdb_unparse_agent_expr): Likewise.
9887 * hostio.c (require_data): Likewise.
9888 (handle_pread): Likewise.
9889 * linux-low.c (disable_regset): Likewise.
9890 (fetch_register): Likewise.
9891 (store_register): Likewise.
9892 (get_dynamic): Likewise.
9893 (linux_qxfer_libraries_svr4): Likewise.
9894 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9895 (set_fast_tracepoint_jump): Likewise.
9896 (uninsert_fast_tracepoint_jumps_at): Likewise.
9897 (reinsert_fast_tracepoint_jumps_at): Likewise.
9898 (validate_inserted_breakpoint): Likewise.
9899 (clone_agent_expr): Likewise.
9900 * regcache.c (init_register_cache): Likewise.
9901 * remote-utils.c (putpkt_binary_1): Likewise.
9902 (decode_M_packet): Likewise.
9903 (decode_X_packet): Likewise.
9904 (look_up_one_symbol): Likewise.
9905 (relocate_instruction): Likewise.
9906 (monitor_output): Likewise.
9907 * server.c (handle_search_memory): Likewise.
9908 (handle_qxfer_exec_file): Likewise.
9909 (handle_qxfer_libraries): Likewise.
9910 (handle_qxfer): Likewise.
9911 (handle_query): Likewise.
9912 (handle_v_cont): Likewise.
9913 (handle_v_run): Likewise.
9914 (captured_main): Likewise.
9915 * target.c (write_inferior_memory): Likewise.
9916 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9917 * tracepoint.c (init_trace_buffer): Likewise.
9918 (add_tracepoint_action): Likewise.
9919 (add_traceframe): Likewise.
9920 (add_traceframe_block): Likewise.
9921 (cmd_qtdpsrc): Likewise.
9922 (cmd_qtdv): Likewise.
9923 (cmd_qtstatus): Likewise.
9924 (response_source): Likewise.
9925 (response_tsv): Likewise.
9926 (cmd_qtnotes): Likewise.
9927 (gdb_collect): Likewise.
9928 (initialize_tracepoint): Likewise.
9929
afbe19f8
PL
99302015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9931
9932 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9933 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9934 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9935 <NOP>: New.
9936 (enum aarch64_condition_codes): New enum.
9937 (w0): New static global.
9938 (fp): Likewise.
9939 (lr): Likewise.
9940 (struct aarch64_memory_operand) <type>: New
9941 MEMORY_OPERAND_POSTINDEX type.
9942 (postindex_memory_operand): New helper function.
9943 (emit_ret): New function.
9944 (emit_load_store_pair): New function, factored out of emit_stp
9945 with support for MEMORY_OPERAND_POSTINDEX.
9946 (emit_stp): Rewrite using emit_load_store_pair.
9947 (emit_ldp): New function.
9948 (emit_load_store): Likewise.
9949 (emit_ldr): Mention post-index instruction in comment.
9950 (emit_ldrh): New function.
9951 (emit_ldrb): New function.
9952 (emit_ldrsw): Mention post-index instruction in comment.
9953 (emit_str): Likewise.
9954 (emit_subs): New function.
9955 (emit_cmp): Likewise.
9956 (emit_and): Likewise.
9957 (emit_orr): Likewise.
9958 (emit_orn): Likewise.
9959 (emit_eor): Likewise.
9960 (emit_mvn): Likewise.
9961 (emit_lslv): Likewise.
9962 (emit_lsrv): Likewise.
9963 (emit_asrv): Likewise.
9964 (emit_mul): Likewise.
9965 (emit_sbfm): Likewise.
9966 (emit_sbfx): Likewise.
9967 (emit_ubfm): Likewise.
9968 (emit_ubfx): Likewise.
9969 (emit_csinc): Likewise.
9970 (emit_cset): Likewise.
9971 (emit_nop): Likewise.
9972 (emit_ops_insns): New helper function.
9973 (emit_pop): Likewise.
9974 (emit_push): Likewise.
9975 (aarch64_emit_prologue): New function.
9976 (aarch64_emit_epilogue): Likewise.
9977 (aarch64_emit_add): Likewise.
9978 (aarch64_emit_sub): Likewise.
9979 (aarch64_emit_mul): Likewise.
9980 (aarch64_emit_lsh): Likewise.
9981 (aarch64_emit_rsh_signed): Likewise.
9982 (aarch64_emit_rsh_unsigned): Likewise.
9983 (aarch64_emit_ext): Likewise.
9984 (aarch64_emit_log_not): Likewise.
9985 (aarch64_emit_bit_and): Likewise.
9986 (aarch64_emit_bit_or): Likewise.
9987 (aarch64_emit_bit_xor): Likewise.
9988 (aarch64_emit_bit_not): Likewise.
9989 (aarch64_emit_equal): Likewise.
9990 (aarch64_emit_less_signed): Likewise.
9991 (aarch64_emit_less_unsigned): Likewise.
9992 (aarch64_emit_ref): Likewise.
9993 (aarch64_emit_if_goto): Likewise.
9994 (aarch64_emit_goto): Likewise.
9995 (aarch64_write_goto_address): Likewise.
9996 (aarch64_emit_const): Likewise.
9997 (aarch64_emit_call): Likewise.
9998 (aarch64_emit_reg): Likewise.
9999 (aarch64_emit_pop): Likewise.
10000 (aarch64_emit_stack_flush): Likewise.
10001 (aarch64_emit_zero_ext): Likewise.
10002 (aarch64_emit_swap): Likewise.
10003 (aarch64_emit_stack_adjust): Likewise.
10004 (aarch64_emit_int_call_1): Likewise.
10005 (aarch64_emit_void_call_2): Likewise.
10006 (aarch64_emit_eq_goto): Likewise.
10007 (aarch64_emit_ne_goto): Likewise.
10008 (aarch64_emit_lt_goto): Likewise.
10009 (aarch64_emit_le_goto): Likewise.
10010 (aarch64_emit_gt_goto): Likewise.
10011 (aarch64_emit_ge_got): Likewise.
10012 (aarch64_emit_ops_impl): New static global variable.
10013 (aarch64_emit_ops): New target function, return
10014 &aarch64_emit_ops_impl.
10015 (struct linux_target_ops): Install it.
10016
bb903df0
PL
100172015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10018
10019 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10020 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10021 aarch64-ipa.o.
10022 * linux-aarch64-ipa.c: New file.
10023 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10024 and endian.h.
10025 (aarch64_get_thread_area): New target method.
10026 (extract_signed_bitfield): New helper function.
10027 (aarch64_decode_ldr_literal): New function.
10028 (enum aarch64_opcodes): New enum.
10029 (struct aarch64_register): New struct.
10030 (struct aarch64_operand): New struct.
10031 (x0): New static global.
10032 (x1): Likewise.
10033 (x2): Likewise.
10034 (x3): Likewise.
10035 (x4): Likewise.
10036 (w2): Likewise.
10037 (ip0): Likewise.
10038 (sp): Likewise.
10039 (xzr): Likewise.
10040 (aarch64_register): New helper function.
10041 (register_operand): Likewise.
10042 (immediate_operand): Likewise.
10043 (struct aarch64_memory_operand): New struct.
10044 (offset_memory_operand): New helper function.
10045 (preindex_memory_operand): Likewise.
10046 (enum aarch64_system_control_registers): New enum.
10047 (ENCODE): New macro.
10048 (emit_insn): New helper function.
10049 (emit_b): New function.
10050 (emit_bcond): Likewise.
10051 (emit_cb): Likewise.
10052 (emit_tb): Likewise.
10053 (emit_blr): Likewise.
10054 (emit_stp): Likewise.
10055 (emit_ldp_q_offset): Likewise.
10056 (emit_stp_q_offset): Likewise.
10057 (emit_load_store): Likewise.
10058 (emit_ldr): Likewise.
10059 (emit_ldrsw): Likewise.
10060 (emit_str): Likewise.
10061 (emit_ldaxr): Likewise.
10062 (emit_stxr): Likewise.
10063 (emit_stlr): Likewise.
10064 (emit_data_processing_reg): Likewise.
10065 (emit_data_processing): Likewise.
10066 (emit_add): Likewise.
10067 (emit_sub): Likewise.
10068 (emit_mov): Likewise.
10069 (emit_movk): Likewise.
10070 (emit_mov_addr): Likewise.
10071 (emit_mrs): Likewise.
10072 (emit_msr): Likewise.
10073 (emit_sevl): Likewise.
10074 (emit_wfe): Likewise.
10075 (append_insns): Likewise.
10076 (can_encode_int32_in): New helper function.
10077 (aarch64_relocate_instruction): New function.
10078 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10079 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10080 (struct linux_target_ops): Install aarch64_get_thread_area,
10081 aarch64_install_fast_tracepoint_jump_pad and
10082 aarch64_get_min_fast_tracepoint_insn_len.
10083
787749ea
PL
100842015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10085
10086 * Makefile.in (aarch64-insn.o): New rule.
10087 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10088
9812b2e6
YQ
100892015-09-21 Yao Qi <yao.qi@linaro.org>
10090
10091 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10092
18fe412b
YQ
100932015-09-21 Yao Qi <yao.qi@linaro.org>
10094
10095 * tracepoint.c (max_jump_pad_size): Remove.
10096
a0cc84cd
YQ
100972015-09-18 Yao Qi <yao.qi@linaro.org>
10098
10099 * linux-aarch64-low.c: Don't include sys/uio.h.
10100 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10101
d78908cf
WW
101022015-09-16 Wei-cheng Wang <cole945@gmail.com>
10103
10104 * tracepoint.c (eval_result_type): Change prototype.
10105 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10106
d57e0d50
PA
101072015-09-15 Pedro Alves <palves@redhat.com>
10108
10109 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10110 Check whether to report exec events instead of checking whether
10111 multiprocess is enabled.
10112
5a676acc
PA
101132015-09-15 Pedro Alves <palves@redhat.com>
10114
10115 PR remote/18965
10116 * remote-utils.c (prepare_resume_reply): Merge
10117 TARGET_WAITKIND_VFORK_DONE switch case with the
10118 TARGET_WAITKIND_FORKED case.
10119
7c5d0fad
YQ
101202015-09-15 Yao Qi <yao.qi@linaro.org>
10121
10122 * server.c (handle_query): Check string comparison using
10123 "else if" instead of "if".
10124
750ce8d1
YQ
101252015-09-15 Yao Qi <yao.qi@linaro.org>
10126
10127 * server.c (vCont_supported): New global variable.
10128 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10129 matches. Append ";vContSupported+" to own_buf.
10130 (handle_v_requests): Append ";s;S" to own_buf if target supports
10131 hardware single step or vCont_supported is false.
10132 (capture_main): Set vCont_supported to zero.
10133
70b90b91
YQ
101342015-09-15 Yao Qi <yao.qi@linaro.org>
10135
10136 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10137 it to ...
10138 (linux_supports_hardware_single_step): ... New function.
10139 (linux_target_ops): Update.
10140 * lynx-low.c (lynx_target_ops): Set field
10141 supports_hardware_single_step to target_can_do_hardware_single_step.
10142 * nto-low.c (nto_target_ops): Likewise.
10143 * spu-low.c (spu_target_ops): Likewise.
10144 * win32-low.c (win32_target_ops): Likewise.
10145 * target.c (target_can_do_hardware_single_step): New function.
10146 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10147 Remove. <supports_hardware_single_step>: New field.
10148 (target_supports_conditional_breakpoints): Remove.
10149 (target_supports_hardware_single_step): New macro.
10150 (target_can_do_hardware_single_step): Declare.
10151 * server.c (handle_query): Use target_supports_hardware_single_step
10152 instead of target_supports_conditional_breakpoints.
10153
ade90bde
YQ
101542015-09-15 Yao Qi <yao.qi@linaro.org>
10155
10156 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10157 function.
10158 (struct linux_target_ops the_low_target): Install
10159 aarch64_linux_siginfo_fixup.
10160
94585166
DB
101612015-09-11 Don Breazeal <donb@codesourcery.com>
10162 Luis Machado <lgustavo@codesourcery.com>
10163
10164 * linux-low.c (linux_mourn): Static declaration.
10165 (linux_arch_setup): Move in front of
10166 handle_extended_wait.
10167 (linux_arch_setup_thread): New function.
10168 (handle_extended_wait): Handle exec events. Call
10169 linux_arch_setup_thread. Make event_lwp argument a
10170 pointer-to-a-pointer.
10171 (check_zombie_leaders): Do not check stopped threads.
10172 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10173 (linux_low_filter_event): Add lwp and thread for exec'ing
10174 non-leader thread if leader thread has been deleted.
10175 Refactor code into linux_arch_setup_thread and call it.
10176 Pass child lwp pointer by reference to handle_extended_wait.
10177 (linux_wait_for_event_filtered): Update comment.
10178 (linux_wait_1): Prevent clobbering exec event status.
10179 (linux_supports_exec_events): New function.
10180 (linux_target_ops) <supports_exec_events>: Initialize new member.
10181 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10182 new member.
10183 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10184 * server.c (report_exec_events): New global variable.
10185 (handle_query): Handle qSupported query for exec-events feature.
10186 (captured_main): Initialize report_exec_events.
10187 * server.h (report_exec_events): Declare new global variable.
10188 * target.h (struct target_ops) <supports_exec_events>: New
10189 member.
10190 (target_supports_exec_events): New macro.
10191 * win32-low.c (win32_target_ops) <supports_exec_events>:
10192 Initialize new member.
10193
0568462b
MM
101942015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10195
10196 * linux-low.c (linux_low_enable_btrace): Remove.
10197 (linux_target_ops): Replace linux_low_enable_btrace with
10198 linux_enable_btrace.
10199
39edd165
YQ
102002015-09-03 Yao Qi <yao.qi@linaro.org>
10201
10202 * linux-aarch64-low.c (aarch64_insert_point): Call
10203 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10204 returns true.
10205
1db33b5a
UW
102062015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10207
10208 * linux-low.c (check_stopped_by_breakpoint): Use
10209 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10210
ab290430
PA
102112015-08-27 Pedro Alves <palves@redhat.com>
10212
10213 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10214
8d749320
SM
102152015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10216
6711b7f8
SM
10217 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10218 the XNEW-family equivalent.
8d749320
SM
10219 (compile_bytecodes): Likewise.
10220 * dll.c (loaded_dll): Likewise.
10221 * event-loop.c (append_callback_event): Likewise.
10222 (create_file_handler): Likewise.
10223 (create_file_event): Likewise.
10224 * hostio.c (handle_open): Likewise.
10225 * inferiors.c (add_thread): Likewise.
10226 (add_process): Likewise.
10227 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10228 * linux-arm-low.c (arm_new_process): Likewise.
10229 (arm_new_thread): Likewise.
10230 * linux-low.c (add_to_pid_list): Likewise.
10231 (linux_add_process): Likewise.
10232 (handle_extended_wait): Likewise.
10233 (add_lwp): Likewise.
10234 (enqueue_one_deferred_signal): Likewise.
10235 (enqueue_pending_signal): Likewise.
10236 (linux_resume_one_lwp_throw): Likewise.
10237 (linux_resume_one_thread): Likewise.
10238 (linux_read_memory): Likewise.
10239 (linux_write_memory): Likewise.
10240 * linux-mips-low.c (mips_linux_new_process): Likewise.
10241 (mips_linux_new_thread): Likewise.
10242 (mips_add_watchpoint): Likewise.
10243 * linux-x86-low.c (initialize_low_arch): Likewise.
10244 * lynx-low.c (lynx_add_process): Likewise.
10245 * mem-break.c (set_raw_breakpoint_at): Likewise.
10246 (set_breakpoint): Likewise.
10247 (add_condition_to_breakpoint): Likewise.
10248 (add_commands_to_breakpoint): Likewise.
10249 (clone_agent_expr): Likewise.
10250 (clone_one_breakpoint): Likewise.
10251 * regcache.c (new_register_cache): Likewise.
10252 * remote-utils.c (look_up_one_symbol): Likewise.
10253 * server.c (queue_stop_reply): Likewise.
10254 (start_inferior): Likewise.
10255 (queue_stop_reply_callback): Likewise.
10256 (handle_target_event): Likewise.
10257 * spu-low.c (fetch_ppc_memory): Likewise.
10258 (store_ppc_memory): Likewise.
10259 * target.c (set_target_ops): Likewise.
10260 * thread-db.c (thread_db_load_search): Likewise.
10261 (try_thread_db_load_1): Likewise.
10262 * tracepoint.c (add_tracepoint): Likewise.
10263 (add_tracepoint_action): Likewise.
10264 (create_trace_state_variable): Likewise.
10265 (cmd_qtdpsrc): Likewise.
10266 (cmd_qtro): Likewise.
10267 (add_while_stepping_state): Likewise.
10268 * win32-low.c (child_add_thread): Likewise.
10269 (get_image_name): Likewise.
10270
ed8b7b42
YQ
102712015-08-25 Yao Qi <yao.qi@linaro.org>
10272
10273 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10274
db3cb7cb
YQ
102752015-08-25 Yao Qi <yao.qi@linaro.org>
10276
10277 * Makefile.in (aarch64-linux.o): New rule.
10278 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10279 srv_tgtobj.
10280 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10281 (aarch64_init_debug_reg_state): Make it extern.
10282 (aarch64_linux_prepare_to_resume): Remove.
10283
f6011a1c
YQ
102842015-08-25 Yao Qi <yao.qi@linaro.org>
10285
10286 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10287 lwp_arch_private_info and ptid_of_lwp.
10288
88e2cf7e
YQ
102892015-08-25 Yao Qi <yao.qi@linaro.org>
10290
10291 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10292 Find proc_info by find_process_pid. All callers updated.
10293
5e35436e
YQ
102942015-08-25 Yao Qi <yao.qi@linaro.org>
10295
10296 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10297 Remove.
10298 (debug_reg_change_callback): Remove.
10299 (aarch64_notify_debug_reg_change): Remove.
10300
4a8a7965
YQ
103012015-08-25 Yao Qi <yao.qi@linaro.org>
10302
10303 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10304 Call current_lwp_ptid.
10305
32a271ee
YQ
103062015-08-25 Yao Qi <yao.qi@linaro.org>
10307
10308 * linux-aarch64-low.c (debug_reg_change_callback): Use
10309 debug_printf.
10310
0d51c8d7
YQ
103112015-08-25 Yao Qi <yao.qi@linaro.org>
10312
10313 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10314
31a43dd5
YQ
103152015-08-25 Yao Qi <yao.qi@linaro.org>
10316
10317 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10318
8ee52567
YQ
103192015-08-25 Yao Qi <yao.qi@linaro.org>
10320
10321 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10322 the code.
10323
ff3f0f45
YQ
103242015-08-25 Yao Qi <yao.qi@linaro.org>
10325
10326 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10327 Remove.
10328 (debug_reg_change_callback): Remove argument entry and add argument
10329 lwp. Remove local variable thread. Don't print thread id in the
10330 debugging output. Don't check whether pid of thread equals to pid.
10331 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10332 iterate_over_lwps instead find_inferior.
10333
3d40fbb5
PA
103342015-08-24 Pedro Alves <palves@redhat.com>
10335
10336 * inferiors.c (get_first_process): New function.
10337 * inferiors.h (get_first_process): New declaration.
10338 * remote-utils.c (read_ptid): Default to the first process in the
10339 list, instead of to the current thread's process.
10340
438e1e42
PA
103412015-08-24 Pedro Alves <palves@redhat.com>
10342
10343 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10344 * event-loop.c: Likewise.
10345 * remote-utils.c: Likewise.
10346 * tracepoint.c: Likewise.
10347
a8c6d4fc
PA
103482015-08-24 Pedro Alves <palves@redhat.com>
10349
10350 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10351 ptid_get_lwp.
10352
99b0bb12
PA
103532015-08-21 Pedro Alves <palves@redhat.com>
10354
10355 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10356 instead of literal 1.
10357
f8904751
PA
103582015-08-21 Pedro Alves <palves@redhat.com>
10359
10360 * tdesc.c (default_description): Explicitly zero-initialize.
10361
465a859e
PA
103622015-08-21 Pedro Alves <palves@redhat.com>
10363
10364 PR gdb/18749
10365 * inferiors.c (remove_thread): Discard any pending stop reply for
10366 this thread.
10367 * server.c (remove_all_on_match_pid): Rename to ...
10368 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10369 instead of a pid.
10370 (discard_queued_stop_replies): Change parameter to a ptid. Now
10371 extern.
10372 (handle_v_kill, kill_inferior_callback, captured_main)
10373 (process_serial_event): Adjust.
10374 * server.h (discard_queued_stop_replies): Declare.
10375
f0db101d
PA
103762015-08-21 Pedro Alves <palves@redhat.com>
10377
10378 * linux-low.c (wait_for_sigstop): Always switch to no thread
10379 selected if the previously current thread dies.
10380 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10381 process instead of the current thread's.
10382 * remote-utils.c (input_interrupt): Don't check if there's no
10383 current thread.
10384 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10385 current thread to the general thread fails, error out.
10386 (handle_qxfer_auxv, handle_qxfer_libraries)
10387 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10388 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10389 (handle_query): Check if there's a thread selected instead of
10390 checking whether there's any thread in the thread list.
10391 (handle_qxfer_threads, handle_qxfer_btrace)
10392 (handle_qxfer_btrace_conf): Don't error out early if there's no
10393 thread in the thread list.
10394 (handle_v_cont, myresume): Don't set the current thread to the
10395 continue thread.
10396 (process_serial_event) <Hg handling>: Also set thread_id if the
10397 previous general thread is still alive.
10398 (process_serial_event) <g/G handling>: If setting the current
10399 thread to the general thread fails, error out.
10400 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10401 thread's lwp instead of the current thread's.
10402 * target.c (set_desired_thread): If the desired thread was not
10403 found, leave the current thread pointing to NULL. Return an int
10404 (boolean) indicating success.
10405 * target.h (set_desired_thread): Change return type to int.
10406
40045d91
MF
104072015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10408
10409 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10410 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10411 #includes.
10412 (ps_get_thread_area): New function.
10413
45face3b
GB
104142015-08-19 Gary Benson <gbenson@redhat.com>
10415
10416 * hostio.c (handle_pread): Do not attempt to read more data
10417 than hostio_reply_with_data can fit in a packet.
10418
16d5f642
JB
104192015-08-18 Joel Brobecker <brobecker@adacore.com>
10420
10421 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10422
a738da3a
MF
104232015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10424
10425 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10426
33ebda9d
PA
104272015-08-06 Pedro Alves <palves@redhat.com>
10428
10429 * tracepoint.c (expr_eval_result): Now an int.
10430
a44892be
PA
104312015-08-06 Pedro Alves <palves@redhat.com>
10432
10433 * gdbthread.h (struct regcache): Forward declare.
10434 (struct thread_info) <regcache_data>: Now a struct regcache
10435 pointer.
10436 * inferiors.c (inferior_regcache_data)
10437 (set_inferior_regcache_data): Now work with struct regcache
10438 pointers.
10439 * inferiors.h (struct regcache): Forward declare.
10440 (inferior_regcache_data, set_inferior_regcache_data): Now work
10441 with struct regcache pointers.
10442 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10443 (free_register_cache_thread): Remove struct regcache pointer
10444 casts.
10445
608a1e46
PA
104462015-08-06 Pedro Alves <palves@redhat.com>
10447
10448 * server.c (captured_main): On error, print the exception message
10449 to stderr, and if run_once is set, throw a quit.
10450
f0ce0d3a
PA
104512015-08-06 Pedro Alves <palves@redhat.com>
10452
10453 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10454 the current thread.
10455
bf47e248
PA
104562015-08-06 Pedro Alves <palves@redhat.com>
10457
10458 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10459 reading beyond the passed in buffer length.
10460
b6b9ffcc
PL
104612015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10462
10463 * tracepoint.c (symbol_list) <required>: Remove.
10464
863d01bd
PA
104652015-08-06 Pedro Alves <palves@redhat.com>
10466
10467 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10468 count if stopping and suspending threads.
10469 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10470 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10471 (linux_detach): Complete an ongoing step-over.
10472 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10473 throughout.
10474 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10475 (linux_wait_1): If passing a signal to the inferior after
10476 finishing a step-over, unsuspend and re-resume all lwps. If we
10477 see a single-step event but the thread should be continuing, don't
10478 pass the trap to gdb.
10479 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10480 internal_error instead of gdb_assert.
10481 (enqueue_pending_signal): New function.
10482 (check_ptrace_stopped_lwp_gone): Add debug output.
10483 (start_step_over): Use internal_error instead of gdb_assert.
10484 (complete_ongoing_step_over): New function.
10485 (linux_resume_one_thread): Don't resume a suspended thread.
10486 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10487 it stepping.
10488
00db26fa
PA
104892015-08-06 Pedro Alves <palves@redhat.com>
10490
10491 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10492 (linux_thread_alive): Use lwp_is_marked_dead.
10493 (extended_event_reported): Delete.
10494 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10495 instead of extended_event_reported.
10496 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10497 as well.
10498 (lwp_is_marked_dead): New function.
10499 (lwp_running): Use lwp_is_marked_dead.
10500 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10501 comment.
10502
ad071a30
PA
105032015-08-06 Pedro Alves <palves@redhat.com>
10504
10505 * linux-low.c (linux_wait_1): Move fork event output out of the
10506 !report_to_gdb check. Pass event_child->waitstatus to
10507 target_waitstatus_to_string instead of ourstatus.
10508
524b57e6
YQ
105092015-08-04 Yao Qi <yao.qi@linaro.org>
10510
10511 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10512 if current_thread is 32 bit.
10513
6085d6f6
YQ
105142015-08-04 Yao Qi <yao.qi@linaro.org>
10515
10516 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10517 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10518 * server.c (extended_protocol): Remove "static".
10519 * server.h (extended_protocol): Declare it.
10520
8a7e4587
YQ
105212015-08-04 Yao Qi <yao.qi@linaro.org>
10522
10523 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10524 both aarch64 and aarch32.
10525 (aarch64_set_pc): Likewise.
10526
3b53ae99
YQ
105272015-08-04 Yao Qi <yao.qi@linaro.org>
10528
10529 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10530 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10531 arm-with-neon.xml to srv_xmlfiles.
10532 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10533 (is_64bit_tdesc): New function.
10534 (aarch64_linux_read_description): New function.
10535 (aarch64_arch_setup): Call aarch64_linux_read_description.
10536 (regs_info): Rename to regs_info_aarch64.
10537 (aarch64_regs_info): Return right regs_info.
10538 (initialize_low_arch): Call initialize_low_arch_aarch32.
10539
bd9e6534
YQ
105402015-08-04 Yao Qi <yao.qi@linaro.org>
10541
10542 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10543 * linux-aarch32-low.c: New file.
10544 * linux-aarch32-low.h: New file.
10545 * linux-arm-low.c (arm_fill_gregset): Move it to
10546 linux-aarch32-low.c.
10547 (arm_store_gregset): Likewise.
10548 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10549 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10550 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10551 (regs_info): Rename to regs_info_arm.
10552 (arm_regs_info): Return regs_info_aarch32 if
10553 have_ptrace_getregset is 1 and target description is
10554 arm_with_neon or arm_with_vfpv3.
10555 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10556 Call initialize_low_arch_aarch32 instead.
10557
ded48a5e
YQ
105582015-08-04 Yao Qi <yao.qi@linaro.org>
10559
10560 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10561 * linux-low.c: ... here.
10562 * linux-low.h (have_ptrace_getregset): Declare it.
10563
96e9210f
PA
105642015-08-04 Pedro Alves <palves@redhat.com>
10565
10566 * thread-db.c (struct thread_db): Use new typedefs.
10567 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10568 CHK calls.
10569 (disable_thread_event_reporting): Cast result of dlsym to
10570 destination function pointer type.
10571 (thread_db_mourn): Use td_ta_delete_ftype.
10572
af60a1ef
SL
105732015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10574
10575 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10576 arch variant.
10577 (CDX_BREAKPOINT): Define for R2.
10578 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10579 (the_low_target): Add comments.
10580
e8b41681
YQ
105812015-07-30 Yao Qi <yao.qi@linaro.org>
10582
10583 * linux-arm-low.c (arm_hwcap): Remove it.
10584 (arm_read_description): New local variable arm_hwcap. Don't
10585 set arm_hwcap to zero.
10586
89abb039
YQ
105872015-07-30 Yao Qi <yao.qi@linaro.org>
10588
10589 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10590 Use regcache->tdesc instead.
10591 (arm_store_wmmxregset): Likewise.
10592 (arm_fill_vfpregset): Likewise.
10593 (arm_store_vfpregset): Likewise.
10594
deca266c
YQ
105952015-07-30 Yao Qi <yao.qi@linaro.org>
10596
10597 * linux-arm-low.c: Include arch/arm.h.
10598 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10599 (arm_store_gregset): Likewise.
10600
aa58a496
SM
106012015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10602
10603 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10604 ptrace's 4th parameter.
10605
50904b25
YQ
106062015-07-27 Yao Qi <yao.qi@linaro.org>
10607
10608 * configure.srv (case aarch64*-*-linux*): Don't set
10609 srv_linux_usrregs.
10610
5826e159
PA
106112015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10612
10613 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10614 sys/ptrace.h.
10615 * linux-arm-low.c: Likewise.
10616 * linux-cris-low.c: Likewise.
10617 * linux-crisv32-low.c: Likewise.
10618 * linux-low.c: Likewise.
10619 * linux-m68k-low.c: Likewise.
10620 * linux-mips-low.c: Likewise.
10621 * linux-nios2-low.c: Likewise.
10622 * linux-s390-low.c: Likewise.
10623 * linux-sparc-low.c: Likewise.
10624 * linux-tic6x-low.c: Likewise.
10625 * linux-tile-low.c: Likewise.
10626 * linux-x86-low.c: Likewise.
10627
54019719
PA
106282015-07-24 Pedro Alves <palves@redhat.com>
10629
10630 * config.in: Regenerate.
10631 * configure: Regenerate.
10632
eb7aa561
PA
106332015-07-24 Pedro Alves <palves@redhat.com>
10634
10635 * acinclude.m4: Include ../ptrace.m4.
10636 * configure.ac: Call GDB_AC_PTRACE.
10637 * config.in, configure: Regenerate.
10638
55d7b841
YQ
106392015-07-24 Yao Qi <yao.qi@linaro.org>
10640
10641 * linux-low.c (linux_create_inferior): Remove setting to
10642 proc->priv->new_inferior.
10643 (linux_attach): Likewise.
10644 (linux_low_filter_event): Likewise.
10645 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10646
c06cbd92
YQ
106472015-07-24 Yao Qi <yao.qi@linaro.org>
10648
10649 * linux-low.c (linux_arch_setup): New function.
10650 (linux_low_filter_event): If proc->tdesc is NULL and
10651 proc->attached is true, call the_low_target.arch_setup.
10652 Otherwise, keep status pending, and return.
10653 (linux_resume_one_lwp_throw): Don't call get_pc if
10654 thread->while_stepping isn't NULL. Don't call
10655 get_thread_regcache if proc->tdesc is NULL.
10656 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10657 (linux_target_ops): Install arch_setup.
10658 * server.c (start_inferior): Call the_target->arch_setup.
10659 * target.h (struct target_ops) <arch_setup>: New field.
10660 (target_arch_setup): New marco.
10661 * lynx-low.c (lynx_target_ops): Update.
10662 * nto-low.c (nto_target_ops): Update.
10663 * spu-low.c (spu_target_ops): Update.
10664 * win32-low.c (win32_target_ops): Update.
10665
5ae3ebba
YQ
106662015-07-24 Yao Qi <yao.qi@linaro.org>
10667
10668 * linux-low.c (linux_add_process): Don't set
10669 proc->priv->new_inferior.
10670 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10671 (linux_attach): Likewise.
10672
eb97750b
YQ
106732015-07-24 Yao Qi <yao.qi@linaro.org>
10674
10675 * server.c (start_inferior): Code refactor.
10676
51aee833
YQ
106772015-07-24 Yao Qi <yao.qi@linaro.org>
10678
10679 * server.c (process_serial_event): Set general_thread.
10680
af1b22f3
YQ
106812015-07-21 Yao Qi <yao.qi@linaro.org>
10682
10683 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10684 aarch64_linux_get_debug_reg_capacity.
10685
554717a3
YQ
106862015-07-17 Yao Qi <yao.qi@linaro.org>
10687
10688 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10689 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10690 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10691 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10692 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10693 (AARCH64_HWP_ALIGNMENT): Likewise.
10694 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10695 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10696 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10697 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10698 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10699 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10700 (struct aarch64_debug_reg_state): Likewise.
10701 (struct arch_lwp_info): Likewise.
10702 (aarch64_align_watchpoint): Likewise.
10703 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10704 (aarch64_watchpoint_length): Likewise.
10705 (aarch64_point_encode_ctrl_reg): Likewise
10706 (aarch64_point_is_aligned): Likewise.
10707 (aarch64_align_watchpoint): Likewise.
10708 (aarch64_linux_set_debug_regs):
10709 (aarch64_dr_state_insert_one_point): Likewise.
10710 (aarch64_dr_state_remove_one_point): Likewise.
10711 (aarch64_handle_breakpoint): Likewise.
10712 (aarch64_handle_aligned_watchpoint): Likewise.
10713 (aarch64_handle_unaligned_watchpoint): Likewise.
10714 (aarch64_handle_watchpoint): Likewise.
10715
c67ca4de
YQ
107162015-07-17 Yao Qi <yao.qi@linaro.org>
10717
10718 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10719 and don't aarch64_get_debug_reg_state. All callers update.
10720 (aarch64_handle_aligned_watchpoint): Likewise.
10721 (aarch64_handle_unaligned_watchpoint): Likewise.
10722 (aarch64_handle_watchpoint): Likewise.
10723 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10724 (aarch64_remove_point): Likewise.
10725
25abf979
YQ
107262015-07-17 Yao Qi <yao.qi@linaro.org>
10727
10728 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10729 debug_printf.
10730 (aarch64_handle_unaligned_watchpoint): Likewise.
10731
db1ff28b
JK
107322015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10733
10734 Revert the previous 3 commits:
10735 Move gdb_regex* to common/
10736 Move linux_find_memory_regions_full & co.
10737 gdbserver build-id attribute generator
10738
700ca40f
JK
107392015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10740 Jan Kratochvil <jan.kratochvil@redhat.com>
10741
10742 gdbserver build-id attribute generator.
10743 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10744 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10745 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10746 (find_phdr): New.
10747 (get_dynamic): Use find_pdhr to traverse program headers.
10748 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10749 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10750 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10751 (get_hex_build_id): New.
10752 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10753 to reply XML document.
10754
9904185c
JK
107552015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10756 Jan Kratochvil <jan.kratochvil@redhat.com>
10757
10758 * target.c: Include target/target-utils.h and fcntl.h.
10759 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10760 (target_fileio_read_stralloc): New functions.
10761
6e5b4429
JK
107622015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10763
10764 * Makefile.in (OBS): Add gdb_regex.o.
10765 (gdb_regex.o): New.
10766 * config.in: Rebuilt.
10767 * configure: Rebuilt.
10768
ddc98fbf
JK
107692015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10770 Jan Kratochvil <jan.kratochvil@redhat.com>
10771
10772 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10773 * Makefile.in (OBS): Add target-utils.o.
10774 (linux-maps.o, target-utils.o): New.
10775 * configure.srv (srv_linux_obj): Add linux-maps.o.
10776
e57bb7a0
PL
107772015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10778
10779 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10780 function, return 1.
10781 (the_low_target): Install it.
10782
586b02a9
PA
107832015-07-14 Pedro Alves <palves@redhat.com>
10784
10785 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10786 Instead, ignore ECHILD, and throw an error for other errnos.
10787
58c1b36c
PA
107882015-07-10 Pedro Alves <palves@redhat.com>
10789
10790 * event-loop.c (struct callback_event) <data>: Change type to
10791 gdb_client_data instance instead of gdb_client_data pointer.
10792 (append_callback_event): Adjust.
10793
421530db
PL
107942015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10795
10796 * linux-aarch64-low.c: Add comments for each linux_target_ops
10797 method. Remove comments already covered in target_ops and
10798 linux_target_ops definitions.
10799 (the_low_target): Add comments for each unimplemented method.
10800
c2d65f38
YQ
108012015-07-09 Yao Qi <yao.qi@linaro.org>
10802
10803 * linux-aarch64-low.c (aarch64_regmap): Remove.
10804 (aarch64_usrregs_info): Remove.
10805 (regs_info): Set field usrregs to NULL.
10806
b20a6524
MM
108072015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10808
10809 * linux-low.c: Include "rsp-low.h"
10810 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10811 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10812 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10813 (handle_btrace_enable_pt): New.
10814 (handle_btrace_general_set): Support "pt".
10815 (handle_btrace_conf_general_set): Support "pt:size".
10816
96c97461
PL
108172015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10818
10819 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10820 Z_PACKET_SW_BP.
10821
37d66942
PL
108222015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10823
10824 * linux-aarch64-low.c: Remove comment about endianness.
10825 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10826 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10827 memcmp.
10828
dc06243f
GB
108292015-06-24 Gary Benson <gbenson@redhat.com>
10830
10831 * linux-i386-ipa.c (stdint.h): Do not include.
10832 * lynx-i386-low.c (stdint.h): Likewise.
10833 * lynx-ppc-low.c (stdint.h): Likewise.
10834 * mem-break.c (stdint.h): Likewise.
10835 * thread-db.c (stdint.h): Likewise.
10836 * tracepoint.c (stdint.h): Likewise.
10837 * win32-low.c (stdint.h): Likewise.
10838
124e13d9
SM
108392015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10840
10841 * server.c (write_qxfer_response): Update call to
10842 remote_escape_output.
10843
909c2cda
JK
108442015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10845 Jan Kratochvil <jan.kratochvil@redhat.com>
10846
10847 Merge multiple hex conversions.
10848 * gdbreplay.c (tohex): Rename to 'fromhex'.
10849 (logchar): Use fromhex.
10850
24c05f46
JK
108512015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10852
10853 * server.c (handle_qxfer_libraries): Set `version' attribute for
10854 <library-list>.
10855
14d2069a
GB
108562015-06-10 Gary Benson <gbenson@redhat.com>
10857
10858 * target.h (struct target_ops) <multifs_open>: New field.
10859 <multifs_unlink>: Likewise.
10860 <multifs_readlink>: Likewise.
10861 * linux-low.c (nat/linux-namespaces.h): New include.
10862 (linux_target_ops): Initialize the_target->multifs_open,
10863 the_target->multifs_unlink and the_target->multifs_readlink.
10864 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10865 * hostio.c (hostio_fs_pid): New static variable.
10866 (hostio_handle_new_gdb_connection): New function.
10867 (handle_setfs): Likewise.
10868 (handle_open): Use the_target->multifs_open as appropriate.
10869 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10870 (handle_readlink): Use the_target->multifs_readlink as
10871 appropriate.
10872 (handle_vFile): Handle vFile:setfs packets.
10873 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10874 after target_handle_new_gdb_connection.
10875
4b8b5e72
GB
108762015-06-10 Gary Benson <gbenson@redhat.com>
10877
10878 * configure.ac (AC_CHECK_FUNCS): Add setns.
10879 * config.in: Regenerate.
10880 * configure: Likewise.
10881 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10882 (linux-namespaces.o): New rule.
10883 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10884
3ac2e371
GB
108852015-06-09 Gary Benson <gbenson@redhat.com>
10886
10887 * hostio.c (handle_open): Process mode argument with
10888 fileio_to_host_mode.
10889
ca9b78ce
YQ
108902015-06-01 Yao Qi <yao.qi@linaro.org>
10891
10892 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10893 * linux-x86-low.c: Likewise.
10894
bfacd19d
DB
108952015-05-28 Don Breazeal <donb@codesourcery.com>
10896
10897 * linux-low.c (handle_extended_wait): Initialize
10898 thread_info.last_resume_kind for new fork children.
10899
452003ef
PA
109002015-05-15 Pedro Alves <palves@redhat.com>
10901
10902 * target.h (target_handle_new_gdb_connection): Rewrite using if
10903 wrapped in do/while.
10904
1041a03c
JB
109052015-05-14 Joel Brobecker <brobecker@adacore.com>
10906
10907 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10908 * configure, config.in: Regenerate.
10909 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10910 Declare typedef.
10911
c269dbdb
DB
109122015-05-12 Don Breazeal <donb@codesourcery.com>
10913
10914 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10915 PTRACE_EVENT_VFORK_DONE.
10916 (linux_low_ptrace_options, extended_event_reported): Add vfork
10917 events.
10918 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10919 and "vforkdone" for RSP 'T' Stop Reply Packet.
10920 * server.h (report_vfork_events): Declare
10921 global variable.
10922
3a8a0396
DB
109232015-05-12 Don Breazeal <donb@codesourcery.com>
10924
10925 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10926 (the_low_target) <new_fork>: Initialize new member.
10927 * linux-arm-low.c (arm_new_fork): New function.
10928 (the_low_target) <new_fork>: Initialize new member.
10929 * linux-low.c (handle_extended_wait): Call new target function
10930 new_fork.
10931 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10932 * linux-mips-low.c (mips_add_watchpoint): New function
10933 extracted from mips_insert_point.
10934 (the_low_target) <new_fork>: Initialize new member.
10935 (mips_linux_new_fork): New function.
10936 (mips_insert_point): Call mips_add_watchpoint.
10937 * linux-x86-low.c (x86_linux_new_fork): New function.
10938 (the_low_target) <new_fork>: Initialize new member.
10939
de0d863e
DB
109402015-05-12 Don Breazeal <donb@codesourcery.com>
10941
10942 * linux-low.c (handle_extended_wait): Implement return value,
10943 rename argument 'event_child' to 'event_lwp', handle
10944 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10945 (linux_low_ptrace_options): New function.
10946 (linux_low_filter_event): Call linux_low_ptrace_options,
10947 use different argument fo linux_enable_event_reporting,
10948 use return value from handle_extended_wait.
10949 (extended_event_reported): New function.
10950 (linux_wait_1): Call extended_event_reported and set
10951 status to report fork events.
10952 (linux_write_memory): Add pid to debug message.
10953 (reset_lwp_ptrace_options_callback): New function.
10954 (linux_handle_new_gdb_connection): New function.
10955 (linux_target_ops): Initialize new structure member.
10956 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10957 * lynx-low.c: Initialize new structure member.
10958 * remote-utils.c (prepare_resume_reply): Implement stop reason
10959 "fork" for "T" stop message.
10960 * server.c (handle_query): Call handle_new_gdb_connection.
10961 * server.h (report_fork_events): Declare global flag.
10962 * target.h (struct target_ops) <handle_new_gdb_connection>:
10963 New member.
10964 (target_handle_new_gdb_connection): New macro.
10965 * win32-low.c: Initialize new structure member.
10966
ddcbc397
DB
109672015-05-12 Don Breazeal <donb@codesourcery.com>
10968
10969 * mem-break.c (APPEND_TO_LIST): Define macro.
10970 (clone_agent_expr): New function.
10971 (clone_one_breakpoint): New function.
10972 (clone_all_breakpoints): New function.
10973 * mem-break.h: Declare new functions.
10974
89245bc0
DB
109752015-05-12 Don Breazeal <donb@codesourcery.com>
10976
10977 * linux-low.c (linux_supports_fork_events): New function.
10978 (linux_supports_vfork_events): New function.
10979 (linux_target_ops): Initialize new structure members.
10980 (initialize_low): Call linux_check_ptrace_features.
10981 * lynx-low.c (lynx_target_ops): Initialize new structure
10982 members.
10983 * server.c (report_fork_events, report_vfork_events):
10984 New global flags.
10985 (handle_query): Add new features to qSupported packet and
10986 response.
10987 (captured_main): Initialize new global variables.
10988 * target.h (struct target_ops) <supports_fork_events>:
10989 New member.
10990 <supports_vfork_events>: New member.
10991 (target_supports_fork_events): New macro.
10992 (target_supports_vfork_events): New macro.
10993 * win32-low.c (win32_target_ops): Initialize new structure
10994 members.
10995
835205d0
GB
109962015-05-12 Gary Benson <gbenson@redhat.com>
10997
10998 * server.c (handle_qxfer_exec_file): Use current process
10999 if annex is empty.
11000
21e94bd9
SL
110012015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11002
11003 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11004 Remove HAVE_PTRACE_GETREGS conditionals.
11005 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11006 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11007
45614f15
YQ
110082015-05-08 Yao Qi <yao.qi@linaro.org>
11009
11010 * linux-low.c (linux_supports_conditional_breakpoints): New
11011 function.
11012 (linux_target_ops): Install new target method.
11013 * lynx-low.c (lynx_target_ops): Install NULL hook for
11014 supports_conditional_breakpoints.
11015 * nto-low.c (nto_target_ops): Likewise.
11016 * spu-low.c (spu_target_ops): Likewise.
11017 * win32-low.c (win32_target_ops): Likewise.
11018 * server.c (handle_query): Check
11019 target_supports_conditional_breakpoints.
11020 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11021 New field.
11022 (target_supports_conditional_breakpoints): New macro.
11023
80ad801e
PA
110242015-05-06 Pedro Alves <palves@redhat.com>
11025
11026 PR server/18081
11027 * server.c (start_inferior): If the process exits, mourn it.
11028
819843c7
GB
110292015-04-21 Gary Benson <gbenson@redhat.com>
11030
11031 * hostio.c (fileio_open_flags_to_host): Factored out to
11032 fileio_to_host_openflags in common/fileio.c. Single use
11033 updated.
11034
a2d5a9d7
MF
110352015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11036
11037 * linux-xtensa-low.c (xtensa_fill_gregset)
11038 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11039 XCHAL_HAVE_LOOP.
11040
deb44829
MF
110412015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11042
11043 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11044 (regs_info): Replace usrregs pointer with NULL.
11045
e57f1de3
GB
110462015-04-17 Gary Benson <gbenson@redhat.com>
11047
11048 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11049 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11050 * server.c (handle_qxfer_exec_file): New function.
11051 (qxfer_packets): Add exec-file entry.
11052 (handle_query): Report qXfer:exec-file:read as supported packet.
11053
62828379
RN
110542015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11055
11056 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11057
b88bb450
GB
110582015-04-09 Gary Benson <gbenson@redhat.com>
11059
11060 * hostio-errno.c (errno_to_fileio_error): Remove function.
11061 Update caller to use remote_fileio_to_fio_error.
11062
c8f4bfdd
YQ
110632015-04-09 Yao Qi <yao.qi@linaro.org>
11064
11065 * linux-low.c (linux_insert_point): Call
11066 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11067 (linux_remove_point): Call remove_memory_breakpoint if type is
11068 raw_bkpt_type_sw.
11069 * linux-x86-low.c (x86_insert_point): Don't call
11070 insert_memory_breakpoint.
11071 (x86_remove_point): Don't call remove_memory_breakpoint.
11072
41f98f02
PA
110732015-04-01 Pedro Alves <palves@redhat.com>
11074 Cleber Rosa <crosa@redhat.com>
11075
11076 * server.c (gdbserver_usage): Reorganize and extend the usage
11077 message.
11078
2bf6fb9d
PA
110792015-03-24 Pedro Alves <palves@redhat.com>
11080
11081 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11082 output. Also dump TRAP_TRACE.
11083 (linux_low_filter_event): In debug output, distinguish a
11084 resume_stop SIGSTOP from a delayed SIGSTOP.
11085
369f6daa
GB
110862015-03-24 Gary Benson <gbenson@redhat.com>
11087
11088 * linux-x86-low.c (x86_linux_new_thread): Moved to
11089 nat/x86-linux.c.
11090 (x86_linux_prepare_to_resume): Likewise.
11091
8e5d4070
GB
110922015-03-24 Gary Benson <gbenson@redhat.com>
11093
11094 * Makefile.in (x86-linux-dregs.o): New rule.
11095 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11096 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11097 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11098 (x86_linux_dr_get): Likewise.
11099 (x86_linux_dr_set): Likewise.
11100 (update_debug_registers_callback): Likewise.
11101 (x86_linux_dr_set_addr): Likewise.
11102 (x86_linux_dr_get_addr): Likewise.
11103 (x86_linux_dr_set_control): Likewise.
11104 (x86_linux_dr_get_control): Likewise.
11105 (x86_linux_dr_get_status): Likewise.
11106 (x86_linux_update_debug_registers): Likewise.
11107
2b95d440
GB
111082015-03-24 Gary Benson <gbenson@redhat.com>
11109
11110 * linux-x86-low.c (x86_linux_update_debug_registers):
11111 New function, factored out from...
11112 (x86_linux_prepare_to_resume): ...this.
11113
14b0bc68
GB
111142015-03-24 Gary Benson <gbenson@redhat.com>
11115
11116 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11117 (x86_linux_dr_set): Likewise.
11118 (update_debug_registers_callback): Likewise.
11119 (x86_linux_dr_set_addr): Likewise.
11120 (x86_linux_dr_get_addr): Likewise.
11121 (x86_linux_dr_set_control): Likewise.
11122 (x86_linux_dr_get_control): Likewise.
11123 (x86_linux_dr_get_status): Likewise.
11124 (x86_linux_prepare_to_resume): Likewise.
11125
5dfe6ca8
GB
111262015-03-24 Gary Benson <gbenson@redhat.com>
11127
11128 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11129 Use perror_with_name. Pass string through gettext.
11130 (x86_linux_dr_set): Likewise.
11131
d33472ad
GB
111322015-03-24 Gary Benson <gbenson@redhat.com>
11133
11134 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11135 (x86_linux_dr_set_addr): ...this.
11136 (x86_dr_low_get_addr): Rename to...
11137 (x86_linux_dr_get_addr): ...this.
11138 (x86_dr_low_set_control): Rename to...
11139 (x86_linux_dr_set_control): ...this.
11140 (x86_dr_low_get_control): Rename to...
11141 (x86_linux_dr_get_control): ...this.
11142 (x86_dr_low_get_status): Rename to...
11143 (x86_linux_dr_get_status): ...this.
11144 (x86_dr_low): Update with new function names.
11145
4b134ca1
GB
111462015-03-24 Gary Benson <gbenson@redhat.com>
11147
11148 * Makefile.in (x86-linux.o): New rule.
11149 * configure.srv: Add x86-linux.o to relevant targets.
11150 * linux-low.c (lwp_set_arch_private_info): New function.
11151 (lwp_arch_private_info): Likewise.
11152 * linux-x86-low.c: Include nat/x86-linux.h.
11153 (arch_lwp_info): Removed structure.
11154 (update_debug_registers_callback):
11155 Use lwp_set_debug_registers_changed.
11156 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11157 and lwp_set_debug_registers_changed.
11158 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11159
34c703da
GB
111602015-03-24 Gary Benson <gbenson@redhat.com>
11161
11162 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11163 * linux-arm-low.c (arm_new_thread): Likewise.
11164 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11165 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11166 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11167 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11168
cff068da
GB
111692015-03-24 Gary Benson <gbenson@redhat.com>
11170
11171 * linux-low.c (ptid_of_lwp): New function.
11172 (lwp_is_stopped): Likewise.
11173 (lwp_stop_reason): Likewise.
11174 * linux-x86-low.c (update_debug_registers_callback):
11175 Use lwp_is_stopped.
11176 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11177 lwp_stop_reason.
11178
b2f7c7e8
GB
111792015-03-24 Gary Benson <gbenson@redhat.com>
11180
11181 * linux-low.h (linux_stop_lwp): Remove declaration.
11182
6d4ee8c6
GB
111832015-03-24 Gary Benson <gbenson@redhat.com>
11184
11185 * linux-low.h: Include nat/linux-nat.h.
11186 * linux-low.c (iterate_over_lwps_args): New structure.
11187 (iterate_over_lwps_filter): New function.
11188 (iterate_over_lwps): Likewise.
11189 * linux-x86-low.c (update_debug_registers_callback):
11190 Update signature to what iterate_over_lwps expects.
11191 Remove PID check that iterate_over_lwps now performs.
11192 (x86_dr_low_set_addr): Use iterate_over_lwps.
11193 (x86_dr_low_set_control): Likewise.
11194
70a0bb6b
GB
111952015-03-24 Gary Benson <gbenson@redhat.com>
11196
11197 * linux-x86-low.c (x86_debug_reg_state): New function.
11198 (x86_linux_prepare_to_resume): Use the above.
11199
7b669087
GB
112002015-03-24 Gary Benson <gbenson@redhat.com>
11201
11202 * linux-low.c (current_lwp_ptid): New function.
11203 * linux-x86-low.c: Include nat/linux-nat.h.
11204 (x86_dr_low_get_addr): Use current_lwp_ptid.
11205 (x86_dr_low_get_control): Likewise.
11206 (x86_dr_low_get_status): Likewise.
11207
eef49a3d
PA
112082015-03-20 Pedro Alves <palves@redhat.com>
11209
11210 * tracepoint.c (cmd_qtstatus): Make "str" const.
11211
b2333d22
PA
112122015-03-20 Pedro Alves <palves@redhat.com>
11213
11214 * server.c (handle_general_set): Make "req_str" const.
11215
23f238d3
PA
112162015-03-19 Pedro Alves <palves@redhat.com>
11217
11218 * linux-low.c (linux_resume_one_lwp): Rename to ...
11219 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11220 instead call perror_with_name.
11221 (check_ptrace_stopped_lwp_gone): New function.
11222 (linux_resume_one_lwp): Reimplement as wrapper around
11223 linux_resume_one_lwp_throw that swallows errors if the LWP is
11224 gone.
11225
91baf43f
PA
112262015-03-19 Pedro Alves <palves@redhat.com>
11227
11228 * linux-low.c (count_events_callback, select_event_lwp_callback):
11229 No longer check whether the thread has resume_stop as last resume
11230 kind.
11231
8bf3b159
PA
112322015-03-19 Pedro Alves <palves@redhat.com>
11233
11234 * linux-low.c (count_events_callback, select_event_lwp_callback):
11235 Use the lwp's status_pending_p field, not the thread's.
11236
b90fc188
PA
112372015-03-19 Pedro Alves <palves@redhat.com>
11238
11239 * linux-low.c (select_event_lwp_callback): Update comments to
11240 no longer mention SIGTRAP.
11241
464b0089
GB
112422015-03-18 Gary Benson <gbenson@redhat.com>
11243
11244 * server.c (handle_query): Do not report vFile:fstat as supported.
11245
aa9e327f
GB
112462015-03-11 Gary Benson <gbenson@redhat.com>
11247
11248 * hostio.c (sys/types.h): New include.
11249 (sys/stat.h): Likewise.
11250 (common-remote-fileio.h): Likewise.
11251 (handle_fstat): New function.
11252 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11253
791c0056
GB
112542015-03-11 Gary Benson <gbenson@redhat.com>
11255
11256 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11257 struct stat.st_blocks and struct stat.st_blksize.
11258 * configure: Regenerate.
11259 * config.in: Likewise.
11260 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11261 (OBS): Add common-remote-fileio.o.
11262 (common-remote-fileio.o): New rule.
11263
9a9df970
PA
112642015-03-09 Pedro Alves <palves@redhat.com>
11265
11266 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11267 'struct sockaddr' pointer in 'accept' call.
11268
9eb1356e
PA
112692015-03-09 Pedro Alves <palves@redhat.com>
11270
11271 Revert:
11272 2015-03-07 Pedro Alves <palves@redhat.com>
11273 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11274 or <winsock2.h> here. Instead include "gdb_socket.h".
11275 (remote_open): Use union gdb_sockaddr_u.
11276 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11277 or <winsock2.h> here. Instead include "gdb_socket.h".
11278 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11279 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11280 or <sys/un.h>.
11281 (init_named_socket, gdb_agent_helper_thread): Use union
11282 gdb_sockaddr_u.
11283
aac331e4
PA
112842015-03-07 Pedro Alves <palves@redhat.com>
11285
11286 * configure.ac (build_warnings): Move
11287 -Wdeclaration-after-statement to the C-specific set.
11288 * configure: Regenerate.
11289
366c75fc
PA
112902015-03-07 Pedro Alves <palves@redhat.com>
11291
11292 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11293 or <winsock2.h> here. Instead include "gdb_socket.h".
11294 (remote_open): Use union gdb_sockaddr_u.
11295 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11296 or <winsock2.h> here. Instead include "gdb_socket.h".
11297 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11298 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11299 or <sys/un.h>.
11300 (init_named_socket, gdb_agent_helper_thread): Use union
11301 gdb_sockaddr_u.
11302
492d29ea
PA
113032015-03-07 Pedro Alves <palves@redhat.com>
11304
11305 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11306 instead.
11307
60a191ed
YQ
113082015-03-06 Yao Qi <yao.qi@linaro.org>
11309
11310 * linux-aarch64-low.c (aarch64_insert_point): Use
11311 show_debug_regs as a boolean.
11312 (aarch64_remove_point): Likewise.
11313
f5771b1d
PA
113142015-03-05 Pedro Alves <palves@redhat.com>
11315
11316 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11317 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11318 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11319 * nto-low.c (nto_target_ops): Likewise.
11320 * spu-low.c (spu_target_ops): Likewise.
11321 * win32-low.c (win32_target_ops): Likewise.
11322
3e572f71
PA
113232015-03-04 Pedro Alves <palves@redhat.com>
11324
72f4393d 11325 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11326 Decide whether a breakpoint triggered based on the SIGTRAP's
11327 siginfo.si_code.
72f4393d
L
11328 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11329 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11330 (linux_low_filter_event): Check for breakpoints before checking
11331 watchpoints.
11332 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11333 siginfo.si_code.
72f4393d
L
11334 (linux_stopped_by_sw_breakpoint)
11335 (linux_supports_stopped_by_sw_breakpoint)
11336 (linux_stopped_by_hw_breakpoint)
11337 (linux_supports_stopped_by_hw_breakpoint): New functions.
11338 (linux_target_ops): Install new target methods.
3e572f71 11339
1ec68e26
PA
113402015-03-04 Pedro Alves <palves@redhat.com>
11341
11342 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11343 * server.c (swbreak_feature, hwbreak_feature): New globals.
11344 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11345 (captured_main): Clear swbreak_feature and hwbreak_feature.
11346 * server.h (swbreak_feature, hwbreak_feature): Declare.
11347 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11348 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11349 supports_stopped_by_hw_breakpoint>: New fields.
11350 (target_supports_stopped_by_sw_breakpoint)
11351 (target_stopped_by_sw_breakpoint)
11352 (target_supports_stopped_by_hw_breakpoint)
11353 (target_stopped_by_hw_breakpoint): Declare.
11354
15c66dd6
PA
113552015-03-04 Pedro Alves <palves@redhat.com>
11356
11357 enum lwp_stop_reason -> enum target_stop_reason
11358 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11359 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11360 (linux_wait_1, stuck_in_jump_pad_callback)
11361 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11362 (linux_stopped_by_watchpoint):
11363 * linux-low.h (enum lwp_stop_reason): Delete.
11364 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11365 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11366
98fc70d6
YQ
113672015-03-04 Yao Qi <yao.qi@linaro.org>
11368
11369 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11370
dd2ac174
GB
113712015-03-03 Gary Benson <gbenson@redhat.com>
11372
11373 * hostio.c (handle_vFile): Fix prefix lengths.
11374
d68e53f4
MM
113752015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11376
11377 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11378 ptr_bits.
11379
bf2d68ab
AA
113802015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11381
11382 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11383 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11384 (clean): Add "rm -f" for above C files.
11385 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11386 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11387 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11388 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11389 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11390 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11391 (init_registers_s390x_vx_linux64)
11392 (init_registers_s390x_tevx_linux64)
11393 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11394 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11395 declarations.
11396 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11397 (s390_store_vxrs_high): New functions.
11398 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11399 NT_S390_VXRS_HIGH.
11400 (s390_arch_setup): Add logic for selecting one of the new target
11401 descriptions. Activate the new vector regsets if applicable.
11402 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11403 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11404 and init_registers_s390x_tevx_linux64.
11405
c966a859
PA
114062015-03-01 Pedro Alves <palves@redhat.com>
11407
11408 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11409 parameter.
11410
4180215b
PA
114112015-02-27 Pedro Alves <palves@redhat.com>
11412
11413 * linux-x86-low.c (u_debugreg_offset): New function.
11414 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11415
749bab01
PA
114162015-02-27 Pedro Alves <palves@redhat.com>
11417
11418 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11419 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11420 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11421 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11422 (ps_lsetfpregs, ps_getpid)
11423 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11424 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11425 (ps_lsetxregs, ps_plog): Declare.
11426
3c14e5a3
PA
114272015-02-27 Pedro Alves <palves@redhat.com>
11428
11429 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11430 IP_AGENT_EXPORT_FUNC.
11431 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11432 IP_AGENT_EXPORT_FUNC.
11433 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11434 (IP_AGENT_EXPORT): Delete.
11435 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11436 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11437 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11438 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11439 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11440 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11441 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11442 (traceframe_read_count, traceframe_write_count)
11443 (traceframes_created, trace_state_variables, get_raw_reg)
11444 (get_trace_state_variable_value, set_trace_state_variable_value)
11445 (ust_loaded, helper_thread_id, cmd_buf): Use
11446 IPA_SYM_EXPORTED_NAME.
11447 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11448 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11449 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11450 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11451 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11452 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11453 EXTERN_C_PUSH/EXTERN_C_POP.
11454 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11455 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11456 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11457 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11458 (traceframe_write_count, traceframe_read_count)
11459 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11460 (about_to_request_buffer_space, get_trace_state_variable_value)
11461 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11462 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11463 EXTERN_C_PUSH/EXTERN_C_POP.
11464 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11465 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11466 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11467 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11468 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11469 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11470 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11471 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11472 Define.
11473 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11474 (IP_AGENT_EXPORT_VAR_DECL): Define.
11475 (tracing): Declare.
11476 (gdb_agent_get_raw_reg): Declare.
11477
fe978cb0
PA
114782015-02-27 Tom Tromey <tromey@redhat.com>
11479 Pedro Alves <palves@redhat.com>
11480
11481 Rename symbols whose names are reserved C++ keywords throughout.
11482
3bc3d82a
PA
114832015-02-27 Pedro Alves <palves@redhat.com>
11484
11485 * Makefile.in (COMPILER): New, get it from autoconf.
11486 (CXX): Get from autoconf instead.
11487 (COMPILE.pre): Use COMPILER.
11488 (CC-LD): Rename to ...
11489 (CC_LD): ... this. Use COMPILER.
11490 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11491 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11492 * acinclude.m4: Include build-with-cxx.m4.
11493 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11494 Disable -Werror by default if building in C++ mode.
11495 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11496 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11497 the C++ compiler. Save/restore CXXFLAGS too.
11498 * configure: Regenerate.
11499
07697489
PA
115002015-02-27 Pedro Alves <palves@redhat.com>
11501
11502 * acinclude.m4: Include libiberty.m4.
11503 * configure.ac: Call libiberty_INIT.
11504 * config.in, configure: Regenerate.
11505
9beb7c4e
PA
115062015-02-26 Pedro Alves <palves@redhat.com>
11507
11508 * linux-low.c (linux_wait_1): When incrementing the PC past a
11509 program breakpoint always use the_low_target.breakpoint_len as
11510 increment, rather than the maximum between that and
11511 the_low_target.decr_pc_after_break.
11512
8090aef2
PA
115132015-02-23 Pedro Alves <palves@redhat.com>
11514
11515 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11516 thread was doing a step-over; always adjust the PC if
11517 we stepped over a permanent breakpoint.
11518 (linux_wait_1): If we stepped over breakpoint that was on top of a
11519 permanent breakpoint, manually advance the PC past it.
11520
bc9540e8
PA
115212015-02-23 Pedro Alves <palves@redhat.com>
11522
11523 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11524 modes.
11525 (x86_fill_gregset, x86_store_gregset): Use it when handling
11526 $orig_eax.
11527
2db9a427
PA
115282015-02-20 Pedro Alves <palves@redhat.com>
11529
11530 * thread-db.c: Include "nat/linux-procfs.h".
11531 (thread_db_init): Skip listing new threads if the kernel supports
11532 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11533
afa8d396
PA
115342015-02-20 Pedro Alves <palves@redhat.com>
11535
11536 * linux-low.c (status_pending_p_callback): Use ptid_match.
11537
c9587f88
AT
115382015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11539
11540 PR breakpoints/16812
11541 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11542 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11543 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11544
b05ec7a5
AT
115452015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11546
11547 PR breakpoints/15956
11548 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11549
d33501a5
MM
115502015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11551
11552 * linux-low.c (linux_low_btrace_conf): Print size.
11553 * server.c (handle_btrace_conf_general_set): New.
11554 (hanle_general_set): Call handle_btrace_conf_general_set.
11555 (handle_query): Report Qbtrace-conf:bts:size as supported.
11556
f4abbc16
MM
115572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11558
11559 * linux-low.c (linux_low_enable_btrace): Update parameters.
11560 (linux_low_btrace_conf): New.
11561 (linux_target_ops)<to_btrace_conf>: Initialize.
11562 * server.c (current_btrace_conf): New.
11563 (handle_btrace_enable): Rename to ...
11564 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11565 to target_enable_btrace. Update comment. Update users.
11566 (handle_qxfer_btrace_conf): New.
11567 (qxfer_packets): Add btrace-conf entry.
11568 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11569 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11570 (target_ops)<read_btrace_conf>: New.
11571 (target_enable_btrace): Update parameters.
11572 (target_read_btrace_conf): New.
11573
043c3577
MM
115742015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11575
11576 * server.c (handle_btrace_general_set): Remove call to
11577 target_supports_btrace.
11578 (supported_btrace_packets): New.
11579 (handle_query): Call supported_btrace_packets.
11580 * target.h: include btrace-common.h.
11581 (btrace_target_info): Removed.
11582 (supports_btrace, target_supports_btrace): Update parameters.
11583
734b0e4b
MM
115842015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11585
11586 * Makefile.in (SFILES): Add common/btrace-common.c.
11587 (OBS): Add common/btrace-common.o.
11588 (btrace-common.o): Add build rules.
11589 * linux-low: Include btrace-common.h.
11590 (linux_low_read_btrace): Use struct btrace_data. Call
11591 btrace_data_init and btrace_data_fini.
11592
d6c146e9
PA
115932015-02-06 Pedro Alves <palves@redhat.com>
11594
11595 * thread-db.c (find_new_threads_callback): Add debug output.
11596
20ba1ce6
PA
115972015-02-04 Pedro Alves <palves@redhat.com>
11598
11599 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11600 (resume_stopped_resumed_lwps): New function.
11601 (linux_wait_for_event_filtered): Use it.
11602
8cc73a39
SDJ
116032015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11604
11605 * Makefile.in (SFILES): Add linux-personality.c.
11606 (linux-personality.o): New rule.
11607 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11608 list of objects to be built.
11609 * linux-low.c: Include nat/linux-personality.h.
11610 (linux_create_inferior): Remove code to disable address space
11611 randomization (moved to ../nat/linux-personality.c). Create
11612 cleanup to disable address space randomization.
11613
fb23d554
SDJ
116142015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11615
11616 * Makefile.in (posix-strerror.o): New rule.
11617 (mingw-strerror.o): Likewise.
11618 * configure: Regenerated.
11619 * configure.ac: Source file ../common/common.host. Initialize new
11620 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11621
cdf43629
YQ
116222015-01-14 Yao Qi <yao@codesourcery.com>
11623
11624 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11625 (ppc-linux.o): New rule.
11626 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11627 * configure.ac: AC_CHECK_FUNCS(getauxval).
11628 * config.in: Re-generated.
11629 * configure: Re-generated.
11630 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11631 ppc64_64bit_inferior_p
11632
514c5338
YQ
116332015-01-14 Yao Qi <yao@codesourcery.com>
11634
11635 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11636 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11637 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11638 (PT_ORIG_R3, PT_TRAP): Likewise.
11639 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11640 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11641 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11642
3368c1e5
JB
116432015-01-10 Joel Brobecker <brobecker@adacore.com>
11644
11645 * i387-fp.c (i387_cache_to_xsave): In look over
11646 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11647 zmmh_low_space field by use of zmmh_high_space.
11648
582511be
PA
116492015-01-09 Pedro Alves <palves@redhat.com>
11650
11651 * linux-low.c (step_over_bkpt): Move higher up in the file.
11652 (handle_extended_wait): Don't store the stop_pc here.
11653 (get_stop_pc): Adjust comments and rename to ...
11654 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11655 stopped for a software breakpoint or hardware breakpoint.
11656 (thread_still_has_status_pending_p): New function.
11657 (status_pending_p_callback): Use
11658 thread_still_has_status_pending_p. If the event is no longer
11659 interesting, resume the LWP.
11660 (handle_tracepoints): Add assert.
11661 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11662 (wstatus_maybe_breakpoint): New function.
11663 (cancel_breakpoint): Delete function.
11664 (check_stopped_by_watchpoint): New function, factored out from
11665 linux_low_filter_event.
11666 (lp_status_maybe_breakpoint): Delete function.
11667 (linux_low_filter_event): Remove filter_ptid argument.
11668 Leave thread group exits pending here. Store the LWP's stop PC.
11669 Always leave events pending.
11670 (linux_wait_for_event_filtered): Pull all events out of the
11671 kernel, and leave them all pending.
11672 (count_events_callback, select_event_lwp_callback): Consider all
11673 events.
11674 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11675 (select_event_lwp): Only give preference to the stepping LWP in
11676 all-stop mode. Adjust comments.
11677 (ignore_event): New function.
11678 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11679 references to cancel_breakpoints. Adjust to renames. Also give
11680 equal priority to all LWPs that have had events in non-stop mode.
11681 If reporting a software breakpoint event, unadjust the LWP's PC.
11682 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11683 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11684 Adjust.
11685 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11686 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11687 (linux_stopped_by_watchpoint): Adjust.
11688 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11689 * linux-low.h (enum lwp_stop_reason): New.
11690 (struct lwp_info) <stop_pc>: Adjust comment.
11691 <stopped_by_watchpoint>: Delete field.
11692 <stop_reason>: New field.
11693 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11694 * mem-break.c (software_breakpoint_inserted_here)
11695 (hardware_breakpoint_inserted_here): New function.
11696 * mem-break.h (software_breakpoint_inserted_here)
11697 (hardware_breakpoint_inserted_here): Declare.
11698 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11699 (cancel_breakpoints): Delete.
11700 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11701 (upload_fast_traceframes): Remove references to
11702 cancel_breakpoints.
11703
a33e3959
PA
117042015-01-09 Pedro Alves <palves@redhat.com>
11705
11706 * thread-db.c (find_new_threads_callback): Ignore thread if the
11707 kernel thread ID is -1.
11708
8784d563
PA
117092015-01-09 Pedro Alves <palves@redhat.com>
11710
11711 * linux-low.c (linux_attach_fail_reason_string): Move to
11712 nat/linux-ptrace.c, and rename.
11713 (linux_attach_lwp): Update comment.
11714 (attach_proc_task_lwp_callback): New function.
11715 (linux_attach): Adjust to rename and use
11716 linux_proc_attach_tgid_threads.
11717 (linux_attach_fail_reason_string): Delete declaration.
11718
76f2b779
JB
117192015-01-01 Joel Brobecker <brobecker@adacore.com>
11720
11721 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11722 * server.c (gdbserver_version): Likewise.
11723
fafcc06a
SDJ
117242014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11725
11726 * remote-utils.c: Include ctype.h.
11727 (input_interrupt): Explicitly handle the case when the char
11728 received is the NUL byte. Improve the printing of non-ASCII
11729 characters.
11730
beed38b8
JB
117312014-12-16 Joel Brobecker <brobecker@adacore.com>
11732
11733 * linux-low.c (linux_low_filter_event): Update call to
11734 linux_enable_event_reporting following the addition of
11735 a new parameter to that function.
11736
bf330350
CU
117372014-12-16 Catalin Udma <catalin.udma@freescale.com>
11738
11739 PR server/17457
11740 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11741 (AARCH64_FPCR_REGNO): Likewise.
11742 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11743 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11744 (aarch64_store_fpregset): Likewise.
11745
5227d625
JB
117462014-12-15 Joel Brobecker <brobecker@adacore.com>
11747
11748 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11749 Remove FIXME comment about assumption about N.
11750
f93b65a0
JB
117512014-12-13 Joel Brobecker <brobecker@adacore.com>
11752
11753 * configure.ac: If large-file support is disabled in GDBserver,
11754 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11755 * configure: Regenerate.
11756
e5a9158d
AA
117572014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11758
11759 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11760 warning upon ENODATA from ptrace.
11761 * linux-s390-low.c (s390_store_tdb): New.
11762 (s390_regsets): Add regset for NT_S390_TDB.
11763
feea5f36
AA
117642014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11765
11766 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11767 without a fill_function.
11768 * linux-s390-low.c (s390_fill_last_break): Remove.
11769 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11770 (s390_arch_setup): Use regset's size instead of fill_function for
11771 loop end condition.
11772
098dbe61
AA
117732014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11774
11775 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11776 the regset's store function when ptrace returned an error.
11777 * regcache.c (get_thread_regcache): Invalidate register cache
11778 before fetching inferior's registers.
11779
28eef672
AA
117802014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11781
11782 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11783 while-loop as for-loop.
11784 (regsets_store_inferior_registers): Likewise.
11785
bdca27a2
YQ
117862014-11-28 Yao Qi <yao@codesourcery.com>
11787
11788 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11789 * config.in, configure: Re-generate.
11790 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11791 is defined.
11792
9c232dda
YQ
117932014-11-21 Yao Qi <yao@codesourcery.com>
11794
11795 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11796 (AC_CHECK_HEADERS): Remove malloc.h.
11797 * configure: Re-generated.
11798 * config.in: Re-generated.
11799 * server.h: Don't include alloca.h and malloc.h.
11800 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11801 Don't include malloc.h.
11802
43968415
JB
118032014-11-17 Joel Brobecker <brobecker@adacore.com>
11804
11805 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11806 corresponding ERRNO check in same block.
11807
40e91bc7
PA
118082014-11-12 Pedro Alves <palves@redhat.com>
11809
11810 * server.c (cont_thread): Update comment.
11811 (start_inferior, attach_inferior): No longer clear cont_thread.
11812 (handle_v_cont): No longer set cont_thread.
11813 (captured_main): Clear cont_thread each time a GDB connects.
11814
c2c118cf
PA
118152014-11-12 Pedro Alves <palves@redhat.com>
11816
11817 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11818 thread, and don't resume all threads if the Hc thread has exited.
11819
78708b7c
PA
118202014-11-12 Pedro Alves <palves@redhat.com>
11821
11822 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11823 the process group instead of to a specific LWP.
11824
a2abc7de
PA
118252014-10-15 Pedro Alves <palves@redhat.com>
11826
11827 PR server/17487
11828 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11829 parameter.
11830 (arm_set_thread_context): Delete.
11831 (the_low_target): Adjust.
11832 * win32-i386-low.c (debug_registers_changed)
11833 (debug_registers_used): Delete.
11834 (update_debug_registers_callback): New function.
11835 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11836 needing to update their debug registers.
11837 (win32_get_current_dr): New function.
11838 (x86_dr_low_get_addr, x86_dr_low_get_control)
11839 (x86_dr_low_get_status): Fetch the debug register from the thread
11840 record's context.
11841 (i386_initial_stuff): Adjust.
11842 (i386_get_thread_context): Remove current_event parameter. Don't
11843 clear debug_registers_changed nor copy DR values to
11844 debug_reg_state.
11845 (i386_set_thread_context): Delete.
11846 (i386_prepare_to_resume): New function.
11847 (i386_thread_added): Mark the thread as needing to update irs
11848 debug registers.
11849 (the_low_target): Remove i386_set_thread_context and install
11850 i386_prepare_to_resume.
11851 * win32-low.c (win32_get_thread_context): Adjust.
11852 (win32_set_thread_context): Use SetThreadContext
11853 directly.
11854 (win32_prepare_to_resume): New function.
11855 (win32_require_context): New function, factored out from ...
11856 (thread_rec): ... this.
11857 (continue_one_thread): Call win32_prepare_to_resume on each thread
11858 we're about to continue.
11859 (win32_resume): Call win32_prepare_to_resume on the event thread.
11860 * win32-low.h (struct win32_thread_info)
11861 <debug_registers_changed>: New field.
11862 (struct win32_target_ops): Change prototype of set_thread_context,
11863 delete set_thread_context and add prepare_to_resume.
11864 (win32_require_context): New declaration.
11865
a442d071
GB
118662014-10-08 Gary Benson <gbenson@redhat.com>
11867
11868 * server.h: Do not include common-exceptions.h.
11869
6f1947e8
GB
118702014-10-08 Gary Benson <gbenson@redhat.com>
11871
11872 * server.h: Do not include cleanups.h.
11873
63b434a4
JH
118742014-09-30 James Hogan <james.hogan@imgtec.com>
11875
11876 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11877 mips64-dsp-linux.c.
11878
c4d9ceb6
YQ
118792014-09-23 Yao Qi <yao@codesourcery.com>
11880
11881 * linux-low.c (lp_status_maybe_breakpoint): New function.
11882 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11883 (count_events_callback): Likewise.
11884 (select_event_lwp_callback): Likewise.
11885 (cancel_breakpoints_callback): Likewise.
11886
89a5711c
DB
118872014-09-19 Don Breazeal <donb@codesourcery.com>
11888
11889 * linux-low.c (handle_extended_wait): Call
11890 linux_ptrace_get_extended_event.
11891 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11892 linux_is_extended_waitstatus.
11893
bffc0964
JB
118942014-09-16 Joel Brobecker <brobecker@adacore.com>
11895
11896 * Makefile.in (CPPFLAGS): Define.
11897 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11898 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11899
0bfdf32f
GB
119002014-09-16 Gary Benson <gbenson@redhat.com>
11901
11902 * inferiors.h (current_inferior): Renamed as...
11903 (current_thread): New variable. All uses updated.
11904 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11905 (maybe_move_out_of_jump_pad): Likewise.
11906 (cancel_breakpoint): Likewise.
11907 (linux_low_filter_event): Likewise.
11908 (wait_for_sigstop): Likewise.
11909 (linux_resume_one_lwp): Likewise.
11910 (need_step_over_p): Likewise.
11911 (start_step_over): Likewise.
11912 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11913 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11914 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11915 and save_inferior as saved_thread.
11916 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11917 saved_thread.
11918 (regcache_invalidate_thread): Likewise.
11919 * remote-utils.c (prepare_resume_reply): Likewise.
11920 * thread-db.c (thread_db_get_tls_address): Likewise.
11921 (disable_thread_event_reporting): Likewise.
11922 (remove_thread_event_breakpoints): Likewise.
11923 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11924 as saved_thread.
11925 * target.h (set_desired_inferior): Renamed as...
11926 (set_desired_thread): New declaration. All uses updated.
11927 * server.c (myresume): Updated comment to reference thread instead
11928 of inferior.
11929 (handle_serial_event): Likewise.
11930 (handle_target_event): Likewise.
11931
361c8ade
GB
119322014-09-12 Tom Tromey <tromey@redhat.com>
11933 Gary Benson <gbenson@redhat.com>
11934
11935 * regcache.h: Include common-regcache.h.
11936 (regcache_read_pc): Don't declare.
11937 * regcache.c (get_thread_regcache_for_ptid): New function.
11938
bd9269f7
GB
119392014-09-11 Tom Tromey <tromey@redhat.com>
11940 Gary Benson <gbenson@redhat.com>
11941
11942 * symbol.c: New file.
11943 * Makefile.in (SFILES): Add symbol.c.
11944 (OBS): Add symbol.o.
11945
f8c1d06b
GB
119462014-09-11 Gary Benson <gbenson@redhat.com>
11947
11948 * target.c (target_stop_ptid, target_continue_ptid): New
11949 functions.
11950
721ec300
GB
119512014-09-11 Tom Tromey <tromey@redhat.com>
11952 Gary Benson <gbenson@redhat.com>
11953
11954 * target.h: Include target/target.h.
11955 * target.c (target_read_memory, target_read_uint32)
11956 (target_write_memory): New functions.
11957
c5e92cca
GB
119582014-09-11 Gary Benson <gbenson@redhat.com>
11959
11960 * server.h (debug_hw_points): Don't declare.
11961 * server.c (debug_hw_points): Don't define. Replace all uses
11962 with show_debug_regs.
11963 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11964 all uses with show_debug_regs.
11965
2e4bb98a
EBM
119662014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11967
11968 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11969 endianness into account.
11970 (ppc_supply_ptrace_register): Likewise.
11971
ac740bc7
JH
119722014-09-03 James Hogan <james.hogan@imgtec.com>
11973
11974 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11975 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11976
97ea6506
GB
119772014-09-03 Gary Benson <gbenson@redhat.com>
11978
11979 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11980 ALL_DEBUG_ADDRESS_REGISTERS.
11981
df7e5265
GB
119822014-09-02 Gary Benson <gbenson@redhat.com>
11983
11984 * i386-low.h: Renamed as...
11985 * x86-low.h: New file. All type, function and variable name
11986 prefixes changed from "i386_" to "x86_". All references updated.
11987 * i386-low.c: Renamed as...
11988 * x86-low.c: New file. All type, function and variable name
11989 prefixes changed from "i386_" to "x86_". All references updated.
11990
ed859da7
GB
119912014-09-02 Gary Benson <gbenson@redhat.com>
11992
11993 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11994 (x86_linux_new_thread): Likewise.
11995
860789c7
GB
119962014-08-29 Gary Benson <gbenson@redhat.com>
11997
11998 * server.h (setjmp.h): Do not include.
11999 (toplevel): Do not declare.
12000 (common-exceptions.h): Include.
12001 (cleanups.h): Likewise.
12002 * server.c (toplevel): Do not define.
12003 (exit_code): New static global.
12004 (detach_or_kill_for_exit_cleanup): New function.
12005 (main): New function. Original main renamed to...
12006 (captured_main): New function.
12007 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12008
ff55e1b5
GB
120092014-08-29 Gary Benson <gbenson@redhat.com>
12010
12011 * Makefile.in (SFILES): Add common/common-exceptions.c.
12012 (OBS): Add common-exceptions.o.
12013 (common-exceptions.o): New rule.
12014 * utils.c (prepare_to_throw_exception): New function.
12015
e9bcb658
GB
120162014-08-29 Gary Benson <gbenson@redhat.com>
12017
12018 * config.in: Regenerate.
12019 * configure: Likewise.
12020
e3180625
GB
120212014-08-29 Gary Benson <gbenson@redhat.com>
12022
12023 * Makefile.in (SFILES): Add common/cleanups.c.
12024 (OBS): cleanups.o.
12025 (cleanups.o): New rule.
12026
e3d6ba5d
GB
120272014-08-29 Gary Benson <gbenson@redhat.com>
12028
12029 * utils.c (internal_vwarning): New function.
12030
7096e886
GB
120312014-08-28 Gary Benson <gbenson@redhat.com>
12032
12033 * utils.h (fatal): Remove declaration.
12034 * utils.c (fatal): Remove function.
12035
14ce3192
GB
120362014-08-28 Gary Benson <gbenson@redhat.com>
12037
12038 * tracepoint.c (gdb_agent_init): Replace fatal with
12039 perror_with_name.
12040 (initialize_tracepoint): Likewise.
12041
50278d59
GB
120422014-08-28 Gary Benson <gbenson@redhat.com>
12043
12044 * remote-utils.c (remote_prepare): Replace fatal with error.
12045
aa96c426
GB
120462014-08-28 Gary Benson <gbenson@redhat.com>
12047
12048 * linux-low.c (linux_async): Replace fatal with warning.
12049 Tidy up and return.
12050 (linux_start_non_stop): Return -1 if linux_async failed.
12051
f7160e97
GB
120522014-08-28 Gary Benson <gbenson@redhat.com>
12053
12054 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12055 gdb_assert.
12056 (i386_dr_low_get_addr): Remove vague comment.
12057 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12058 gdb_assert.
12059
38e08fca
GB
120602014-08-28 Gary Benson <gbenson@redhat.com>
12061
12062 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12063 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12064 internal_error.
12065 (linux_resume_one_lwp): Likewise.
12066 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12067 gdb_assert.
12068 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12069 with internal_error.
12070 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12071 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12072 (find_register_by_name): Replace fatal with internal_error.
12073 (find_regno): Likewise.
12074 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12075 * thread-db.c (thread_db_create_event): Likewise.
12076 (thread_db_load_search): Likewise.
12077 (try_thread_db_load_1): Likewise.
12078 * tracepoint.c (get_jump_space_head): Replace fatal with
12079 internal_error.
12080 (claim_trampoline_space): Likewise.
12081 (have_fast_tracepoint_trampoline_buffer): Likewise.
12082 (cmd_qtstart): Likewise.
12083 (stop_tracing): Likewise.
12084 (fast_tracepoint_collecting): Likewise.
12085 (target_malloc): Likewise.
12086 (download_tracepoint): Likewise.
12087 (download_trace_state_variables): Replace check with gdb_assert.
12088 (upload_fast_traceframes): Replace fatal with internal_error.
12089
34abf635
GB
120902014-08-19 Tom Tromey <tromey@redhat.com>
12091 Gary Benson <gbenson@redhat.com>
12092
12093 * Makefile.in (SFILES): Add common/common-debug.c.
12094 (OBS): Add common-debug.o.
12095 (common-debug.o): New rule.
12096 * debug.h (debug_printf): Don't declare.
12097 * debug.c (debug_printf): Renamed and rewritten as...
12098 (debug_vprintf): New function.
12099
f6e94d78
GB
121002014-08-19 Gary Benson <gbenson@redhat.com>
12101
12102 * utils.h: Do not include print-utils.h.
12103
9239eeab
GB
121042014-08-19 Tom Tromey <tromey@redhat.com>
12105 Gary Benson <gbenson@redhat.com>
12106
12107 * server.h: Add static assertion.
12108 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12109
ef87c8bb
GB
121102014-08-19 Tom Tromey <tromey@redhat.com>
12111 Gary Benson <gbenson@redhat.com>
12112
12113 * Makefile.in (SFILES): Add common/errors.c.
12114 (OBS): Add errors.o.
12115 (IPA_OBS): Add errors-ipa.o.
12116 (errors.o): New rule.
12117 (errors-ipa.o): Likewise.
12118 * utils.h (perror_with_name, error, warning): Don't declare.
12119 * utils.c (warning): Renamed and rewritten as...
12120 (vwarning): New function.
12121 (error): Renamed and rewritten as...
12122 (verror): New function.
12123 (internal_error): Renamed and rewritten as...
12124 (internal_verror): New function.
12125
bb974a24
GB
121262014-08-07 Gary Benson <gbenson@redhat.com>
12127
12128 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12129 * configure: Regenerate.
12130 * config.in: Likewise.
12131 * server.h: Do not include errno.h.
12132 * event-loop.c: Likewise.
12133 * hostio-errno.c: Likewise.
12134 * linux-low.c: Likewise.
12135 * remote-utils.c: Likewise.
12136 * spu-low.c: Likewise.
12137 * utils.c: Likewise.
12138 * gdbreplay.c: Unconditionally include errno.h.
12139
6d3d12eb
GB
121402014-08-07 Gary Benson <gbenson@redhat.com>
12141
12142 * server.h: Do not include string.h.
12143 * event-loop.c: Likewise.
12144 * linux-low.c: Likewise.
12145 * regcache.c: Likewise.
12146 * remote-utils.c: Likewise.
12147 * spu-low.c: Likewise.
12148 * utils.c: Likewise.
12149
dccbb609
GB
121502014-08-07 Gary Benson <gbenson@redhat.com>
12151
12152 * server.h: Do not include gdb_assert.h.
12153
e76df0d0
GB
121542014-08-07 Gary Benson <gbenson@redhat.com>
12155
12156 * server.h: Do not include common-utils.h.
12157
4cb9c816
GB
121582014-08-07 Gary Benson <gbenson@redhat.com>
12159
12160 * server.h: Do not include ptid.h.
12161 * notif.h: Likewise.
12162
3995eeee
GB
121632014-08-07 Gary Benson <gbenson@redhat.com>
12164
12165 * server.h: Do not include gdb_locale.h.
12166
cb9f1a9b
GB
121672014-08-07 Gary Benson <gbenson@redhat.com>
12168
12169 * server.h: Do not include gdb/signals.h.
12170 * win32-low.c: Likewise.
12171
a5fceff8
GB
121722014-08-07 Gary Benson <gbenson@redhat.com>
12173
12174 * server.h: Do not include pathmax.h.
12175
b9391142
GB
121762014-08-07 Gary Benson <gbenson@redhat.com>
12177
12178 * server.h: Do not include libiberty.h.
12179 * linux-bfin-low.c: Likewise.
12180
0e443c87
GB
121812014-08-07 Gary Benson <gbenson@redhat.com>
12182
12183 * server.h: Do not include ansidecl.h.
12184
8ebb3f56
GB
121852014-08-07 Gary Benson <gbenson@redhat.com>
12186
12187 * linux-x86-low.c: Do not include stddef.h.
12188 * lynx-ppc-low.c: Likewise.
12189 * tracepoint.c: Likewise.
12190
8980bdf6
GB
121912014-08-07 Gary Benson <gbenson@redhat.com>
12192
12193 * server.h: Do not include stdarg.h.
12194 * nto-low.c: Likewise.
12195
d7096f71
GB
121962014-08-07 Gary Benson <gbenson@redhat.com>
12197
12198 * server.h: Do not include stdlib.h.
12199 * inferiors.c: Likewise.
12200 * linux-low.c: Likewise.
12201 * regcache.c: Likewise.
12202 * spu-low.c: Likewise.
12203 * tracepoint.c: Likewise.
12204 * utils.c: Likewise.
12205
d02f550d
GB
122062014-08-07 Gary Benson <gbenson@redhat.com>
12207
12208 * server.h: Do not include stdio.h.
12209 * linux-low.c: Likewise.
12210 * remote-utils.c: Likewise.
12211 * spu-low.c: Likewise.
12212 * utils.c: Likewise.
12213 * wincecompat.c: Likewise.
12214
87f6c4e3
GB
122152014-08-06 Gary Benson <gbenson@redhat.com>
12216
12217 * regcache.c (init_register_cache): Move conditionals inside if.
12218
7089dca4
GB
122192014-08-06 Gary Benson <gbenson@redhat.com>
12220
12221 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12222
462f517e
GB
122232014-07-31 Gary Benson <gbenson@redhat.com>
12224
12225 * ax.h: Do not include server.h.
12226 * gdbthread.h: Likewise.
12227 * lynx-low.h: Likewise.
12228 * notif.h: Likewise.
12229
976411d6
GB
122302014-07-30 Gary Benson <gbenson@redhat.com>
12231
12232 * server.h: Include common-defs.h.
12233 Do not include config.h or build-gnulib-gdbserver/config.h.
12234
d41f6d8e
GB
122352014-07-30 Gary Benson <gbenson@redhat.com>
12236
12237 * hostio-errno.c: Move server.h to top of includes list.
12238 * inferiors.c: Likewise.
12239 * linux-x86-low.c: Likewise.
12240 * notif.c: Include server.h.
12241
314c6a35
TT
122422014-07-24 Tom Tromey <tromey@redhat.com>
12243 Gary Benson <gbenson@redhat.com>
12244
12245 * server.h (CORE_ADDR): Now unsigned.
12246
69ff6be5
PA
122472014-07-16 Pedro Alves <palves@redhat.com>
12248
12249 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12250
ce9e3fe7
PA
122512014-07-15 Pedro Alves <palves@redhat.com>
12252
12253 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12254 copy.
12255
e76126e8
PA
122562014-07-11 Pedro Alves <palves@redhat.com>
12257
12258 * linux-low.c (kill_wait_lwp): New function, based on
12259 kill_one_lwp_callback, but use my_waitpid directly.
12260 (kill_one_lwp_callback, linux_kill): Use it.
12261
8e9db26e
PA
122622014-06-23 Pedro Alves <palves@redhat.com>
12263
12264 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12265 before setting DR0..DR3.
12266
698b3e08
GB
122672014-06-20 Gary Benson <gbenson@redhat.com>
12268
12269 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12270 * configure: Regenerated.
12271 * config.in: Likewise.
12272
125f8a3d
GB
122732014-06-20 Gary Benson <gbenson@redhat.com>
12274
12275 * Makefile.in (SFILES): Update locations for files moved
12276 from common to nat.
12277 (object file files): Reordered.
12278
42995dbd
GB
122792014-06-20 Gary Benson <gbenson@redhat.com>
12280
12281 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12282 (i386_dr_low_set_addr): Likewise.
12283 (i386_dr_low_get_addr): Likewise.
12284 (i386_dr_low_can_set_control): Likewise.
12285 (i386_dr_low_set_control): Likewise.
12286 (i386_dr_low_get_control): Likewise.
12287 (i386_dr_low_get_status): Likewise.
12288 (i386_get_debug_register_length): Likewise.
12289 * linux-x86-low.c (i386_dr_low_set_addr):
12290 Changed signature. Made static.
12291 (i386_dr_low_get_addr): Likewise.
12292 (i386_dr_low_set_control): Likewise.
12293 (i386_dr_low_get_control): Likewise.
12294 (i386_dr_low_get_status): Likewise.
12295 (i386_dr_low): New global variable.
12296 * win32-i386-low.c (i386_dr_low_set_addr):
12297 Changed signature. Made static.
12298 (i386_dr_low_get_addr): Likewise.
12299 (i386_dr_low_set_control): Likewise.
12300 (i386_dr_low_get_control): Likewise.
12301 (i386_dr_low_get_status): Likewise.
12302 (i386_dr_low): New global variable.
12303
e1d2394b
MS
123042014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12305
12306 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12307 * Makefile.in (AR, AR_FLAGS): Define.
12308 * configure: Regenerate.
12309
3a8ee006
GB
123102014-06-19 Gary Benson <gbenson@redhat.com>
12311
12312 * Makefile.in (i386-dregs.o): New rule.
12313 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12314 * i386-low.c (target.h): Remove include.
12315 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12316 (DR_CONTROL_SHIFT): Likewise.
12317 (DR_CONTROL_SIZE): Likewise.
12318 (DR_RW_EXECUTE): Likewise.
12319 (DR_RW_WRITE): Likewise.
12320 (DR_RW_READ): Likewise.
12321 (DR_RW_IORW): Likewise.
12322 (DR_LEN_1): Likewise.
12323 (DR_LEN_2): Likewise.
12324 (DR_LEN_4): Likewise.
12325 (DR_LEN_8): Likewise.
12326 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12327 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12328 (DR_ENABLE_SIZE): Likewise.
12329 (DR_LOCAL_SLOWDOWN): Likewise.
12330 (DR_GLOBAL_SLOWDOWN): Likewise.
12331 (DR_CONTROL_RESERVED): Likewise.
12332 (I386_DR_CONTROL_MASK): Likewise.
12333 (I386_DR_VACANT): Likewise.
12334 (I386_DR_LOCAL_ENABLE): Likewise.
12335 (I386_DR_GLOBAL_ENABLE): Likewise.
12336 (I386_DR_DISABLE): Likewise.
12337 (I386_DR_SET_RW_LEN): Likewise.
12338 (I386_DR_GET_RW_LEN): Likewise.
12339 (I386_DR_WATCH_HIT): Likewise.
12340 (i386_wp_op_t): Likewise.
12341 (i386_show_dr): Likewise.
12342 (i386_length_and_rw_bits): Likewise.
12343 (i386_insert_aligned_watchpoint): Likewise.
12344 (i386_remove_aligned_watchpoint): Likewise.
12345 (i386_handle_nonaligned_watchpoint): Likewise.
12346 i386_update_inferior_debug_regs(): Likewise.
12347 (i386_dr_insert_watchpoint): Likewise.
12348 (i386_dr_remove_watchpoint): Likewise.
12349 (i386_dr_region_ok_for_watchpoint): Likewise.
12350 (i386_dr_stopped_data_address): Likewise.
12351 (i386_dr_stopped_by_watchpoint): Likewise.
12352
8f26655c
GB
123532014-06-19 Gary Benson <gbenson@redhat.com>
12354
12355 * i386-low.c (i386_dr_show): Renamed to
12356 i386_show_dr and made static. All uses updated.
12357 (i386_dr_length_and_rw_bits): Renamed to
12358 i386_length_and_rw_bits and made static.
12359 All uses updated.
12360 (i386_dr_insert_aligned_watchpoint): Renamed to
12361 i386_insert_aligned_watchpoint and made static.
12362 All uses updated.
12363 (i386_dr_remove_aligned_watchpoint): Renamed to
12364 i386_remove_aligned_watchpoint and made static.
12365 All uses updated.
12366 (i386_dr_update_inferior_debug_regs): Renamed to
12367 i386_update_inferior_debug_regs and made static.
12368 All uses updated.
12369
b9228891
GB
123702014-06-18 Gary Benson <gbenson@redhat.com>
12371
5171def3
GB
12372 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12373 (i386_dr_low_can_set_control): Likewise.
12374 (i386_get_debug_register_length): Likewise.
12375 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12376 (i386_dr_low_can_set_control): Likewise.
12377 (i386_get_debug_register_length): Likewise.
12378
123792014-06-17 Gary Benson <gbenson@redhat.com>
12380
b9228891
GB
12381 * i386-low.h (i386-dregs.h): New include.
12382 (DR_FIRSTADDR): Now in i386-dregs.h.
12383 (DR_LASTADDR): Likewise.
12384 (DR_NADDR): Likewise.
12385 (DR_STATUS): Likewise.
12386 (DR_CONTROL): Likewise.
12387 (i386_debug_reg_state): Likewise.
12388 (i386_dr_insert_watchpoint): Likewise.
12389 (i386_dr_remove_watchpoint): Likewise.
12390 (i386_dr_region_ok_for_watchpoint): Likewise.
12391 (i386_dr_stopped_data_address): Likewise.
12392 (i386_dr_stopped_by_watchpoint): Likewise.
12393 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12394
4be83cc2
GB
123952014-06-18 Gary Benson <gbenson@redhat.com>
12396
12397 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12398 i386_dr_insert_watchpoint.
12399 (i386_low_remove_watchpoint): Renamed to
12400 i386_dr_remove_watchpoint.
12401 (i386_low_region_ok_for_watchpoint): Renamed to
12402 i386_dr_region_ok_for_watchpoint.
12403 (i386_low_stopped_data_address): Renamed to
12404 i386_dr_stopped_data_address.
12405 (i386_low_stopped_by_watchpoint): Renamed to
12406 i386_dr_stopped_by_watchpoint.
12407 * i386-low.c (i386_show_dr): Renamed to
12408 i386_dr_show and made nonstatic. All uses updated.
12409 (i386_length_and_rw_bits): Renamed to
12410 i386_dr_length_and_rw_bits and made nonstatic.
12411 All uses updated.
12412 (i386_insert_aligned_watchpoint): Renamed to
12413 i386_dr_insert_aligned_watchpoint and made nonstatic.
12414 All uses updated.
12415 (i386_remove_aligned_watchpoint): Renamed to
12416 i386_dr_remove_aligned_watchpoint and made nonstatic.
12417 All uses updated.
12418 (i386_update_inferior_debug_regs): Renamed to
12419 i386_dr_update_inferior_debug_regs and made nonstatic.
12420 All uses updated.
12421 (i386_low_insert_watchpoint): Renamed to
12422 i386_dr_insert_watchpoint. All uses updated.
12423 (i386_low_remove_watchpoint): Renamed to
12424 i386_dr_remove_watchpoint. All uses updated.
12425 (i386_low_region_ok_for_watchpoint): Renamed to
12426 i386_dr_region_ok_for_watchpoint. All uses updated.
12427 (i386_low_stopped_data_address): Renamed to
12428 i386_dr_stopped_data_address. All uses updated.
12429 (i386_low_stopped_by_watchpoint): Renamed to
12430 i386_dr_stopped_by_watchpoint. All uses updated.
12431
131aa0d4
GB
124322014-06-18 Gary Benson <gbenson@redhat.com>
12433
12434 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12435 (i386_dr_low_can_set_control): Likewise.
12436 (i386_insert_aligned_watchpoint): New check.
12437
d9305f7f
GB
124382014-06-18 Gary Benson <gbenson@redhat.com>
12439
12440 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12441 Renamed to state.
12442
e927c9fc
GB
124432014-06-18 Gary Benson <gbenson@redhat.com>
12444
12445 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12446 instead of fatal and error.
12447 (i386_handle_nonaligned_watchpoint): Likewise.
12448
1b6d4134
GB
124492014-06-18 Gary Benson <gbenson@redhat.com>
12450
12451 * i386-low.c (i386_get_debug_register_length): New macro.
12452 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12453 (i386_show_dr): Use debug_printf instead of fprintf. Use
12454 phex to format values.
12455
6e62758f
GB
124562014-06-18 Gary Benson <gbenson@redhat.com>
12457
12458 * i386-low.h: Comment changes.
12459 * i386-low.c: Likewise.
12460
fc6e2f03
GB
124612014-06-18 Gary Benson <gbenson@redhat.com>
12462
12463 * i386-low.c: Whitespace changes.
12464
f9d1eeed
TT
124652014-06-12 Tom Tromey <tromey@redhat.com>
12466
12467 * utils.c (freeargv): Remove.
12468
0b04e523
TT
124692014-06-12 Tom Tromey <tromey@redhat.com>
12470
12471 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12472 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12473 (parse_debug_format_options): Likewise.
12474 (gdbserver_usage): Likewise.
12475 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12476 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12477 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12478 against libiberty.
12479 ($(LIBGNU)): Depend on libiberty.
12480 (all-lib): Recurse into all subdirs.
12481 (install-only): Invoke "install" target in subdirs.
12482 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12483 targets.
12484 * configure: Rebuild.
12485 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12486 for vasprintf, vsnprintf, or gettimeofday.
12487 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12488 srv_tgtobj.
12489
270c9937
JB
124902014-06-05 Joel Brobecker <brobecker@adacore.com>
12491
12492 * development.sh: Delete.
12493 * Makefile.in (config.status): Adjust dependency on development.sh.
12494 * configure.ac: Adjust development.sh source call.
12495 * configure: Regenerate.
12496
0a261ed8
PA
124972014-06-02 Pedro Alves <palves@redhat.com>
12498
12499 * ax.c (gdb_free_agent_expr): New function.
12500 * ax.h (gdb_free_agent_expr): New declaration.
12501 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12502 list.
12503 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12504 static.
12505 (clear_breakpoint_conditions_and_commands): New function.
12506 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12507 (clear_breakpoint_conditions_and_commands): New declaration.
12508
e9dae05e
RR
125092014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12510
12511 * linux-aarch64-low.c (asm/ptrace.h): Include.
12512
5876f503
JK
125132014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12514
12515 Fix TLS access for -static -pthread.
12516 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12517 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12518 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12519
802e8e6d
PA
125202014-05-20 Pedro Alves <palves@redhat.com>
12521
12522 * linux-aarch64-low.c (aarch64_insert_point)
12523 (aarch64_remove_point): No longer check whether the type is
12524 supported here. Adjust to new interface.
12525 (the_low_target): Install aarch64_supports_z_point_type as
12526 supports_z_point_type method.
12527 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12528 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12529 instead of a Z packet char. Adjust.
12530 (arm_supports_z_point_type): New function.
12531 (arm_insert_point, arm_remove_point): Adjust to new interface.
12532 (the_low_target): Install arm_supports_z_point_type.
12533 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12534 (cris_insert_point, cris_remove_point): Adjust to new interface.
12535 Don't check whether the type is supported here.
12536 (the_low_target): Install cris_supports_z_point_type.
12537 * linux-low.c (linux_supports_z_point_type): New function.
12538 (linux_insert_point, linux_remove_point): Adjust to new interface.
12539 * linux-low.h (struct linux_target_ops) <insert_point,
12540 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12541 raw_breakpoint pointer parameter.
12542 <supports_z_point_type>: New method.
12543 * linux-mips-low.c (mips_supports_z_point_type): New function.
12544 (mips_insert_point, mips_remove_point): Adjust to new interface.
12545 Use mips_supports_z_point_type.
12546 (the_low_target): Install mips_supports_z_point_type.
12547 * linux-ppc-low.c (the_low_target): Install NULL as
12548 supports_z_point_type method.
12549 * linux-s390-low.c (the_low_target): Install NULL as
12550 supports_z_point_type method.
12551 * linux-sparc-low.c (the_low_target): Install NULL as
12552 supports_z_point_type method.
12553 * linux-x86-low.c (x86_supports_z_point_type): New function.
12554 (x86_insert_point): Adjust to new insert_point interface. Use
12555 insert_memory_breakpoint. Adjust to new
12556 i386_low_insert_watchpoint interface.
12557 (x86_remove_point): Adjust to remove_point interface. Use
12558 remove_memory_breakpoint. Adjust to new
12559 i386_low_remove_watchpoint interface.
12560 (the_low_target): Install x86_supports_z_point_type.
12561 * lynx-low.c (lynx_target_ops): Install NULL as
12562 supports_z_point_type callback.
12563 * nto-low.c (nto_supports_z_point_type): New.
12564 (nto_insert_point, nto_remove_point): Adjust to new interface.
12565 (nto_target_ops): Install nto_supports_z_point_type.
12566 * mem-break.c: Adjust intro comment.
12567 (struct raw_breakpoint) <raw_type, size>: New fields.
12568 <inserted>: Update comment.
12569 <shlib_disabled>: Delete field.
12570 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12571 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12572 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12573 (raw_bkpt_type_to_target_hw_bp_type): New function.
12574 (find_enabled_raw_code_breakpoint_at): New function.
12575 (find_raw_breakpoint_at): New type and size parameters. Use them.
12576 (insert_memory_breakpoint): New function, based off
12577 set_raw_breakpoint_at.
12578 (remove_memory_breakpoint): New function.
12579 (set_raw_breakpoint_at): Reimplement.
12580 (set_breakpoint): New, based on set_breakpoint_at.
12581 (set_breakpoint_at): Reimplement.
12582 (delete_raw_breakpoint): Go through the_target->remove_point
12583 instead of assuming memory breakpoints.
12584 (find_gdb_breakpoint_at): Delete.
12585 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12586 (find_gdb_breakpoint): New function.
12587 (set_gdb_breakpoint_at): Delete.
12588 (z_type_supported): New function.
12589 (set_gdb_breakpoint_1): New function, loosely based off
12590 set_gdb_breakpoint_at.
12591 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12592 (delete_gdb_breakpoint_at): Delete.
12593 (delete_gdb_breakpoint_1): New function, loosely based off
12594 delete_gdb_breakpoint_at.
12595 (delete_gdb_breakpoint): New function.
12596 (clear_gdb_breakpoint_conditions): Rename to ...
12597 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12598 breakpoint.
12599 (add_condition_to_breakpoint): Make static.
12600 (add_breakpoint_condition): Take a struct breakpoint pointer
12601 instead of an address. Adjust.
12602 (gdb_condition_true_at_breakpoint): Rename to ...
12603 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12604 z_type parameter.
12605 (gdb_condition_true_at_breakpoint): Reimplement.
12606 (add_breakpoint_commands): Take a struct breakpoint pointer
12607 instead of an address. Adjust.
12608 (gdb_no_commands_at_breakpoint): Rename to ...
12609 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12610 parameter. Return true if no breakpoint was found. Change debug
12611 output.
12612 (gdb_no_commands_at_breakpoint): Reimplement.
12613 (run_breakpoint_commands): Rename to ...
12614 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12615 and change return type to boolean.
12616 (run_breakpoint_commands): New function.
12617 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12618 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12619 breakpoint. Go through the_target->remove_point instead of
12620 assuming memory breakpoint.
12621 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12622 software and hardware breakpoints.
12623 (reinsert_raw_breakpoint): Go through the_target->insert_point
12624 instead of assuming memory breakpoint.
12625 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12626 software and hardware breakpoints.
12627 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12628 Check both software and hardware breakpoints.
12629 (validate_inserted_breakpoint): Assert the breakpoint is a
12630 software breakpoint. Set the inserted flag to -1 instead of
12631 setting shlib_disabled.
12632 (delete_disabled_breakpoints): Adjust.
12633 (validate_breakpoints): Only validate software breakpoints.
12634 Adjust to inserted flag change.
12635 (check_mem_read, check_mem_write): Skip breakpoint types other
12636 than software breakpoints. Adjust to inserted flag change.
12637 * mem-break.h (enum raw_bkpt_type): New enum.
12638 (raw_breakpoint, struct process_info): Forward declare.
12639 (Z_packet_to_target_hw_bp_type): Delete declaration.
12640 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12641 (set_gdb_breakpoint, delete_gdb_breakpoint)
12642 (clear_breakpoint_conditions): New declarations.
12643 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12644 (breakpoint_inserted_here): Update comment.
12645 (add_breakpoint_condition, add_breakpoint_commands): Replace
12646 address parameter with a breakpoint pointer parameter.
12647 (gdb_breakpoint_here): Update comment.
12648 (delete_gdb_breakpoint_at): Delete.
12649 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12650 * server.c (process_point_options): Take a struct breakpoint
12651 pointer instead of an address. Adjust.
12652 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12653 delete_gdb_breakpoint.
12654 * spu-low.c (spu_target_ops): Install NULL as
12655 supports_z_point_type method.
12656 * target.h: Include mem-break.h.
12657 (struct target_ops) <prepare_to_access_memory>: Update comment.
12658 <supports_z_point_type>: New field.
12659 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12660 instead of a char. Also take a raw breakpoint pointer.
12661 * win32-arm-low.c (the_low_target): Install NULL as
12662 supports_z_point_type.
12663 * win32-i386-low.c (i386_supports_z_point_type): New function.
12664 (i386_insert_point, i386_remove_point): Adjust to new interface.
12665 (the_low_target): Install i386_supports_z_point_type.
12666 * win32-low.c (win32_supports_z_point_type): New function.
12667 (win32_insert_point, win32_remove_point): Adjust to new interface.
12668 (win32_target_ops): Install win32_supports_z_point_type.
12669 * win32-low.h (struct win32_target_ops):
12670 <supports_z_point_type>: New method.
12671 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12672 instead of a char. Also take a raw breakpoint pointer.
12673
932539e3
PA
126742014-05-20 Pedro Alves <palves@redhat.com>
12675
12676 * mem-break.h: Include break-common.h.
12677 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12678 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12679 (Z_packet_to_target_hw_bp_type): New declaration.
12680 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12681 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12682 (Z_PACKET_ACCESS_WP): Delete macros.
12683 (Z_packet_to_hw_type): Delete function.
12684 * i386-low.h: Don't include break-common.h here.
12685 (Z_packet_to_hw_type): Delete declaration.
12686 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12687 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12688 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12689 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12690 * linux-aarch64-low.c: Don't include break-common.h here.
12691 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12692 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12693 (Z_packet_to_target_hw_bp_type): Delete function.
12694 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12695 function.
12696 (mips_insert_point, mips_remove_point): Use
12697 Z_packet_to_target_hw_bp_type.
12698
4ff0d3d8
PA
126992014-05-20 Pedro Alves <palves@redhat.com>
12700
12701 * linux-aarch64-low.c: Include break-common.h.
12702 (enum target_point_type): Delete.
12703 (Z_packet_to_point_type): Rename to ...
12704 (Z_packet_to_target_hw_bp_type): ... this, and return a
12705 target_hw_bp_type instead.
12706 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12707 instead of an enum target_point_type.
12708 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12709 breakpoint type.
12710 (aarch64_dr_state_insert_one_point)
12711 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12712 (aarch64_handle_aligned_watchpoint)
12713 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12714 Take an enum target_hw_bp_type instead of an enum
12715 target_point_type.
12716 (aarch64_supports_z_point_type): New function.
12717 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12718 use Z_packet_to_target_hw_bp_type.
12719
786dc519
JB
127202014-05-20 Joel Brobecker <brobecker@adacore.com>
12721
12722 * configure.ac: Only use -Werror by default when DEVELOPMENT
12723 is true.
12724 * configure: Regenerate.
12725
9e0aa64f
JK
127262014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12727
12728 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12729 * linux-x86-low.c (X86_64_USER_REGS): New.
12730 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12731
2b577b92
YQ
127322014-04-28 Yao Qi <yao@codesourcery.com>
12733
12734 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12735 name.
12736
94611da2
PA
127372014-04-25 Pedro Alves <palves@redhat.com>
12738
12739 PR server/16255
12740 * linux-low.c (linux_attach_fail_reason_string): New function.
12741 (linux_attach_lwp): Delete.
12742 (linux_attach_lwp_1): Rename to ...
12743 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12744 argument. Remove "initial" parameter. Return int instead of
12745 void. Don't error or warn here.
12746 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12747 failure to attach to the tgid. Call warning when failing to
12748 attach to an lwp.
12749 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12750 argument. Remove "initial" parameter. Return int instead of
12751 void. Don't error or warn here.
12752 (linux_attach_fail_reason_string): New declaration.
12753 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12754 interface change. Use linux_attach_fail_reason_string.
12755
01f9f808
MS
127562014-04-24 Michael Sturm <michael.sturm@mintel.com>
12757 Walfred Tedeschi <walfred.tedeschi@intel.com>
12758
12759 * Makefile.in: Added rules to handle new files
12760 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12761 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12762 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12763 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12764 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12765 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12766 x32-avx512-linux.o.
12767 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12768 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12769 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12770 i386/x32-avx512.xml.
12771 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12772 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12773 i386/x32-avx512-linux.xml.
12774 * i387-fp.c (num_avx512_k_registers): New constant for number
12775 of K registers.
12776 (num_avx512_zmmh_low_registers): New constant for number of
12777 lower ZMM registers (0-15).
12778 (num_avx512_zmmh_high_registers): New constant for number of
12779 higher ZMM registers (16-31).
12780 (num_avx512_ymmh_registers): New contant for number of higher
12781 YMM registers (ymm16-31 added by avx521 on x86_64).
12782 (num_avx512_xmm_registers): New constant for number of higher
12783 XMM registers (xmm16-31 added by AVX512 on x86_64).
12784 (struct i387_xsave): Add space for AVX512 registers.
12785 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12786 Add code to handle AVX512 registers.
12787 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12788 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12789 prototypei from generated file.
12790 (tdesc_amd64_avx512_linux): Likewise.
12791 (init_registers_x32_avx512_linux): Likewise.
12792 (tdesc_x32_avx512_linux): Likewise.
12793 (init_registers_i386_avx512_linux): Likewise.
12794 (tdesc_i386_avx512_linux): Likewise.
12795 (x86_64_regmap): Add AVX512 registers.
12796 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12797 mask.
12798 (initialize_low_arch): Add code to initialize AVX512 registers.
12799
51aa91f9
PA
128002014-04-23 Pedro Alves <palves@redhat.com>
12801
12802 * mem-break.c (find_gdb_breakpoint_at): Make static.
12803 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12804
a4165e94
PA
128052014-04-23 Pedro Alves <palves@redhat.com>
12806
12807 * i386-low.c: Don't include break-common.h here.
12808 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12809 prototype to take target_hw_bp_type as argument instead of a Z
12810 packet char.
12811 * i386-low.h: Include break-common.h here.
12812 (Z_packet_to_hw_type): Declare.
12813 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12814 prototypes.
12815 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12816 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12817 (x86_remove_point): Convert the packet number to a
12818 target_hw_bp_type before calling i386_low_remove_watchpoint.
12819 * win32-i386-low.c (i386_insert_point): Convert the packet number
12820 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12821 (i386_remove_point): Convert the packet number to a
12822 target_hw_bp_type before calling i386_low_remove_watchpoint.
12823
b8acf843
PA
128242014-04-23 Pedro Alves <palves@redhat.com>
12825
12826 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12827
d708bcd1
PA
128282014-04-10 Pedro Alves <palves@redhat.com>
12829
12830 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12831 Check if the condition or command is NULL before checking if the
12832 breakpoint is known. On success, return true.
12833 * mem-break.h (add_breakpoint_condition): Document return.
12834 (add_breakpoint_commands): Add describing comment.
12835 * server.c (skip_to_semicolon): New function.
12836 (process_point_options): Use it.
12837
2eec7d5b
PA
128382014-04-09 Pedro Alves <palves@redhat.com>
12839
12840 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12841 to lwpid_of.
12842
fa96cb38
PA
128432014-02-27 Pedro Alves <palves@redhat.com>
12844
12845 PR 12702
12846 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12847 macros.
12848 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12849 output.
12850 (last_thread_of_process_p): Take a PID argument instead of a
12851 thread pointer.
12852 (linux_wait_for_lwp): Delete.
12853 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12854 functions.
12855 (linux_low_filter_event): New function, party factored out from
12856 linux_wait_for_event.
12857 (linux_wait_for_event): Rename to ...
12858 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12859 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12860 sigsuspend. Check for zombie leaders.
12861 (linux_wait_for_event): Reimplement as wrapper around
12862 linux_wait_for_event_filtered.
12863 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12864 a normal or signal exit is seen, it's the whole process exiting.
12865 (wait_for_sigstop): No longer a for_each_inferior callback.
12866 Rewrite on top of linux_wait_for_event_filtered.
12867 (stop_all_lwps): Call wait_for_sigstop directly.
12868 * server.c (resume, handle_target_event): Handle
12869 TARGET_WAITKIND_NO_RESUMED.
12870
d763de10
JB
128712014-02-26 Joel Brobecker <brobecker@adacore.com>
12872
12873 * win32-low.c (psapi_get_dll_name,
12874 * win32_CreateToolhelp32Snapshot): Delete.
12875 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12876 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12877 Delete.
12878 (handle_load_dll): Add function description.
12879 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12880
850a0f76
JB
128812014-02-26 Joel Brobecker <brobecker@adacore.com>
12882
12883 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12884 Add comment.
12885 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12886 base address when calling win32_add_one_solib.
12887 (handle_load_dll): Delete local variable load_addr.
12888 Remove 0x1000 offset applied to DLL base address when calling
12889 win32_add_one_solib.
12890 (handle_unload_dll): Add comment.
12891
f25b3fc3
JB
128922014-02-26 Joel Brobecker <brobecker@adacore.com>
12893
12894 * win32-low.c (win32_add_all_dlls): Renames
12895 win32_ensure_ntdll_loaded. Rewrite function documentation.
12896 Adjust implementation to always load all DLLs.
12897 Add 0x1000 offset to DLL base address when calling
12898 win32_add_one_solib.
12899 (child_initialization_done): New static global.
12900 (do_initial_child_stuff): Set child_initialization_done to
12901 zero during child initialization, and 1 after. Replace call
12902 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12903 Add comment.
12904 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12905 (handle_unload_dll): Add function documentation.
12906 (get_child_debug_event): Ignore load and unload DLL events
12907 during child initialization.
12908
d86d4aaf
DE
129092014-02-20 Doug Evans <dje@google.com>
12910
3bc32da3 12911 Remove global all_lwps.
d86d4aaf
DE
12912 * inferiors.h (ptid_of): Move here from linux-low.h.
12913 (pid_of, lwpid_of): Ditto.
12914 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12915 parameter is a struct thread_info * now.
12916 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12917 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12918 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12919 directly.
12920 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12921 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12922 * linux-arm-low.c (update_registers_callback): Update, "entry"
12923 parameter is a struct thread_info * now.
12924 Fetch lwpid from current_inferior directly.
12925 (arm_insert_point): Pass &all_threads to find_inferior instead of
12926 &all_lwps.
12927 (arm_remove_point): Ditto.
12928 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12929 (arm_prepare_to_resume): Fetch pid from thread.
12930 (arm_read_description): Fetch lwpid from current_inferior directly.
12931 * linux-low.c (all_lwps): Delete.
12932 (delete_lwp): Delete call to remove_inferior.
12933 (handle_extended_wait): Fetch lwpid from thread.
12934 (add_lwp): Don't set lwp->entry.id. Remove call to
12935 add_inferior_to_list.
12936 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12937 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12938 (kill_one_lwp_callback): Ditto.
12939 (linux_kill): Don't dereference NULL pointer.
12940 Fetch ptid,lwpid from thread.
12941 (get_detach_signal): Fetch ptid from thread.
12942 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12943 Simplify call to regcache_invalidate_thread.
12944 (delete_lwp_callback): Update, "entry" parameter is a
12945 struct thread_info * now. Fetch pid from thread.
12946 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12947 (status_pending_p_callback): Update, "entry" parameter is a
12948 struct thread_info * now. Fetch ptid from thread.
12949 (find_lwp_pid): Update, "entry" parameter is a
12950 struct thread_info * now.
12951 (linux_wait_for_lwp): Fetch pid from thread.
12952 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12953 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12954 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12955 (dequeue_one_deferred_signal): Ditto.
12956 (cancel_breakpoint): Fetch ptid from current_inferior.
12957 (linux_wait_for_event): Pass &all_threads to find_inferior,
12958 not &all_lwps. Fetch ptid, lwpid from thread.
12959 (count_events_callback): Update, "entry" parameter is a
12960 struct thread_info * now.
12961 (select_singlestep_lwp_callback): Ditto.
12962 (select_event_lwp_callback): Ditto.
12963 (cancel_breakpoints_callback): Ditto.
12964 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12965 not &all_lwps.
12966 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12967 (unsuspend_one_lwp): Update, "entry" parameter is a
12968 struct thread_info * now.
12969 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12970 not &all_lwps.
12971 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12972 Fetch lwpid from thread, not lwp.
12973 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12974 Pass &all_threads to find_inferior, not &all_lwps.
12975 (send_sigstop): Fetch lwpid from thread, not lwp.
12976 (send_sigstop_callback): Update, "entry" parameter is a
12977 struct thread_info * now.
12978 (suspend_and_send_sigstop_callback): Ditto.
12979 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12980 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12981 struct thread_info * now.
12982 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12983 from thread, lwp.
12984 (lwp_running): Update, "entry" parameter is a
12985 struct thread_info * now.
12986 (stop_all_lwps): Fetch ptid from thread.
12987 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12988 (linux_resume_one_lwp): Fetch lwpid from thread.
12989 (linux_set_resume_request): Update, "entry" parameter is a
12990 struct thread_info * now. Fetch pid, lwpid from thread.
12991 (resume_status_pending_p): Update, "entry" parameter is a
12992 struct thread_info * now.
12993 (need_step_over_p): Ditto. Fetch lwpid from thread.
12994 (start_step_over): Fetch lwpid from thread.
12995 (linux_resume_one_thread): Update, "entry" parameter is a
12996 struct thread_info * now. Fetch lwpid from thread.
12997 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12998 (proceed_one_lwp): Update, "entry" parameter is a
12999 struct thread_info * now. Fetch lwpid from thread.
13000 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13001 struct thread_info * now.
13002 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13003 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13004 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13005 directly.
13006 (regsets_store_inferior_registers): Ditto.
13007 (fetch_register, store_register): Ditto.
13008 (linux_read_memory, linux_write_memory): Ditto.
13009 (linux_request_interrupt): Ditto.
13010 (linux_read_auxv): Ditto.
13011 (linux_xfer_siginfo): Ditto.
13012 (linux_qxfer_spu): Ditto.
13013 (linux_qxfer_libraries_svr4): Ditto.
13014 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13015 moved to inferiors.h.
13016 (get_lwp): Delete.
13017 (get_thread_lwp): Update.
13018 (struct lwp_info): Delete member "entry". Simplify comment for
13019 member "thread".
13020 (all_lwps): Delete.
13021 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13022 current_inferior directly.
13023 (update_watch_registers_callback): Update, "entry" parameter is a
13024 struct thread_info * now. Fetch pid from thread.
13025 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13026 (mips_insert_point): Fetch lwpid from current_inferior.
13027 Pass &all_threads to find_inferior, not &all_lwps.
13028 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13029 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13030 directly.
13031 (mips_stopped_data_address): Ditto.
13032 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13033 directly.
13034 * linux-tile-low.c (tile_arch_setup): Ditto.
13035 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13036 (update_debug_registers_callback): Update, "entry" parameter is a
13037 struct thread_info * now. Fetch pid from thread.
13038 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13039 Pass &all_threads to find_inferior, not &all_lwps.
13040 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13041 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13042 Pass &all_threads to find_inferior, not &all_lwps.
13043 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13044 (i386_dr_low_get_status): Ditto.
13045 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13046 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13047 (x86_linux_read_description): Ditto.
13048 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13049
3b8361aa
DE
130502014-02-20 Doug Evans <dje@google.com>
13051
13052 * inferiors.c (get_first_inferior): Fix buglet.
13053
f7667f0d
DE
130542014-02-19 Doug Evans <dje@google.com>
13055
13056 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13057 * inferiors.c (add_thread): Change result type to struct thread_info *.
13058 All callers updated.
13059 (add_lwp): Call add_thread here instead of in callers.
13060 All callers updated.
13061 * linux-low.h (get_lwp_thread): Rewrite.
13062 (struct lwp_info): New member "thread".
13063
b3312d80
DE
130642014-02-19 Doug Evans <dje@google.com>
13065
13066 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13067 All callers updated.
13068
ecc6f45c
DE
130692014-02-19 Doug Evans <dje@google.com>
13070
13071 * inferiors.c (add_thread): Fix whitespace.
13072
649ebbca
DE
130732014-02-19 Doug Evans <dje@google.com>
13074
13075 * dll.c (clear_dlls): Replace accessing list implemention details
13076 with API function.
13077 * gdbthread.h (get_first_thread): Declare.
13078 * inferiors.c (for_each_inferior_with_data): New function.
13079 (get_first_thread): New function.
13080 (find_thread_ptid): Simplify.
13081 (get_first_inferior): New function.
13082 (clear_list): Delete.
13083 (one_inferior_p): New function.
13084 (clear_inferior_list): New function.
13085 (clear_inferiors): Update.
13086 * inferiors.h (for_each_inferior_with_data): Declare.
13087 (clear_inferior_list): Declare.
13088 (one_inferior_p): Declare.
13089 (get_first_inferior): Declare.
13090 * linux-low.c (linux_wait_for_event): Replace accessing list
13091 implemention details with API function.
13092 * server.c (target_running): Ditto.
13093 (accumulate_file_name_length): New function.
13094 (emit_dll_description): New function.
13095 (handle_qxfer_libraries): Replace accessing list implemention
13096 details with API function.
13097 (handle_qxfer_threads_worker): New function.
13098 (handle_qxfer_threads_proper): Replace accessing list implemention
13099 details with API function.
13100 (handle_query): Ditto.
13101 (visit_actioned_threads_callback_ftype): New typedef.
13102 (visit_actioned_threads_data): New struct.
13103 (visit_actioned_threads): Rewrite to be find_inferior callback.
13104 (resume): Call find_inferior.
13105 (handle_status): Replace accessing list implemention
13106 details with API function.
13107 (process_serial_event): Replace accessing list implemention details
13108 with API function.
13109 * target.c (set_desired_inferior): Replace accessing list implemention
13110 details with API function.
13111 * tracepoint.c (same_process_p): New function.
13112 (gdb_agent_about_to_close): Replace accessing list implemention
13113 details with API function.
13114 * win32-low.c (child_delete_thread): Replace accessing list
13115 implemention details with API function.
13116 (match_dll_by_basename): New function.
13117 (dll_is_loaded_by_basename): New function.
13118 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13119 details call to dll_is_loaded_by_basename.
13120
80894984
DE
131212014-02-19 Doug Evans <dje@google.com>
13122
13123 * dll.h (struct dll_info): Add comment.
13124 * gdbthread.h (struct thread_info): Add comment.
13125 (current_ptid): Simplify.
13126 * inferiors.c (add_process): Update.
13127 (remove_process): Update.
13128 * inferiors.h (struct process_info): Rename member "head" to "entry".
13129 * linux-low.c (delete_lwp): Update.
13130 (add_lwp): Update.
13131 (last_thread_of_process_p): Update.
13132 (kill_one_lwp_callback, linux_kill): Update.
13133 (status_pending_p_callback): Update.
13134 (wait_for_sigstop): Update. Simplify read of ptid.
13135 (start_step_over): Update.
13136 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13137 (get_lwp_thread): Update.
13138 (struct lwp_info): Rename member "head" to "entry".
13139 * regcache.h (inferior_list_entry): Delete.
13140 * server.c (kill_inferior_callback): Update.
13141 (detach_or_kill_inferior_callback): Update.
13142 (print_started_pid): Update.
13143 (print_attached_pid): Update.
13144 (process_serial_event): Simplify read of ptid.
13145 * thread-db.c (thread_db_create_event): Update.
13146 (thread_db_get_tls_address): Update.
13147 * win32-low.c (current_inferior_ptid): Simplify.
13148
46917d26
TT
131492014-02-19 Tom Tromey <tromey@redhat.com>
13150
13151 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13152 argument.
13153 (target_supports_btrace): Update.
13154
0759a81e
YQ
131552014-02-14 Yao Qi <yao@codesourcery.com>
13156
13157 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13158 (rsp-low-ipa.o): New target.
13159
a7191e8b
TT
131602014-02-12 Tom Tromey <tromey@redhat.com>
13161
13162 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13163 convert_ascii_to_int.
13164 * regcache.c (registers_to_string): Likewise.
13165 * remote-utils.c (decode_M_packet): Likewise.
13166 * server.c (process_serial_event): Likewise.
13167
ff0e980e
TT
131682014-02-12 Tom Tromey <tromey@redhat.com>
13169
13170 * server.c (handle_query, handle_v_run): Use hex2bin, not
13171 unhexify.
13172 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13173
e9371aff
TT
131742014-02-12 Tom Tromey <tromey@redhat.com>
13175
13176 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13177 convert_int_to_ascii.
13178 * regcache.c (registers_to_string, collect_register_as_string):
13179 Likewise.
13180 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13181 Likewise.
13182 * server.c (process_serial_event): Likewise.
13183 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13184 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13185
971dc0b8
TT
131862014-02-12 Tom Tromey <tromey@redhat.com>
13187
13188 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13189 bin2hex, not hexify.
13190 * tracepoint.c (cmd_qtstatus): Likewise.
13191
0a822afb
TT
131922014-02-12 Tom Tromey <tromey@redhat.com>
13193
13194 * remote-utils.c (monitor_output): Pass explicit length to
13195 hexify.
13196
9c3d6531
TT
131972014-02-12 Tom Tromey <tromey@redhat.com>
13198
13199 * tracepoint.c: Include rsp-low.h.
13200 * server.c: Include rsp-low.h.
13201 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13202 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13203 declare.
13204 * remote-utils.c: Include rsp-low.h.
13205 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13206 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13207 (convert_int_to_ascii, convert_ascii_to_int): Move to
13208 common/rsp-low.c.
13209 * regcache.c: Include rsp-low.h.
13210 * ax.c: Include rsp-low.h.
13211 * Makefile.in (SFILES): Add common/rsp-low.c.
13212 (OBS): Add rsp-low.o.
13213 (rsp-low.o): New target.
13214
01fd3ea5
TT
132152014-02-12 Tom Tromey <tromey@redhat.com>
13216
13217 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13218 Include print-utils.h.
13219 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13220 (plongest, thirty_two, phex_nz): Remove.
13221 * Makefile.in (SFILES): Add common/print-utils.c.
13222 (OBS): Add print-utils.o.
13223 (print-utils-ipa.o): New target.
13224 (print-utils.o): New target.
13225 (IPA_OBJS): Add print-utils-ipa.o.
13226
e99dc820
TT
132272014-02-06 Tom Tromey <tromey@redhat.com>
13228
13229 * Makefile.in (SFILES): Fix indentation.
13230
ee1e2d4f
DE
132312014-02-05 Doug Evans <dje@google.com>
13232
13233 * linux-low.c (linux_wait_for_event): Improve comment.
13234 (linux_wait_1): Keep current_inferior in sync with event_child.
13235
f5a02773
DE
132362014-01-22 Doug Evans <dje@google.com>
13237
13238 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13239
87ce2a04
DE
132402014-01-22 Doug Evans <dje@google.com>
13241
13242 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13243 * configure: Regenerate.
13244 * config.in: Regenerate.
13245 * Makefile.in (SFILES): Add debug.c.
13246 (OBS): Add debug.o.
13247 * debug.c: New file.
13248 * debug.h: New file.
13249 * linux-aarch64-low.c (*): Update all debugging printfs to use
13250 debug_printf instead of fprintf.
13251 * linux-arm-low.c (*): Ditto.
13252 * linux-cris-low.c (*): Ditto.
13253 * linux-crisv32-low.c (*): Ditto.
13254 * linux-m32r-low.c (*): Ditto.
13255 * linux-sparc-low.c (*): Ditto.
13256 * linux-x86.c (*): Ditto.
13257 * linux-low.c (*): Ditto.
13258 (linux_wait_1): Add calls to debug_enter, debug_exit.
13259 (linux_wait): Remove redundant debugging printf.
13260 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13261 (linux_resume, unstop_all_lwps): Ditto.
13262 * mem-break.c (*): Update all debugging printfs to use
13263 debug_printf instead of fprintf.
13264 * remote-utils.c (*): Ditto.
13265 * thread-db.c (*): Ditto.
13266 * server.c #include <ctype.h>, "gdb_vecs.h".
13267 (debug_threads): Moved to debug.c.
13268 (*): Update all debugging printfs to use debug_printf instead of
13269 fprintf.
13270 (start_inferior): Replace call to fflush with call to debug_flush.
13271 (monitor_show_help): Mention set debug-format.
13272 (parse_debug_format_options): New function.
13273 (handle_monitor_command): Handle "monitor set debug-format".
13274 (gdbserver_usage): Mention --debug-format.
13275 (main): Parse --debug-format.
13276 * server.h (debug_threads): Declaration moved to debug.h.
13277 #include "debug.h".
13278 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13279 trace_debug_1 that uses debug_printf.
13280 (tracepoint_look_up_symbols): Update all debugging printfs to use
13281 debug_printf instead of fprintf.
13282
e671835b
BS
132832014-01-20 Baruch Siach <baruch@tkos.co.il>
13284
13285 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13286 sys/ptrace.h.
13287
b5737fa9
PA
132882014-01-17 Pedro Alves <palves@redhat.com>
13289
ea38d2a9 13290 PR build/16445
c7faa97a
PA
13291 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13292 defined after including gdb_proc_service.h.
b5737fa9 13293
40ed484e
DE
132942014-01-16 Doug Evans <dje@google.com>
13295
13296 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13297 (match_dll): Use it.
13298
969c39fb
MM
132992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13300
13301 * target.h (target_ops) <read_btrace>: Change parameters and
13302 return type to allow error reporting.
13303 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13304 trace reading errors on.
13305 * linux-low.c (linux_low_read_btrace): Pass trace reading
13306 errors on.
13307 (linux_low_disable_btrace): New.
13308
ab7f45ba
DE
133092014-01-15 Doug Evans <dje@google.com>
13310
13311 * inferiors.c (thread_id_to_gdb_id): Delete.
13312 * inferiors.h (thread_id_to_gdb_id): Delete.
13313
66af0f44
EZ
133142014-01-13 Eli Zaretskii <eliz@gnu.org>
13315
13316 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13317 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13318 versions.
13319
9939e131
PA
133202014-01-08 Pedro Alves <palves@redhat.com>
13321
13322 * server.c (handle_status): Don't discard previous queued stop
13323 replies or thread's pending status here.
13324 (main) <disconnection>: Do it here instead.
13325
b7ea362b
PA
133262014-01-08 Pedro Alves <palves@redhat.com>
13327
13328 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13329 * server.c (visit_actioned_threads, handle_pending_status): New
13330 function.
13331 (handle_v_cont): Factor out parts to ...
13332 (resume): ... this new function. If in all-stop, and a thread
13333 being resumed has a pending status, report it without actually
13334 resuming.
13335 (myresume): Adjust to use the new 'resume' function.
13336 (clear_pending_status_callback, set_pending_status_callback)
13337 (find_status_pending_thread_callback): New functions.
13338 (handle_status): Handle the case of multiple threads having
13339 interesting statuses to report. Report threads' real last signal
13340 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13341 with an interesting thread to report the status for, instead of
13342 always reporting the status of the first thread.
13343
28498c42
JB
133442014-01-01 Joel Brobecker <brobecker@adacore.com>
13345
13346 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13347 * gdbreplay.c (gdbreplay_version): Likewise.
13348
f45c82da
YZ
133492013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13350
13351 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13352 iov.iov_len with the real length in use.
13353
379a5e2d
JB
133542013-12-13 Joel Brobecker <brobecker@adacore.com>
13355
13356 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13357 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13358 for all targets that use win32-low.c.
13359 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13360 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13361
4210d83e
PA
133622013-12-13 Pedro Alves <palves@redhat.com>
13363
13364 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13365 if equal to TARGET_WAITKIND_LOADED.
13366 * win32-low.c (cached_status): New static global.
13367 (win32_wait): Add declaration.
13368 (do_initial_child_stuff): Flush all initial pending debug events
13369 up to the initial breakpoint.
13370 (win32_wait): If CACHED_STATUS was set, return that instead
13371 of doing a real wait. Remove the code resuming the execution
13372 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13373 during the initial phase. Also remove the code changing
13374 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13375 TARGET_WAITKIND_STOPPED.
13376
e7f0d979
YQ
133772013-12-11 Yao Qi <yao@codesourcery.com>
13378
13379 * notif.c (handle_notif_ack): Return 0 if no notification
13380 matches.
13381
ebcf782c
DE
133822013-11-20 Doug Evans <dje@google.com>
13383
13384 * linux-low.c (linux_set_resume_request): Fix comment.
13385
20ad9378
DE
133862013-11-20 Doug Evans <dje@google.com>
13387
13388 * linux-low.c (resume_status_pending_p): Tweak comment.
13389
a196ebeb
WT
133902013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13391
13392 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13393 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13394 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13395 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13396 (srv_amd64_regobj): Add amd64-mpx.o.
13397 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13398 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13399 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13400 * i387-fp.c (num_pl_bnd_register) Added constant.
13401 (num_pl_bnd_cfg_registers) Added constant.
13402 (struct i387_xsave) Added reserved area and MPX fields.
13403 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13404 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13405 function.
13406 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13407 (init_registers_amd64_mpx_linux): Declare new function.
13408 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13409 (x86_64_regmap): Add MPX registers.
13410 (x86_linux_read_description): Add MPX case.
13411 (initialize_low_arch): Initialize MPX targets.
13412
0080a2f6
TT
134132013-11-18 Tom Tromey <tromey@redhat.com>
13414
13415 * configure: Rebuild.
13416 * configure.ac: Don't check for stdlib.h.
13417 * gdbreplay.c: Unconditionally include stdlib.h.
13418
2978b111
TT
134192013-11-18 Tom Tromey <tromey@redhat.com>
13420
13421 * config.in: Rebuild.
13422 * configure: Rebuild.
13423 * configure.ac: Don't use AC_HEADER_DIRENT.
13424
a3d08894
TT
134252013-11-18 Tom Tromey <tromey@redhat.com>
13426
13427 * server.h: Don't check HAVE_STRING_H.
13428 * gdbreplay.c: Don't check HAVE_STRING_H.
13429 * configure: Rebuild.
13430
0a5dd17d
TT
134312013-11-18 Tom Tromey <tromey@redhat.com>
13432
13433 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13434 LIBGNU.
13435
1bd2f0ba
TT
134362013-11-08 Tom Tromey <tromey@redhat.com>
13437
13438 * configure, config.in: Rebuild.
13439 * configure.ac: Remove unused configury.
13440
3266f10b
TT
134412013-11-08 Tom Tromey <tromey@redhat.com>
13442
13443 * acinclude.m4: Include common.m4, codeset.m4.
13444 * configure, config.in: Rebuild.
13445 * configure.ac: Use GDB_AC_COMMON.
13446
6682d959
AA
134472013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13448
13449 * linux-s390-low.c (HWCAP_S390_TE): New define.
13450 (s390_arch_setup): Consider the TE field in the HWCAP for
13451 determining 'have_regset_tdb'.
13452
fd0a4d76
SDJ
134532013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13454
13455 PR gdb/16014
13456 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13457 call to sizeof.
13458
1a3d890b
PA
134592013-10-02 Pedro Alves <palves@redhat.com>
13460
13461 * server.c (process_serial_event): Don't output "GDBserver
13462 exiting" if GDB is connected through stdio.
13463 * target.c (mywait): Likewise, be silent if GDB is connected
13464 through stdio.
13465
97ad4581
JB
134662013-10-01 Joel Brobecker <brobecker@adacore.com>
13467
13468 * lynx-low.c (lynx_add_threads_after_attach): New function.
13469 (lynx_attach): Remove call to add_thread. Add call to
13470 lynx_add_threads_after_attach instead.
13471
5b4e221c
MF
134722013-09-28 Mike Frysinger <vapier@gentoo.org>
13473
13474 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13475 * config.in, configure: Regenerated.
13476
ee47b2f8
YQ
134772013-09-18 Yao Qi <yao@codesourcery.com>
13478
13479 PR server/15959
13480 * server.c (start_inferior): Clear 'resume_info'.
13481
d6707650 134822013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13483
d6707650
JW
13484 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13485 for each register.
13486
9243dd0e 134872013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13488
9243dd0e
JW
13489 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13490 linux-tile-low.o to srv_tgtobj.
13491
c623a6ef
WN
134922013-09-16 Will Newton <will.newton@linaro.org>
13493
13494 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13495 out regs.
13496
fb71d39e
PA
134972013-09-06 Pedro Alves <palves@redhat.com>
13498
13499 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13500 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13501 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13502 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13503 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13504 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13505
8e7e9910
PA
135062013-09-06 Pedro Alves <palves@redhat.com>
13507
13508 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13509 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13510
7c3a12ca
PA
135112013-09-06 Pedro Alves <palves@redhat.com>
13512
13513 * linux-amd64-ipa.c: Include tracepoint.h.
13514 * linux-i386-ipa.c: Include tracepoint.h.
13515
8eb3d7b6
RW
135162013-09-06 Ricard Wanderlof <ricardw@axis.com>
13517
13518 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13519 (ps_get_thread_area): New function.
13520
eddddb9d
RW
135212013-09-06 Ricard Wanderlof <ricardw@axis.com>
13522
13523 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13524 (initialize_low_arch): Call init_registers_crisv32 rather than
13525 init_register_crisv32.
13526
533b0600
PA
135272013-09-05 Pedro Alves <palves@redhat.com>
13528
13529 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13530 to ...
13531 * hostio.h: ... this new file.
13532 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13533 win32-low.c: Include hostio.h.
13534
0ce3d3b5
PA
135352013-09-05 Pedro Alves <palves@redhat.com>
13536
13537 * server.h (gdb_client_data, handler_func, callback_handler_func)
13538 (delete_file_handler, add_file_handler, append_callback_event)
13539 (delete_callback_event, start_event_loop, initialize_event_loop):
13540 Move to event-loop.h and include it.
13541 * event-loop.h: New file.
13542
799cdc37
PA
135432013-09-05 Pedro Alves <palves@redhat.com>
13544
13545 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13546 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13547 (loaded_dll, unloaded_dll): Move to ...
13548 * dll.h: ... this new file.
13549 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13550
6a6bbd9d
PA
135512013-09-05 Pedro Alves <palves@redhat.com>
13552
13553 * server.h (current_process, get_thread_process, all_processes)
13554 (add_inferior_to_list, for_each_inferior, current_inferior)
13555 (remove_inferior, add_process, remove_process, find_process_pid)
13556 (have_started_inferiors_p, have_attached_inferiors_p)
13557 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13558 (clear_inferiors, find_inferior, find_inferior_id)
13559 (inferior_target_data, set_inferior_target_data)
13560 (inferior_regcache_data, set_inferior_regcache_data): Move to
13561 inferiors.h, and include it.
13562 * inferiors.h: New file.
13563
f699aaba
PA
135642013-09-05 Pedro Alves <palves@redhat.com>
13565
13566 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13567 Move ...
72f4393d 13568 * ax.h: ... here.
f699aaba 13569
c144c7a0
PA
135702013-09-05 Pedro Alves <palves@redhat.com>
13571
13572 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13573 tracepoint.h.
13574 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13575 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13576 (handle_tracepoint_general_set, handle_tracepoint_query)
13577 (tracepoint_finished_step, tracepoint_was_hit)
13578 (release_while_stepping_state_list, current_traceframe)
13579 (in_readonly_region, traceframe_read_mem)
13580 (fetch_traceframe_registers, traceframe_read_sdata)
13581 (traceframe_read_info, struct fast_tpoint_collect_status)
13582 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13583 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13584 (supply_fast_tracepoint_registers)
13585 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13586 (ipa_tdesc, claim_trampoline_space)
13587 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13588 (agent_mem_read, agent_get_trace_state_variable_value)
13589 (agent_set_trace_state_variable_value, agent_tsv_read)
13590 (agent_mem_read_string, get_raw_reg_func_addr)
13591 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13592 * tracepoint.h: ... this new file.
13593
ff42e6ab
PA
135942013-09-05 Pedro Alves <palves@redhat.com>
13595
13596 * server.h (perror_with_name, error, fatal, warning, paddress)
13597 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13598 include it.
13599 * utils.h: New file.
13600
541af0f4
PA
136012013-09-05 Pedro Alves <palves@redhat.com>
13602
13603 * server.h (remote_debug, noack_mode, transport_is_reliable)
13604 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13605 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13606 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13607 (write_enn, initialize_async_io, enable_async_io)
13608 (disable_async_io, check_remote_input_interrupt_request)
13609 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13610 (dead_thread_notify, prepare_resume_reply)
13611 (decode_address_to_semicolon, decode_address, decode_m_packet)
13612 (decode_M_packet, decode_X_packet, decode_xfer_write)
13613 (decode_search_memory_packet, unhexify, hexify)
13614 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13615 (look_up_one_symbol, relocate_instruction)
13616 (monitor_output): Move to remote-utils.h, and include it.
13617 * remote-utils.h: New file.
13618
eebdf26b
PA
136192013-09-05 Pedro Alves <palves@redhat.com>
13620
13621 * server.h (_): Delete.
13622
3aafd2ff
PA
136232013-09-02 Pedro Alves <palves@redhat.com>
13624
13625 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13626 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13627 allocated.
13628 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13629
cee83bcb
PM
136302013-09-02 Pierre Muller <muller@sourceware.org>
13631
13632 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13633 or WriteProcessMemory complete successfully and handle
13634 ERROR_PARTIAL_COPY error.
13635
9a13b2fa
PA
136362013-09-02 Pedro Alves <palves@redhat.com>
13637
13638 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13639 error instead of EIO.
13640
602e3198
JK
136412013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13642
13643 PR server/15604
13644 * linux-low.c: Include filestuff.h.
13645 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13646 * lynx-low.c: Include filestuff.h.
13647 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13648 * server.c: Include filestuff.h.
13649 (main): Call notice_open_fds.
13650 * spu-low.c: Include filestuff.h.
13651 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13652
96d7229d
LM
136532013-08-22 Luis Machado <lgustavo@codesourcery.com>
13654
13655 * Makefile.in: Explain why ../target and ../nat are not
13656 listed as include file search paths.
13657 (linux-waitpid.o): New object file rule.
13658 * configure.srv (srv_native_linux_obj): New variable.
13659 Replace all occurrences of linux native object files with
13660 $srv_native_linux_obj.
13661 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13662 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13663 (linux_enable_event_reporting): Remove declaration.
13664 (my_waitpid): Moved to common/linux-waitpid.c.
13665 (linux_wait_for_event): Pass ptid when calling
13666 linux_enable_event_reporting.
13667 (linux_supports_tracefork_flag): Remove.
13668 (linux_enable_event_reporting): Likewise.
13669 (linux_tracefork_grandchild): Remove.
13670 (STACK_SIZE): Moved to common/linux-ptrace.c.
13671 (linux_tracefork_child): Remove.
13672 (linux_test_for_tracefork): Remove.
13673 (linux_look_up_symbols): Call linux_supports_traceclone.
13674 (initialize_low): Remove call to linux_test_for_tracefork.
13675 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13676 common/linux-ptrace.h.
13677 (PTRACE_TYPE_ARG4): Likewise.
13678 Include linux-ptrace.h.
13679
32940073
PA
136802013-08-21 Pedro Alves <palves@redhat.com>
13681
13682 * config.in: Renegerate.
13683
33b60d58 136842013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13685
33b60d58
LM
13686 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13687 (SFILES): Remove $(srcdir)/common/target-common.c and
13688 add $(srcdir)/target/waitstatus.c.
13689 (OBS): Remove target-common.o and add waitstatus.o.
13690 (server_h): Remove $(srcdir)/../common/target-common.h and
13691 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13692 and $(srcdir)/../target/waitstatus.h.
13693 (target-common.o): Remove.
13694 (waitstatus.o): New target object file.
13695 * target.h: Do not include target-common.h and
13696 include target/resume.h, target/wait.h and
13697 target/waitstatus.h.
13698
b8e1b30e
LM
136992013-08-13 Luis Machado <lgustavo@codesourcery.com>
13700
13701 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13702 to PTRACE_TYPE_ARG3.
13703 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13704 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13705 PTRACE_TYPE_ARG4.
13706 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13707 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13708
7a60ad40
YQ
137092013-07-27 Jie Zhang <jie@codesourcery.com>
13710 Daniel Jacobowitz <dan@codesourcery.com>
13711 Yao Qi <yao@codesourcery.com>
13712
13713 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13714 (mips-linux-watch.o): New rule.
13715 (mips_linux_watch_h): New variable.
13716 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13717 srv_tgtobj.
13718 * linux-mips-low.c: Include mips-linux-watch.h.
13719 (struct arch_process_info, struct arch_lwp_info): New.
13720 (update_watch_registers_callback): New function.
13721 (mips_linux_new_process, mips_linux_new_thread) New functions.
13722 (mips_linux_prepare_to_resume, mips_insert_point): New
13723 functions.
13724 (mips_remove_point, mips_stopped_by_watchpoint): New
13725 functions.
13726 (rsp_bp_type_to_target_hw_bp_type): New function.
13727 (mips_stopped_data_address): New function.
13728 (the_low_target): Add watchpoint support functions.
13729
de6f69ad
YQ
137302013-07-27 Yao Qi <yao@codesourcery.com>
13731
13732 * i386-low.c: Include break-common.h.
13733 (enum target_hw_bp_type): Remove.
13734
3360c0bf
LM
137352013-07-24 Luis Machado <lgustavo@codesourcery.com>
13736
13737 * Makefile.in (SFILES): /common/target-common.c.
13738 (OBS): Add target-common.o.
13739 (server_h): Add $(srcdir)/../common/target-common.h.
13740 (target-common.o): New target.
13741 * server.c (queue_stop_reply_callback): Free
13742 status string after use.
13743 * target.c (target_waitstatus_to_string): Remove.
13744 * target.h: Include target-common.h.
13745 (resume_kind): Likewise.
13746 (target_waitkind): Likewise.
13747 (target_waitstatus): Likewise.
13748 (TARGET_WNOHANG): Likewise.
13749
bd885420
YQ
137502013-07-04 Yao Qi <yao@codesourcery.com>
13751
13752 * Makefile.in (host_alias): Use @host_noncanonical@.
13753 (target_alias): Use @target_noncanonical@.
13754 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13755 ACX_NONCANONICAL_HOST.
13756 * configure: Regenerated.
13757
13758 Revert:
13759 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13760
13761 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13762 * configure: Rebuild.
13763 * Makefile.in (version_host, version_target): Get from configure.
13764 (version.c): Use $(version_host) and $(version_target).
13765
17ef446e
PA
137662013-07-03 Pedro Alves <palves@redhat.com>
13767
13768 * Makefile.in (config.status): Depend on development.sh.
13769 * acinclude.m4: Include libmcheck.m4.
13770 * configure: Regenerate.
13771
7a9a7487
MG
137722013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13773
13774 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13775 attribute inside the parentheses.
13776 (winapi_DebugSetProcessKillOnExit): Ditto.
13777 (winapi_DebugBreakProcess): Ditto.
13778 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13779
49b64de6
MG
137802013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13781
13782 * notif.h (notif_event): Add a dummy member to avoid compiler
13783 errors.
13784
d5749ee7
PA
137852013-07-01 Pedro Alves <palves@redhat.com>
13786
13787 * hostio.c (HOSTIO_PATH_MAX): Define.
13788 (require_filename, handle_open, handle_unlink, handle_readlink):
13789 Use it.
13790
d8d2a3ee
PA
137912013-07-01 Pedro Alves <palves@redhat.com>
13792
13793 * server.h: Include "pathmax.h".
13794 * linux-low.c: Don't include sys/param.h.
13795 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13796 MAXPATHLEN.
13797 * win32-low.c: Don't include sys/param.h.
13798 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13799
bc7dea8d
PA
138002013-07-01 Pedro Alves <palves@redhat.com>
13801
13802 * event-loop.c: Don't check HAVE_UNISTD_H before including
13803 <unistd.h>.
13804 * gdbreplay.c: Likewise.
13805 * remote-utils.c: Likewise.
13806 * server.c: Likewise.
13807 * configure.ac: Don't check for unistd.h.
13808 * configure: Regenerate.
13809
d6c2da54
TT
138102013-06-28 Tom Tromey <tromey@redhat.com>
13811
13812 * Makefile.in (version.c): Use version.in, not
13813 common/version.in.
13814
257b6bec
MG
138152013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13816
13817 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13818 * configure: Rebuild.
13819 * Makefile.in (version_host, version_target): Get from configure.
13820 (version.c): Use $(version_host) and $(version_target).
13821
86ebe149
DK
138222013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13823
13824 Fix trace-status to output user name without trailing colon.
13825 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13826
f30aa5af
DK
138272013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13828
13829 Fix trace-status to output proper start-time and stop-time.
13830 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13831 output start time and stop time in hex as gdb expects.
13832
28a93511
YQ
138332013-06-26 Pedro Alves <pedro@codesourcery.com>
13834
13835 * tracepoint.c (build_traceframe_info_xml): Output trace state
13836 variables present in the trace buffer.
13837
01208463
TT
138382013-06-24 Tom Tromey <tromey@redhat.com>
13839
13840 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13841 create-version.sh.
13842 (version.o): Remove.
13843 * gdbreplay.c: Include version.h.
13844 (version, host_name): Don't declare.
13845 * server.h: Include version.h.
13846 (version, host_name): Don't declare.
13847
760256f9
PA
138482013-06-12 Pedro Alves <palves@redhat.com>
13849
13850 * linux-x86-low.c (linux_is_elf64): Delete global.
13851 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13852 with local linux_pid_exe_is_elf_64_file use.
13853
030031ee
PA
138542013-06-11 Pedro Alves <palves@redhat.com>
13855
13856 * linux-low.c (regset_disabled, disable_regset): New functions.
13857 (regsets_fetch_inferior_registers)
13858 (regsets_store_inferior_registers): Use them.
13859 (initialize_regsets_info); Don't allocate the disabled_regsets
13860 array here.
13861 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13862 comment.
13863
5da6eb0a
PA
138642013-06-11 Pedro Alves <palves@redhat.com>
13865
13866 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13867 xmalloc.
13868
7e5aaa09
PA
138692013-06-11 Pedro Alves <palves@redhat.com>
13870
13871 * linux-x86-low.c (initialize_low_arch): Call
13872 init_registers_x32_avx_linux.
13873
d878444c
JK
138742013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13875
13876 Fix compatibility with Android Bionic.
13877 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13878 it is not empty.
13879
3aee8918
PA
138802013-06-07 Pedro Alves <palves@redhat.com>
13881
5f2b57b5 13882 PR server/14823
3aee8918
PA
13883 * Makefile.in (OBS): Add tdesc.o.
13884 (IPA_OBJS): Add tdesc-ipa.o.
13885 (tdesc-ipa.o): New rule.
13886 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13887 interface.
13888 * linux-low.c (new_inferior): Delete.
13889 (disabled_regsets, num_regsets): Delete.
13890 (linux_add_process): Adjust to set the new per-process
13891 new_inferior flag.
13892 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13893 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13894 was a stop. When calling arch_setup, switch the current inferior
13895 to the thread that got an event.
13896 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13897 (regsets_fetch_inferior_registers)
13898 (regsets_store_inferior_registers): New regsets_info parameter.
13899 Adjust to use it.
13900 (linux_register_in_regsets): New regs_info parameter. Adjust to
13901 use it.
13902 (register_addr, fetch_register, store_register): New usrregs_info
13903 parameter. Adjust to use it.
13904 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13905 parameter regs_info. Adjust to use it.
13906 (linux_fetch_registers): Get the current inferior's regs_info, and
13907 adjust to use it.
13908 (linux_store_registers): Ditto.
13909 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13910 (initialize_low): Don't initialize the target_regsets here. Call
13911 initialize_low_arch.
13912 * linux-low.h (target_regsets): Delete declaration.
13913 (struct regsets_info): New.
13914 (struct usrregs_info): New.
13915 (struct regs_info): New.
13916 (struct process_info_private) <new_inferior>: New field.
13917 (struct linux_target_ops): Delete the num_regs, regmap, and
13918 regset_bitmap fields. New field regs_info.
13919 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13920 * i387-fp.c (num_xmm_registers): Delete.
13921 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13922 calls to new interface.
13923 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13924 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13925 Infer the number of xmm registers from the regcache's target
13926 description.
13927 * i387-fp.h (num_xmm_registers): Delete.
13928 * inferiors.c (add_thread): Don't install the thread's regcache
13929 here.
13930 * proc-service.c (gregset_info): Fetch the current inferior's
13931 regs_info. Adjust to use it.
13932 * regcache.c: Include tdesc.h.
13933 (register_bytes, reg_defs, num_registers)
13934 (gdbserver_expedite_regs): Delete.
13935 (get_thread_regcache): If the thread doesn't have a regcache yet,
13936 create one, instead of aborting gdbserver.
13937 (regcache_invalidate_one): Rename to ...
13938 (regcache_invalidate_thread): ... this.
13939 (regcache_invalidate_one): New.
13940 (regcache_invalidate): Only invalidate registers of the current
13941 process.
13942 (init_register_cache): Add target_desc parameter, and use it.
13943 (new_register_cache): Ditto. Assert the target description has a
13944 non zero registers_size.
13945 (regcache_cpy): Add assertions. Adjust.
13946 (realloc_register_cache, set_register_cache): Delete.
13947 (registers_to_string, registers_from_string): Adjust.
13948 (find_register_by_name, find_regno, find_register_by_number)
13949 (register_cache_size): Add target_desc parameter, and use it.
13950 (free_register_cache_thread, free_register_cache_thread_one)
13951 (regcache_release, register_cache_size): New.
13952 (register_size): Add target_desc parameter, and use it.
13953 (register_data, supply_register, supply_register_zeroed)
13954 (supply_regblock, supply_register_by_name, collect_register)
13955 (collect_register_as_string, collect_register_by_name): Adjust.
13956 * regcache.h (struct target_desc): Forward declare.
13957 (struct regcache) <tdesc>: New field.
13958 (init_register_cache, new_register_cache): Add target_desc
13959 parameter.
13960 (regcache_invalidate_thread): Declare.
13961 (regcache_invalidate_one): Delete declaration.
13962 (regcache_release): Declare.
13963 (find_register_by_number, register_cache_size, register_size)
13964 (find_regno): Add target_desc parameter.
13965 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13966 declarations.
13967 * remote-utils.c: Include tdesc.h.
13968 (outreg, prepare_resume_reply): Adjust.
13969 * server.c: Include tdesc.h.
13970 (gdbserver_xmltarget): Delete declaration.
13971 (get_features_xml, process_serial_event): Adjust.
13972 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13973 declare.
13974 (struct process_info) <tdesc>: New field.
13975 (ipa_tdesc): Declare.
13976 * tdesc.c: New file.
13977 * tdesc.h: New file.
13978 * tracepoint.c: Include tdesc.h.
13979 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13980 (get_context_regcache): Adjust to pass ipa_tdesc down.
13981 (do_action_at_tracepoint): Adjust to get the register cache size
13982 from the context regcache's description.
13983 (traceframe_walk_blocks): Adjust to get the register cache size
13984 from the current trace frame's description.
13985 (traceframe_get_pc): Adjust to get current trace frame's
13986 description and pass it down.
13987 (gdb_collect): Adjust to get the register cache size from the
13988 IPA's description.
13989 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13990 (gdbserver_xmltarget): Delete.
13991 (initialize_low_tracepoint): Set the ipa's target description.
13992 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13993 (initialize_low_tracepoint): Set the ipa's target description.
13994 * linux-x86-low.c: Include tdesc.h.
13995 [__x86_64__] (is_64bit_tdesc): New.
13996 (ps_get_thread_area, x86_get_thread_area): Use it.
13997 (i386_cannot_store_register): Rename to ...
13998 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13999 (i386_cannot_fetch_register): Rename to ...
14000 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14001 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14002 to new interface.
14003 (target_regsets): Rename to ...
14004 (x86_regsets): ... this.
14005 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14006 interface.
14007 (x86_siginfo_fixup): Use is_64bit_tdesc.
14008 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14009 (tdesc_x32_avx_linux, tdesc_x32_linux)
14010 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14011 Declare.
14012 (x86_linux_update_xmltarget): Delete.
14013 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14014 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14015 (AMD64_LINUX_USER64_CS): New.
14016 (x86_linux_read_description): New, based on
14017 x86_linux_update_xmltarget.
14018 (same_process_callback): New.
14019 (x86_arch_setup_process_callback): New.
14020 (x86_linux_update_xmltarget): New.
14021 (x86_regsets_info): New.
14022 (amd64_linux_regs_info): New.
14023 (i386_linux_usrregs_info): New.
14024 (i386_linux_regs_info): New.
14025 (x86_linux_regs_info): New.
14026 (x86_arch_setup): Reimplement.
14027 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14028 (x86_emit_ops): Ditto.
14029 (the_low_target): Adjust. Install x86_linux_regs_info,
14030 x86_cannot_fetch_register, and x86_cannot_store_register.
14031 (initialize_low_arch): New.
14032 * linux-ia64-low.c (tdesc_ia64): Declare.
14033 (ia64_fetch_register): Adjust.
14034 (ia64_usrregs_info, regs_info): New globals.
14035 (ia64_regs_info): New function.
14036 (the_low_target): Adjust.
14037 (initialize_low_arch): New function.
14038 * linux-sparc-low.c (tdesc_sparc64): Declare.
14039 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14040 Adjust.
14041 (sparc_arch_setup): New function.
14042 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14043 (the_low_target): Adjust.
14044 (initialize_low_arch): New function.
14045 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14046 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14047 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14048 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14049 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14050 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14051 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14052 (tdesc_powerpc_isa205_vsx64l): Declare.
14053 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14054 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14055 (ppc_set_pc, ppc_get_hwcap): Adjust.
14056 (ppc_usrregs_info): Forward declare.
14057 (!__powerpc64__) ppc_regmap_adjusted: New global.
14058 (ppc_arch_setup): Adjust to the current process'es target
14059 description.
14060 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14061 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14062 (ppc_store_evrregset): Adjust.
14063 (target_regsets): Rename to ...
14064 (ppc_regsets): ... this, and make static.
14065 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14066 (ppc_regs_info): New function.
14067 (the_low_target): Adjust.
14068 (initialize_low_arch): New function.
14069 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14070 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14071 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14072 (tdesc_s390x_linux64v2): Declare.
14073 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14074 (s390_fill_gregset, s390_store_last_break): Adjust.
14075 (target_regsets): Rename to ...
14076 (s390_regsets): ... this, and make static.
14077 (s390_get_pc, s390_set_pc): Adjust.
14078 (s390_get_hwcap): New target_desc parameter, and use it.
14079 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14080 (s390_arch_setup): Adjust to set the current process'es target
14081 description. Don't adjust the regmap.
14082 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14083 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14084 (regs_info_3264): New globals.
14085 (s390_regs_info): New function.
14086 (the_low_target): Adjust.
14087 (initialize_low_arch): New function.
14088 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14089 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14090 [__mips64] (init_registers_mips_linux)
14091 (init_registers_mips_dsp_linux): Delete defines.
14092 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14093 (have_dsp): New global.
14094 (mips_read_description): New, based on mips_arch_setup.
14095 (mips_arch_setup): Reimplement.
14096 (get_usrregs_info): New function.
14097 (mips_cannot_fetch_register, mips_cannot_store_register)
14098 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14099 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14100 (target_regsets): Rename to ...
14101 (mips_regsets): ... this, and make static.
14102 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14103 (dsp_regs_info, regs_info): New globals.
14104 (mips_regs_info): New function.
14105 (the_low_target): Adjust.
14106 (initialize_low_arch): New function.
14107 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14108 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14109 Declare.
14110 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14111 (arm_read_description): New, with bits factored from
14112 arm_arch_setup.
14113 (arm_arch_setup): Reimplement.
14114 (target_regsets): Rename to ...
14115 (arm_regsets): ... this, and make static.
14116 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14117 (arm_regs_info): New function.
14118 (the_low_target): Adjust.
14119 (initialize_low_arch): New function.
14120 * linux-m68k-low.c (tdesc_m68k): Declare.
14121 (target_regsets): Rename to ...
14122 (m68k_regsets): ... this, and make static.
14123 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14124 (m68k_regs_info): New function.
14125 (m68k_arch_setup): New function.
14126 (the_low_target): Adjust.
14127 (initialize_low_arch): New function.
14128 * linux-sh-low.c (tdesc_sharch): Declare.
14129 (target_regsets): Rename to ...
14130 (sh_regsets): ... this, and make static.
14131 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14132 (sh_regs_info, sh_arch_setup): New functions.
14133 (the_low_target): Adjust.
14134 (initialize_low_arch): New function.
14135 * linux-bfin-low.c (tdesc_bfin): Declare.
14136 (bfin_arch_setup): New function.
14137 (bfin_usrregs_info, regs_info): New globals.
14138 (bfin_regs_info): New function.
14139 (the_low_target): Adjust.
14140 (initialize_low_arch): New function.
14141 * linux-cris-low.c (tdesc_cris): Declare.
14142 (cris_arch_setup): New function.
14143 (cris_usrregs_info, regs_info): New globals.
14144 (cris_regs_info): New function.
14145 (the_low_target): Adjust.
14146 (initialize_low_arch): New function.
14147 * linux-cris-low.c (tdesc_crisv32): Declare.
14148 (cris_arch_setup): New function.
14149 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14150 (cris_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
14153 * linux-m32r-low.c (tdesc_m32r): Declare.
14154 (m32r_arch_setup): New function.
14155 (m32r_usrregs_info, regs_info): New globals.
14156 (m32r_regs_info): Adjust.
14157 (initialize_low_arch): New function.
14158 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14159 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14160 (tic6x_usrregs_info): Forward declare.
14161 (tic6x_read_description): New function, based on ...
14162 (tic6x_arch_setup): ... this. Reimplement.
14163 (target_regsets): Rename to ...
14164 (tic6x_regsets): ... this, and make static.
14165 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14166 (tic6x_regs_info): New function.
14167 (the_low_target): Adjust.
14168 (initialize_low_arch): New function.
14169 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14170 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14171 (target_regsets): Rename to ...
14172 (xtensa_regsets): ... this, and make static.
14173 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14174 globals.
14175 (xtensa_arch_setup, xtensa_regs_info): New functions.
14176 (the_low_target): Adjust.
14177 (initialize_low_arch): New function.
14178 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14179 (nios2_arch_setup): Set the current process'es tdesc.
14180 (target_regsets): Rename to ...
14181 (nios2_regsets): ... this.
14182 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14183 (nios2_regs_info): New function.
14184 (the_low_target): Adjust.
14185 (initialize_low_arch): New function.
a261b8f5
PA
14186 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14187 (aarch64_arch_setup): Set the current process'es tdesc.
14188 (target_regsets): Rename to ...
14189 (aarch64_regsets): ... this.
14190 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14191 (aarch64_regs_info): New function.
14192 (the_low_target): Adjust.
14193 (initialize_low_arch): New function.
3aee8918
PA
14194 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14195 globals.
14196 (target_regsets): Rename to ...
14197 (tile_regsets): ... this.
14198 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14199 (tile_regs_info): New function.
14200 (tile_arch_setup): Set the current process'es tdesc.
14201 (the_low_target): Adjust.
14202 (initialize_low_arch): New function.
14203 * spu-low.c (tdesc_spu): Declare.
14204 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14205 * win32-arm-low.c (tdesc_arm): Declare.
14206 (arm_arch_setup): New function.
14207 (the_low_target): Install arm_arch_setup instead of
14208 init_registers_arm.
14209 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14210 (init_windows_x86): Rename to ...
14211 (i386_arch_setup): ... this. Set `win32_tdesc'.
14212 (the_low_target): Adjust.
14213 * win32-low.c (win32_tdesc): New global.
14214 (child_add_thread): Don't create the thread cache here.
14215 (do_initial_child_stuff): Set the new process'es tdesc.
14216 * win32-low.h (struct target_desc): Forward declare.
14217 (win32_tdesc): Declare.
14218 * lynx-i386-low.c (tdesc_i386): Declare global.
14219 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14220 * lynx-low.c (lynx_tdesc): New global.
14221 (lynx_add_process): Set the new process'es tdesc.
14222 * lynx-low.h (struct target_desc): Forward declare.
14223 (lynx_tdesc): Declare global.
14224 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14225 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14226 * nto-low.c (nto_tdesc): New global.
14227 (do_attach): Set the new process'es tdesc.
14228 * nto-low.h (struct target_desc): Forward declare.
14229 (nto_tdesc): Declare.
14230 * nto-x86-low.c (tdesc_i386): Declare.
14231 (nto_x86_arch_setup): Set `nto_tdesc'.
14232
b1fbec62
GB
142332013-06-04 Gary Benson <gbenson@redhat.com>
14234
14235 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14236 to qSupported response when appropriate.
14237 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14238 with nonzero-length annex.
14239 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14240 arguments supplied in annex.
14241
d1ec4ce7
DE
142422013-05-31 Doug Evans <dje@google.com>
14243
ac44adcb 14244 PR server/15594
d1ec4ce7
DE
14245 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14246 64 bits in 64-cross-32 environment.
14247
9b25f2d3
PA
142482013-05-28 Pedro Alves <palves@redhat.com>
14249
14250 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14251 (aarch64-without-fpu.c): Delete rule.
14252 * configure.srv (aarch64*-*-linux*): Remove references to
14253 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14254 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14255 declaration.
14256
6740dc9c
PA
142572013-05-24 Pedro Alves <palves@redhat.com>
14258
14259 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14260 instead of strchr/decode_address. Error if the range isn't split
14261 with a ','. Don't assume there's be a ':' in the action.
14262
c2d6af84
PA
142632013-05-23 Yao Qi <yao@codesourcery.com>
14264 Pedro Alves <palves@redhat.com>
14265
14266 * linux-low.c (lwp_in_step_range): New function.
14267 (linux_wait_1): If the thread was range stepping and stopped
14268 outside the stepping range, report the stop to GDB. Otherwise,
14269 continue stepping. Add range stepping debug output.
14270 (linux_set_resume_request): Copy the step range from the resume
14271 request to the lwp.
14272 (linux_supports_range_stepping): New.
14273 (linux_target_ops) <supports_range_stepping>: Set to
14274 linux_supports_range_stepping.
14275 * linux-low.h (struct linux_target_ops)
14276 <supports_range_stepping>: New field.
14277 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14278 * linux-x86-low.c (x86_supports_range_stepping): New.
14279 (the_low_target) <supports_range_stepping>: Set to
14280 x86_supports_range_stepping.
14281 * server.c (handle_v_cont): Handle 'r' action.
14282 (handle_v_requests): Append ";r" if the target supports range
14283 stepping.
14284 * target.h (struct thread_resume) <step_range_start,
14285 step_range_end>: New fields.
14286 (struct target_ops) <supports_range_stepping>:
14287 New field.
14288 (target_supports_range_stepping): New macro.
14289
58794e1a
JB
142902013-05-17 Joel Brobecker <brobecker@adacore.com>
14291
14292 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14293 confusion in comment.
14294
d631c5a7
JB
142952013-05-17 Joel Brobecker <brobecker@adacore.com>
14296
14297 * lynx-low.c (struct process_info_private): New type.
14298 (lynx_add_process): New function.
14299 (lynx_create_inferior, lynx_attach): Replace calls to
14300 add_process by calls to lynx_add_process.
14301 (lynx_resume): If PTID is null, then try using
14302 current_process()->private->last_wait_event_ptid.
14303 Add comments.
14304 (lynx_clear_inferiors): Delete. The contents of that function
14305 has been inlined in lynx_mourn;
14306 (lynx_wait_1): Save the ptid in the process's private data.
14307 (lynx_mourn): Free the process' private data. Replace call
14308 to lynx_clear_inferiors by call to clear_inferiors.
14309
96f7a20f
YQ
143102013-05-17 Yao Qi <yao@codesourcery.com>
14311
14312 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14313 the right place.
14314
db0dfaa0
LM
143152013-05-16 Luis Machado <lgustavo@codesourcery.com>
14316
14317 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14318 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14319 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14320 PT_TEXT_END_ADDR guards. Update comments.
14321 (linux_target_op) <read_offsets>: Conditionally define to
14322 linux_read_offsets if the target is UCLIBC and if it defines
14323 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14324
68f5f838
SL
143252013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14326 Andrew Jenner <andrew@codesourcery.com>
14327
14328 * Makefile.in (SFILES): Add linux-nios2-low.c.
14329 (clean): Add action to delete nios2-linux.c.
14330 (nios2-linux.c): New rule.
14331 * configure.srv: Add nios2*-*-linux*.
14332 * linux-nios2-low.c: New.
14333
1ebff1fd
HAQ
143342013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14335
14336 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14337
f6150862
HZ
143382013-04-25 Hui Zhu <hui@codesourcery.com>
14339
14340 PR gdb/15186
f6150862
HZ
14341 * ax.c (ax_printf): Add fflush.
14342
614c279d
TT
143432013-04-22 Tom Tromey <tromey@redhat.com>
14344
14345 * Makefile.in (SFILES): Add filestuff.c.
14346 (OBS): Add filestuff.o.
14347 (filestuff.o): New target.
14348 * config.in, configure: Rebuild.
14349 * configure.ac: Check for fdwalk, pipe2.
14350
7d4e5717
PA
143512013-04-17 Pedro Alves <palves@redhat.com>
14352
14353 * configure.ac (USE_THREAD_DB): Delete variable.
14354 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14355 Don't AC_SUBST USE_THREAD_DB.
14356 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14357 * config.in, configure: Regenerate.
14358
d5c93e41
PA
143592013-04-16 Pedro Alves <palves@redhat.com>
14360
14361 * linux-low.h (struct lwp_info) <thread_known>: Move under
14362 the USE_THREAD_DB #ifdef.
14363
04f5fe89
PA
143642013-04-16 Pedro Alves <palves@redhat.com>
14365
14366 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14367 (linux-low.o): Delete rule.
14368 * linux-low.h: Always include "gdb_thread_db.h" instead of
14369 conditionally including thread_db.h.
14370 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14371 HAVE_THREAD_DB_H.
14372
480b27bf
JK
143732013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14374
14375 * Makefile.in (install-only): Fix make install regression.
14376
43662968
JK
143772013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14378
14379 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14380 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14381 installation.
14382 * gdbserver.1: Remove.
14383
3e74e146
PA
143842013-03-22 Pedro Alves <palves@redhat.com>
14385
14386 * linux-low.c (handle_extended_wait): Don't call
14387 linux_enable_event_reporting.
14388
a8347a2a
TT
143892013-03-15 Tony Theodore <tonyt@logyst.com>
14390
14391 PR build/9098:
14392 * Makefile.in (SHELL): Use @SHELL@.
14393
eeb56fa7
SDJ
143942013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14395
14396 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14397 compiler warning.
14398
4fa7e2ff
JB
143992013-03-13 Joel Brobecker <brobecker@adacore.com>
14400
14401 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14402 Remove extraneous NULL element.
14403
8ddb1965
YQ
144042013-03-13 Yao Qi <yao@codesourcery.com>
14405
14406 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14407 'V' block in trace frame.
14408
9accd112
MM
144092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14410
14411 * target.h (struct target_ops): Add btrace ops.
14412 (target_supports_btrace): New macro.
14413 (target_enable_btrace): New macro.
14414 (target_disable_btrace): New macro.
14415 (target_read_btrace): New macro.
14416 * gdbthread.h (struct thread_info): Add btrace field.
14417 * server.c: Include btrace-common.h.
14418 (handle_btrace_general_set): New function.
14419 (handle_btrace_enable): New function.
14420 (handle_btrace_disable): New function.
14421 (handle_general_set): Call handle_btrace_general_set.
14422 (handle_qxfer_btrace): New function.
14423 (struct qxfer qxfer_packets[]): Add btrace entry.
14424 * inferiors.c (remove_thread): Disable btrace.
14425 * linux-low: Include linux-btrace.h.
14426 (linux_low_enable_btrace): New function.
14427 (linux_low_read_btrace): New function.
14428 (linux_target_ops): Add btrace ops.
14429 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14430 Add srv_linux_btrace=yes.
14431 (x86_64-*-linux*): Add linux-btrace.o.
14432 Add srv_linux_btrace=yes.
14433 * configure.ac: Define HAVE_LINUX_BTRACE.
14434 * config.in: Regenerated.
14435 * configure: Regenerated.
14436
5cc22e4c
MM
144372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14438
14439 * server.c (handle_qxfer): Preserve error message if -3 is
14440 returned.
14441 (qxfer): Document the -3 return value.
14442
7c97f91e
MM
144432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14444
14445 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14446 (linux_btrace_h): New variable.
14447 (linux-btrace.o): New rule.
14448
be9a119c 144492013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14450 Hafiz Abid Qadeer <abidh@codesourcery.com>
14451
14452 * tracepoint.c (trace_buffer_size): New global.
14453 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14454 (init_trace_buffer): Change to one-argument function. Allocate
14455 trace buffer memory.
14456 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14457 handle QTBuffer:size packet.
14458 (cmd_bigqtbuffer_size): New function.
14459 (initialize_tracepoint): Call init_trace_buffer with
14460 DEFAULT_TRACE_BUFFER_SIZE.
14461 * server.c (handle_query): Add QTBuffer:size in the
14462 supported packets.
14463
e64f7499
YQ
144642013-03-07 Yao Qi <yao@codesourcery.com>
14465
14466 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14467 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14468 of -1.
14469 (cmd_qtsp): Adjust condition. Do post increment.
14470 Set cur_action and cur_step_action back to 0.
14471
f0ae6fc3
PA
144722013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14473
14474 PR server/15236
14475 * linux-low.c (linux_write_memory): Return early success if LEN is
14476 zero.
14477
b5b0b0af
CV
144782013-03-05 Corinna Vinschen <vinschen@redhat.de>
14479
334ad4a8 14480 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14481
589bc927
TT
144822013-02-28 Tom Tromey <tromey@redhat.com>
14483
14484 * configure.ac: Invoke AC_SYS_LARGEFILE.
14485 * configure, config.in: Rebuild.
14486
dfe07582
CV
144872013-02-28 Corinna Vinschen <vinschen@redhat.com>
14488
14489 * win32-low.c: Throughout, fix format strings and casts of
14490 printf-like functions to avoid type related warnings on all
14491 platforms.
14492 (get_child_debug_event): Print dwDebugEventCode as hex since
14493 that's how it's usually documented.
14494
736cd585
YQ
144952013-02-28 Yao Qi <yao@codesourcery.com>
14496
14497 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14498 pulongest.
14499
e1f58301
JW
145002013-02-27 Jiong Wang <jiwang@tilera.com>
14501
14502 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14503 (reg-tilegx32.c): New rule.
14504 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14505 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14506 different register info initializer according to elf class.
14507 (init_registers_tilgx32): New function. The tilegx32 register info
14508 initializer.
14509 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14510 (tile_store_gregset): Likewise.
14511
d171ca78
YQ
145122013-02-27 Yao Qi <yao@codesourcery.com>
14513
14514 * server.c (process_point_options): Print debug message when
14515 debug_threads is true.
14516
282bbdf3
YQ
145172013-02-26 Yao Qi <yao@codesourcery.com>
14518
14519 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14520
aca22551
PA
145212013-02-19 Pedro Alves <palves@redhat.com>
14522 Kai Tietz <ktietz@redhat.com>
14523
14524 PR gdb/15161
14525
14526 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14527 instead of strtoul to extract address from packet.
14528 (process_serial_event) <'z'>: Likewise.
14529
4f3cee1c
YQ
145302013-02-18 Yao Qi <yao@codesourcery.com>
14531
14532 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14533
8e1d55a3
PA
145342013-02-14 Pedro Alves <palves@redhat.com>
14535
14536 Plug memory leak.
14537
14538 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14539 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14540
458820da
PA
145412013-02-14 Pedro Alves <palves@redhat.com>
14542
14543 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14544
baea0dae
PA
145452013-02-14 Pedro Alves <palves@redhat.com>
14546
14547 * tracepoint.c (save_string): Delete.
14548 (add_tracepoint_action): Use savestring instead of save_string.
14549
0b1afbb3
PA
145502013-02-12 Pedro Alves <palves@redhat.com>
14551
14552 * linux-xtensa-low.c: Ditto.
14553 * xtensa-xtregs.c: Ditto.
14554
8a4ac37e
PA
145552013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14556
14557 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14558 thread_db.
14559
148de6bb
MS
145602013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14561
14562 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14563 aarch64_num_wp_regs and aarch64_num_bp_regs to
14564 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14565
55fac6e0
MS
145662013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14567
14568 * linux-aarch64-low.c (ps_get_thread_area): Replace
14569 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14570
176eb98c
MS
145712013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14572 Marcus Shawcroft <marcus.shawcroft@arm.com>
14573 Nigel Stephens <nigel.stephens@arm.com>
14574 Yufeng Zhang <yufeng.zhang@arm.com>
14575
14576 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14577 (aarch64.c, aarch64-without-fpu.c): New targets.
14578 * configure.srv (aarch64*-*-linux*): New.
14579 * linux-aarch64-low.c: New file.
14580
56f7af9c
MS
145812013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14582
43aaf8b6 14583 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14584 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14585 (dequeue_one_deferred_signal, linux_resume_one_thread)
14586 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14587 (linux_tracefork_grandchild, linux_test_for_tracefork)
14588 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14589 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14590 where the argument is 0.
14591
60f662b0
YQ
145922013-01-25 Yao Qi <yao@codesourcery.com>
14593
14594 * event-loop.c: Include "queue.h".
14595 (gdb_event_p): New typedef.
14596 (struct gdb_event) <next_event>: Remove.
14597 (event_queue): Change to QUEUE(gdb_event_p).
14598 (async_queue_event): Remove.
14599 (gdb_event_xfree): New.
14600 (initialize_event_loop): New.
14601 (process_event): Use API from QUEUE.
14602 (wait_for_event): Likewise.
14603 * server.c (main): Call initialize_event_loop.
14604 * server.h (initialize_event_loop): Declare.
14605
5ae4861a
YQ
146062013-01-18 Yao Qi <yao@codesourcery.com>
14607
14608 * ax.h (struct eval_agent_expr_context): New.
14609 (gdb_eval_agent_expr): Update declaration.
14610 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14611 TFRAME. Add new argument CTX.
14612 * server.h (struct eval_agent_expr_context): Declare.
14613 (agent_mem_read, agent_tsv_read): Update declaration.
14614 (agent_mem_read_string): Likewise.
14615 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14616 (add_traceframe_block): Add new argument TPOINT.
14617 Increase TPOINT->traceframe_usage.
14618 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14619 eval_tracepoint_agent_expr.
14620 (condition_true_at_tracepoint): Likewise.
14621 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14622 (agent_mem_read_string, agent_tsv_read): Likewise.
14623
85e00e85
YQ
146242013-01-16 Yao Qi <yao@codesourcery.com>
14625
14626 * linux-low.c (linux_resume_one_lwp): Don't check
14627 'lwp->bp_reinsert != 0'.
14628
4039cf45
JB
146292013-01-07 Joel Brobecker <brobecker@adacore.com>
14630 Pedro Alves <palves@redhat.com>
14631
14632 * lynx-low.c (ptrace_request_to_str): Define a temporary
14633 macro and use it to simplify this function's implementation.
14634
9044dee2
JB
146352013-01-07 Joel Brobecker <brobecker@adacore.com>
14636
14637 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14638 sets errno.
14639
e6352c8f
JB
146402013-01-07 Joel Brobecker <brobecker@adacore.com>
14641
14642 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14643
50681a27
JB
146442013-01-07 Joel Brobecker <brobecker@adacore.com>
14645
14646 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14647
3f6e77ef
JB
146482013-01-07 Joel Brobecker <brobecker@adacore.com>
14649
14650 * lynx-low.c (lynx_resume): Use the resume_info parameter
14651 to determine the ptid for the lynx_ptrace call, unless
14652 it is equal to minus_one_ptid, in which case we use the
14653 ptid of the current_inferior.
14654 (lynx_wait_1): After having received a thread create/exit
14655 event, resume the inferior's execution using the signaling
14656 thread's ptid, rather than the old ptid.
14657
7fda33ae
JB
146582013-01-07 Joel Brobecker <brobecker@adacore.com>
14659
14660 * lynx-low.c (lynx_resume): Delete variable ret.
14661
b9786c74
JB
146622013-01-01 Joel Brobecker <brobecker@adacore.com>
14663
14664 * gdbreplay.c (gdbreplay_version): Update copyright year.
14665 * server.c (gdbserver_version): Likewise.
14666
8b93d60f
JB
146672012-12-17 Joel Brobecker <brobecker@adacore.com>
14668
14669 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14670 new thread.
14671
037335a7
JB
146722012-12-17 Joel Brobecker <brobecker@adacore.com>
14673
14674 * lynx-low.c (ptrace_request_to_str): Add handling for
14675 PTRACE_GETTRACESIG.
14676
52d4cbd8
JB
146772012-12-17 Joel Brobecker <brobecker@adacore.com>
14678
14679 * lynx-low.c (lynx_attach): Delete variable new_process.
14680
ab8f6ca9
JB
146812012-12-17 Joel Brobecker <brobecker@adacore.com>
14682
14683 * lynx-low.c (lynx_create_inferior): Delete variable
14684 new_process.
14685
78cbc024
JB
146862012-12-17 Joel Brobecker <brobecker@adacore.com>
14687
14688 * lynx-low.c (ptrace_request_to_str): Do not handle
14689 PTRACE_GETTHREADLIST if this macro does not exist.
14690
14a00470
YQ
146912012-12-15 Yao Qi <yao@codesourcery.com>
14692
14693 * Makefile.in (OBS): Add notif.o.
14694 * notif.c, notif.h: New.
14695 * server.c: Include "notif.h".
14696 (struct vstop_notif) <next>: Remove.
14697 <base>: New field.
14698 (queue_stop_reply): Update.
14699 (push_event, send_next_stop_reply): Remove.
14700 (discard_queued_stop_replies): Update.
14701 (notif_stop): New variable.
14702 (handle_v_stopped): Remove.
14703 (handle_v_requests): Don't call handle_v_stopped. Call
14704 handle_ack_notif instead.
14705 (queue_stop_reply_callback): Call notif_event_enque instead
14706 of queue_stop_reply.
14707 (handle_status): Don't call send_next_stop_reply, call
14708 notif_write_event instead.
14709 (kill_inferior_callback): Likewise.
14710 (detach_or_kill_inferior_callback): Likewise.
14711 (main): Call initialize_notif.
14712 (process_serial_event): Call QUEUE_is_empty.
14713 (handle_target_event): Call notif_push instead of push event.
14714 * server.h (push_event): Remove declaration.
14715
61c125b9
TT
147162012-12-10 Tom Tromey <tromey@redhat.com>
14717
14718 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14719 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14720 macros.
14721 (.c.o): Rewrite.
14722 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14723 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14724 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14725 (amd64-linux-ipa.o, ax.o): Rewrite.
14726 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14727 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14728 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14729 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14730 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14731 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14732 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14733 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14734 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14735 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14736 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14737 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14738 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14739 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14740 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14741 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14742 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14743 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14744 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14745 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14746 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14747 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14748 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14749 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14750 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14751 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14752 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14753 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14754 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14755 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14756 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14757 (reg-tilegx.o): Remove.
14758 (all_object_files): New macro.
14759 Include .deps files.
14760 * aclocal.m4, configure: Rebuild.
14761 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14762 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14763 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14764
e90e9ad9
TT
147652012-12-05 Tom Tromey <tromey@redhat.com>
14766
14767 PR gdb/14917:
14768 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14769
02d403bf 147702012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14771
14772 * configure.ac: Check for linux/perf_event.h.
14773 * config.in: Regenerated.
14774 * configure: Regenerated.
14775
0270a750
PA
147762012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14777
14778 * hostio.c (handle_readlink): Decrease buffer size
14779 parameter passed to readlink by one byte.
14780
8c29b58e
YQ
147812012-11-26 Yao Qi <yao@codesourcery.com>
14782
14783 * configure.ac (build_warnings): Append '-Wempty-body'.
14784 * configure: Regenerated.
14785 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14786 body.
14787
8bdce1ff
PM
147882012-11-15 Pierre Muller <muller@sourceware.org>
14789
14790 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14791 * config.in: Regenerate.
14792 * configure: Regenerate.
14793 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14794 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14795 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14796 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14797 header.
14798 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14799 instead of <sys/wait.h> header.
14800 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14801
02d403bf 148022012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14803
14804 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14805 (various make rules): Remove -DGDBSERVER
14806
fbd5db48
YQ
148072012-11-09 Yao Qi <yao@codesourcery.com>
14808
14809 * spu-low.c (current_ptid): Move it to ..
14810 * gdbthread.h: ... here. New.
14811 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14812 * server.c (myresume, process_serial_event): Likewise.
14813 * thread-db.c (thread_db_find_new_threads): Likewise.
14814 * tracepoint.c (run_inferior_command): Likewise.
14815
b3dc46ff
AB
148162012-10-01 Andrew Burgess <aburgess@broadcom.com>
14817
14818 * server.c (handle_search_memory_1): Include access length in
14819 warning message.
14820
07c04788
HPN
148212012-09-05 Michael Brandt <michael.brandt@axis.com>
14822
14823 * linux-crisv32-low.c: Fix compile errors.
14824
918d227b
YQ
148252012-09-04 Yao Qi <yao@codesourcery.com>
14826
14827 * tracepoint.c (cmd_qtsv): Adjust debug message.
14828 Don't check CUR_TPOINT.
14829
18c1b81a
YQ
148302012-08-28 Yao Qi <yao@codesourcery.com>
14831
14832 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14833 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14834 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14835 Remove declarations of xmalloc, xreallloc, xstrdup and
14836 freeargv.
14837 * Makefile.in (libiberty_h): New.
14838 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14839 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14840
dc82f37b
YQ
148412012-08-23 Yao Qi <yao@codesourcery.com>
14842
14843 * server.h: Remove declaration of 'xsnprintf'.
14844
406b1477
KS
148452012-08-22 Keith Seitz <keiths@redhat.com>
14846
14847 * server.h: Include build-gnulib-gbserver/config.h.
14848 * gdbreplay.c: Likewise.
14849
e6712ff1
DE
148502012-08-08 Doug Evans <dje@google.com>
14851
14852 * Makefile.in (SFILES): Add gdb_vecs.c.
14853 (OBS): Add gdb_vecs.o.
14854 (gdb_vecs_h, host_defs_h): New variables.
14855 (thread-db.o): Add $(gdb_vecs_h) dependency.
14856 (gdb_vecs.o): New rule.
14857 * thread-db.c: #include "gdb_vecs.h".
14858 (thread_db_load_search): Use a vector to iterate over path elements.
14859 Handle text appearing after "$pdir".
14860
14861 * configure.ac: Add check for strstr.
14862 * config.in: Regenerate.
14863 * configure: Regenerate.
14864
7c3270ae
UW
148652012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14866
14867 * hostio.c (handle_pread): If pread fails, fall back to attempting
14868 lseek/read.
14869 (handle_pwrite): Likewise for pwrite.
14870
b62e2b27
UW
148712012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14872
14873 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14874 between unsupported TYPE and unimplementable ADDR/LEN combination.
14875 (arm_insert_point): Act on new return value.
14876
78a99e91
PA
148772012-07-31 Pedro Alves <palves@redhat.com>
14878
14879 * server.c (process_point_options): Only skip tokens if we find
14880 one that is unrecognized. Don't treat 'X' specially while
14881 skipping unrecognized tokens.
14882
fcf303ab
UW
148832012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14884
14885 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14886 to 4-byte-align HW breakpoint addresses for Thumb.
14887
7255706c
YQ
148882012-07-27 Yao Qi <yao@codesourcery.com>
14889
14890 PR remote/14161.
14891
14892 * server.h: Declare gdb_agent_about_to_close.
14893 * target.c (kill_inferior): Include "agent.h".
14894 New. Send command 'kill'.
14895 * target.h (kill_inferior): Removed macro.
14896 * tracepoint.c (gdb_agent_about_to_close): New.
14897 (gdb_agent_helper_thread): Handle command 'close'.
14898 Wait endlessly until the inferior stops.
14899 Install gdb_agent_remove_socket to atexit hook.
14900 (agent_socket_name): New static variable.
14901 (gdb_agent_socket_init): Replace local variable 'name' with
14902 'agent_socket_name'.
14903 (gdb_agent_remove_socket): New.
14904
5a3f286f
YQ
149052012-07-27 Yao Qi <yao@codesourcery.com>
14906
14907 * server.c (process_point_options): Stop at 'X' when parsing.
14908
961bd387
ME
149092012-07-19 Michael Eager <eager@eagercon.com>
14910
a261b8f5 14911 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14912 to hw_execute.
14913 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14914 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14915 hardware breakpoint.
14916
aa7c7447
JK
149172012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14918
14919 * gdbserver/linux-low.c (initialize_low): Call
14920 linux_ptrace_init_warnings.
14921
7f216e7c
DE
149222012-07-02 Doug Evans <dje@google.com>
14923
14924 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14925 pointer to int.
14926
d3ce09f5
SS
149272012-07-02 Stan Shebs <stan@codesourcery.com>
14928
14929 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14930 (ax.o): Add it to build rule.
14931 (ax-ipa.o): Ditto.
14932 (OBS): Add format.o.
14933 (IPA_OBS): Add format.o.
14934 * server.c (handle_query): Claim support for breakpoint commands.
14935 (process_point_options): Add command case.
14936 (process_serial_event): Leave running if there are printfs in
14937 effect.
14938 * mem-break.h (any_persistent_commands): Declare.
14939 (add_breakpoint_commands): Declare.
14940 (gdb_no_commands_at_breakpoint): Declare.
14941 (run_breakpoint_commands): Declare.
14942 * mem-break.c (struct point_command_list): New struct.
14943 (struct breakpoint): New field command_list.
14944 (any_persistent_commands): New function.
14945 (add_commands_to_breakpoint): New function.
14946 (add_breakpoint_commands): New function.
14947 (gdb_no_commands_at_breakpoint): New function.
14948 (run_breakpoint_commands): New function.
14949 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14950 locally.
14951 * ax.c: Include format.h.
14952 (ax_printf): New function.
14953 (gdb_eval_agent_expr): Add printf opcode.
14954
2f8f6aed
YQ
149552012-06-13 Yao Qi <yao@codesourcery.com>
14956
14957 * server.c (start_inferior): Remove duplicated writes to fields
14958 'last_resume_kind' and 'last_status' of 'current_inferior'.
14959
0c9070b3
YQ
149602012-06-12 Yao Qi <yao@codesourcery.com>
14961 Pedro Alves <palves@redhat.com>
14962
14963 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14964 comment.
14965 * server.c (handle_v_cont): Extend comment.
14966
c52daf70
YQ
149672012-06-11 Yao Qi <yao@codesourcery.com>
14968
14969 * linux-low.c (linux_attach): Add 'static'.
14970
d38bbb0a
YQ
149712012-06-06 Yao Qi <yao@codesourcery.com>
14972
14973 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14974
89dc0afd
JK
149752012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14976
14977 Fix gcc -flto compilation warning.
14978 * server.c (main): Make variable multi_mode and attach volatile.
14979
75f62ce7
TJB
149802012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14981
14982 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14983 if the platform doesn't know about it.
14984
65f479b6
PA
149852012-05-30 Jeff Kenton <jkenton@tilera.com>
14986
14987 * Makefile.in (SFILES): Add linux-tile-low.c.
14988 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14989 * configure.srv: Handle tilegx-*-linux*.
14990 * linux-tile-low.c: New file.
14991
0c5bf5a9
JK
149922012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14993
14994 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14995
a493e3e2
PA
149962012-05-24 Pedro Alves <palves@redhat.com>
14997
14998 PR gdb/7205
14999
43aaf8b6 15000 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15001
2ea28649
PA
150022012-05-24 Pedro Alves <palves@redhat.com>
15003
15004 PR gdb/7205
15005
15006 Replace target_signal with gdb_signal throughout.
15007
8d409d16
MR
150082012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15009
15010 * linux-low.c (linux_store_registers): Avoid the copying sequence
15011 when no data has been retrieved by ptrace.
15012
23512c01
MGD
150132012-05-22 Will Deacon <will.deacon@arm.com>
15014
15015 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15016 Include asm/ptrace.h.
15017 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15018 already defined.
15019
4934b29e
MR
150202012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15021
15022 * linux-low.c (linux_store_registers): Don't re-retrieve data
15023 with ptrace that has already been obtained from /proc. Always
15024 copy any data retrieved with ptrace to the buffer supplied.
15025
bde24c0a
PA
150262012-05-11 Yao Qi <yao@codesourcery.com>
15027 Pedro Alves <palves@redhat.com>
15028
15029 * linux-low.c (enum stopping_threads_kind): New.
15030 (stopping_threads): Change type to `enum stopping_threads_kind'.
15031 (handle_extended_wait): If stopping and suspending threads, leave
15032 the new_lwp suspended too.
15033 (linux_wait_for_event): Adjust.
15034 (stop_all_lwps): Set `stopping_threads' to
15035 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15036 whether we're suspending threads or just stopping them. Assert no
15037 recursion happens.
15038
623b6bdf
YQ
150392012-04-29 Yao Qi <yao@codesourcery.com>
15040
15041 * server.h: Move some code to ...
15042 * gdbthread.h: ... here. New.
15043 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15044 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15045 (nto-low.o, win32-low.o): Likewise.
15046 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15047 * regcache.c, remote-utils.c, server.c: Likewise.
15048 * target.c, tracepoint.c, win32-low.c: Likewise.
15049
f15f9948
TJB
150502012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15051
15052 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15053 (PTRACE_ARG4_TYPE): Likewise.
15054 (PTRACE_XFER_TYPE): Likewise.
15055 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15056 ptrace to PTRACE_ARG3_TYPE.
15057 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15058 (PTRACE_ARG4_TYPE): Likewise.
15059 (PTRACE_XFER_TYPE): Likewise.
15060 (linux_detach_one_lwp): Cast fourth argument of
15061 ptrace to long then PTRACE_ARG4_TYPE.
15062 (regsets_fetch_inferior_registers): Cast third argument of
15063 ptrace to long then PTRACE_ARG3_TYPE.
15064 (regsets_store_inferior_registers): Likewise.
15065
38ea300a
PA
150662012-04-20 Pedro Alves <palves@redhat.com>
15067
15068 * configure: Regenerate.
15069
c971b7fa
PA
150702012-04-19 Pedro Alves <palves@redhat.com>
15071
43aaf8b6 15072 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15073 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15074 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15075 (all, install-only, uninstall, clean-info, all-lib, clean): No
15076 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15077 (maintainer-clean realclean distclean): Use subdir_do.
15078 (subdir_do): New.
15079 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15080 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15081 * acinclude.m4: Include acx_configure_dir.m4.
15082 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15083 calls. Call AC_PROG_RANLIB. Configure gnulib using
15084 ACX_CONFIGURE_DIR.
15085 (GNULIB): New.
15086 (GNULIB_STDINT_H): Adjust.
15087 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15088 * gdbreplay.c: Include build-gnulib/config.h.
15089 * server.h: Likewise.
15090 * aclocal.m4: Regenerate.
15091 * config.in: Regenerate.
15092 * configure: Regenerate.
c971b7fa 15093
809277f8
PA
150942012-04-19 Pedro Alves <palves@redhat.com>
15095
15096 * Makefile.in (LIBGNU, INCGNU): Adjust.
15097 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15098 (all, install-only, uninstall, clean-info, all-lib, clean)
15099 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15100 * configure.ac: Adjust AC_OUTPUT output.
15101 * aclocal.m4: Regenerate.
15102 * configure: Regenerate.
15103
fd9bb8b8
PA
151042012-04-19 Pedro Alves <palves@redhat.com>
15105
15106 * Makefile.in (generated_files): New.
15107 (server_h): Remove the explicit dependency on config.h, and depend
15108 on $generated_files.
15109
1c298c66
PA
151102012-04-19 Pedro Alves <palves@redhat.com>
15111
15112 * Makefile.in (INCGNU): Add -Ignulib.
15113
57c4b50b
PA
151142012-04-19 Pedro Alves <palves@redhat.com>
15115
15116 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15117 (INCGNU): ... this, and spell out -I here.
15118 (GNULIB_LIB): Rename to ...
15119 (LIBGNU): ... this.
15120 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15121
1030e047
PA
151222012-04-19 Pedro Alves <palves@redhat.com>
15123
15124 * config.in: Regenerate.
15125
447d4319
PA
151262012-04-19 Pedro Alves <palves@redhat.com>
15127
15128 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15129 * server.h (memmem): Remove declaration.
15130 * config.in: Regenerate.
15131 * configure: Regenerate.
15132
aad9eab9
YQ
151332012-04-19 Yao Qi <yao@codesourcery.com>
15134
15135 * Makefile.in (SFILES): Add common/vec.c.
15136 (OBS): Add vec.o.
15137 (vec.o): New rule.
15138
3e10640f
YQ
151392012-04-19 Yao Qi <yao@codesourcery.com>
15140
15141 * remote-utils.c (prepare_resume_reply): Replace with macro
15142 target_core_of_thread.
15143 * server.c (handle_qxfer_threads_proper): Likewise.
15144 * target.h (traget_core_of_thread): New macro.
15145
71622373
PA
151462012-04-18 Pedro Alves <palves@redhat.com>
15147
15148 * aclocal.m4: Regenerate.
15149 * configure: Regenerate.
15150
80d26939
YQ
151512012-04-16 Yao Qi <yao@codesourcery.com>
15152
15153 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15154 duplicated on address.
15155
42476b70
YQ
151562012-04-16 Yao Qi <yao@codesourcery.com>
15157
15158 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15159 (struct tracepoint_action_ops) <send>: New field.
15160 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15161 (agent_expr_send, x_tracepoint_action_send): New.
15162 (l_tracepoint_action_send): New.
15163 (cmd_qtdp): Download and install tracepoint
15164 according to `use_agent'.
15165 (run_inferior_command): Add one more parameter `len'.
15166 Update callers.
15167 (tracepoint_send_agent): New.
15168 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15169
7bc83639
YQ
151702012-04-16 Yao Qi <yao@codesourcery.com>
15171
15172 * tracepoint.c (download_tracepoints): Moved to ...
15173 (cmd_qtstart): ... here.
15174
5f18041e
YQ
151752012-04-14 Yao Qi <yao@codesourcery.com>
15176
15177 * tracepoint.c: Include inttypes.h.
15178 (struct collect_memory_action): Use sized types.
15179 (struct tracepoint): Likewise.
15180 (cmd_qtdp, stop_tracing): Update print specifiers.
15181 (cmd_qtp, response_tracepoint): Likewise.
15182 (collect_data_at_tracepoint): Likewise.
15183 (collect_data_at_step): Likewise.
15184
55a8c076
YQ
151852012-04-14 Yao Qi <yao@codesourcery.com>
15186
15187 Import gnulib module inttypes.
15188 * aclocal.m4, config.in, configure: Regenerated.
15189
dc750257
YQ
151902012-04-14 Yao Qi <yao@codesourcery.com>
15191
15192 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15193 Makefile and config.status at last.
15194
0ab5faf9
YQ
151952012-04-13 Yao Qi <yao@codesourcery.com>
15196
15197 * tracepoint.c: Include stdint.h unconditionally.
15198
18f5fd81
TJB
151992012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15200
15201 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15202 on BFD_HAVE_SYS_PROCFS_TYPE.
15203 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15204 * configure: Regenerate.
15205 * config.in: Likewise.
15206
4d47af5c
L
152072012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15208
15209 * Makefile.in (clean): Also remove x32.c x32-linux.c
15210 x32-avx.c x32-avx-linux.c.
15211 (x32.o): New target.
15212 (x32.c): Likewise.
15213 (x32-linux.o): Likewise.
15214 (x32-linux.c): Likewise.
15215 (x32-avx.o): Likewise.
15216 (x32-avx.c): Likewise.
15217 (x32-avx-linux.o): Likewise.
15218 (x32-avx-linux.c): Likewise.
15219
15220 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15221 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15222 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15223 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15224 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15225 i386/x32-avx-linux.xml.
15226
15227 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15228 (init_registers_x32_avx_linux): Likwise.
15229 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15230 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15231
ecedbe58
PA
152322012-04-13 Pedro Alves <palves@redhat.com>
15233
15234 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15235 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15236 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15237 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15238 the sub-make.
15239
c92b5177
L
152402012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15241
15242 * linux-x86-low.c (compat_x32_clock_t): New.
15243 (compat_x32_siginfo_t): Likewise.
15244 (compat_x32_siginfo_from_siginfo): Likewise.
15245 (siginfo_from_compat_x32_siginfo): Likewise.
15246 (linux_is_elf64): Likewise.
15247 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15248 and siginfo_from_compat_x32_siginfo for x32.
15249 (x86_arch_setup): Set linux_is_elf64.
15250
214d508e
L
152512012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15252
15253 PR gdb/13969
15254 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15255 e_machine field.
15256 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15257 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15258 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15259 compatible with process.
15260
c9a1864a
YQ
152612012-04-12 Yao Qi <yao@codesourcery.com>
15262
15263 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15264 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15265 (install-only, install-info, clean): Handle sub dir gnulib.
15266 (all-lib, am--refresh): New targets.
15267 (memmem.o): Remove target.
15268 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15269 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15270 (AC_REPLACE_FUNCS): Remove memmem.
15271 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15272 (AC_OUTPUT): Generate Makefile in gnulib/.
15273 * aclocal.m4, config.in, configure: Regenerated.
15274
367ba2c2
MR
152752012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15276
15277 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15278
9d236627
PA
152792012-04-05 Pedro Alves <palves@redhat.com>
15280
15281 -Werror=strict-aliasing
15282
15283 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15284 pointer.
15285
111217b3
PA
152862012-04-04 Pedro Alves <palves@redhat.com>
15287
15288 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15289 (sparc_store_gregset_from_stack, sparc_store_gregset)
15290 (sparc_breakpoint_at): Fix formatting.
15291
8365dcf5
TJB
152922012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15293
15294 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15295 are available.
15296 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15297 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15298 * config.in: Regenerate.
15299 * configure: Likewise.
15300
689cc2ae
PA
153012012-03-29 Pedro Alves <palves@redhat.com>
15302
15303 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15304 Correct ptrace arguments.
15305
c14dfd32
PA
153062012-03-28 Pedro Alves <palves@redhat.com>
15307
15308 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15309 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15310 (IA64_FR1_REGNUM): New defines.
15311 (ia64_fetch_register): New.
15312 (the_low_target): Install it.
15313 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15314 field.
15315 * linux-low.c (linux_fetch_registers): Try the
15316 the_low_target.fetch_register hook first.
15317
15318 * linux-arm-low.c (the_low_target): Adjust.
15319 * linux-bfin-low.c (the_low_target): Adjust.
15320 * linux-cris-low.c (the_low_target): Adjust.
15321 * linux-crisv32-low.c (the_low_target): Adjust.
15322 * linux-m32r-low.c (the_low_target): Adjust.
15323 * linux-m68k-low.c (the_low_target): Adjust.
15324 * linux-mips-low.c (the_low_target): Adjust.
15325 * linux-ppc-low.c (the_low_target): Adjust.
15326 * linux-s390-low.c (the_low_target): Adjust.
15327 * linux-sh-low.c (the_low_target): Adjust.
15328 * linux-sparc-low.c (the_low_target): Adjust.
15329 * linux-tic6x-low.c (the_low_target): Adjust.
15330 * linux-x86-low.c (the_low_target): Adjust.
15331 * linux-xtensa-low.c (the_low_target): Adjust.
15332
63c88e13
PA
153332012-03-26 Pedro Alves <palves@redhat.com>
15334
15335 * server.c (handle_qxfer_libraries): Don't bail early if
15336 the_target->qxfer_libraries_svr4 is not NULL.
15337
fb723180
PA
153382012-03-26 Pedro Alves <palves@redhat.com>
15339
15340 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15341
0afae3cf
PA
153422012-03-23 Pedro Alves <palves@redhat.com>
15343
15344 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15345 "library-list-svr4" element's start tag when the the DSO list is
15346 empty.
15347
485f1ee4
PA
153482012-03-23 Pedro Alves <palves@redhat.com>
15349
15350 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15351 a variable whose type size is the same as the inferior's pointer
15352 size.
15353
a5362b9a
TS
153542012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15355
15356 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15357 struct siginfo.
15358 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15359 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15360 * linux-low.h: Include <signal.h>.
15361 (struct siginfo): Remove forward declaration.
15362 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15363 struct siginfo.
15364
d226c142
MF
153652012-03-21 Mike Frysinger <vapier@gentoo.org>
15366
15367 * .gitignore: Ignore more files.
15368
122f36ef
PA
153692012-03-19 Pedro Alves <palves@redhat.com>
15370 Jan Kratochvil <jan.kratochvil@redhat.com>
15371
15372 * server.c (cont_thread, general_thread): Add describing comments.
15373 (start_inferior): Clear `cont_thread'.
15374 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15375 of a process.
15376
fc3e5175
YQ
153772012-03-15 Yao Qi <yao@codesourcery.com>
15378
15379 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15380 handling to ...
15381 (cmd_qtdp): ... here.
15382
8d0d92cd
YQ
153832012-03-15 Yao Qi <yao@codesourcery.com>
15384
15385 * tracepoint.c (struct tracepoint_action_ops): New.
15386 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15387 (m_tracepoint_action_download): New.
15388 (r_tracepoint_action_download): New.
15389 (x_tracepoint_action_download): New.
15390 (l_tracepoint_action_download): New.
15391 (add_tracepoint_action): Install `action->ops' according type.
15392 (download_tracepoint_1): Move code `download' function pointer
15393 of various tracepoint_action_ops.
15394
87b0bb13
JK
153952012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15396
15397 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15398 linux_ptrace_attach_warnings.
15399
5f572dec
JK
154002012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15401
15402 * Makefile.in (linux-ptrace.o): New.
15403 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15404 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15405 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15406 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15407 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15408 of these targets.
15409 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15410
f4647387
YQ
154112012-03-08 Yao Qi <yao@codesourcery.com>
15412 Pedro Alves <palves@redhat.com>
15413
15414 Fix PR server/13392.
15415 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15416 offset of JMP insn.
15417 * tracepoint.c (remove_tracepoint): New.
15418 (cmd_qtdp): Call remove_tracepoint when failed to install.
15419
9b224c5e
PA
154202012-03-07 Pedro Alves <palves@redhat.com>
15421
15422 * linux-low.c (get_detach_signal): New.
15423 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15424 Pass on pending signals to PTRACE_DETACH. Check the result of the
15425 ptrace call.
15426 * server.c (program_signals, program_signals_p): New.
15427 (handle_general_set): Handle QProgramSignals.
15428 * server.h (program_signals, program_signals_p): Declare.
15429
e237a7e2
JK
154302012-03-05 Pedro Alves <palves@redhat.com>
15431 Jan Kratochvil <jan.kratochvil@redhat.com>
15432
15433 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15434 New comment why.
15435
5808517f
YQ
154362012-03-03 Yao Qi <yao@codesourcery.com>
15437
15438 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15439 agent_look_up_symbols.
15440
58b4daa5
YQ
154412012-03-03 Yao Qi <yao@codesourcery.com>
15442
15443 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15444 (linux-x86-low.o): Likewise.
15445 * server.h: Remove in_process_agent_loaded.
15446 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15447 common/agent.c.
15448 Update callers.
15449
8ffcbaaf
YQ
154502012-03-03 Yao Qi <yao@codesourcery.com>
15451
15452 * tracepoint.c (gdb_agent_capability): New global.
15453 (in_process_agent_loaded_ust): Renamed to
15454 `in_process_agent_supports_ust'.
15455 Update callers.
15456 (in_process_agent_supports_ust): Call agent_capability_check.
15457 (clear_installed_tracepoints): Assert that agent supports
15458 agent.
15459
d1feda86
YQ
154602012-03-03 Yao Qi <yao@codesourcery.com>
15461
15462 * linux-low.c (linux_supports_agent): New.
15463 (linux_target_ops): Initialize field `supports_agent' with
15464 linux_supports_agent.
15465 * target.h (struct target_ops) <supports_agent>: New.
15466 (target_supports_agent): New macro.
15467 * server.c (handle_general_set): Handle packet 'QAgent'.
15468 (handle_query): Send `QAgent+'.
15469 * Makefile.in (server.o): Depends on agent.h.
15470
2fa291ac
YQ
154712012-03-03 Yao Qi <yao@codesourcery.com>
15472
15473 * Makefile.in (OBS): Add agent.o.
15474 Add new rule for agent.o.
15475 Track dependence of tracepoint.c on agent.h.
15476 * tracepoint.c (run_inferior_command_1):
15477 (run_inferior_command): Call agent_run_command.
15478 (gdb_ust_connect_sync_socket): Deleted. Move it to
15479 common/agent.c.
15480 (resume_thread, stop_thread): Likewise.
15481 (gdb_ust_socket_init): Renamed to ...
15482 (gdb_agent_socket_init): ... New.
15483 (gdb_ust_thread): Renamed to ...
15484 (gdb_agent_helper_thread): ... New.
15485 (gdb_ust_init): Move some code to ...
15486 (gdb_agent_init): ... here. New.
15487 [HAVE_UST]: Call gdb_ust_init.
15488 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15489 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15490 * config.in, configure: Regenerated.
15491
05044653
PA
154922012-03-02 Pedro Alves <palves@redhat.com>
15493
15494 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15495 * linux-low.c (struct simple_pid_list): New.
15496 (stopped_pids): New a struct simple_pid_list pointer.
15497 (add_to_pid_list, pull_pid_from_list): New.
15498 (handle_extended_wait): Don't assume the first signal new children
15499 report is SIGSTOP. Adjust call to pull_pid_from_list.
15500 (linux_wait_for_lwp): Adjust.
15501
8d00225b
YQ
155022012-03-02 Yao Qi <yao@codesourcery.com>
15503
15504 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15505 debug log.
15506
19560ba5
YQ
155072012-03-02 Yao Qi <yao@codesourcery.com>
15508
15509 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15510 `stop_pc' and `tpoint'. Update caller.
15511
1faeff08
MR
155122012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15513
15514 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15515 * linux-low.c (use_linux_regsets): New macro.
15516 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15517 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15518 (linux_register_in_regsets): New function.
15519 (usr_fetch_inferior_registers): Skip registers covered by
15520 regsets.
15521 (usr_store_inferior_registers): Likewise.
15522 (usr_fetch_inferior_registers): New macro.
15523 (usr_store_inferior_registers): Likewise.
15524 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15525 (linux_store_registers): Likewise.
15526 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15527 prototype.
15528 (init_registers_mips64_dsp_linux): Likewise.
15529 (init_registers_mips_linux): New macro.
15530 (init_registers_mips_dsp_linux): Likewise.
15531 (mips_dsp_num_regs): Likewise.
15532 (DSP_BASE, DSP_CONTROL): New fallback macros.
15533 (mips_base_regs): New macro.
15534 (mips_regmap): Use it. Fix the size.
15535 (mips_dsp_regmap): New variable.
15536 (mips_dsp_regset_bitmap): Likewise.
15537 (mips_arch_setup): New function.
15538 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15539 than mips_regmap.
15540 (mips_cannot_store_register): Likewise.
15541 (the_low_target): Update .arch_setup, .num_regs and .regmap
15542 initializers. Add .regset_bitmap initializer.
15543 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15544 initializer.
15545 * linux-bfin-low.c (the_low_target): Likewise.
15546 * linux-cris-low.c (the_low_target): Likewise.
15547 * linux-crisv32-low.c (the_low_target): Likewise.
15548 * linux-ia64-low.c (the_low_target): Likewise.
15549 * linux-m32r-low.c (the_low_target): Likewise.
15550 * linux-m68k-low.c (the_low_target): Likewise.
15551 * linux-ppc-low.c (the_low_target): Likewise.
15552 * linux-s390-low.c (the_low_target): Likewise.
15553 * linux-sh-low.c (the_low_target): Likewise.
15554 * linux-sparc-low.c (the_low_target): Likewise.
15555 * linux-tic6x-low.c (the_low_target): Likewise.
15556 * linux-x86-low.c (the_low_target): Likewise.
15557 * linux-xtensa-low.c (the_low_target): Likewise.
15558 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15559 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15560 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15561 srv_xmlfiles.
15562 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15563 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15564
c03e6ccc
YQ
155652012-02-29 Yao Qi <yao@codesourcery.com>
15566 Pedro Alves <palves@redhat.com>
15567
15568 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15569 `step_over_finished' is true.
15570
644cebc9
PA
155712012-02-27 Pedro Alves <palves@redhat.com>
15572
15573 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15574 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15575
c14d7ab2
PA
155762012-02-27 Pedro Alves <palves@redhat.com>
15577
15578 PR server/9684
15579 * linux-low.c (pid_is_stopped): New.
15580 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15581
412c89dd
LM
155822012-02-25 Luis Machado <lgustavo@codesourcery.com>
15583
15584 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15585 of conditions.
15586
b745defe
MR
155872012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15588
15589 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15590
9f3a5c85
LM
155912012-02-24 Luis Machado <lgustavo@codesourcery>
15592
15593 * server.c (handle_query): Advertise support for target-side
15594 breakpoint condition evaluation.
15595 (process_point_options): New function.
15596 (process_serial_event): When inserting a breakpoint, check for
15597 a target-side condition that should be evaluated.
15598
15599 * mem-break.c: Include regcache.h and ax.h.
15600 (point_cond_list_t): New data structure.
15601 (breakpoint) <cond_list>: New field.
15602 (find_gdb_breakpoint_at): Make non-static.
15603 (delete_gdb_breakpoint_at): Clear any target-side
15604 conditions.
15605 (clear_gdb_breakpoint_conditions): New function.
15606 (add_condition_to_breakpoint): Likewise.
15607 (add_breakpoint_condition): Likewise.
15608 (gdb_condition_true_at_breakpoint): Likewise.
15609 (gdb_breakpoint_here): Return result directly instead
15610 of going through a local variable.
15611
15612 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15613 (clear_gdb_breakpoint_conditions): Likewise.
15614 (add_breakpoint_condition): Likewise.
15615 (gdb_condition_true_at_breakpoint): Likewise.
15616
15617 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15618 (need_step_over_p): Take target-side breakpoint condition into
15619 consideration.
15620
5e1dc496
LM
156212012-02-24 Luis Machado <lgustavo@codesourcery>
15622
15623 * server.h: Include tracepoint.h.
15624 (agent_mem_read, agent_get_trace_state_variable_value,
15625 agent_set_trace_state_variable_value,
15626 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15627 get_set_tsv_func_addr): New prototypes.
15628
15629 * ax.h: New include file.
15630 * ax.c: New source file.
15631
15632 * tracepoint.c: Include ax.h.
15633 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15634 agent_expr, eval_result_type): Move to ax.h.
15635 (parse_agent_expr): Rename to ...
15636 (gdb_parse_agent_expr): ... this, make it non-static and move
15637 to ax.h.
15638 (unparse_agent_expr) Rename to ...
15639 (gdb_unparse_agent_expr): ... this, make it non-static and move
15640 to ax.h.
15641 (eval_agent_expr): Rename to ...
15642 (eval_tracepoint_agent_expr): ... this.
15643 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15644 forward declarations.
15645 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15646 (agent_get_trace_state_variable_value): New function.
15647 (agent_set_trace_state_variable_value): New function.
15648 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15649 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15650 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15651 (condition_true_at_tracepoint): Likewise.
15652 (parse_agent_expr): Rename to ...
15653 (gdb_parse_agent_expr): ... this and move to ax.c.
15654 (unparse_agent_expr): Rename to ...
15655 (gdb_unparse_agent_expr): ... this and move to ax.c.
15656 (gdb_agent_op_name): Move to ax.c.
15657 (eval_agent_expr): Rename to ...
15658 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15659 and move to ax.c.
15660 (eval_tracepoint_agent_expr): New function.
15661 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15662 non-static.
5e1dc496
LM
15663 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15664 ax.c.
15665 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15666 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15667 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15668 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15669 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15670 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15671 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15672 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15673 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15674 (compile_bytecodes): Remove forward declaration.
15675 (is_goto_target): Move to ax.c.
15676 (compile_bytecodes): Move to ax.c and call
15677 agent_get_trace_state_variable_value (...) and
15678 agent_set_trace_state_variable_value (...).
15679
15680 * Makefile.in: Update ax.c and IPA dependencies.
15681
277e4e52
PA
156822012-02-24 Pedro Alves <palves@redhat.com>
15683
15684 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15685 (cmd_bigqtbuffer_circular): ... this. Only handle
15686 'QTBuffer:circular:'.
15687 (handle_tracepoint_general_set): Adjust.
15688
bf4c19f7
YQ
156892012-02-16 Yao Qi <yao@codesourcery.com>
15690
15691 * inferiors.c: Move code to ...
15692 * dll.c: .... here. New.
15693 * server.h: Declare clear_dlls.
15694 * Makefile.in (SFILES): Add dll.c.
15695 (OBS): Add dll.o
15696 (dll.o): New rule.
15697
d73f2619
YQ
156982012-02-11 Yao Qi <yao@codesourcery.com>
15699
15700 * server.c: (handle_monitor_command): Add a new parameter
15701 `own_buf'.
15702 (handle_query): Update caller.
15703
f8255c2a
JB
157042012-02-09 Joel Brobecker <brobecker@adacore.com>
15705
15706 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15707 * configure, config.in: Regenerate.
15708 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15709 is not defined.
15710
da84f473
PA
157112012-02-02 Pedro Alves <palves@redhat.com>
15712
15713 Try SIGKILL first, then PTRACE_KILL.
15714 * linux-low.c (linux_kill_one_lwp): New.
15715 (linux_kill_one_lwp): Rename to ...
15716 (kill_one_lwp_callback): ... this. Use the new
15717 linux_kill_one_lwp.
15718
e886a173
PA
157192012-02-02 Pedro Alves <palves@redhat.com>
15720
15721 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15722 inferior.
15723
be07f1a2
PA
157242012-01-27 Pedro Alves <palves@redhat.com>
15725
15726 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15727 (elf_64_file_p): Make static.
15728 (linux_pid_exe_is_elf_64_file): New.
15729 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15730 Delete declarations.
15731 (linux_pid_exe_is_elf_64_file): Declare.
15732 * linux-x86-low.c (x86_arch_setup): Use
15733 linux_pid_exe_is_elf_64_file.
15734
d8301ad1
JK
157352012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15736
15737 * linux-low.c (linux_wait_for_event_1): Rename to ...
15738 (linux_wait_for_event): ... here and merge it with former
15739 linux_wait_for_event - new variable wait_ptid, use it.
15740 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15741
01b17894
PA
157422012-01-23 Pedro Alves <palves@redhat.com>
15743
15744 * server.c (main): Avoid yet another case of infinite loop while
15745 detaching/killing after a longjmp.
15746
e825046f
JK
157472012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15748
15749 Code cleanup.
15750 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15751
b9e7b9c3
UW
157522012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15753
15754 * hostio.c (handle_readlink): New function.
15755 (handle_vFile): Call it to handle "vFile:readlink" packets.
15756
901f9912
UW
157572012-01-20 Pedro Alves <palves@redhat.com>
15758 Ulrich Weigand <ulrich.weigand@linaro.org>
15759
15760 * server.c (handle_v_requests): Only support vAttach and vRun to
15761 start multiple processes when in extended protocol mode.
15762
fc1ab1a0
PA
157632012-01-17 Pedro Alves <palves@redhat.com>
15764
15765 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15766 memalign plus mprotect to allocate the scratch buffer.
15767
7d5d4e98
PA
157682012-01-13 Pedro Alves <palves@redhat.com>
15769
15770 * server.c (attach_inferior): Clear `cont_thread'.
15771
f128d5e9
PA
157722012-01-13 Pedro Alves <palves@redhat.com>
15773
15774 * server.c (main): Avoid infinite loop while detaching/killing
15775 after a longjmp.
15776
06db92f0
DE
157772012-01-09 Doug Evans <dje@google.com>
15778
15779 * server.c (start_inferior): Set last_ptid in --wrapper case.
15780
32d92999
YQ
157812012-01-06 Yao Qi <yao@codesourcery.com>
15782
15783 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15784 defined.
15785 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15786
5e0a92a9
YQ
157872012-01-04 Yao Qi <yao@codesourcery.com>
15788
15789 * tracepoint.c (cmd_qtdp): Print debug message
15790 for static tracepoint.
15791
ae639e8c
YQ
157922012-01-04 Yao Qi <yao@codesourcery.com>
15793
15794 * tracepoint.c (trace_vdebug): Differentiate debug message
15795 between gdbserver and IPA.
15796
f72429c5
YQ
157972012-01-03 Yao Qi <yao@codesourcery.com>
15798
15799 * tracepoint.c (tracepoint_was_hit): Don't collect for
15800 static tracepoint.
15801
12c3e59c
JB
158022012-01-02 Joel Brobecker <brobecker@adacore.com>
15803
15804 * terminal.h: Reformat copyright header.
15805
67827812
JB
158062012-01-02 Joel Brobecker <brobecker@adacore.com>
15807
15808 * server.c (gdbserver_version): Update copyright year.
15809 * gdbreplay.c (gdbreplay_version): Likewise.
15810
3e52c33d
JK
158112011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15812
15813 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15814
15815 Revert:
15816 2011-12-18 Hui Zhu <teawater@gmail.com>
15817 * linux-low.c (linux_create_inferior): Save return value to ret.
15818
66f1260e
HZ
158192011-12-18 Hui Zhu <teawater@gmail.com>
15820
15821 * linux-low.c (linux_create_inferior): Save return value to ret.
15822
e77616d7
DE
158232011-12-16 Doug Evans <dje@google.com>
15824
e7b06c57
DE
15825 * linux-low.c (linux_create_inferior): If stdio connection,
15826 redirect stdin from /dev/null, stdout to stderr.
15827 * remote-utils.c (remote_is_stdio): New static global.
15828 (remote_connection_is_stdio): New function.
15829 (remote_prepare): Handle stdio connection.
15830 (remote_open): Ditto.
15831 (remote_close): Don't close stdin for stdio connections.
15832 (read_prim,write_prim): New functions. Replace all calls to
15833 read/write to these.
15834 * server.c (main): Watch for "-" argument. Move call to
15835 remote_prepare before start_inferior.
15836 * server.h (STDIO_CONNECTION_NAME): New macro.
15837 (remote_connection_is_stdio): Declare.
15838
e77616d7
DE
15839 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15840 in debugging output.
15841
82067193
YQ
158422011-12-15 Yao Qi <yao@codesourcery.com>
15843
15844 * tracepoint.c: Include sys/syscall.h.
15845 (gdb_ust_thread): Remove preprocessor conditional.
15846
82bfbe7e
PA
158472011-12-14 Pedro Alves <pedro@codesourcery.com>
15848
15849 * linux-low.c (linux_detach_one_lwp): Call
15850 the_low_target.prepare_to_resume before detaching.
15851
712c6575
YQ
158522011-12-14 Yao Qi <yao@codesourcery.com>
15853
15854 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15855 of write.
15856
d54d1edf
YQ
158572011-12-14 Yao Qi <yao@codesourcery.com>
15858
15859 * i386-low.c (i386_low_stopped_data_address): Initialize local
15860 variable `control'.
15861
6210a125
PA
158622011-12-13 Pedro Alves <pedro@codesourcery.com>
15863
15864 PR remote/13492
15865
15866 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15867 DR_CONTROL unless necessary. Extend comments.
15868 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15869 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15870
2ece8244
YQ
158712011-12-13 Yao Qi <yao@codesourcery.com>
15872
15873 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15874 macros.
15875 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15876
784867a5
JK
158772011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15878
15879 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15880 Print new debug message for such case.
15881
6bf36717
JK
158822011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15883
15884 Fix overlapping memcpy.
15885 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15886 the read_inferior_memory transfer.
15887 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15888 write_inferior_memory transfer.
15889 (set_fast_tracepoint_jump): New variable buf. Use it for the
15890 read_inferior_memory and write_inferior_memory transfers.
15891 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15892 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15893 Use it for the write_inferior_memory transfer.
15894 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15895 buffers.
15896
50275556
MR
158972011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15898
15899 * linux-low.c (fetch_register, store_register): Make code
15900 consistent, fix formatting.
15901
7325beb4
MR
159022011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15903
15904 * linux-low.c (usr_store_inferior_registers): Factor out code
15905 to handle individual registers into...
15906 (store_register): ... this new function.
15907
c642a434
UW
159082011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15909
15910 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15911 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15912 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15913 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15914 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15915 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15916 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15917 (srv_xmlfiles): Add new XML files.
15918
15919 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15920 and <sys/uio.h>.
15921 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15922 (init_registers_s390_linux32v1): Add prototype.
15923 (init_registers_s390_linux32v2): Likewise.
15924 (init_registers_s390_linux64v1): Likewise.
15925 (init_registers_s390_linux64v2): Likewise.
15926 (init_registers_s390x_linux64v1): Likewise.
15927 (init_registers_s390x_linux64v2): Likewise.
15928 (s390_num_regs): Increment to 52.
15929 (s390_regmap): Add orig_r2 register.
15930 (s390_num_regs_3264): Increment to 68.
15931 (s390_regmap_3264): Add orig_r2 register.
15932 (s390_collect_ptrace_register): Handle orig_r2 register.
15933 (s390_supply_ptrace_register): Likewise.
15934 (s390_fill_last_break): New function.
15935 (s390_store_last_break): Likewise.
15936 (s390_fill_system_call): New function.
15937 (s390_store_system_call): Likewise.
15938 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15939 register sets.
15940 (s390_check_regset): New function.
15941 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15942 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15943 Update target_regsets for available register sets.
15944
2268b414
JK
159452011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15946 Jan Kratochvil <jan.kratochvil@redhat.com>
15947
15948 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15949 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15950 New.
15951 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15952 * linux-low.h (struct process_info_private): New member r_debug.
15953 * server.c (handle_qxfer_libraries): Call
15954 the_target->qxfer_libraries_svr4.
15955 (handle_qxfer_libraries_svr4): New function.
15956 (qxfer_packets): New entry "libraries-svr4".
15957 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15958 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15959 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15960 PACKET_qXfer_libraries_svr4.
15961
d6db1fab
UW
159622011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15963
15964 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15965 PSW address/mask between 8-byte and 16-byte formats.
15966 (s390_supply_ptrace_register): Likewise.
15967 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15968 basic addressing mode bit.
15969
242f5f1c
SS
159702011-11-24 Stan Shebs <stan@codesourcery.com>
15971
15972 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15973
f196051f
SS
159742011-11-17 Stan Shebs <stan@codesourcery.com>
15975
15976 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15977 (tracing_start_time): New global.
15978 (tracing_stop_time): New global.
15979 (tracing_user_name): New global.
15980 (tracing_notes): New global.
15981 (tracing_stop_note): New global.
15982 (cmd_qtstart): Set traceframe_usage, start_time.
15983 (stop_tracing): Set stop_time.
15984 (cmd_qtstatus): Report additional status.
15985 (cmd_qtp): New function.
15986 (handle_tracepoint_query): Call it.
15987 (cmd_qtnotes): New function.
15988 (handle_tracepoint_general_set): Call it.
15989 (get_timestamp): Rename from tsv_get_timestamp.
15990
405f8e94
SS
159912011-11-14 Stan Shebs <stan@codesourcery.com>
15992 Kwok Cheung Yeung <kcy@codesourcery.com>
15993
15994 * linux-x86-low.c (small_jump_insn): New.
15995 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15996 trampoline and error message, build a trampoline and issue a small
15997 jump instruction to it.
15998 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15999 trampoline and error message.
16000 (x86_get_min_fast_tracepoint_insn_len): New.
16001 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16002 * linux-low.h (struct linux_target_ops): Add arguments to
16003 install_fast_tracepoint_jump_pad operation, add new operation.
16004 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16005 arguments.
16006 (linux_get_min_fast_tracepoint_insn_len): New function.
16007 (linux_target_op): Add new operation.
16008 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16009 (gdb_trampoline_buffer_end): Ditto.
16010 (gdb_trampoline_buffer_error): Ditto.
16011 (struct ipa_sym_addresses): Add fields for new IPA variables.
16012 (symbol_list): Add entries for new IPA variables.
16013 (struct tracepoint): Add fields to hold the address range of the
16014 trampoline used by the tracepoint.
16015 (trampoline_buffer_head): New static variable.
16016 (trampoline_buffer_tail): Ditto.
16017 (claim_trampoline_space): New function.
16018 (have_fast_tracepoint_trampoline_buffer): New function.
16019 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16020 structure.
16021 (install_fast_tracepoint): Ditto, also add error buffer argument.
16022 (cmd_qtminftpilen): New function.
16023 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16024 (fast_tracepoint_from_trampoline_address): New function.
16025 (fast_tracepoint_collecting): Handle trampoline as part of jump
16026 pad space.
16027 (set_trampoline_buffer_space): New function.
16028 (initialize_tracepoint): Initialize new IPA variables.
16029 * target.h (struct target_ops): Add arguments to
16030 install_fast_tracepoint_jump_pad operation, add new
16031 get_min_fast_tracepoint_insn_len operation.
16032 (target_get_min_fast_tracepoint_insn_len): New.
16033 (install_fast_tracepoint_jump_pad): Add arguments.
16034 * server.h (IPA_BUFSIZ): Define.
16035 * linux-i386-ipa.c: Include extra header files.
16036 (initialize_fast_tracepoint_trampoline_buffer): New function.
16037 (initialize_low_tracepoint): Call it.
16038 * server.h (set_trampoline_buffer_space): Declare.
16039 (claim_trampoline_space): Ditto.
16040 (have_fast_tracepoint_trampoline_buffer): Ditto.
16041
1e4d1764
YQ
160422011-11-14 Yao Qi <yao@codesourcery.com>
16043
16044 * server.c (handle_query): Handle InstallInTrace for qSupported.
16045 * tracepoint.c (add_tracepoint): Sort list.
16046 (install_tracepoint, download_tracepoint): New.
16047 (cmd_qtdp): Call them to install and download tracepoints.
16048 (sort_tracepoints): Removed.
16049 (cmd_qtstart): Update.
16050
5c73ff4e
YQ
160512011-11-14 Yao Qi <yao@codesourcery.com>
16052
16053 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16054 * mem-break.h: Declare.
16055 * tracepoint.c (cmd_qtstart): Move some code to ...
16056 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16057 New.
16058 (download_tracepoints): Move some code to ...
16059 (download_tracepoint_1): ... here. New.
16060
86a30030
YQ
160612011-11-08 Yao Qi <yao@codesourcery.com>
16062
16063 * remote-utils.c (relocate_instruction): A comment fix.
16064
8d26e50c
JB
160652011-11-07 Joel Brobecker <brobecker@adacore.com>
16066
16067 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16068 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16069 dr_status_mirror and dr_control_mirror from debug_reg_state.
16070 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16071 (i386_initial_stuff): Remove use of deleted globals.
16072 (i386_get_thread_context, i386_set_thread_context,
16073 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16074 from debug_reg_state.
16075
a59306a3
YQ
160762011-11-05 Yao Qi <yao@codesourcery.com>
16077
16078 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16079 address as TPOINT's.
16080
3065dfb6
SS
160812011-11-02 Stan Shebs <stan@codesourcery.com>
16082
16083 * tracepoint.c (agent_mem_read_string): New function.
16084 (eval_agent_expr): Call it for tracenz.
16085 * server.c (handle_query): Report support for tracenz.
16086
fd0d8c7c
YQ
160872011-11-02 Yao Qi <yao@codesourcery.com>
16088
16089 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16090
609086b1
YQ
160912011-11-02 Yao Qi <yao@codesourcery.com>
16092
16093 * target.h: Fix a typo in comment.
16094
b9fd1791
PA
160952011-10-31 Pedro Alves <pedro@codesourcery.com>
16096
16097 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16098 clobber the breakpoints' shadows with fast tracepoint jumps.
16099 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16100 * target.c (write_inferior_memory): Also pass MYADDR down to
16101 check_mem_write.
16102
03583c20
UW
161032011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16104
16105 * configure.ac: Check support for personality routine.
16106 * configure: Regenerate.
16107 * config.in: Likewise.
16108 * linux-low.c: Include <sys/personality.h>.
16109 Define ADDR_NO_RANDOMIZE if necessary.
16110 (linux_create_inferior): Disable address space randomization when
16111 forking inferior, if requested.
16112 (linux_supports_disable_randomization): New function.
16113 (linux_target_ops): Install it.
16114 * server.h (disable_randomization): Declare.
16115 * server.c (disable_randomization): New global variable.
16116 (handle_general_set): Handle QDisableRandomization.
16117 (handle_query): Likewise for qSupported.
16118 (main): Support --disable-randomization and --no-disable-randomization
16119 command line arguments.
16120 * target.h (struct target_ops): Add supports_disable_randomization.
16121 (target_supports_disable_randomization): New macro.
16122
723b724b
MF
161232011-09-29 Mike Frysinger <vapier@gentoo.org>
16124
16125 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16126 ifdef check.
16127 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16128 [!PT_GETDSBT] (target_loadmap): New definition.
16129 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16130 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16131 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16132 and PT_GETDSBT to LINUX_LOADMAP.
16133 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16134 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16135
55329a5c 161362011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16137
16138 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16139 (arm_linux_hwbp_cap): New static variable.
16140 (arm_linux_get_hwbp_cap): Replace by ...
16141 (arm_linux_init_hwbp_cap): ... this new function.
16142 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16143 (arm_linux_get_hw_watchpoint_count): Likewise.
16144 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16145 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16146 (arm_prepare_to_resume): Use perror_with_name instead of error.
16147
55329a5c 161482011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16149
16150 * linux-arm-low.c: Include <signal.h>.
16151 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16152 (struct arm_linux_hwbp_cap): New data type.
16153 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16154 (struct arm_linux_hw_breakpoint): New data type.
16155 (MAX_BPTS, MAX_WPTS): Define.
16156 (struct arch_process_info, struct arch_lwp_info): New data types.
16157 (arm_linux_get_hwbp_cap): New function.
16158 (arm_linux_get_hw_breakpoint_count): Likewise.
16159 (arm_linux_get_hw_watchpoint_count): Likewise.
16160 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16161 (arm_hwbp_control_initialize): Likewise.
16162 (arm_hwbp_control_is_enabled): Likewise.
16163 (arm_hwbp_control_is_initialized): Likewise.
16164 (arm_hwbp_control_disable): Likewise.
16165 (arm_linux_hw_breakpoint_equal): Likewise.
16166 (arm_linux_hw_point_initialize): Likewise.
16167 (struct update_registers_data): New data structure.
16168 (update_registers_callback: New function.
16169 (arm_insert_point): Likewise.
16170 (arm_remove_point): Likewise.
16171 (arm_stopped_by_watchpoint): Likewise.
16172 (arm_stopped_data_address): Likewise.
16173 (arm_new_process): Likewise.
16174 (arm_new_thread): Likewise.
16175 (arm_prepare_to_resume): Likewise.
16176 (the_low_target): Register arm_insert_point, arm_remove_point,
16177 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16178 arm_new_thread, and arm_prepare_to_resume.
16179
6b9801d4
SS
161802011-09-15 Stan Shebs <stan@codesourcery.com>
16181
16182 * server.h (struct emit_ops): Add compare-goto fields.
16183 * tracepoint.c (gdb_agent_op_sizes): New table.
16184 (emit_eq_goto): New function.
16185 (emit_ne_goto): New function.
16186 (emit_lt_goto): New function.
16187 (emit_le_goto): New function.
16188 (emit_gt_goto): New function.
16189 (emit_ge_goto): New function.
16190 (is_goto_target): New function.
16191 (compile_bytecodes): Recognize special cases of compare-goto
16192 combinations and call specialized emitters for them.
16193 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16194 (amd64_emit_ne_goto): New function.
16195 (amd64_emit_lt_goto): New function.
16196 (amd64_emit_le_goto): New function.
16197 (amd64_emit_gt_goto): New function.
16198 (amd64_emit_ge_goto): New function.
16199 (amd64_emit_ops): Add the new functions.
16200 (i386_emit_eq_goto): New function.
16201 (i386_emit_ne_goto): New function.
16202 (i386_emit_lt_goto): New function.
16203 (i386_emit_le_goto): New function.
16204 (i386_emit_gt_goto): New function.
16205 (i386_emit_ge_goto): New function.
16206 (i386_emit_ops): Add the new functions.
16207
bf15cbda
SS
162082011-09-08 Stan Shebs <stan@codesourcery.com>
16209
16210 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16211 (i386_emit_epilogue): Restore %ebx.
16212
943ca1dd
JZ
162132011-08-31 Jie Zhang <jzhang918@gmail.com>
16214
16215 * server.c (step_thread): Remove definition.
16216 (process_serial_event): Don't handle Hs.
16217 * server.h (step_thread): Remove declaration.
16218 * target.c (set_desired_inferior): Remove use of step_thread.
16219
e3deef73
LM
162202011-08-24 Luis Machado <lgustavo@codesourcery.com>
16221
16222 * linux-low.c: Include linux-procfs.h.
16223 (linux_attach_lwp_1): Update comments.
16224 (linux_attach): Scan for existing threads when attaching to a
16225 process that is the tgid.
16226 * Makefile.in: Update dependencies.
16227
13da1c97
LM
162282011-08-24 Luis Machado <lgustavo@codesourcery.com>
16229
16230 * configure.srv: Add linux-procfs.o dependencies.
16231
881127c9
YQ
162322011-08-14 Yao Qi <yao@codesourcery.com>
16233
16234 * target.h (struct target_ops): Fix indent.
16235 * win32-low.c (win32_target_ops): Fix comment.
16236
58dbd541
YQ
162372011-08-14 Andrew Jenner <andrew@codesourcery.com>
16238 Yao Qi <yao@codesourcery.com>
16239
16240 * Makefile.in (clean): Remove tic6x-*.c files.
16241 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16242 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16243 (tic6x-c64xp-linux.c): Likewise.
16244 * configure.srv: Add support for tic6x-*-uclinux.
16245 * linux-tic6x-low.c: New.
16246 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16247
78d85199
YQ
162482011-08-14 Andrew Stubbs <ams@codesourcery.com>
16249 Yao Qi <yao@codesourcery.com>
16250
16251 * target.h (struct target_ops): Add read_loadmap.
16252 * linux-low.c (struct target_loadseg): New type.
16253 (struct target_loadmap): New type.
16254 (linux_read_loadmap): New function.
16255 (linux_target_ops): Add linux_read_loadmap.
16256 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16257 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16258 to NULL.
78d85199 16259
a959a88d
EZ
162602011-08-05 Eli Zaretskii <eliz@gnu.org>
16261
16262 * win32-low.c: Include <stdint.h>.
16263
1ced966e
PA
162642011-07-22 Pedro Alves <pedro@codesourcery.com>
16265
16266 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16267 to the inferior here.
16268 (i386_remove_aligned_watchpoint): Ditto.
16269 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16270 fit part of the watchpoint in the debug registers.
16271 (i386_update_inferior_debug_regs): New.
16272 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16273 registers, and only update the inferior on success.
16274 (i386_low_remove_watchpoint): Ditto.
16275
d26e3629
KY
162762011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16277
16278 * linux-low.c (compare_ints, unique, list_threads, show_process,
16279 linux_core_of_thread): Delete.
16280 (linux_target_ops): Change linux_core_of_thread to
16281 linux_common_core_of_thread.
16282 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16283 * utils.c (malloc_failure): Change type of argument.
16284 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16285 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16286 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16287 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16288 (IPA_OBJS): Add common-utils-ipa.o.
16289 (ptid_h, linux_osdata_h): New macros.
16290 (server_h): Add common/common-utils.h, common/xml-utils.h,
16291 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16292 common/ptid.h.
16293 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16294 ptid.o, buffer.o): New rules.
16295 (linux-low.o): Add common/linux-osdata.h as a dependency.
16296 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16297 * configure.ac: Add AC_HEADER_DIRENT check.
16298 * config.in: Regenerate.
16299 * configure: Regenerate.
16300 * remote-utils.c (xml_escape_text): Delete.
16301 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16302 buffer_xml_printf): Move to common/buffer.c.
16303 * server.c (main): Remove call to initialize_inferiors.
16304 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16305 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16306 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16307 internal_error, gdb_assert, gdb_assert_fail): Delete.
16308 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16309 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16310 common/buffer.h.
16311 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16312 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16313 initialize_inferiors): Delete.
16314
2275a1a7
PA
163152011-07-20 Pedro Alves <pedro@codesourcery.com>
16316
16317 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16318 symbol error.
16319
0a5b1e09
PA
163202011-05-31 Pedro Alves <pedro@codesourcery.com>
16321
16322 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16323 assertion.
16324 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16325
6938fd34
YQ
163262011-05-26 Yao Qi <yao@codesourcery.com>
16327
16328 * Makefile.in (thread-db.o): Track dependence to
16329 common/gdb_thread_db.h.
16330 * thread-db.c: include gdb_thread_db.h from right place.
16331
b481f9e0
TT
163322011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16333
16334 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16335 __FILE__ and __LINE__ to internal_error.
16336
98a5dd13
DE
163372011-05-13 Doug Evans <dje@google.com>
16338
16339 * thread-db.c (try_thread_db_load_from_sdir): New function.
16340 (try_thread_db_load_from_dir): New function.
16341 (thread_db_load_search): Handle $sdir, ignore $pdir.
16342 Remove trying of system directories if search of
16343 libthread-db-search-path fails, that is now done via $sdir.
16344
d248b706
KY
163452011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16346
16347 * server.c (handle_query): Add EnableDisableTracepoints to the list
16348 of supported features.
43aaf8b6 16349 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16350 tracepoints.
43aaf8b6
PA
16351 (cmd_qtenable_disable): New.
16352 (cmd_qtstart): Install tracepoints even if disabled.
16353 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16354 receiving a QTEnable or QTDisable packet.
16355 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16356 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16357 tracepoints.
16358 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16359
84e578fb
DE
163602011-05-10 Doug Evans <dje@google.com>
16361
16362 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16363
71f55dd8
DE
163642011-05-04 Doug Evans <dje@google.com>
16365
16366 * linux-low.c (linux_join): Skip process lookup.
16367 * spu-low.c (spu_join): Ditto.
16368 * server.c (join_inferiors_callback): Delete.
16369 (process_serial_event): For 'D' packet (detach) call join_inferior
16370 directly.
16371
4d393d60
JM
163722011-05-04 Joseph Myers <joseph@codesourcery.com>
16373
16374 * README: Don't mention xscale*-*-linux*.
16375 * configure.srv (xscale*-*-linux*): Don't handle target.
16376
b00ad6ff
NF
163772011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16378
16379 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16380 casting pointers.
16381 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16382 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16383 (i386_emit_void_call_2): Likewise.
16384
af96c192
YQ
163852011-04-26 Yao Qi <yao@codesourcery.com>
16386
43aaf8b6
PA
16387 * linux-low.c: Move common macros to linux-ptrace.h.
16388 Include linux-ptrace.h.
af96c192
YQ
16389 * Makefile.in (linux_ptrace_h): New.
16390 (linux-low.o): Depends on linux-ptrace.h.
16391
03f2bd59
JK
163922011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16393
16394 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16395 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16396 (remote_prepare): New function with most of the TCP code from ...
16397 (remote_open): ... here. Detect PORT here unconditionally. Move also
16398 setting transport_is_reliable.
16399 * server.c (run_once): New variable.
16400 (gdbserver_usage): Document it.
16401 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16402 the first run if RUN_ONCE.
16403 * server.h (run_once, remote_prepare): New declarations.
16404
7a9dd1b2
TT
164052011-04-19 Tom Tromey <tromey@redhat.com>
16406
16407 * win32-low.c (handle_load_dll): Remove duplicate "the".
16408
81239425
PM
164092011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16410
16411 Remove support for old Cygwin 1.5 versions.
16412 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16413 function to avoid warning.
16414 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16415 warning.
16416
9e0627f1
PM
164172011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16418
16419 * gdbserver/server.h (Macro _): Define it if not available.
16420
588eebee
MS
164212011-03-14 Michael Snyder <msnyder@vmware.com>
16422
348af9f7 16423 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16424
43f70d4c
JB
164252011-03-10 Joel Brobecker <brobecker@adacore.com>
16426
16427 * Makefile.in (maintainer-clean realclean distclean): Remove
16428 "make ... subdir_do" command.
16429
348af9f7
MS
164302011-03-10 Michael Snyder <msnyder@vmware.com>
16431
16432 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16433
16434 * server.c (handle_v_run): Free alloced buffer on early return.
16435
e637a4f5
YQ
164362011-03-09 Yao Qi <yao@codesourcery.com>
16437
16438 Revert:
16439 2011-03-04 Yao Qi <yao@codesourcery.com>
16440
16441 * Makefile.in: Remove GNU make feature --directory.
16442
16443 2011-03-05 Yao Qi <yao@codesourcery.com>
16444
16445 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16446 (subdir_do): New make target. Copied from gdb/Makefile.
16447 (maintainer-clean, realclean, distclean, clean): Call corresponding
16448 make targets in common/Makefile.
16449
16450 2011-02-11 Yao Qi <yao@codesourcery.com>
16451
16452 * configure.ac: Call AC_PROG_RANLIB.
16453 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16454 * configure: Regenerate.
16455
e6edda56
JK
164562011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16457
16458 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16459
e5141119
JB
164602011-03-06 Yao Qi <yao@codesourcery.com>
16461
16462 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16463
64794aa4
JB
164642011-03-05 Yao Qi <yao@codesourcery.com>
16465
16466 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16467 (subdir_do): New make target. Copied from gdb/Makefile.
16468 (maintainer-clean, realclean, distclean, clean): Call corresponding
16469 make targets in common/Makefile.
16470
7a762829
YQ
164712011-03-04 Yao Qi <yao@codesourcery.com>
16472
16473 * Makefile.in: Remove GNU make feature --directory.
16474
348af9f7
MS
164752011-03-04 Michael Snyder <msnyder@vmware.com>
16476
16477 * server.c (queue_stop_reply): Call xmalloc not malloc.
16478
164792011-03-02 Michael Snyder <msnyder@vmware.com>
16480
16481 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16482
9f72fee2
MS
164832011-02-28 Michael Snyder <msnyder@vmware.com>
16484
588eebee
MS
16485 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16486 (cmd_qtframe): Ditto.
16487 (cmd_qtbuffer): Ditto.
16488 (cmd_bigqtbuffer): Ditto.
16489
9f72fee2
MS
16490 * utils.c (decimal2str): Initialize 'width' to nine, then
16491 don't mess with it.
16492
8040bd49
UW
164932011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16494
16495 * hostio.c (require_data): Free *data, not data.
16496
7e52cbd0
JK
164972011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16498
16499 * hostio.c (require_data): Use free, not xfree.
16500
9130f83e
MS
165012011-02-27 Michael Snyder <msnyder@vmware.com>
16502
4b812f4e
MS
16503 * server.c (handle_query): Discard unused value.
16504
9130f83e
MS
16505 * hostio.c (require_data): Free malloc memory before returning
16506 error.
16507
69d37113
MS
165082011-02-26 Michael Snyder <msnyder@vmware.com>
16509
16510 * linux-low.c (list_threads): Call closedir for dirent.
16511
35f5825a
MS
165122011-02-27 Michael Snyder <msnyder@vmware.com>
16513
2a589cef
MS
16514 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16515 a case statement falls through.
16516
0adea5f7
MS
16517 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16518
35f5825a
MS
16519 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16520 in comparison.
16521
238f1c74
MS
165222011-02-26 Michael Snyder <msnyder@vmware.com>
16523
16524 * utils.c (decimal2str): Eliminate dead code and dead param.
16525 (pulongest): Drop dead param from call to decimal2str.
16526 (plongest): Ditto.
16527
633ff500
JB
165282011-02-24 Joel Brobecker <brobecker@adacore.com>
16529
16530 Revert the following patch (not approved yet):
16531 2011-02-21 Hui Zhu <teawater@gmail.com>
16532 * tracepoint.c (tp_printf): New function.
16533 (eval_agent_expr): Handle gdb_agent_op_printf.
16534
f9c6ff72
HZ
165352011-02-21 Hui Zhu <teawater@gmail.com>
16536
16537 * tracepoint.c (tp_printf): New function.
16538 (eval_agent_expr): Handle gdb_agent_op_printf.
16539
94d5e490
TT
165402011-02-18 Tom Tromey <tromey@redhat.com>
16541
16542 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16543 (tracepoint.o): Likewise.
16544 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16545 (gdb_agent_op_names): Likewise.
16546
c7f96d2b
TT
165472011-02-18 Tom Tromey <tromey@redhat.com>
16548
16549 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16550 gdb_agent_op_rot>: New constants.
16551 (gdb_agent_op_names): Add pick and roll.
16552 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16553 cases.
16554
0feedb2c
JK
165552011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16556
16557 * aclocal.m4: Regenerated with aclocal-1.11.1.
16558
b3b9301e
PA
165592011-02-14 Pedro Alves <pedro@codesourcery.com>
16560
16561 * server.c (handle_qxfer_traceframe_info): New.
16562 (qxfer_packets): Register "traceframe-info".
16563 (handle_query): Report support for qXfer:traceframe-info:read+.
16564 * tracepoint.c (match_blocktype): New.
16565 (traceframe_find_block_type): Rename to ...
16566 (traceframe_walk_blocks): ... this. Add callback filter argument,
16567 and use it.
16568 (traceframe_find_block_type): New, reimplemented on top of
16569 traceframe_walk_blocks.
16570 (build_traceframe_info_xml): New.
16571 (traceframe_read_info): New.
16572 * server.h (traceframe_read_info): Declare.
16573
4f3e6fb7
YQ
165742011-02-11 Yao Qi <yao@codesourcery.com>
16575
16576 * configure.ac: Call AC_PROG_RANLIB.
16577 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16578 * configure: Regenerate.
16579
764880b7
PA
165802011-02-07 Pedro Alves <pedro@codesourcery.com>
16581
16582 * server.c (gdb_read_memory): Change return semantics to allow
16583 partial transfers.
16584 (handle_search_memory_1): Adjust.
16585 (process_serial_event) <'m' packet>: Handle partial transfers.
16586 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16587
1c79eb8a
PA
165882011-01-28 Pedro Alves <pedro@codesourcery.com>
16589
16590 * regcache.c (init_register_cache): Initialize
16591 regcache->register_status.
16592 (free_register_cache): Release regcache->register_status.
16593 (regcache_cpy): Copy register_status.
16594 (registers_to_string): Print 'x's for unavailable registers.
16595 (supply_register): Mark the register's status valid or
16596 unavailable, depending on whether a buffer was passed in or not.
16597 (supply_register_zeroed): New.
16598 (supply_regblock): Mark the registers' status valid or
16599 unavailable, depending on whether a buffer was passed in or not.
16600 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16601 (struct regcache): New `register_status' field.
16602 (supply_register_zeroed): Declare.
16603 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16604 supply_register_zeroed, rather than passing a NULL buffer to
16605 supply_register.
16606 * tracepoint.c (fetch_traceframe_registers): Update comment.
16607
85724a0e
PA
166082011-01-28 Pedro Alves <pedro@codesourcery.com>
16609
16610 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16611 buffer explicit.
16612
d08aafef
PA
166132011-01-25 Pedro Alves <pedro@codesourcery.com>
16614
16615 * server.h (decode_xfer_write): Change prototype.
16616 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16617 and don't extract the annex here.
16618 * server.c (decode_xfer_read): Remove `annex' parameter,
16619 and don't extract the annex here.
16620 (decode_xfer): New.
16621 (struct qxfer): New.
16622 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16623 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16624 (handle_qxfer_statictrace): New functions, abstracted out from
16625 handle_query, and made to use the struct qxfer interface.
16626 (handle_threads_qxfer_proper): Rename to ...
16627 (handle_qxfer_threads_proper): ... this.
16628 (handle_threads_qxfer): Rename to ...
16629 (handle_qxfer_threads): ... this. Adjust.
16630 (qxfer_packets): New array.
16631 (handle_qxfer): New function.
16632 (handle_query): Use handle_qxfer.
16633
493e2a69
MS
166342011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16635
16636 * gdbreplay.c: Shorten lines of >= 80 columns.
16637 * linux-low.c: Ditto.
16638 * linux-ppc-low.c: Ditto.
16639 * linux-s390-low.c: Ditto.
16640 * linux-sparc-low.c: Ditto.
16641 * linux-x86-low.c: Ditto.
16642 * linux-xtensa-low.c: Ditto.
16643 * mem-break.c: Ditto.
16644 * nto-low.c: Ditto.
16645 * regcache.h: Ditto.
16646 * remote-utils.c: Ditto.
16647 * server.c: Ditto.
16648 * server.h: Ditto.
16649 * thread-db.c: Ditto.
16650 * tracepoint.c: Ditto.
16651 * utils.c: Ditto.
16652 * win32-low.h: Ditto.
16653
44944448
JB
166542011-01-05 Joel Brobecker <brobecker@adacore.com>
16655
16656 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16657 update.
16658
71ce852c
JB
166592011-01-01 Joel Brobecker <brobecker@adacore.com>
16660
16661 * server.c (gdbserver_version): Update copyright year in version
16662 output.
16663 * gdbreplay.c (gdbreplay_version): Ditto.
16664
eb826dc6
MF
166652010-12-29 Jie Zhang <jie.zhang@analog.com>
16666
16667 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16668 * linux-bfin-low.c: New file.
16669 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16670 PT_DATA_ADDR for BFIN targets.
16671 * Makefile.in (SFILES): Add linux-bfin-low.c.
16672 (clean): Remove reg-bfin.c.
16673 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16674 * README: Mention supported Blackfin targets.
16675
39ab222a
MF
166762010-12-23 Mike Frysinger <vapier@gentoo.org>
16677
16678 * .gitignore: New file.
16679
a1f2ce7d
MF
166802010-11-16 Mike Frysinger <vapier@gentoo.org>
16681
16682 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16683
f474844c
JZ
166842010-10-22 Jie Zhang <jie@codesourcery.com>
16685
16686 * Makefile.in: Add FLAGS_TO_PASS variable.
16687 (install): Remove dependency of install-only and recursively
16688 invoke make for install-only.
16689
f1048712
DE
166902010-10-04 Doug Evans <dje@google.com>
16691
16692 * Makefile.in (uninstall): Use $(DESTDIR).
16693
b53a1623
PA
166942010-09-24 Pedro Alves <pedro@codesourcery.com>
16695
e6ee044d
PA
16696 PR gdb/11842
16697
b53a1623
PA
16698 * linux-x86-low.c (compat_siginfo_from_siginfo)
16699 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16700 si_code is < 0. Check for si_code == SI_TIMER before checking for
16701 si_code < 0.
16702
fa1bd1e4
JB
167032010-09-13 Joel Brobecker <brobecker@adacore.com>
16704
16705 * lynx-i386-low.c: New file.
16706 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16707
47fac8f8
JB
167082010-09-13 Joel Brobecker <brobecker@adacore.com>
16709
16710 * lynx-low.c (ptrace_request_to_str): Remove handling for
16711 request values that have been removed in LynxOS 5.x.
16712
1adfc54d
JB
167132010-09-13 Joel Brobecker <brobecker@adacore.com>
16714
16715 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16716 <ptrace.h>
16717
c2a66c29
NS
167182010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16719
16720 * configure.ac: Add --enable-inprocess-agent option.
16721 * configure: Rebuilt.
16722
32fcada3
YQ
167232010-09-06 Yao Qi <yao@codesourcery.com>
16724
16725 * linux-low.c (linux_kill): Remove unused variable.
16726 (linux_stabilize_threads): Likewise.
16727 * server.c (start_inferior): Likewise.
16728 (queue_stop_reply_callback): Likewise.
16729 * tracepoint.c (do_action_at_tracepoint): Likewise.
16730
0cccb683
YQ
167312010-09-06 Yao Qi <yao@codesourcery.com>
16732
16733 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16734 on return.
16735
423ec54c
JK
167362010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16737
16738 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16739
12ac6819
PA
167402010-09-06 Pedro Alves <pedro@codesourcery.com>
16741
16742 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16743 "$(IPA_DEPFILES)".
16744
8ed54b31
JB
167452010-09-01 Joel Brobecker <brobecker@adacore.com>
16746
16747 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16748 gdbserver/lynx-ppc-low.c: New files.
16749 * Makefile.in (lynx_low_h): New variable.
16750 (lynx-low.o, lynx-ppc-low.o): New rules.
16751 * configure.ac: On LynxOS, link with -lnetinet.
16752 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16753 * configure: regenerate.
16754
bb0116a4
JB
167552010-09-01 Joel Brobecker <brobecker@adacore.com>
16756
16757 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16758 * configure.ac: Add check for vasprintf and vsnprintf.
16759 * configure, config.in: Regenerate.
16760 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16761
a778ab81 167622010-09-01 Joel Brobecker <brobecker@adacore.com>
16763
16764 * gdbreplay.c: Move include of alloca.h up, next to include of
16765 malloc.h.
16766 * server.h: Add include of malloc.h.
16767 * mem-break.c: Remove include of malloc.h.
16768 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16769
8b034a19 167702010-09-01 Joel Brobecker <brobecker@adacore.com>
16771
16772 * Makefile.in (memmem.o): Build with -Wno-error.
16773
167742010-09-01 Joel Brobecker <brobecker@adacore.com>
16775
16776 * utils.c (xsnprintf): Make non-static.
16777 * server.h: Add xsnprintf declaration.
16778 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16779 replace calls to snprintf by calls to xsnprintf throughout.
16780
167812010-09-01 Joel Brobecker <brobecker@adacore.com>
16782
16783 * configure.ac: Add configure check for alloca.
16784 * configure, config.in: Regenerate.
16785 * server.h: Include alloca.h if it exists.
16786 * gdbreplay.c: Include alloca.h if it exists.
16787
1a981360
PA
167882010-08-28 Pedro Alves <pedro@codesourcery.com>
16789
16790 * linux-low.c (__SIGRTMIN): Define if not already defined.
16791 (linux_create_inferior): Check for __ANDROID__ rather than
16792 __SIGRTMIN.
16793 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16794 are already deferred.
16795 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16796 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16797 stopped and already has a pending signal to report.
16798 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16799 a pending signal to report or is moving out of a jump pad.
16800 (linux_init_signals): Check for __ANDROID__ rather than
16801 __SIGRTMIN.
16802
b4d51a55
PA
168032010-08-28 Pedro Alves <pedro@codesourcery.com>
16804
16805 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16806 debug_threads check. Avoid a linear search when not doing debug
16807 output.
16808
ec48365d
PA
168092010-08-27 Pedro Alves <pedro@codesourcery.com>
16810
16811 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16812 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16813 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16814 (process_event): Change local fd's type to gdb_fildes_t.
16815 (create_file_handler): Adjust prototype.
16816 (delete_file_handler): Adjust prototype.
16817 (handle_file_event): Adjust prototype. Use pfildes.
16818 (create_file_event): Adjsut prototype.
16819 * remote-utils.c (remote_desc, listen_desc): Change type to
16820 gdb_fildes_t.
16821 * server.h: New gdb_fildes_t typedef.
16822 [USE_WIN32API]: Include winsock2.h.
16823 (delete_file_handler, add_file_handler): Adjust prototypes.
16824 (pfildes): Declare.
16825 * utils.c (pfildes): New.
16826
854d88f0
PA
168272010-08-27 Pedro Alves <pedro@codesourcery.com>
16828
16829 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16830 * configure: Regenerate.
16831
0146f85b
PA
168322010-08-27 Pedro Alves <pedro@codesourcery.com>
16833
16834 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16835 (linux_done_accessing_memory): ... this.
16836 (linux_target_ops): Adjust.
16837 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16838 * nto-low.c (nto_target_ops): Adjust comment.
16839 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16840 * spu-low.c (spu_target_ops): Adjust comment.
16841 * target.h (target_ops): Rename unprepare_to_access_memory field
16842 to done_accessing_memory.
16843 (unprepare_to_access_memory): Rename to ...
16844 (done_accessing_memory): ... this.
16845
90d74c30
PA
168462010-08-26 Pedro Alves <pedro@codesourcery.com>
16847
16848 * linux-low.c (linux_prepare_to_access_memory): New.
16849 (linux_unprepare_to_access_memory): New.
16850 (linux_target_ops): Install them.
16851 * server.c (read_memory): Rename to ...
16852 (gdb_read_memory): ... this. Use
16853 prepare_to_access_memory/prepare_to_access_memory.
16854 (write_memory): Rename to ...
16855 (gdb_write_memory): ... this. Use
16856 prepare_to_access_memory/prepare_to_access_memory.
16857 (handle_search_memory_1): Adjust.
16858 (process_serial_event): Adjust.
16859 * target.h (struct target_ops): New fields
16860 prepare_to_access_memory and unprepare_to_access_memory.
16861 (prepare_to_access_memory, unprepare_to_access_memory): New.
16862 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16863 prepare_to_access_memory/prepare_to_access_memory.
16864 * nto-low.c (nto_target_ops): Adjust.
16865 * spu-low.c (spu_target_ops): Adjust.
16866 * win32-low.c (win32_target_ops): Adjust.
16867
fd467969
PA
168682010-08-26 Pedro Alves <pedro@codesourcery.com>
16869
16870 * Makefile.in (WARN_CFLAGS): Get it from configure.
16871 (WERROR_CFLAGS): New.
16872 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16873 * configure.ac: Introduce --enable-werror, which adds -Werror to
16874 the compiler command line. Enabled by default. Disable with
16875 --disable-werror. Add -Wdeclaration-after-statement
16876 Wpointer-arith and -Wformat-nonliteral to warning flags.
16877 * configure: Regenerate.
16878
331e2f5f
PA
168792010-08-26 Pedro Alves <pedro@codesourcery.com>
16880
16881 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16882
e581f2b4
PA
168832010-08-26 Pedro Alves <pedro@codesourcery.com>
16884
16885 * gdbreplay.c (remote_error): New.
16886 (gdbchar): New.
16887 (expect): Use gdbchar. Check for error reading from GDB.
16888 Clarify sync error output.
16889 (play): Check for errors writing to GDB.
16890 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16891 * remote-utils.c (getpkt): Check for errors writing to the remote
16892 descriptor.
16893
3c11dd79
PA
168942010-08-25 Pedro Alves <pedro@codesourcery.com>
16895
16896 * linux-low.c (linux_wait_1): Move non-debugging code out of
16897 `debug_threads' control.
16898
d20a8ad9
PA
168992010-08-25 Pedro Alves <pedro@codesourcery.com>
16900
16901 * linux-low.c (linux_wait_1): Don't set last_status here.
16902 * server.c (push_event, queue_stop_reply_callback): Assert we're
16903 not pushing a TARGET_WAITKIND_IGNORE event.
16904 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16905 (myresume, handle_target_event): Set the thread's last_resume_kind
16906 and last_status from the target returned status.
16907
964e4306
PA
169082010-08-25 Pedro Alves <pedro@codesourcery.com>
16909
16910 PR threads/10729
16911
16912 * linux-x86-low.c (update_debug_registers_callback): New.
16913 (i386_dr_low_set_addr): Use it.
16914 (i386_dr_low_get_addr): New.
16915 (i386_dr_low_set_control): Use update_debug_registers_callback.
16916 (i386_dr_low_get_control): New.
16917 (i386_dr_low_get_status): Adjust.
16918 * linux-low.c (linux_stop_lwp): New.
16919 * linux-low.h (linux_stop_lwp): Declare.
16920
16921 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16922 argument instead of a i386_debug_reg_state.
16923 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16924 a i386_debug_reg_state.
16925 (i386_insert_aligned_watchpoint): Adjust.
16926 (i386_remove_aligned_watchpoint): Adjust.
16927 (i386_low_stopped_data_address): Read the debug registers from the
16928 inferior instead of from the mirrors.
16929 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16930 (i386_dr_low_get_addr): Declare.
16931 (i386_dr_low_get_control): Declare.
16932 (i386_dr_low_get_status): Change prototype.
16933
16934 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16935 (i386_dr_low_get_addr): New.
16936 (i386_dr_low_get_control): New.
16937 (i386_dr_low_get_status): Adjust prototype. Return
16938 dr_status_mirror.
16939 (i386_initial_stuff): Clear dr_status_mirror and
16940 dr_control_mirror.
16941 (i386_get_thread_context): Adjust.
16942 (i386_set_thread_context): Adjust.
16943 (i386_thread_added): Adjust.
16944
5f21a75b
PA
169452010-08-24 Pedro Alves <pedro@codesourcery.com>
16946
16947 * linux-low.h (linux_thread_area): Delete declaration.
16948
3e4c1235
TS
169492010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16950
16951 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16952 after its termination.
16953
1971b033
PA
169542010-08-09 Pedro Alves <pedro@codesourcery.com>
16955
16956 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16957 (gdb_wants_all_stopped): Delete.
16958 (linux_wait_1): Don't call them.
16959 * server.c (handle_v_cont): Tag all threads as want-stopped.
16960 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16961 stopped as "client-wants-stopped".
16962
310444ac
PA
169632010-07-31 Pedro Alves <pedro@codesourcery.com>
16964
16965 * Makefile.in (signals_h): New.
16966 (server_h): Depend on it.
16967 (server.o): Don't depend on $(signals_def).
16968 (signals.o): Depend on $(signals_def).
16969
a19cae16
JK
169702010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16971
16972 * Makefile.in (signals_def): New.
16973 (server_h): Append include/gdb/signals.h and signals_def.
16974 (server.o): Append signals_def.
16975
30d50328
JK
169762010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16977
16978 * server.c (handle_target_event): Use target_signal_to_host for
16979 resume_info.sig initialization.
16980 * target.h (struct thread_resume) <sig>: New comment.
16981
5c3216e2
OS
169822010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16983
c6f46ca0
OS
16984 * server.c (handle_query): strcpy() the returned string from paddress()
16985 instead of sprintf().
5c3216e2
OS
16986 * utils.c (paddress): Return phex_nz().
16987
6bd31874
JB
169882010-07-07 Joel Brobecker <brobecker@adacore.com>
16989
16990 * server.c (handle_v_cont): Call mourn_inferior if process
16991 just exited.
16992 (myresume): Likewise.
16993
0fb4aa4b
PA
169942010-07-01 Pedro Alves <pedro@codesourcery.com>
16995
16996 Static tracepoints, and integration with UST.
16997
16998 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16999 * mem-break.c (uninsert_all_breakpoints)
17000 (reinsert_all_breakpoints): New.
17001 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17002 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17003 (gdb_agent_ust_loaded, helper_thread_id)
17004 (gdb_agent_helper_thread_id): New macros.
17005 (struct ipa_sym_addresses): Add addr_ust_loaded,
17006 addr_helper_thread_id, addr_cmd_buf.
17007 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17008 (in_process_agent_loaded_ust): New.
17009 (write_e_ust_not_loaded): New.
17010 (maybe_write_ipa_ust_not_loaded): New.
17011 (struct collect_static_trace_data_action): New.
17012 (enum tracepoint_type) <static_tracepoint>: New.
17013 (struct tracepoint) <handle>: Mention static tracepoints.
17014 (struct static_tracepoint_ctx): New.
17015 (CMD_BUF_SIZE): New.
17016 (add_tracepoint_action): Handle static tracepoint actions.
17017 (unprobe_marker_at): New.
17018 (clear_installed_tracepoints): Handle static tracepoints.
17019 (cmd_qtdp): Handle static tracepoints.
17020 (probe_marker_at): New.
17021 (cmd_qtstart): Handle static tracepoints.
17022 (response_tracepoint): Handle static tracepoints.
17023 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17024 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17025 (get_context_regcache): Handle static tracepoints.
17026 (do_action_at_tracepoint): Handle static tracepoint actions.
17027 (traceframe_find_block_type): Handle static trace data blocks.
17028 (traceframe_read_sdata): New.
17029 (download_tracepoints): Download static tracepoint actions.
17030 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17031 (GDB_PROBE_NAME): New.
17032 (ust_ops): New.
17033 (GET_UST_SYM): New.
17034 (USTF): New.
17035 (dlsym_ust): New.
17036 (ust_marker_to_static_tracepoint): New.
17037 (gdb_probe): New.
17038 (collect_ust_data_at_tracepoint): New.
17039 (gdb_ust_probe): New.
17040 (UNIX_PATH_MAX, SOCK_DIR): New.
17041 (gdb_ust_connect_sync_socket): New.
17042 (resume_thread, stop_thread): New.
17043 (run_inferior_command): New.
17044 (init_named_socket): New.
17045 (gdb_ust_socket_init): New.
17046 (cstr_to_hexstr): New.
17047 (next_st): New.
17048 (first_marker, next_marker): New.
17049 (response_ust_marker): New.
17050 (cmd_qtfstm, cmd_qtsstm): New.
17051 (unprobe_marker_at, probe_marker_at): New.
17052 (cmd_qtstmat, gdb_ust_thread): New.
17053 (gdb_ust_init): New.
17054 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17055 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17056 (ST_REGENTRY): New.
17057 (x86_64_st_collect_regmap): New.
17058 (X86_64_NUM_ST_COLLECT_GREGS): New.
17059 (AMD64_RIP_REGNUM): New.
17060 (supply_static_tracepoint_registers): New.
17061 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17062 (ST_REGENTRY): New.
17063 (i386_st_collect_regmap): New.
17064 (i386_NUM_ST_COLLECT_GREGS): New.
17065 (supply_static_tracepoint_registers): New.
17066 * server.c (handle_query): Handle qXfer:statictrace:read.
17067 <qSupported>: Report support for StaticTracepoints, and
17068 qXfer:statictrace:read features.
17069 * server.h (traceframe_read_sdata)
17070 (supply_static_tracepoint_registers): Declare.
17071 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17072 (unpack_varlen_hex): Include in IPA build.
17073 * Makefile.in (ustlibs, ustinc): New.
17074 (IPA_OBJS): Add remote-utils-ipa.o.
17075 ($(IPA_LIB)): Link -ldl and -lpthread.
17076 (UST_CFLAGS): New.
17077 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17078 * config.in, configure: Regenerate.
17079
9e4344e5
PA
170802010-06-20 Ian Lance Taylor <iant@google.com>
17081 Pedro Alves <pedro@codesourcery.com>
17082
17083 * linux-x86-low.c (always_true): Delete.
17084 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17085 trying to fool the compiler with always_true.
17086
c6beb2cb
PA
170872010-06-20 Pedro Alves <pedro@codesourcery.com>
17088
17089 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17090 conditions in gdbserver.
17091
d2ed6730
UW
170922010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17093
17094 * spu-low.c (spu_read_memory): Wrap around local store limit.
17095 (spu_write_memory): Likewise.
17096
4e29fb54
PA
170972010-06-15 Pedro Alves <pedro@codesourcery.com>
17098
17099 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17100 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17101 LONGEST uses.
17102 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17103 uses.
17104 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17105 uses with LONGEST uses.
17106
6a271cae
PA
171072010-06-14 Stan Shebs <stan@codesourcery.com>
17108 Pedro Alves <pedro@codesourcery.com>
17109
17110 Bytecode compiler.
17111
17112 * linux-x86-low.c: Include limits.h.
17113 (add_insns): New.
17114 (always_true): New.
17115 (EMIT_ASM): New.
17116 (EMIT_ASM32): New.
17117 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17118 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17119 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17120 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17121 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17122 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17123 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17124 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17125 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17126 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17127 (amd64_emit_void_call_2): New.
17128 (amd64_emit_ops): New.
17129 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17130 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17131 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17132 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17133 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17134 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17135 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17136 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17137 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17138 (i386_emit_stack_adjust, i386_emit_int_call_1)
17139 (i386_emit_void_call_2): New.
17140 (i386_emit_ops): New.
17141 (x86_emit_ops): New.
17142 (the_low_target): Install x86_emit_ops.
17143 * server.h (struct emit_ops): New.
17144 (get_raw_reg_func_addr): Declare.
17145 (current_insn_ptr, emit_error): Declare.
17146 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17147 (set_trace_state_variable_value): New defines.
17148 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17149 addr_get_trace_state_variable_value and
17150 addr_set_trace_state_variable_value.
17151 (symbol_list): New fields for get_raw_reg,
17152 get_trace_state_variable_value and set_trace_state_variable_value.
17153 (condfn): New typedef.
17154 (struct tracepoint): New field `compiled_cond'.
17155 (do_action_at_tracepoint): Clear compiled_cond.
17156 (get_trace_state_variable_value, set_trace_state_variable_value):
17157 Export in the IPA.
17158 (condition_true_at_tracepoint): If there's a compiled condition,
17159 run that.
17160 (current_insn_ptr, emit_error): New globals.
17161 (struct bytecode_address): New.
17162 (get_raw_reg_func_addr): New.
17163 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17164 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17165 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17166 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17167 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17168 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17169 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17170 (compile_tracepoint_condition, compile_bytecodes): New.
17171 * target.h (emit_ops): Forward declare.
17172 (struct target_ops): New field emit_ops.
17173 (target_emit_ops): New.
17174 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17175 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17176 * linux-low.c (linux_emit_ops): New.
17177 (linux_target_ops): Install it.
17178 * linux-low.h (struct linux_target_ops): New field emit_ops.
17179
92b72907
UW
171802010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17181
17182 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17183 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17184
fa593d66
PA
171852010-06-01 Pedro Alves <pedro@codesourcery.com>
17186 Stan Shebs <stan@codesourcery.com>
17187
17188 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17189 (all): Depend on $(extra_libraries).
17190 (install-only): Install the IPA.
17191 (IPA_OBJS, IPA_LIB): New.
17192 (clean): Remove the IPA lib.
17193 (IPAGENT_CFLAGS): New.
17194 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17195 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17196 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17197 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17198 * configure.ac: Check for atomic builtins support in the compiler.
17199 (IPA_DEPFILES, extra_libraries): Define.
17200 * configure.srv (ipa_obj): Add description.
17201 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17202 (i[34567]86-*-linux*): Set ipa_obj.
17203 (x86_64-*-linux*): Set ipa_obj.
17204 * linux-low.c (stabilizing_threads): New.
17205 (supports_fast_tracepoints): New.
17206 (linux_detach): Stabilize threads before detaching.
17207 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17208 the lwp is either not stabilizing, or is moving out of a jump pad.
17209 (linux_fast_tracepoint_collecting): New.
17210 (maybe_move_out_of_jump_pad): New.
17211 (enqueue_one_deferred_signal): New.
17212 (dequeue_one_deferred_signal): New.
17213 (linux_wait_for_event_1): If moving out of a jump pad, defer
17214 pending signals to later.
17215 (linux_stabilize_threads): New.
17216 (linux_wait_1): Check if threads need moving out of jump pads, and
17217 do it if so.
17218 (stuck_in_jump_pad_callback): New.
17219 (move_out_of_jump_pad_callback): New.
17220 (lwp_running): New.
17221 (linux_resume_one_lwp): Handle moving out of jump pads.
17222 (linux_set_resume_request): Dequeue deferred signals.
17223 (need_step_over_p): Also step over fast tracepoint jumps.
17224 (start_step_over): Also uninsert fast tracepoint jumps.
17225 (finish_step_over): Also reinsert fast tracepoint jumps.
17226 (linux_install_fast_tracepoint_jump): New.
17227 (linux_target_ops): Install linux_stabilize_threads and
17228 linux_install_fast_tracepoint_jump_pad.
17229 * linux-low.h (linux_target_ops) <get_thread_area,
17230 install_fast_tracepoint_jump_pad>: New fields.
17231 (struct lwp_info) <collecting_fast_tracepoint,
17232 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17233 (linux_get_thread_area): Declare.
17234 * linux-x86-low.c (jump_insn): New.
17235 (x86_get_thread_area): New.
17236 (append_insns): New.
17237 (push_opcode): New.
17238 (amd64_install_fast_tracepoint_jump_pad): New.
17239 (i386_install_fast_tracepoint_jump_pad): New.
17240 (x86_install_fast_tracepoint_jump_pad): New.
17241 (the_low_target): Install x86_get_thread_area and
17242 x86_install_fast_tracepoint_jump_pad.
17243 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17244 (struct fast_tracepoint_jump): New.
17245 (fast_tracepoint_jump_insn): New.
17246 (fast_tracepoint_jump_shadow): New.
17247 (find_fast_tracepoint_jump_at): New.
17248 (fast_tracepoint_jump_here): New.
17249 (delete_fast_tracepoint_jump): New.
17250 (set_fast_tracepoint_jump): New.
17251 (uninsert_fast_tracepoint_jumps_at): New.
17252 (reinsert_fast_tracepoint_jumps_at): New.
17253 (set_breakpoint_at): Use write_inferior_memory.
17254 (uninsert_raw_breakpoint): Use write_inferior_memory.
17255 (check_mem_read): Mask out fast tracepoint jumps.
17256 (check_mem_write): Mask out fast tracepoint jumps.
17257 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17258 (set_fast_tracepoint_jump): Declare.
17259 (delete_fast_tracepoint_jump)
17260 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17261 (reinsert_fast_tracepoint_jumps_at): Declare.
17262 * regcache.c: Don't compile many functions when building the
17263 in-process agent library.
17264 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17265 the register buffer in the heap.
17266 (free_register_cache): If the register buffer isn't owned by the
17267 regcache, don't free it.
17268 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17269 pre-existing register caches.
17270 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17271 type.
17272 (convert_ascii_to_int): : Constify `from' parameter type.
17273 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17274 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17275 the needed buffer in-place.
17276 (relocate_instruction): New.
17277 * server.c (handle_query) <qSymbols>: If the target supports
17278 tracepoints, give it a chance of looking up symbols. Report
17279 support for fast tracepoints.
17280 (handle_status): Stabilize threads.
17281 (process_serial_event): Adjust.
17282 * server.h (struct fast_tracepoint_jump): Forward declare.
17283 (struct process_info) <fast_tracepoint_jumps>: New field.
17284 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17285 (decode_X_packet, decode_M_packet): Adjust.
17286 (relocate_instruction): Declare.
17287 (in_process_agent_loaded): Declare.
17288 (tracepoint_look_up_symbols): Declare.
17289 (struct fast_tpoint_collect_status): Declare.
17290 (fast_tracepoint_collecting): Declare.
17291 (force_unlock_trace_buffer): Declare.
17292 (handle_tracepoint_bkpts): Declare.
17293 (initialize_low_tracepoint)
17294 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17295 * target.h (struct target_ops) <stabilize_threads,
17296 install_fast_tracepoint_jump_pad>: New fields.
17297 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17298 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17299 [HAVE_STDINT_H]: Include stdint.h.
17300 (trace_debug_1): Rename to ...
17301 (trace_vdebug): ... this.
17302 (trace_debug): Rename to ...
17303 (trace_debug_1): ... this. Add `level' parameter.
17304 (trace_debug): New.
17305 (ATTR_USED, ATTR_NOINLINE): New.
17306 (IP_AGENT_EXPORT): New.
17307 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17308 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17309 (about_to_request_buffer_space, trace_buffer_is_full)
17310 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17311 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17312 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17313 (traceframe_write_count, traceframes_created)
17314 (trace_state_variables)
17315 New renaming defines.
17316 (struct ipa_sym_addresses): New.
17317 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17318 (symbol_list): New.
17319 (ipa_sym_addrs): New.
17320 (all_tracepoint_symbols_looked_up): New.
17321 (in_process_agent_loaded): New.
17322 (write_e_ipa_not_loaded): New.
17323 (maybe_write_ipa_not_loaded): New.
17324 (tracepoint_look_up_symbols): New.
17325 (debug_threads) [IN_PROCESS_AGENT]: New.
17326 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17327 (UNKNOWN_SIDE_EFFECTS): New.
17328 (stop_tracing): New.
17329 (flush_trace_buffer): New.
17330 (stop_tracing_bkpt): New.
17331 (flush_trace_buffer_bkpt): New.
17332 (read_inferior_integer): New.
17333 (read_inferior_uinteger): New.
17334 (read_inferior_data_pointer): New.
17335 (write_inferior_data_pointer): New.
17336 (write_inferior_integer): New.
17337 (write_inferior_uinteger): New.
17338 (struct collect_static_trace_data_action): Delete.
17339 (enum tracepoint_type): New.
17340 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17341 <actions_str, step_actions, step_actions_str>: Only include in
17342 GDBserver.
fa593d66
PA
17343 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17344 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17345 (tracepoints): Use IP_AGENT_EXPORT.
17346 (last_tracepoint): Don't include in the IPA.
17347 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17348 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17349 (alloced_trace_state_variables): New.
17350 (trace_state_variables): Use IP_AGENT_EXPORT.
17351 (traceframe_t): Delete unused variable.
17352 (circular_trace_buffer): Don't include in the IPA.
17353 (trace_buffer_start): Delete.
17354 (struct trace_buffer_control): New.
17355 (trace_buffer_free): Delete.
17356 (struct ipa_trace_buffer_control): New.
17357 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17358 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17359 New.
17360 (trace_buffer_ctrl): New.
17361 (TRACE_BUFFER_CTRL_CURR): New.
17362 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17363 Reimplement as macros.
17364 (trace_buffer_wrap): Delete.
17365 (traceframe_write_count, traceframe_read_count)
17366 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17367 (struct tracepoint_hit_ctx) <type>: New field.
17368 (struct fast_tracepoint_ctx): New.
17369 (memory_barrier): New.
17370 (cmpxchg): New.
17371 (record_tracepoint_error): Update atomically in the IPA.
17372 (clear_inferior_trace_buffer): New.
17373 (about_to_request_buffer_space): New.
17374 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17375 updating the same buffer.
17376 (add_tracepoint): Default the tracepoint's type to trap
17377 tracepoint, and orig_size to -1.
17378 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17379 internal variables.
17380 (create_trace_state_variable): New parameter `gdb'. Handle it.
17381 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17382 (cmd_qtdp): Handle fast tracepoints.
17383 (cmd_qtdv): Adjust.
17384 (max_jump_pad_size): New.
17385 (gdb_jump_pad_head): New.
17386 (get_jump_space_head): New.
17387 (claim_jump_space): New.
17388 (sort_tracepoints): New.
17389 (MAX_JUMP_SIZE): New.
17390 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17391 IPA.
17392 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17393 support. Upload fast traceframes, and delete internal IPA
17394 breakpoints.
17395 (stop_tracing_handler): New.
17396 (flush_trace_buffer_handler): New.
17397 (cmd_qtstop): Upload fast tracepoints.
17398 (response_tracepoint): Handle fast tracepoints.
17399 (tracepoint_finished_step): Upload fast traceframes. Set the
17400 tracepoint hit context's tracepoint type.
17401 (handle_tracepoint_bkpts): New.
17402 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17403 type. Add comment about fast tracepoints.
17404 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17405 non-existing action_str field.
17406 (get_context_regcache): Handle fast tracepoints.
17407 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17408 to the regcache.
17409 (fast_tracepoint_from_jump_pad_address): New.
17410 (fast_tracepoint_from_ipa_tpoint_address): New.
17411 (collecting_t): New.
17412 (force_unlock_trace_buffer): New.
17413 (fast_tracepoint_collecting): New.
17414 (collecting): New.
17415 (gdb_collect): New.
17416 (write_inferior_data_ptr): New.
17417 (target_tp_heap): New.
17418 (target_malloc): New.
17419 (download_agent_expr): New.
17420 (UALIGN): New.
17421 (download_tracepoints): New.
17422 (download_trace_state_variables): New.
17423 (upload_fast_traceframes): New.
17424 (IPA_FIRST_TRACEFRAME): New.
17425 (IPA_NEXT_TRACEFRAME_1): New.
17426 (IPA_NEXT_TRACEFRAME): New.
17427 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17428 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17429 (gdb_jump_pad_buffer_end): New.
17430 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17431 (initialize_tracepoint): Adjust.
17432 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17433 buffer. Initialize the low module.
17434 * utils.c (PREFIX, TOOLNAME): New.
17435 (malloc_failure): Use PREFIX.
17436 (error): In the IPA, an error causes an exit.
17437 (fatal, warning): Use PREFIX.
17438 (internal_error): Use TOOLNAME.
17439 (NUMCELLS): Increase to 10.
17440 * configure, config.in: Regenerate.
17441
d149dd1d
PA
174422010-06-01 Pedro Alves <pedro@codesourcery.com>
17443
17444 * server.c (handle_query) <qSupported>: Do two passes over the
17445 qSupported string to avoid nesting strtok.
17446
f6528abd
JK
174472010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17448
17449 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17450 (CDEPS): New.
17451 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17452 -Wl,--dynamic-list.
17453 * configure: Regenerate.
17454 * proc-service.list: New.
17455
ca2a87a0
JK
174562010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17457
17458 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17459 New comment.
17460
363a6e9f
OS
174612010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17462
17463 * gdbreplay.c (remote_open): Check error return from socket() call by
17464 its equality to -1 not by it being negative.
17465 * remote-utils.c (remote_open): Likewise.
17466
d23b6cb1
PA
174672010-05-23 Pedro Alves <pedro@codesourcery.com>
17468
17469 * config.h: Regenerate.
17470
28d3cf85
MK
174712010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17472
17473 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17474 doesn't provide PTRACE_GET_THREAD_AREA.
17475
fea36a59
MK
174762010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17477
17478 * linux-m68k-low.c: Include <asm/ptrace.h>
17479 (ps_get_thread_area): Implement.
17480
24b066ba
DE
174812010-05-03 Doug Evans <dje@google.com>
17482
17483 * event-loop.c (struct callback_event): New struct.
17484 (callback_list): New global.
17485 (append_callback_event, delete_callback_event): New functions.
17486 (process_callback): New function.
17487 (start_event_loop): Call it.
17488 * remote-utils.c (NOT_SCHEDULED): Define.
17489 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17490 moved out of readchar.
17491 (readchar): Rewrite. Call reschedule before returning.
17492 (reset_readchar): New function.
17493 (remote_close): Call it.
17494 (process_remaining, reschedule): New functions.
17495 * server.h (callback_handler_func): New typedef.
17496 (append_callback_event, delete_callback_event): Declare.
17497
9836d6ea
PA
174982010-05-03 Pedro Alves <pedro@codesourcery.com>
17499
17500 * proc-service.c (ps_pglobal_lookup): Use
17501 thread_db_look_up_one_symbol.
17502 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17503 parameter. Use it instead of all_symbols_looked_up.
17504 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17505 field.
17506 (all_symbols_looked_up): Don't declare.
17507 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17508 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17509 field.
17510 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17511 Set all_symbols_looked_up here.
17512 (thread_db_look_up_one_symbol): New.
17513 (thread_db_get_tls_address): Adjust.
17514 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17515 thread_db object on the heap, and tentatively set it in the
17516 process structure.
17517 (thread_db_init): Don't set all_symbols_looked_up here.
17518 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17519
7984d532
PA
175202010-05-03 Pedro Alves <pedro@codesourcery.com>
17521
17522 * linux-low.c (linux_kill, linux_detach): Adjust.
17523 (status_pending_p_callback): Remove redundant statement. Check
17524 for !TARGET_WAITIKIND_IGNORE, instead of
17525 TARGET_WAITKIND_STOPPED.
17526 (handle_tracepoints): Make sure LWP is locked. Adjust.
17527 (linux_wait_for_event_1): Adjust.
17528 (linux_cancel_breakpoints): New.
17529 (unsuspend_one_lwp): New.
17530 (unsuspend_all_lwps): New.
17531 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17532 (send_sigstop_callback): Change return type to int, add new
17533 `except' parameter and handle it.
17534 (suspend_and_send_sigstop_callback): New.
17535 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17536 pass them down. If SUSPEND, also increment the lwp's suspend
17537 count.
17538 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17539 (need_step_over_p): Don't consider suspended LWPs.
17540 (start_step_over): Adjust.
17541 (proceed_one_lwp): Change return type to int, add new `except'
17542 parameter and handle it.
17543 (unsuspend_and_proceed_one_lwp): New.
17544 (proceed_all_lwps): Use find_inferior instead of
17545 for_each_inferior.
17546 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17547 also decrement the suspend count of LWPs. Pass `except' down,
17548 instead of hacking its suspend count.
17549 (linux_pause_all): Add `freeze' parameter. Adjust.
17550 (linux_unpause_all): New.
17551 (linux_target_ops): Install linux_unpause_all.
17552 * server.c (handle_status): Adjust.
17553 * target.h (struct target_ops): New fields `unpause_all' and
17554 `cancel_breakpoints'. Add new parameter to `pause_all'.
17555 (pause_all): Add new `freeze' parameter.
17556 (unpause_all): New.
17557 (cancel_breakpoints): New.
17558 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17559 cancel breakpoints.
17560 (cmd_qtstart): Pause threads.
17561 (stop_tracing): Pause threads, and cancel breakpoints.
17562 * win32-low.c (win32_target_ops): Adjust.
17563
e471f25b
PA
175642010-05-03 Pedro Alves <pedro@codesourcery.com>
17565
17566 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17567 the inferior right away from here...
17568 (linux_wait_1): ... to here, and adjust to check the thread's
17569 last_resume_kind instead of the lwp's step or stop_expected flags.
17570
1915ef4f
PA
175712010-05-02 Pedro Alves <pedro@codesourcery.com>
17572
17573 * README: Use consistent `GDB' and `GDBserver' spellings.
17574
f9e39928
PA
175752010-05-02 Pedro Alves <pedro@codesourcery.com>
17576
17577 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17578 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17579 (linux_detach_one_lwp): Assume the lwp is stopped.
17580 (any_thread_of): Delete.
17581 (linux_detach): Stop all lwps here. Don't blindly delete all
17582 breakpoints.
17583 (delete_lwp_callback): New.
17584 (linux_mourn): Delete all lwps of the process that is gone.
17585 (linux_wait_1): Don't delete the last lwp of the process here.
17586 * mem-break.h (mark_breakpoints_out): Declare.
17587 * mem-break.c (mark_breakpoints_out): New.
17588 (free_all_breakpoints): Use it.
17589 * server.c (handle_target_event): If the process is gone, mark
17590 breakpoints out.
17591 * thread-db.c (struct thread_db) <create_bp>: New field.
17592 (thread_db_enable_reporting): Fix prototype. Store a thread event
17593 breakpoint reference in the thread_db struct.
17594 (thread_db_load_search): Clear the thread_db object.
17595 (try_thread_db_load_1): Ditto.
17596 (switch_to_process): New.
17597 (disable_thread_event_reporting): Use it.
17598 (remove_thread_event_breakpoints): New.
17599 (thread_db_detach, thread_db_mourn): Use it.
17600
1e7fc18c
PA
176012010-05-01 Pedro Alves <pedro@codesourcery.com>
17602
17603 * linux-low.c (linux_enable_event_reporting): New.
17604 (linux_wait_for_event_1, handle_extended_wait): Use it.
17605
02fc4de7
PA
176062010-04-30 Pedro Alves <pedro@codesourcery.com>
17607
17608 * linux-low.c (linux_kill_one_lwp, linux_kill)
17609 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17610 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17611 SIGSTOP even if the LWP is stopped.
17612 (send_sigstop_callback): New.
17613 (stop_all_lwps): Use send_sigstop_callback instead.
17614 (linux_resume_one_thread): Adjust.
17615 (proceed_one_lwp): Still proceed an LWP that the client has
17616 requested to stop, if we haven't reported it as stopped yet. Make
17617 sure that LWPs the client want stopped, have a pending SIGSTOP.
17618
bc3b5632
DE
176192010-04-26 Doug Evans <dje@google.com>
17620
ae1ada35
DE
17621 * server.c (handle_general_set): Make static.
17622
bc3b5632
DE
17623 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17624 Print received char after testing for error/eof instead of before.
17625 (input_interrupt): Tweak comment.
17626
65730243
DE
176272010-04-23 Doug Evans <dje@google.com>
17628
17629 * server.c (start_inferior): Print inferior argv if --debug.
17630
a8ae7dc0
AR
176312010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17632
17633 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17634 * nto-x86-low.c: Include server.h
17635
1c07cc19
PM
176362010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17637
17638 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17639 be consistent with other sources of this directory.
17640 (init_registers_amd64): Correct name of source file of this function
17641 in the comment.
17642
e0a61e09
PM
176432010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17644
17645 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17646 64-bit executables.
17647
54709339
PM
176482010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17649
17650 * win32-i386-low.c: Add 64-bit support.
17651 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17652 (init_registers_amd64): Declare.
17653 (mappings): Add 64-bit version of array.
17654 (init_windows_x86): New function.
17655 (the_low_target): Change init_arch field to init_windows_x86.
17656
e8f0053d
PM
176572010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17658
17659 * win32-low.c: Adapt to support also 64-bit architecture.
17660 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17661 (get_image_name): Use SIZE_T type for local variable `done'.
17662 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17663 (toolhelp_get_dll_name): Idem.
17664 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17665 Use uintptr_t typecast to avoid warning.
17666 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17667 (handle_exception): Use phex_nz to avoid warning.
17668 (win32_wait): Remove unused local variable `process'.
17669
c481e77e
PM
176702010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17671
17672 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17673 `amd64-avx.o'.
17674
12ea4b69
PM
176752010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17676
17677 * configure.ac: Use `ws2_32' library for srv_mingw.
17678 * configure: Regenerate.
17679 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17680 * remote-utils.c: Likewise.
17681
f6d1620c
L
176822010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17683
17684 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17685 if __x86_64__ is defined.
17686
8e642873
PM
176872010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17688
17689 * configure: Regenerate.
17690
711e434b
PM
176912010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17692
17693 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17694 * target.h (target_ops): New get_tib_address field.
17695 * win32-low.h (win32_thread_info): Add thread_local_base field.
17696 * win32-low.c (child_add_thread): Add tlb argument.
17697 Set thread_local_base field to TLB.
17698 (get_child_debug_event): Adapt to child_add_thread change.
17699 (win32_get_tib_address): New function.
17700 (win32_target_ops): Set get_tib_address field to
17701 win32_get_tib_address.
17702 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17703
505106cd
PA
177042010-04-12 Pedro Alves <pedro@codesourcery.com>
17705
505106cd
PA
17706 * linux-low.c (linux_mourn): Also remove the process.
17707 * server.c (handle_target_event): Don't remove the process here.
17708 * nto-low.c (nto_mourn): New.
17709 (nto_target_ops): Install it.
17710 * spu-low.c (spu_mourn): New.
17711 (spu_target_ops): Install it.
17712 * win32-low.c (win32_mourn): New.
17713 (win32_target_ops): Install it.
17714
e8470a06
PA
177152010-04-12 Pedro Alves <pedro@codesourcery.com>
17716
17717 * server.h (buffer_xml_printf): Remove redundant `;'.
17718
45ba0d02
PA
177192010-04-12 Pedro Alves <pedro@codesourcery.com>
17720
17721 * regcache.c (set_register_cache): Invalidate regcaches before
17722 changing the register cache layout.
17723 (regcache_invalidate_one): Allow a NULL regcache.
17724 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17725 regcaches before changing the register cache layout or the target
17726 regsets.
17727
59e04013
L
177282010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17729
17730 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17731 variable warning on Linux/x86-64.
17732
8336d594
PA
177332010-04-11 Pedro Alves <pedro@codesourcery.com>
17734
17735 GDBserver disconnected tracing support.
17736
17737 * linux-low.c (linux_remove_process): Delete.
17738 (add_lwp): Don't set last_resume_kind here.
17739 (linux_kill): Use `mourn'.
17740 (linux_detach): Use `thread_db_detach', and `mourn'.
17741 (linux_mourn): New.
17742 (linux_attach_lwp_1): Adjust comment.
17743 (linux_attach): last_resume_kind moved the thread_info; adjust.
17744 (status_pending_p_callback): Adjust.
17745 (linux_wait_for_event_1): Adjust.
17746 (count_events_callback, select_singlestep_lwp_callback)
17747 (select_event_lwp_callback, cancel_breakpoints_callback)
17748 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17749 (proceed_one_lwp): Adjust.
17750 (linux_async): Add debug output.
17751 (linux_thread_stopped): New.
17752 (linux_pause_all): New.
17753 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17754 linux_pause_all.
17755 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17756 (thread_db_free): Delete declaration.
17757 (thread_db_detach, thread_db_mourn): Declare.
17758 * thread-db.c (thread_db_init): Use thread_db_mourn.
17759 (thread_db_free): Delete, split in two.
17760 (disable_thread_event_reporting): New.
17761 (thread_db_detach): New.
17762 (thread_db_mourn): New.
17763
17764 * server.h (struct thread_info) <last_resume_kind>: New field.
17765 <attached>: Add comment.
17766 <gdb_detached>: New field.
17767 (handler_func): Change return type to int.
17768 (handle_serial_event, handle_target_event): Ditto.
17769 (gdb_connected): Declare.
17770 (tracing): Delete.
17771 (disconnected_tracing): Declare.
17772 (stop_tracing): Declare.
17773
17774 * server.c (handle_query) <qSupported>: Report support for
17775 disconnected tracing.
17776 (queue_stop_reply_callback): Account for running threads.
17777 (gdb_wants_thread_stopped): New.
17778 (gdb_wants_all_threads_stopped): New.
17779 (gdb_reattached_process): New.
17780 (handle_status): Clear the `gdb_detached' flag of all processes.
17781 In all-stop, stop all threads.
17782 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17783 (process_serial_event): If the remote connection breaks, or if an
17784 exit was forced with "monitor exit", force an event loop exit.
17785 Handle disconnected tracing on detach.
17786 (handle_serial_event): Adjust.
17787 (handle_target_event): If GDB isn't connected, forward events back
17788 to the inferior, unless the last process exited, in which case,
17789 exit gdbserver. Adjust interface.
17790
17791 * remote-utils.c (remote_open): Don't block in accept. Instead
17792 register an event loop source on the listen socket file
17793 descriptor. Refactor bits into ...
17794 (listen_desc): ... this new global.
17795 (gdb_connected): ... this new function.
17796 (enable_async_notification): ... this new function.
17797 (handle_accept_event): ... this new function.
17798 (remote_close): Clear remote_desc.
17799
17800 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17801
17802 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17803 New fields.
17804 (mourn_inferior): Define.
17805 (target_process_qsupported): Avoid the dangling else problem.
17806 (thread_stopped): Define.
17807 (pause_all): Define.
17808 (target_waitstatus_to_string): Declare.
17809 * target.c (target_waitstatus_to_string): New.
17810
17811 * tracepoint.c (tracing): Make extern.
17812 (disconnected_tracing): New.
17813 (stop_tracing): Make extern. Handle tracing stops due to GDB
17814 disconnecting.
17815 (cmd_qtdisconnected): New.
17816 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17817 (handle_tracepoint_general_set): Handle QTDisconnected.
17818
17819 * event-loop.c (event_handler_func): Change return type to int.
17820 (process_event): Bail out if the event handler wants the event
17821 loop to stop.
17822 (handle_file_event): Ditto.
17823 (start_event_loop): Bail out if the event handler wants the event
17824 loop to stop.
17825
17826 * nto-low.c (nto_target_ops): Adjust.
17827 * spu-low.c (spu_wait): Don't remove the process here.
17828 (spu_target_ops): Adjust.
17829 * win32-low.c (win32_wait): Don't remove the process here.
17830 (win32_target_ops): Adjust.
17831
5d267c4c
PA
178322010-04-11 Pedro Alves <pedro@codesourcery.com>
17833
17834 * regcache.c (realloc_register_cache): Invalidate inferior's
17835 regcache before recreating it.
17836
623ccd72
PA
178372010-04-09 Pedro Alves <pedro@codesourcery.com>
17838
17839 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17840
219f2f23
PA
178412010-04-09 Stan Shebs <stan@codesourcery.com>
17842 Pedro Alves <pedro@codesourcery.com>
17843
17844 * server.h (LONGEST): New.
17845 (struct thread_info) <while_stepping>: New field.
17846 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17847 Declare.
17848 (initialize_tracepoint, handle_tracepoint_general_set)
17849 (handle_tracepoint_query, tracepoint_finished_step)
17850 (tracepoint_was_hit, release_while_stepping_state_list):
17851 (current_traceframe): Declare.
17852 * server.c (handle_general_set): Handle tracepoint packets.
17853 (read_memory): New.
17854 (write_memory): New.
17855 (handle_search_memory_1): Use read_memory.
17856 (handle_query): Report support for conditional tracepoints, trace
17857 state variables, and tracepoint sources. Handle tracepoint
17858 queries.
17859 (main): Initialize the tracepoints module.
17860 (process_serial_event): Handle traceframe reads/writes.
17861
17862 * linux-low.c (handle_tracepoints): New.
17863 (linux_wait_1): Call it.
17864 (linux_resume_one_lwp): Handle while-stepping.
17865 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17866 (linux_target_ops): Install them.
17867 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17868 New field.
17869 * linux-x86-low.c (x86_supports_tracepoints): New.
17870 (the_low_target). Install it.
17871
17872 * mem-break.h (delete_breakpoint): Declare.
17873 * mem-break.c (delete_breakpoint): Make external.
17874
17875 * target.h (struct target_ops): Add `supports_tracepoints',
17876 `read_pc', and `write_pc' fields.
17877 (target_supports_tracepoints): Define.
17878 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17879 (phex_nz): New.
17880
17881 * regcache.h (struct regcache) <registers_owned>: New field.
17882 (init_register_cache, regcache_cpy): Declare.
17883 (regcache_read_pc, regcache_write_pc): Declare.
17884 (register_cache_size): Declare.
17885 (supply_regblock): Declare.
17886 * regcache.c (init_register_cache): New.
17887 (new_register_cache): Use it.
17888 (regcache_cpy): New.
17889 (register_cache_size): New.
17890 (supply_regblock): New.
17891 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17892
219f2f23
PA
17893 * tracepoint.c: New.
17894
17895 * Makefile.in (OBS): Add tracepoint.o.
17896 (tracepoint.o): New rule.
17897
3a13a53b
L
178982010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17899
17900 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17901 (i386-mmx.o): New.
17902 (i386-mmx.c): Likewise.
17903 (i386-mmx-linux.o): Likewise.
17904 (i386-mmx-linux.c): Likewise.
17905
17906 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17907 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17908 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17909 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17910
17911 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17912 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17913 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17914
1570b33e
L
179152010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17916
17917 * Makefile.in (clean): Updated.
17918 (i386-avx.o): New.
17919 (i386-avx.c): Likewise.
17920 (i386-avx-linux.o): Likewise.
17921 (i386-avx-linux.c): Likewise.
17922 (amd64-avx.o): Likewise.
17923 (amd64-avx.c): Likewise.
17924 (amd64-avx-linux.o): Likewise.
17925 (amd64-avx-linux.c): Likewise.
17926
17927 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17928 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17929 (srv_amd64_regobj): Add amd64-avx.o.
17930 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17931 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17932 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17933 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17934 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17935 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17936 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17937
17938 * i387-fp.c: Include "i386-xstate.h".
17939 (i387_xsave): New.
17940 (i387_cache_to_xsave): Likewise.
17941 (i387_xsave_to_cache): Likewise.
17942 (x86_xcr0): Likewise.
17943
17944 * i387-fp.h (i387_cache_to_xsave): Likewise.
17945 (i387_xsave_to_cache): Likewise.
17946 (x86_xcr0): Likewise.
17947
17948 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17949 * linux-crisv32-low.c (target_regsets): Likewise.
17950 * linux-m68k-low.c (target_regsets): Likewise.
17951 * linux-mips-low.c (target_regsets): Likewise.
17952 * linux-ppc-low.c (target_regsets): Likewise.
17953 * linux-s390-low.c (target_regsets): Likewise.
17954 * linux-sh-low.c (target_regsets): Likewise.
17955 * linux-sparc-low.c (target_regsets): Likewise.
17956 * linux-xtensa-low.c (target_regsets): Likewise.
17957
17958 * linux-low.c: Include <sys/uio.h>.
17959 (regsets_fetch_inferior_registers): Support nt_type.
17960 (regsets_store_inferior_registers): Likewise.
17961 (linux_process_qsupported): New.
17962 (linux_target_ops): Add linux_process_qsupported.
17963
17964 * linux-low.h (regset_info): Add nt_type.
17965 (linux_target_ops): Add process_qsupported.
17966
17967 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17968 and <sys/uio.h>.
17969 (init_registers_i386_avx_linux): New.
17970 (init_registers_amd64_avx_linux): Likewise.
17971 (xmltarget_i386_linux_no_xml): Likewise.
17972 (xmltarget_amd64_linux_no_xml): Likewise.
17973 (PTRACE_GETREGSET): Likewise.
17974 (PTRACE_SETREGSET): Likewise.
17975 (x86_fill_xstateregset): Likewise.
17976 (x86_store_xstateregset): Likewise.
17977 (use_xml): Likewise.
17978 (x86_linux_update_xmltarget): Likewise.
17979 (x86_linux_process_qsupported): Likewise.
17980 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17981 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17982 init_registers_i386_linux here. Call
17983 x86_linux_update_xmltarget.
17984 (the_low_target): Add x86_linux_process_qsupported.
17985
17986 * server.c (handle_query): Call target_process_qsupported.
17987
17988 * target.h (target_ops): Add process_qsupported.
17989 (target_process_qsupported): New.
17990
fc7238bb
PA
179912010-04-03 Pedro Alves <pedro@codesourcery.com>
17992
17993 * inferiors.c (add_thread): Set last_status kind to
17994 TARGET_WAITKIND_IGNORE.
17995 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17996 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17997 (linux_wait_1): Move `thread' local definition to block that uses
17998 it. Don't NULL initialize `event_child'.
17999 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18000 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18001 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18002
bdabb078
PA
180032010-04-01 Pedro Alves <pedro@codesourcery.com>
18004
18005 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18006 an extended waitstatus, or by a watchpoint.
18007 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18008 thread was stepping or has been stopped by a watchpoint.
18009
d3bbe7a0
PA
180102010-04-01 Pedro Alves <pedro@codesourcery.com>
18011
18012 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18013 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18014 of another, then delete the previous, and validate all
18015 breakpoints.
18016 (validate_inserted_breakpoint): New.
18017 (delete_disabled_breakpoints): New.
18018 (validate_breakpoints): New.
18019 (check_mem_read): Validate breakpoints before trusting their
18020 shadow. Delete disabled breakpoints.
18021 (check_mem_write): Validate breakpoints before trusting they
18022 should be inserted. Delete disabled breakpoints.
18023 * mem-break.h (validate_breakpoints):
18024 * server.c (handle_query): Validate breakpoints when we see a
18025 qSymbol query.
18026
8b07ae33
PA
180272010-04-01 Pedro Alves <pedro@codesourcery.com>
18028
18029 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18030 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18031 if we could tell there's a GDB breakpoint at stop_pc.
18032 (need_step_over_p): Don't do a step over if we find a GDB
18033 breakpoint at the resume PC.
18034
18035 * mem-break.c (struct raw_breakpoint): New.
18036 (enum bkpt_type): New type `gdb_breakpoint'.
18037 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18038 fields. New field `raw'.
18039 (find_raw_breakpoint_at): New.
18040 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18041 breakpoint instead.
18042 (set_breakpoint_at): Adjust.
18043 (delete_raw_breakpoint): New.
18044 (release_breakpoint): New.
18045 (delete_breakpoint): Rename to...
18046 (delete_breakpoint_1): ... this. Add proc parameter. Use
18047 release_breakpoint. Return ENOENT.
18048 (delete_breakpoint): Reimplement.
18049 (find_breakpoint_at): Delete.
18050 (find_gdb_breakpoint_at): New.
18051 (delete_breakpoint_at): Delete.
18052 (set_gdb_breakpoint_at): New.
18053 (delete_gdb_breakpoint_at): New.
18054 (gdb_breakpoint_here): New.
18055 (set_reinsert_breakpoint): Use release_breakpoint.
18056 (uninsert_breakpoint): Rename to ...
18057 (uninsert_raw_breakpoint): ... this.
18058 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18059 (reinsert_raw_breakpoint): Change parameter type to
18060 raw_breakpoint.
18061 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18062 instead.
18063 (check_breakpoints): Adjust. Use release_breakpoint.
18064 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18065 (breakpoint_inserted_here): Ditto.
18066 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18067 Don't trust the breakpoint's shadow if it is not inserted.
18068 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18069 (delete_all_breakpoints): Adjust.
18070 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18071 use delete_breakpoint_1.
18072
18073 * mem-break.h (breakpoints_supported): Delete declaration.
18074 (set_gdb_breakpoint_at): Declare.
18075 (gdb_breakpoint_here): Declare.
18076 (delete_breakpoint_at): Delete.
18077 (delete_gdb_breakpoint_at): Declare.
18078
18079 * server.h (struct raw_breakpoint): Forward declare.
18080 (struct process_info): New field `raw_breakpoints'.
18081
18082 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18083 breakpoints.
18084
6bf5e0ba
PA
180852010-03-24 Pedro Alves <pedro@codesourcery.com>
18086
18087 * linux-low.c (status_pending_p_callback): Fix comment.
18088 (linux_wait_for_event_1): Move most of the internal breakpoint
18089 handling from here...
18090 (linux_wait_1): ... to here.
18091 (count_events_callback): New.
18092 (select_singlestep_lwp_callback): New.
18093 (select_event_lwp_callback): New.
18094 (cancel_breakpoints_callback): New.
18095 (select_event_lwp): New.
18096 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18097 priority to all LWPs that have had events that should be reported
18098 to the client. Cancel breakpoints when about to reporting the
18099 event to the client, not while stopping lwps. No longer cancel
18100 finished single-steps here.
18101 (cancel_finished_single_step): Delete.
18102 (cancel_finished_single_steps): Delete.
18103
414a389f
PA
181042010-03-24 Pedro Alves <pedro@codesourcery.com>
18105
18106 * mem-break.c (enum bkpt_type): New.
18107 (struct breakpoint): New field `type'.
18108 (set_breakpoint_at): Change return type to struct breakpoint
18109 pointer. Set type to `other_breakpoint' by default.
18110 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18111 in the breakpoint list.
18112 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18113 (reinsert_breakpoint): Rename to ...
18114 (reinsert_raw_breakpoint): ... this.
18115 (reinsert_breakpoints_at): Adjust.
18116 * mem-break.h (struct breakpoint): Declare.
18117 (set_breakpoint_at): Change return type to struct breakpoint
18118 pointer.
18119
2280c721
PA
181202010-03-24 Pedro Alves <pedro@codesourcery.com>
18121
18122 * server.c (handle_query): Assign, not compare.
18123
d50171e4
PA
181242010-03-24 Pedro Alves <pedro@codesourcery.com>
18125
18126 Teach linux gdbserver to step-over-breakpoints.
18127
18128 * linux-low.c (can_hardware_single_step): New.
18129 (supports_breakpoints): New.
18130 (handle_extended_wait): If stopping threads, read the stop pc of
18131 the new cloned LWP.
18132 (get_pc): New.
18133 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18134 low target doesn't support retrieving the PC.
18135 (add_lwp): Set last_resume_kind to resume_continue.
18136 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18137 (linux_attach): Don't clear stop_expected. Set the lwp's
18138 last_resume_kind to resume_stop.
18139 (linux_detach_one_lwp): Don't check for removed breakpoints.
18140 (check_removed_breakpoint): Delete.
18141 (status_pending_p): Rename to ...
18142 (status_pending_p_callback): ... this. Don't check for removed
18143 breakpoints. Don't consider threads that are stopped from GDB's
18144 perspective.
18145 (linux_wait_for_lwp): Always read the stop_pc here.
18146 (cancel_breakpoint): New.
18147 (step_over_bkpt): New global.
18148 (linux_wait_for_event_1): Implement stepping over breakpoints.
18149 (gdb_wants_lwp_stopped): New.
18150 (gdb_wants_all_stopped): New.
18151 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18152 single-step traps here. Store the thread's last reported target
18153 wait status.
18154 (send_sigstop): Don't clear stop_expected. Always set it,
18155 instead.
18156 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18157 (cancel_finished_single_step): New.
18158 (cancel_finished_single_steps): New.
18159 (wait_for_sigstop): Don't cancel finished single-step traps here.
18160 (linux_resume_one_lwp): Don't check for removed breakpoints.
18161 Don't set `step' on non-hardware step archs.
18162 (linux_set_resume_request): Ignore resume_stop requests if already
18163 stopping or stopped. Set the lwp's last_resume_kind.
18164 (resume_status_pending_p): Don't check for removed breakpoints.
18165 (need_step_over_p): New.
18166 (start_step_over): New.
18167 (finish_step_over): New.
18168 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18169 requests. Clear the thread's last reported target waitstatus.
18170 Don't use the `suspended' flag. Don't consider pending breakpoints.
18171 (linux_resume): Start a step-over if necessary.
18172 (proceed_one_lwp): New.
18173 (proceed_all_lwps): New.
18174 (unstop_all_lwps): New.
18175 * linux-low.h (struct lwp_info): Rewrite comment for the
18176 `suspended' flag. Add the `stop_pc' field. Delete the
18177 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18178 Add `'last_resume_kind' and `need_step_over' fields.
18179 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18180 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18181 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18182 (set_raw_breakpoint_at): New.
18183 (set_breakpoint_at): Rewrite to use it.
18184 (reinsert_breakpoint_handler): Delete.
18185 (set_reinsert_breakpoint): New.
18186 (reinsert_breakpoint_by_bp): Delete.
18187 (delete_reinsert_breakpoints): New.
18188 (uninsert_breakpoint): Rewrite.
18189 (uninsert_breakpoints_at): New.
18190 (reinsert_breakpoint): Rewrite.
18191 (reinsert_breakpoints_at): New.
18192 (check_breakpoints): Rewrite.
18193 (breakpoint_here): New.
18194 (breakpoint_inserted_here): New.
18195 (check_mem_read): Adjust.
18196 * mem-break.h (breakpoints_supported, breakpoint_here)
18197 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18198 (reinsert_breakpoint_by_bp): Delete declaration.
18199 (delete_reinsert_breakpoints): Declare.
18200 (reinsert_breakpoint): Delete declaration.
18201 (reinsert_breakpoints_at): Declare.
18202 (uninsert_breakpoint): Delete declaration.
18203 (uninsert_breakpoints_at): Declare.
18204 (check_breakpoints): Adjust prototype.
18205 * server.h: Adjust include order.
18206 (struct thread_info): Declare here. Add a `last_status' field.
18207
30ba68cb
MS
182082010-03-23 Michael Snyder <msnyder@vmware.com>
18209
18210 * server.c (crc32): New function.
18211 (handle_query): Add handling for 'qCRC:' request.
18212
b9a881c2
PA
182132010-03-23 Pedro Alves <pedro@codesourcery.com>
18214
18215 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18216 lwp had been stopped by a watchpoint.
18217
e92d13d5
PA
182182010-03-16 Pedro Alves <pedro@codesourcery.com>
18219
18220 * server.h (internal_error): Declare.
18221 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18222 * utils.c (internal_error): New function.
18223
64daa791
AS
182242010-03-15 Andreas Schwab <schwab@redhat.com>
18225
18226 * configure.srv: Fix typo setting srv_regobj.
18227
f52cd8cd
PA
182282010-03-15 Pedro Alves <pedro@codesourcery.com>
18229
18230 * linux-low.c (fetch_register): Avoid passing a non string literal
18231 format to `error'.
18232 (usr_store_inferior_registers): Ditto.
18233
93ae6fdc
PA
182342010-03-14 Pedro Alves <pedro@codesourcery.com>
18235
18236 * linux-low.c (linux_write_memory): Bail out early if peeking
18237 memory failed.
18238
c3adc08c
PA
182392010-03-14 Pedro Alves <pedro@codesourcery.com>
18240
18241 * linux-low.h (struct lwp_info): New fields
18242 `stopped_by_watchpoint' and `stopped_data_address'.
18243 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18244 here, and cache them in the lwp object.
18245 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18246 directly.
18247 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18248 field.
18249 (linux_stopped_by_watchpoint): Rewrite.
18250 (linux_stopped_data_address): Rewrite.
18251
bce522a2
PA
182522010-03-06 Simo Melenius <simo.melenius@iki.fi>
18253
18254 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18255 switching the current inferior, not before.
18256
90884b2b
L
182572010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18258
18259 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18260 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18261 i386-linux.c and amd64-linux.c.
18262 (reg-i386.o): Removed.
18263 (reg-i386.c): Likewise.
18264 (reg-i386-linux.o): Likewise.
18265 (reg-i386-linux.c): Likewise.
18266 (reg-x86-64.o): Likewise.
18267 (reg-x86-64.c): Likewise.
18268 (reg-x86-64-linux.o): Likewise.
18269 (reg-x86-64-linux.c): Likewise.
18270 (i386.o): New.
18271 (i386.c): Likewise.
18272 (i386-linux.o): Likewise.
18273 (i386-linux.c): Likewise.
18274 (amd64.o): Likewise.
18275 (amd64.c): Likewise.
18276 (amd64-linux.o): Likewise.
18277 (amd64-linux.c): Likewise.
18278
18279 * configure.srv (srv_i386_regobj): New.
18280 (srv_i386_linux_regobj): Likewise.
18281 (srv_amd64_regobj): Likewise.
18282 (srv_amd64_linux_regobj): Likewise.
18283 (srv_i386_32bit_xmlfiles): Likewise.
18284 (srv_i386_64bit_xmlfiles): Likewise.
18285 (srv_i386_xmlfiles): Likewise.
18286 (srv_amd64_xmlfiles): Likewise.
18287 (srv_i386_linux_xmlfiles): Likewise.
18288 (srv_amd64_linux_xmlfiles): Likewise.
18289 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18290 srv_xmlfiles to $srv_i386_xmlfiles.
18291 (i[34567]86-*-mingw32ce*): Likewise.
18292 (i[34567]86-*-mingw*): Likewise.
18293 (i[34567]86-*-nto*): Likewise.
18294 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18295 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18296 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18297 (x86_64-*-linux*): Likewise.
18298
18299 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18300 (init_registers_amd64_linux): New.
18301 (x86_arch_setup): Replace init_registers_x86_64_linux with
18302 init_registers_amd64_linux.
18303
193f13e6
MK
183042010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18305
18306 * configure.ac: Check for libdl. If it is not available link against
18307 static libthread_db.
18308 * configure: Regenerate.
18309
85d721b8
PA
183102010-02-22 Pedro Alves <pedro@codesourcery.com>
18311
18312 PR9605
18313
18314 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18315 handing a read watchpoint.
18316 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18317
6076632b
DE
183182010-02-12 Doug Evans <dje@google.com>
18319
18320 * linux-low.c (linux_supports_tracefork_flag): Document.
18321 (linux_look_up_symbols): Add comment.
18322
3327ccf7
L
183232010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18324
18325 * regcache.c (supply_register): Clear regcache if buf is NULL.
18326
0718675c 183272010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18328 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18329
18330 * inferiors.c (find_inferior): Add function documentation.
18331 (unloaded_dll): Handle the case where the unloaded dll has not
18332 been previously registered in the dll list.
18333
177321bd
DJ
183342010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18335
18336 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18337 (thumb2_breakpoint): New.
18338 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18339
2b009048
DJ
183402010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18341
18342 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18343 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18344 breakpoints.
18345
3be029c7
PA
183462010-01-21 Pedro Alves <pedro@codesourcery.com>
18347
18348 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18349
18f5de3b
JK
183502010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18351
18352 * linux-s390-low.c (s390_collect_ptrace_register)
18353 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18354
3743bb4f
DE
183552010-01-21 Doug Evans <dje@google.com>
18356
14ce3065
DE
18357 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18358 (PTRACE_ARG4_TYPE): New macro.
18359 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18360 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18361 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18362 (usr_store_inferior_registers): Ditto.
18363 (linux_read_memory, linux_write_memory): Ditto.
18364 (linux_test_for_tracefork): Ditto.
18365
3743bb4f
DE
18366 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18367 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18368
8b315be5
PA
183692010-01-21 Pedro Alves <pedro@codesourcery.com>
18370
18371 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18372 target.
18373
85492558
PA
183742010-01-21 Pedro Alves <pedro@codesourcery.com>
18375
18376 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18377 prototype to take a regcache. Adjust.
18378
442ea881
PA
183792010-01-20 Pedro Alves <pedro@codesourcery.com>
18380
18381 * regcache.h (struct thread_info): Forward declare.
18382 (struct regcache): New.
18383 (new_register_cache): Adjust prototype.
18384 (get_thread_regcache): Declare.
18385 (free_register_cache): Adjust prototype.
18386 (registers_to_string, registers_from_string): Ditto.
18387 (supply_register, supply_register_by_name, collect_register)
18388 (collect_register_as_string, collect_register_by_name): Ditto.
18389 * regcache.c (struct inferior_regcache_data): Delete.
18390 (get_regcache): Rename to ...
18391 (get_thread_regcache): ... this. Adjust. Switch inferior before
18392 fetching registers.
18393 (regcache_invalidate_one): Adjust.
18394 (regcache_invalidate): Fix prototype.
18395 (new_register_cache): Return the new register cache.
18396 (free_register_cache): Change prototype.
18397 (realloc_register_cache): Adjust.
18398 (registers_to_string): Change prototype to take a regcache. Adjust.
18399 (registers_from_string): Ditto.
18400 (register_data): Ditto.
18401 (supply_register): Ditto.
18402 (supply_register_by_name): Ditto.
18403 (collect_register): Ditto.
18404 (collect_register_as_string): Ditto.
18405 (collect_register_by_name): Ditto.
18406 * server.c (process_serial_event): Adjust.
18407 * linux-low.h (regset_fill_func, regset_store_func): Change
18408 prototype.
18409 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18410 Change prototype.
18411 * linux-low.c (get_stop_pc): Adjust.
18412 (check_removed_breakpoint): Adjust.
18413 (linux_wait_for_event): Adjust.
18414 (linux_resume_one_lwp): Adjust.
18415 (fetch_register): Add regcache parameter. Adjust.
18416 (usr_store_inferior_registers): Ditto.
18417 (regsets_fetch_inferior_registers): Ditto.
18418 (regsets_store_inferior_registers): Ditto.
18419 (linux_fetch_registers, linux_store_registers): Ditto.
18420 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18421 regcache. Adjust.
43aaf8b6
PA
18422 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18423 Ditto.
442ea881
PA
18424 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18425 prototype to take a regcache.
18426 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18427 * remote-utils.c (convert_ascii_to_int, outreg)
18428 (prepare_resume_reply): Change prototype to take a regcache.
18429 Adjust.
18430 * target.h (struct target_ops) <fetch_registers, store_registers>:
18431 Change prototype to take a regcache.
18432 (fetch_inferior_registers, store_inferior_registers): Change
18433 prototype to take a regcache. Adjust.
18434 * proc-service.c (ps_lgetregs): Adjust.
18435 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18436 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18437 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18438 take a regcache. Adjust.
18439 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18440 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18441 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18442 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18443 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18444 (cris_cannot_fetch_register):
18445 (cris_breakpoint_at): Change prototype to take a regcache.
18446 Adjust.
18447 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18448 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18449 to take a regcache. Adjust.
18450 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18451 Adjust.
18452 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18453 take a regcache. Adjust.
18454 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18455 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18456 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18457 * linux-mips-low.c (mips_get_pc):
18458 (mips_set_pc): Change prototype to take a regcache. Adjust.
18459 (mips_reinsert_addr): Adjust.
18460 (mips_collect_register): Change prototype to take a regcache.
18461 Adjust.
18462 (mips_supply_register):
18463 (mips_collect_register_32bit, mips_supply_register_32bit)
18464 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18465 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18466 * linux-ppc-low.c (ppc_supply_ptrace_register)
18467 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18468 (parse_spufs_run): Adjust.
18469 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18470 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18471 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18472 take a regcache. Adjust.
18473 * linux-s390-low.c (s390_collect_ptrace_register)
18474 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18475 (s390_set_pc): Change prototype to take a regcache. Adjust.
18476 (s390_arch_setup): Adjust.
18477 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18478 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18479 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18480 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18481 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18482 regcache. Adjust.
18483 (sparc_breakpoint_at): Adjust.
18484 * linux-xtensa-low.c (xtensa_fill_gregset):
18485 (xtensa_store_gregset):
18486 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18487 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18488 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18489 prototype to take a regcache. Adjust.
18490 * win32-arm-low.c (arm_fetch_inferior_register)
18491 (arm_store_inferior_register): Change prototype to take a
18492 regcache. Adjust.
18493 * win32-i386-low.c (i386_fetch_inferior_register)
18494 (i386_store_inferior_register): Change prototype to take a
18495 regcache. Adjust.
18496 * win32-low.c (child_fetch_inferior_registers)
18497 (child_store_inferior_registers): Change prototype to take a
18498 regcache. Adjust.
18499 (win32_wait): Adjust.
18500 (win32_fetch_inferior_registers): Change prototype to take a
18501 regcache. Adjust.
18502 (win32_store_inferior_registers): Adjust.
18503 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18504 store_inferior_register>: Change prototype to take a regcache.
18505
60c3d7b0
DE
185062010-01-20 Doug Evans <dje@google.com>
18507
18508 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18509 #ifdef.
18510 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18511 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18512
dc146f7c
VP
185132010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18514
18515 * linux-low.c (linux_core_of_thread): New.
18516 (compare_ints, show_process, list_threads): New.
18517 (linux_qxfer_osdata): Report threads and cores.
18518 (linux_target_op): Register linux_core_of_thread.
18519 * remote-utils.c (prepare_resume_reply): Report the core.
18520 (buffer_xml_printf): Support %d specifier.
18521 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18522 New.
18523 (handle_query): Handle qXfer:threads. Announce availability
18524 thereof.
18525 * target.h (struct target_ops): New field core_of_thread.
18526
7803799a
UW
185272010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18528
18529 * Makefile.in (clean): Remove new generated files.
18530 (reg-s390.o, reg-s390.c): Remove rules.
18531 (reg-s390x.o, reg-s390x.c): Likewise.
18532 (s390-linux32.o, s390-linux32.c): Add rules.
18533 (s390-linux64.o, s390-linux64.c): Likewise.
18534 (s390x-linux64.o, s390x-linux64.c): Likewise.
18535 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18536 * linux-s390-low.c: Include <elf.h>.
18537 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18538 (init_registers_s390): Remove prototype.
18539 (init_registers_s390x): Likewise.
18540 (init_registers_s390_linux32): Add prototype.
18541 (init_registers_s390_linux64): Likewise.
18542 (init_registers_s390x_linux64): Likewise.
18543 (s390_num_regs_3264): New define.
18544 (s390_regmap_3264): New global variable.
18545 (s390_cannot_fetch_register): Remove obsolete check.
18546 (s390_cannot_store_register): Likewise.
18547 (s390_collect_ptrace_register): Handle upper/lower register halves.
18548 (s390_supply_ptrace_register): Likewise.
18549 (s390_fill_gregset): Update to register number changes.
18550 (s390_get_hwcap): New routine.
18551 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18552 Install appropriate regmap and register set.
18553
6e7ffa39
JB
185542010-01-01 Joel Brobecker <brobecker@adacore.com>
18555
18556 * server.c (gdbserver_version): Update copyright year to 2010.
18557 * gdbreplay.c (gdbreplay_version): Likewise.
18558
957f3f49
DE
185592009-12-28 Doug Evans <dje@google.com>
18560
18561 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18562 elf/external.h. Include <elf.h> instead but only if necessary.
18563
ca5c370d
PA
185642009-12-28 Pedro Alves <pedro@codesourcery.com>
18565
18566 * linux-low.c (linux_remove_process): Remove `detaching'
18567 parameter. Don't release/detach from thread_db here.
18568 (linux_kill): Release/detach from thread_db here, ...
18569 (linux_detach): ... and here, before actually detaching.
18570 (linux_wait_1): ... and here, when a process exits.
18571 * thread-db.c (any_thread_of): New.
18572 (thread_db_free): Switch the current inferior to a thread of the
18573 passed in process.
18574
4ee62156
DE
185752009-12-21 Doug Evans <dje@google.com>
18576
d90e6a88
DE
18577 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18578
c5f62d5f
DE
18579 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18580 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18581 warning ifndef __NR_tkill. Move setting of errno there too.
18582 Delete unnecessary resetting of errno after syscall.
18583 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18584
10e86dd7
DE
18585 * configure.ac: Check for dladdr.
18586 * config.in: Regenerate.
18587 * configure: Regenerate.
18588 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18589 (try_thread_db_load): Update.
18590
4ee62156
DE
18591 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18592
00f515da
DE
185932009-12-18 Doug Evans <dje@google.com>
18594
e9464885
DE
18595 * event-loop.c: Include unistd.h if it exists.
18596
07d4f67e
DE
18597 * linux-low.c (my_waitpid): Move definition away from being in
18598 between linux_tracefork_child/linux_test_for_tracefork.
18599
00f515da
DE
18600 * gdb_proc_service.h (psaddr_t): Fix type.
18601 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18602 signature to match glibc.
18603
1de1badb
DE
186042009-12-16 Doug Evans <dje@google.com>
18605
18606 * linux-low.c (linux_read_memory): Fix argument to read.
18607
aeeb81d1
PA
186082009-11-26 Pedro Alves <pedro@codesourcery.com>
18609
18610 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18611 events, don't leave current_inferior pointing at null.
18612
10357975
PA
186132009-11-26 Pedro Alves <pedro@codesourcery.com>
18614
18615 * win32-low.c (LOG): Delete.
18616 (OUTMSG): Output to stderr.
18617 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18618 on compile time LOG macro.
18619 (win32_wait): Fix debug output.
18620
cf6e3471
PA
186212009-11-26 Pedro Alves <pedro@codesourcery.com>
18622
18623 * win32-low.c (win32_add_one_solib): If the dll name is
18624 "ntdll.dll", prepend the system directory to the dll path.
18625
0c85e18e
MK
186262009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18627
18628 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18629
9ac544ce 186302009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18631 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18632
18633 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18634 * configure.ac: Check for __mcoldfire__ and set
18635 gdb_cv_m68k_is_coldfire.
18636 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18637 reg-cf.o and reg-m68k.o.
18638 * configure: Regenerated.
18639
fd7dd3e6
PA
186402009-11-16 Pedro Alves <pedro@codesourcery.com>
18641
18642 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18643 Pass it to thread_db_free.
18644 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18645 proper `detaching' argument to linux_remove_process.
18646 * linux-low.h (thread_db_free): Add `detaching' parameter.
18647 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18648 to thread_db_free.
18649 (thread_db_free): Add `detaching' parameter. Only
18650 call td_ta_clear_event if detaching from process.
18651
75aa492e
MK
186522009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18653
18654 * thread-db.c (thread_db_free): Fix typo.
18655
21e1bee4
PP
186562009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18657
18658 PR gdb/10838
18659 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18660
8838b45e
NS
186612009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18662
18663 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18664 with an i686 compiler.
18665 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18666 needed.
18667 * configure: Rebuilt.
18668
8a35fb51
SL
186692009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18670
18671 PR gdb/10783
18672
18673 * server.c (handle_search_memory_1): Correct read_addr initialization
18674 in loop for searching subsequent chunks.
18675
96f15937
PP
186762009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18677
18678 * configure.ac: New --with-libthread-db option.
18679 * thread-db.c: Allow direct dependence on libthread_db.
18680 (thread_db_free): Adjust.
18681 * config.in: Regenerate.
18682 * configure: Likewise.
889bf7c5 18683
5f7d1694
PP
186842009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18685
18686 PR gdb/10757
18687 * thread-db.c (attach_thread): New function.
18688 (maybe_attach_thread): Return success/failure.
18689 (find_new_threads_callback): Adjust.
889bf7c5
PA
18690 (thread_db_find_new_threads): Loop until no new threads.
18691
88e3b899
PA
186922009-10-13 Pedro Alves <pedro@codesourcery.com>
18693
18694 * proc-service.c (ps_lgetregs): Formatting.
18695
cdbfd419
PP
186962009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18697
18698 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18699 * configure.ac: Adjust.
18700 * linux-low.h (struct process_info_private): Move members to struct
18701 thread_db.
18702 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18703 * linux-low.c (linux_remove_process): Adjust.
18704 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18705 * server.c (handle_query): Move code ...
18706 (handle_monitor_command): ... here. New function.
18707 * target.h (struct target_ops): New member.
18708 * thread-db.c (struct thread_db): New.
18709 (libthread_db_search_path): New variable.
18710 (thread_db_create_event, thread_db_enable_reporting)
18711 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18712 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18713 (try_thread_db_load_1, dladdr_to_soname): New functions.
18714 (try_thread_db_load, thread_db_load_search): New functions.
18715 (thread_db_init): Search for libthread_db.
18716 (thread_db_free): New function.
18717 (thread_db_handle_monitor_command): Likewise.
18718 * config.in: Regenerate.
18719 * configure: Regenerate.
889bf7c5 18720
4168d2d6
UW
187212009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18722
18723 * spu-low.c (spu_kill): Wait for inferior to terminate.
18724 Call clear_inferiors.
18725 (spu_detach): Call clear_inferiors.
18726
81ecdfbb
RW
187272009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18728
18729 * aclocal.m4: Regenerate.
18730 * config.in: Likewise.
18731 * configure: Likewise.
18732
0b9ff2c0
UW
187332009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18734
18735 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18736 (parse_spufs_run): New function.
18737 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18738 (ppc_breakpoint_at): Handle SPU breakpoints.
18739
efcbbd14
UW
187402009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18741
18742 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18743 (SPUFS_MAGIC): Define.
18744 (spu_enumerate_spu_ids): New function.
18745 (linux_qxfer_spu): New function.
18746 (linux_target_ops): Install linux_qxfer_spu.
18747
f4d9bade
UW
187482009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18749
18750 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18751 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18752 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18753 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18754 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18755 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18756 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18757 (init_registers_powerpc_cell32l): Add prototype.
18758 (init_registers_powerpc_cell64l): Likewise.
18759 (ppc_arch_setup): Detect Cell/B.E. architecture.
18760
96e946ca
RW
187612009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18762
18763 * Makefile.in (datarootdir): New variable.
18764
58d6951d
DJ
187652009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18766
18767 * linux-low.c (linux_write_memory): Update debugging output.
18768 * Makefile.in (clean): Add new descriptions.
18769 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18770 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18771 * configure.srv: Add new files for arm*-*-linux*.
18772 * linux-arm-low.c: Add new declarations.
18773 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18774 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18775 (HWCAP_VFPv3D16): New.
18776 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18777 instead of __IWMMXT__.
18778 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18779 (arm_arch_setup): New.
18780 (target_regsets): Remove #ifdef. Add VFP regset.
18781 (the_low_target): Use arm_arch_setup.
18782
12b42a12
DJ
187832009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18784
18785 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18786 the main thread again.
18787
ac8c974e
AR
187882009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18789
18790 Adding Neutrino gdbserver.
18791 * configure: Regenerated.
18792 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18793 * configure.srv (i[34567]86-*-nto*): New target.
18794 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18795 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18796 (nto_comctrl) [__QNX__]: New function.
18797 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18798
4424e0c3 187992009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18800
18801 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18802 srv_tgtobj.
18803
912cf4ba
PA
188042009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18805 Pedro Alves <pedro@codesourcery.com>
18806
18807 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18808 don't support CONTEXT_EXTENDED_REGISTERS.
18809 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18810 (the_low_target): Install them.
18811 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18812 failing with ERROR_PIPE_NOT_CONNECTED.
18813
aa5ca48f
DE
188142009-06-30 Doug Evans <dje@google.com>
18815 Pierre Muller <muller@ics.u-strasbg.fr>
18816
18817 Add h/w watchpoint support to x86-linux, win32-i386.
18818 * Makefile.in (SFILES): Add i386-low.c
18819 (i386_low_h): Define.
18820 (i386-low.o): Add dependencies.
18821 (linux-x86-low.o): Add i386-low.h dependency.
18822 (win32-i386-low.o): Ditto.
18823 * i386-low.c: New file.
18824 * i386-low.h: New file.
18825 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18826 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18827 * linux-low.c (linux_add_process): Initialize arch_private.
18828 (linux_remove_process): Free arch_private.
18829 (add_lwp): Initialize arch_private.
18830 (delete_lwp): Free arch_private.
18831 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18832 provided.
18833 * linux-low.h (process_info_private): New member arch_private.
18834 (lwp_info): New member arch_private.
18835 (linux_target_ops): New members new_process, new_thread,
18836 prepare_to_resume.
18837 (ptid_of): New macro.
18838 * linux-x86-low.c: Include stddef.h, i386-low.h.
18839 (arch_process_info): New struct.
18840 (arch_lwp_info): New struct.
18841 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18842 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18843 (i386_dr_low_get_status): New function.
18844 (x86_insert_point, x86_remove_point): New functions.
18845 (x86_stopped_by_watchpoint): New function.
18846 (x86_stopped_data_address): New function.
18847 (x86_linux_new_process, x86_linux_new_thread): New functions.
18848 (x86_linux_prepare_to_resume): New function.
18849 (the_low_target): Add entries for insert_point, remove_point,
18850 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18851 prepare_to_resume.
18852 * server.c (debug_hw_points): New global.
18853 (monitor_show_help): Document set debug-hw-points.
18854 (handle_query): Process "set debug-hw-points".
18855 * server.h (debug_hw_points): Declare.
18856 (paddress): Declare.
18857 * utils.c (NUMCELLS, CELLSIZE): New macros.
18858 (get_sell, xsnprintf, paddress): New functions.
18859 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18860 remove_point, stopped_by_watchpoint, stopped_data_address.
18861 * win32-i386-low.c: Include i386-low.h.
18862 (debug_reg_state): Replaces dr.
18863 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18864 (i386_dr_low_get_status): New function.
18865 (i386_insert_point, i386_remove_point): New functions.
18866 (i386_stopped_by_watchpoint): New function.
18867 (i386_stopped_data_address): New function.
18868 (i386_initial_stuff): Update.
18869 (get_thread_context,set_thread_context,i386_thread_added): Update.
18870 (the_low_target): Add entries for insert_point,
18871 remove_point, stopped_by_watchpoint, stopped_data_address.
18872 * win32-low.c (win32_insert_watchpoint): New function.
18873 (win32_remove_watchpoint): New function.
18874 (win32_stopped_by_watchpoint): New function.
18875 (win32_stopped_data_address): New function.
18876 (win32_target_ops): Add entries for insert_watchpoint,
18877 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18878 * win32-low.h (win32_target_ops): New members insert_point,
18879 remove_point, stopped_by_watchpoint, stopped_data_address.
18880
d993e290
PA
188812009-06-25 Pedro Alves <pedro@codesourcery.com>
18882
18883 * server.c (process_serial_event): Re-return unsupported, not
18884 error, if the type isn't recognized. Re-allow supporting only
18885 insert or remove packets. Also call require_running for
18886 breakpoints. Add missing break statement to default case. Tidy.
18887 * target.h (struct target_ops): Rename insert_watchpoint to
18888 insert_point, and remove_watchpoint to remove_point.
18889
18890 * linux-low.h (struct linux_target_ops): Likewise.
18891 * linux-low.c (linux_insert_watchpoint): Rename to ...
18892 (linux_insert_point): ... this. Adjust.
18893 (linux_remove_watchpoint): Rename to ...
18894 (linux_remove_point): ... this. Adjust.
18895 (linux_target_ops): Adjust.
18896 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18897 (cris_insert_point): ... this.
18898 (cris_remove_watchpoint): Rename to ...
18899 (cris_remove_point): ... this.
18900 (the_low_target): Adjust.
18901
0f54c268
PM
189022009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18903
18904 * server.c (handle_v_kill): Pass signal_pid to
18905 kill_inferior if multi_process is zero.
18906
c6314022
AR
189072009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18908
18909 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18910 * target.h (target_ops): Comment for *_watchpoint to make it clear
18911 the functions can get types '0' and '1'.
18912
4463ce24
AR
189132009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18914
18915 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18916 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18917 * regcache.c (get_regcache): Likewise.
18918 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18919 * win32-low.c (child_fetch_inferior_registers): Remove check for
18920 regno 0.
18921
cf8fd78b
PA
189222009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18923 Pedro Alves <pedro@codesourcery.com>
18924
18925 * target.h (struct target_ops) <supports_multi_process>: New
18926 callback.
18927 (target_supports_multi_process): New.
18928 * server.c (handle_query): Even if GDB reports support, only
18929 enable multi-process if the target also supports it. Report
18930 multi-process support only if the target backend supports it.
18931 * linux-low.c (linux_supports_multi_process): New function.
18932 (linux_target_ops): Install it as target_supports_multi_process
18933 callback.
18934
47c0c975
DE
189352009-05-24 Doug Evans <dje@google.com>
18936
e09875d4
DE
18937 Global renaming of find_thread_pid to find_thread_ptid.
18938 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18939 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18940 All callers updated.
18941
e27d73f6
DE
18942 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18943 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18944 directly.
18945
47c0c975
DE
18946 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18947 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18948 (linux_resume_one_lwp): Ditto.
18949
2acc282a
DE
189502009-05-23 Doug Evans <dje@google.com>
18951
18952 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18953 from struct inferior_list_entry * to struct lwp_info *.
18954 All callers updated.
18955
9f1036c1
DE
189562009-05-13 Doug Evans <dje@google.com>
18957
18958 * linux-x86-low.c: Don't include assert.h.
18959 (x86_siginfo_fixup): Use fatal, not assert.
18960 (x86_arch_setup): Fix comment.
18961
d0722149
DE
189622009-05-12 Doug Evans <dje@google.com>
18963
18964 Biarch support for i386/amd64 gdbserver.
18965 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18966 Add linux-x86-low.c.
18967 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18968 (linux-x86-low.o): Add.
18969 * linux-x86-64-low.c: Delete.
18970 * linux-i386-low.c: Delete.
18971 * linux-x86-low.c: New file.
18972 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18973 linux-x86-low.o.
18974 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18975 linux-x86-low.o.
18976 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18977 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18978 (linux_child_pid_to_exec_file): New function.
18979 (elf_64_header_p, elf_64_file_p): New functions.
18980 (siginfo_fixup): New function.
18981 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18982 give target a chance to convert layout.
18983 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18984 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18985
fdeb2a12
DE
189862009-05-07 Doug Evans <dje@google.com>
18987
18988 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18989 (regsets_store_inferior_registers): Ditto.
18990
a6dbe5df
PA
189912009-05-06 Pedro Alves <pedro@codesourcery.com>
18992
18993 PR server/10048
18994
18995 * linux-low.c (must_set_ptrace_flags): Delete.
18996 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18997 of the global.
18998 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18999 `lwp->must_set_ptrace_flags' instead.
ba42693b 19000 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19001 (linux_wait_1): ... not here.
19002
5091eb23
DE
190032009-04-30 Doug Evans <dje@google.com>
19004
9f767825
DE
19005 * inferiors.c (started_inferior_callback): New function.
19006 (attached_inferior_callback): New function.
19007 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19008 * server.c (print_started_pid, print_attached_pid): New functions.
19009 (detach_or_kill_for_exit): New function.
19010 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19011 * server.h (have_started_inferiors_p): Declare.
19012 (have_attached_inferiors_p): Declare.
19013
5091eb23
DE
19014 * inferiors.c (remove_process): Fix memory leak, free process.
19015 * linux-low.c (linux_remove_process): New function.
19016 (linux_kill): Call it instead of remove_process.
19017 (linux_detach, linux_wait_1): Ditto.
19018
155c8968
PA
190192009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19020
19021 * configure.srv: Add x86 Windows CE target.
19022
7fe519cb
UW
190232009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19024
19025 * inferiors.c (get_thread_process): Make global.
19026 * server.h (get_thread_process): Add prototype.
19027 * thread-db.c (find_one_thread): Use get_thread_process
19028 instead of current_process.
19029 (thread_db_get_tls_address): Do not crash if called when
19030 thread layer is not yet initialized.
19031
5472f405
UW
190322009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19033
19034 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19035 * spu-low.c (current_tid): Rename to ...
19036 (current_ptid): ... this.
19037 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19038 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19039 ptid_get_lwp (current_ptid) instead of current_tid.
19040 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19041 instead of current_tid. Use find_process_pid to verify pid
19042 argument is valid. Pass proper argument to remove_process.
19043 (spu_thread_alive): Compare current_ptid instead of current_tid.
19044 (spu_resume): Likewise.
19045
55ac2b99
PA
190462009-04-02 Pedro Alves <pedro@codesourcery.com>
19047
19048 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19049 variable.
19050
95954743
PA
190512009-04-01 Pedro Alves <pedro@codesourcery.com>
19052
19053 Implement the multiprocess extensions, and add linux multiprocess
19054 support.
19055
19056 * server.h (ULONGEST): Declare.
19057 (struct ptid, ptid_t): New.
19058 (minus_one_ptid, null_ptid): Declare.
19059 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19060 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19061 (struct inferior_list_entry): Change `id' type from unsigned from
19062 to ptid_t.
19063 (struct sym_cache, struct breakpoint, struct
19064 process_info_private): Forward declare.
19065 (struct process_info): Declare.
19066 (current_process): Declare.
19067 (all_processes): Declare.
19068 (initialize_inferiors): Declare.
19069 (add_thread): Adjust to use ptid_t.
19070 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19071 (add_process, remove_process, find_thread_pid): Declare.
19072 (find_inferior_id): Adjust to use ptid_t.
19073 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19074 (multi_process): Declare.
19075 (push_event): Adjust to use ptid_t.
19076 (read_ptid, write_ptid): Declare.
19077 (prepare_resume_reply): Adjust to use ptid_t.
19078 (clear_symbol_cache): Declare.
19079 * inferiors.c (all_processes): New.
19080 (null_ptid, minus_one_ptid): New.
19081 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19082 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19083 (add_thread): Change unsigned long to ptid. Remove gdb_id
19084 parameter. Adjust.
19085 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19086 (gdb_id_to_thread): Rename to ...
19087 (find_thread_pid): ... this. Change unsigned long to ptid.
19088 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19089 (loaded_dll, pull_pid_from_list): Adjust.
19090 (add_process, remove_process, find_process_pid)
19091 (get_thread_process, current_process, initialize_inferiors): New.
19092 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19093 (struct target_waitstatus) <related_pid>: Ditto.
19094 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19095 return type to int.
19096 (struct target_ops) <join>: Add `pid' argument.
19097 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19098 (struct target_ops) <wait>: Add `ptid' field. Change return type
19099 to ptid.
19100 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19101 (mywait): Add `ptid' argument. Change return type to ptid_t.
19102 (target_pid_to_str): Declare.
19103 * target.c (set_desired_inferior): Adjust to use ptids.
19104 (mywait): Add new `ptid' argument. Adjust.
19105 (target_pid_to_str): New.
19106 * mem-break.h (free_all_breakpoints): Declare.
19107 * mem-break.c (breakpoints): Delelete.
19108 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19109 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19110 to use per-process breakpoint list.
19111 (free_all_breakpoints): New.
19112 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19113 (symbol_cache, all_symbols_looked_up): Delete.
19114 (hexchars): New.
19115 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19116 read_ptid): New.
19117 (prepare_resume_reply): Change ptid argument's type from unsigned
19118 long to ptid_t. Adjust. Implement W;process and X;process.
19119 (free_sym_cache, clear_symbol_cache): New.
19120 (look_up_one_symbol): Adjust to per-process symbol cache. *
19121 * server.c (cont_thread, general_thread, step_thread): Change type
19122 to ptid_t.
19123 (attached): Delete.
19124 (multi_process): New.
19125 (last_ptid): Change type to ptid_t.
19126 (struct vstop_notif) <ptid>: Change type to ptid_t.
19127 (queue_stop_reply, push_event): Change `ptid' argument's type to
19128 ptid_t.
19129 (discard_queued_stop_replies): Add `pid' argument.
19130 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19131 changes. Don't reference the `attached' global.
19132 (attach_inferior): Adjust to mywait interface changes.
19133 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19134 features. Handle and report "multiprocess+". Handle
19135 "qAttached:PID".
19136 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19137 changes.
19138 (handle_v_kill): New.
19139 (handle_v_stopped): Adjust to use target_pid_to_str.
19140 (handle_v_requests): Allow multiple attaches and runs when
19141 multiprocess extensions are in effect. Handle "vKill".
19142 (myresume): Adjust to use ptids.
19143 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19144 (handle_status): Adjust to discard_queued_stop_replies interface
19145 change.
19146 (first_thread_of, kill_inferior_callback)
19147 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19148 (main): Call initialize_inferiors. Adjust to use ptids, killing
19149 and detaching from all inferiors. Handle multiprocess packet
19150 variants.
19151 * linux-low.h: Include gdb_proc_service.h.
19152 (struct process_info_private): New.
19153 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19154 <lwpid_of>: Use ptid_get_lwp.
19155 (get_lwp_thread): Adjust.
19156 (struct lwp_info): Add `dead' member.
19157 (find_lwp_pid): Declare.
19158 * linux-low.c (thread_db_active): Delete.
19159 (new_inferior): Adjust comment.
19160 (inferior_pid): Delete.
19161 (linux_add_process): New.
19162 (handle_extended_wait): Adjust.
19163 (add_lwp): Change unsigned long to ptid.
19164 (linux_create_inferior): Add process to processes table. Adjust
19165 to use ptids. Don't set new_inferior here.
19166 (linux_attach_lwp): Rename to ...
19167 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19168 it. Adjust to use ptids.
19169 (linux_attach_lwp): New.
19170 (linux_attach): Add process to processes table. Don't set
19171 new_inferior here.
19172 (struct counter): New.
19173 (second_thread_of_pid_p, last_thread_of_process_p): New.
19174 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19175 multiple processes.
19176 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19177 processes. Remove process from process table.
19178 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19179 to multiple processes.
19180 (any_thread_of): New.
19181 (linux_detach): Add `pid' argument, and handle it. Remove process
19182 from processes table.
19183 (linux_join): Add `pid' argument. Handle it.
19184 (linux_thread_alive): Change unsighed long argument to ptid_t.
19185 Consider dead lwps as not being alive.
19186 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19187 threads we're not interested in.
19188 (same_lwp, find_lwp_pid): New.
19189 (linux_wait_for_lwp): Change `pid' argument's type from int to
19190 ptid_t. Adjust.
19191 (linux_wait_for_event): Rename to ...
19192 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19193 from int to ptid_t. Adjust.
19194 (linux_wait_for_event): New.
19195 (linux_wait_1): Add `ptid' argument. Change return type to
19196 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19197 that exit from the process table.
19198 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19199 Adjust.
19200 (mark_lwp_dead): New.
19201 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19202 stopping all threads, mark its main lwp as dead.
19203 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19204 ptids.
19205 (fetch_register, usr_store_inferior_registers)
19206 (regsets_fetch_inferior_registers)
19207 (regsets_store_inferior_registers, linux_read_memory)
19208 (linux_write_memory): Inline `inferior_pid'.
19209 (linux_look_up_symbols): Adjust to use per-process
19210 `thread_db_active'.
19211 (linux_request_interrupt): Adjust to use ptids.
19212 (linux_read_auxv): Inline `inferior_pid'.
19213 (initialize_low): Don't reference thread_db_active.
19214 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19215 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19216 (ps_getpid): Return the pid of the current inferior.
19217 * thread-db.c (proc_handle, thread_agent): Delete.
19218 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19219 per-process data.
19220 (find_one_thread): Change argument type to ptid_t. Adjust to
19221 per-process data.
19222 (maybe_attach_thread): Adjust to per-process data and ptids.
19223 (thread_db_find_new_threads): Ditto.
19224 (thread_db_init): Ditto.
19225 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19226 processes table. Adjust to use ptids.
19227 (spu_kill, spu_detach): Adjust interface. Remove process from
19228 processes table.
19229 (spu_join, spu_thread_alive): Adjust interface.
19230 (spu_wait): Adjust interface. Remove process from processes
19231 table. Adjust to use ptids.
19232 * win32-low.c (current_inferior_tid): Delete.
19233 (current_inferior_ptid): New.
19234 (debug_event_ptid): New.
19235 (thread_rec): Take a ptid. Adjust.
19236 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19237 (child_delete_thread): Ditto.
19238 (do_initial_child_stuff): Add `attached' argument. Add process to
19239 processes table.
19240 (child_fetch_inferior_registers, child_store_inferior_registers):
19241 Adjust.
19242 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19243 (win32_attach): Pass 1 to do_initial_child_stuff.
19244 (win32_kill): Adjust interface. Remove process from processes
19245 table.
19246 (win32_detach): Ditto.
19247 (win32_join): Adjust interface.
19248 (win32_thread_alive): Take a ptid.
19249 (win32_resume): Adjust to use ptids.
19250 (get_child_debug_event): Ditto.
19251 (win32_wait): Adjust interface. Remove exiting process from
19252 processes table.
19253
bd99dc85
PA
192542009-04-01 Pedro Alves <pedro@codesourcery.com>
19255
19256 Non-stop mode support.
19257
19258 * server.h (non_stop): Declare.
19259 (gdb_client_data, handler_func): Declare.
19260 (delete_file_handler, add_file_handler, start_event_loop):
19261 Declare.
19262 (handle_serial_event, handle_target_event, push_event)
19263 (putpkt_notif): Declare.
19264 * target.h (enum resume_kind): New.
19265 (struct thread_resume): Replace `step' field by `kind' field.
19266 (TARGET_WNOHANG): Define.
19267 (struct target_ops) <wait>: Add `options' argument.
19268 <supports_non_stop, async, start_non_stop>: New fields.
19269 (target_supports_non_stop, target_async): New.
19270 (start_non_stop): Declare.
19271 (mywait): Add `options' argument.
19272 * target.c (mywait): Add `options' argument. Print child exit
19273 notifications here.
19274 (start_non_stop): New.
19275 * server.c (non_stop, own_buf, mem_buf): New globals.
19276 (struct vstop_notif): New.
19277 (notif_queue): New global.
19278 (queue_stop_reply, push_event, discard_queued_stop_replies)
19279 (send_next_stop_reply): New.
19280 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19281 interface changes.
19282 (attach_inferior): In non-stop mode, don't wait for the target
19283 here.
19284 (handle_general_set): Handle QNonStop.
19285 (handle_query): When handling qC, return the current general
19286 thread, instead of the first thread of the list.
19287 (handle_query): If the backend supports non-stop mode, include
19288 QNonStop+ in the qSupported query response.
19289 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19290 and non-stop mode.
19291 (handle_v_attach, handle_v_run): Handle non-stop mode.
19292 (handle_v_stopped): New.
19293 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19294 (myresume): Adjust to use resume_kind. Handle non-stop.
19295 (queue_stop_reply_callback): New.
19296 (handle_status): Handle non-stop mode.
19297 (main): Clear non_stop flag on reconnection. Use the event-loop.
19298 Refactor serial protocol handling from here ...
19299 (process_serial_event): ... to this new function. When GDB
19300 selects any thread, select one here. In non-stop mode, wait until
19301 GDB acks all pending events before exiting.
19302 (handle_serial_event, handle_target_event): New.
19303 * remote-utils.c (remote_open): Install remote_desc in the event
19304 loop.
19305 (remote_close): Remove remote_desc from the event loop.
19306 (putpkt_binary): Rename to...
19307 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19308 (putpkt_binary): New as wrapper around putpkt_binary_1.
19309 (putpkt_notif): New.
19310 (prepare_resume_reply): In non-stop mode, don't change the
19311 general_thread.
19312 * event-loop.c: New.
19313 * Makefile.in (OBJ): Add event-loop.o.
19314 (event-loop.o): New rule.
19315
19316 * linux-low.h (pid_of): Moved here.
19317 (lwpid_of): New.
19318 (get_lwp_thread): Use lwpid_of.
19319 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19320 * linux-low.c (pid_of): Delete.
19321 (inferior_pid): Use lwpid_of.
19322 (linux_event_pipe): New.
19323 (target_is_async_p): New.
19324 (delete_lwp): New.
19325 (handle_extended_wait): Use lwpid_of.
19326 (add_lwp): Don't set lwpid field.
19327 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19328 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19329 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19330 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19331 first. Adjust to linux_wait_for_event interface changes. Use
19332 lwpid_of.
19333 (linux_detach): Don't delete the main lwp here.
19334 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19335 (status_pending_p): Don't consider explicitly suspended lwps.
19336 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19337 pointer. Add OPTIONS argument. Change return type to int. Use
19338 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19339 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19340 pointer. Add status pointer argument. Return a pid instead of a
19341 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19342 changes. In non-stop mode, don't switch to a random thread.
19343 (linux_wait): Rename to...
19344 (linux_wait_1): ... this. Add target_options argument, and handle
19345 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19346 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19347 clean exit and signal exit code. Don't stop all threads in
19348 non-stop mode. In all-stop mode, only stop all threads when
19349 reporting a stop to GDB. Handle explicit thread stop requests.
19350 (async_file_flush, async_file_mark): New.
19351 (linux_wait): New.
19352 (send_sigstop): Use lwpid_of.
19353 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19354 interface changes. In non-stop mode, don't switch to a random
19355 thread.
19356 (linux_resume_one_lwp): Use lwpid_of.
19357 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19358 (linux_resume_one_thread): ... this. Handle resume_stop. In
19359 non-stop mode, don't look for pending flag in all threads.
19360 (resume_status_pending_p): Don't consider explicitly suspended
19361 threads.
19362 (my_waitpid): Reimplement. Emulate __WALL.
19363 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19364 Use lwpid_of.
19365 (sigchld_handler, linux_supports_non_stop, linux_async)
19366 (linux_start_non_stop): New.
19367 (linux_target_ops): Register linux_supports_non_stop, linux_async
19368 and linux_start_non_stop.
19369 (initialize_low): Install SIGCHLD handler.
19370 * thread-db.c (thread_db_create_event, find_one_thread)
19371 (thread_db_get_tls_address): Use lwpid_of.
19372 * win32-low.c (win32_detach): Adjust to use resume_kind.
19373 (win32_wait): Add `options' argument.
19374 * spu-low.c (spu_resume): Adjust to use resume_kind.
19375 (spu_wait): Add `options' argument.
19376
5b1c542e
PA
193772009-04-01 Pedro Alves <pedro@codesourcery.com>
19378
19379 Decouple target code from remote protocol.
19380
19381 * target.h (enum target_waitkind): New.
19382 (struct target_waitstatus): New.
19383 (struct target_ops) <wait>: Return an unsigned long. Take a
19384 target_waitstatus pointer instead of a char pointer.
19385 (mywait): Likewise.
19386 * target.c (mywait): Change prototype to return an unsigned long.
19387 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19388 * server.h (thread_from_wait, old_thread_from_wait): Delete
19389 declarations.
19390 (prepare_resume_reply): Change prototype to take a
19391 target_waitstatus.
19392 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19393 (last_status, last_ptid): New.
19394 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19395 pid instead of a signal.
19396 (attach_inferior): Remove "status" and "signal" parameters.
19397 Adjust.
19398 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19399 not as an address.
19400 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19401 (handle_v_requests, myresume): Remove "status" and "signal"
19402 parameters. Adjust.
19403 (handle_status): New.
19404 (main): Delete local `status'. Adjust.
19405 * remote-utils.c: Include target.h.
19406 (prepare_resume_reply): Change prototype to take a
19407 target_waitstatus. Adjust.
19408
19409 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19410 interface.
19411 * spu-low.c (spu_wait): Adjust.
19412 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19413 Delete.
19414 (win32_wait): Adjust.
19415
2bd7c093
PA
194162009-04-01 Pedro Alves <pedro@codesourcery.com>
19417
19418 * target.h (struct thread_resume): Delete leave_stopped member.
19419 (struct target_ops): Add a `n' argument to the `resume' callback.
19420 * server.c (start_inferior): Adjust.
19421 (handle_v_cont, myresume): Adjust.
19422 * linux-low.c (check_removed_breakpoint): Adjust to resume
19423 interface change, and to removed leave_stopped field.
19424 (resume_ptr): Delete.
19425 (struct thread_resume_array): New.
19426 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19427 resume interface change.
19428 (linux_continue_one_thread, linux_queue_one_thread)
19429 (resume_status_pending_p): Check if the resume field is NULL
19430 instead of checking the leave_stopped member.
19431 (linux_resume): Adjust to the target resume interface change.
19432 * spu-low.c (spu_resume): Adjust to the target resume interface
19433 change.
19434 * win32-low.c (win32_detach, win32_resume): Ditto.
19435
c35fafde
PA
194362009-04-01 Pedro Alves <pedro@codesourcery.com>
19437
19438 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19439 flag.
19440 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19441 pending.
19442 (linux_continue_one_thread): Only preserve the stepping flag if
19443 there's a pending breakpoint.
19444
0a59d50b
PA
194452009-03-31 Pedro Alves <pedro@codesourcery.com>
19446
19447 * server.c (main): After the inferior having exited, call
19448 remote_close before exiting gdbserver.
19449
f04c6d38
TJB
194502009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19451
19452 Fix size of FPSCR in Power 7 processors.
19453 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19454 (PPC_FEATURE_HAS_DFP): New #define.
19455 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19456 size of the FPSCR.
19457
78e5cee6
PA
194582009-03-23 Pedro Alves <pedro@codesourcery.com>
19459
19460 * server.c (handle_query) Whitespace and formatting.
19461
1b3f6016
PA
194622009-03-22 Pedro Alves <pedro@codesourcery.com>
19463
19464 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19465 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19466 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19467 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19468 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19469 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19470 Makefile.in, configure.ac: Fix whitespace throughout.
19471 * configure: Regenerate.
19472
a07b2135
PA
194732009-03-22 Pedro Alves <pedro@codesourcery.com>
19474
19475 * inferiors.c (find_inferior): Make it safe for the callback
19476 function to delete the currently iterated inferior.
19477
67cc2626
PA
194782009-03-22 Pedro Alves <pedro@codesourcery.com>
19479
19480 * Makefile.in (linuw_low_h): Move higher.
19481 (thread-db.o): Depend on $(linux_low_h).
19482
54a0b537
PA
194832009-03-17 Pedro Alves <pedro@codesourcery.com>
19484
19485 Rename "process" to "lwp" throughout.
19486
19487 * linux-low.c (all_processes): Rename to...
19488 (all_lwps): ... this.
19489 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19490 (add_process): Rename to ...
19491 (add_lwp): ... this. Adjust.
19492 (linux_create_inferior): Adjust.
19493 (linux_attach_lwp): Adjust.
19494 (linux_attach): Adjust.
19495 (linux_kill_one_process): Rename to ...
19496 (linux_kill_one_lwp): ... this. Adjust.
19497 (linux_kill): Adjust.
19498 (linux_detach_one_process): Rename to ...
19499 (linux_detach_one_lwp): ... this. Adjust.
19500 (linux_detach): Adjust.
19501 (check_removed_breakpoint): Adjust.
19502 (status_pending_p): Adjust.
19503 (linux_wait_for_process): Rename to ...
19504 (linux_wait_for_lwp): ... this. Adjust.
19505 (linux_wait_for_event): Adjust.
19506 (send_sigstop): Adjust.
19507 (wait_for_sigstop): Adjust.
19508 (stop_all_processes): Rename to ...
19509 (stop_all_lwps): ... this.
19510 (linux_resume_one_process): Rename to ...
19511 (linux_resume_one_lwp): ... this. Adjust.
19512 (linux_set_resume_request, linux_continue_one_thread)
19513 (linux_queue_one_thread, resume_status_pending_p)
19514 (usr_store_inferior_registers, regsets_store_inferior_registers)
19515 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19516 Adjust.
19517 * linux-low.h (get_process): Rename to ...
19518 (get_lwp): ... this. Adjust.
19519 (get_thread_process): Rename to ...
19520 (get_thread_lwp): ... this. Adjust.
19521 (get_process_thread): Rename to ...
19522 (get_lwp_thread): ... this. Adjust.
19523 (struct process_info): Rename to ...
19524 (struct lwp_info): ... this.
19525 (all_processes): Rename to ...
19526 (all_lwps): ... this.
19527 * proc-service.c (ps_lgetregs): Adjust.
19528 * thread-db.c (thread_db_create_event, find_one_thread)
19529 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19530
0b16c5cf
PA
195312009-03-14 Pedro Alves <pedro@codesourcery.com>
19532
19533 * server.c (handle_query): Handle "qAttached".
19534
32de4b9d
NS
195352009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19536
19537 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19538 GPLv3, update license URL.
19539
2aecd87f
DE
195402009-03-01 Doug Evans <dje@google.com>
19541
93efd302 19542 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19543 (server_h): Add gdb_signals.h.
19544 (signals.o): Update.
19545 * server.h (target_signal_from_host,target_signal_to_host_p)
19546 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19547
86b1f9c5
PM
195482009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19549
19550 * remote-utils.c (getpkt): Also generate remote-debug
19551 information if noack_mode is set.
19552
4aa995e1
PA
195532009-02-06 Pedro Alves <pedro@codesourcery.com>
19554
19555 * server.c (handle_query): Report qXfer:siginfo:read and
19556 qXfer:siginfo:write as supported and handle them.
19557 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19558 * linux-low.c (linux_xfer_siginfo): New.
19559 (linux_target_ops): Set it.
19560
62709adf
PA
195612009-01-26 Pedro Alves <pedro@codesourcery.com>
19562
19563 * server.c (gdbserver_usage): Mention --remote-debug.
19564 (main): Accept '--remote-debug' switch.
19565
aef93bd7
DE
195662009-01-18 Doug Evans <dje@google.com>
19567
19568 * regcache.c (new_register_cache): No need to check result of xcalloc.
19569 * server.c (handle_search_memory): Back out calls to xmalloc,
19570 result is checked and error is returned to user upon failure.
19571 (handle_query): Ditto. Add more checks for result of malloc.
19572 (handle_v_cont): Check result of malloc, report error back to
19573 user upon failure.
19574 (handle_v_run): Ditto. Call freeargv.
19575 * server.h (freeargv): Declare.
19576 * utils.c (freeargv): New fn.
19577
54363045
DE
195782009-01-15 Doug Evans <dje@google.com>
19579
f626972c
DE
19580 * gdbreplay.c (perror_with_name): Make arg const char *.
19581 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19582 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19583 * utils.c (perror_with_name): Make arg const char *.
54363045 19584
18aae699
PA
195852009-01-14 Pedro Alves <pedro@codesourcery.com>
19586
19587 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19588 when handling a EXIT_PROCESS_DEBUG_EVENT.
19589
ff703abe
JB
195902009-01-06 Joel Brobecker <brobecker@adacore.com>
19591
19592 * gdbreplay.c (gdbreplay_version): Update copyright year.
19593 * server.c (gdbserver_version): Likewise.
19594
f21cc1a2 195952009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19596
19597 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19598 (handle_extended_wait): Improve comment.
0e21c1ec 19599
bca929d3
DE
196002008-12-13 Doug Evans <dje@google.com>
19601
19602 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19603 * server.h (ATTR_MALLOC): New macro.
19604 (xmalloc,xcalloc,xstrdup): Declare.
19605 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19606 * inferiors.c: Ditto.
19607 * linux-low.c: Ditto.
19608 * mem-break.c: Ditto.
19609 * regcache.c: Ditto.
19610 * remote-utils.c: Ditto.
19611 * server.c: Ditto.
19612 * target.c: Ditto.
19613 * win32-low.c: Ditto.
19614
97438e3f
DE
196152008-12-12 Doug Evans <dje@google.com>
19616
896c7fbb
DE
19617 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19618 in debugging printf.
19619
97438e3f
DE
19620 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19621
e3b886f8
DE
196222008-12-09 Doug Evans <dje@google.com>
19623
19624 * linux-low.h (struct process_info): Delete member tid, unused.
19625 * thread-db.c (find_one_thread): Update.
19626 (maybe_attach_thread): Update.
19627
07e059b5
VP
196282008-12-02 Pedro Alves <pedro@codesourcery.com>
19629
889bf7c5
PA
19630 * target.h (struct target_ops): Add qxfer_osdata member.
19631 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19632 and dirent.h.
19633 (linux_qxfer_osdata): New functions.
19634 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19635 callback.
19636 * server.c (handle_query): Handle "qXfer:osdata:read:".
19637 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19638 (buffer_xml_printf): New functions.
19639 * server.h (struct buffer): New.
19640 (buffer_grow_str, buffer_grow_str0): New macros.
19641 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19642 (buffer_xml_printf): Declare.
07e059b5 19643
4cab47ab
DE
196442008-11-24 Doug Evans <dje@google.com>
19645
19646 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19647
f142445f
DJ
196482008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19649
19650 * server.c (handle_v_run): Always use the supplied argument list.
19651
d0107bb6 196522008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19653
d0107bb6
BW
19654 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19655 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19656
2c4ad781
TJB
196572008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19658
19659 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19660 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19661 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19662 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19663 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19664 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19665 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19666 XML target descriptions.
19667 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19668 when inferior is running on an ISA 2.05 or later processor. Add
19669 special case to return offset for full 64-bit slot of FPSCR when
19670 in 32-bits.
19671
dfb64f85
DJ
196722008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19673
19674 * Makefile.in (SFILES, clean): Added sparc64 files.
19675 (reg-sparc64.o, reg-sparc64.c): New.
19676 * configure.srv (sparc*-*-linux*): New configuration.
19677 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19678 syscall arguments for SPARC.
19679 (regsets_store_inferior_registers): Likewise.
19680 * linux-sparc-low.c: New file.
19681
66b6e1dd
DE
196822008-10-21 Doug Evans <dje@google.com>
19683
19684 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19685 (READLINE_DIR,READLINE_DEP): Delete.
19686 (INTERNAL_CFLAGS): Update.
19687 (LINTFLAGS): Update.
19688
9b710a42
PA
196892008-10-10 Pedro Alves <pedro@codesourcery.com>
19690
19691 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19692 whole argv from the last run, not just argv[0].
19693
5822d809
PA
196942008-09-08 Pedro Alves <pedro@codesourcery.com>
19695
19696 * regcache.c (new_register_cache): Return NULL if the register
19697 cache size isn't known yet.
19698 (free_register_cache): Avoid dereferencing a NULL regcache.
19699
74aac56f
DJ
197002008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19701
19702 * configure.srv: Merge MIPS and MIPS64.
19703
400b20f5
MR
197042008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19705
19706 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19707
677c5bb1
LM
197082008-08-18 Luis Machado <luisgpm@br.ibm.com>
19709
19710 * Makefile.in: Add required vsx dependencies.
19711
19712 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19713 Declare init_registers_powerpc_vsx32l.
19714 Declare init_registers_powerpc_vsx64l.
19715 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19716 (ppc_arch_setup): Check for VSX in hwcap.
19717 (ppc_fill_vsxregset): New function.
19718 (ppc_store_vsxregset): New function.
19719 Add new VSX entry in regset_info target_regsets.
19720
19721 * configure.srv: Add new VSX dependencies.
19722
a6f3e723
SL
197232008-08-12 Pedro Alves <pedro@codesourcery.com>
19724
19725 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19726 (remote_open): Set or clear transport_is_reliable.
19727 (putpkt_binary): Don't expect acks in noack mode.
19728 (getpkt): Don't send ack/nac in noack mode.
19729 * server.c (handle_general_set): Handle QStartNoAckMode.
19730 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19731 qSupported.
19732 (main): Reset noack_mode on every connection.
19733 * server.h (noack_mode): Declare.
19734
a417dc56
RW
197352008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19736
19737 * Makefile.in (GDBREPLAY_OBS): New variable.
19738 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19739
3221518c
UW
197402008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19741 Daniel Jacobowitz <dan@codesourcery.com>
19742
19743 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19744 (usr_store_inferior_registers): Likewise.
19745 (regsets_store_inferior_registers): Likewise.
19746
ec56be1b
PA
197472008-07-31 Rolf Jansen <rj@surtec.com>
19748 Pedro Alves <pedro@codesourcery.com>
19749
19750 * configure.ac: Check for memmem declaration.
19751 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19752 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19753 (disable_packet_qfThreadInfo): Unconditionally compile.
19754 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19755 * configure, config.in: Regenerate.
19756
2fe5e3ff
DE
197572008-07-28 Doug Kwan <dougkwan@google.com>
19758
19759 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19760 (linux_write_memory): Remove declaration of errno.
19761
836acd6d
UW
197622008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19763
19764 * linux-low.c (handle_extended_wait): Do not use "status"
19765 variable uninitialized.
19766
aeba519e
PA
197672008-07-07 Pedro Alves <pedro@codesourcery.com>
19768
19769 * server.c (handle_v_attach): Inhibit reporting dll changes.
19770
db42f210
PA
197712008-06-27 Pedro Alves <pedro@codesourcery.com>
19772
19773 * remote-utils.c (prepare_resume_reply): If requested, don't
19774 output "thread:TID" in the T stop reply.
19775
19776 * server.c (disable_packet_vCont, disable_packet_Tthread)
19777 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19778 (handle_query): If requested, disable support for qC, qfThreadInfo
19779 and qsThreadInfo.
19780 (handle_v_requests): If requested, disable support for vCont.
19781 (gdbserver_show_disableable): New.
19782 (main): Handle --disable-packet and --disable-packet=LIST.
19783
19784 * server.h (disable_packet_vCont, disable_packet_Tthread)
19785 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19786
8e4c5421
CD
197872008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19788
19789 * server.c (gdbserver_usage): Mention --version.
19790
6e23a804
DJ
197912008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19792
19793 * Makefile.in (gdbreplay.o): New rule.
19794
90aa6a40
JM
197952008-06-06 Joseph Myers <joseph@codesourcery.com>
19796
19797 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19798 message, not gdbserver.
19799
c16158bc 198002008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19801 Nathan Sidwell <nathan@codesourcery.com>
19802 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19803
19804 * acinclude.m4: Include ../../config/acx.m4.
19805 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19806 * configure, config.in: Regenerate.
19807 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19808 * server.c (gdbserver_version): Print PKGVERSION.
19809 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19810 (main): Adjust gdbserver_usage calls.
19811 * gdbreplay.c (version, host_name): Add declarations.
19812 (gdbreplay_version, gdbreplay_usage): New.
19813 (main): Accept --version and --help options.
19814
aeb75bf5
DJ
198152008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19816
19817 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19818 (arm_breakpoint_at): Handle Thumb.
19819 (the_low_target): Add comment.
19820
76b233dd
UW
198212008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19822
19823 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19824
08388c79
DE
198252008-05-09 Doug Evans <dje@google.com>
19826
a3c83fae
DE
19827 * server.h (decode_search_memory_packet): Declare.
19828 * remote-utils.c (decode_search_memory_packet): New fn.
19829 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19830 (handle_search_memory): New fn.
19831 (handle_query): Process qSearch:memory packets.
19832
bb9c3d36
UW
198332008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19834
19835 * regcache.c (registers_length): Remove.
19836 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19837 full register packet.
19838 * regcache.h (registers_length): Remove prototype.
19839 * server.h (PBUFSIZ): Define to 16384.
19840
7284e1be
UW
198412008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19842
19843 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19844 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19845 powerpc-64l.o, and powerpc-altivec64l.o.
19846 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19847 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19848 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19849 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19850 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19851 to srv_xmlfiles.
19852
19853 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19854 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19855 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19856 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19857 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19858 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19859 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19860 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19861 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19862 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19863 (clean): Update.
19864
19865 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19866 (init_registers_powerpc_32l): ... this new prototype.
19867 (init_registers_powerpc_32): Remove, replace by ...
19868 (init_registers_powerpc_altivec32l): ... this new prototype.
19869 (init_registers_powerpc_e500): Remove, replace by ...
19870 (init_registers_powerpc_e500l): ... this new prototype.
19871 (init_registers_ppc64): Remove, replace by ...
19872 (init_registers_powerpc_64l): ... this new prototype.
19873 (init_registers_powerpc_64): Remove, replace by ...
19874 (init_registers_powerpc_altivec64l): ... this new prototype.
19875 (ppc_num_regs): Set to 73.
19876 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19877 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19878 (ppc_cannot_store_register): Handle orig_r3 and trap.
19879 (ppc_arch_setup): Update init_registers_... calls.
19880 (ppc_fill_gregset): Handle orig_r3 and trap.
19881
19882 * inferiors.c (clear_inferiors): Reset current_inferior.
19883
fdc59709
PB
198842008-04-23 Paolo Bonzini <bonzini@gnu.org>
19885
889bf7c5
PA
19886 * acinclude.m4: Add override.m4.
19887 * configure: Regenerate.
fdc59709 19888
c9b2f845
UW
198892008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19890
19891 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19892 initial call to init_register_ppc64.
19893
550512b8
UW
198942008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19895
43aaf8b6
PA
19896 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19897 single powerpc*-*-linux* case.
550512b8
UW
19898 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19899
b6430ec3
UW
199002008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19901
19902 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19903 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19904 from reg_xmlfiles.
19905 * linux-ppc-low.c: Include <elf.h>.
19906 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19907 (ppc_hwcap): New global variable.
19908 (ppc_regmap): Remove __SPE__ #ifdef sections.
19909 (ppc_regmap_e500): New global variable.
19910 (ppc_cannot_store_register): Update __SPE__ special case.
19911 (ppc_get_hwcap): New function.
19912 (ppc_arch_setup): Use it to determine whether inferior supports
19913 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19914 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19915 Do not access registers if target does not support AltiVec.
19916 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19917 Do not access registers if target does not support SPE.
19918 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19919
52fa2412
UW
199202008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19921
19922 * linux-low.c (disabled_regsets, num_regsets): New.
19923 (use_regsets_p): Delete.
19924 (linux_wait_for_process): Clear disabled_regsets.
19925 (regsets_fetch_inferior_registers): Check and set it.
19926 (regsets_store_inferior_registers): Likewise.
19927 (linux_fetch_registers, linux_store_registers): Do not use
19928 use_regsets_p.
19929 (initialize_low): Allocate disabled_regsets.
19930
e28b3332
DJ
199312008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19932
19933 * Makefile.in (LIBOBJS): New.
19934 (OBS): Use LIBOBJS.
19935 (memmem.o): New rule.
19936 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19937 * configure: Regenerated.
19938
4536995d
UW
199392008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19940
19941 * server.c (handle_query): Never return "unsupported" for
19942 qXfer:features:read queries.
19943
221c031f
UW
199442008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19945
19946 * server.c (get_features_xml): Fix inverted condition.
19947 (handle_query): Always support qXfer:feature:read.
19948
ccd213ac
DJ
199492008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19950
19951 * server.c (wrapper_argv): New.
19952 (start_inferior): Handle wrapper_argv. If set, expect an extra
19953 trap.
19954 (gdbserver_usage): Document --wrapper.
19955 (main): Parse --wrapper.
19956
6fe305f7
UW
199572008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19958
19959 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19960 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19961 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19962 (ppc_set_pc): Likewise.
19963 (ppc_arch_setup): New function.
19964 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19965 of collect_register.
889bf7c5 19966 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19967
5b0a002e
UW
199682008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19969
19970 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19971 instead of linux-ppc64-low.o.
19972 * linux-ppc64-low.c: Remove file.
19973 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19974 (linux-ppc64-low.o): Remove rule.
19975
19976 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19977 (init_registers_powerpc_64): Likewise.
19978 (ppc_regmap): Conditionally define depending on __powerpc64__.
19979 (ppc_cannot_store_register): Do not special-case "fpscr" when
19980 compiled on __powerpc64__.
19981 (ppc_collect_ptrace_register): New function.
19982 (ppc_supply_ptrace_register): New function.
19983 (ppc_breakpoint): Change type to "unsigned int".
19984 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19985 (the_low_target): Conditionally provide initializers for the
889bf7c5 19986 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19987 collect_ptrace_register and supply_ptrace_register members.
19988
9b4b61c8
UW
199892008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19990
19991 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19992 * server.c (gdbserver_xmltarget): Define.
19993 (get_features_xml): Use it to replace "target.xml" and arch_string.
19994
19995 * configure.srv: Remove srv_xmltarget. Add XML files that were
19996 mentioned there to srv_xmlfiles instead. Remove conditional tests
19997 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19998 srv_xmlfiles and srv_regobj to include all possible choices.
19999 * configure.ac (srv_xmltarget): Remove.
20000 (srv_xmlfiles): Do not add "target.xml".
20001 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20002 checks for supplementary target information.
20003 * configure: Regenerate.
20004 * Makefile.in (XML_TARGET): Remove.
20005 (target.xml): Remove rule.
20006 (clean): Do not clean up target.xml.
20007 (.PRECIOUS): Do not mention target.xml.
20008
20009 * target.h (struct target_ops): Remove arch_string member.
20010 * linux-low.c (linux_arch_string): Remove.
20011 (linux_target_ops): Remove arch_string initializer.
20012 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20013 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20014 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20015 * spu-low.c (spu_arch_string): Remove.
20016 (spu_target_ops): Remove arch_string initializer.
20017 * win32-low.c (win32_arch_string): Remove.
20018 (win32_target_ops): Remove arch_string initializer.
20019 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20020 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20021 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20022
ee1a7ae4
UW
200232008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20024
20025 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20026 by collect_ptrace_register and supply_ptrace_register hooks.
20027 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20028 instead of checking for the_low_target.left_pad_xfer.
20029 (usr_store_inferior_registers): Use collect_ptrace_register callback
20030 instead of checking for the_low_target.left_pad_xfer.
20031
20032 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20033 (s390_supply_ptrace_register): Likewise.
20034 (s390_fill_gregset): Call s390_collect_ptrace_register.
20035 (the_low_target): Update.
20036
20037 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20038 (ppc_supply_ptrace_register): Likewise.
20039 (the_low_target): Update.
20040
20041 * linux-i386-low.c (the_low_target): Update.
20042 * linux-x86-64-low.c (the_low_target): Update.
20043
d61ddec4
UW
200442008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20045
20046 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20047 reg-s390.o and reg-s390x.o.
20048
20049 * linux-low.c (new_inferior): New global variable.
20050 (linux_create_inferior, linux_attach): Set it.
20051 (linux_wait_for_process): Call the_low_target.arch_setup after the
20052 target has stopped for the first time.
20053 (initialize_low): Do not call the_low_target.arch_setup.
20054
20055 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20056 (s390_set_pc): Likewise.
20057 (s390_arch_setup): New function.
20058 (the_low_target): Use s390_arch_setup as arch_setup routine.
20059
20060 * regcache.c (realloc_register_cache): New function.
20061 (set_register_cache): Call it for each existing regcache.
20062
d05b4ac3
UW
200632008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20064
20065 * server.h (init_registers): Remove prototype.
20066
20067 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20068 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20069 instead of init_registers ().
20070 * linux-arm-low.c (init_registers_arm): Add prototype.
20071 (init_registers_arm_with_iwmmxt): Likewise.
20072 (the_low_target): Add initializer for arch_setup field.
20073 * linux-cris-low.c (init_registers_cris): Add prototype.
20074 (the_low_target): Add initializer for arch_setup field.
20075 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20076 (the_low_target): Add initializer for arch_setup field.
20077 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20078 (the_low_target): Add initializer for arch_setup field.
20079 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20080 (the_low_target): Add initializer for arch_setup field.
20081 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20082 (the_low_target): Add initializer for arch_setup field.
20083 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20084 (the_low_target): Add initializer for arch_setup field.
20085 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20086 (init_registers_mips64_linux): Likewise.
20087 (the_low_target): Add initializer for arch_setup field.
20088 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20089 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20090 (the_low_target): Add initializer for arch_setup field.
20091 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20092 (init_registers_powerpc_64): Likewise.
20093 (the_low_target): Add initializer for arch_setup field.
20094 * linux-s390-low.c (init_registers_s390): Add prototype.
20095 (init_registers_s390x): Likewise.
20096 (the_low_target): Add initializer for arch_setup field.
20097 * linux-sh-low.c (init_registers_sh): Add prototype.
20098 (the_low_target): Add initializer for arch_setup field.
20099 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20100 (the_low_target): Add initializer for arch_setup field.
20101 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20102 (the_low_target): Add initializer for arch_setup field.
20103
20104 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20105 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20106 instead of init_registers ().
20107 * win32-arm-low.c (init_registers_arm): Add prototype.
20108 (the_low_target): Add initializer for arch_setup field.
20109 * win32-i386-low.c (init_registers_i386): Add prototype.
20110 (the_low_target): Add initializer for arch_setup field.
20111
20112 * spu-low.c (init_registers_spu): Add prototype.
20113 (initialize_low): Call initialie_registers_spu () instead of
20114 initialize_registers ().
20115
fd96d250
PA
201162008-02-19 Pedro Alves <pedro@codesourcery.com>
20117
20118 * server.c (handle_v_requests): When handling the vRun and vAttach
20119 packets, if already debugging a process, don't kill it. Return an
20120 error instead.
20121
d41b6bb4
DJ
201222008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20123
20124 * server.c (handle_query): Correct length check.
20125
5ac588cf
PA
201262008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20127
20128 * win32-low.c (do_initial_child_stuff): Add process handle
20129 parameter. Set current_process_handle and current_process_id from the
20130 parameters. Clear globals.
20131 (win32_create_inferior): Don't set current_process_handle and
20132 current_process_id here. Instead pass them on the call to
20133 do_initial_child_stuff.
20134 (win32_attach): Likewise.
20135 (win32_clear_inferiors): New.
20136 (win32_kill): Don't close the current process handle or the
20137 current thread handle here. Instead call win32_clear_inferiors.
20138 (win32_detach): Don't open a new handle to the process. Call
20139 win32_clear_inferiors.
20140 (win32_join): Don't rely on current_process_handle; open a new
20141 handle using the process id.
20142 (win32_wait): Call win32_clear_inferiors when the inferior process
20143 has exited.
20144
ecd7ecbc
DJ
201452008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20146
20147 * server.c (monitor_show_help): Add "exit".
20148
1525d545
MG
201492008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20150
ecd7ecbc 20151 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20152 (clean): Add reg-xtensa.c.
20153 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20154 * configure.srv (xtensa*-*-linux*) New target.
20155 * linux-xtensa-low.c: New.
20156 * xtensa-xtregs.c: New.
1525d545 20157
59a016f0
PA
201582008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20159
20160 * hostio.c: Don't include errno.h.
20161 (errno_to_fileio_errno): Move to hostio-errno.
20162 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20163 error number outputting to the target->hostio_last_error callback.
20164 (hostio_packet_error): Use FILEIO_EINVAL directly.
20165 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20166 calls to hostio_error.
20167 * hostio-errno.c: New.
20168 * server.h (hostio_last_error_from_errno): Declare.
20169 * target.h (target_ops): Add hostio_last_error member.
20170 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20171 as hostio_last_error handler.
889bf7c5 20172 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20173 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20174 (wince_hostio_last_error): New functions.
20175 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20176 as hostio_last_error handler.
20177 (win32_target_ops) [!_WIN32_WCE]: Register
20178 hostio_last_error_from_errno as hostio_last_error handler.
20179 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20180 (hostio-errno.o): New rule.
20181 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20182 * configure.srv (srv_hostio_err_objs): New variable. Default to
20183 hostio-errno.o.
20184 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20185 * configure: Regenerate.
20186
2d717e4f
DJ
201872008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20188
20189 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20190 (linux_kill, linux_detach): Clean up the process list.
20191 * remote-utils.c (remote_open): Improve port number parsing.
20192 (putpkt_binary, input_interrupt): Only send interrupts if the target
20193 is running.
20194 * server.c (extended_protocol): Make static.
20195 (attached): Define earlier.
20196 (exit_requested, response_needed, program_argv): New variables.
20197 (target_running): New.
20198 (start_inferior): Clear attached here.
20199 (attach_inferior): Set attached here.
20200 (require_running): Define.
20201 (handle_query): Use require_running and target_running. Implement
20202 "monitor exit".
20203 (handle_v_attach, handle_v_run): New.
20204 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20205 (gdbserver_usage): Update.
20206 (main): Redo argument parsing. Handle --debug and --multi. Handle
20207 --attach along with other options or after the port. Save
20208 program_argv. Support no initial program. Resynchronize
20209 communication with GDB after an error. Handle "monitor exit".
20210 Use require_running and target_running. Always allow the extended
20211 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20212 restart in extended mode.
20213 * README: Refer to the GDB manual. Update --attach usage.
20214
7407e2de
AS
202152007-12-20 Andreas Schwab <schwab@suse.de>
20216
20217 * linux-low.c (STACK_SIZE): Define.
20218 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20219 (linux_test_for_tracefork): Likewise.
20220
b65d95c5
DJ
202212007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20222
20223 * linux-low.c (linux_wait_for_event): Update messages. Do not
20224 reinsert auto-delete breakpoints.
20225 * mem-break.c (struct breakpoint): Change return type of handler to
20226 int.
20227 (set_breakpoint_at): Update handler type.
20228 (reinsert_breakpoint_handler): Return 1 instead of calling
20229 delete_breakpoint.
20230 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20231 setting a new one.
20232 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20233 * mem-break.h (set_breakpoint_at): Update handler type.
20234 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20235 * win32-low.c (auto_delete_breakpoint): New.
20236 (get_child_debug_event): Use it.
20237
4e799345
DJ
202382007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20239
20240 * configure.ac: Check for pread and pwrite.
20241 * hostio.c (handle_pread): Fall back to lseek and read.
20242 (handle_pwrite): Fall back to lseek and write.
20243 * config.in, configure: Regenerated.
20244
27524b67
DJ
202452007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20246
20247 * server.c (myresume): Add own_buf argument.
20248 (main): Update calls.
20249
a20d5e98
DJ
202502007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20251
20252 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20253 * remote-utils.c (remote_open): Do not call disable_async_io.
20254 (block_async_io): Delete.
20255 (unblock_async_io): Make static.
20256 (initialize_async_io): New.
20257 * server.c (handle_v_cont): Handle async I/O here.
20258 (myresume): Likewise. Move other common resume tasks here...
20259 (main): ... from here. Call initialize_async_io. Disable async
20260 I/O before the main loop.
20261 * server.h (initialize_async_io): Declare.
20262 (block_async_io, unblock_async_io): Delete prototypes.
20263 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20264
b79d787e
DJ
202652007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20266
20267 * remote-utils.c (readchar): Allow binary data in received messages.
20268
d97903b2
PA
202692007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20270
20271 * win32-low.c (attaching): New global.
20272 (win32_create_inferior): Clear the `attaching' global.
20273 (win32_attach): Set the `attaching' global.
20274 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20275 attaching. Only set a breakpoint at the entry point if not
20276 attaching.
20277
311de423
PA
202782007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20279
20280 * server.c (main): Don't report dll events on the initial
20281 connection on attaches.
20282
6c2d16d2
PA
202832007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20284
20285 * server.c (main): Relax numerical bases supported for the pid of
20286 the --attach command line argument.
20287
5ca906e6
PA
202882007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20289
20290 * win32-low.c (win32_attach): Call OpenProcess before
20291 DebugActiveProcess, not after. Add last error output to error
20292 call.
20293
9c6c8194
PA
202942007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20295
20296 * win32-low.c (win32_get_thread_context)
20297 (win32_set_thread_context): New functions.
20298 (thread_rec): Use win32_get_thread_context.
20299 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20300 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20301 field.
20302
4d5d1aaa
PA
203032007-12-03 Leo Zayas
20304 Pedro Alves <pedro_alves@portugalmail.pt>
20305
20306 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20307 global variables.
20308 (child_add_thread): Minor cleanup.
20309 (child_continue): Resume artificially suspended threads before
20310 calling ContinueDebugEvent.
20311 (suspend_one_thread): New.
20312 (fake_breakpoint_event): New.
20313 (get_child_debug_event): Change return type to int. Check here if
20314 gdb sent an interrupt request. If a soft interrupt was requested,
20315 fake a breakpoint event. Return 0 if there is no event to handle,
20316 and 1 otherwise.
20317 (win32_wait): Don't check here if gdb sent an interrupt request.
20318 Ensure there is a valid event to handle.
20319 (win32_request_interrupt): Add soft interruption method as last
20320 resort.
20321
c436e841
PA
203222007-12-03 Leo Zayas
20323 Pedro Alves <pedro_alves@portugalmail.pt>
20324
20325 * win32-low.h (win32_thread_info): Add descriptions to the
20326 structure members. Replace `suspend_count' counter by a
20327 `suspended' flag.
20328 * win32-low.c (thread_rec): Update condition of when to get the
20329 context from the inferior. Rely on ContextFlags being set if it
20330 has already been retrieved. Only suspend the inferior thread if
20331 we haven't already. Warn if that fails.
20332 (continue_one_thread): s/suspend_count/suspended/. Only call
20333 ResumeThread once. Warn if that fails.
20334
e7b5fa67
PA
203352007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20336
20337 * win32-low.c (win32_wait): Don't read from the inferior when it
20338 has already exited.
20339
a385171d
PA
203402007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20341
20342 * Makefile.in (win32_low_h): New variable.
20343 (win32-low.o): Add dependency on $(win32_low_h).
20344 (win32-arm-low.o, win32-i386-low.o): New rules.
20345
f80c84b3
DJ
203462007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20347
20348 * hostio.c: Correct copyright year.
20349
a6b151f1
DJ
203502007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20351
20352 * Makefile.in (OBS): Add hostio.o.
20353 (hostio.o): New rule.
20354 * server.h (handle_vFile): Declare.
20355 * hostio.c: New file.
20356 * server.c (handle_v_requests): Take packet_len and new_packet_len
20357 for binary packets. Call handle_vFile.
20358 (main): Update call to handle_v_requests.
20359
f9387fc3
DJ
203602007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20361
20362 * linux-low.c: Include <sched.h>.
20363
51c2684e
DJ
203642007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20365
20366 * linux-low.c (linux_tracefork_grandchild): New.
20367 (linux_tracefork_child): Use clone.
20368 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20369
75f83163
JB
203702007-10-31 Joel Brobecker <brobecker@adacore.com>
20371
20372 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20373
da5898ce
DJ
203742007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20375
20376 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20377
24a09b5f
DJ
203782007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20379
20380 * inferiors.c (change_inferior_id): Delete.
20381 (add_pid_to_list, pull_pid_from_list): New.
20382 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20383 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20384 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20385 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20386 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20387 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20388 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20389 (using_threads): Always set to 1.
20390 (handle_extended_wait): New.
20391 (add_process): Do not set TID.
20392 (linux_create_inferior): Set must_set_ptrace_flags.
20393 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20394 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20395 (linux_thread_alive): Rename TID argument to LWPID.
20396 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20397 (linux_wait_for_event): Do not use TID or check using_threads. Update
20398 call to dead_thread_notify. Call handle_extended_wait.
20399 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20400 (send_sigstop): Delete sigstop_sent.
20401 (wait_for_sigstop): Avoid TID.
20402 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20403 (linux_test_for_tracefork): New.
20404 (linux_lookup_signals): Use thread_db_active and
20405 linux_supports_tracefork_flag.
20406 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20407 * linux-low.h (get_process_thread): Avoid TID.
20408 (struct process_ifo): Move thread_known and tid to the end. Remove
20409 sigstop_sent.
20410 (linux_attach_lwp, thread_db_init): Update prototypes.
20411 * server.h (change_inferior_id): Delete prototype.
20412 (add_pid_to_list, pull_pid_from_list): New prototypes.
20413 * thread-db.c (thread_db_use_events): New.
20414 (find_first_thread): Rename to...
20415 (find_one_thread): ...this. Update callers and messages. Do not
20416 call fatal. Check thread_db_use_events. Do not call
20417 change_inferior_id or new_thread_notify.
20418 (maybe_attach_thread): Update. Do not call new_thread_notify.
20419 (thread_db_init): Set thread_db_use_events. Check use_events.
20420 * utils.c (fatal, warning): Correct message prefix.
20421
30ed0a8f
DJ
204222007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20423
20424 * Makefile.in (clean): Remove new files.
20425 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20426 (powerpc-64.o, powerpc-64.c): New rules.
20427 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20428 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20429 with SPE.
20430 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20431 SPE targets.
20432 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20433 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20434 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20435 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20436 (target_regsets): Add AltiVec and SPE register sets.
20437 * configure.ac: Check for AltiVec and SPE.
20438 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20439 (ppc_fill_vrregset, ppc_store_vrregset): New.
20440 (target_regsets): Add AltiVec register set.
20441 * configure: Regenerated.
20442
fd462a61
DJ
204432007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20444
20445 * linux-low.c (O_LARGEFILE): Define.
20446 (linux_read_memory): Use /proc/PID/mem.
20447 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20448 * configure, config.in: Regenerated.
20449
69f223ed
DJ
204502007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20451
20452 * linux-low.c (linux_wait_for_event): Do not pass signals while
20453 single-stepping.
20454
aec18585
PA
204552007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20456
20457 * win32-low.c (create_process): New.
20458 (win32_create_inferior): Use create_process instead of
20459 CreateProcess. If create_process failed retry appending an ".exe"
20460 suffix. Store the GetLastError result immediatelly after
20461 create_process calls and use it on the call to error.
20462
34d86ddd
PA
204632007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20464
20465 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20466
5a0e3bd0
JB
204672007-08-23 Joel Brobecker <brobecker@adacore.com>
20468
20469 * configure.ac: Switch license to GPLv3.
20470
f88c79e6
MS
204712007-08-01 Michael Snyder <msnyder@access-company.com>
20472
20473 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20474
6b3d9b83
PA
204752007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20476
20477 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20478 typedef.
20479 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20480 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20481 CloseToolhelp32Snapshot.
20482 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20483 CloseToolhelp32Snapshot.
20484
c588c53c
MS
204852007-07-27 Michael Snyder <michael.snyder@access-company.com>
20486
20487 * server.c (main): Check for inferior exit before main loop.
20488
aa0403d9
PA
204892007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20490
20491 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20492 instead of on tmp_desc.
20493
255e7678
DJ
204942007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20495 Daniel Jacobowitz <dan@codesourcery.com>
20496
20497 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20498 (add_thread): Minor cleanups.
20499 (clear_inferiors): Move lower in the file. Clear the DLL
20500 list.
20501 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20502 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20503 (xml_escape_text): New.
20504 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20505 for qSupported.
20506 (handle_v_cont): Report errors.
20507 (gdbserver_version): Update.
20508 (main): Correct size of own_buf. Do not report initial DLL events.
20509 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20510 (unloaded_dll, xml_escape_text): New.
20511 * win32-low.c (enum target_waitkind): Update comments.
20512 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20513 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20514 (win32_EnumProcessModules, win32_GetModuleInformation)
20515 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20516 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20517 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20518 (win32_Module32First, win32_Module32Next, load_toolhelp)
20519 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20520 (get_child_debug_event): Handle DLL events.
20521 (win32_wait): Likewise.
20522
0d37add9
DJ
205232007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20524
20525 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20526 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20527
45e2715e
PA
205282007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20529
20530 * win32-low.c (handle_output_debug_string): Ignore event if not
20531 waiting.
20532
c5674cf1
PA
205332007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20534
20535 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20536
2bbe3cc1
DJ
205372007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20538
20539 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20540
ae13219e
DJ
205412007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20542
20543 * inferiors.c (change_inferior_id): Add comment.
20544 * linux-low.c (check_removed_breakpoint): Add an early
20545 prototype. Improve debug output.
20546 (linux_attach): Doc update.
20547 (linux_detach_one_process, linux_detach): Clean up before releasing
20548 each process.
20549 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20550 * linux-low.h (struct process_info): Doc improvement.
20551 * mem-break.c (delete_all_breakpoints): New.
20552 * mem-break.h (delete_all_breakpoints): New prototype.
20553 * thread-db.c (find_first_thread): New.
20554 (thread_db_create_event): Call it instead of
20555 thread_db_find_new_threads. Clean up unused variables.
20556 (maybe_attach_thread): Remove first thread handling.
20557 (thread_db_find_new_threads): Use find_first_thread.
20558 (thread_db_get_tls_address): Likewise.
20559
4105de34
DJ
205602007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20561
20562 * thread-db.c (thread_db_find_new_threads): Add prototype.
20563 (thread_db_create_event): Check for the main thread before adding
20564 a new thread.
20565 (maybe_attach_thread): Only enable event reporting if TID == 0.
20566 (thread_db_get_tls_address): Check for new threads.
20567
2b876972
DJ
205682007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20569
20570 * linux-low.c (linux_create_inferior): Try execv before execvp.
20571 * spu-low.c (spu_create_inferior): Likewise.
20572
7a245884
DJ
205732007-06-13 Mike Frysinger <vapier@gentoo.org>
20574
20575 * linux-low.c (linux_create_inferior): Change execv to execvp.
20576 * spu-low.c (spu_create_inferior): Likewies.
20577
117ce543
DJ
205782007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20579
20580 * Makefile.in (clean): Clean new files instead of deleted ones.
20581 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20582 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20583 rules.
20584 * configure.srv: Specify XML files and new regformats for MIPS and
20585 MIPS64 GNU/Linux.
20586 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20587 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20588 an entry for the restart register.
20589 (mips_cannot_fetch_register, mips_cannot_store_register)
20590 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20591 register names to match the XML descriptions.
20592 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20593 restart register instead of $0.
20594
0e7f50da
UW
205952007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20596 Markus Deuling <deuling@de.ibm.com>
20597
20598 * remote-utils.c (decode_xfer_write): New function.
20599 * server.h (decode_xfer_write): Add prototype.
20600 * server.c (handle_query): Add PACKET_LEN argument. Support
20601 qXfer:spu:read and qXfer:spu:write packets.
20602 (main): Pass packet_len to handle_query.
20603 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20604 * target.h (target_ops): Add qxfer_spu.
20605
374c1d38
UW
206062007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20607
20608 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20609 accessing non-seekable spufs files.
20610
bb63802a
UW
206112007-05-16 Markus Deuling <deuling@de.ibm.com>
20612
889bf7c5 20613 * server.c (handle_query): Add reply for qC packet.
bb63802a 20614
7390519e
PA
206152007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20616 Leo Zayas <lerele@champenstudios@com>
20617
20618 * server.h (check_remote_input_interrupt_request): New function.
20619 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20620 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20621 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20622 (check_remote_input_interrupt_request): New function.
20623 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20624 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20625 winapi_GenerateConsoleCtrlEvent): New typedefs.
20626 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20627 to 250 ms.
20628 (win32_wait): Check for remote interrupt request
20629 with check_remote_input_interrupt_request.
20630 (win32_request_interrupt): New function.
20631 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20632
34b34921
PA
206332007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20634
20635 * win32-low.c (debug_registers_changed,
20636 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20637 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20638 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20639 (thread_rec): Get context using the low target.
20640 (child_add_thread): Call thread_added on the low target,
20641 which does the same thing.
20642 (regptr): Delete.
20643 (do_initial_child_stuff): Remove debug registers references.
20644 Set context using the low target. Resume threads after
20645 setting the contexts.
20646 (child_continue): Remove dead variable. Remove debug
20647 registers references.
20648 (child_fetch_inferior_registers): Go through the low target.
20649 (do_child_store_inferior_registers): Remove.
20650 (child_store_inferior_registers): Go through the low target.
20651 (win32_resume): Remove debug registers references.
20652 Set context using the low target.
20653 (handle_exception): Change return type to void. Don't record
20654 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20655 first chance exception.
889bf7c5 20656 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20657 goto loop. Always return after waiting for debug event.
20658 (win32_wait): Convert to switch statement. Handle spurious
20659 events.
20660
20661 * win32-i386-low.c (debug_registers_changed,
20662 debug_registers_used): New.
20663 (initial_stuff): Rename to ...
20664 (i386_initial_stuff): ... this. Clear debug registers
20665 state variables.
20666 (store_debug_registers): Delete.
20667 (i386_get_thread_context): New.
20668 (load_debug_registers): Delete.
20669 (i386_set_thread_context): New.
20670 (i386_thread_added): New.
20671 (single_step): Rename to ...
20672 (i386_single_step): ... this.
20673 (do_fetch_inferior_registers): Rename to ...
20674 (i386_fetch_inferior_register): ... this.
20675 (i386_store_inferior_register): New.
20676 (the_low_target): Adapt to new interface.
20677
20678 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20679 (arm_get_thread_context): New.
20680 (arm_set_thread_context): New.
20681 (regptr): New.
20682 (do_fetch_inferior_registers): Rename to ...
20683 (arm_fetch_inferior_register): ... this.
20684 (arm_store_inferior_register): New.
20685 (arm_wince_breakpoint): Reimplement as unsigned long.
20686 (arm_wince_breakpoint_len): Define.
20687 (the_low_target): Adapt to new interface.
20688
20689 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20690 load_debug_registers. Add get_thread_context, set_thread_context,
20691 thread_added and store_inferior_register. Rename
20692 fetch_inferior_registers to fetch_inferior_register.
20693 (regptr): Remove declaration.
20694
dd6953e1
PA
206952007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20696
20697 * linux-low.c (linux_detach): Change return type to int. Return 0.
20698 * spu-low.c (spu_detach): Likewise.
20699
444d6139
PA
207002007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20701
20702 * target.h (target_ops): Change return type of detach to int.
20703 Add join.
20704 (join_inferior): New.
20705 * server.c (main): Don't skip detach support on mingw32.
20706 If the inferior doesn't support detaching return error.
20707 Call join_inferior instead of using waitpid.
20708 * linux-low.c (linux_join): New.
20709 (linux_target_op): Add linux_join.
20710 * spu-low.c (spu_join): New.
20711 (spu_target_ops): Add spu_join.
20712 * win32-low.c (win32_detach): Adapt to new interface.
20713 Reopen current_process_handle before detaching. Issue a child
20714 resume before detaching.
20715 (win32_join): New.
20716 (win32_target_op): Add win32_join.
20717
1d5315fe
PA
207182007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20719
20720 * win32-low.c (win32-attach): Fix return value.
20721 * target.h (target_ops): Describe ATTACH return values.
20722
bf914831
PA
207232007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20724
20725 * win32-low.c (GETPROCADDRESS): Define.
20726 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20727 (winapi_DebugSetProcessKillOnExit): Likewise.
20728 (win32_create_inferior): Force usage of ansi CreateProcessA.
20729 (win32_attach): Use GETPROCADDRESS.
20730 (win32_detach): Likewise.
20731
f72f3e60
PA
207322007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20733
20734 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20735
ed50f18f
PA
207362007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20737
20738 * win32-low.c: Commit leftover changes from 2007-03-29.
20739
0c2ead7e
DJ
207402007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20741
20742 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20743 fields short instead of int. Add explicit padding.
20744 (i387_cache_to_fsave): Remove unnecessary casts.
20745 (i387_fsave_to_cache): Doc fix.
20746 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20747
73725ff3
DJ
207482007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20749
20750 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20751 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20752
d99f33d8
PA
207532007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20754
20755 * configure.srv (arm*-*-mingw32ce*): Move near the other
20756 arm targets.
20757
68070c10
PA
207582007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20759
2482afc6 20760 * configure.ac: Add errno checking.
68070c10
PA
20761 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20762 sys/file.h and malloc.h.
20763 (AC_CHECK_DECLS): Add perror.
20764 (srv_mingwce): Handle.
2482afc6 20765 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20766 win32-i386-low.o to srv_tgtobj.
20767 (i[34567]86-*-mingw*): Likewise.
20768 (arm*-*-mingw32ce*): Add case.
20769 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20770 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20771 [__MINGW32CE__] (strerror): New function.
20772 [__MINGW32CE__] (errno): Define to GetLastError.
20773 [__MINGW32CE__] (COUNTOF): New macro.
20774 (remote_open): Remove extra close call.
20775 * mem-break.c (delete_breakpoint_at): New function.
20776 * mem-break.h (delete_breakpoint_at): Declare.
20777 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20778 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20779 [USE_WIN32API] (read, write): Add char* casts.
20780 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20781 * server.h: Include wincecompat.h on Windows CE.
20782 [HAVE_ERRNO_H]: Check.
20783 (perror): Declare if not declared.
20784 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20785 (perror_with_name): Remove errno declaration.
20786 * wincecompat.h: New.
20787 * wincecompat.c: New.
20788 * win32-low.h: New.
20789 * win32-arm-low.c: New.
20790 * win32-i386-low.c: New.
20791 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20792 (OUTMSG2): Make it safe.
20793 (_T): New macro.
20794 (COUNTOF): New macro.
20795 (NUM_REGS): Get it from the low target.
20796 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20797 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20798 (thread_rec): Let low target handle debug registers.
20799 (child_add_thread): Likewise.
20800 (child_init_thread_list): Likewise.
20801 (continue_one_thread): Likewise.
20802 (regptr): New.
20803 (do_child_fetch_inferior_registers): Move to ...
20804 * win32-i386-low.c: ... here, and rename to ...
20805 (do_fetch_inferior_registers): ... this.
889bf7c5 20806 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20807 Go through the low target.
20808 (do_child_store_inferior_registers): Use regptr.
20809 (strwinerror): New function.
20810 (win32_create_inferior): Handle Windows CE.
20811 Use strwinerror instead of strerror on Windows error
20812 codes. Add program to the error output.
20813 Don't close the main thread handle on Windows CE.
20814 (win32_attach): Use coredll.dll on Windows CE.
20815 (win32_kill): Close current process and current
20816 thread handles.
20817 (win32_detach): Use coredll.dll on Windows CE.
20818 (win32_resume): Let low target handle debug registers, and
20819 step request.
20820 (handle_exception): Add/Remove initial breakpoint. Avoid
20821 non-existant WSTOPSIG on Windows CE.
20822 (win32_read_inferior_memory): Cast to remove warning.
20823 (win32_arch_string): Go through the low target.
20824 (initialize_low): Call set_breakpoint_data with the low
20825 target's breakpoint.
20826 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20827 FOP_REGNUM, mappings): Move to ...
20828 * win32-i386-low.c: ... here.
20829 * win32-low.c (win32_thread_info): Move to ...
20830 * win32-low.h: ... here.
20831 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20832 win32-arm-low.c and wincecompat.c.
20833 (all:): Add $EXEEXT.
20834 (install-only:): Likewise.
20835 (gdbserver:): Likewise.
20836 (gdbreplay:): Likewise.
20837 * config.in: Regenerate.
20838 * configure: Regenerate.
20839
41093d81
PA
208402007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20841
20842 * win32-low.c: Rename typedef thread_info to
20843 win32_thread_info throughout.
20844
544afa54
PA
208452007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20846
20847 * win32-i386-low.c: Rename to ...
20848 * win32-low.c: ... this.
20849 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20850 * Makefile.in: Likewise.
20851
bce7165d
PA
208522007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20853
20854 * remote-utils.c (monitor_output): Constify msg parameter.
20855 * server.h (monitor_output): Likewise.
20856 * win32-i386-low.c (handle_output_debug_string): New.
20857 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20858 handle_output_debug_string.
20859 (get_child_debug_event): Likewise.
20860
506c7aa0
DJ
208612007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20862
20863 * server.c (main): Correct strtoul check.
20864
42c81e2a
DJ
208652007-03-27 Jon Ringle <jon@ringle.org>
20866
20867 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20868
9453113a
DJ
208692007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20870
20871 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20872
64a69107
DJ
208732007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20874
20875 * terminal.h: Check HAVE_SGTTY_H.
20876
208772007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20878
20879 * remote-utils.c (remote_open): Print out the assigned port number.
20880
c74d0ad8
DJ
208812007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20882
20883 * remote-utils.c (monitor_output): New function.
20884 * server.c (debug_threads): Define here.
20885 (monitor_show_help): New function.
20886 (handle_query): Handle qRcmd.
20887 (main): Do not handle 'd' packet.
20888 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20889 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20890 of debug_threads.
20891
de7c3b4a
PA
208922007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20893
20894 * Makefile.in (EXEEXT): New.
20895 (clean): Use $(EXEEXT).
20896
ef57601b
PA
208972007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20898
20899 * target.h (target_ops): Rename send_signal to request_interrupt,
20900 and remove enum target_signal parameter.
20901 * linux-low.c (linux_request_interrupt): Rename from
20902 linux_send_signal, and always send SIGINT.
20903 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20904 and always send SIGINT.
20905 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20906 of send_signal.
20907 (input_interrupt): Likewise.
20908
820f2bda
PA
209092007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20910
20911 * server.c (get_features_xml): Check if target implemented
20912 arch_string.
20913 * win32-i386-low.c (win32_arch_string): New.
20914 (win32_target_ops): Add win32_arch_string as arch_string member.
20915
ab39bf24
UW
209162007-02-22 Markus Deuling <deuling@de.ibm.com>
20917
20918 * spu-low.c (spu_arch_string): New.
20919 (spu_target_ops): Add spu_arch_string.
20920
61ff6e04
DJ
209212007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20922
20923 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20924 * configure.ac: Do not check for terminal.h.
20925 * configure, config.in: Regenerated.
20926
fb1e4ffc
DJ
209272007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20928
20929 * Makefile.in (OBS): Add $(XML_BUILTIN).
20930 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20931 (clean): Update.
20932 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20933 (arm-with-iwmmxt.c): New.
20934 * config.in, configure: Regenerate.
20935 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20936 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20937 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20938 (arm*-*-linux*): Add iWMMXt and regset support.
20939 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20940 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20941 (arm_store_wmmxregset, target_regsets): New.
20942 * server.c (get_features_xml): Take annex argument. Check builtin
20943 XML documents.
20944 (handle_query): Handle multiple annexes.
20945
0f48aa01
DJ
209462007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20947
20948 * remote-utils.c [USE_WIN32API] (read, write): Define.
20949 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20950 write.
20951
23181151
DJ
209522007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20953
20954 * linux-i386-low.c (the_low_target): Set arch_string.
20955 * linux-x86-64-low.c (the_low_target): Likewise.
20956 * linux-low.c (linux_arch_string): New.
20957 (linux_target_ops): Add it.
20958 * linux-low.h (struct linux_target_ops): Add arch_string.
20959 * server.c (write_qxfer_response): Use const void * for DATA.
20960 (get_features_xml): New.
20961 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20962 * target.h (struct target_ops): Add arch_string method.
20963
9d606399
DJ
209642007-01-03 Denis Pilat <denis.pilat@st.com>
20965 Daniel Jacobowitz <dan@codesourcery.com>
20966
20967 * linux-low.c (linux_kill): Handle being called with no threads.
20968 * win32-i386-low.c (win32_kill): Likewise.
20969 (get_child_debug_event): Clear current_process_handle.
20970
209712006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20972 Daniel Jacobowitz <dan@codesourcery.com>
20973
20974 * remote-utils.c (remote_open): Check the type of specified
20975 serial port devices before opening them.
20976 * server.c (main): Kill the inferior if an error occurs during
20977 the first remote_open.
20978
a5e13d24
DJ
209792006-12-05 Markus Deuling <deuling@de.ibm.com>
20980
20981 * README: Update supported targets.
20982
186947f7
DJ
209832006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20984
20985 * Makefile.in (clean): Remove reg-mips64.c.
20986 (reg-mips64.c, reg-mips64.o): New rules.
20987 * configure.srv: Handle mips64. Include regset support for mips.
20988 * linux-mips-low.c (union mips_register): New.
20989 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20990 (mips_breakpoint, mips_breakpoint_at): Use int.
20991 (mips_collect_register, mips_supply_register)
20992 (mips_collect_register_32bit, mips_supply_register_32bit)
20993 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20994 (mips_store_fpregset, target_regsets): New.
20995 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20996
a13e2c95
UW
209972006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20998
20999 * configure.srv: Add target "spu*-*-*".
21000 * Makefile.in (clean): Remove reg-spu.c.
21001 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21002 * spu-low.c: New file.
21003
cb7283db
DJ
210042006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21005
21006 * configure.ac: Correct td_thr_tls_get_addr test.
21007 * configure: Regenerated.
21008
89be2091
DJ
210092006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21010
21011 * linux-low.c (linux_wait_for_event): Reformat. Use the
21012 pass_signals array.
21013 * remote-utils.c (decode_address_to_semicolon): New.
21014 * server.c (pass_signals, handle_general_set): New.
21015 (handle_query): Mention QPassSignals for qSupported.
21016 (main): Call handle_general_set.
21017 * server.h (pass_signals, decode_address_to_semicolon): New.
21018
000ef4f0
DJ
210192006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21020
21021 * server.c (handle_query): Correct error handling for read_auxv.
21022
b7149293
UW
210232005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21024
21025 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21026 and srv_linux_thread_db to yes.
21027 * linux-s390-low.c (s390_fill_gregset): New function.
21028 (target_regsets): Define data structure.
21029
dae5f5cf
DJ
210302006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21031
21032 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21033 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21034 * config.in, configure: Regenerated.
21035 * inferiors.c (gdb_id_to_thread): New function.
21036 (gdb_id_to_thread_id): Use it.
21037 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21038 * linux-low.h (struct process_info): Add th member.
21039 (thread_db_get_tls_address): New prototype.
21040 * remote-utils.c (decode_address): Make non-static.
21041 * server.c (handle_query): Handle qGetTLSAddr.
21042 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21043 * target.h (struct target_ops): Add get_tls_address.
21044 * thread-db.c (maybe_attach_thread): Save the thread handle.
21045 (thread_db_get_tls_address): New.
21046
32ca6d61
DJ
210472006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21048
21049 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21050 (linux_resume_one_process): Take a siginfo_t *. Update all
21051 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21052 (struct pending_signals): Add a siginfo_t.
21053 (linux_wait_for_process): Always set last_status.
21054 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21055 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21056 * linux-low.h (struct process_info): Add last_status.
21057
5ffff7c1
DJ
210582006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21059
21060 * remote-utils.c (try_rle): New function.
21061 (putpkt_binary): Use it.
21062
8695c747
DJ
210632006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21064
21065 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21066 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21067 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21068 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21069 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21070 point registers.
21071
290fadea
RS
210722006-08-08 Richard Sandiford <richard@codesourcery.com>
21073
21074 * server.c (terminal_fd): New variable.
21075 (old_foreground_pgrp): Likewise.
21076 (restore_old_foreground_pgrp): New function.
21077 (start_inferior): Record the terminal file descriptor in terminal_fd
21078 and its original foreground group in old_foreground_pgrp. Register
21079 restore_old_foreground_pgrp with atexit().
21080
9f2e1e63
DJ
210812006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21082
21083 * server.c (handle_query): Correct qPart to qXfer.
21084
b80864fb
DJ
210852006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21086
21087 * configure.ac: Check for more headers which are missing on
21088 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21089 * configure.srv: Add Cygwin and mingw32.
21090 * remote-utils.c: Don't include headers unconditionally which
21091 are missing on mingw32. Include <winsock.h> for mingw32.
21092 (remote_open): Adjust for mingw32 support. Flush
21093 standard error after writing to it.
21094 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21095 (unblock_async_io, enable_async_io, disable_async_io)
21096 (readchar, getpkt): Update for Winsock support.
21097 (prepare_resume_reply): Expect a protocol signal number.
21098 * server.c: Disable <sys/wait.h> on mingw32.
21099 (start_inferior): Adjust for mingw32 support. Flush
21100 standard error after writing to it.
21101 (attach_inferior): Likewise. Use protocol signal
21102 numbers.
21103 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21104 and names.
21105 * win32-i386-low.c: New file.
21106 * Makefile.in (XM_CLIBS): Set.
21107 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21108 (win32-i386-low.o): New dependency rule.
21109 * linux-low.c (linux_wait): Use target signal numbers.
21110 * target.h (struct target_ops): Doc fix.
21111 * server.h (target_signal_to_name): New prototype.
21112 * gdbreplay.c: Don't include headers unconditionally which
21113 are missing on mingw32. Include <winsock.h> for mingw32.
21114 (remote_close, remote_open): Adjust for Winsock support.
21115 * configure, config.in: Regenerated.
21116
0876f84a
DJ
211172006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21118
21119 * server.c (decode_xfer_read, write_qxfer_response): New.
21120 (handle_query): Take a packet length argument. Handle
21121 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21122 the qSupported response.
21123 (main): Update call to handle_query.
21124
01f9e8fa
DJ
211252006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21126
21127 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21128 (putpkt_binary): Renamed from putpkt and adjusted for binary
21129 data.
21130 (putpkt): New wrapper for putpkt_binary.
21131 (readchar): Don't mask off the high bit.
21132 (decode_X_packet): New function.
21133 * server.c (main): Call putpkt_binary if a handler sets the packet
21134 length. Save the length of the incoming packet. Handle 'X'.
21135 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21136
be2a5f71
DJ
211372006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21138
21139 * server.c (handle_query): Handle qSupported.
21140
ea025f5f
DJ
211412006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21142
21143 * remote-utils.c (all_symbols_looked_up): New variable.
21144 (look_up_one_symbol): Check it.
21145 * server.h (look_up_one_symbol): New declaration.
21146 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21147
9308fc88
DJ
211482006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21149
21150 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21151 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21152 (PTRACE_GET_THREAD_AREA): Define.
21153 (ps_get_thread_area): New function.
21154
52fb6437
NS
211552006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21156
21157 * configure.srv (m68k*-*-uclinux*): New target.
21158 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21159 (linux_resume_one_process): Remove extraneous cast.
21160 (linux_read_offsets): New.
21161 (linux_target_op): Add linux_read_offsets on mmuless systems.
21162 * server.c (handle_query): Add qOffsets logic.
21163 * target.h (struct target_ops): Add read_offsets.
21164
21b0f40c
DJ
211652006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21166
21167 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21168 (PTRACE_GET_THREAD_AREA): Define.
21169 (ps_get_thread_area): New function.
21170 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21171 (linux-x86-64-low.o): Update.
21172
0050a760
DJ
211732006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21174
21175 * configure.ac: Remove checks for prfpregset_t.
21176 * gdb_proc_service.h: New file.
21177 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21178 new "gdb_proc_service.h".
21179 * proc-service.c: Likewise.
21180 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21181 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21182 * Makefile.in (gdb_proc_service_h): Updated.
21183 * configure, config.in: Regenerated.
21184
b92a518e
DJ
211852006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21186
21187 * remote-utils.c (prepare_resume_reply): Move declaration
21188 of gdb_id_from_wait to the top of the block.
21189
545587ee
DJ
211902006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21191
21192 * linux-low.c (regsets_store_inferior_registers): Read the regset
21193 from the target before filling it.
21194
9db87ebd
DJ
211952006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21196
21197 * server.c (attach_inferior): Return SIGTRAP for a successful
21198 attach.
21199
dd24457d
DJ
212002006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21201
21202 * Makefile.in (OBS): Add version.o.
21203 (STAGESTUFF): Delete.
21204 (version.o): Add dependencies.
21205 (version.c): Replace rule.
21206 (clean): Remove version.c.
21207 * server.c (gdbserver_version): New.
21208 (gdbserver_usage): Use printf.
21209 (main): Handle --version and --help.
21210 * server.h (version, host_name): Add declarations.
21211
6f0f660e
EZ
212122005-12-23 Eli Zaretskii <eliz@gnu.org>
21213
889bf7c5
PA
21214 * linux-arm-low.c:
21215 * linux-arm-low.c:
21216 * inferiors.c:
21217 * i387-fp.h:
21218 * i387-fp.c:
21219 * gdbreplay.c:
21220 * regcache.c:
21221 * proc-service.c:
21222 * mem-break.h:
21223 * mem-break.c:
21224 * linux-x86-64-low.c:
21225 * linux-sh-low.c:
21226 * linux-s390-low.c:
21227 * linux-ppc64-low.c:
21228 * linux-ppc-low.c:
21229 * linux-mips-low.c:
21230 * linux-m68k-low.c:
21231 * linux-m32r-low.c:
21232 * linux-low.h:
21233 * linux-low.c:
21234 * linux-ia64-low.c:
21235 * linux-i386-low.c:
21236 * linux-crisv32-low.c:
21237 * thread-db.c:
21238 * terminal.h:
21239 * target.h:
21240 * target.c:
21241 * server.h:
21242 * server.c:
21243 * remote-utils.c:
21244 * regcache.h:
21245 * utils.c:
21246 * Makefile.in:
21247 * configure.ac:
6f0f660e
EZ
21248 * gdbserver.1: Add (C) after Copyright. Update the FSF
21249 address.
21250
9d1fb177
DJ
212512005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21252
21253 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21254 (arm_breakpoint_at): Recognize both breakpoints.
21255 (the_low_target): Use the correct breakpoint instruction.
21256
011a70c2
DJ
212572005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21258
21259 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21260 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21261 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21262 (the_low_target): Update.
21263
7fb85e41
AS
212642005-10-25 Andreas Schwab <schwab@suse.de>
21265
21266 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21267
21268 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21269 (ia64_num_regs): Reduce to 462.
21270
3db0444b
DJ
212712005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21272
21273 * acinclude.m4: Correct quoting.
21274 * aclocal.m4: Regenerated.
21275
21276 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21277 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21278 (thread_db_init): Call thread_db_err_str.
21279 * configure.ac: Check for TD_VERSION.
21280 * config.in, configure: Regenerated.
21281
bee0189a
DJ
212822005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21283
21284 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21285
e9d25b98
DJ
212862005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21287
21288 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21289 is not available. Define HAVE_PTRACE_GETREGS if it is.
21290 * config.in, configure: Regenerated.
21291 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21292 * linux-i386-low.c, linux-m68k-low.c: Update to use
21293 HAVE_PTRACE_GETREGS.
21294 * linux-low.c (regsets_fetch_inferior_registers)
21295 (regsets_store_inferior_registers): Only return 0 if we processed
21296 GENERAL_REGS.
21297 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21298 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21299
a06660f7
DJ
213002005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21301
21302 * inferiors.c (struct thread_info): Add gdb_id.
21303 (add_thread): Add gdb_id argument.
21304 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21305 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21306 calls to add_thread.
21307 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21308 * server.c (handle_query): Use thread_to_gdb_id.
21309 (handle_v_cont, main): Use gdb_id_to_thread_id.
21310 * server.h (add_thread): Update prototype.
21311 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21312 prototypes.
21313
5a1f5858
DJ
213142005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21315
21316 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21317 left-padded registers.
21318 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21319 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21320
e122f1f5
SE
213212005-07-01 Steve Ellcey <sje@cup.hp.com>
21322
21323 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21324 * configure: Regenerate.
21325 * config.in: Regenerate.
21326 * server.h (NEED_DECLARATION_STRERROR):
21327 Replace with !HAVE_DECL_STRERROR.
21328
d592fa2f
DJ
213292005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21330
21331 * linux-low.c (linux_wait, linux_send_signal): Don't test
21332 an unsigned long variable for > 0 if it could be MAX_ULONG.
21333 * server.c (myresume): Likewise.
21334 * target.c (set_desired_inferior): Likewise.
21335
ccbd4912
MK
213362005-06-13 Mark Kettenis <kettenis@gnu.org>
21337
21338 * configure.ac: Simplify and improve check for socklen_t.
21339 * configure, config.in: Regenerate.
21340
f450004a
DJ
213412005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21342
21343 * acconfig.h: Remove.
21344 * configure.ac: Add a test for socklen_t. Use three-argument
21345 AC_DEFINE throughout.
21346 * config.in: Regenerated using autoheader 2.59.
21347 * configure: Regenerated.
21348
21349 * gdbreplay.c (socklen_t): Provide a default.
21350 (remote_open): Use socklen_t.
21351 * remote-utils.c (socklen_t): Provide a default.
21352 (remote_open): Use socklen_t.
21353 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21354 unsigned char.
21355
21356 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21357 char for buffers.
21358 * linux-low.c (linux_read_memory, linux_write_memory)
21359 (linux_read_auxv): Likewise.
21360 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21361 (check_mem_write): Likewise.
21362 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21363 Likewise.
21364 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21365 (registers_from_string, register_data): Likewise.
21366 * server.c (handle_query, main): Likewise.
21367 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21368 (decode_M_packet): Likewise.
21369 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21370 * target.h (struct target_ops): Update read_memory, write_memory,
21371 and read_auxv.
21372 (read_inferior_memory, write_inferior_memory): Update.
21373 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21374 to unsigned char *.
21375 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21376 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21377 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21378 linux-s390-low.c, linux-sh-low.c: Update for changes in
21379 read_inferior_memory and the_low_target->breakpoint.
21380
eee84df1
DJ
213812005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21382
21383 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21384 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21385 * configure.srv: Add powerpc64-*-linux*.
21386 * linux-ppc64-low.c: New file.
21387
45b134e5
OF
213882005-05-23 Orjan Friberg <orjanf@axis.com>
21389
21390 * linux-cris-low.c: New file with support for CRIS.
21391 * linux-crisv32-low.c: Ditto for CRISv32.
21392 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21393 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21394 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21395 reg-crisv32.o, and reg-crisv32.c to make rules.
21396 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21397 recognized targets.
21398
48d93c75
UW
213992005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21400
21401 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21402 of sizeof (PTRACE_XFER_TYPE).
21403 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21404
e013ee27
OF
214052005-05-12 Orjan Friberg <orjanf@axis.com>
21406
889bf7c5 21407 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21408 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21409 pointers for hardware watchpoint support.
21410 * linux-low.h (struct linux_target_ops): Ditto.
21411 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21412 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21413 to linux_target_ops.
21414 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21415 reply packet.
21416 * server.c (main): Recognize 'Z' and 'z' packets.
21417
b0ded00b
UW
214182005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21419
21420 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21421 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21422 (the_low_target): Add new members.
21423
8643e2ad
DJ
214242005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21425
21426 * proc-service.c (ps_lgetregs): Search all_processes instead of
21427 all_threads.
21428
fc620387
DJ
214292005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21430
21431 * server.c (start_inferior): Change return type to int.
21432 (attach_inferior): Change sigptr to int *.
21433 (handle_v_cont, handle_v_requests): Change signal to int *.
21434 (main): Change signal to int.
21435
214362005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21437
21438 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21439 * configure.srv: Add m32r*-*-linux*.
21440 * linux-m32r-low.c: New file.
21441
e0e76420
DJ
214422005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21443
21444 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21445
a1928bad
DJ
214462005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21447
21448 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21449 Take unsigned long arguments for PIDs.
21450 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21451 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21452 (wait_for_sigstop, linux_resume_one_process)
21453 (regsets_fetch_inferior_registers, linux_send_signal)
21454 (linux_read_auxv): Likewise. Update the types of variables holding
21455 PIDs. Update format string specifiers.
21456 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21457 * remote-utils.c (prepare_resume_reply): Likewise.
21458 * server.c (cont_thread, general_thread, step_thread)
21459 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21460 unsigned long.
21461 (handle_query): Update format specifiers.
21462 (handle_v_cont, main): Use strtoul for thread IDs.
21463 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21464 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21465 (general_thread, step_thread, thread_from_wait)
21466 (old_thread_from_wait): Update.
21467 * target.h (struct thread_resume): Use unsigned long for THREAD.
21468 (struct target_ops): Use unsigned long for arguments to attach and
21469 thread_alive.
21470
dcdb98d2
DJ
214712005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21472
21473 * acinclude.m4: Include bfd/bfd.m4 directly.
21474 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21475 <agriffis@toolchain.org>.
21476 * aclocal.m4, configure: Regenerated.
21477
bec39cab
AC
214782005-01-07 Andrew Cagney <cagney@gnu.org>
21479
21480 * configure.ac: Rename configure.in, require autoconf 2.59.
21481 * configure: Re-generate.
21482
434c4c77
DJ
214832004-12-08 Daniel Jacobowitz <dan@debian.org>
21484
21485 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21486 LIBS when finished.
21487 * aclocal.m4: Regenerated.
21488 * configure: Regenerated.
21489
db1d3e1b
AS
214902004-11-21 Andreas Schwab <schwab@suse.de>
21491
21492 * linux-m68k-low.c (m68k_num_gregs): Define.
21493 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21494 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21495 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21496 (m68k_breakpoint_at): New. Add to the_low_target.
21497
21498 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21499 srv_linux_thread_db to yes.
21500
43360365
JB
215012004-10-20 Joel Brobecker <brobecker@gnat.com>
21502
21503 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21504 (ARCH_SET_FS): Likewise.
21505 (ARCH_GET_FS): Likewise.
21506 (ARCH_GET_GS): Likewise.
21507
fd500816
DJ
215082004-10-16 Daniel Jacobowitz <dan@debian.org>
21509
21510 * linux-i386-low.c (ps_get_thread_area): New.
21511 * linux-x86-64-low.c (ps_get_thread_area): New.
21512 * linux-low.c: Include <sys/syscall.h>.
21513 (linux_kill_one_process): Don't kill the first thread here.
21514 (linux_kill): Kill the first thread here.
21515 (kill_lwp): New function.
21516 (send_sigstop, linux_send_signal): Use it.
21517 * proc-service.c: Clean up #ifdefs.
21518 (fpregset_info): Delete.
21519 (ps_lgetregs): Update and enable implementation.
21520 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21521 implementations.
21522 * remote-utils.c (struct sym_cache, symbol_cache): New.
21523 (input_interrupt): Print a clearer message.
21524 (async_io_enabled): New variable.
21525 (enable_async_io, disable_async_io): Use it. Update comments.
21526 (look_up_one_symbol): Use the symbol cache.
21527 * thread-db.c (thread_db_look_up_symbols): New function.
21528 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21529
f6de3c42
DJ
215302004-10-16 Daniel Jacobowitz <dan@debian.org>
21531
21532 * configure.in: Test for -rdynamic.
21533 * configure: Regenerated.
21534 * Makefile (INTERNAL_LDFLAGS): New.
21535 (gdbserver, gdbreplay): Use it.
21536
2c0fc042
AC
215372004-09-02 Andrew Cagney <cagney@gnu.org>
21538
21539 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21540
075b3282
DJ
215412004-03-23 Daniel Jacobowitz <drow@mvista.com>
21542
21543 * linux-low.c (linux_wait): Clear all_processes list also.
21544
fa6a77dc
DJ
215452004-03-12 Daniel Jacobowitz <drow@mvista.com>
21546
21547 * linux-low.c: Include <errno.h>. Remove extern declaration of
21548 errno.
21549
6d782a97
DJ
215502004-03-12 Daniel Jacobowitz <drow@mvista.com>
21551
21552 * gdbreplay.c, server.h, utils.c: Update copyright years.
21553
3a7fb99b
DJ
215542004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21555
21556 * server.c (main): Print child status or termination signal from
21557 variable 'signal', not 'sig'.
21558
c3e735a6
DJ
215592004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21560
21561 * linux-low.c (linux_read_memory): Change return type to
21562 int. Check for and return error from ptrace().
21563 * target.c (read_inferior_memory): Change return type to int. Pass
21564 back return status from the_target->read_memory().
21565 * target.h (struct target_ops): Adapt *read_memory() prototype.
21566 Update comment.
21567 (read_inferior_memory): Adapt prototype.
21568 * server.c (main): Return an error packet if
21569 read_inferior_memory() returns an error.
21570
a59d1c82
DJ
215712004-03-04 Daniel Jacobowitz <drow@mvista.com>
21572
21573 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21574 Unify with other clean targets.
21575
dc3f8883
DJ
215762004-02-29 Daniel Jacobowitz <drow@mvista.com>
21577
21578 * server.c (handle_v_cont): Call set_desired_inferior.
21579
89a208da
DJ
215802004-02-29 Daniel Jacobowitz <drow@mvista.com>
21581
21582 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21583
62ea82f5
DJ
215842004-02-29 Daniel Jacobowitz <drow@mvista.com>
21585
21586 * linux-low.c (linux_wait): Unblock async I/O.
21587 (linux_resume): Block and enable async I/O.
21588 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21589 * server.h (block_async_io, unblock_async_io): Add prototypes.
21590
6910d122
DJ
215912004-02-29 Daniel Jacobowitz <drow@mvista.com>
21592
21593 * remote-utils.c (remote_open): Print a status notice after
21594 opening a TCP port.
21595 * server.c (attach_inferior): Print a status notice after
21596 attaching.
21597
215982004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21599
21600 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21601
c89dc5d4
DJ
216022004-02-26 Daniel Jacobowitz <drow@mvista.com>
21603
21604 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21605 error packet.
21606 * server.c, target.h: Update copyright years.
21607
4b8dad4a
RM
216082004-02-25 Roland McGrath <roland@redhat.com>
21609
21610 * target.h (struct target_ops): New member `read_auxv'.
21611 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21612 * linux-low.c (linux_read_auxv): New function.
21613 (linux_target_ops): Initialize `read_auxv' member to that.
21614
d7446758
JB
216152004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21616
21617 Committed by Jim Blandy <jimb@redhat.com>.
21618
21619 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21620 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21621 instead of GPR_SIZE to distiguish s390 and s390x targets.
21622
5544ad89
DJ
216232004-01-31 Daniel Jacobowitz <drow@mvista.com>
21624
21625 * linux-low.c: Update copyright year.
21626 (check_removed_breakpoint): Clear pending_is_breakpoint.
21627 (linux_set_resume_request, linux_queue_one_thread)
21628 (resume_status_pending_p): New functions.
21629 (linux_continue_one_thread): Use process->resume.
21630 (linux_resume): Only resume threads if there are no pending events.
21631 * linux-low.h (struct process_info): Add resume request
21632 pointer.
21633
2a68b70e
DJ
216342004-01-30 Daniel Jacobowitz <drow@mvista.com>
21635
21636 * regcache.c (new_register_cache): Clear the allocated register
21637 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21638
64386c31
DJ
216392003-10-13 Daniel Jacobowitz <drow@mvista.com>
21640
21641 * linux-low.c (linux_resume): Take a struct thread_resume *
21642 argument.
21643 (linux_wait): Update call.
21644 (resume_ptr): New static variable.
21645 (linux_continue_one_thread): Renamed from
21646 linux_continue_one_process. Use resume_ptr.
21647 (linux_resume): Use linux_continue_one_thread.
21648 * server.c (handle_v_cont, handle_v_requests): New functions.
21649 (myresume): New function.
21650 (main): Handle 'v' case.
21651 * target.h (struct thread_resume): New type.
21652 (struct target_ops): Change argument of "resume" to struct
21653 thread_resume *.
21654 (myresume): Delete macro.
21655
c938e9b0
L
216562003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21657
21658 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21659 (uninstall): Support DESTDIR.
21660
7f313d07
BC
21661Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21662
21663 * configure.srv: Add xscale*linux copy of arm*linux entry.
21664
3b2fc2ea
DJ
216652003-07-24 Daniel Jacobowitz <drow@mvista.com>
21666
21667 * linux-arm-low.c (arm_reinsert_addr): New function.
21668 (the_low_target): Add arm_reinsert_addr.
21669
1c0a559e
MK
216702003-07-08 Mark Kettenis <kettenis@gnu.org>
21671
21672 * mem-break.c: Remove whitespace at end of file.
21673
43d5792c
DJ
216742003-06-28 Daniel Jacobowitz <drow@mvista.com>
21675
21676 * configure.in: Check whether we need to prototype strerror.
21677 * server.h: Optionally prototype strerror.
21678 * gdbreplay.c (perror_with_name): Use strerror.
21679 * linux-low.c (linux_attach_lwp): Use strerror.
21680 * utils.c (perror_with_name): Use strerror.
21681 * config.in, configure: Regenerated.
21682
c8a86edf
DJ
216832003-06-28 Daniel Jacobowitz <drow@mvista.com>
21684
21685 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21686 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21687
73d37363
DJ
216882003-06-20 Daniel Jacobowitz <drow@mvista.com>
21689
21690 * Makefile.in (SFILES): Update.
21691 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21692 low-sun3.c: Remove files.
21693
6ad8ae5c
DJ
216942003-06-17 Daniel Jacobowitz <drow@mvista.com>
21695
21696 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21697 (linux_detach_one_process, linux_detach): New functions.
21698 (linux_target_ops): Add linux_detach.
21699 * server.c (main): Handle 'D' packet.
21700 * target.h (struct target_ops): Add "detach" member.
21701 (detach_inferior): Define.
21702
1581182a
MK
217032003-06-13 Mark Kettenis <kettenis@gnu.org>
21704
21705 From Kelley Cook <kelleycook@wideopenwest.com>:
21706 * configure.srv: Accept i[34567]86 variants.
21707
e5379b03
DJ
217082003-06-05 Daniel Jacobowitz <drow@mvista.com>
21709
21710 * linux-low.c (linux_wait_for_event): Correct comment typos.
21711 (linux_resume_one_process): Call check_removed_breakpoint.
21712 (linux_send_signal): New function.
21713 (linux_target_ops): Add linux_send_signal.
21714 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21715 of kill.
21716 * target.h (struct target_ops): Add send_signal.
21717
2ff29de4
JB
217182003-05-29 Jim Blandy <jimb@redhat.com>
21719
21720 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21721 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21722 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21723 away part of the register's value.
21724
254787d4
DJ
217252003-03-26 Daniel Jacobowitz <drow@mvista.com>
21726
21727 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21728 (linux_wait_for_event, linux_init_signals): Likewise.
21729
94e10508
DJ
217302003-03-17 Daniel Jacobowitz <drow@mvista.com>
21731
21732 * configure.in: Check for stdlib.h.
21733 * configure: Regenerated.
21734 * config.in: Regenerated.
21735
4c0711e0
DJ
217362003-01-04 Andreas Schwab <schwab@suse.de>
21737
21738 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21739
ef66e766
AC
217402003-01-02 Andrew Cagney <ac131313@redhat.com>
21741
21742 * Makefile.in: Remove obsolete code.
21743
a1358604
DJ
217442002-11-20 Daniel Jacobowitz <drow@mvista.com>
21745
21746 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21747 defined(PT_FPR0_HI).
21748
23ce3b1c
DJ
217492002-11-17 Stuart Hughes <seh@zee2.com>
21750
21751 * linux-arm-low.c (arm_num_regs): Increase.
21752 (arm_regmap): Include status register.
21753
217542002-11-17 Daniel Jacobowitz <drow@mvista.com>
21755
21756 * linux-low.c (register_addr): Remove incorrect -1 check.
21757
a9fa9f7d
DJ
217582002-08-29 Daniel Jacobowitz <drow@mvista.com>
21759
21760 * linux-low.c (linux_create_inferior): Call setpgid. Return
21761 the new PID.
21762 (unstopped_p, linux_signal_pid): Remove.
21763 (linux_target_ops): Remove linux_signal_pid.
21764 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21765 global instead of target method.
21766 * target.h (struct target_ops): Remove signal_pid. Update comment
21767 for create_inferior.
21768 * server.c (signal_pid): New variable.
21769 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21770 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21771 (attach_inferior): Set signal_pid.
21772
17574093
DJ
217732002-08-23 Daniel Jacobowitz <drow@mvista.com>
21774
21775 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21776
217772002-08-20 Jim Blandy <jimb@redhat.com>
21778
21779 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21780 default for this.
21781
217822002-08-01 Andrew Cagney <cagney@redhat.com>
21783
21784 * Makefile.in: Make chill references obsolete.
21785
217862002-07-24 Kevin Buettner <kevinb@redhat.com>
21787
21788 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21789 * configure: Regenerate.
21790 * config.in: Regenerate.
21791
217922002-07-09 David O'Brien <obrien@FreeBSD.org>
21793
21794 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21795 (perror_with_name, remote_close, remote_open, expect, play): Static.
21796
217972002-07-04 Michal Ludvig <mludvig@suse.cz>
21798
4b8dad4a 21799 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21800 byte offsets instead of an array of indexes.
21801 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21802
218032002-06-13 Daniel Jacobowitz <drow@mvista.com>
21804
21805 * regcache.c: Add comment.
21806
218072002-06-11 Daniel Jacobowitz <drow@mvista.com>
21808
21809 * thread-db.c: New file.
21810 * proc-service.c: New file.
21811 * acinclude.m4: New file.
21812 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21813 proc-service.o, and thread-db.o.
21814 (linux-low.o): Add USE_THREAD_DB.
21815 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21816 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21817 * aclocal.m4: Regenerated.
21818 * config.in: Regenerated.
21819 * configure: Regenerated.
21820 * configure.in: Check for proc_service.h, sys/procfs.h,
21821 thread_db.h, and linux/elf.h headrs.
21822 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21823 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21824 Check for -lthread_db and thread support.
21825 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21826 PowerPC, and SuperH.
21827 * i387-fp.c: Constify arguments.
21828 * i387-fp.h: Likewise.
21829 * inferiors.c: (struct thread_info): Renamed from
21830 `struct inferior_info'. Remove PID member. Use generic inferior
21831 list header. All uses updated.
21832 (inferiors, signal_pid): Removed.
21833 (all_threads): New variable.
21834 (get_thread): Define.
21835 (add_inferior_to_list): New function.
21836 (for_each_inferior): New function.
21837 (change_inferior_id): New function.
21838 (add_inferior): Removed.
21839 (remove_inferior): New function.
21840 (add_thread): New function.
21841 (free_one_thread): New function.
21842 (remove_thread): New function.
21843 (clear_inferiors): Use for_each_inferior and free_one_thread.
21844 (find_inferior): New function.
21845 (find_inferior_id): New function.
21846 (inferior_target_data): Update argument type.
21847 (set_inferior_target_data): Likewise.
21848 (inferior_regcache_data): Likewise.
21849 (set_inferior_regcache_data): Likewise.
21850 * linux-low.c (linux_bp_reinsert): Remove.
21851 (all_processes, stopping_threads, using_thrads)
21852 (struct pending_signals, debug_threads, pid_of): New.
21853 (inferior_pid): Replace with macro.
21854 (struct inferior_linux_data): Remove.
21855 (get_stop_pc, add_process): New functions.
21856 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21857 Use add_process and add_thread.
21858 (linux_attach_lwp): New function, based on old linux_attach. Use
21859 add_process and add_thread. Set stop_expected for new threads.
21860 (linux_attach): New function.
21861 (linux_kill_one_process): New function.
21862 (linux_kill): Kill all LWPs.
21863 (linux_thread_alive): Use find_inferior_id.
21864 (check_removed_breakpoints, status_pending_p): New functions.
21865 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21866 Update. Use WNOHANG. Wait for cloned processes also. Update process
21867 struct for the found process.
21868 (linux_wait_for_event): New function.
21869 (linux_wait): Use it. Support LWPs.
21870 (send_sigstop, wait_for_sigstop, stop_all_processes)
21871 (linux_resume_one_process, linux_continue_one_process): New functions.
21872 (linux_resume): Support LWPs.
21873 (REGISTER_RAW_SIZE): Remove.
21874 (fetch_register): Use register_size instead. Call supply_register.
21875 (usr_store_inferior_registers): Likewise. Call collect_register.
21876 Fix recursive case.
21877 (regsets_fetch_inferior_registers): Improve error message.
21878 (regsets_store_inferior_registers): Add debugging.
21879 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21880 (unstopped_p, linux_signal_pid): New functions.
21881 (linux_target_ops): Add linux_signal_pid.
21882 (linux_init_signals): New function.
21883 (initialize_low): Call it. Initialize using_threads.
21884 * regcache.c (inferior_regcache_data): Add valid
21885 flag.
21886 (get_regcache): Fetch registers lazily. Add fetch argument
21887 and update all callers.
21888 (regcache_invalidate_one, regcache_invalidate): New
21889 functions.
21890 (new_register_cache): Renamed from create_register_cache.
21891 Return the new regcache.
21892 (free_register_cache): Change argument to a void *.
21893 (registers_to_string, registers_from_string): Call get_regcache
21894 with fetch flag set.
21895 (register_data): Make static. Pass fetch flag to get_regcache.
21896 (supply_register): Call get_regcache with fetch flag clear.
21897 (collect_register): Call get_regcache with fetch flag set.
21898 (collect_register_as_string): New function.
21899 * regcache.h: Update.
21900 * remote-utils.c (putpkt): Flush after debug output and use
21901 stderr.
21902 Handle input interrupts while waiting for an ACK.
21903 (input_interrupt): Use signal_pid method.
21904 (getpkt): Flush after debug output and use stderr.
21905 (outreg): Use collect_register_as_string.
21906 (new_thread_notify, dead_thread_notify): New functions.
21907 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21908 and general_thread.
21909 (look_up_one_symbol): Flush after debug output.
21910 * server.c (step_thread, server_waiting): New variables.
21911 (start_inferior): Don't use signal_pid. Update call to mywait.
21912 (attach_inferior): Update call to mywait.
21913 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21914 (main): Don't fetch/store registers explicitly. Use
21915 set_desired_inferior. Support proposed ``Hs'' packet. Update
21916 calls to mywait.
21917 * server.h: Update.
21918 (struct inferior_list, struct_inferior_list_entry): New.
21919 * target.c (set_desired_inferior): New.
21920 (write_inferior_memory): Constify.
21921 (mywait): New function.
21922 * target.h: Update.
21923 (struct target_ops): New signal_pid method.
21924 (mywait): Removed macro, added prototype.
21925
21926 * linux-low.h (regset_func): Removed.
21927 (regset_fill_func, regset_store_func): New.
21928 (enum regset_type): New.
21929 (struct regset_info): Add type field. Use new operation types.
21930 (struct linux_target_ops): stop_pc renamed to get_pc.
21931 Add decr_pc_after_break and breakpoint_at.
21932 (get_process, get_thread_proess, get_process_thread)
21933 (strut process_info, all_processes, linux_attach_lwp)
21934 (thread_db_init): New.
21935
21936 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21937 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21938 (the_low_target): Add new members.
21939 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21940 (i386_store_fpxregset): Constify.
21941 (target_regsets): Add new kind identifier.
21942 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21943 (i386_set_pc): Add debugging.
21944 (i386_breakpoint_at): New function.
21945 (the_low_target): Add new members.
21946 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21947 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21948 (mips_breakpoint_at): New.
21949 (the_low_target): Add new members.
21950 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21951 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21952 (the_low_target): Add new members.
21953 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21954 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21955 (the_low_target): Add new members.
21956 * linux-x86-64-low.c (target_regsets): Add new kind
21957 identifier.
21958
219592002-05-15 Daniel Jacobowitz <drow@mvista.com>
21960
21961 From Martin Pool <mbp@samba.org>:
21962 * server.c (gdbserver_usage): New function.
21963 (main): Call it.
21964
219652002-05-14 Daniel Jacobowitz <drow@mvista.com>
21966
21967 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21968 stop_at -> stop_pc.
21969
219702002-05-04 Andrew Cagney <ac131313@redhat.com>
21971
21972 * Makefile.in: Remove obsolete code.
21973
219742002-04-24 Michal Ludvig <mludvig@suse.cz>
21975
21976 * linux-low.c (regsets_fetch_inferior_registers),
21977 (regsets_store_inferior_registers): Removed cast to int from
21978 ptrace() calls.
21979 * regcache.h: Added declaration of struct inferior_info.
21980
219812002-04-20 Daniel Jacobowitz <drow@mvista.com>
21982
21983 * inferiors.c (struct inferior_info): Add regcache_data.
21984 (add_inferior): Call create_register_cache.
21985 (clear_inferiors): Call free_register_cache.
21986 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21987 * regcache.c (struct inferior_regcache_data): New.
21988 (registers): Remove.
21989 (get_regcache): New function.
21990 (create_register_cache, free_register_cache): New functions.
21991 (set_register_cache): Don't initialize the register cache here.
21992 (registers_to_string, registers_from_string, register_data): Call
21993 get_regcache.
21994 * regcache.h: Add prototypes.
21995 * server.h: Likewise.
21996
219972002-04-20 Daniel Jacobowitz <drow@mvista.com>
21998
21999 * mem-break.c: New file.
22000 * mem-break.h: New file.
22001 * Makefile.in: Add mem-break.o rule; update server.h
22002 dependencies.
22003 * inferiors.c (struct inferior_info): Add target_data
22004 member.
22005 (clear_inferiors): Free target_data member if set.
22006 (inferior_target_data, set_inferior_target_data): New functions.
22007 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22008 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22009 * linux-low.c (linux_bp_reinsert): New variable.
22010 (struct inferior_linux_data): New.
22011 (linux_create_inferior): Use set_inferior_target_data.
22012 (linux_attach): Likewise. Call add_inferior.
22013 (linux_wait_for_one_inferior): New function.
22014 (linux_wait): Call it.
22015 (linux_write_memory): Add const.
22016 (initialize_low): Call set_breakpoint_data.
22017 * linux-low.h (struct linux_target_ops): Add breakpoint
22018 handling members.
22019 * server.c (attach_inferior): Remove extra add_inferior
22020 call.
22021 * server.h: Include mem-break.h. Update inferior.c
22022 prototypes.
22023 * target.c (read_inferior_memory)
22024 (write_inferior_memory): New functions.
22025 * target.h (read_inferior_memory)
22026 (write_inferior_memory): Change macros to prototypes.
22027 (struct target_ops): Update comments. Add const to write_memory
22028 definition.
22029
220302002-04-11 Daniel Jacobowitz <drow@mvista.com>
22031
22032 * linux-low.c (usr_store_inferior_registers): Support
22033 registers which are allowed to fail to store.
22034 * linux-low.h (linux_target_ops): Likewise.
22035 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22036 (ppc_cannot_store_register): FPSCR may not be storable.
22037
220382002-04-09 Daniel Jacobowitz <drow@mvista.com>
22039
22040 * server.h: Include <string.h> if HAVE_STRING_H.
22041 * ChangeLog: Correct paths in last ChangeLog entry.
22042
220432002-04-09 Daniel Jacobowitz <drow@mvista.com>
22044
22045 * linux-low.h: Remove obsolete prototypes.
22046 (struct linux_target_ops): New.
22047 (extern the_low_target): New.
22048 * linux-low.c (num_regs, regmap): Remove declarations.
22049 (register_addr): Use the_low_target explicitly.
22050 (fetch_register): Likewise.
22051 (usr_fetch_inferior_registers): Likewise.
22052 (usr_store_inferior_registers): Likewise.
22053 * linux-arm-low.c (num_regs): Remove.
22054 (arm_num_regs): Define.
22055 (arm_regmap): Renamed from regmap, made static.
22056 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22057 made static.
22058 (arm_cannot_store_register): Renamed from cannot_store_register,
22059 made static.
22060 (the_low_target): New.
22061 * linux-i386-low.c (num_regs): Remove.
22062 (i386_num_regs): Define.
22063 (i386_regmap): Renamed from regmap, made static.
22064 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22065 made static.
22066 (i386_cannot_store_register): Renamed from cannot_store_register,
22067 made static.
22068 (the_low_target): New.
22069 * linux-ia64-low.c (num_regs): Remove.
22070 (ia64_num_regs): Define.
22071 (ia64_regmap): Renamed from regmap, made static.
22072 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22073 made static.
22074 (ia64_cannot_store_register): Renamed from cannot_store_register,
22075 made static.
22076 (the_low_target): New.
22077 * linux-m68k-low.c (num_regs): Remove.
22078 (m68k_num_regs): Define.
22079 (m68k_regmap): Renamed from regmap, made static.
22080 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22081 made static.
22082 (m68k_cannot_store_register): Renamed from cannot_store_register,
22083 made static.
22084 (the_low_target): New.
22085 * linux-mips-low.c (num_regs): Remove.
22086 (mips_num_regs): Define.
22087 (mips_regmap): Renamed from regmap, made static.
22088 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22089 made static.
22090 (mips_cannot_store_register): Renamed from cannot_store_register,
22091 made static.
22092 (the_low_target): New.
22093 * linux-ppc-low.c (num_regs): Remove.
22094 (ppc_num_regs): Define.
22095 (ppc_regmap): Renamed from regmap, made static.
22096 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22097 made static.
22098 (ppc_cannot_store_register): Renamed from cannot_store_register,
22099 made static.
22100 (the_low_target): New.
22101 * linux-s390-low.c (num_regs): Remove.
22102 (s390_num_regs): Define.
22103 (s390_regmap): Renamed from regmap, made static.
22104 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22105 made static.
22106 (s390_cannot_store_register): Renamed from cannot_store_register,
22107 made static.
22108 (the_low_target): New.
22109 * linux-sh-low.c (num_regs): Remove.
22110 (sh_num_regs): Define.
22111 (sh_regmap): Renamed from regmap, made static.
22112 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22113 made static.
22114 (sh_cannot_store_register): Renamed from cannot_store_register,
22115 made static.
22116 (the_low_target): New.
22117 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22118 (the_low_target): New.
22119
221202002-04-09 Daniel Jacobowitz <drow@mvista.com>
22121
22122 * Makefile.in: Add stamp-h target.
22123 * configure.in: Create stamp-h.
22124 * configure: Regenerated.
22125
221262002-04-09 Daniel Jacobowitz <drow@mvista.com>
22127
22128 * inferiors.c: New file.
22129 * target.c: New file.
22130 * target.h: New file.
22131 * Makefile.in: Add target.o and inferiors.o. Update
22132 dependencies.
22133 * linux-low.c (inferior_pid): New static variable,
22134 moved from server.c.
22135 (linux_create_inferior): Renamed from create_inferior.
22136 Call add_inferior. Return 0 on success instead of a PID.
22137 (linux_attach): Renamed from myattach.
22138 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22139 (linux_thread_alive): Renamed from mythread_alive.
22140 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22141 child dies.
22142 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22143 (regsets_store_inferior_registers): Correct error message.
22144 Add missing ``return 0''.
22145 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22146 (linux_store_registers): Renamed from store_inferior_registers.
22147 (linux_read_memory): Renamed from read_inferior_memory.
22148 (linux_write_memory): Renamed from write_inferior_memory.
22149 (linux_target_ops): New structure.
22150 (initialize_low): Call set_target_ops ().
22151 * remote-utils.c (unhexify): New function.
22152 (hexify): New function.
22153 (input_interrupt): Send signals to ``signal_pid''.
22154 * server.c (inferior_pid): Remove.
22155 (start_inferior): Update create_inferior call.
22156 (attach_inferior): Call add_inferior.
22157 (handle_query): New function.
22158 (main): Call handle_query for `q' packets.
22159 * server.h: Include "target.h". Remove obsolete prototypes.
22160 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22161
221622002-04-09 Daniel Jacobowitz <drow@mvista.com>
22163
22164 * Makefile.in: Add WARN_CFLAGS. Update configury
22165 dependencies.
22166 * configure.in: Check for <string.h>
22167 * configure: Regenerate.
22168 * config.in: Regenerate.
22169 * gdbreplay.c: Include needed system headers.
22170 (remote_open): Remove strchr prototype.
22171 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22172 * regcache.c (supply_register): Change buf argument to const void *.
22173 (supply_register_by_name): Likewise.
22174 (collect_register): Change buf argument to void *.
22175 (collect_register_by_name): Likewise.
22176 * regcache.h: Add missing prototypes.
22177 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22178 * server.c (handle_query): New function.
22179 (attached): New static variable, moved out of main.
22180 (main): Quiet longjmp clobber warnings.
22181 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22182 * utils.c (error): Remove NORETURN.
22183 (fatal): Likewise.