]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdbserver: remove support for LynxOS
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
fdb95bf5
SM
12020-06-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * configure: Re-generate.
4 * configure.ac: Remove srv_lynxos test.
5 * configure.srv: Remove lynxos cases.
6 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
7 Remove.
8
c00094dc
SM
92020-06-12 Simon Marchi <simon.marchi@efficios.com>
10
11 * README: Fix a few outdated or incoherent things.
12
6479bf85
HD
132020-05-27 Hannes Domani <ssbssa@yahoo.de>
14
15 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
16 (win32_clear_inferiors): Use open_process_used.
17 (get_child_debug_event): Likewise.
18
bea571eb
MW
192020-05-25 Michael Weghorn <m.weghorn@posteo.de>
20
21 PR gdbserver/25893
22 * linux-low.cc (linux_process_target::create_inferior),
23 lynx-low.cc (lynx_process_target::create_inferior),
24 win32-low.cc (win32_process_target::create_inferior): Use
25 construct_inferior_arguments instead of stringify_argv
26 to get string representation which properly escapes
27 special characters.
28 * server.cc (handle_v_run): Just pass empty program arg
29 as such, since any further processing is now handled via
30 construct_inferior_arguments.
31
ace6b919
MW
322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
33
34 * nto-low.cc (nto_process_target::create_inferior): Pass
35 argv to spawnp function as char **.
36
b69ca137
MW
372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
38
39 * server.cc (captured_main), (handle_v_run): No longer
40 insert extra NULL element to args vector.
41
51e2cfa2
PA
422020-05-23 Pedro Alves <palves@redhat.com>
43
44 * gdb-safe-ctype.h: New.
45
8bbf0394
TBA
462020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
47
48 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
49 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
50 (ia64_target::low_breakpoint_at): Ditto.
51
01370779
HD
522020-05-15 Hannes Domani <ssbssa@yahoo.de>
53
54 * win32-i386-low.cc (i386_supports_z_point_type): Handle
55 Z_PACKET_HW_BP z_type.
56 (i386_insert_point): Handle raw_bkpt_type type.
57 (i386_remove_point): Likewise.
58
7d186bc0
HD
592020-04-30 Hannes Domani <ssbssa@yahoo.de>
60
61 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
62 Add arch/i386.o.
63 * win32-arm-low.cc (arm_num_regs): New function.
64 (struct win32_target_ops): Use arm_num_regs.
65 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
66 processes.
67 (i386_get_thread_context): Likewise.
68 (i386_prepare_to_resume): Likewise.
69 (i386_thread_added): Likewise.
70 (i386_single_step): Likewise.
71 (i386_fetch_inferior_register): Likewise.
72 (i386_store_inferior_register): Likewise.
73 (i386_arch_setup): Likewise.
74 (i386_win32_num_regs): New function.
75 (struct win32_target_ops): Use i386_win32_num_regs.
76 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
77 processes.
78 (win32_require_context): Likewise.
79 (child_add_thread): Likewise.
80 (do_initial_child_stuff): Likewise.
81 (continue_one_thread): Likewise.
82 (win32_process_target::resume): Likewise.
83 (load_psapi): Likewise.
84 (win32_add_all_dlls): Likewise.
85 (maybe_adjust_pc): Likewise.
86 (win32_process_target::qxfer_siginfo): Likewise.
87 (initialize_low): Likewise.
88 * win32-low.h (struct win32_target_ops): Change num_regs to
89 callback function.
90
1eb39914
SM
912020-04-27 Simon Marchi <simon.marchi@efficios.com>
92
93 * configure.ac: Remove check for fs_base/gs_base in
94 user_regs_struct.
95 * configure: Re-generate.
96 * config.in: Re-generate.
97 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
98 x86_store_gregset): Adjust.
99
51ac8e22
HD
1002020-04-22 Hannes Domani <ssbssa@yahoo.de>
101
102 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
103 comparison.
104
a010605f
TT
1052020-04-16 Tom Tromey <tromey@adacore.com>
106
107 * win32-low.cc (windows_nat::handle_access_violation): New
108 function.
109
e2275c6e
SM
1102020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * win32-low.cc (get_child_debug_event): Fix format string warning.
113
73944e9f
TT
1142020-04-13 Tom Tromey <tom@tromey.com>
115
116 * server.h (gdb_fildes_t): Remove typedef.
117 * remote-utils.c (remote_desc, list_desc): Now int.
118 (INVALID_DESCRIPTOR): Remove.
119 (gdb_connected, remote_close)
120 (check_remote_input_interrupt_request): Update.
121 * utils.h (pfildes): Don't declare.
122 * utils.c (pfildes): Remove.
123
55d7aec8
TT
1242020-04-13 Tom Tromey <tom@tromey.com>
125
126 * server.h (handle_serial_event, handle_target_event): Update.
127 * server.c: Don't call initialize_event_loop.
128 (keep_processing_events): New global.
129 (handle_serial_event): Return void. Set keep_processing_events.
130 (handle_target_event): Return void.
131 (start_event_loop): Move from event-loop.c. Rewrite.
132 * remote-utils.c (handle_accept_event): Return void.
133 (reset_readchar): Use delete_timer.
134 (process_remaining): Return void.
135 (reschedule): Use create_timer.
136 * event-loop.h: Remove.
137 * event-loop.cc: Remove.
138 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
139
e487f994
TT
1402020-04-13 Tom Tromey <tom@tromey.com>
141
142 * server.c (invoke_async_signal_handlers)
143 (check_async_event_handlers, flush_streams, gdb_select): New
144 functions.
145
8ae8e197
TT
1462020-04-13 Tom Tromey <tom@tromey.com>
147
148 * configure: Rebuild.
149 * config.in: Rebuild.
150
360ad8b3
TT
1512020-04-08 Tom Tromey <tromey@adacore.com>
152
153 PR gdb/22992
154 * win32-low.c (child_continue): Call matching_pending_stop.
155 (get_child_debug_event): Call fetch_pending_stop. Push pending
156 stop when needed.
157
523d4f80
TT
1582020-04-08 Tom Tromey <tromey@adacore.com>
159
160 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
161 (win32_process_target::supports_stopped_by_sw_breakpoint):
162 Declare.
163 * win32-low.c (win32_supports_z_point_type): Always handle
164 Z_PACKET_SW_BP.
165 (win32_insert_point): Call insert_memory_breakpoint when needed.
166 (win32_remove_point): Call remove_memory_breakpoint when needed.
167 (win32_process_target::stopped_by_sw_breakpoint)
168 (win32_process_target::supports_stopped_by_sw_breakpoint): New
169 methods.
170 (win32_target_ops): Update.
171 (maybe_adjust_pc): New function.
172 (win32_wait): Call maybe_adjust_pc.
173
e54e5929
TT
1742020-04-08 Tom Tromey <tromey@adacore.com>
175
176 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
177 field.
178 * win32-i386-low.c (the_low_target): Update.
179 * win32-arm-low.c (the_low_target): Update.
180
d6225aff
TT
1812020-04-08 Tom Tromey <tromey@adacore.com>
182
183 * win32-low.h (win32_process_target::read_pc)
184 (win32_process_target::write_pc): Declare.
185 * win32-low.c (win32_process_target::read_pc)
186 (win32_process_target::write_pc): New methods.
187 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
188 functions.
189 (the_low_target): Update.
190 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
191 functions.
192 (the_low_target): Update.
193
2c1d95e8
TT
1942020-04-08 Tom Tromey <tromey@adacore.com>
195
196 * win32-low.c (win32_kill, get_child_debug_event): Use
197 wait_for_debug_event.
198
e758e19c
TT
1992020-04-08 Tom Tromey <tromey@adacore.com>
200
201 * win32-low.c (child_continue): Call continue_last_debug_event.
202
8d30e395
TT
2032020-04-08 Tom Tromey <tromey@adacore.com>
204
205 * win32-low.c (handle_exception): Remove.
206 (windows_nat::handle_ms_vc_exception): New function.
207 (get_child_debug_event): Add "continue_status" parameter.
208 Update.
209 (win32_wait): Update.
210
a816ba18
TT
2112020-04-08 Tom Tromey <tromey@adacore.com>
212
213 * win32-low.c (windows_nat::handle_load_dll): Rename from
214 handle_load_dll. No longer static.
215 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
216 No longer static.
217
d41b524f
TT
2182020-04-08 Tom Tromey <tromey@adacore.com>
219
220 * win32-low.c (handle_output_debug_string): Add parameter. Change
221 return type.
222 (win32_kill, get_child_debug_event): Update.
223
3c76026d
TT
2242020-04-08 Tom Tromey <tromey@adacore.com>
225
226 * win32-low.c (current_process_handle, current_process_id)
227 (main_thread_id, last_sig, current_event, siginfo_er): Move to
228 nat/windows-nat.c.
229
9d8679cc
TT
2302020-04-08 Tom Tromey <tromey@adacore.com>
231
232 * win32-low.c (get_image_name): Remove.
233 (handle_load_dll): Update.
234
28688adf
TT
2352020-04-08 Tom Tromey <tromey@adacore.com>
236
237 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
238 No longer static. Change parameters.
239 (child_add_thread, child_fetch_inferior_registers)
240 (child_store_inferior_registers, win32_resume)
241 (win32_get_tib_address): Update.
242
4834dad0
TT
2432020-04-08 Tom Tromey <tromey@adacore.com>
244
245 * win32-low.h (struct win32_target_ops): Use qualified names where
246 needed.
247 * win32-i386-low.c: Add "using namespace".
248 * win32-low.c: Add "using namespace".
249 * win32-arm-low.c: Add "using namespace".
250
65bafd5b
TT
2512020-04-08 Tom Tromey <tromey@adacore.com>
252
253 * win32-low.c (delete_thread_info): Don't call CloseHandle.
254
98a03287
TT
2552020-04-08 Tom Tromey <tromey@adacore.com>
256
257 * win32-low.c (win32_require_context, suspend_one_thread): Use
258 windows_thread_info::suspend.
259 (continue_one_thread): Use windows_thread_info::resume.
260 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
261
62fe396b
TT
2622020-04-08 Tom Tromey <tromey@adacore.com>
263
264 * win32-i386-low.c (update_debug_registers)
265 (i386_prepare_to_resume, i386_thread_added): Update.
266
e9534bd2
TT
2672020-04-08 Tom Tromey <tromey@adacore.com>
268
269 * win32-low.c (child_add_thread): Use new.
270 (delete_thread_info): Use delete.
271
ae1f8880
TT
2722020-04-08 Tom Tromey <tromey@adacore.com>
273
274 * win32-low.h (struct windows_thread_info): Remove.
275
e56f8ccb
TT
2762020-04-08 Tom Tromey <tromey@adacore.com>
277
278 * win32-low.h (struct windows_thread_info): Rename from
279 win32_thread_info. Remove typedef.
280 (struct win32_target_ops, win32_require_context): Update.
281 * win32-low.c (win32_get_thread_context)
282 (win32_set_thread_context, win32_prepare_to_resume)
283 (win32_require_context, thread_rec, child_add_thread)
284 (delete_thread_info, continue_one_thread)
285 (child_fetch_inferior_registers, child_store_inferior_registers)
286 (win32_resume, suspend_one_thread, win32_get_tib_address):
287 Update.
288 * win32-i386-low.c (update_debug_registers)
289 (win32_get_current_dr, i386_get_thread_context)
290 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
291 (i386_fetch_inferior_register, i386_store_inferior_register):
292 Update.
293 * win32-arm-low.c (arm_get_thread_context)
294 (arm_fetch_inferior_register, arm_store_inferior_register):
295 Update.
296
0dd7b52e
TBA
2972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
298
299 * linux-low.h (struct linux_target_ops): Remove.
300 (the_low_target): Remove.
301 * linux-x86-low.cc (the_low_target): Remove.
302 * linux-aarch64-low.cc (the_low_target): Ditto.
303 * linux-arm-low.cc (the_low_target): Ditto.
304 * linux-bfin-low.cc (the_low_target): Ditto.
305 * linux-cris-low.cc (the_low_target): Ditto.
306 * linux-crisv32-low.cc (the_low_target): Ditto.
307 * linux-ia64-low.cc (the_low_target): Ditto.
308 * linux-m32r-low.cc (the_low_target): Ditto.
309 * linux-m68k-low.cc (the_low_target): Ditto.
310 * linux-mips-low.cc (the_low_target): Ditto.
311 * linux-nios2-low.cc (the_low_target): Ditto.
312 * linux-ppc-low.cc (the_low_target): Ditto.
313 * linux-riscv-low.cc (the_low_target): Ditto.
314 * linux-s390-low.cc (the_low_target): Ditto.
315 * linux-sh-low.cc (the_low_target): Ditto.
316 * linux-sparc-low.cc (the_low_target): Ditto.
317 * linux-tic6x-low.cc (the_low_target): Ditto.
318 * linux-tile-low.cc (the_low_target): Ditto.
319 * linux-xtensa-low.cc (the_low_target): Ditto.
320
fc5ecdb6
TBA
3212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
322
323 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
324 linux target define the op by overriding the declaration in
325 process_stratum_target.
326
327 * linux-low.h (struct linux_target_ops): Remove the op.
328 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
329 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
330 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
331 (x86_get_ipa_tdesc_idx): Turn into...
332 (x86_target::get_ipa_tdesc_idx): ...this.
333 (the_low_target): Remove the op field.
334 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
335 (ppc_get_ipa_tdesc_idx): Turn into...
336 (ppc_target::get_ipa_tdesc_idx): ...this.
337 (the_low_target): Remove the op field.
338 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
339 (s390_get_ipa_tdesc_idx): Turn into...
340 (s390_target::get_ipa_tdesc_idx): ...this.
341 (the_low_target): Remove the op field.
342
9eedd27d
TBA
3432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
344
345 Turn the 'get_syscall_trapinfo' linux target op into a method
346 of process_stratum_target.
347
348 * linux-low.h (struct linux_target_ops): Remove the op.
349 (class linux_process_target) <get_syscall_trapinfo>
350 <gdb_catch_this_syscall>
351 <low_supports_catch_syscall>
352 <low_get_syscall_trapinfo>: Declare.
353 * linux-low.cc (get_syscall_trapinfo): Turn into...
354 (linux_process_target::get_syscall_trapinfo): ...this.
355 (linux_process_target::low_get_syscall_trapinfo): Define.
356 (gdb_catch_this_syscall_p): Turn into...
357 (linux_process_target::gdb_catch_this_syscall): ...this.
358 (linux_process_target::low_supports_catch_syscall): Define.
359
360 Update the callers below.
361
362 (linux_process_target::wait_1)
363 (linux_process_target::supports_catch_syscall)
364
365 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
366 <low_get_syscall_trapinfo>: Declare.
367 (x86_target::low_supports_catch_syscall): Define.
368 (x86_get_syscall_trapinfo): Turn into...
369 (x86_target::low_get_syscall_trapinfo): ...this.
370 (the_low_target): Remove the op field.
371 * linux-aarch64-low.cc (class aarch64_target)
372 <low_supports_catch_syscall>
373 <low_get_syscall_trapinfo>: Declare.
374 (aarch64_target::low_supports_catch_syscall): Define.
375 (aarch64_get_syscall_trapinfo): Turn into...
376 (aarch64_target::low_get_syscall_trapinfo): ...this.
377 (the_low_target): Remove the op field.
378 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
379 <low_get_syscall_trapinfo>: Declare.
380 (arm_target::low_supports_catch_syscall): Define.
381 (arm_get_syscall_trapinfo): Turn into...
382 (arm_target::low_get_syscall_trapinfo): ...this.
383 (the_low_target): Remove the op field.
384 * linux-ppc-low.cc (the_low_target): Remove the op field.
385 * linux-s390-low.cc (the_low_target): Remove the op field.
386
b31cdfa6
TBA
3872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
388
389 Remove the 'supports_hardware_single_step' linux target op and
390 override the process_stratum_target's op definition in
391 linux_process_target to return true.
392
393 * linux-low.h (struct linux_target_ops): Remove the op.
394 (class linux_process_target) <finish_step_over>
395 <maybe_hw_step>: Declare.
396 * linux-low.cc (can_hardware_single_step): Remove.
397 (maybe_hw_step): Turn into...
398 (linux_process_target::maybe_hw_step): ...this.
399 (finish_step_over): Turn into...
400 (linux_process_target::finish_step_over): ...this.
401 (linux_process_target::supports_hardware_single_step): Update
402 to return true.
403
404 Update the callers below.
405
406 (linux_process_target::single_step)
407 (linux_process_target::resume_one_lwp_throw)
408
409 * linux-arm-low.cc (class arm_target)
410 <supports_hardware_single_step>: Declare.
411 (arm_supports_hardware_single_step): Turn into...
412 (arm_target::supports_hardware_single_step): ...this.
413 (the_low_target): Remove the op field.
414 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
415 (the_low_target): Remove the op field.
416 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
417 Remove.
418 (the_low_target): Remove the op field.
419 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
420 (the_low_target): Remove the op field.
421 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
422 (the_low_target): Remove the op field.
423 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
424 (the_low_target): Remove the op field.
425 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
426 (the_low_target): Remove the op field.
427 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
428 (the_low_target): Remove the op field.
429 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
430 (the_low_target): Remove the op field.
431 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
432 (the_low_target): Remove the op field.
433 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
434 (the_low_target): Remove the op field.
435 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
436 (the_low_target): Remove the op field.
437 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
438 Remove.
439 (the_low_target): Remove the op field.
440
9cfd8715
TBA
4412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
442
443 Turn the 'supports_range_stepping' linux target op into a method
444 of linux_process_target.
445
446 * linux-low.h (struct linux_target_ops): Remove the op.
447 (class linux_process_target) <low_supports_range_stepping>: Declare.
448 * linux-low.cc (linux_process_target::low_supports_range_stepping):
449 Define.
450 (linux_process_target::supports_range_stepping): Update the call
451 site.
452 * linux-x86-low.cc (class x86_target)
453 <low_supports_range_stepping>: Declare.
454 (x86_supports_range_stepping): Turn into...
455 (x86_target::low_supports_range_stepping): ...this.
456 (the_low_target): Remove the op field.
457 * linux-aarch64-low.cc (class aarch64_target)
458 <low_supports_range_stepping>: Declare.
459 (aarch64_supports_range_stepping): Turn into...
460 (aarch64_target::low_supports_range_stepping): ...this.
461 (the_low_target): Remove the op field.
462 * linux-arm-low.cc (the_low_target): Remove the op field.
463 * linux-bfin-low.cc (the_low_target): Ditto.
464 * linux-crisv32-low.cc (the_low_target): Ditto.
465 * linux-m32r-low.cc (the_low_target): Ditto.
466 * linux-m68k-low.cc (the_low_target): Ditto.
467 * linux-ppc-low.cc (the_low_target): Ditto.
468 * linux-s390-low.cc (the_low_target): Ditto.
469 * linux-sh-low.cc (the_low_target): Ditto.
470 * linux-tic6x-low.cc (the_low_target): Ditto.
471 * linux-tile-low.cc (the_low_target): Ditto.
472 * linux-xtensa-low.cc (the_low_target): Ditto.
473
ab64c999
TBA
4742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
475
476 Remove the 'emit_ops' linux target ops and let the concrete
477 linux target define the op by overriding the declaration of
478 process_stratum_target.
479
480 * linux-low.h (struct linux_target_ops): Remove the op.
481 (class linux_process_target) <emit_ops>: Remove.
482 * linux-low.cc (linux_process_target::emit_ops): Remove.
483 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
484 (x86_emit_ops): Turn into...
485 (x86_target::emit_ops): ...this.
486 (the_low_target): Remove the op field.
487 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
488 (aarch64_emit_ops): Turn into...
489 (aarch64_target::emit_ops): ...this.
490 (the_low_target): Remove the op field.
491 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
492 (ppc_emit_ops): Turn into...
493 (ppc_target::emit_ops): ...this.
494 (the_low_target): Remove the op field.
495 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
496 (s390_emit_ops): Turn into...
497 (s390_target::emit_ops): ...this.
498 (the_low_target): Remove the op field.
499 * linux-arm-low.cc (the_low_target): Remove the op field.
500 * linux-bfin-low.cc (the_low_target): Ditto.
501 * linux-crisv32-low.cc (the_low_target): Ditto.
502 * linux-m32r-low.cc (the_low_target): Ditto.
503 * linux-m68k-low.cc (the_low_target): Ditto.
504 * linux-sh-low.cc (the_low_target): Ditto.
505 * linux-tic6x-low.cc (the_low_target): Ditto.
506 * linux-tile-low.cc (the_low_target): Ditto.
507 * linux-xtensa-low.cc (the_low_target): Ditto.
508
809a0c35
TBA
5092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
510
511 Remove the 'install_fast_tracepoint_jump_pad' and
512 'get_min_fast_tracepoint_insn_len' linux target ops to let the
513 concrete linux target define the ops by overriding the declarations
514 of process_stratum_target.
515
516 * linux-low.h (struct linux_target_ops): Remove the ops.
517 (class linux_process_target) <supports_fast_tracepoints>
518 <install_fast_tracepoint_jump_pad>
519 <get_min_fast_tracepoint_insn_len>: Remove.
520 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
521 (linux_process_target::install_fast_tracepoint_jump_pad)
522 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
523 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
524 <install_fast_tracepoint_jump_pad>
525 <get_min_fast_tracepoint_insn_len>: Declare.
526 (x86_target::supports_fast_tracepoints): Define.
527 (x86_install_fast_tracepoint_jump_pad): Turn into...
528 (x86_target::install_fast_tracepoint_jump_pad): ...this.
529 (x86_get_min_fast_tracepoint_insn_len): Turn into...
530 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
531 (the_low_target): Remove the op fields.
532 * linux-aarch64-low.cc (class aarch64_target)
533 <supports_fast_tracepoints>
534 <install_fast_tracepoint_jump_pad>
535 <get_min_fast_tracepoint_insn_len>: Declare.
536 (aarch64_target::supports_fast_tracepoints): Define.
537 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
538 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
539 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
540 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
541 (the_low_target): Remove the op fields.
542 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
543 <install_fast_tracepoint_jump_pad>
544 <get_min_fast_tracepoint_insn_len>: Declare.
545 (ppc_target::supports_fast_tracepoints): Define.
546 (ppc_install_fast_tracepoint_jump_pad): Turn into...
547 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
548 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
549 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
550 (the_low_target): Remove the op fields.
551 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
552 <install_fast_tracepoint_jump_pad>
553 <get_min_fast_tracepoint_insn_len>: Declare.
554 (s390_target::supports_fast_tracepoints): Define.
555 (s390_install_fast_tracepoint_jump_pad): Turn into...
556 (s390_target::install_fast_tracepoint_jump_pad): ...this.
557 (s390_get_min_fast_tracepoint_insn_len): Turn into...
558 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
559 (the_low_target): Remove the op fields.
560 * linux-arm-low.cc (the_low_target): Remove the op fields.
561 * linux-bfin-low.cc (the_low_target): Ditto.
562 * linux-crisv32-low.cc (the_low_target): Ditto.
563 * linux-m32r-low.cc (the_low_target): Ditto.
564 * linux-m68k-low.cc (the_low_target): Ditto.
565 * linux-sh-low.cc (the_low_target): Ditto.
566 * linux-tic6x-low.cc (the_low_target): Ditto.
567 * linux-tile-low.cc (the_low_target): Ditto.
568 * linux-xtensa-low.cc (the_low_target): Ditto.
569
13e567af
TBA
5702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
571
572 Turn the 'get_thread_area' linux target op into a method of
573 process_stratum_target.
574
575 * linux-low.h (struct linux_target_ops): Remove the op.
576 (class linux_process_target) <stuck_in_jump_pad>
577 <linux_fast_tracepoint_collecting>
578 <low_get_thread_area>: Declare.
579 * linux-low.cc (supports_fast_tracepoints): Remove.
580 (linux_fast_tracepoint_collecting): Turn into...
581 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
582 (linux_process_target::low_get_thread_area): Define.
583 (stuck_in_jump_pad_callback): Turn into...
584 (linux_process_target::stuck_in_jump_pad): ...this.
585
586 Update the caller below.
587
588 (linux_process_target::stabilize_threads)
589
590 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
591 Declare.
592 (x86_get_thread_area): Turn into...
593 (x86_target::low_get_thread_area): ...this.
594 (the_low_target): Remove the op field.
595 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
596 Declare.
597 (aarch64_get_thread_area): Turn into...
598 (aarch64_target::low_get_thread_area): ...this.
599 (the_low_target): Remove the op field.
600 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
601 Declare.
602 (ppc_get_thread_area): Turn into...
603 (ppc_target::low_get_thread_area): ...this.
604 (the_low_target): Remove the op field.
605 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
606 Declare.
607 (s390_get_thread_area): Turn into...
608 (s390_target::low_get_thread_area): ...this.
609 (the_low_target): Remove the op field.
610 * linux-arm-low.cc (the_low_target): Remove the op field.
611 * linux-bfin-low.cc (the_low_target): Ditto.
612 * linux-crisv32-low.cc (the_low_target): Ditto.
613 * linux-m32r-low.cc (the_low_target): Ditto.
614 * linux-m68k-low.cc (the_low_target): Ditto.
615 * linux-sh-low.cc (the_low_target): Ditto.
616 * linux-tic6x-low.cc (the_low_target): Ditto.
617 * linux-tile-low.cc (the_low_target): Ditto.
618 * linux-xtensa-low.cc (the_low_target): Ditto.
619
47f70aa7
TBA
6202020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
621
622 Remote the 'supports_tracepoints' linux target op and let the
623 concrete linux target define it by overriding the op declared in
624 process_stratum_target.
625
626 * linux-low.h (struct linux_target_ops): Remove the op.
627 (class linux_process_target) <supports_tracepoints>: Remove.
628 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
629 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
630 Declare.
631 (x86_supports_tracepoints): Turn into...
632 (x86_target::supports_tracepoints): ...this.
633 (the_low_target): Remove the op field.
634 * linux-aarch64-low.cc (class aarch64_target)
635 <supports_tracepoints>: Declare.
636 (aarch64_supports_tracepoints): Turn into...
637 (aarch64_target::supports_tracepoints): ...this.
638 (the_low_target): Remove the op field.
639 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
640 Declare.
641 (ppc_supports_tracepoints): Turn into...
642 (ppc_target::supports_tracepoints): ...this.
643 (the_low_target): Remove the op field.
644 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
645 Declare.
646 (s390_supports_tracepoints): Turn into...
647 (s390_target::supports_tracepoints): ...this.
648 (the_low_target): Remove the op field.
649 * linux-arm-low.cc (the_low_target): Remove the op field.
650 * linux-bfin-low.cc (the_low_target): Ditto.
651 * linux-crisv32-low.cc (the_low_target): Ditto.
652 * linux-m32r-low.cc (the_low_target): Ditto.
653 * linux-m68k-low.cc (the_low_target): Ditto.
654 * linux-sh-low.cc (the_low_target): Ditto.
655 * linux-tic6x-low.cc (the_low_target): Ditto.
656 * linux-tile-low.cc (the_low_target): Ditto.
657 * linux-xtensa-low.cc (the_low_target): Ditto.
658
a5b5da92
TBA
6592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
660
661 Remove the 'process_qsupported' linux target op and let a concrete
662 linux target define the op by overriding the op declaration in
663 process_stratum_target.
664
665 * linux-low.h (struct linux_target_ops): Remove the op.
666 (class linux_process_target) <process_qsupported>: Remove.
667 * linux-low.cc (linux_process_target::process_qsupported): Remove.
668 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
669 (x86_linux_process_qsupported): Turn into...
670 (x86_target::process_qsupported): ...this.
671 (the_low_target): Remove the op field.
672 * linux-aarch64-low.cc (the_low_target): Remove the op
673 field.
674 * linux-arm-low.cc (the_low_target): Ditto.
675 * linux-bfin-low.cc (the_low_target): Ditto.
676 * linux-crisv32-low.cc (the_low_target): Ditto.
677 * linux-m32r-low.cc (the_low_target): Ditto.
678 * linux-m68k-low.cc (the_low_target): Ditto.
679 * linux-ppc-low.cc (the_low_target): Ditto.
680 * linux-s390-low.cc (the_low_target): Ditto.
681 * linux-sh-low.cc (the_low_target): Ditto.
682 * linux-tic6x-low.cc (the_low_target): Ditto.
683 * linux-tile-low.cc (the_low_target): Ditto.
684 * linux-xtensa-low.cc (the_low_target): Ditto.
685
d7599cc0
TBA
6862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
687
688 Turn the 'prepare_to_resume' linux target op into a method of
689 linux_process_target.
690
691 * linux-low.h (struct linux_target_ops): Remove the op.
692 (class linux_process_target) <low_prepare_to_resume>: Declare.
693 * linux-low.cc (linux_process_target::low_prepare_to_resume):
694 Define.
695
696 Update the callers below:
697
698 (linux_process_target::resume_one_lwp_throw)
699 (linux_process_target::low_prepare_to_resume)
700
701 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
702 Declare.
703 (x86_target::low_prepare_to_resume): Define.
704 (the_low_target): Remove the op field.
705 * linux-aarch64-low.cc (class aarch64_target)
706 <low_prepare_to_resume>: Declare.
707 (aarch64_target::low_prepare_to_resume): Define.
708 (the_low_target): Remove the op field.
709 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
710 Declare.
711 (arm_prepare_to_resume): Turn into...
712 (arm_target::low_prepare_to_resume): ...this.
713 (the_low_target): Remove the op field.
714 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
715 Declare.
716 (mips_linux_prepare_to_resume): Turn into...
717 (mips_target::low_prepare_to_resume): ...this.
718 (the_low_target): Remove the op field.
719 * linux-bfin-low.cc (the_low_target): Remove the op field.
720 * linux-crisv32-low.cc (the_low_target): Ditto.
721 * linux-m32r-low.cc (the_low_target): Ditto.
722 * linux-m68k-low.cc (the_low_target): Ditto.
723 * linux-ppc-low.cc (the_low_target): Ditto.
724 * linux-s390-low.cc (the_low_target): Ditto.
725 * linux-sh-low.cc (the_low_target): Ditto.
726 * linux-tic6x-low.cc (the_low_target): Ditto.
727 * linux-tile-low.cc (the_low_target): Ditto.
728 * linux-xtensa-low.cc (the_low_target): Ditto.
729
fd000fb3
TBA
7302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
731
732 Turn the 'new_process', 'delete_process', 'new_thread',
733 'delete_thread', and 'new_fork' linux target ops into methods
734 of linux_process_target.
735
736 * linux-low.h (struct linux_target_ops): Remove the ops.
737 (class linux_process_target) <add_linux_process>
738 <add_lwp>
739 <delete_lwp>
740 <attach_lwp>
741 <detach_one_lwp>
742 <check_zombie_leaders>
743 <filter_exit_event>
744 <low_new_process>
745 <low_delete_process>
746 <low_new_thread>
747 <low_delete_thread>
748 <low_new_fork>: Declare.
749 * linux-low.cc (delete_lwp): Turn into...
750 (linux_process_target::delete_lwp): ...this.
751 (linux_process_target::low_delete_thread): Define.
752 (linux_add_process): Turn into...
753 (linux_process_target::add_linux_process): ...this.
754 (linux_process_target::low_new_process): Define.
755 (linux_process_target::low_delete_process): Define.
756 (linux_process_target::low_new_fork): Define.
757 (add_lwp): Turn into...
758 (linux_process_target::add_lwp): ...this.
759 (linux_process_target::low_new_thread): Define.
760 (linux_attach_lwp): Turn into...
761 (linux_process_target::attach_lwp): ...this.
762 (linux_detach_one_lwp): Turn into...
763 (linux_process_target::detach_one_lwp): ...this.
764 (linux_detach_lwp_callback): Remove and inline...
765 (linux_process_target::detach): ...here.
766 (check_zombie_leaders): Turn into...
767 (linux_process_target::check_zombie_leaders): ...this.
768 (filter_exit_event): Turn into...
769 (linux_process_target::filter_exit_event): ...this.
770
771 Update the callers below.
772
773 (linux_process_target::handle_extended_wait)
774 (linux_process_target::create_inferior)
775 (attach_proc_task_lwp_callback)
776 (linux_process_target::attach)
777 (linux_process_target::detach)
778 (linux_process_target::mourn)
779 * thread-db.cc (attach_thread)
780
781 * linux-x86-low.cc (class x86_target) <low_new_process>
782 <low_delete_process>
783 <low_new_thread>
784 <low_delete_thread>
785 <low_new_fork>: Declare.
786 (x86_linux_new_process): Turn into...
787 (x86_target::low_new_process): ...this.
788 (x86_linux_delete_process): Turn into...
789 (x86_target::low_delete_process): ...this.
790 (x86_target::low_new_thread): Define.
791 (x86_target::low_delete_thread): Define.
792 (x86_linux_new_fork): Turn into...
793 (x86_target::low_new_fork): ...this.
794 (the_low_target): Remove the op fields.
795 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
796 <low_delete_process>
797 <low_new_thread>
798 <low_delete_thread>
799 <low_new_fork>: Declare.
800 (aarch64_linux_new_process): Turn into...
801 (aarch64_target::low_new_process): ...this.
802 (aarch64_linux_delete_process): Turn into...
803 (aarch64_target::low_delete_process): ...this.
804 (aarch64_target::low_new_thread): Define.
805 (aarch64_target::low_delete_thread): Define.
806 (aarch64_linux_new_fork): Turn into...
807 (aarch64_target::low_new_fork): ...this.
808 (the_low_target): Remove the op fields.
809 * linux-arm-low.cc (class arm_target) <low_new_process>
810 <low_delete_process>
811 <low_new_thread>
812 <low_delete_thread>
813 <low_new_fork>: Declare.
814 (arm_new_process): Turn into...
815 (arm_target::low_new_process): ...this.
816 (arm_delete_process): Turn into...
817 (arm_target::low_delete_process): ...this.
818 (arm_new_thread): Turn into...
819 (arm_target::low_new_thread): ...this.
820 (arm_delete_thread): Turn into...
821 (arm_target::low_delete_thread): ...this.
822 (arm_new_fork): Turn into...
823 (arm_target::low_new_fork): ...this.
824 (the_low_target): Remove the op fields.
825 * linux-mips-low.cc (class mips_target) <low_new_process>
826 <low_delete_process>
827 <low_new_thread>
828 <low_delete_thread>
829 <low_new_fork>: Declare.
830 (mips_linux_new_process): Turn into...
831 (mips_target::low_new_process): ...this.
832 (mips_linux_delete_process): Turn into...
833 (mips_target::low_delete_process): ...this.
834 (mips_linux_new_thread): Turn into...
835 (mips_target::low_new_thread): ...this.
836 (mips_linux_delete_thread): Turn into...
837 (mips_target::low_delete_thread): ...this.
838 (mips_linux_new_fork): Turn into...
839 (mips_target::low_new_fork): ...this.
840 (the_low_target): Remove the op fields.
841 * linux-bfin-low.cc (the_low_target): Remove the op fields.
842 * linux-crisv32-low.cc (the_low_target): Ditto.
843 * linux-m32r-low.cc (the_low_target): Ditto.
844 * linux-m68k-low.cc (the_low_target): Ditto.
845 * linux-ppc-low.cc (the_low_target): Ditto.
846 * linux-s390-low.cc (the_low_target): Ditto.
847 * linux-sh-low.cc (the_low_target): Ditto.
848 * linux-tic6x-low.cc (the_low_target): Ditto.
849 * linux-tile-low.cc (the_low_target): Ditto.
850 * linux-xtensa-low.cc (the_low_target): Ditto.
851
cb63de7c
TBA
8522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
853
854 Turn the 'siginfo_fixup' linux target op into a method of
855 linux_process_target.
856
857 * linux-low.h (struct linux_target_ops): Remove the op.
858 (class linux_process_target) <siginfo_fixup>
859 <low_siginfo_fixup>: Declare.
860 * linux-low.cc (siginfo_fixup): Turn into...
861 (linux_process_target::siginfo_fixup): ...this.
862 (linux_process_target::low_siginfo_fixup): Define.
863 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
864 (x86_siginfo_fixup): Turn into...
865 (x86_target::low_siginfo_fixup): ...this.
866 (the_low_target): Remove the op field.
867 * linux-aarch64-low.cc (class aarch64_target):
868 <low_siginfo_fixup>: Declare.
869 (aarch64_linux_siginfo_fixup): Turn into...
870 (aarch64_target::low_siginfo_fixup): ...this.
871 (the_low_target): Remove the op field.
872 * linux-arm-low.cc (the_low_target): Remove the op field.
873 * linux-bfin-low.cc (the_low_target): Ditto.
874 * linux-crisv32-low.cc (the_low_target): Ditto.
875 * linux-m32r-low.cc (the_low_target): Ditto.
876 * linux-m68k-low.cc (the_low_target): Ditto.
877 * linux-mips-low.cc (the_low_target): Ditto.
878 * linux-ppc-low.cc (the_low_target): Ditto.
879 * linux-s390-low.cc (the_low_target): Ditto.
880 * linux-sh-low.cc (the_low_target): Ditto.
881 * linux-tic6x-low.cc (the_low_target): Ditto.
882 * linux-tile-low.cc (the_low_target): Ditto.
883 * linux-xtensa-low.cc (the_low_target): Ditto.
884
b35db733
TBA
8852020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
886
887 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
888 linux target ops into methods of linux_process_target.
889
890 * linux-low.h (struct linux_target_ops): Remove the ops.
891 (class linux_process_target) <low_collect_ptrace_register>
892 <low_store_ptrace_register>: Declare.
893 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
894 (linux_process_target::low_supply_ptrace_register): Define.
895
896 Update the callers below.
897
898 (linux_process_target::fetch_register)
899 (linux_process_target::store_register)
900
901 * linux-x86-low.cc (the_low_target): Remove the op fields.
902 * linux-aarch64-low.cc (the_low_target): Ditto.
903 * linux-arm-low.cc (the_low_target): Ditto.
904 * linux-bfin-low.cc (the_low_target): Ditto.
905 * linux-crisv32-low.cc (the_low_target): Ditto.
906 * linux-m32r-low.cc (the_low_target): Ditto.
907 * linux-m68k-low.cc (the_low_target): Ditto.
908 * linux-sh-low.cc (the_low_target): Ditto.
909 * linux-sparc-low.cc (the_low_target): Ditto.
910 * linux-tic6x-low.cc (the_low_target): Ditto.
911 * linux-tile-low.cc (the_low_target): Ditto.
912 * linux-xtensa-low.cc (the_low_target): Ditto.
913 * linux-mips-low.cc (class mips_target)
914 <low_collect_ptrace_register>
915 <low_supply_ptrace_register>: Declare.
916 (mips_collect_ptrace_register): Turn into ...
917 (mips_target::low_collect_ptrace_register): ...this.
918 (mips_supply_ptrace_register): Turn into...
919 (mips_target::low_supply_ptrace_register): ...this.
920 (the_low_target): Remove the op fields.
921 * linux-ppc-low.cc (class ppc_target)
922 <low_collect_ptrace_register>
923 <low_supply_ptrace_register>: Declare.
924 (ppc_collect_ptrace_register): Turn into ...
925 (ppc_target::low_collect_ptrace_register): ...this.
926 (ppc_supply_ptrace_register): Turn into ...
927 (ppc_target::low_supply_ptrace_register): ...this.
928 (ppc_fill_gregset): Update for the calls to
929 low_collect_ptrace_register.
930 (the_low_target): Remove the op fields.
931 * linux-s390-low.cc (class s390_target)
932 <low_collect_ptrace_register>
933 <low_supply_ptrace_register>: Declare.
934 (s390_collect_ptrace_register): Turn into ...
935 (s390_target::low_collect_ptrace_register): ...this.
936 (s390_supply_ptrace_register): Turn into ...
937 (s390_target::low_supply_ptrace_register): ...this.
938 (s390_fill_gregset): Update for the calls to
939 low_collect_ptrace_register.
940 (the_low_target): Remove the op fields.
941
ac1bbaca
TBA
9422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
943
944 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
945 target ops into methods of linux_process_target.
946
947 * linux-low.h (struct linux_target_ops): Remove the ops.
948 (class linux_process_target) <check_stopped_by_watchpoint>
949 <low_stopped_by_watchpoint>
950 <low_stopped_data_address>: Declare.
951 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
952 (linux_process_target::check_stopped_by_watchpoint): ...this.
953 (linux_process_target::low_stopped_by_watchpoint): Define.
954 (linux_process_target::low_stopped_data_address): Define.
955 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
956 <low_stopped_data_address>: Declare.
957 (x86_stopped_by_watchpoint): Turn into...
958 (x86_target::low_stopped_by_watchpoint): ...this.
959 (x86_stopped_data_address): Turn into...
960 (x86_target::low_stopped_data_address): ...this.
961 (the_low_target): Remove the op fields.
962 * linux-aarch64-low.cc (class aarch64_target)
963 <low_stopped_by_watchpoint>
964 <low_stopped_data_address>: Declare.
965 (aarch64_stopped_by_watchpoint): Turn into...
966 (aarch64_target::low_stopped_by_watchpoint): ...this.
967 (aarch64_stopped_data_address): Turn into...
968 (aarch64_target::low_stopped_data_address): ...this.
969 (the_low_target): Remove the op fields.
970 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
971 <low_stopped_data_address>: Declare.
972 (arm_stopped_by_watchpoint): Turn into...
973 (arm_target::low_stopped_by_watchpoint): ...this.
974 (arm_stopped_data_address): Turn into...
975 (arm_target::low_stopped_data_address): ...this.
976 (the_low_target): Remove the op fields.
977 * linux-crisv32-low.cc (class crisv32_target)
978 <low_stopped_by_watchpoint>
979 <low_stopped_data_address>: Declare.
980 (cris_stopped_by_watchpoint): Turn into...
981 (crisv32_target::low_stopped_by_watchpoint): ...this.
982 (cris_stopped_data_address): Turn into...
983 (crisv32_target::low_stopped_data_address): ...this.
984 (the_low_target): Remove the op fields.
985 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
986 <low_stopped_data_address>: Declare.
987 (mips_stopped_by_watchpoint): Turn into...
988 (mips_target::low_stopped_by_watchpoint): ...this.
989 (mips_stopped_data_address): Turn into...
990 (mips_target::low_stopped_data_address): ...this.
991 (the_low_target): Remove the op fields.
992 * linux-bfin-low.cc (the_low_target): Remove the op fields.
993 * linux-m32r-low.cc (the_low_target): Ditto.
994 * linux-m68k-low.cc (the_low_target): Ditto.
995 * linux-ppc-low.cc (the_low_target): Ditto.
996 * linux-s390-low.cc (the_low_target): Ditto.
997 * linux-sh-low.cc (the_low_target): Ditto.
998 * linux-sparc-low.cc (the_low_target): Ditto.
999 * linux-tic6x-low.cc (the_low_target): Ditto.
1000 * linux-tile-low.cc (the_low_target): Ditto.
1001 * linux-xtensa-low.cc (the_low_target): Ditto.
1002
9db9aa23
TBA
10032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004
1005 Turn the 'insert_point' and 'remove_point' linux target ops into
1006 methods of linux_process_target.
1007
1008 * linux-low.h (struct linux_target_ops): Remove the ops.
1009 (class linux_process_target) <low_insert_point>
1010 <low_remove_point>: Declare.
1011 * linux-low.cc (linux_process_target::low_insert_point)
1012 (linux_process_target::low_remove_point): Define.
1013 (linux_process_target::insert_point)
1014 (linux_process_target::remove_point): Update for calls to
1015 low_insert_point and low_remove_point.
1016 * linux-x86-low.cc (class x86_target) <low_insert_point>
1017 <low_remove_point>: Declare.
1018 (x86_insert_point): Turn into...
1019 (x86_target::low_insert_point): ...this.
1020 (x86_remove_point): Turn into...
1021 (x86_target::low_remove_point): ...this.
1022 (the_low_target): Remove the op fields.
1023 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1024 <low_remove_point>: Declare.
1025 (aarch64_insert_point): Turn into...
1026 (aarch64_target::low_insert_point): ...this.
1027 (aarch64_remove_point): Turn into...
1028 (aarch64_target::low_remove_point): ...this.
1029 (the_low_target): Remove the op fields.
1030 * linux-arm-low.cc (class arm_target) <low_insert_point>
1031 <low_remove_point>: Declare.
1032 (arm_insert_point): Turn into...
1033 (arm_target::low_insert_point): ...this.
1034 (arm_remove_point): Turn into...
1035 (arm_target::low_remove_point): ...this.
1036 (the_low_target): Remove the op fields.
1037 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1038 <low_remove_point>: Declare.
1039 (crisv32_insert_point): Turn into...
1040 (crisv32_target::low_insert_point): ...this.
1041 (crisv32_remove_point): Turn into...
1042 (crisv32_target::low_remove_point): ...this.
1043 (the_low_target): Remove the op fields.
1044 * linux-mips-low.cc (class mips_target) <low_insert_point>
1045 <low_remove_point>: Declare.
1046 (mips_insert_point): Turn into...
1047 (mips_target::low_insert_point): ...this.
1048 (mips_remove_point): Turn into...
1049 (mips_target::low_remove_point): ...this.
1050 (the_low_target): Remove the op fields.
1051 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1052 <low_remove_point>: Declare.
1053 (ppc_insert_point): Turn into...
1054 (ppc_target::low_insert_point): ...this.
1055 (ppc_remove_point): Turn into...
1056 (ppc_target::low_remove_point): ...this.
1057 (the_low_target): Remove the op fields.
1058 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1059 * linux-m32r-low.cc (the_low_target): Ditto.
1060 * linux-m68k-low.cc (the_low_target): Ditto.
1061 * linux-s390-low.cc (the_low_target): Ditto.
1062 * linux-sh-low.cc (the_low_target): Ditto.
1063 * linux-sparc-low.cc (the_low_target): Ditto.
1064 * linux-tic6x-low.cc (the_low_target): Ditto.
1065 * linux-tile-low.cc (the_low_target): Ditto.
1066 * linux-xtensa-low.cc (the_low_target): Ditto.
1067
007c9b97
TBA
10682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1069
1070 Remove the 'supports_z_point_type' linux target op and let the
1071 concrete linux target define it by overriding the op declared in
1072 process_stratum_target.
1073
1074 * linux-low.cc (linux_process_target::supports_z_point_type):
1075 Remove.
1076 * linux-low.h (struct linux_target_ops): Remove the op.
1077 (class linux_process_target) <supports_z_point_type>: Remove.
1078 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1079 Declare.
1080 (x86_supports_z_point_type): Turn into...
1081 (x86_target::supports_z_point_type): ...this.
1082 (the_low_target): Remove the op field.
1083 * linux-aarch64-low.cc (class aarch64_target)
1084 <supports_z_point_type>: Declare.
1085 (aarch64_supports_z_point_type): Turn into...
1086 (aarch64_target::supports_z_point_type): ...this.
1087 (the_low_target): Remove the op field.
1088 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1089 Declare.
1090 (arm_supports_z_point_type): Turn into...
1091 (arm_target::supports_z_point_type): ...this.
1092 (the_low_target): Remove the op field.
1093 * linux-crisv32-low.cc (class crisv32_target)
1094 <supports_z_point_type>: Declare.
1095 (cris_supports_z_point_type): Turn into...
1096 (crisv32_target::supports_z_point_type): ...this.
1097 (the_low_target): Remove the op field.
1098 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1099 Declare.
1100 (mips_supports_z_point_type): Turn into...
1101 (mips_target::supports_z_point_type): ...this.
1102 (the_low_target): Remove the op field.
1103 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1104 Declare.
1105 (ppc_supports_z_point_type): Turn into...
1106 (ppc_target::supports_z_point_type): ...this.
1107 (the_low_target): Remove the op field.
1108 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1109 Declare.
1110 (s390_supports_z_point_type): Turn into...
1111 (s390_target::supports_z_point_type): ...this.
1112 (the_low_target): Remove the op field.
1113 * linux-bfin-low.cc (the_low_target): Remove the op field.
1114 * linux-m32r-low.cc (the_low_target): Ditto.
1115 * linux-m68k-low.cc (the_low_target): Ditto.
1116 * linux-sh-low.cc (the_low_target): Ditto.
1117 * linux-sparc-low.cc (the_low_target): Ditto.
1118 * linux-tic6x-low.cc (the_low_target): Ditto.
1119 * linux-tile-low.cc (the_low_target): Ditto.
1120 * linux-xtensa-low.cc (the_low_target): Ditto.
1121
d7146cda
TBA
11222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1123
1124 Turn the 'breakpoint_at' linux target op into a method of
1125 linux_process_target.
1126
1127 * linux-low.h (struct linux_target_ops): Remove the op.
1128 (class linux_process_target) <low_breakpoint_at>: Declare.
1129
1130 Update the callers below:
1131
1132 * linux-low.cc (linux_process_target::save_stop_reason)
1133 (linux_process_target::thread_still_has_status_pending)
1134 (linux_process_target::wait_1)
1135
1136 * linux-x86-low.cc (class x86_target)
1137 <low_breakpoint_at>: Declare.
1138 (x86_breakpoint_at): Turn into...
1139 (x86_target::low_breakpoint_at): ...this.
1140 (the_low_target): Remove the op field.
1141 * linux-aarch64-low.cc (class aarch64_target)
1142 <low_breakpoint_at>: Declare.
1143 (aarch64_breakpoint_at): Turn into...
1144 (aarch64_target::low_breakpoint_at): ...this.
1145 (the_low_target): Remove the op field.
1146 * linux-arm-low.cc (class arm_target)
1147 <low_breakpoint_at>: Declare.
1148 (arm_target::low_breakpoint_at): Define.
1149 (the_low_target): Remove the op field.
1150 * linux-bfin-low.cc (class bfin_target)
1151 <low_breakpoint_at>: Declare.
1152 (bfin_breakpoint_at): Turn into...
1153 (bfin_target::low_breakpoint_at): ...this.
1154 (the_low_target): Remove the op field.
1155 * linux-cris-low.cc (class cris_target)
1156 <low_breakpoint_at>: Declare.
1157 (cris_breakpoint_at): Turn into...
1158 (cris_target::low_breakpoint_at): ...this.
1159 (the_low_target): Remove the op field.
1160 * linux-crisv32-low.cc (class crisv32_target)
1161 <low_breakpoint_at>: Declare.
1162 (crisv32_breakpoint_at): Turn into...
1163 (crisv32_target::low_breakpoint_at): ...this.
1164 (the_low_target): Remove the op field.
1165 * linux-ia64-low.cc (class ia64_target)
1166 <low_breakpoint_at>: Declare.
1167 (ia64_target::low_breakpoint_at): Define.
1168 * linux-m32r-low.cc (class m32r_target)
1169 <low_breakpoint_at>: Declare.
1170 (m32r_breakpoint_at): Turn into...
1171 (m32r_target::low_breakpoint_at): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-m68k-low.cc (class m68k_target)
1174 <low_breakpoint_at>: Declare.
1175 (m68k_breakpoint_at): Turn into...
1176 (m68k_target::low_breakpoint_at): ...this.
1177 (the_low_target): Remove the op field.
1178 * linux-mips-low.cc (class mips_target)
1179 <low_breakpoint_at>: Declare.
1180 (mips_breakpoint_at): Turn into...
1181 (mips_target::low_breakpoint_at): ...this.
1182 (the_low_target): Remove the op field.
1183 * linux-nios2-low.cc (class nios2_target)
1184 <low_breakpoint_at>: Declare.
1185 (nios2_breakpoint_at): Turn into...
1186 (nios2_target::low_breakpoint_at): ...this.
1187 (the_low_target): Remove the op field.
1188 * linux-ppc-low.cc (class ppc_target)
1189 <low_breakpoint_at>: Declare.
1190 (ppc_breakpoint_at): Turn into...
1191 (ppc_target::low_breakpoint_at): ...this.
1192 (the_low_target): Remove the op field.
1193 * linux-riscv-low.cc (class riscv_target)
1194 <low_breakpoint_at>: Declare.
1195 (riscv_breakpoint_at): Turn into...
1196 (riscv_target::low_breakpoint_at): ...this.
1197 (the_low_target): Remove the op field.
1198 * linux-s390-low.cc (class s390_target)
1199 <low_breakpoint_at>: Declare.
1200 (s390_breakpoint_at): Turn into...
1201 (s390_target::low_breakpoint_at): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-sh-low.cc (class sh_target)
1204 <low_breakpoint_at>: Declare.
1205 (sh_breakpoint_at): Turn into...
1206 (sh_target::low_breakpoint_at): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-sparc-low.cc (class sparc_target)
1209 <low_breakpoint_at>: Declare.
1210 (sparc_breakpoint_at): Turn into...
1211 (sparc_target::low_breakpoint_at): ...this.
1212 (the_low_target): Remove the op field.
1213 * linux-tic6x-low.cc (class tic6x_target)
1214 <low_breakpoint_at>: Declare.
1215 (tic6x_breakpoint_at): Turn into...
1216 (tic6x_target::low_breakpoint_at): ...this.
1217 (the_low_target): Remove the op field.
1218 * linux-tile-low.cc (class tile_target)
1219 <low_breakpoint_at>: Declare.
1220 (tile_breakpoint_at): Turn into...
1221 (tile_target::low_breakpoint_at): ...this.
1222 (the_low_target): Remove the op field.
1223 * linux-xtensa-low.cc (class xtensa_target)
1224 <low_breakpoint_at>: Declare.
1225 (xtensa_breakpoint_at): Turn into...
1226 (xtensa_target::low_breakpoint_at): ...this.
1227 (the_low_target): Remove the op field.
1228
d4807ea2
TBA
12292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1230
1231 Turn the 'decr_pc_after_break' linux_target_ops field into
1232 a method of linux_process_target.
1233
1234 * linux-low.h (struct linux_target_ops)
1235 <decr_pc_after_break>: Remove.
1236 (class linux_process_target) <low_decr_pc_after_break>: New method
1237 declaration.
1238 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1239 New method implementation.
1240
1241 Update the users below.
1242
1243 (linux_process_target::save_stop_reason)
1244 (linux_process_target::wait_1)
1245 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1246 New declaration.
1247 (x86_target::low_decr_pc_after_break): New method implementation.
1248 (the_low_target): Remove the field.
1249 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1250 New declaration.
1251 (bfin_target::low_decr_pc_after_break): New method implementation.
1252 (the_low_target): Remove the field.
1253 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1254 New declaration.
1255 (m68k_target::low_decr_pc_after_break): New method implementation.
1256 (the_low_target): Remove the field.
1257 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1258 New declaration.
1259 (s390_target::low_decr_pc_after_break): New method implementation.
1260 (the_low_target): Remove the field.
1261 * linux-aarch64-low.cc (the_low_target): Remove the field.
1262 * linux-arm-low.cc (the_low_target): Remove the field.
1263 * linux-cris-low.cc (the_low_target): Remove the field.
1264 * linux-crisv32-low.cc (the_low_target): Remove the field.
1265 * linux-m32r-low.cc (the_low_target): Remove the field.
1266 * linux-mips-low.cc (the_low_target): Remove the field.
1267 * linux-nios2-low.cc (the_low_target): Remove the field.
1268 * linux-ppc-low.cc (the_low_target): Remove the field.
1269 * linux-riscv-low.cc (the_low_target): Remove the field.
1270 * linux-sh-low.cc (the_low_target): Remove the field.
1271 * linux-sparc-low.cc (the_low_target): Remove the field.
1272 * linux-tic6x-low.cc (the_low_target): Remove the field.
1273 * linux-tile-low.cc (the_low_target): Remove the field.
1274 * linux-xtensa-low.cc (the_low_target): Remove the field.
1275
7582c77c
TBA
12762020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277
1278 Remove the 'supports_software_single_step' linux target op and let
1279 the concrete linux target define it by overriding the op in
1280 process_stratum_target.
1281 Turn the 'get_next_pcs' linux target op into a method of
1282 linux_process_target.
1283
1284 * linux-low.h (struct linux_target_ops): Remove the ops.
1285 (class linux_process_target) <supports_software_single_step>:
1286 Remove.
1287 <low_get_next_pcs>: Declare.
1288 * linux-low.cc (can_software_single_step): Remove.
1289 (linux_process_target::low_get_next_pcs): Define.
1290 (linux_process_target::supports_software_single_step): Remove.
1291
1292 Update the callers below.
1293
1294 (linux_process_target::handle_extended_wait)
1295 (linux_process_target::wait_1)
1296 (linux_process_target::install_software_single_step_breakpoints)
1297 (linux_process_target::single_step)
1298 (linux_process_target::thread_needs_step_over)
1299 (linux_process_target::proceed_one_lwp)
1300 (linux_process_target::supports_range_stepping)
1301
1302 * linux-x86-low.cc (the_low_target): Remove the op field.
1303 * linux-aarch64-low.cc (the_low_target): Ditto.
1304 * linux-bfin-low.cc (the_low_target): Ditto.
1305 * linux-cris-low.cc (the_low_target): Ditto.
1306 * linux-crisv32-low.cc (the_low_target): Ditto.
1307 * linux-m32r-low.cc (the_low_target): Ditto.
1308 * linux-m68k-low.cc (the_low_target): Ditto.
1309 * linux-mips-low.cc (the_low_target): Ditto.
1310 * linux-nios2-low.cc (the_low_target): Ditto.
1311 * linux-ppc-low.cc (the_low_target): Ditto.
1312 * linux-riscv-low.cc (the_low_target): Ditto.
1313 * linux-s390-low.cc (the_low_target): Ditto.
1314 * linux-sh-low.cc (the_low_target): Ditto.
1315 * linux-sparc-low.cc (the_low_target): Ditto.
1316 * linux-tic6x-low.cc (the_low_target): Ditto.
1317 * linux-tile-low.cc (the_low_target): Ditto.
1318 * linux-xtensa-low.cc (the_low_target): Ditto.
1319 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1320 <supports_software_single_step>: Declare.
1321 (arm_target::supports_software_single_step): Define.
1322 (arm_gdbserver_get_next_pcs): Turn into...
1323 (arm_target::low_get_next_pcs): ...this.
1324 (the_low_target): Remove the op field.
1325
3ca4edb6
TBA
13262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1327
1328 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1329 the concrete linux target define it by overriding the op
1330 in process_stratum_target.
1331
1332 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1333 Remove.
1334 * linux-low.h (struct linux_target_ops): Remove the op.
1335 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1336 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1337 Declare.
1338 (x86_sw_breakpoint_from_kind): Turn into...
1339 (x86_target::sw_breakpoint_from_kind): ...this.
1340 (the_low_target): Remove the op field.
1341 * linux-aarch64-low.cc (class aarch64_target)
1342 <sw_breakpoint_from_kind>: Declare.
1343 (aarch64_sw_breakpoint_from_kind): Turn into...
1344 (aarch64_target::sw_breakpoint_from_kind): ...this.
1345 (the_low_target): Remove the op field.
1346 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1347 Declare.
1348 (arm_target::sw_breakpoint_from_kind): Define.
1349 (the_low_target): Remove the op field.
1350 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1351 Declare.
1352 (bfin_sw_breakpoint_from_kind): Turn into...
1353 (bfin_target::sw_breakpoint_from_kind): ...this.
1354 (the_low_target): Remove the op field.
1355 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1356 Declare.
1357 (cris_sw_breakpoint_from_kind): Turn into...
1358 (cris_target::sw_breakpoint_from_kind): ...this.
1359 (the_low_target): Remove the op field.
1360 * linux-crisv32-low.cc (class crisv32_target)
1361 <sw_breakpoint_from_kind>: Declare.
1362 (cris_sw_breakpoint_from_kind): Turn into...
1363 (crisv32_target::sw_breakpoint_from_kind): ...this.
1364 (the_low_target): Remove the op field.
1365 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1366 Declare.
1367 (ia64_target::sw_breakpoint_from_kind): Define.
1368 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1369 Declare.
1370 (m32r_sw_breakpoint_from_kind): Turn into...
1371 (m32r_target::sw_breakpoint_from_kind): ...this.
1372 (the_low_target): Remove the op field.
1373 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1374 Declare.
1375 (m68k_sw_breakpoint_from_kind): Turn into...
1376 (m68k_target::sw_breakpoint_from_kind): ...this.
1377 (the_low_target): Remove the op field.
1378 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1379 Declare.
1380 (mips_sw_breakpoint_from_kind): Turn into...
1381 (mips_target::sw_breakpoint_from_kind): ...this.
1382 (the_low_target): Remove the op field.
1383 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1384 Declare.
1385 (nios2_sw_breakpoint_from_kind): Turn into...
1386 (nios2_target::sw_breakpoint_from_kind): ...this.
1387 (the_low_target): Remove the op field.
1388 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1389 Declare.
1390 (ppc_sw_breakpoint_from_kind): Turn into...
1391 (ppc_target::sw_breakpoint_from_kind): ...this.
1392 (the_low_target): Remove the op field.
1393 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1394 Declare.
1395 (riscv_sw_breakpoint_from_kind): Turn into...
1396 (riscv_target::sw_breakpoint_from_kind): ...this.
1397 (the_low_target): Remove the op field.
1398 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1399 Declare.
1400 (s390_sw_breakpoint_from_kind): Turn into...
1401 (s390_target::sw_breakpoint_from_kind): ...this.
1402 (the_low_target): Remove the op field.
1403 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1404 Declare.
1405 (sh_sw_breakpoint_from_kind): Turn into...
1406 (sh_target::sw_breakpoint_from_kind): ...this.
1407 (the_low_target): Remove the op field.
1408 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1409 Declare.
1410 (sparc_sw_breakpoint_from_kind): Turn into...
1411 (sparc_target::sw_breakpoint_from_kind): ...this.
1412 (the_low_target): Remove the op field.
1413 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1414 Declare.
1415 (tic6x_sw_breakpoint_from_kind): Turn into...
1416 (tic6x_target::sw_breakpoint_from_kind): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1419 Declare.
1420 (tile_sw_breakpoint_from_kind): Turn into...
1421 (tile_target::sw_breakpoint_from_kind): ...this.
1422 (the_low_target): Remove the op field.
1423 * linux-xtensa-low.cc (class xtensa_target)
1424 <sw_breakpoint_from_kind>: Declare.
1425 (xtensa_sw_breakpoint_from_kind): Turn into...
1426 (xtensa_target::sw_breakpoint_from_kind): ...this.
1427 (the_low_target): Remove the op field.
1428
06250e4e
TBA
14292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1430
1431 Remove the 'breakpoint_kind_from_pc' and
1432 'breakpoint_kind_from_current_state' linux target ops, and let the
1433 concrete linux target define them by overriding the ops of
1434 process_stratum_target.
1435
1436 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1437 Remove.
1438 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1439 * linux-low.h (struct linux_target_ops): Remove ops.
1440 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1441 <breakpoint_kind_from_current_state>: Remove.
1442 * linux-x86-low.cc (the_low_target): Remove the op fields.
1443 * linux-bfin-low.cc (the_low_target): Ditto.
1444 * linux-cris-low.cc (the_low_target): Ditto.
1445 * linux-crisv32-low.cc (the_low_target): Ditto.
1446 * linux-m32r-low.cc (the_low_target): Ditto.
1447 * linux-m68k-low.cc (the_low_target): Ditto.
1448 * linux-mips-low.cc (the_low_target): Ditto.
1449 * linux-nios2-low.cc (the_low_target): Ditto.
1450 * linux-ppc-low.cc (the_low_target): Ditto.
1451 * linux-s390-low.cc (the_low_target): Ditto.
1452 * linux-sh-low.cc (the_low_target): Ditto.
1453 * linux-sparc-low.cc (the_low_target): Ditto.
1454 * linux-tic6x-low.cc (the_low_target): Ditto.
1455 * linux-tile-low.cc (the_low_target): Ditto.
1456 * linux-xtensa-low.cc (the_low_target): Ditto.
1457 * linux-aarch64-low.cc (class aarch64_target)
1458 <breakpoint_kind_from_pc>
1459 <breakpoint_kind_from_current_state>: Declare.
1460 (aarch64_breakpoint_kind_from_pc): Turn into...
1461 (aarch64_target::breakpoint_kind_from_pc): ...this.
1462 (aarch64_breakpoint_kind_from_current_state): Turn into...
1463 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1464 (the_low_target): Remove the op fields.
1465 * linux-arm-low.cc (class arm_target):
1466 <breakpoint_kind_from_pc>
1467 <breakpoint_kind_from_current_state>: Declare.
1468 (arm_target::breakpoint_kind_from_pc): Define.
1469 (arm_target::breakpoint_kind_from_current_state): Define.
1470 (the_low_target): Remove the op fields.
1471 * linux-riscv-low.cc (class riscv_target):
1472 <breakpoint_kind_from_pc>: Declare.
1473 (riscv_breakpoint_kind_from_pc): Turn into...
1474 (riscv_target::breakpoint_kind_from_pc): ...this.
1475 (the_low_target): Remove the op fields.
1476
bf9ae9d8
TBA
14772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1478
1479 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1480 of linux_process_target.
1481
1482 * linux-low.h (struct linux_target_ops): Remove the ops.
1483 (class linux_process_target) <low_supports_breakpoints>
1484 <low_get_pc>
1485 <low_set_pc>: Declare.
1486 * linux-low.cc (supports_breakpoints): Turn into...
1487 (linux_process_target::low_supports_breakpoints): ...this.
1488 (linux_process_target::low_get_pc): Define.
1489 (linux_process_target::low_set_pc): Define.
1490
1491 Update the callers below.
1492
1493 (linux_process_target::get_pc)
1494 (linux_process_target::save_stop_reason)
1495 (linux_process_target::maybe_move_out_of_jump_pad)
1496 (linux_process_target::wait_1)
1497 (linux_process_target::resume_one_lwp_throw)
1498 (linux_process_target::resume)
1499 (linux_process_target::proceed_all_lwps)
1500 (linux_process_target::read_pc)
1501 (linux_process_target::write_pc)
1502
1503 * linux-x86-low.cc (class linux_process_target)
1504 <low_supports_breakpoints>
1505 <low_get_pc>
1506 <low_set_pc>: Declare.
1507 (x86_target::low_supports_breakpoints): Define.
1508 (x86_get_pc): Turn into...
1509 (x86_target::low_get_pc): ...this.
1510 (x86_set_pc): Turn into...
1511 (x86_target::low_set_pc): ...this.
1512 (the_low_target): Remove the op fields.
1513 * linux-arm-low.cc (class arm_target)
1514 <low_supports_breakpoints>
1515 <low_get_pc>
1516 <low_set_pc>: Declare.
1517 (arm_target::low_supports_breakpoints)
1518 (arm_target::low_get_pc)
1519 (arm_target::low_set_pc): Define.
1520 (the_low_target): Remove the op fields.
1521 * linux-bfin-low.cc (class bfin_target)
1522 <low_supports_breakpoints>
1523 <low_get_pc>
1524 <low_set_pc>: Declare.
1525 (bfin_target::low_supports_breakpoints)
1526 (bfin_target::low_get_pc)
1527 (bfin_target::low_set_pc): Define.
1528 (the_low_target): Remove the op fields.
1529 * linux-cris-low.cc (class cris_target)
1530 <low_supports_breakpoints>
1531 <low_get_pc>
1532 <low_set_pc>: Declare.
1533 (cris_target::low_supports_breakpoints)
1534 (cris_target::low_get_pc)
1535 (cris_target::low_set_pc): Define.
1536 (the_low_target): Remove the op fields.
1537 * linux-crisv32-low.cc (class crisv32_target)
1538 <low_supports_breakpoints>
1539 <low_get_pc>
1540 <low_set_pc>: Declare.
1541 (crisv32_target::low_supports_breakpoints)
1542 (crisv32_target::low_get_pc)
1543 (crisv32_target::low_set_pc): Define.
1544 (the_low_target): Remove the op fields.
1545 * linux-m32r-low.cc (class m32r_target)
1546 <low_supports_breakpoints>
1547 <low_get_pc>
1548 <low_set_pc>: Declare.
1549 (m32r_target::low_supports_breakpoints)
1550 (m32r_target::low_get_pc)
1551 (m32r_target::low_set_pc): Define.
1552 (the_low_target): Remove the op fields.
1553 * linux-m68k-low.cc (class m68k_target)
1554 <low_supports_breakpoints>
1555 <low_get_pc>
1556 <low_set_pc>: Declare.
1557 (m68k_target::low_supports_breakpoints)
1558 (m68k_target::low_get_pc)
1559 (m68k_target::low_set_pc): Define.
1560 (the_low_target): Remove the op fields.
1561 * linux-nios2-low.cc (class nios2_target)
1562 <low_supports_breakpoints>
1563 <low_get_pc>
1564 <low_set_pc>: Declare.
1565 (nios2_target::low_supports_breakpoints)
1566 (nios2_target::low_get_pc)
1567 (nios2_target::low_set_pc): Define.
1568 (the_low_target): Remove the op fields.
1569 * linux-sh-low.cc (class sh_target)
1570 <low_supports_breakpoints>
1571 <low_get_pc>
1572 <low_set_pc>: Declare.
1573 (sh_target::low_supports_breakpoints)
1574 (sh_target::low_get_pc)
1575 (sh_target::low_set_pc): Define.
1576 (the_low_target): Remove the op fields.
1577 * linux-xtensa-low.cc (class xtensa_target)
1578 <low_supports_breakpoints>
1579 <low_get_pc>
1580 <low_set_pc>: Declare.
1581 (xtensa_target::low_supports_breakpoints)
1582 (xtensa_target::low_get_pc)
1583 (xtensa_target::low_set_pc): Define.
1584 (the_low_target): Remove the op fields.
1585 * linux-sparc-low.cc (class sparc_target)
1586 <low_supports_breakpoints>
1587 <low_get_pc>: Declare.
1588 (sparc_target::low_supports_breakpoints)
1589 (sparc_target::low_get_pc): Define.
1590 (the_low_target): Remove the op fields.
1591 * linux-tile-low.cc (class tile_target)
1592 <low_supports_breakpoints>
1593 <low_get_pc>
1594 <low_set_pc>: Declare.
1595 (tile_target::low_supports_breakpoints)
1596 (tile_target::low_get_pc)
1597 (tile_target::low_set_pc): Define.
1598 (the_low_target): Remove the op fields.
1599 * linux-aarch64-low.cc (class aarch64_target)
1600 <low_supports_breakpoints>
1601 <low_get_pc>
1602 <low_set_pc>: Declare.
1603 (aarch64_target::low_supports_breakpoints): Define.
1604 (aarch64_get_pc): Turn into...
1605 (aarch64_target::low_get_pc): ...this.
1606 (aarch64_set_pc): Turn into...
1607 (aarch64_target::low_set_pc): ...this.
1608 (the_low_target): Remove the op fields.
1609 * linux-mips-low.cc (class mips_target)
1610 <low_supports_breakpoints>
1611 <low_get_pc>
1612 <low_set_pc>: Declare.
1613 (mips_target::low_supports_breakpoints): Define.
1614 (mips_get_pc): Turn into...
1615 (mips_target::low_get_pc): ...this.
1616 (mips_set_pc): Turn into...
1617 (mips_target::low_set_pc): ...this.
1618 (the_low_target): Remove the op fields.
1619 * linux-ppc-low.cc (class ppc_target)
1620 <low_supports_breakpoints>
1621 <low_get_pc>
1622 <low_set_pc>: Declare.
1623 (ppc_target::low_supports_breakpoints): Define.
1624 (ppc_get_pc): Turn into...
1625 (ppc_target::low_get_pc): ...this.
1626 (ppc_set_pc): Turn into...
1627 (ppc_target::low_set_pc): ...this.
1628 (the_low_target): Remove the op fields.
1629 * linux-riscv-low.cc (class riscv_target)
1630 <low_supports_breakpoints>
1631 <low_get_pc>
1632 <low_set_pc>: Declare.
1633 (riscv_target::low_supports_breakpoints): Define.
1634 (riscv_get_pc): Turn into...
1635 (riscv_target::low_get_pc): ...this.
1636 (riscv_set_pc): Turn into...
1637 (riscv_target::low_set_pc): ...this.
1638 (the_low_target): Remove the op fields.
1639 * linux-s390-low.cc (class s390_target)
1640 <low_supports_breakpoints>
1641 <low_get_pc>
1642 <low_set_pc>: Declare.
1643 (s390_target::low_supports_breakpoints): Define.
1644 (s390_get_pc): Turn into...
1645 (s390_target::low_get_pc): ...this.
1646 (s390_set_pc): Turn into...
1647 (s390_target::low_set_pc): ...this.
1648 (the_low_target): Remove the op fields.
1649 * linux-tic6x-low.cc (class tic6x_target)
1650 <low_supports_breakpoints>
1651 <low_get_pc>
1652 <low_set_pc>: Declare.
1653 (tic6x_target::low_supports_breakpoints): Define.
1654 (tic6x_get_pc): Turn into...
1655 (tic6x_target::low_get_pc): ...this.
1656 (tic6x_set_pc): Turn into...
1657 (tic6x_target::low_set_pc): ...this.
1658 (the_low_target): Remove the op fields.
1659
df95181f
TBA
16602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1661
1662 Turn some more static methods in linux-low into private methods
1663 of linux_process_target.
1664
1665 * linux-low.cc (get_pc): Turn into...
1666 (linux_process_target::get_pc): ...this.
1667 (save_stop_reason): Turn into...
1668 (linux_process_target::save_stop_reason): ...this.
1669 (thread_still_has_status_pending_p): Turn into...
1670 (linux_process_target::thread_still_has_status_pending): ...this.
1671 (status_pending_p_callback): Turn into...
1672 (linux_process_target::status_pending_p_callback): ...this.
1673 (resume_stopped_resumed_lwps): Turn into...
1674 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1675 (install_software_single_step_breakpoints): Turn into...
1676 (linux_process_target::install_software_single_step_breakpoints):
1677 ...this.
1678 (single_step): Turn into...
1679 (linux_process_target::single_step): ...this.
1680 (linux_resume_one_lwp_throw): Turn into...
1681 (linux_process_target::resume_one_lwp_throw): ...this.
1682 (linux_resume_one_lwp): Turn into...
1683 (linux_process_target::resume_one_lwp): ...this.
1684 (resume_status_pending_p): Turn into...
1685 (linux_process_target::resume_status_pending): ...this.
1686 (need_step_over_p): Turn into...
1687 (linux_process_target::thread_needs_step_over): ...this.
1688 (linux_resume_one_thread): Turn into...
1689 (linux_process_target::resume_one_thread): ...this.
1690 (proceed_one_lwp): Turn into...
1691 (linux_process_target::proceed_one_lwp): ...this.
1692 (unsuspend_and_proceed_one_lwp): Turn into...
1693 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1694
1695 Update the calls/references to the above functions below.
1696
1697 (linux_process_target::handle_extended_wait)
1698 (linux_process_target::filter_event)
1699 (linux_process_target::wait_for_event_filtered)
1700 (linux_process_target::wait_1)
1701 (linux_process_target::move_out_of_jump_pad)
1702 (linux_process_target::start_step_over)
1703 (linux_process_target::resume)
1704 (linux_process_target::proceed_all_lwps)
1705 (regsets_store_inferior_registers)
1706 (linux_process_target::store_register)
1707
1708 * linux-low.h (class linux_process_target)
1709 <get_pc>
1710 <save_stop_reason>
1711 <thread_still_has_status_pending>
1712 <status_pending_p_callback>
1713 <resume_stopped_resumed_lwps>
1714 <install_software_single_step_breakpoints>
1715 <single_step>
1716 <resume_one_lwp_throw>
1717 <resume_one_lwp>
1718 <resume_status_pending>
1719 <thread_needs_step_over>
1720 <resume_one_thread>
1721 <proceed_one_lwp>
1722 <unsuspend_and_proceed_one_lwp>: Declare.
1723
bd70b1f2
TBA
17242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725
1726 Turn the 'fetch_register' linux target op into a method of
1727 linux_process_target.
1728
1729 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1730 (class linux_process_target) <low_fetch_register>: Declare.
1731 * linux-x86-low.cc (the_low_target)
1732 * linux-aarch64-low.cc (the_low_target)
1733 * linux-arm-low.cc (the_low_target)
1734 * linux-bfin-low.cc (the_low_target)
1735 * linux-cris-low.cc (the_low_target)
1736 * linux-crisv32-low.cc (the_low_target)
1737 * linux-m32r-low.cc (the_low_target)
1738 * linux-m68k-low.cc (the_low_target)
1739 * linux-nios2-low.cc (the_low_target)
1740 * linux-ppc-low.cc (the_low_target)
1741 * linux-s390-low.cc (the_low_target)
1742 * linux-sh-low.cc (the_low_target)
1743 * linux-sparc-low.cc (the_low_target)
1744 * linux-tic6x-low.cc (the_low_target)
1745 * linux-tile-low.cc (the_low_target)
1746 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1747 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1748 Declare.
1749 (ia64_fetch_register): Turn into...
1750 (ia64_target::low_fetch_register): ...this.
1751 (the_low_target): Remove the op field.
1752 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1753 Declare.
1754 (mips_fetch_register): Turn into...
1755 (mips_target::low_fetch_register): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1758 Declare.
1759 (riscv_fetch_register): Turn into...
1760 (riscv_target::low_fetch_register): ...this.
1761 (the_low_target): Remove the op field.
1762
1763 Update the callers below.
1764
1765 * linux-low.cc (linux_process_target::fetch_registers)
1766 (linux_process_target::low_fetch_register)
1767
daca57a7
TBA
17682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1769
1770 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1771 linux target ops into methods of linux_process_target.
1772
1773 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1774 (class linux_process_target) <fetch_register>
1775 <store_register>
1776 <usr_fetch_inferior_registers>
1777 <usr_store_inferior_registers>
1778 <low_cannot_fetch_register>
1779 <low_cannot_fetch_register> Declare.
1780 * linux-low.cc (fetch_register): Turn into...
1781 (linux_process_target::fetch_register): ...this.
1782 (store_register): Turn into ...
1783 (linux_process_target::store_register): ...this.
1784 (usr_fetch_inferior_registers): Turn into...
1785 (linux_process_target::usr_fetch_inferior_registers): ...this.
1786 (usr_store_inferior_registers): Turn into...
1787 (linux_process_target::usr_store_inferior_registers): ...this.
1788 * linux-x86-low.cc (class x86_target)
1789 <low_cannot_fetch_register>
1790 <low_cannot_store_register>: Declare.
1791 (x86_cannot_store_register): Turn into...
1792 (x86_target::low_cannot_store_register): ...this.
1793 (x86_cannot_fetch_register): Turn into...
1794 (x86_target::low_cannot_fetch_register): ...this.
1795 (the_low_target): Remove the target op fields.
1796 * linux-aarch64-low.cc (class aarch64_target)
1797 <low_cannot_fetch_register>
1798 <low_cannot_store_register>: Declare.
1799 (aarch64_target::low_cannot_fetch_register)
1800 (aarch64_target::low_cannot_store_register): Define.
1801 (the_low_target): Remove the op fields.
1802 * linux-arm-low.cc (class arm_target)
1803 <low_cannot_fetch_register>
1804 <low_cannot_store_register>: Declare.
1805 (arm_cannot_fetch_register): Turn into...
1806 (arm_target::low_cannot_fetch_register): ...this.
1807 (arm_cannot_store_register): Turn into...
1808 (arm_target::low_cannot_store_register): ...this.
1809 (the_low_target): Remove the op fields.
1810 * linux-bfin-low.cc (class bfin_target)
1811 <low_cannot_fetch_register>
1812 <low_cannot_store_register>: Declare.
1813 (bfin_cannot_fetch_register): Turn into...
1814 (bfin_target::low_cannot_fetch_register): ...this.
1815 (bfin_cannot_store_register): Turn into...
1816 (bfin_target::low_cannot_store_register): ...this.
1817 (the_low_target): Remove the op fields.
1818 * linux-cris-low.cc (class cris_target)
1819 <low_cannot_fetch_register>
1820 <low_cannot_store_register>: Declare.
1821 (cris_cannot_fetch_register): Turn into...
1822 (cris_target::low_cannot_fetch_register): ...this.
1823 (cris_cannot_store_register): Turn into...
1824 (cris_target::low_cannot_store_register): ...this.
1825 (the_low_target): Remove the op fields.
1826 * linux-crisv32-low.cc (class crisv32_target)
1827 <low_cannot_fetch_register>
1828 <low_cannot_store_register>: Declare.
1829 (crisv32_target::low_cannot_fetch_register)
1830 (crisv32_target::low_cannot_store_register): Define.
1831 (the_low_target): Remove the op fields.
1832 * linux-ia64-low.cc (class ia64_target)
1833 <low_cannot_fetch_register>
1834 <low_cannot_store_register>: Declare.
1835 (ia64_cannot_fetch_register): Turn into...
1836 (ia64_target::low_cannot_fetch_register): ...this.
1837 (ia64_cannot_store_register): Turn into...
1838 (ia64_target::low_cannot_store_register): ...this.
1839 (the_low_target): Remove the op fields.
1840 * linux-m32r-low.cc (class m32r_target)
1841 <low_cannot_fetch_register>
1842 <low_cannot_store_register>: Declare.
1843 (m32r_cannot_fetch_register): Turn into...
1844 (m32r_target::low_cannot_fetch_register): ...this.
1845 (m32r_cannot_store_register): Turn into...
1846 (m32r_target::low_cannot_store_register): ...this.
1847 (the_low_target): Remove the op fields.
1848 * linux-m68k-low.cc (class m68k_target)
1849 <low_cannot_fetch_register>
1850 <low_cannot_store_register>: Declare.
1851 (m68k_cannot_fetch_register): Turn into...
1852 (m68k_target::low_cannot_fetch_register): ...this.
1853 (m68k_cannot_store_register): Turn into...
1854 (m68k_target::low_cannot_store_register): ...this.
1855 (the_low_target): Remove the op fields.
1856 * linux-mips-low.cc (class mips_target)
1857 <low_cannot_fetch_register>
1858 <low_cannot_store_register>: Declare.
1859 (mips_cannot_fetch_register): Turn into...
1860 (mips_target::low_cannot_fetch_register): ...this.
1861 (mips_cannot_store_register): Turn into...
1862 (mips_target::low_cannot_store_register): ...this.
1863 (get_usrregs_info): Inline at the call sites in
1864 low_cannot_fetch_register and low_cannot_store_register,
1865 and remove.
1866 (the_low_target): Remove the op fields.
1867 * linux-nios2-low.cc (class nios2_target)
1868 <low_cannot_fetch_register>
1869 <low_cannot_store_register>: Declare.
1870 (nios2_cannot_fetch_register): Turn into...
1871 (nios2_target::low_cannot_fetch_register): ...this.
1872 (nios2_cannot_store_register): Turn into...
1873 (nios2_target::low_cannot_store_register): ...this.
1874 (the_low_target): Remove the op fields.
1875 * linux-ppc-low.cc (class ppc_target)
1876 <low_cannot_fetch_register>
1877 <low_cannot_store_register>: Declare.
1878 (ppc_cannot_fetch_register): Turn into...
1879 (ppc_target::low_cannot_fetch_register): ...this.
1880 (ppc_cannot_store_register): Turn into...
1881 (ppc_target::low_cannot_store_register): ...this.
1882 (the_low_target): Remove the op fields.
1883 * linux-riscv-low.cc (class riscv_target)
1884 <low_cannot_fetch_register>
1885 <low_cannot_store_register>: Declare.
1886 (riscv_target::low_cannot_fetch_register)
1887 (riscv_target::low_cannot_store_register): Define.
1888 (the_low_target): Remove the op fields.
1889 * linux-s390-low.cc (class s390_target)
1890 <low_cannot_fetch_register>
1891 <low_cannot_store_register>: Declare.
1892 (s390_cannot_fetch_register): Turn into...
1893 (s390_target::low_cannot_fetch_register): ...this.
1894 (s390_cannot_store_register): Turn into...
1895 (s390_target::low_cannot_store_register): ...this.
1896 (the_low_target): Remove the op fields.
1897 * linux-sh-low.cc (class sh_target)
1898 <low_cannot_fetch_register>
1899 <low_cannot_store_register>: Declare.
1900 (sh_cannot_fetch_register): Turn into...
1901 (sh_target::low_cannot_fetch_register): ...this.
1902 (sh_cannot_store_register): Turn into...
1903 (sh_target::low_cannot_store_register): ...this.
1904 (the_low_target): Remove the op fields.
1905 * linux-sparc-low.cc (class sparc_target)
1906 <low_cannot_fetch_register>
1907 <low_cannot_store_register>: Declare.
1908 (sparc_cannot_fetch_register): Turn into...
1909 (sparc_target::low_cannot_fetch_register): ...this.
1910 (sparc_cannot_store_register): Turn into...
1911 (sparc_target::low_cannot_store_register): ...this.
1912 (the_low_target): Remove the op fields.
1913 * linux-tic6x-low.cc (class tic6x_target)
1914 <low_cannot_fetch_register>
1915 <low_cannot_store_register>: Declare.
1916 (tic6x_cannot_fetch_register): Turn into...
1917 (tic6x_target::low_cannot_fetch_register): ...this.
1918 (tic6x_cannot_store_register): Turn into...
1919 (tic6x_target::low_cannot_store_register): ...this.
1920 (the_low_target): Remove the op fields.
1921 * linux-tile-low.cc (class tile_target)
1922 <low_cannot_fetch_register>
1923 <low_cannot_store_register>: Declare.
1924 (tile_cannot_fetch_register): Turn into...
1925 (tile_target::low_cannot_fetch_register): ...this.
1926 (tile_cannot_store_register): Turn into...
1927 (tile_target::low_cannot_store_register): ...this.
1928 (the_low_target): Remove the op fields.
1929 * linux-xtensa-low.cc (class xtensa_target)
1930 <low_cannot_fetch_register>
1931 <low_cannot_store_register>: Declare.
1932 (xtensa_target::low_cannot_fetch_register)
1933 (xtensa_target::low_cannot_store_register): Define.
1934 (the_low_target): Remove the op fields.
1935
aa8d21c9
TBA
19362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1937
1938 Turn the 'regs_info' linux target op into a method of
1939 linux_process_target.
1940
1941 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1942 (class linux_process_target) <get_regs_info>: Define.
1943
1944 Update the callers below.
1945
1946 * linux-low.cc (linux_process_target::fetch_registers)
1947 (linux_process_target::store_registers)
1948 * proc-service.cc (gregset_info)
1949
1950 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1951 (x86_linux_regs_info): Turn into ...
1952 (x86_target::get_regs_info): ...this.
1953 (the_low_target): Remove the op field.
1954 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1955 Declare.
1956 (aarch64_regs_info): Turn into ...
1957 (aarch64_target::get_regs_info): ...this.
1958 (the_low_target): Remove the op field.
1959 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1960 (arm_regs_info): Turn into ...
1961 (arm_target::get_regs_info): ...this.
1962 (the_low_target): Remove the op field.
1963 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1964 (bfin_regs_info): Turn into ...
1965 (bfin_target::get_regs_info): ...this.
1966 (the_low_target): Remove the op field.
1967 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1968 (cris_regs_info): Turn into ...
1969 (cris_target::get_regs_info): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1972 Declare.
1973 (crisv32_regs_info): Turn into ...
1974 (crisv32_target::get_regs_info): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1977 (ia64_regs_info): Turn into ...
1978 (ia64_target::get_regs_info): ...this.
1979 (the_low_target): Remove the op field.
1980 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1981 (m32r_regs_info): Turn into ...
1982 (m32r_target::get_regs_info): ...this.
1983 (the_low_target): Remove the op field.
1984 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1985 (m68k_regs_info): Turn into ...
1986 (m68k_target::get_regs_info): ...this.
1987 (the_low_target): Remove the op field.
1988 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1989 (mips_regs_info): Turn into ...
1990 (mips_target::get_regs_info): ...this.
1991 (the_low_target): Remove the op field.
1992 (get_usrregs_info): Update the call to the op.
1993 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1994 (nios2_regs_info): Turn into ...
1995 (nios2_target::get_regs_info): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1998 (ppc_regs_info): Turn into ...
1999 (ppc_target::get_regs_info): ...this.
2000 (the_low_target): Remove the op field.
2001 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2002 (riscv_regs_info): Turn into ...
2003 (riscv_target::get_regs_info): ...this.
2004 (the_low_target): Remove the op field.
2005 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2006 (s390_regs_info): Turn into ...
2007 (s390_target::get_regs_info): ...this.
2008 (the_low_target): Remove the op field.
2009 (s390_collect_ptrace_register)
2010 (s390_supply_ptrace_register)
2011 (s390_fill_gregset): Update the call to the op.
2012 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2013 (sh_regs_info): Turn into ...
2014 (sh_target::get_regs_info): ...this.
2015 (the_low_target): Remove the op field.
2016 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2017 (sparc_regs_info): Turn into ...
2018 (sparc_target::get_regs_info): ...this.
2019 (the_low_target): Remove the op field.
2020 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2021 (tic6x_regs_info): Turn into ...
2022 (tic6x_target::get_regs_info): ...this.
2023 (the_low_target): Remove the op field.
2024 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2025 (tile_regs_info): Turn into ...
2026 (tile_target::get_regs_info): ...this.
2027 (the_low_target): Remove the op field.
2028 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2029 Declare.
2030 (xtensa_regs_info): Turn into ...
2031 (xtensa_target::get_regs_info): ...this.
2032 (the_low_target): Remove the op field.
2033
797bcff5
TBA
20342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2035
2036 Turn the 'arch_setup' linux target op into a method of
2037 linux_process_target.
2038
2039 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2040 (class linux_process_target) <arch_setup_thread>
2041 <low_arch_setup>: New declarations.
2042 * linux-low.cc (linux_arch_setup): Delete.
2043 (linux_arch_setup_thread): Turn into...
2044 (linux_process_target::arch_setup_thread): ... this.
2045
2046 Update the callers below.
2047
2048 (linux_process_target::handle_extended_wait)
2049 (linux_process_target::post_create_inferior)
2050 (linux_process_target::filter_event)
2051
2052 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2053 declaration.
2054 (x86_linux_update_xmltarget): Turn into...
2055 (x86_target::update_xmltarget): ...this.
2056 (x86_linux_process_qsupported): Update the call to
2057 x86_linux_update_xmltarget.
2058 (x86_arch_setup): Turn into ...
2059 (x86_target::low_arch_setup): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2062 declaration.
2063 (aarch64_arch_setup): Turn into ...
2064 (aarch64_target::low_arch_setup): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2067 declaration.
2068 (arm_arch_setup): Turn into ...
2069 (arm_target::low_arch_setup): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2072 declaration.
2073 (bfin_arch_setup): Turn into ...
2074 (bfin_target::low_arch_setup): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2077 declaration.
2078 (cris_arch_setup): Turn into ...
2079 (cris_target::low_arch_setup): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2082 declaration.
2083 (crisv32_arch_setup): Turn into ...
2084 (crisv32_target::low_arch_setup): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2087 declaration.
2088 (ia64_arch_setup): Turn into ...
2089 (ia64_target::low_arch_setup): ...this.
2090 (the_low_target): Remove the op field.
2091 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2092 declaration.
2093 (m32r_arch_setup): Turn into ...
2094 (m32r_target::low_arch_setup): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2097 declaration.
2098 (m68k_arch_setup): Turn into ...
2099 (m68k_target::low_arch_setup): ...this.
2100 (the_low_target): Remove the op field.
2101 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2102 declaration.
2103 (mips_arch_setup): Turn into ...
2104 (mips_target::low_arch_setup): ...this.
2105 (the_low_target): Remove the op field.
2106 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2107 declaration.
2108 (nios2_arch_setup): Turn into ...
2109 (nios2_target::low_arch_setup): ...this.
2110 (the_low_target): Remove the op field.
2111 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2112 declaration.
2113 (ppc_arch_setup): Turn into ...
2114 (ppc_target::low_arch_setup): ...this.
2115 (the_low_target): Remove the op field.
2116 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2117 declaration.
2118 (riscv_arch_setup): Turn into ...
2119 (riscv_target::low_arch_setup): ...this.
2120 (the_low_target): Remove the op field.
2121 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2122 declaration.
2123 (s390_arch_setup): Turn into ...
2124 (s390_target::low_arch_setup): ...this.
2125 (the_low_target): Remove the op field.
2126 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2127 declaration.
2128 (sh_arch_setup): Turn into ...
2129 (sh_target::low_arch_setup): ...this.
2130 (the_low_target): Remove the op field.
2131 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2132 declaration.
2133 (sparc_arch_setup): Turn into ...
2134 (sparc_target::low_arch_setup): ...this.
2135 (the_low_target): Remove the op field.
2136 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2137 declaration.
2138 (tic6x_arch_setup): Turn into ...
2139 (tic6x_target::low_arch_setup): ...this.
2140 (the_low_target): Remove the op field.
2141 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2142 declaration.
2143 (tile_arch_setup): Turn into ...
2144 (tile_target::low_arch_setup): ...this.
2145 (the_low_target): Remove the op field.
2146 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2147 declaration.
2148 (xtensa_arch_setup): Turn into ...
2149 (xtensa_target::low_arch_setup): ...this.
2150 (the_low_target): Remove the op field.
2151
ef0478f6
TBA
21522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2153
2154 * linux-low.h (the_linux_target): New extern declaration.
2155 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2156 'the_target'.
2157 (the_linux_target): Remove.
2158 * linux-x86-low.cc (class x86_target): New class.
2159 (the_x86_target): New static object.
2160 (the_linux_target): Define as pointer to the_x86_target.
2161 * linux-aarch64-low.cc (class aarch64_target): New class.
2162 (the_aarch64_target): New static object.
2163 (the_linux_target): Define as pointer to the_aarch64_target.
2164 * linux-arm-low.cc (class arm_target): New class.
2165 (the_arm_target): New static object.
2166 (the_linux_target): Define as pointer to the_arm_target.
2167 * linux-bfin-low.cc (class bfin_target): New class.
2168 (the_bfin_target): New static object.
2169 (the_linux_target): Define as pointer to the_bfin_target.
2170 * linux-cris-low.cc (class cris_target): New class.
2171 (the_cris_target): New static object.
2172 (the_linux_target): Define as pointer to the_cris_target.
2173 * linux-crisv32-low.cc (class crisv32_target): New class.
2174 (the_crisv32_target): New static object.
2175 (the_linux_target): Define as pointer to the_crisv32_target.
2176 * linux-ia64-low.cc (class ia64_target): New class.
2177 (the_ia64_target): New static object.
2178 (the_linux_target): Define as pointer to the_ia64_target.
2179 * linux-m32r-low.cc (class m32r_target): New class.
2180 (the_m32r_target): New static object.
2181 (the_linux_target): Define as pointer to the_m32r_target.
2182 * linux-m68k-low.cc (class m68k_target): New class.
2183 (the_m68k_target): New static object.
2184 (the_linux_target): Define as pointer to the_m68k_target.
2185 * linux-mips-low.cc (class mips_target): New class.
2186 (the_mips_target): New static object.
2187 (the_linux_target): Define as pointer to the_mips_target.
2188 * linux-nios2-low.cc (class nios2_target): New class.
2189 (the_nios2_target): New static object.
2190 (the_linux_target): Define as pointer to the_nios2_target.
2191 * linux-ppc-low.cc (class ppc_target): New class.
2192 (the_ppc_target): New static object.
2193 (the_linux_target): Define as pointer to the_ppc_target.
2194 * linux-riscv-low.cc (class riscv_target): New class.
2195 (the_riscv_target): New static object.
2196 (the_linux_target): Define as pointer to the_riscv_target.
2197 * linux-s390-low.cc (class s390_target): New class.
2198 (the_s390_target): New static object.
2199 (the_linux_target): Define as pointer to the_s390_target.
2200 * linux-sh-low.cc (class sh_target): New class.
2201 (the_sh_target): New static object.
2202 (the_linux_target): Define as pointer to the_sh_target.
2203 * linux-sparc-low.cc (class sparc_target): New class.
2204 (the_sparc_target): New static object.
2205 (the_linux_target): Define as pointer to the_sparc_target.
2206 * linux-tic6x-low.cc (class tic6x_target): New class.
2207 (the_tic6x_target): New static object.
2208 (the_linux_target): Define as pointer to the_tic6x_target.
2209 * linux-tile-low.cc (class tile_target): New class.
2210 (the_tile_target): New static object.
2211 (the_linux_target): Define as pointer to the_tile_target.
2212 * linux-xtensa-low.cc (class xtensa_target): New class.
2213 (the_xtensa_target): New static object.
2214 (the_linux_target): Define as pointer to the_xtensa_target.
2215
d16f3f6c
TBA
22162020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2217
2218 Turn some static functions in linux-low.cc into private methods of
2219 linux_process_target.
2220
2221 * linux-low.cc (handle_extended_wait): Turn into ...
2222 (linux_process_target::handle_extended_wait): ...this. Call
2223 'mourn' on 'this' object instead of 'the_target'.
2224 (maybe_move_out_of_jump_pad): Turn into...
2225 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2226 (linux_low_filter_event): Turn into...
2227 (linux_process_target::filter_event): ...this.
2228 (linux_wait_for_event_filtered): Turn into...
2229 (linux_process_target::wait_for_event_filtered): ...this.
2230 (linux_wait_for_event): Turn into...
2231 (linux_process_target::wait_for_event): ...this.
2232 (linux_wait_1): Turn into...
2233 (linux_process_target::wait_1): ...this.
2234 (wait_for_sigstop): Turn into...
2235 (linux_process_target::wait_for_sigstop): ...this.
2236 (move_out_of_jump_pad_callback): Turn into...
2237 (linux_process_target::move_out_of_jump_pad): ...this.
2238 (stop_all_lwps): Turn into...
2239 (linux_process_target::stop_all_lwps): ...this.
2240 (start_step_over): Turn into...
2241 (linux_process_target::start_step_over): ...this.
2242 (complete_ongoing_step_over): Turn into...
2243 (linux_process_target::complete_ongoing_step_over): ...this.
2244 (proceed_all_lwps): Turn into...
2245 (linux_process_target::proceed_all_lwps): ...this.
2246 (unstop_all_lwps): Turn into...
2247 (linux_process_target::unstop_all_lwps): ...this.
2248
2249 * linux-low.h (class linux_process_target)
2250 <handle_extended_wait>
2251 <maybe_move_out_of_jump_pad>
2252 filter_event>
2253 <wait_for_event_filtered>
2254 <wait_for_event>
2255 <wait_1>
2256 <wait_for_sigstop>
2257 <move_out_of_jump_pad>
2258 <stop_all_lwps>
2259 <start_step_over>
2260 <complete_ongoing_step_over>
2261 <proceed_all_lwps>
2262 <unstop_all_lwps>: Declare.
2263
2264 Update the callers below.
2265
2266 * linux-low.cc (linux_process_target::attach): Update.
2267 (linux_process_target::stabilize_threads): Ditto.
2268 (linux_process_target::wait): Ditto.
2269
a5863204
TBA
22702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2271
2272 * linux-low.h (struct linux_target_ops): Update the comment for
2273 'cannot_store_register' to return 0 or 1.
2274 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2275 of 2.
2276
c884cc46
SM
22772020-03-20 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * config.in: Re-generate.
2280 * configure: Re-generate.
2281
5a82b8a1
KR
22822020-03-17 Kamil Rytarowski <n54@gmx.com>
2283
2284 * regcache.cc (find_register_by_number): Update.
2285 * tdesc.cc (init_target_desc): Likewise.
2286 * tdesc.h (target_desc::reg_defs): Likewise.
2287
4635ff97
TT
22882020-03-12 Tom Tromey <tom@tromey.com>
2289
2290 * configure: Rebuild.
2291 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2292 (WIN32APILIBS): New subst.
2293 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2294 gdbsupport files.
2295 (gdbsupport/%.o): Remove target.
2296 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2297 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2298 (WIN32APILIBS): New variable.
2299 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2300 (gdbreplay$(EXEEXT)): Likewise.
2301
9a665d62
TT
23022020-03-12 Tom Tromey <tom@tromey.com>
2303
2304 * config.in, configure: Rebuild.
2305 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2306 * acinclude.m4: Include gettext-sister.m4.
2307 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2308 variables.
2309 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2310 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2311
272cd5a3
SM
23122020-03-12 Simon Marchi <simon.marchi@efficios.com>
2313
2314 * acinclude.m4: Update path to selftest.m4.
2315
db6878ac
SM
23162020-03-12 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * configure.ac: Don't source bfd/development.sh, move
2319 GDB_AC_COMMON higher.
2320 * configure: Re-generate.
2321
4d696a5c
SM
23222020-03-12 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * configure: Re-generate.
2325
a0761e34
SM
23262020-03-11 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * configure: Re-generate.
2329
20ea4a60
AB
23302020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * .dir-locals.el: New file.
2333
842806cb
TBA
23342020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2335
2336 * .gitattributes: New file.
2337
442131c1
AB
23382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2341 reply into an S reply.
2342 * server.cc (disable_packet_T): New global.
2343 (captured_main): Set new global when appropriate.
2344 * server.h (disable_packet_T): Declare.
2345
dda42c0b
TT
23462020-02-21 Tom Tromey <tom@tromey.com>
2347
2348 * Makefile.in (mostlyclean): New target.
2349
52405d85
TBA
23502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2351
2352 * target.h (struct process_stratum_target): Remove.
2353 (class process_target): Rename to ...
2354 (class process_stratum_target): ... this.
2355 * linux-low.h (class linux_process_target): Derive from
2356 'process_stratum_target'.
2357 * linux-low.cc (linux_target_ops): Remove.
2358 (initialize_low): Set the_target to the singleton instance of
2359 linux_process_target.
2360 * lynx-low.h (class lynx_process_target): Derive from
2361 'process_stratum_target'.
2362 * lynx-low.cc (lynx_target_ops): Remove.
2363 (initialize_low): Set the_target to the singleton instance of
2364 lynx_process_target.
2365 * nto-low.h (class nto_process_target): Derive from
2366 'process_stratum_target'.
2367 * nto-low.cc (nto_target_ops): Remove.
2368 (initialize_low): Set the_target to the singleton instance of
2369 nto_process_target.
2370 * win32-low.h (class win32_process_target): Derive from
2371 'process_stratum_target'.
2372 * win32-low.cc (win32_target_ops): Remove.
2373 (initialize_low): Set the_target to the singleton instance of
2374 win32_process_target.
2375
2376 Replace 'the_target->pt' with 'the_target' in the uses below.
2377
2378 * hostio.cc (hostio_error)
2379 (handle_setfs)
2380 (handle_open)
2381 (handle_unlink)
2382 (handle_readlink)
2383 * linux-aarch32-low.cc (arm_breakpoint_at)
2384 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2385 * linux-arm-low.cc (arm_sigreturn_next_pc)
2386 (arm_get_hwcap)
2387 (arm_get_syscall_trapinfo)
2388 * linux-cris-low.cc (cris_breakpoint_at)
2389 * linux-crisv32-low.cc (cris_breakpoint_at)
2390 * linux-low.cc (handle_extended_wait)
2391 (linux_wait_1)
2392 (linux_read_memory)
2393 (linux_process_target::breakpoint_kind_from_pc)
2394 (linux_get_auxv)
2395 * linux-m32r-low.cc (m32r_breakpoint_at)
2396 * linux-mips-low.cc (mips_breakpoint_at)
2397 * linux-nios2-low.cc (nios2_breakpoint_at)
2398 * linux-ppc-low.cc (ppc_breakpoint_at)
2399 * linux-s390-low.cc (s390_get_hwcap)
2400 * linux-sh-low.cc (sh_breakpoint_at)
2401 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2402 (sparc_store_gregset_from_stack)
2403 (sparc_breakpoint_at)
2404 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2405 * linux-tile-low.cc (tile_breakpoint_at)
2406 * linux-x86-low.cc (x86_breakpoint_at)
2407 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2408 * mem-break.cc (bp_size)
2409 (bp_opcode)
2410 (insert_memory_breakpoint)
2411 (set_raw_breakpoint_at)
2412 (delete_raw_breakpoint)
2413 (z_type_supported)
2414 (uninsert_raw_breakpoint)
2415 (reinsert_raw_breakpoint)
2416 (validate_inserted_breakpoint)
2417 * regcache.cc (regcache_read_pc)
2418 (regcache_write_pc)
2419 * remote-utils.cc (putpkt_binary_1)
2420 (input_interrupt)
2421 (getpkt)
2422 (prepare_resume_reply)
2423 * server.cc (handle_general_set)
2424 (handle_detach)
2425 (handle_qxfer_auxv)
2426 (handle_qxfer_exec_file)
2427 (handle_qxfer_libraries_svr4)
2428 (handle_qxfer_osdata)
2429 (handle_qxfer_siginfo)
2430 (handle_qxfer_fdpic)
2431 (handle_query)
2432 (resume)
2433 (handle_v_requests)
2434 (queue_stop_reply_callback)
2435 (captured_main)
2436 * target.cc (prepare_to_access_memory)
2437 (done_accessing_memory)
2438 (read_inferior_memory)
2439 (target_write_memory)
2440 (target_stop_and_wait)
2441 (target_wait)
2442 (target_mourn_inferior)
2443 (target_continue_no_signal)
2444 (target_continue)
2445 (target_supports_multi_process)
2446 (kill_inferior)
2447 * target.h
2448 (target_create_inferior)
2449 (target_post_create_inferior)
2450 (myattach)
2451 (target_supports_fork_events)
2452 (target_supports_vfork_events)
2453 (target_supports_exec_events)
2454 (target_handle_new_gdb_connection)
2455 (detach_inferior)
2456 (mythread_alive)
2457 (fetch_inferior_registers)
2458 (store_inferior_registers)
2459 (join_inferior)
2460 (target_supports_non_stop)
2461 (target_async)
2462 (target_process_qsupported)
2463 (target_supports_catch_syscall)
2464 (target_get_ipa_tdesc_idx)
2465 (target_supports_tracepoints)
2466 (target_supports_fast_tracepoints)
2467 (target_get_min_fast_tracepoint_insn_len)
2468 (target_thread_stopped)
2469 (target_pause_all)
2470 (target_unpause_all)
2471 (target_stabilize_threads)
2472 (target_install_fast_tracepoint_jump_pad)
2473 (target_emit_ops)
2474 (target_supports_disable_randomization)
2475 (target_supports_agent)
2476 (target_enable_btrace)
2477 (target_disable_btrace)
2478 (target_read_btrace)
2479 (target_read_btrace_conf)
2480 (target_supports_range_stepping)
2481 (target_supports_stopped_by_sw_breakpoint)
2482 (target_stopped_by_sw_breakpoint)
2483 (target_supports_stopped_by_hw_breakpoint)
2484 (target_supports_hardware_single_step)
2485 (target_stopped_by_hw_breakpoint)
2486 (target_breakpoint_kind_from_pc)
2487 (target_breakpoint_kind_from_current_state)
2488 (target_supports_software_single_step)
2489 (target_core_of_thread)
2490 (target_thread_name)
2491 (target_thread_handle)
2492 * win32-low.cc (do_initial_child_stuff)
2493
2494 Rename target op default definitions listed below.
2495
2496 * target.cc (process_target::post_create_inferior): Rename as ...
2497 (process_stratum_target::post_create_inferior): ... this.
2498 (process_target::prepare_to_access_memory): Rename as ...
2499 (process_stratum_target::prepare_to_access_memory): ... this.
2500 (process_target::done_accessing_memory): Rename as ...
2501 (process_stratum_target::done_accessing_memory): ... this.
2502 (process_target::look_up_symbols): Rename as ...
2503 (process_stratum_target::look_up_symbols): ... this.
2504 (process_target::supports_read_auxv): Rename as ...
2505 (process_stratum_target::supports_read_auxv): ... this.
2506 (process_target::read_auxv): Rename as ...
2507 (process_stratum_target::read_auxv): ... this.
2508 (process_target::supports_z_point_type): Rename as ...
2509 (process_stratum_target::supports_z_point_type): ... this.
2510 (process_target::insert_point): Rename as ...
2511 (process_stratum_target::insert_point): ... this.
2512 (process_target::remove_point): Rename as ...
2513 (process_stratum_target::remove_point): ... this.
2514 (process_target::stopped_by_sw_breakpoint): Rename as ...
2515 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2516 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2517 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2518 (process_target::stopped_by_hw_breakpoint): Rename as ...
2519 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2520 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2521 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2522 (process_target::supports_hardware_single_step): Rename as ...
2523 (process_stratum_target::supports_hardware_single_step): ... this.
2524 (process_target::stopped_by_watchpoint): Rename as ...
2525 (process_stratum_target::stopped_by_watchpoint): ... this.
2526 (process_target::stopped_data_address): Rename as ...
2527 (process_stratum_target::stopped_data_address): ... this.
2528 (process_target::supports_read_offsets): Rename as ...
2529 (process_stratum_target::supports_read_offsets): ... this.
2530 (process_target::read_offsets): Rename as ...
2531 (process_stratum_target::read_offsets): ... this.
2532 (process_target::supports_get_tls_address): Rename as ...
2533 (process_stratum_target::supports_get_tls_address): ... this.
2534 (process_target::get_tls_address): Rename as ...
2535 (process_stratum_target::get_tls_address): ... this.
2536 (process_target::hostio_last_error): Rename as ...
2537 (process_stratum_target::hostio_last_error): ... this.
2538 (process_target::supports_qxfer_osdata): Rename as ...
2539 (process_stratum_target::supports_qxfer_osdata): ... this.
2540 (process_target::qxfer_osdata): Rename as ...
2541 (process_stratum_target::qxfer_osdata): ... this.
2542 (process_target::supports_qxfer_siginfo): Rename as ...
2543 (process_stratum_target::supports_qxfer_siginfo): ... this.
2544 (process_target::qxfer_siginfo): Rename as ...
2545 (process_stratum_target::qxfer_siginfo): ... this.
2546 (process_target::supports_non_stop): Rename as ...
2547 (process_stratum_target::supports_non_stop): ... this.
2548 (process_target::async): Rename as ...
2549 (process_stratum_target::async): ... this.
2550 (process_target::start_non_stop): Rename as ...
2551 (process_stratum_target::start_non_stop): ... this.
2552 (process_target::supports_multi_process): Rename as ...
2553 (process_stratum_target::supports_multi_process): ... this.
2554 (process_target::supports_fork_events): Rename as ...
2555 (process_stratum_target::supports_fork_events): ... this.
2556 (process_target::supports_vfork_events): Rename as ...
2557 (process_stratum_target::supports_vfork_events): ... this.
2558 (process_target::supports_exec_events): Rename as ...
2559 (process_stratum_target::supports_exec_events): ... this.
2560 (process_target::handle_new_gdb_connection): Rename as ...
2561 (process_stratum_target::handle_new_gdb_connection): ... this.
2562 (process_target::handle_monitor_command): Rename as ...
2563 (process_stratum_target::handle_monitor_command): ... this.
2564 (process_target::core_of_thread): Rename as ...
2565 (process_stratum_target::core_of_thread): ... this.
2566 (process_target::supports_read_loadmap): Rename as ...
2567 (process_stratum_target::supports_read_loadmap): ... this.
2568 (process_target::read_loadmap): Rename as ...
2569 (process_stratum_target::read_loadmap): ... this.
2570 (process_target::process_qsupported): Rename as ...
2571 (process_stratum_target::process_qsupported): ... this.
2572 (process_target::supports_tracepoints): Rename as ...
2573 (process_stratum_target::supports_tracepoints): ... this.
2574 (process_target::read_pc): Rename as ...
2575 (process_stratum_target::read_pc): ... this.
2576 (process_target::write_pc): Rename as ...
2577 (process_stratum_target::write_pc): ... this.
2578 (process_target::supports_thread_stopped): Rename as ...
2579 (process_stratum_target::supports_thread_stopped): ... this.
2580 (process_target::thread_stopped): Rename as ...
2581 (process_stratum_target::thread_stopped): ... this.
2582 (process_target::supports_get_tib_address): Rename as ...
2583 (process_stratum_target::supports_get_tib_address): ... this.
2584 (process_target::get_tib_address): Rename as ...
2585 (process_stratum_target::get_tib_address): ... this.
2586 (process_target::pause_all): Rename as ...
2587 (process_stratum_target::pause_all): ... this.
2588 (process_target::unpause_all): Rename as ...
2589 (process_stratum_target::unpause_all): ... this.
2590 (process_target::stabilize_threads): Rename as ...
2591 (process_stratum_target::stabilize_threads): ... this.
2592 (process_target::supports_fast_tracepoints): Rename as ...
2593 (process_stratum_target::supports_fast_tracepoints): ... this.
2594 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2595 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2596 (process_target::emit_ops): Rename as ...
2597 (process_stratum_target::emit_ops): ... this.
2598 (process_target::supports_disable_randomization): Rename as ...
2599 (process_stratum_target::supports_disable_randomization): ... this.
2600 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2601 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2602 (process_target::qxfer_libraries_svr4): Rename as ...
2603 (process_stratum_target::qxfer_libraries_svr4): ... this.
2604 (process_target::supports_agent): Rename as ...
2605 (process_stratum_target::supports_agent): ... this.
2606 (process_target::enable_btrace): Rename as ...
2607 (process_stratum_target::enable_btrace): ... this.
2608 (process_target::disable_btrace): Rename as ...
2609 (process_stratum_target::disable_btrace): ... this.
2610 (process_target::read_btrace): Rename as ...
2611 (process_stratum_target::read_btrace): ... this.
2612 (process_target::read_btrace_conf): Rename as ...
2613 (process_stratum_target::read_btrace_conf): ... this.
2614 (process_target::supports_range_stepping): Rename as ...
2615 (process_stratum_target::supports_range_stepping): ... this.
2616 (process_target::supports_pid_to_exec_file): Rename as ...
2617 (process_stratum_target::supports_pid_to_exec_file): ... this.
2618 (process_target::pid_to_exec_file): Rename as ...
2619 (process_stratum_target::pid_to_exec_file): ... this.
2620 (process_target::supports_multifs): Rename as ...
2621 (process_stratum_target::supports_multifs): ... this.
2622 (process_target::multifs_open): Rename as ...
2623 (process_stratum_target::multifs_open): ... this.
2624 (process_target::multifs_unlink): Rename as ...
2625 (process_stratum_target::multifs_unlink): ... this.
2626 (process_target::multifs_readlink): Rename as ...
2627 (process_stratum_target::multifs_readlink): ... this.
2628 (process_target::breakpoint_kind_from_pc): Rename as ...
2629 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2630 (process_target::breakpoint_kind_from_current_state): Rename as ...
2631 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2632 (process_target::thread_name): Rename as ...
2633 (process_stratum_target::thread_name): ... this.
2634 (process_target::thread_handle): Rename as ...
2635 (process_stratum_target::thread_handle): ... this.
2636 (process_target::supports_software_single_step): Rename as ...
2637 (process_stratum_target::supports_software_single_step): ... this.
2638 (process_target::supports_catch_syscall): Rename as ...
2639 (process_stratum_target::supports_catch_syscall): ... this.
2640 (process_target::get_ipa_tdesc_idx): Rename as ...
2641 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2642
478f9adf
PA
26432020-02-20 Pedro Alves <palves@redhat.com>
2644
2645 * target.cc (set_target_ops): Simply copy the given target pointer
2646 instead of creating a copy of the pointed object.
2647
d633e831
TBA
26482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2649
2650 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2651 of process_target.
2652
2653 * target.h (struct process_stratum_target): Remove the target op.
2654 (class process_target): Add the target op.
2655 (target_get_ipa_tdesc_idx): Update the macro.
2656 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2657
2658 Update the derived classes and callers below.
2659
2660 * linux-low.cc (linux_target_ops): Update.
2661 (linux_get_ipa_tdesc_idx): Turn into ...
2662 (linux_process_target::get_ipa_tdesc_idx): ... this.
2663 * linux-low.h (class linux_process_target): Update.
2664 * lynx-low.cc (lynx_target_ops): Update.
2665 * nto-low.cc (nto_target_ops): Update.
2666 * win32-low.cc (win32_target_ops): Update.
2667
bc8d3ae4
TBA
26682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2669
2670 Turn process_stratum_target's supports_catch_syscall op into a
2671 method of process_target.
2672
2673 * target.h (struct process_stratum_target): Remove the target op.
2674 (class process_target): Add the target op.
2675 (target_supports_catch_syscall): Update the macro.
2676 * target.cc (process_target::supports_catch_syscall): Define.
2677
2678 Update the derived classes and callers below.
2679
2680 * linux-low.cc (linux_target_ops): Update.
2681 (linux_supports_catch_syscall): Turn into ...
2682 (linux_process_target::supports_catch_syscall): ... this.
2683 * linux-low.h (class linux_process_target): Update.
2684 * lynx-low.cc (lynx_target_ops): Update.
2685 * nto-low.cc (nto_target_ops): Update.
2686 * win32-low.cc (win32_target_ops): Update.
2687
5303a34f
TBA
26882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2689
2690 Turn process_stratum_target's supports_software_single_step op
2691 into a method of process_target.
2692
2693 * target.h (struct process_stratum_target): Remove the target op.
2694 (class process_target): Add the target op.
2695 (target_supports_software_single_step): Update the macro.
2696 * target.cc (process_target::supports_software_single_step): Define.
2697
2698 Update the derived classes and callers below.
2699
2700 * linux-low.cc (linux_target_ops): Update.
2701 (linux_supports_software_single_step): Turn into ...
2702 (linux_process_target::supports_software_single_step): ... this.
2703 * linux-low.h (class linux_process_target): Update.
2704 * lynx-low.cc (lynx_target_ops): Update.
2705 * nto-low.cc (nto_target_ops): Update.
2706 * win32-low.cc (win32_target_ops): Update.
2707
7f63b89b
TBA
27082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2709
2710 Turn process_stratum_target's thread_name and thread_handle ops
2711 into methods of process_target.
2712
2713 * target.h (struct process_stratum_target): Remove the target ops.
2714 (class process_target): Add the target ops.
2715 (target_thread_name): Update the macro.
2716 (target_thread_handle): Update the macro.
2717 * target.cc (process_target::thread_name): Define.
2718 (process_target::thread_handle): Define.
2719
2720 Update the derived classes and callers below.
2721
2722 * linux-low.cc (linux_target_ops): Update.
2723 (linux_process_target::thread_name): Define.
2724 (linux_process_target::thread_handle): Define.
2725 * linux-low.h (class linux_process_target): Update.
2726 * lynx-low.cc (lynx_target_ops): Update.
2727 * nto-low.cc (nto_target_ops): Update.
2728 * win32-low.cc (win32_target_ops): Update.
2729
d367006f
TBA
27302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2731
2732 Turn process_stratum_target's breakpoint_kind_from_pc,
2733 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2734 ops into methods of process_target.
2735
2736 * target.h (struct process_stratum_target): Remove the target op.
2737 (class process_target): Add the target op.
2738 (target_breakpoint_kind_from_pc): Update the macro.
2739 (target_breakpoint_kind_from_current_state): Update the macro.
2740 (default_breakpoint_kind_from_pc): Remove declaration.
2741 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2742 (process_target::breakpoint_kind_from_pc): ... this.
2743 (process_target::breakpoint_kind_from_current_state): Define.
2744
2745 Update the derived classes and callers below.
2746
2747 * mem-break.cc (bp_size): Update.
2748 (bp_opcode): Update.
2749 * linux-low.cc (linux_target_ops): Update.
2750 (linux_wait_1): Update.
2751 (linux_breakpoint_kind_from_pc): Turn into ...
2752 (linux_process_target::breakpoint_kind_from_pc): ... this.
2753 (linux_sw_breakpoint_from_kind): Turn into ...
2754 (linux_process_target::sw_breakpoint_from_kind): ... this.
2755 (linux_breakpoint_kind_from_current_state): Turn into ...
2756 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2757 * linux-low.h (class linux_process_target): Update.
2758 * lynx-low.cc (lynx_target_ops): Update.
2759 (lynx_process_target::sw_breakpoint_from_kind): Define.
2760 * lynx-low.h (class lynx_process_target): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 (nto_sw_breakpoint_from_kind): Turn into ...
2763 (nto_process_target::sw_breakpoint_from_kind): ... this.
2764 * nto-low.h (class nto_process_target): Update.
2765 * win32-low.cc (win32_target_ops): Update.
2766 (win32_sw_breakpoint_from_kind): Turn into ...
2767 (win32_process_target::sw_breakpoint_from_kind): ... this.
2768 * win32-low.h (class win32_process_target): Update.
2769
c9b7b804
TBA
27702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2771
2772 Turn process_stratum_target's multifs_open, multifs_readlink,
2773 multifs_unlink ops into methods of process_target.
2774
2775 * target.h (struct process_stratum_target): Remove the target ops.
2776 (class process_target): Add the target ops. Also add
2777 'supports_multifs'.
2778 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2779 "sys/stat.h".
2780 (process_target::supports_multifs): Define.
2781 (process_target::multifs_open): Define.
2782 (process_target::multifs_readlink): Define.
2783 (process_target::multifs_unlink): Define.
2784
2785 Update the derived classes and callers below.
2786
2787 * hostio.cc (handle_setfs): Update.
2788 (handle_open): Update.
2789 (handle_unlink): Update.
2790 (handle_readlink): Update.
2791 * linux-low.cc (linux_target_ops): Update.
2792 (linux_process_target::supports_multifs): Define.
2793 (linux_process_target::multifs_open): Define.
2794 (linux_process_target::multifs_readlink): Define.
2795 (linux_process_target::multifs_unlink): Define.
2796 * linux-low.h (class linux_process_target): Update.
2797 * lynx-low.cc (lynx_target_ops): Update.
2798 * nto-low.cc (nto_target_ops): Update.
2799 * win32-low.cc (win32_target_ops): Update.
2800
8247b823
TBA
28012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2802
2803 Turn process_stratum_target's pid_to_exec_file op into a method
2804 of process_target.
2805
2806 * target.h (struct process_stratum_target): Remove the target op.
2807 (class process_target): Add the target op. Also add
2808 'supports_pid_to_exec_file'.
2809 * target.cc (process_target::pid_to_exec_file): Define.
2810 (process_target::supports_pid_to_exec_file): Define.
2811
2812 Update the derived classes and callers below.
2813
2814 * server.cc (handle_qxfer_exec_file): Update.
2815 (handle_query): Update.
2816 * linux-low.cc (linux_target_ops): Update.
2817 (linux_process_target::supports_pid_to_exec_file): Define.
2818 (linux_process_target::pid_to_exec_file): Define.
2819 * linux-low.h (class linux_process_target): Update.
2820 * lynx-low.cc (lynx_target_ops): Update.
2821 * nto-low.cc (nto_target_ops): Update.
2822 * win32-low.cc (win32_target_ops): Update.
2823
2526e0cd
TBA
28242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2825
2826 Turn process_stratum_target's supports_range_stepping op into a
2827 method of process_target.
2828
2829 * target.h (struct process_stratum_target): Remove the target op.
2830 (class process_target): Add the target op.
2831 (target_supports_range_stepping): Update the macro.
2832 * target.cc (process_target::supports_range_stepping): Define.
2833
2834 Update the derived classes and callers below.
2835
2836 * linux-low.cc (linux_target_ops): Update.
2837 (linux_supports_range_stepping): Turn into ...
2838 (linux_process_target::supports_range_stepping): ... this.
2839 * linux-low.h (class linux_process_target): Update.
2840 * lynx-low.cc (lynx_target_ops): Update.
2841 * nto-low.cc (nto_target_ops): Update.
2842 * win32-low.cc (win32_target_ops): Update.
2843
79597bdd
TBA
28442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2845
2846 Turn process_stratum_target's btrace-related ops (enable_btrace,
2847 disable_btrace, read_btrace, read_btrace_conf) into methods of
2848 process_target.
2849
2850 * target.h (struct process_stratum_target): Remove the target ops.
2851 (class process_target): Add the target ops.
2852 (target_enable_btrace): Update.
2853 (target_disable_btrace): Update.
2854 (target_read_btrace): Update.
2855 (target_read_btrace_conf): Update.
2856 * target.cc (process_target::enable_btrace): Define.
2857 (process_target::disable_btrace): Define.
2858 (process_target::read_btrace): Define.
2859 (process_target::read_btrace_conf): Define.
2860
2861 Update the derived classes and callers below.
2862
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_process_target:enable_btrace): Define as a wrapper around
2865 linux_enable_btrace.
2866 (linux_low_disable_btrace): Turn into ...
2867 (linux_process_target::disable_btrace): ... this.
2868 (linux_low_read_btrace): Turn into ...
2869 (linux_process_target::read_btrace): ... this.
2870 (linux_low_btrace_conf): Turn into ...
2871 (linux_process_target::read_btrace_conf): ... this.
2872 * linux-low.h (class linux_process_target): Update.
2873 * lynx-low.cc (lynx_target_ops): Update.
2874 * nto-low.cc (nto_target_ops): Update.
2875 * win32-low.cc (win32_target_ops): Update.
2876
c0245cb9
TBA
28772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2878
2879 Turn process_stratum_target's supports_agent op into a method of
2880 process_target.
2881
2882 * target.h (struct process_stratum_target): Remove the target op.
2883 (class process_target): Add the target op.
2884 (target_supports_agent): Update the macro.
2885 * target.cc (process_target::supports_agent): Define.
2886
2887 Update the derived classes and callers below.
2888
2889 * linux-low.cc (linux_target_ops): Update.
2890 (linux_supports_agent): Turn into ...
2891 (linux_process_target::supports_agent): ... this.
2892 * linux-low.h (class linux_process_target): Update.
2893 * lynx-low.cc (lynx_target_ops): Update.
2894 * nto-low.cc (nto_target_ops): Update.
2895 * win32-low.cc (win32_target_ops): Update.
2896
974387bb
TBA
28972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898
2899 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2900 method of process_target.
2901
2902 * target.h (struct process_stratum_target): Remove the target op.
2903 (class process_target): Add the target op. Also add
2904 'supports_qxfer_libraries_svr4'.
2905 * target.cc (process_target::qxfer_libraries_svr4): Define.
2906 (process_target::supports_qxfer_libraries_svr4): Define.
2907
2908 Update the derived classes and callers below.
2909
2910 * server.cc (handle_qxfer_libraries_svr4): Update.
2911 (handle_query): Update.
2912 * linux-low.cc (linux_target_ops): Update.
2913 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2914 (linux_qxfer_libraries_svr4): Turn into ...
2915 (linux_process_target::qxfer_libraries_svr4): ... this.
2916 * linux-low.h (class linux_process_target): Update.
2917 * lynx-low.cc (lynx_target_ops): Update.
2918 * nto-low.cc (nto_target_ops): Update.
2919 * win32-low.cc (win32_target_ops): Update.
2920
c756403b
TBA
29212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922
2923 Turn process_stratum_target's supports_disable_randomization op
2924 into a method of process_target.
2925
2926 * target.h (struct process_stratum_target): Remove the target op.
2927 (class process_target): Add the target op.
2928 (target_supports_disable_randomization): Update the macro.
2929 * target.cc (process_target::supports_disable_randomization): Define.
2930
2931 Update the derived classes and callers below.
2932
2933 * linux-low.cc (linux_target_ops): Update.
2934 (linux_supports_disable_randomization): Turn into ...
2935 (linux_process_target::supports_disable_randomization): ... this.
2936 * linux-low.h (class linux_process_target): Update.
2937 * lynx-low.cc (lynx_target_ops): Update.
2938 * nto-low.cc (nto_target_ops): Update.
2939 * win32-low.cc (win32_target_ops): Update.
2940
345dafad
TBA
29412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2942
2943 Turn process_stratum_target's emit_ops op into a method of
2944 process_target.
2945
2946 * target.h (struct process_stratum_target): Remove the target op.
2947 (class process_target): Add the target op.
2948 (target_emit_ops): Update the macro.
2949 * target.cc (process_target::emit_ops): Define.
2950
2951 Update the derived classes and callers below.
2952
2953 * linux-low.cc (linux_target_ops): Update.
2954 (linux_emit_ops): Turn into ...
2955 (linux_process_target::emit_ops): ... this.
2956 * linux-low.h (class linux_process_target): Update.
2957 * lynx-low.cc (lynx_target_ops): Update.
2958 * nto-low.cc (nto_target_ops): Update.
2959 * win32-low.cc (win32_target_ops): Update.
2960
c23c9391
TBA
29612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2962
2963 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2964 and get_min_fast_tracepoint_insn_len ops into methods of
2965 process_target.
2966
2967 * target.h (struct process_stratum_target): Remove the target ops.
2968 (class process_target): Add the target ops. Also add
2969 'supports_fast_tracepoints'.
2970 (target_supports_fast_tracepoints): Update the macro.
2971 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2972 (install_fast_tracepoint_jump_pad): Update and rename the macro
2973 to ...
2974 (target_install_fast_tracepoint_jump_pad): ... this.
2975 * target.cc (process_target::supports_fast_tracepoints): Define.
2976 (process_target::install_fast_tracepoint_jump_pad): Define.
2977 (process_target::get_min_fast_tracepoint_insn_len): Define.
2978
2979 Update the derived classes and callers below.
2980
2981 * tracepoint.cc (install_fast_tracepoint): Update.
2982 * linux-low.cc (linux_target_ops): Update.
2983 (linux_process_target::supports_fast_tracepoints): Define.
2984 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2985 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2986 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2987 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2988 * linux-low.h (class linux_process_target): Update.
2989 * lynx-low.cc (lynx_target_ops): Update.
2990 * nto-low.cc (nto_target_ops): Update.
2991 * win32-low.cc (win32_target_ops): Update.
2992
5c9eb2f2
TBA
29932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2994
2995 Turn process_stratum_target's stabilize_threads op into a
2996 method of process_target.
2997
2998 * target.h (struct process_stratum_target): Remove the target op.
2999 (class process_target): Add the target op.
3000 (target_stabilize_threads): Update the macro.
3001 * target.cc (process_target::stabilize_threads): Define.
3002
3003 Update the derived classes and callers below.
3004
3005 * server.cc (handle_status): Update.
3006 * tracepoint.cc (cmd_qtdp): Update.
3007 (cmd_qtstart): Update.
3008 * linux-low.cc (linux_target_ops): Update.
3009 (linux_stabilize_threads): Turn into ...
3010 (linux_process_target::stabilize_threads): ... this.
3011 (linux_wait_1): Update.
3012 * linux-low.h (class linux_process_target): Update.
3013 * lynx-low.cc (lynx_target_ops): Update.
3014 * nto-low.cc (nto_target_ops): Update.
3015 * win32-low.cc (win32_target_ops): Update.
3016
29e8dc09
TBA
30172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3018
3019 Turn process_stratum_target's pause_all and unpause_all ops
3020 into methods of process_target.
3021
3022 * target.h (struct process_stratum_target): Remove the target ops.
3023 (class process_target): Add the target ops.
3024 (pause_all): Update the macro and rename to...
3025 (target_pause_all): ... this.
3026 (unpause_all): Update the macro and rename to...
3027 (target_unpause_all): ... this.
3028 * target.cc (process_target::pause_all): Define.
3029 (process_target::unpause_all): Define.
3030
3031 Update the derived classes and callers below.
3032
3033 * server.cc (handle_status): Update.
3034 * tracepoint.cc (clear_installed_tracepoints): Update.
3035 (cmd_qtdp): Update.
3036 (cmd_qtstart): Update.
3037 (stop_tracing): Update.
3038 (cmd_qtstatus): Update.
3039 (upload_fast_traceframes): Update.
3040 (run_inferior_command): Update.
3041 * linux-low.cc (linux_target_ops): Update.
3042 (linux_pause_all): Turn into ...
3043 (linux_process_target::pause_all): ... this.
3044 (linux_unpause_all): Turn into ...
3045 (linux_process_target::unpause_all): ... this.
3046 (linux_process_target::prepare_to_access_memory): Update.
3047 (linux_process_target::done_accessing_memory): Update.
3048 * linux-low.h (class linux_process_target): Update.
3049 * lynx-low.cc (lynx_target_ops): Update.
3050 * nto-low.cc (nto_target_ops): Update.
3051 * win32-low.cc (win32_target_ops): Update.
3052
4e2e869c
TBA
30532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3054
3055 Turn process_stratum_target's get_tib_address op into a method of
3056 process_target.
3057
3058 * target.h (struct process_stratum_target): Remove the target op.
3059 (class process_target): Add the target op. Also add
3060 'supports_get_tib_address'.
3061 * target.cc (process_target::get_tib_address): Define.
3062 (process_target::supports_get_tib_address): Define.
3063
3064 Update the derived classes and callers below.
3065
3066 * server.cc (handle_query): Update.
3067 * linux-low.cc (win32_target_ops): Update.
3068 * lynx-low.cc (lynx_target_ops): Update.
3069 * nto-low.cc (nto_target_ops): Update.
3070 * win32-low.cc (win32_target_ops): Update.
3071 (win32_process_target::supports_get_tib_address): Define.
3072 (win32_get_tib_address): Turn into ...
3073 (win32_process_target::get_tib_address): ... this.
3074 * win32-low.h (class win32_process_target): Update.
3075
68119632
TBA
30762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3077
3078 Turn process_stratum_target's thread_stopped op into a method of
3079 process_target.
3080
3081 * target.h (struct process_stratum_target): Remove the target op.
3082 (class process_target): Add the target op. Also add
3083 'supports_thread_stopped'.
3084 (target_thread_stopped): Update the macro.
3085 * target.cc (process_target::thread_stopped): Define.
3086 (process_target::supports_thread_stopped): Define.
3087 (prepare_to_access_memory): Update.
3088
3089 Update the derived classes and callers below.
3090
3091 * server.cc (queue_stop_reply_callback): Update.
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_process_target::supports_thread_stopped): Define.
3094 (linux_thread_stopped): Turn into ...
3095 (linux_process_target::thread_stopped): ... this.
3096 * linux-low.h (class linux_process_target): Update.
3097 * lynx-low.cc (lynx_target_ops): Update.
3098 * nto-low.cc (nto_target_ops): Update.
3099 * win32-low.cc (win32_target_ops): Update.
3100
770d8f6a
TBA
31012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3102
3103 Turn process_stratum_target's read_pc and write_pc ops into
3104 methods of process_target.
3105
3106 * target.h (struct process_stratum_target): Remove the target ops.
3107 (class process_target): Add the target ops.
3108 * target.cc (process_target::read_pc): Define.
3109 (process_target::write_pc): Define.
3110
3111 Update the derived classes and callers below.
3112
3113 * regcache.cc (regcache_read_pc): Update.
3114 (regcache_write_pc): Update.
3115 * linux-low.cc (linux_target_ops): Update.
3116 (linux_read_pc): Turn into ...
3117 (linux_process_target::read_pc): ... this.
3118 (linux_write_pc): Turn into ...
3119 (linux_process_target::write_pc): ... this.
3120 * linux-low.h (class linux_process_target): Update.
3121 * lynx-low.cc (lynx_target_ops): Update.
3122 * nto-low.cc (nto_target_ops): Update.
3123 * win32-low.cc (win32_target_ops): Update.
3124
290732bf
TBA
31252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3126
3127 Turn process_stratum_target's supports_tracepoints op into a
3128 method of process_target.
3129
3130 * target.h (struct process_stratum_target): Remove the target op.
3131 (class process_target): Add the target op.
3132 (target_supports_tracepoints): Update the macro.
3133 * target.cc (process_target::supports_tracepoints): Define.
3134
3135 Update the derived classes and callers below.
3136
3137 * linux-low.cc (linux_target_ops): Update.
3138 (linux_supports_tracepoints): Turn into ...
3139 (linux_process_target::supports_tracepoints): ... this.
3140 * linux-low.h (class linux_process_target): Update.
3141 * lynx-low.cc (lynx_target_ops): Update.
3142 * nto-low.cc (nto_target_ops): Update.
3143 * win32-low.cc (win32_target_ops): Update.
3144
0df28b1b
TBA
31452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3146
3147 Turn process_stratum_target's process_qsupported op into a method
3148 of process_target.
3149
3150 * target.h (struct process_stratum_target): Remove the target op.
3151 (class process_target): Add the target op.
3152 (target_process_qsupported): Update the macro.
3153 * target.cc (process_target::process_qsupported): Define.
3154
3155 Update the derived classes and callers below.
3156
3157 * linux-low.cc (linux_target_ops): Update.
3158 (linux_process_qsupported): Turn into ...
3159 (linux_process_target::process_qsupported): ... this.
3160 * linux-low.h (class linux_process_target): Update.
3161 * lynx-low.cc (lynx_target_ops): Update.
3162 * nto-low.cc (nto_target_ops): Update.
3163 * win32-low.cc (win32_target_ops): Update.
3164
9da41fda
TBA
31652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3166
3167 Turn process_stratum_target's read_loadmap op into a method of
3168 process_target.
3169
3170 * target.h (struct process_stratum_target): Remove the target op.
3171 (class process_target): Add the target op. Also add
3172 'supports_read_loadmap'.
3173 * target.cc (process_target::read_loadmap): Define.
3174 (process_target::supports_read_loadmap): Define.
3175
3176 Update the derived classes and callers below.
3177
3178 * server.cc (handle_qxfer_fdpic): Update.
3179 (handle_query): Update.
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_process_target::supports_read_loadmap): Define.
3182 (linux_read_loadmap): Turn into ...
3183 (linux_process_target::read_loadmap): ... this.
3184 * linux-low.h (class linux_process_target): Update.
3185 * lynx-low.cc (lynx_target_ops): Update.
3186 * nto-low.cc (nto_target_ops): Update.
3187 * win32-low.cc (win32_target_ops): Update.
3188
95a45fc1
TBA
31892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3190
3191 Turn process_stratum_target's core_of_thread op into a method of
3192 process_target.
3193
3194 * target.h (struct process_stratum_target): Remove the target op.
3195 (class process_target): Add the target op.
3196 (target_core_of_thread): Update the macro.
3197 * target.cc (process_target::core_of_thread): Define.
3198
3199 Update the derived classes and callers below.
3200
3201 * linux-low.cc (linux_target_ops): Update.
3202 (linux_process_target::core_of_thread): Define.
3203 * linux-low.h (class linux_process_target): Update.
3204 * lynx-low.cc (lynx_target_ops): Update.
3205 * nto-low.cc (nto_target_ops): Update.
3206 * win32-low.cc (win32_target_ops): Update.
3207
55cf3021
TBA
32082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3209
3210 Turn process_stratum_target's handle_monitor_command op into a
3211 method of process_target.
3212
3213 * target.h (struct process_stratum_target): Remove the target op.
3214 (class process_target): Add the target op.
3215 (target_handle_monitor_command): Update the macro.
3216 * target.cc (process_target::handle_monitor_command): Define.
3217
3218 Update the derived classes and callers below.
3219
3220 * server.cc (handle_query): Update.
3221 * linux-low.cc (linux_target_ops): Update.
3222 (linux_process_target::handle_monitor_command): Define.
3223 * linux-low.h (class linux_process_target): Update.
3224 * lynx-low.cc (lynx_target_ops): Update.
3225 * nto-low.cc (nto_target_ops): Update.
3226 * win32-low.cc (win32_target_ops): Update.
3227
fb00dfce
TBA
32282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3229
3230 Turn process_stratum_target's handle_new_gdb_connection op into a
3231 method of process_target.
3232
3233 * target.h (struct process_stratum_target): Remove the target op.
3234 (class process_target): Add the target op.
3235 (target_handle_new_gdb_connection): Update the macro.
3236 * target.cc (process_target::handle_new_gdb_connection): Define.
3237
3238 Update the derived classes and callers below.
3239
3240 * linux-low.cc (linux_target_ops): Update.
3241 (linux_handle_new_gdb_connection): Turn into ...
3242 (linux_process_target::handle_new_gdb_connection): ... this.
3243 * linux-low.h (class linux_process_target): Update.
3244 * lynx-low.cc (lynx_target_ops): Update.
3245 * nto-low.cc (nto_target_ops): Update.
3246 * win32-low.cc (win32_target_ops): Update.
3247
9690a72a
TBA
32482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3249
3250 Turn process_stratum_target's supports_fork_events,
3251 supports_vfork_events, and supports_exec_events ops into methods
3252 of process_target.
3253
3254 * target.h (struct process_stratum_target): Remove the target ops.
3255 (class process_target): Add the target ops.
3256 (target_supports_fork_events): Update the macro.
3257 (target_supports_vfork_events): Update the macro.
3258 (target_supports_exec_events): Update the macro.
3259 * target.cc (process_target::supports_fork_events): Define.
3260 (process_target::supports_vfork_events): Define.
3261 (process_target::supports_exec_events): Define.
3262
3263 Update the derived classes and callers below.
3264
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_supports_fork_events): Turn into ...
3267 (linux_process_target::supports_fork_events): ... this.
3268 (linux_supports_vfork_events): Turn into ...
3269 (linux_process_target::supports_vfork_events): ... this.
3270 (linux_supports_exec_events): Turn into ...
3271 (linux_process_target::supports_exec_events): ... this.
3272 * linux-low.h (class linux_process_target): Update.
3273 * lynx-low.cc (lynx_target_ops): Update.
3274 * nto-low.cc (nto_target_ops): Update.
3275 * win32-low.cc (win32_target_ops): Update.
3276
652aef77
TBA
32772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3278
3279 Turn process_stratum_target's supports_multi_process op into a
3280 method of process_target.
3281
3282 * target.h (struct process_stratum_target): Remove the target op.
3283 (class process_target): Add the target op.
3284 * target.cc (process_target::supports_multi_process): Define.
3285 (target_supports_multi_process): Update.
3286
3287 Update the derived classes and callers below.
3288
3289 * linux-low.cc (linux_target_ops): Update.
3290 (linux_supports_multi_process): Turn into ...
3291 (linux_process_target::supports_multi_process): ... this.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 * nto-low.cc (nto_target_ops): Update.
3295 * win32-low.cc (win32_target_ops): Update.
3296
0dc587d4
TBA
32972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3298
3299 Turn process_stratum_target's supports_non_stop, async, and
3300 start_non_stop ops into methods of process_target.
3301
3302 * target.h (struct process_stratum_target): Remove the target ops.
3303 (class process_target): Add the target ops.
3304 (target_supports_non_stop): Update the macro.
3305 (target_async): Update the macro.
3306 (start_non_stop): Remove declaration.
3307 * target.cc (process_target::supports_non_stop): Define.
3308 (process_target::async): Define.
3309 (process_target::start_non_stop): Define.
3310 (start_non_stop): Remove.
3311
3312 Update the derived classes and callers below.
3313
3314 * server.cc (handle_qxfer_siginfo): Update.
3315 (handle_query): Update.
3316 * linux-low.cc (linux_target_ops): Update.
3317 (linux_supports_non_stop): Turn into ...
3318 (linux_process_target::supports_non_stop): ... this.
3319 (linux_async): Turn into ...
3320 (linux_process_target::async): ... this.
3321 (linux_start_non_stop): Turn into ...
3322 (linux_process_target::start_non_stop): ... this.
3323 * linux-low.h (class linux_process_target): Update.
3324 * lynx-low.cc (lynx_target_ops): Update.
3325 * nto-low.cc (nto_target_ops): Update.
3326 (nto_supports_non_stop): Remove; rely on the default behavior
3327 instead.
3328 * win32-low.cc (win32_target_ops): Update.
3329
d7abedf7
TBA
33302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331
3332 Turn process_stratum_target's qxfer_siginfo op into a method of
3333 process_target.
3334
3335 * target.h (struct process_stratum_target): Remove the target op.
3336 (class process_target): Add the target op. Also add
3337 'supports_qxfer_siginfo'.
3338 * target.cc (process_target::qxfer_siginfo): Define.
3339 (process_target::supports_qxfer_siginfo): Define.
3340
3341 Update the derived classes and callers below.
3342
3343 * server.cc (handle_qxfer_siginfo): Update.
3344 (handle_query): Update.
3345 * linux-low.cc (linux_target_ops): Update.
3346 (linux_process_target::supports_qxfer_siginfo): Define.
3347 (linux_xfer_siginfo): Turn into ...
3348 (linux_process_target::qxfer_siginfo): ... this.
3349 * linux-low.h (class linux_process_target): Update.
3350 * lynx-low.cc (lynx_target_ops): Update.
3351 * nto-low.cc (nto_target_ops): Update.
3352 * win32-low.cc (win32_target_ops): Update.
3353
2d0795ee
TBA
33542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3355
3356 Turn process_stratum_target's qxfer_osdata op into a method of
3357 process_target.
3358
3359 * target.h (struct process_stratum_target): Remove the target op.
3360 (class process_target): Add the target op. Also add
3361 'supports_qxfer_osdata'.
3362 * target.cc (process_target::qxfer_osdata): Define.
3363 (process_target::supports_qxfer_osdata): Define.
3364
3365 Update the derived classes and callers below.
3366
3367 * server.cc (handle_qxfer_osdata): Update.
3368 (handle_query): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_process_target::supports_qxfer_osdata): Define.
3371 (linux_qxfer_osdata): Turn into ...
3372 (linux_process_target::qxfer_osdata): ... this.
3373 * linux-low.h (class linux_process_target): Update.
3374 * lynx-low.cc (lynx_target_ops): Update.
3375 * nto-low.cc (nto_target_ops): Update.
3376 * win32-low.cc (win32_target_ops): Update.
3377
ea06bbaa
TBA
33782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3379
3380 Turn process_stratum_target's hostio_last_error op into a
3381 method of process_target.
3382
3383 * target.h (struct process_stratum_target): Remove the target op.
3384 (class process_target): Add the target op.
3385 * target.cc: Add "hostio.h" to includes.
3386 (process_target::hostio_last_error): Define.
3387
3388 Update the derived classes and callers below.
3389
3390 * hostio.cc (hostio_error): Update.
3391 * linux-low.cc: Remove "hostio.h" from includes.
3392 (linux_target_ops): Update.
3393 * lynx-low.cc (lynx_target_ops): Update.
3394 * nto-low.cc (nto_target_ops): Update.
3395 * win32-low.h (class win32_process_target): Update.
3396 * win32-low.cc (win32_target_ops): Update.
3397 (wince_hostio_last_error): Turn into ...
3398 (win32_process_target::hostio_last_error): ... this.
3399
6e3fd7e9
TBA
34002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3401
3402 Turn process_stratum_target's get_tls_address op into a method of
3403 process_target.
3404
3405 * target.h (struct process_stratum_target): Remove the target op.
3406 (class process_target): Add the target op. Also add
3407 'supports_get_tls_address'.
3408 * target.cc (process_target::get_tls_address): Define.
3409 (process_target::supports_get_tls_address): Define.
3410
3411 Update the derived classes and callers below.
3412
3413 * server.cc (handle_query): Update.
3414 * linux-low.cc (linux_target_ops): Update.
3415 (linux_process_target::supports_get_tls_address): Define.
3416 (linux_process_target::get_tls_address): Define.
3417 * linux-low.h (class linux_process_target): Update.
3418 * lynx-low.cc (lynx_target_ops): Update.
3419 * nto-low.cc (nto_target_ops): Update.
3420 * win32-low.cc (win32_target_ops): Update.
3421
5203ae1e
TBA
34222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3423
3424 Turn process_stratum_target's read_offsets op into a method of
3425 process_target.
3426
3427 * target.h (struct process_stratum_target): Remove the target op.
3428 (class process_target): Add the target op. Also add
3429 'supports_read_offsets'.
3430 * target.cc (process_target::read_offsets): Define.
3431 (process_target::supports_read_offsets): Define.
3432
3433 Update the derived classes and callers below.
3434
3435 * server.cc (handle_query): Update.
3436 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3437 (linux_target_ops): Update.
3438 (linux_process_target::supports_read_offsets): Define.
3439 (linux_read_offsets): Turn into ...
3440 (linux_process_target::read_offsets): ... this.
3441 * linux-low.h (class linux_process_target): Update.
3442 * lynx-low.cc (lynx_target_ops): Update.
3443 * nto-low.cc (nto_target_ops): Update.
3444 * win32-low.cc (win32_target_ops): Update.
3445
6eeb5c55
TBA
34462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3447
3448 Turn process_stratum_target's stopped_by_watchpoint and
3449 stopped_data_address ops into methods of process_target.
3450
3451 * target.h (struct process_stratum_target): Remove the target ops.
3452 (class process_target): Add the target ops.
3453 * target.cc (process_target::stopped_by_watchpoint): Define.
3454 (process_target::stopped_data_address): Define.
3455
3456 Update the derived classes and callers below.
3457
3458 * remote-utils.cc (prepare_resume_reply): Update.
3459 * linux-low.cc (linux_target_ops): Update.
3460 (linux_stopped_by_watchpoint): Turn into ...
3461 (linux_process_target::stopped_by_watchpoint): ... this.
3462 (linux_stopped_data_address): Turn into ...
3463 (linux_process_target::stopped_data_address): ... this.
3464 * linux-low.h (class linux_process_target): Update.
3465 * lynx-low.cc (lynx_target_ops): Update.
3466 * nto-low.cc (nto_target_ops): Update.
3467 (nto_stopped_by_watchpoint): Turn into ...
3468 (nto_process_target::stopped_by_watchpoint): ... this.
3469 (nto_stopped_data_address): Turn into ...
3470 (nto_process_target::stopped_data_address): ... this.
3471 * nto-low.h (class nto_process_target): Update.
3472 * win32-low.cc (win32_target_ops): Update.
3473 (win32_stopped_by_watchpoint): Turn into ...
3474 (win32_process_target::stopped_by_watchpoint): ... this.
3475 (win32_stopped_data_address): Turn into ...
3476 (win32_process_target::stopped_data_address): ... this.
3477 * win32-low.h (class win32_process_target): Update.
3478
22aa6223
TBA
34792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3480
3481 Turn process_stratum_target's supports_hardware_single_step op into
3482 a method of process_target.
3483
3484 * target.h (struct process_stratum_target): Remove the target op.
3485 (class process_target): Add the target op.
3486 (target_supports_hardware_single_step): Update the macro.
3487 (target_can_do_hardware_single_step): Remove declaration.
3488 * target.cc (process_target::supports_hardware_single_step): Define.
3489 (target_can_do_hardware_single_step): Remove.
3490
3491 Update the derived classes and callers below.
3492
3493 * linux-low.h (class linux_process_target): Update.
3494 * linux-low.cc (linux_target_ops): Update.
3495 (linux_supports_hardware_single_step): Turn into ...
3496 (linux_process_target::supports_hardware_single_step): ... this.
3497 * lynx-low.h (class lynx_process_target): Update.
3498 * lynx-low.cc (lynx_target_ops): Update.
3499 (lynx_process_target::supports_hardware_single_step): Define.
3500 * nto-low.h (class nto_process_target): Update.
3501 * nto-low.cc (nto_target_ops): Update.
3502 (nto_process_target::supports_hardware_single_step): Define.
3503 * win32-low.h (class win32_process_target): Update.
3504 * win32-low.cc (win32_target_ops): Update.
3505 (win32_process_target::supports_hardware_single_step): Define.
3506
93fe88b2
TBA
35072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3508
3509 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3510 ops into methods of process_target.
3511
3512 * target.h (struct process_stratum_target): Remove the target ops.
3513 (class process_target): Add the target ops.
3514 (target_stopped_by_hw_breakpoint): Update the macro.
3515 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3516 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3517 (process_target::supports_stopped_by_hw_breakpoint): Define.
3518
3519 Update the derived classes and callers below.
3520
3521 * linux-low.cc (linux_target_ops): Update.
3522 (linux_stopped_by_hw_breakpoint): Turn into ...
3523 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3524 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3525 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3526 * linux-low.h (class linux_process_target): Update.
3527 * lynx-low.cc (lynx_target_ops): Update.
3528 * nto-low.cc (nto_target_ops): Update.
3529 * win32-low.cc (win32_target_ops): Update.
3530
84320c4e
TBA
35312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3532
3533 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3534 ops into methods of process_target.
3535
3536 * target.h (struct process_stratum_target): Remove the target ops.
3537 (class process_target): Add the target ops.
3538 (target_stopped_by_sw_breakpoint): Update the macro.
3539 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3540 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3541 (process_target::supports_stopped_by_sw_breakpoint): Define.
3542
3543 Update the derived classes and callers below.
3544
3545 * linux-low.cc (linux_target_ops): Update.
3546 (linux_stopped_by_sw_breakpoint): Turn into ...
3547 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3548 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3549 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3550 * linux-low.h (class linux_process_target): Update.
3551 * lynx-low.cc (lynx_target_ops): Update.
3552 * nto-low.cc (nto_target_ops): Update.
3553 * win32-low.cc (win32_target_ops): Update.
3554
7e0bde70
TBA
35552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556
3557 Turn process_stratum_target's insert_point and remove_point ops
3558 into methods of process_target.
3559
3560 * target.h (struct process_stratum_target): Remove the target ops.
3561 (class process_target): Add the target ops.
3562 * target.cc (process_target::insert_point): Define.
3563 (process_target::remove_point): Define.
3564
3565 Update the derived classes and callers below.
3566
3567 * mem-break.cc (set_raw_breakpoint_at): Update.
3568 (delete_raw_breakpoint): Update.
3569 (uninsert_raw_breakpoint): Update.
3570 (reinsert_raw_breakpoint): Update.
3571 * linux-low.cc (linux_target_ops): Update.
3572 (linux_insert_point): Turn into ...
3573 (linux_process_target::insert_point): ... this.
3574 (linux_remove_point): Turn into ...
3575 (linux_process_target::remove_point): ... this.
3576 * linux-low.h (class linux_process_target): Update.
3577 * lynx-low.cc (lynx_target_ops): Update.
3578 * nto-low.cc (nto_target_ops): Update.
3579 (nto_insert_point): Turn into ...
3580 (nto_process_target::insert_point): ... this.
3581 (nto_remove_point): Turn into ...
3582 (nto_process_target::remove_point): ... this.
3583 * nto-low.h (class nto_process_target): Update.
3584 * win32-low.cc (win32_target_ops): Update.
3585 (win32_insert_point): Turn into ...
3586 (win32_process_target::insert_point): ... this.
3587 (win32_remove_point): Turn into ...
3588 (win32_process_target::remove_point): ... this.
3589 * win32-low.h (class win32_process_target): Update.
3590
a2b2297a
TBA
35912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3592
3593 Turn process_stratum_target's supports_z_point_type op into a
3594 method of process_target.
3595
3596 * target.h (struct process_stratum_target): Remove the target op.
3597 (class process_target): Add the target op.
3598 * target.cc (process_target::supports_z_point_type): Define.
3599
3600 Update the derived classes and callers below.
3601
3602 * mem-break.cc (z_type_supported): Update.
3603 * linux-low.cc (linux_target_ops): Update.
3604 (linux_supports_z_point_type): Turn into ...
3605 (linux_process_target::supports_z_point_type): ... this.
3606 * linux-low.h (class linux_process_target): Update.
3607 * lynx-low.cc (lynx_target_ops): Update.
3608 * nto-low.cc (nto_target_ops): Update.
3609 (nto_supports_z_point_type): Turn into ...
3610 (nto_process_target::supports_z_point_type): ... this.
3611 * nto-low.h (class nto_process_target): Update.
3612 * win32-low.cc (win32_target_ops): Update.
3613 (win32_supports_z_point_type): Turn into ...
3614 (win32_process_target::supports_z_point_type): ... this.
3615 * win32-low.h (class win32_process_target): Update.
3616
eac215cc
TBA
36172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3618
3619 Turn process_stratum_target's read_auxv op into a method of
3620 process_target.
3621
3622 * target.h (class process_stratum_target): Remove the target op.
3623 (struct process_target): Add the target op. Also add
3624 'supports_read_auxv'.
3625 * target.cc (process_target::read_auxv): Define.
3626 (process_target::supports_read_auxv): Define.
3627
3628 Update the derived classes and callers below.
3629
3630 * server.cc (handle_qxfer_auxv): Update.
3631 (handle_query): Update.
3632 * linux-low.cc (linux_target_ops): Update.
3633 (linux_process_target::supports_read_auxv): Define.
3634 (linux_read_auxv): Turn into ...
3635 (linux_process_target::read_auxv): ... this.
3636 * linux-low.h (class linux_process_target): Update.
3637 * lynx-low.cc (lynx_target_ops): Update.
3638 * nto-low.cc (nto_target_ops): Update.
3639 (nto_process_target::supports_read_auxv): Define.
3640 (nto_read_auxv): Turn into ...
3641 (nto_process_target::read_auxv): ... this.
3642 * nto-low.h (class nto_process_target): Update.
3643 * win32-low.cc (win32_target_ops): Update.
3644
eb497a2a
TBA
36452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3646
3647 Turn process_stratum_target's request_interrupt op into a method of
3648 process_target.
3649
3650 * target.h (struct process_stratum_target): Remove the target op.
3651 (class process_target): Add the target op.
3652
3653 Update the derived classes and callers below.
3654
3655 * remote-utils.cc (putpkt_binary_1): Update.
3656 (input_interrupt): Update.
3657 (getpkt): Update.
3658 * server.cc (handle_v_requests): Update.
3659 * linux-low.cc (linux_target_ops): Update.
3660 (linux_request_interrupt): Turn into ...
3661 (linux_process_target::request_interrupt): ... this.
3662 * linux-low.h (class linux_process_target): Update.
3663 * lynx-low.cc (lynx_target_ops): Update.
3664 (lynx_request_interrupt): Turn into ...
3665 (lynx_process_target::request_interrupt): ... this.
3666 * lynx-low.h (class lynx_process_target): Update.
3667 * nto-low.cc (nto_target_ops): Update.
3668 (nto_request_interrupt): Turn into ...
3669 (nto_process_target::request_interrupt): ... this.
3670 * nto-low.h (class nto_process_target): Update.
3671 * win32-low.cc (win32_target_ops): Update.
3672 (win32_request_interrupt): Turn into ...
3673 (win32_process_target::request_interrupt): ... this.
3674 * win32-low.h (class win32_process_target): Update.
3675
2a31c7aa
TBA
36762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3677
3678 Turn process_stratum_target's look_up_symbols op into a method of
3679 process_target.
3680
3681 * target.h (struct process_stratum_target): Remove the target op.
3682 (class process_target): Add the target op.
3683 * target.cc (process_target::look_up_symbols): Define.
3684
3685 Update the derived classes and callers below.
3686
3687 * server.cc (handle_query): Update.
3688 * linux-low.cc (linux_target_ops): Update.
3689 (linux_look_up_symbols): Turn into ...
3690 (linux_process_target::look_up_symbols): ... this.
3691 * linux-low.h (class linux_process_target): Update.
3692 * lynx-low.cc (lynx_target_ops): Update.
3693 * nto-low.cc (nto_target_ops): Update.
3694 * win32-low.cc (win32_target_ops): Update.
3695
e2558df3
TBA
36962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3697
3698 Turn process_stratum_target's read_memory and write_memory
3699 ops into methods of process_target.
3700
3701 * target.h (struct process_stratum_target): Remove the target ops.
3702 (class process_target): Add the target ops.
3703
3704 Update the derived classes and callers below.
3705
3706 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3707 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3708 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3709 (arm_get_syscall_trapinfo): Update.
3710 * linux-cris-low.cc (cris_breakpoint_at): Update.
3711 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3712 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3713 * linux-mips-low.cc (mips_breakpoint_at): Update.
3714 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3715 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3716 * linux-sh-low.cc (sh_breakpoint_at): Update.
3717 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3718 (sparc_store_gregset_from_stack): Update.
3719 (sparc_breakpoint_at): Update.
3720 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3721 * linux-tile-low.cc (tile_breakpoint_at): Update.
3722 * linux-x86-low.cc (x86_breakpoint_at): Update.
3723 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3724 * mem-brea.cc (insert_memory_breakpoint): Update.
3725 (validate_inserted_breakpoint): Update.
3726 * target.cc (read_inferior_memory): Update.
3727 (target_write_memory): Update.
3728 * linux-low.cc (linux_target_ops): Update.
3729 (linux_read_memory): Make a wrapper around the read_memory target
3730 op call.
3731 (linux_process_target::read_memory): Rename from linux_read_memory.
3732 (linux_write_memory): Turn into ...
3733 (linux_process_target::write_memory): ... this.
3734 * linux-low.h (class linux_process_target): Update.
3735 * lynx-low.cc (lynx_target_ops): Update.
3736 (lynx_read_memory): Turn into ...
3737 (lynx_process_target::read_memory): ... this.
3738 (lynx_write_memory): Turn into ...
3739 (lynx_process_target::write_memory): ... this.
3740 * lynx-low.h (class lynx_process_target): Update.
3741 * nto-low.cc (nto_target_ops): Update.
3742 (nto_read_memory): Turn into ...
3743 (nto_process_target::read_memory): ... this.
3744 (nto_write_memory): Turn into ...
3745 (nto_process_target::write_memory): ... this.
3746 * nto-low.h (class nto_process_target): Update.
3747 * win32-low.cc (win32_target_ops): Update.
3748 (win32_read_inferior_memory): Turn into ...
3749 (win32_process_target::read_memory): ... this.
3750 (win32_write_inferior_memory): Turn into ...
3751 (win32_process_target::write_memory): ... this.
3752 * win32-low.h (class win32_process_target): Update.
3753
79b44087
TBA
37542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3755
3756 Turn process_stratum_target's prepare_to_access_memory and
3757 done_accessing_memory ops into methods of process_target.
3758
3759 * target.h (struct process_stratum_target): Remove the target ops.
3760 (class process_target): Add the target ops.
3761 * target.cc (process_target::prepare_to_access_memory): Define.
3762 (process_target::done_accessing_memory): Define.
3763 (prepare_to_access_memory): Update.
3764 (done_accessing_memory): Update.
3765
3766 Update the derived classes and callers below.
3767
3768 * linux-low.cc (linux_target_ops): Update.
3769 (linux_prepare_to_access_memory): Turn into ...
3770 (linux_process_target::prepare_to_access_memory): ... this.
3771 (linux_done_accessing_memory): Turn into ...
3772 (linux_process_target::done_accessing_memory): ... this.
3773 * linux-low.h (class linux_process_target): Update.
3774 * lynx-low.cc (lynx_target_ops): Update.
3775 * nto-low.cc (nto_target_ops): Update.
3776 * win32-low.cc (win32_target_ops): Update.
3777
a5a4d4cd
TBA
37782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3779
3780 Turn process_stratum_target's fetch_registers and store_registers
3781 ops into methods of process_target.
3782
3783 * target.h (struct process_stratum_target): Remove the target ops.
3784 (class process_target): Add the target ops.
3785 (fetch_inferior_registers): Update the macro.
3786 (store_inferior_registers): Update the macro.
3787
3788 Update the derived classes and callers below.
3789
3790 * linux-low.cc (linux_target_ops): Update.
3791 (linux_fetch_registers): Turn into ...
3792 (linux_process_target::fetch_registers): ... this.
3793 (linux_store_registers): Turn into ...
3794 (linux_process_target::store_registers): ... this.
3795 * linux-low.h (class linux_process_target): Update.
3796 * lynx-low.cc (lynx_target_ops): Update.
3797 (lynx_fetch_registers): Turn into ...
3798 (lynx_process_target::fetch_registers): ... this.
3799 (lynx_store_registers): Turn into ...
3800 (lynx_process_target::store_registers): ... this.
3801 * lynx-low.h (class lynx_process_target): Update.
3802 * nto-low.cc (nto_target_ops): Update.
3803 (nto_fetch_registers): Turn into ...
3804 (nto_process_target::fetch_registers): ... this.
3805 (nto_store_registers): Turn into ...
3806 (nto_process_target::store_registers): ... this.
3807 * nto-low.h (class nto_process_target): Update.
3808 * win32-low.cc (win32_target_ops): Update.
3809 (win32_fetch_inferior_registers): Turn into ...
3810 (win32_process_target::fetch_registers): ... this.
3811 (win32_store_inferior_registers): Turn into ...
3812 (win32_process_target::store_registers): ... this.
3813 * win32-low.h (class win32_process_target): Update.
3814
6532e7e3
TBA
38152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3816
3817 Turn process_stratum_target's wait op into a method of
3818 process_target.
3819
3820 * target.h (struct process_stratum_target): Remove the target op.
3821 (class process_target): Add the target op.
3822
3823 Update the derived classes and callers below.
3824
3825 * target.cc (target_wait): Update.
3826 * linux-low.cc (linux_target_ops): Update.
3827 (linux_wait): Turn into ...
3828 (linux_process_target::wait): ... this.
3829 * linux-low.h (class linux_process_target): Update.
3830 * lynx-low.cc (lynx_target_ops): Update.
3831 (lynx_wait): Turn into ...
3832 (lynx_process_target::wait): ... this.
3833 * lynx-low.h (class lynx_process_target): Update.
3834 * nto-low.cc (nto_target_ops): Update.
3835 (nto_wait): Turn into ...
3836 (nto_process_target::wait): ... this.
3837 * nto-low.h (class nto_process_target): Update.
3838 * win32-low.cc (win32_target_ops): Update.
3839 (win32_wait): Turn into ...
3840 (win32_process_target::wait): ... this.
3841 (do_initial_child_stuff): Update.
3842 * win32-low.h (class win32_process_target): Update.
3843
0e4d7e35
TBA
38442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3845
3846 Turn process_stratum_target's resume op into a method of
3847 process_target.
3848
3849 * target.h (struct process_stratum_target): Remove the target op.
3850 (class process_target): Add the target op.
3851
3852 Update the derived classes and callers below.
3853
3854 * server.cc (resume): Update.
3855 * target.cc (target_stop_and_wait): Update.
3856 (target_continue_no_signal): Update.
3857 (target_continue): Update.
3858 * linux-low.cc (linux_target_ops): Update.
3859 (linux_resume): Turn into ...
3860 (linux_process_target::resume): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_resume): Turn into ...
3864 (lynx_process_target::resume): ... this.
3865 * lynx-low.h (class lynx_process_target): Update.
3866 * nto-low.cc (nto_target_ops): Update.
3867 (nto_resume): Turn into ...
3868 (nto_process_target::resume): ... this.
3869 * nto-low.h (class nto_process_target): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3871 (win32_resume): Turn into ...
3872 (win32_process_target::resume): ... this.
3873 (win32_process_target::detach): Update.
3874 (do_initial_child_stuff): Update.
3875 * win32-low.h (class win32_process_target): Update.
3876
13d3d99b
TBA
38772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3878
3879 Turn process_stratum_target's thread_alive op into a method of
3880 process_target.
3881
3882 * target.h (struct process_stratum_target): Remove the target op.
3883 (class process_target): Add the target op.
3884 (mythread_alive): Update the macro.
3885
3886 Update the derived classes and callers below.
3887
3888 * linux-low.cc (linux_target_ops): Update.
3889 (linux_thread_alive): Turn into ...
3890 (linux_process_target::thread_alive): ... this.
3891 (wait_for_sigstop): Update.
3892 * linux-low.h (class linux_process_target): Update.
3893 * lynx-low.cc (lynx_target_ops): Update.
3894 (lynx_thread_alive): Turn into ...
3895 (lynx_process_target::thread_alive): ... this.
3896 * lynx-low.h (class lynx_process_target): Update.
3897 * nto-low.cc (nto_target_ops): Update.
3898 (nto_thread_alive): Turn into ...
3899 (nto_process_target::thread_alive): ... this.
3900 * nto-low.h (class nto_process_target): Update.
3901 * win32-low.cc (win32_target_ops): Update.
3902 (win32_thread_alive): Turn into ...
3903 (win32_process_target::thread_alive): ... this.
3904 * win32-low.h (class win32_process_target): Update.
3905
95a49a39
TBA
39062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3907
3908 Turn process_stratum_target's join op into a method of
3909 process_target.
3910
3911 * target.h (struct process_stratum_target): Remove the target op.
3912 (class process_target): Add the target op.
3913 (join_inferior): Update the macro.
3914
3915 Update the derived classes and callers below.
3916
3917 * linux-low.cc (linux_target_ops): Update.
3918 (linux_join): Turn into ...
3919 (linux_process_target::join): ... this.
3920 * linux-low.h (class linux_process_target): Update.
3921 * lynx-low.cc (lynx_target_ops): Update.
3922 (lynx_join): Turn into ...
3923 (lynx_process_target::join): ... this.
3924 * lynx-low.h (class lynx_process_target): Update.
3925 * nto-low.cc (nto_target_ops): Update.
3926 (nto_process_target::join): Define.
3927 * nto-low.h (class nto_process_target): Update.
3928 * win32-low.cc (win32_target_ops): Update.
3929 (win32_join): Turn into ...
3930 (win32_process_target::join): ... this.
3931 * win32-low.h (class win32_process_target): Update.
3932
8adb37b9
TBA
39332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3934
3935 Turn process_stratum_target's mourn op into a method of
3936 process_target.
3937
3938 * target.h (struct process_stratum_target): Remove the target op.
3939 (class process_target): Add the target op.
3940
3941 Update the derived classes and callers below.
3942
3943 * target.cc (target_mourn_inferior): Update.
3944 * linux-low.cc (linux_target_ops): Update.
3945 (linux_mourn): Turn into ...
3946 (linux_process_target::mourn): ... this.
3947 (handle_extended_wait): Update.
3948 (linux_process_target::kill): Update.
3949 (linux_process_target::detach): Update.
3950 * linux-low.h (class linux_process_target): Update.
3951 * lynx-low.cc (lynx_target_ops): Update.
3952 (lynx_mourn): Turn into ...
3953 (lynx_process_target::mourn): ... this.
3954 * lynx-low.h (class lynx_process_target): Update.
3955 * nto-low.cc (nto_target_ops): Update.
3956 (nto_mourn): Turn into ...
3957 (nto_process_target::mourn): ... this.
3958 * nto-low.h (class nto_process_target): Update.
3959 * win32-low.cc (win32_target_ops): Update.
3960 (win32_mourn): Turn into ...
3961 (win32_process_target::mourn): ... this.
3962 * win32-low.h (class win32_process_target): Update.
3963
9061c9cf
TBA
39642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3965
3966 Turn process_stratum_target's detach op into a method of
3967 process_target.
3968
3969 * target.h (struct process_stratum_target): Remove the target op.
3970 (class process_target): Add the target op.
3971 (detach_inferior): Update the macro.
3972
3973 Update the derived classes and callers below.
3974
3975 * linux-low.cc (linux_target_ops): Update.
3976 (linux_detach): Turn into ...
3977 (linux_process_target::detach): ... this.
3978 * linux-low.h (class linux_process_target): Update.
3979 * lynx-low.cc (lynx_target_ops): Update.
3980 (lynx_detach): Turn into ...
3981 (lynx_process_target::detach): ... this.
3982 * lynx-low.h (class lynx_process_target): Update.
3983 * nto-low.cc (nto_target_ops): Update.
3984 (nto_detach): Turn into ...
3985 (nto_process_target::detach): ... this.
3986 * nto-low.h (class nto_process_target): Update.
3987 * win32-low.cc (win32_target_ops): Update.
3988 (win32_detach): Turn into ...
3989 (win32_process_target::detach): ... this.
3990 * win32-low.h (class win32_process_target): Update.
3991
c6885a57
TBA
39922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3993
3994 Turn process_stratum_target's kill op into a method of
3995 process_target.
3996
3997 * target.h (struct process_stratum_target): Remove the target op.
3998 (class process_target): Add the target op.
3999
4000 Update the derived classes and callers below.
4001
4002 * target.cc (kill_inferior): Update.
4003 * linux-low.cc (linux_target_ops): Update.
4004 (linux_kill): Turn into ...
4005 (linux_process_target::kill): ... this.
4006 * linux-low.h (class linux_process_target): Update.
4007 * lynx-low.cc (lynx_target_ops): Update.
4008 (lynx_kill): Turn into ...
4009 (lynx_process_target::kill): ... this.
4010 * lynx-low.h (class lynx_process_target): Update.
4011 * nto-low.cc (nto_target_ops): Update.
4012 (nto_kill): Turn into ...
4013 (nto_process_target::kill): ... this.
4014 * nto-low.h (class nto_process_target): Update.
4015 * win32-low.cc (win32_target_ops): Update.
4016 (win32_kill): Turn into ...
4017 (win32_process_target::kill): ... this.
4018 * win32-low.h (class win32_process_target): Update.
4019
ef03dad8
TBA
40202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4021
4022 Turn process_stratum_target's attach op into a method of
4023 process_target.
4024
4025 * target.h (struct process_stratum_target): Remove the target op.
4026 (class process_target): Add the target op.
4027 (myattach): Update the macro.
4028
4029 Update the derived classes and callers below.
4030
4031 * linux-low.cc (linux_target_ops): Update.
4032 (linux_attach): Turn into ...
4033 (linux_process_target::attach): ... this.
4034 * linux-low.h (class linux_process_target): Update.
4035 * lynx-low.cc (lynx_target_ops): Update.
4036 (lynx_attach): Turn into ...
4037 (lynx_process_target::attach): ... this.
4038 * lynx-low.h (class lynx_process_target): Update.
4039 * nto-low.cc (nto_target_ops): Update.
4040 (nto_attach): Turn into ...
4041 (nto_process_target::attach): ... this.
4042 * nto-low.h (class nto_process_target): Update.
4043 * win32-low.cc (win32_target_ops): Update.
4044 (win32_attach): Turn into ...
4045 (win32_process_target::attach): ... this.
4046 * win32-low.h (class win32_process_target): Update.
4047
6dee9afb
TBA
40482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4049
4050 Turn process_stratum_target's post_create_inferior op into a method
4051 of process_target.
4052
4053 * target.h (struct process_stratum_target): Remove the target op.
4054 (class process_target): Add the target op.
4055 (target_post_create_inferior): Update the macro.
4056 * target.cc (process_target::post_create_inferior): Define.
4057
4058 Update the derived classes and callers below.
4059
4060 * linux-low.cc (linux_target_ops): Update.
4061 (linux_post_create_inferior): Turn into ...
4062 (linux_process_target::post_create_inferior): ... this.
4063 * linux-low.h (class linux_process_target): Update.
4064 * lynx-low.cc (lynx_target_ops): Update.
4065 * nto-low.cc (nto_target_ops): Update.
4066 * win32-low.cc (win32_target_ops): Update.
4067
15295543
TBA
40682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4069
4070 Turn process_stratum_target's create_inferior op into a method of
4071 process_target.
4072
4073 * target.h (struct process_stratum_target): Remove the target op.
4074 (class process_target): Add the target op.
4075 (create_inferior): Rename the macro to ...
4076 (target_create_inferior): ... this.
4077
4078 Update the derived classes and callers below.
4079
4080 * server.cc (handle_v_run): Update.
4081 (captured_main): Update.
4082 (process_serial_event): Update.
4083 * linux-low.cc (linux_target_ops): Update.
4084 (linux_create_inferior): Turn into ...
4085 (linux_process_target::create_inferior): ... this.
4086 * linux-low.h (class linux_process_target): Update.
4087 * lynx-low.cc (lynx_target_ops): Update.
4088 (lynx_create_inferior): Turn into ...
4089 (lynx_process_target::create_inferior): ... this.
4090 * lynx-low.h (class lynx_process_target): Update.
4091 * nto-low.cc (nto_target_ops): Update.
4092 (nto_create_inferior): Turn into ...
4093 (nto_process_target::create_inferior): ... this.
4094 * nto-low.h (class nto_process_target): Update.
4095 * win32-low.cc (win32_target_ops): Update.
4096 (win32_create_inferior): Turn into ...
4097 (win32_process_target::create_inferior): ... this.
4098 * win32-low.h (class win32_process_target): Update.
4099
5ef9273d
TBA
41002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4101
4102 * target.h (class process_target): New class definition.
4103 (struct process_stratum_target) <pt>: New field with type
4104 'process_target*'.
4105 * linux-low.h (class linux_process_target): Define as a derived
4106 class of 'process_target'.
4107 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4108 as the 'pt' field.
4109 * lynx-low.h (class lynx_process_target): Define as a derived
4110 class of 'process_target'.
4111 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4112 as the 'pt' field.
4113 * nto-low.h (class nto_process_target): Define as a derived
4114 class of 'process_target'.
4115 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4116 as the 'pt' field.
4117 * win32-low.h (class win32_process_target): Define as a derived
4118 class of 'process_target'.
4119 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4120 as the 'pt' field.
4121
9f1528a1
AB
41222020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * configure: Regenerate.
4125
bf84f706
MR
41262020-02-19 Maciej W. Rozycki <macro@wdc.com>
4127 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * linux-riscv-low.cc: New file.
4130 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4131 and nat/riscv-linux-tdesc.c.
4132 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4133 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4134 Define.
4135
1a627e7e
TT
41362020-02-14 Tom Tromey <tom@tromey.com>
4137
4138 * acinclude.m4: Don't include acx_configure_dir.m4.
4139 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4140 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4141 (all, install-only, uninstall, clean-info, clean)
4142 (maintainer-clean): Don't recurse.
4143 (subdir_do, all-lib): Remove.
4144 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4145 (GNULIB_H): Remove.
4146 (generated_files): Update.
4147 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4148 * configure: Rebuild.
4149 * configure.ac: Don't configure gnulib or libiberty.
4150 (GNULIB): Update.
4151
a9b34532
EZ
41522020-02-14 Eli Zaretskii <eliz@gnu.org>
4153
4154 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4155 preparing the command line for CreateProcess.
4156 (win32_create_inferior): Reflect the program name in debugging
4157 output that shows the process and its command line.
4158
feacfcac
SM
41592020-02-13 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * Makefile.in: Rename source files from .c to .cc.
4162 * %.c: Rename to %.cc.
4163 * configure.ac: Rename server.c to server.cc.
4164 * configure: Re-generate.
4165
06b3c5bd
SM
41662020-02-13 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4169
052793ad
HD
41702020-02-12 Hannes Domani <ssbssa@yahoo.de>
4171
4172 * win32-low.c (win32_create_inferior): Set signal_pid.
4173
f20e3e82
MR
41742020-02-12 Maciej W. Rozycki <macro@wdc.com>
4175 Pedro Alves <palves@redhat.com>
4176
4177 Skip building gdbserver in a cross-configuration.
4178 * configure.srv: Set $gdbserver_host depending on whether $target
4179 is $host. Use $gdbserver_host instead of $host.
4180
8ddd8e0e
SM
41812020-02-11 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * configure: Re-generate.
4184
898e7f60
SM
41852020-02-11 Simon Marchi <simon.marchi@efficios.com>
4186
4187 * configure: Re-generate.
4188
58df732b
SM
41892020-02-11 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * acinclude.m4: Update warning.m4 path.
4192
7928d571
HD
41932020-02-09 Hannes Domani <ssbssa@yahoo.de>
4194
4195 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4196 (handle_exception): Set siginfo_er.
4197 (win32_xfer_siginfo): New function.
4198
919adfe8
TT
41992020-02-07 Tom Tromey <tom@tromey.com>
4200 Pedro Alves <palves@redhat.com>
4201
4202 * README: Update build documentation.
4203 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4204 host, not target.
4205 * configure.ac: Update paths.
4206 * configure: Rebuild.
4207 * acinclude.m4: Update paths.
4208 * Makefile.in: Update include paths.
4209 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4210 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4211 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4212 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4213 (%-generated.c): Update paths.
4214 * Move entire directory from ../gdb/gdbserver.
4215
287c844a
MR
42162020-01-29 Maciej W. Rozycki <macro@wdc.com>
4217
4218 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4219
548a204f
PFC
42202020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4221
4222 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4223 assignment instead of srv_linux_obj.
4224
a2236a08
HD
42252020-01-28 Hannes Domani <ssbssa@yahoo.de>
4226
4227 * server.c (handle_qxfer_libraries): Write segment-address with
4228 paddress.
4229
bdaed379
HD
42302020-01-24 Hannes Domani <ssbssa@yahoo.de>
4231
4232 * Makefile.in (install-strip): New target.
4233 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4234 * aclocal.m4: Regenerate.
4235 * configure: Regenerate.
4236 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4237
42cd72aa
MR
42382020-01-24 Maciej W. Rozycki <macro@wdc.com>
4239
4240 * Makefile.in (SFILES): Adjust paths to point to real files.
4241 (OBS): Move waitstatus.o to target/waitstatus.o.
4242 (TAGS): Transform paths appropriately.
4243 (%.o): Rename to...
4244 (nat/%.o): ... this pattern rule.
4245 (%.o): Rename to...
4246 (target/%.o): ... this pattern rule.
4247 * configure.srv: Adjust paths throughout to include nat/ prefix
4248 with the revant files.
4249 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4250 * configure: Regenerate.
4251
42ba50ec
MR
42522020-01-24 Maciej W. Rozycki <macro@wdc.com>
4253
4254 * Makefile.in (TAGS): Remove config files from the recipe.
4255
05ea2a05
TT
42562020-01-14 Tom Tromey <tom@tromey.com>
4257
4258 * configure: Rebuild.
4259 * configure.ac: Remove any checks that were added to common.m4.
4260 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4261 lib-link.m4.
4262
01027315
TT
42632020-01-14 Tom Tromey <tom@tromey.com>
4264
4265 * server.h: Include config.h.
4266 * gdbreplay.c: Include config.h.
4267 * configure: Rebuild.
4268 * configure.ac: Don't source common.host.
4269 * acinclude.m4: Update path.
4270 * Makefile.in (INCSUPPORT): New variable.
4271 (INCLUDE_CFLAGS): Add INCSUPPORT.
4272 (SFILES): Update paths.
4273 (version-generated.c): Update path to create-version.sh.
4274 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4275
b2ceabe8
TT
42762020-01-14 Tom Tromey <tom@tromey.com>
4277
4278 * configure.ac (LIBS): Use WIN32APILIBS.
4279 (USE_WIN32API): Don't define.
4280 * configure: Rebuild.
4281
25c51f71
TT
42822020-01-14 Tom Tromey <tom@tromey.com>
4283
4284 * configure: Rebuild.
4285
c0bd321d
SM
42862020-01-13 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * Makefile.in (%-generated.c): Remove rule for files from
4289 regformats/i386.
4290
bb564c58
SM
42912020-01-13 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * configure: Re-generate.
4294
6e37c371
SM
42952020-01-13 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4298 Define to static.
4299 * tracepoint.c (stop_tracing, flush_trace_buffer,
4300 about_to_request_buffer_space, get_trace_state_variable_value,
4301 set_trace_state_variable_value, gdb_collect): Add declaration.
4302
df4a0200
SM
43032020-01-13 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4306 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4307 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4308 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4309 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4310 static.
4311
89e94ec9
SM
43122020-01-13 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * inferiors.c: Include gdbsupport/common-inferior.h.
4315
2552728a
SM
43162020-01-13 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * hostio-errno.c: Include hostio.h.
4319
4025fa09
SM
43202020-01-13 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4323 prerequisite.
4324
c0b0a142
SM
43252020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4326
4327 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4328 * linux-arm-tdesc.h: Include arch/arm.h.
4329
bb1183e2
SM
43302020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4331
4332 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4333
f5df0b5f
SM
43342020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4335
4336 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4337 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4338
5b6d1e4f
PA
43392020-01-10 Pedro Alves <palves@redhat.com>
4340
4341 * fork-child.c (post_fork_inferior): Pass target down to
4342 startup_inferior.
4343 * inferiors.c (switch_to_thread): Add process_stratum_target
4344 parameter.
4345 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4346 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4347 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4348 * remote-utils.c (prepare_resume_reply): Pass the target to
4349 switch_to_thread.
4350 * target.c (the_target): Now a process_stratum_target.
4351 (done_accessing_memory): Pass the target to switch_to_thread.
4352 (set_target_ops): Ajust to use process_stratum_target.
4353 * target.h (struct target_ops): Rename to ...
4354 (struct process_stratum_target): ... this.
4355 (the_target, set_target_ops): Adjust.
4356 (prepare_to_access_memory): Adjust comment.
4357 * win32-low.c (child_xfer_memory): Adjust to use
4358 process_stratum_target.
4359 (win32_target_ops): Now a process_stratum_target.
4360
559e7e50
EZ
43612020-01-06 Eli Zaretskii <eliz@gnu.org>
4362 Pedro Alves <palves@redhat.com>
4363
4364 * win32-low.c (get_child_debug_event): Extract the fatal exception
4365 from the exit status and convert to the equivalent Posix signal
4366 number.
4367 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4368 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4369
48189bec
HD
43702020-01-01 Hannes Domani <ssbssa@yahoo.de>
4371
4372 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4373
5dd8bf88
JB
43742020-01-01 Joel Brobecker <brobecker@adacore.com>
4375
4376 * server.c (gdbserver_version): Change copyright year to 2020.
4377 * gdbreplay.c (gdbreplay_version): Likewise.
4378
0ad6b8ee
CB
43792019-12-19 Christian Biesinger <cbiesinger@google.com>
4380
4381 * configure: Regenerate.
4382 * configure.ac: Quote variable arguments of test.
4383
1ee7b812
BE
43842019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4385
4386 * Makefile.in: Fix build with GNU Make 3.81
4387
d9fa87f4
TT
43882019-12-16 Tom Tromey <tromey@adacore.com>
4389
4390 * server.c (get_exec_file): Constify result.
4391
ab7d13f0
CB
43922019-12-10 Christian Biesinger <cbiesinger@google.com>
4393
4394 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4395 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4396 * config.in: Regenerate.
4397 * configure: Regenerate.
4398 * configure.ac: Don't check for strerror.
4399 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4400 Call safe_strerror instead of strerror.
4401 * server.h (strerror): Remove this now-unnecessary declaration.
4402 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4403 strerror.
4404 (gdb_agent_helper_thread): Likewise.
4405 * utils.c (perror_with_name): Likewise.
4406
4da8c3a8
TT
44072019-11-26 Tom Tromey <tom@tromey.com>
4408
4409 * configure, config.in: Rebuild.
4410
21987b9c
TT
44112019-11-26 Tom Tromey <tom@tromey.com>
4412
4413 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4414 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4415 gdb_sigmask.
4416 * configure, config.in: Rebuild.
4417
5e030278
TT
44182019-11-26 Tom Tromey <tom@tromey.com>
4419
4420 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4421 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4422 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4423 * acinclude.m4: Include ax_pthread.m4.
4424 * config.in, configure: Rebuild.
4425
6d91ce9a
CB
44262019-11-26 Christian Biesinger <cbiesinger@google.com>
4427
4428 * debug.c (debug_set_output): Call safe_strerror instead of
4429 strerror.
4430 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4431 (linux_kill_one_lwp): Likewise.
4432 (linux_detach_one_lwp): Likewise.
4433 (linux_wait_for_event_filtered): Likewise.
4434 (store_register): Likewise.
4435 * lynx-low.c (lynx_attach): Likewise.
4436 * mem-break.c (insert_memory_breakpoint): Likewise.
4437 (remove_memory_breakpoint): Likewise.
4438 (delete_fast_tracepoint_jump): Likewise.
4439 (set_fast_tracepoint_jump): Likewise.
4440 (uninsert_fast_tracepoint_jumps_at): Likewise.
4441 (reinsert_fast_tracepoint_jumps_at): Likewise.
4442 * nto-low.c (nto_xfer_memory): Likewise.
4443 (nto_resume): Likewise.
4444
6cdd651f
LM
44452019-11-20 Luis Machado <luis.machado@linaro.org>
4446
4447 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4448 instead of register count.
4449 * tdesc.c (tdesc_contains_feature): New function.
4450 * tdesc.h (tdesc_contains_feature): New prototype.
4451
cd850b40
CB
44522019-11-15 Christian Biesinger <cbiesinger@google.com>
4453
4454 * Makefile.in: Add safe-strerror.c.
4455 * configure: Regenerate.
4456 * configure.ac: Don't source common.host.
4457
5abebf3c
CB
44582019-11-15 Christian Biesinger <cbiesinger@google.com>
4459
4460 * config.in: Regenerate.
4461 * configure: Regenerate.
4462
e06f3d6e
AB
44632019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * ax.c (ax_printf): Handle size_t_arg.
4466
ca3a04f6
CB
44672019-11-06 Christian Biesinger <cbiesinger@google.com>
4468
4469 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4470 * mi/mi-main.c (output_cores): Likewise.
4471 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4472 (linux_xfer_osdata_modules): Likewise.
4473 * remote.c (register_remote_support_xml): Likewise.
4474 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4475 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4476
e48f6033
CB
44772019-11-01 Christian Biesinger <cbiesinger@google.com>
4478
4479 * configure: Regenerate.
4480 * configure.ac: Remove check for strerror_r.
4481
e7e97a2e
CB
44822019-10-31 Christian Biesinger <cbiesinger@google.com>
4483
4484 * config.in: Regenerate.
4485 * configure: Regenerate.
4486 * configure.ac: Also check for strerror_r.
4487
75cafaa6
CB
44882019-10-31 Christian Biesinger <cbiesinger@google.com>
4489
4490 * ax.h (debug_agent): Remove duplicate declaration.
4491
30baf67b
TV
44922019-10-26 Tom de Vries <tdevries@suse.de>
4493
4494 * linux-aarch64-low.c: Fix typos in comments.
4495 * linux-arm-low.c: Same.
4496 * linux-low.c: Same.
4497 * linux-ppc-low.c: Same.
4498 * proc-service.c: Same.
4499 * regcache.h: Same.
4500 * server.c: Same.
4501 * tracepoint.c: Same.
4502 * win32-low.c: Same.
4503
52c64cf7
TT
45042019-10-25 Tom Tromey <tromey@adacore.com>
4505
4506 * utils.c (xstrdup): Remove.
4507
c12d372d
TT
45082019-10-23 Tom Tromey <tom@tromey.com>
4509
4510 * configure, config.in: Rebuild.
4511
4d0b984b
TT
45122019-10-23 Tom Tromey <tom@tromey.com>
4513
4514 * configure: Rebuild.
4515 * acinclude.m4: Use m4_include, not sinclude.
4516
c5adaa19
TT
45172019-10-17 Tom Tromey <tromey@adacore.com>
4518
4519 * configure: Rebuild.
4520 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4521 in AC_CONFIG_FILES invocation.
4522 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4523 invocation.
4524
fec4e896
CB
45252019-10-16 Christian Biesinger <cbiesinger@google.com>
4526
4527 * server.c: Include xml-builtin.h.
4528 (get_xml_features): Don't declare xml_builtins here.
4529
00975ff6
AB
45302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4531
4532 * Makefile.in: Remove references to vec-ipa.o.
4533
0dc32745
AB
45342019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4535
4536 * Makefile.in: Remove references to vec.c.
4537
3e6ec53a
CB
45382019-10-02 Christian Biesinger <cbiesinger@google.com>
4539
4540 * server.c (server_waiting): Change to bool.
4541 (extended_protocol): Likewise.
4542 (response_needed): Likewise.
4543 (exit_requested): Likewise.
4544 (run_once): Likewise.
4545 (report_no_resumed): Likewise.
4546 (non_stop): Likewise.
4547 (disable_packet_vCont): Likewise.
4548 (disable_packet_Tthread): Likewise.
4549 (disable_packet_qC): Likewise.
4550 (disable_packet_qfThreadInfo): Likewise.
4551 (handle_general_set): Update.
4552 (handle_detach): Update.
4553 (handle_monitor_command): Update.
4554 (handle_query): Update.
4555 (captured_main): Update.
4556 (process_serial_event): Update.
4557 * server.h (server_waiting): Change to bool.
4558 (disable_packet_vCont): Likewise.
4559 (disable_packet_Tthread): Likewise.
4560 (disable_packet_qC): Likewise.
4561 (disable_packet_qfThreadInfo): Likewise.
4562 (run_once): Likewise.
4563 (non_stop): Likewise.
4564 * target.c (target_stop_and_wait): Update.
4565
80fd2826
TT
45662019-10-02 Tom Tromey <tromey@adacore.com>
4567
4568 * Makefile.in (SFILES): Add common-inferior.c.
4569 (OBS): Add common-inferior.o.
4570 * server.c (startup_with_shell): Don't define.
4571
46f29a9a
AB
45722019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 * linux-low.c (linux_low_read_btrace): Update for change to
4575 std::vector.
4576
f9d949fb
CB
45772019-09-20 Christian Biesinger <cbiesinger@google.com>
4578
4579 * debug.c (debug_threads): Remove comment in favor of the header.
4580 * debug.h (using_threads): Add declaration.
4581 (debug_threads): Add comment.
4582 * linux-aarch64-low.c: Include debug.h and remove declaration of
4583 debug_threads.
4584 * nto-low.c: Likewise.
4585 * remote-utils.c: Likewise.
4586 * thread-db.c: Likewise.
4587
abf516c6
UW
45882019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4589
4590 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4591 and powerpc-cell64l-ipa.o.
4592 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4593 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4594 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4595 (spu*-*-*): Remove.
4596
4597 * spu-low.c: Remove file.
4598
4599 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4600 (parse_spufs_run): Remove.
4601 (ppc_get_pc): Remove Cell/B.E. support.
4602 (ppc_set_pc): Likewise.
4603 (ppc_breakpoint_at): Likewise.
4604 (ppc_arch_setup): Likewise.
4605 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4606 tdesc_powerpc_cell32l.
4607 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4608 or init_registers_powerpc_cell32l.
4609 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4610 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4611 or init_registers_powerpc_cell32l.
4612 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4613 (init_registers_powerpc_cell32l): Remove prototype.
4614 (init_registers_powerpc_cell64l): Likewise.
4615
4616 * target.h (struct target_ops): Remove qxfer_spu member.
4617 * server.c (handle_qxfer_spu): Remove.
4618 (qxfer_packets): Remove entry for "spu".
4619 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4620 * linux-low.c (SPUFS_MAGIC): Remove.
4621 (spu_enumerate_spu_ids): Remove.
4622 (linux_qxfer_spu): Remove.
4623 (linux_target_ops): Remove qxfer_spu member.
4624 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4625 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4626 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4627
2d41fa11
SDJ
46282019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4629
4630 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4631 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4632 * config.in: Regenerate.
4633 * configure: Regenerate.
4634
d59b55f0
TT
46352019-08-15 Tom Tromey <tromey@adacore.com>
4636
4637 * target.c (target_write_memory): Use gdb::byte_vector.
4638
4196ab2a
TT
46392019-08-15 Tom Tromey <tromey@adacore.com>
4640
4641 * tracepoint.c (write_inferior_data_pointer)
4642 (write_inferior_integer, write_inferior_int8)
4643 (write_inferior_uinteger, m_tracepoint_action_download)
4644 (r_tracepoint_action_download, x_tracepoint_action_download)
4645 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4646 (download_agent_expr, download_tracepoint_1)
4647 (download_trace_state_variables, upload_fast_traceframes): Update.
4648 * server.c (gdb_write_memory): Update.
4649 * remote-utils.c (relocate_instruction): Update.
4650 * proc-service.c (ps_pdwrite): Update.
4651 * mem-break.c (remove_memory_breakpoint)
4652 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4653 (uninsert_fast_tracepoint_jumps_at)
4654 (reinsert_fast_tracepoint_jumps_at): Update.
4655 * linux-x86-low.c (append_insns)
4656 (i386_install_fast_tracepoint_jump_pad)
4657 (amd64_write_goto_address, i386_write_goto_address): Update.
4658 * linux-s390-low.c (append_insns, s390_write_goto_address):
4659 Update.
4660 * linux-ppc-low.c (ppc_relocate_instruction)
4661 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4662 (ppc_write_goto_address): Update.
4663 * linux-aarch64-low.c (append_insns): Update.
4664 * target.h (struct target_ops): Update.
4665 (write_inferior_memory): Don't declare.
4666 * target.c (target_write_memory): Rename from
4667 write_inferior_memory. Remove old target_write_memory.
4668
c6778d00
TT
46692019-08-15 Tom Tromey <tromey@adacore.com>
4670
4671 * target.c (write_inferior_memory): Use std::vector.
4672
404f2902
FCE
46732019-08-06 Frank Ch. Eigler <fche@redhat.com>
4674
4675 PR build/24886
4676 * configure.ac: Drop enable-libmcheck support.
4677 * configure, config.in: Rebuild.
4678 * acinclude.m4: Don't include it.
4679
4c5aa8e0
AH
46802019-07-19 Alan Hayward <alan.hayward@arm.com>
4681
4682 * configure.srv: Remove Arm xml files.
4683
7cc17433
AH
46842019-07-19 Alan Hayward <alan.hayward@arm.com>
4685
4686 * configure.srv: Add new files. Remove xml generated files.
4687 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4688 registers.
4689 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4690 * linux-aarch32-tdesc.c: New file.
4691 * linux-aarch32-tdesc.h: New file.
4692 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4693 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4694 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4695 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4696 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4697 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4698 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4699 (arm_read_description): Call arm_linux_read_description.
4700 (initialize_low_arch): Don't init registers.
4701 * linux-arm-tdesc.c: New file.
4702 * linux-arm-tdesc.h: New file.
4703
166a82be
AH
47042019-07-10 Alan Hayward <alan.hayward@arm.com>
4705
4706 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4707 Move counter inside for.
4708 (arm_read_description): Check ptrace earlier.
4709 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4710
268a13a5
TT
47112019-07-09 Tom Tromey <tom@tromey.com>
4712
4713 * configure: Rebuild.
4714 * configure.ac: Change common to gdbsupport.
4715 * acinclude.m4: Change common to gdbsupport.
4716 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4717 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4718 common to gdbsupport.
4719 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4720 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4721 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4722 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4723 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4724 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4725 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4726 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4727 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4728 common to gdbsupport.
4729
350fab54
AH
47302019-07-04 Alan Hayward <alan.hayward@arm.com>
4731
4732 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4733 defines.
4734 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4735
2b40fda7
AH
47362019-07-04 Alan Hayward <alan.hayward@arm.com>
4737
4738 * configure.srv: Remove legacy xml.
4739 * linux-aarch64-low.c (initialize_low_arch): Remove
4740 initialize_low_tdesc call.
4741 * linux-aarch64-tdesc-selftest.c: Remove file.
4742 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4743 * linux-x86-low.c (initialize_low_arch): Remove
4744 initialize_low_tdesc call.
4745 * linux-x86-tdesc-selftest.c: Remove file.
4746 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4747
7d10623d
TV
47482019-06-20 Tom de Vries <tdevries@suse.de>
4749
4750 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4751 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4752
8d6a48df
TV
47532019-06-19 Tom de Vries <tdevries@suse.de>
4754
4755 * debug.h (debug_write): Change return type to ssize_t.
4756 * debug.c (debug_write): Same.
4757
73cc7272
TT
47582019-06-14 Tom Tromey <tom@tromey.com>
4759
4760 * configure.ac: Use new path to gnulib.
4761 * configure: Rebuild.
4762 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4763 to gnulib.
4764
08f10e02
TT
47652019-06-11 Tom Tromey <tom@tromey.com>
4766
4767 * Makefile.in (SFILES): Add alloc.c.
4768 (OBS): Add alloc.o.
4769 (IPA_OBJS): Add alloc-ipa.o.
4770 (alloc-ipa.o): New target.
4771 (%.o: ../%.c): New pattern rule.
4772
422186a9
TT
47732019-06-10 Tom Tromey <tromey@adacore.com>
4774
4775 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4776 end warning with a newline.
4777 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4778 newline.
4779 * thread-db.c (attach_thread): Don't end warning with a newline.
4780 (thread_db_notice_clone): Likewise.
4781 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4782 newline.
4783 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4784 end warning with a newline.
4785
b02f78f9
PA
47862019-06-04 Pedro Alves <palves@redhat.com>
4787
4788 * server.c (captured_main): Use make_unique_xstrdup.
4789
88ed7edb
TT
47902019-06-02 Tom Tromey <tom@tromey.com>
4791
4792 * gdbreplay.c (fromhex): Remove.
4793 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4794
33a6bc35
TT
47952019-05-29 Tom Tromey <tromey@adacore.com>
4796
4797 * configure: Rebuild.
4798
e90a813d
KB
47992019-05-06 Kevin Buettner <kevinb@redhat.com>
4800
4801 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4802 sign extension code on 32-bit builds.
4803
353ea2d1
EZ
48042019-05-03 Eli Zaretskii <eliz@gnu.org>
4805
4806 * remote-utils.c:
4807 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4808
b494cdff
TT
48092019-04-19 Tom Tromey <tom@tromey.com>
4810
4811 * server.c (struct vstop_notif): Derive from notif_event.
4812 <base>: Remove.
4813 (queue_stop_reply): Update.
4814 (remove_all_on_match_ptid): Change type. Rewrite.
4815 (discard_queued_stop_replies): Rewrite.
4816 (in_queued_stop_replies_ptid): Change type.
4817 (in_queued_stop_replies): Rewrite.
4818 (notif_stop): Update.
4819 (queue_stop_reply_callback): Update.
4820 (captured_main): Don't call initialize_notif.
4821 (push_stop_notification): Update.
4822 * notif.c (notif_write_event, handle_notif_ack)
4823 (notif_event_enque, notif_push): Update.
4824 (notif_event_xfree, initialize_notif): Remove.
4825 * notif.h (struct notif_event): Include <list>, not
4826 "common/queue.h".
4827 (struct notif_server) <queue>: Now a std::list.
4828 (notif_event_p): Remove typedef.
4829 (initialize_notif): Don't declare.
4830 (struct notif_event): Add virtual destructor.
4831
a7e559cc
AH
48322019-04-17 Alan Hayward <alan.hayward@arm.com>
4833
4834 * ax.c (ax_vdebug): Call debug_printf.
4835 * debug.c (debug_write): New function.
4836 * debug.h (debug_write): New declaration.
4837 * linux-low.c (sigchld_handler): Call debug_write.
4838
aeb2e706
AH
48392019-04-17 Alan Hayward <alan.hayward@arm.com>
4840
4841 * debug.c (debug_set_output): New function.
4842 (debug_vprintf): Send output to debug_file.
4843 (debug_flush): Likewise.
4844 * debug.h (debug_set_output): New declaration.
4845 * server.c (handle_monitor_command): Add debug-file option.
4846 (captured_main): Likewise.
4847
c1bc0935
AH
48482019-04-17 Alan Hayward <alan.hayward@arm.com>
4849
4850 * debug.c (remote_debug): Add definition.
4851 * debug.h (remote_debug): Add declaration.
4852 * hostio.c (remote_debug): Remove declaration.
4853 * remote-utils.c (struct ui_file): Likewise.
4854 (remote_debug): Likewise.
4855 * remote-utils.h (remote_debug): Likewise,
4856 * server.c (remote_debug): Remove definition.
4857
3f52fdbc
KB
48582019-04-10 Kevin Buettner <kevinb@redhat.com>
4859
4860 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4861 when using a 64-bit gdbserver.
4862
b0319eaa
TT
48632019-04-09 Tom Tromey <tromey@adacore.com>
4864
4865 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4866
eedc3f4f
TT
48672019-04-08 Tom Tromey <tom@tromey.com>
4868
4869 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4870 throw.
4871 (linux_resume_one_lwp): Likewise.
4872
230d2906
TT
48732019-04-08 Tom Tromey <tom@tromey.com>
4874
4875 * gdbreplay.c: Update.
4876 * linux-low.c: Update.
4877 * server.c: Update.
4878
a70b8144
TT
48792019-04-08 Tom Tromey <tom@tromey.com>
4880
4881 * server.c: Use C++ exception handling.
4882 * linux-low.c: Use C++ exception handling.
4883 * gdbreplay.c: Use C++ exception handling.
4884
3d6e9d23
TT
48852019-04-08 Tom Tromey <tom@tromey.com>
4886
4887 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4888 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4889 (captured_main, main): Update.
4890 * gdbreplay.c (main): Update.
4891
0570503d
PFC
48922019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4893
4894 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4895 value in argument pointer, return 1 if the entry is found and 0
4896 otherwise. Move comment.
4897 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4898 * linux-low.h (linux_get_auxv): Declare.
4899 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4900
227a9e65
TT
49012019-04-05 Tom Tromey <tromey@adacore.com>
4902
4903 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4904 variables.
4905
69f4c9cc
AH
49062019-03-28 Alan Hayward <alan.hayward@arm.com>
4907
4908 * linux-low.c (AT_HWCAP2): Add define if not already included.
4909
974c89e0
AH
49102019-03-26 Alan Hayward <alan.hayward@arm.com>
4911
4912 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4913 (aarch64_arch_setup): Call linux_get_hwcap.
4914 * linux-arm-low.c (arm_get_hwcap): Remove function.
4915 (arm_read_description): Call linux_get_hwcap.
4916 * linux-low.c (linux_get_auxv): New function.
4917 (linux_get_hwcap): Likewise.
4918 (linux_get_hwcap2): Likewise.
4919 * linux-low.h (linux_get_hwcap): New declaration.
4920 (linux_get_hwcap2): Likewise.
4921 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4922 (ppc_arch_setup): Call linux_get_hwcap.
4923 * linux-s390-low.c (s390_get_hwcap): Remove function.
4924 (s390_arch_setup): Call linux_get_hwcap.
4925
1ef53e6b
AH
49262019-03-22 Alan Hayward <alan.hayward@arm.com>
4927 Jiong Wang <jiong.wang@arm.com>
4928
4929 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4930 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4931 to fail.
4932 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4933
ee4fbcfa
AH
49342019-03-22 Alan Hayward <alan.hayward@arm.com>
4935 Jiong Wang <jiong.wang@arm.com>
4936
4937 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4938 (aarch64_get_hwcap): New function.
4939 (aarch64_arch_setup): Read APIA hwcap.
4940
6dc0ebde
AH
49412019-03-22 Alan Hayward <alan.hayward@arm.com>
4942 Jiong Wang <jiong.wang@arm.com>
4943
4944 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4945 (initialize_low_tracepoint): Likewise.
4946 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4947 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4948 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4949 (aarch64_linux_read_description): Likewise.
4950 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4951
1163a4b7
JB
49522019-03-12 John Baldwin <jhb@FreeBSD.org>
4953
4954 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4955 i386_create_target_description for 'segments' parameter.
4956 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4957 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4958 * win32-i386-low.c (i386_arch_setup): Likewise.
4959
d3a70e03
TT
49602019-03-12 Tom Tromey <tromey@adacore.com>
4961
4962 * linux-low.c (iterate_over_lwps): Update.
4963
37991b4f
TT
49642019-03-06 Tom Tromey <tom@tromey.com>
4965
4966 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4967 (captured_main): Use SCOPE_EXIT.
4968
45950eb6
SDJ
49692019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4970
4971 * configure.srv: Use '$enable_unittest' instead of '$development'
4972 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4973 case.
4974
43ac54fc
TT
49752019-02-27 Tom Tromey <tromey@adacore.com>
4976
4977 * gdbreplay.c (logchar): Handle \r\n.
4978
df0da8a2
AH
49792019-02-07 Alan Hayward <alan.hayward@arm.com>
4980
4981 * linux-low.c (linux_attach): Add process before lwp.
4982 * server.c (attach_inferior): Check if already attached.
4983
1a5c2598
TT
49842019-02-07 Tom Tromey <tom@tromey.com>
4985
4986 * x86-tdesc.h: Rename include guard.
4987 * x86-low.h: Add include guard.
4988 * wincecompat.h: Rename include guard.
4989 * win32-low.h: Add include guard.
4990 * utils.h: Rename include guard.
4991 * tracepoint.h: Rename include guard.
4992 * tdesc.h: Rename include guard.
4993 * target.h: Rename include guard.
4994 * server.h: Rename include guard.
4995 * remote-utils.h: Rename include guard.
4996 * regcache.h: Rename include guard.
4997 * nto-low.h: Rename include guard.
4998 * notif.h: Add include guard.
4999 * mem-break.h: Rename include guard.
5000 * lynx-low.h: Add include guard.
5001 * linux-x86-tdesc.h: Add include guard.
5002 * linux-s390-tdesc.h: Add include guard.
5003 * linux-ppc-tdesc-init.h: Add include guard.
5004 * linux-low.h: Add include guard.
5005 * linux-aarch64-tdesc.h: Add include guard.
5006 * linux-aarch32-low.h: Add include guard.
5007 * inferiors.h: Rename include guard.
5008 * i387-fp.h: Rename include guard.
5009 * hostio.h: Rename include guard.
5010 * gdbthread.h: Rename include guard.
5011 * gdb_proc_service.h: Rename include guard.
5012 * event-loop.h: Rename include guard.
5013 * dll.h: Rename include guard.
5014 * debug.h: Rename include guard.
5015 * ax.h: Rename include guard.
5016
956cc47c
SN
50172018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5018
5019 PR gdb/23985
5020 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5021 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5022
a0707f3c
TT
50232019-01-25 Tom Tromey <tom@tromey.com>
5024
5025 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5026
0747795c
TT
50272019-01-25 Tom Tromey <tom@tromey.com>
5028
5029 * win32-low.c: Fix common/ includes.
5030 * win32-i386-low.c: Fix common/ includes.
5031 * tracepoint.c: Fix common/ includes.
5032 * thread-db.c: Fix common/ includes.
5033 * target.h: Fix common/ includes.
5034 * symbol.c: Fix common/ includes.
5035 * spu-low.c: Fix common/ includes.
5036 * server.h: Fix common/ includes.
5037 * server.c: Fix common/ includes.
5038 * remote-utils.c: Fix common/ includes.
5039 * regcache.h: Fix common/ includes.
5040 * regcache.c: Fix common/ includes.
5041 * nto-x86-low.c: Fix common/ includes.
5042 * notif.h: Fix common/ includes.
5043 * mem-break.h: Fix common/ includes.
5044 * lynx-low.c: Fix common/ includes.
5045 * lynx-i386-low.c: Fix common/ includes.
5046 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5047 * linux-x86-low.c: Fix common/ includes.
5048 * linux-low.c: Fix common/ includes.
5049 * inferiors.h: Fix common/ includes.
5050 * i387-fp.c: Fix common/ includes.
5051 * hostio.c: Fix common/ includes.
5052 * hostio-errno.c: Fix common/ includes.
5053 * gdbthread.h: Fix common/ includes.
5054 * gdbreplay.c: Fix common/ includes.
5055 * fork-child.c: Fix common/ includes.
5056 * event-loop.c: Fix common/ includes.
5057 * ax.c:
5058 (enum gdb_agent_op): Fix common/ includes.
5059
be6d4f74
TT
50602019-01-21 Tom Tromey <tom@tromey.com>
5061
5062 * tracepoint.c: Fix includes.
5063 * remote-utils.c: Fix includes.
5064 * linux-x86-low.c: Fix includes.
5065
66d91b39
JB
50662019-01-01 Joel Brobecker <brobecker@adacore.com>
5067
5068 * gdbreplay.c (gdbreplay_version): Update copyright year in
5069 version message.
5070 * server.c (gdbserver_version): Likewise.
5071
754e3168
AH
50722018-12-05 Alan Hayward <alan.hayward@arm.com>
5073
5074 * linux-low.c (add_lwp): Switch ordering.
5075
d105de22
TT
50762018-11-29 Tom Tromey <tom@tromey.com>
5077
5078 * win32-low.c (win32_join): Take pid, not process.
5079 * target.h (struct target_ops) <join>: Change argument type.
5080 (join_inferior): Change argument name.
5081 * spu-low.c (spu_join): Take pid, not process.
5082 * server.c (handle_detach): Preserve pid before destroying
5083 process.
5084 * lynx-low.c (lynx_join): Take pid, not process.
5085 * linux-low.c (linux_join): Take pid, not process.
5086
50138245
AH
50872018-11-23 Alan Hayward <alan.hayward@arm.com>
5088
5089 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5090 (aarch64_cannot_fetch_register): Likewise.
5091 (struct linux_target_ops): Update references.
5092
64f57f3d
PFC
50932018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5094
5095 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5096
8d619c01
EBM
50972018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5098
5099 * configure.srv (ipa_ppc_linux_regobj): Add
5100 powerpc-isa207-htm-vsx32l-ipa.o and
5101 powerpc-isa207-htm-vsx64l-ipa.o.
5102 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5103 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5104 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5105 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5106 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5107 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5108 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5109 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5110 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5111 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5112 (init_registers_powerpc_isa207_htm_vsx32l)
5113 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5114 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5115 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5116 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5117 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5118 (ppc_store_tm_ctarregset): New functions.
5119 (ppc_regsets): Add entries for HTM regsets.
5120 (ppc_arch_setup): Set htm in features struct when needed. Set
5121 sizes for the HTM regsets.
5122 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5123 (initialize_low_arch): Call
5124 init_registers_powerpc_isa207_htm_vsx32l and
5125 init_registers_powerpc_isa207_htm_vsx64l.
5126 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5127 PPC_TDESC_ISA207_HTM_VSX.
5128 (initialize_low_tracepoint): Call
5129 init_registers_powerpc_isa207_htm_vsx32l and
5130 init_registers_powerpc_isa207_htm_vsx64l.
5131
232bfb86
EBM
51322018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5133
5134 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5135 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5136 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5137 (ppc_store_pmuregset): New functions.
5138 (ppc_regsets): Add entries for ebb and pmu regsets.
5139 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5140 pmu regsets are available. Set sizes for these regsets.
5141
f2cf6173
EBM
51422018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5143
5144 * configure.srv (ipa_ppc_linux_regobj): Add
5145 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5146 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5147 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5148 rs6000/powerpc-isa207-vsx32l.xml, and
5149 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5150 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5151 <PPC_TDESC_ISA207_VSX>: New enum value.
5152 (init_registers_powerpc_isa207_vsx32l): Declare.
5153 (init_registers_powerpc_isa207_vsx64l): Declare.
5154 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5155 (ppc_store_tarregset): New function.
5156 (ppc_regsets): Add entry for the TAR regset.
5157 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5158 size for the TAR regsets.
5159 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5160 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5161 and init_registers_powerpc_isa207_vsx64l.
5162 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5163 (initialize_low_tracepoint): Call
5164 init_registers_powerpc_isa207_vsx32l and
5165 init_registers_powerpc_isa207_vsx64l.
5166
7ca18ed6
EBM
51672018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5168 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5169
5170 * configure.srv (ipa_ppc_linux_regobj): Add
5171 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5172 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5173 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5174 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5175 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5176 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5177 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5178 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5179 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5180 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5181 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5182 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5183 (ppc_hwcap): Add comment.
5184 (ppc_hwcap2): New global.
5185 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5186 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5187 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5188 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5189 when needed. Set sizes for the the DSCR and PPR regsets.
5190 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5191 (initialize_low_arch): Call
5192 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5193 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5194 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5195 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5196 (initialize_low_tracepoint): Call
5197 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5198 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5199
5c849b22
PFC
52002018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5201
5202 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5203
8ecfd7bd
SDJ
52042018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5205 Simon Marchi <simark@simark.ca>
5206
5207 * acinclude.m4: Include "../selftest.m4".
5208 * configure: Regenerate.
5209 * configure.ac: Use "GDB_AC_SELFTEST".
5210 * configure.srv: Use "$enable_unittests" instead of
5211 "$development" when checking whether unit tests have been
5212 enabled.
5213 * server.c (captured_main): Update message informing that
5214 selftests have been disabled.
5215
96643e35
TT
52162018-10-04 Tom Tromey <tom@tromey.com>
5217
5218 * configure: Rebuild.
5219
da4ae14a
TT
52202018-10-04 Tom Tromey <tom@tromey.com>
5221
5222 * server.c (handle_status): Rename inner "thread".
5223 (process_serial_event): Declare "res" in 'm' case.
5224 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5225 (iterate_over_lwps): Rename inner "thread".
5226 (linux_qxfer_libraries_svr4): Rename inner "len".
5227 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5228
7c619dbd
GB
52292018-10-01 Gary Benson <gbenson@redhat.com>
5230
5231 * gdb_proc_service.h: Moved common code to
5232 common/gdb_proc_service.h.
5233
3795e814
GB
52342018-10-01 Gary Benson <gbenson@redhat.com>
5235
5236 * gdb_proc_service.h: Synchronize comments and whitespace with
5237 GDB's version of this file.
5238
49b036f1
TT
52392018-09-25 Tom Tromey <tom@tromey.com>
5240
5241 * configure: Rebuild.
5242 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5243
8ff03f0b
SM
52442018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5245
5246 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5247 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5248 ($(IPA_LIB)): Sort IPA_OBJS.
5249
a1cd91dc
SM
52502018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * Makefile.in: Remove references to $(ADD_DEPS).
5253
752312ba
TT
52542018-09-16 Tom Tromey <tom@tromey.com>
5255
5256 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5257 variables.
5258 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5259 variables.
5260
f1628857
TT
52612018-09-05 Tom Tromey <tom@tromey.com>
5262
5263 * configure: Rebuild.
5264
ad202fcc
SM
52652018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5266
5267 PR build/23399
5268 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5269
d3d8724a
TT
52702018-08-27 Tom Tromey <tom@tromey.com>
5271
5272 PR build/23087:
5273 * configure: Rebuild.
5274
b4f183d2
TT
52752018-08-27 Tom Tromey <tom@tromey.com>
5276
5277 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5278 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5279 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5280 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5281 (s390x_emit_stack_adjust): Add casts to unsigned char.
5282
4e2aa472
SM
52832018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5284
5285 PR gdb/23374
5286 PR gdb/23375
5287 * server.h (struct client_state) <disable_randomization>:
5288 Initialize to 1.
5289
cf4088a9
SM
52902018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5291
5292 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5293 variable.
5294 (mips_supply_ptrace_register): Likewise.
5295
a0de763e
TT
52962018-07-22 Tom Tromey <tom@tromey.com>
5297
5298 * configure: Rebuild.
5299
b0a7723d
TT
53002018-07-22 Tom Tromey <tom@tromey.com>
5301
5302 * win32-low.c (win32_create_inferior): Remove unused variables.
5303 * gdbreplay.c (remote_open): Remove unused variable.
5304 * remote-utils.c (remote_prepare): Remove unused variable.
5305 * x86-tdesc.h (X86_TDESC_H): Define.
5306 (amd64_expedite_regs): Define conditionally.
5307 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5308 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5309 * remote-utils.c (readchar): Remove unused variable.
5310
a780ef4f
PA
53112018-07-13 Pedro Alves <palves@redhat.com>
5312
5313 * linux-low.c (linux_kill): Change parameter to process_info
5314 pointer instead of pid. Adjust.
5315 * lynx-low.c (lynx_kill): Likewise.
5316 * nto-low.c (nto_kill): Likewise.
5317 * spu-low.c (spu_kill): Likewise.
5318 * win32-low.c (win32_kill): Likewise.
5319 * server.c (handle_v_kill, kill_inferior_callback)
5320 (detach_or_kill_for_exit): Adjust.
5321 * target.c (kill_inferior): Change parameter to process_info
5322 pointer instead of pid. Adjust.
5323 * target.h (struct target_ops) <kill>: Change parameter to
5324 process_info pointer instead of pid. Adjust all implementations
5325 and callers.
5326 (kill_inferior): Likewise.
5327
ef2ddb33
PA
53282018-07-13 Pedro Alves <palves@redhat.com>
5329
5330 * linux-low.c (linux_detach, linux_join): Change parameter to
5331 process_info pointer instead of pid. Adjust.
5332 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5333 * nto-low.c (nto_detach): Likewise.
5334 * spu-low.c (spu_detach, spu_join): Likewise.
5335 * win32-low.c (win32_detach, win32_join): Likewise.
5336 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5337 * target.h (struct target_ops) <detach, join>: Change parameter to
5338 process_info pointer instead of pid. Adjust all implementations
5339 and callers.
5340 (detach_inferior, join_inferior): Rename 'pid' parameter to
5341 'proc'.
5342
c7ab0aef
SDJ
53432018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5344 Jan Kratochvil <jan.kratochvil@redhat.com>
5345 Paul Fertser <fercerpav@gmail.com>
5346 Tsutomu Seki <sekiriki@gmail.com>
5347
5348 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5349 (OBS): Add 'common/netstuff.o'.
5350 (GDBREPLAY_OBS): Likewise.
5351 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5352 (remote_open): Implement support for IPv6
5353 connections.
5354 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5355 and 'wspiapi.h'.
5356 (handle_accept_event): Accept connections from IPv6 sources.
5357 (remote_prepare): Handle IPv6-style hostnames; implement
5358 support for IPv6 connections.
5359 (remote_open): Implement support for printing connections from
5360 IPv6 sources.
5361
31445d10
PA
53622018-07-11 Pedro Alves <palves@redhat.com>
5363
5364 PR gdb/23377
5365 * mem-break.c (any_persistent_commands): Add process_info
5366 parameter and use it instead of relying on the current process.
5367 Change return type to bool.
5368 * mem-break.h (any_persistent_commands): Add process_info
5369 parameter and change return type to bool.
5370 * server.c (handle_detach): Remove require_running_or_return call.
5371 Look up the process_info for the process we're about to detach.
5372 If not found, return back error to GDB. Adjust
5373 any_persistent_commands call to pass down a process pointer.
5374
cb197132
PA
53752018-07-11 Pedro Alves <palves@redhat.com>
5376
5377 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5378 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5379 instead of collect_register_by_name.
5380 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5381 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5382
1b919490
VB
53832018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5384 Pedro Alves <palves@redhat.com>
5385
5386 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5387
d7e15655
TT
53882018-07-03 Tom Tromey <tom@tromey.com>
5389
5390 * linux-low.c: Update.
5391 * lynx-low.c: Update.
5392 * mem-break.c: Update.
5393 * nto-low.c: Update.
5394 * remote-utils.c: Update.
5395 * server.c: Update.
5396 * spu-low.c: Update.
5397 * target.c: Update.
5398 * win32-low.c: Update.
5399
26a57c92
TT
54002018-07-03 Tom Tromey <tom@tromey.com>
5401
5402 * server.c: Update.
5403
0e998d96
TT
54042018-07-03 Tom Tromey <tom@tromey.com>
5405
5406 * linux-low.c: Update.
5407
cc6bcb54
TT
54082018-07-03 Tom Tromey <tom@tromey.com>
5409
5410 * target.c: Update.
5411
e38504b3
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 * nto-low.c: Update.
5418 * remote-utils.c: Update.
5419 * server.c: Update.
5420 * spu-low.c: Update.
5421 * target.c: Update.
5422 * thread-db.c: Update.
5423
e99b03dc
TT
54242018-07-03 Tom Tromey <tom@tromey.com>
5425
5426 * linux-low.c: Update.
5427 * linux-mips-low.c: Update.
5428 * lynx-low.c: Update.
5429 * mem-break.c: Update.
5430 * nto-low.c: Update.
5431 * remote-utils.c: Update.
5432 * server.c: Update.
5433 * spu-low.c: Update.
5434 * target.c: Update.
5435 * tracepoint.c: Update.
5436
f2907e49
TT
54372018-07-03 Tom Tromey <tom@tromey.com>
5438
5439 * linux-low.c: Update.
5440 * linux-ppc-low.c: Update.
5441 * linux-x86-low.c: Update.
5442 * proc-service.c: Update.
5443 * server.c: Update.
5444 * spu-low.c: Update.
5445 * thread-db.c: Update.
5446 * win32-low.c: Update.
5447
fd79271b
TT
54482018-07-03 Tom Tromey <tom@tromey.com>
5449
5450 * linux-low.c: Update.
5451 * lynx-low.c: Update.
5452 * nto-low.c: Update.
5453 * remote-utils.c: Update.
5454 * spu-low.c: Update.
5455 * thread-db.c: Update.
5456 * win32-low.c: Update.
5457
c0867626
SDJ
54582018-06-29 Joel Brobecker <brobecker@adacore.com>
5459
5460 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5461 parameter in call to 'amd64_create_target_description'.
5462
2512d7ef
JK
54632018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5464
5465 * x86-tdesc.h: Remove executable permission flag.
5466
d0ac1c44
SM
54672018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * configure.ac: Remove AC_PREREQ, add missing quoting.
5470 * configure: Re-generate.
5471 * config.in: Re-generate.
5472 * aclocal.m4: Re-generate.
5473
c4eb05ff
SM
54742018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5475
5476 * tracepoint.h (current_traceframe): Remove declaration.
5477
02895270
AH
54782018-06-18 Alan Hayward <alan.hayward@arm.com>
5479
5480 * linux-aarch64-low.c (is_sve_tdesc): New function.
5481 (aarch64_sve_regs_copy_to_regcache): Likewise.
5482 (aarch64_sve_regs_copy_from_regcache): Likewise.
5483 (aarch64_regs_info): Add SVE checks.
5484 (initialize_low_arch): Initialize SVE.
5485
e9902bfc
AH
54862018-06-18 Alan Hayward <alan.hayward@arm.com>
5487
5488 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5489
fefa175e
AH
54902018-06-11 Alan Hayward <alan.hayward@arm.com>
5491
5492 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5493 (initialize_low_tracepoint): Likewise
5494 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5495 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5496 param.
5497 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5498 checks.
5499 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5500
b91ad3ff
AH
55012018-06-11 Alan Hayward <alan.hayward@arm.com>
5502
5503 * server.h (PBUFSIZ): Increase size
5504
f868386e
AH
55052018-06-11 Alan Hayward <alan.hayward@arm.com>
5506
5507 * regcache.c (regcache::raw_compare): New function.
5508 * regcache.h (regcache::raw_compare): New declaration.
5509
9c861883
AH
55102018-06-11 Alan Hayward <alan.hayward@arm.com>
5511
5512 * regcache.c (new_register_cache): Use new.
5513 (free_register_cache): Use delete.
5514 (register_data): Use const.
5515 (supply_register): Move body inside regcache.
5516 (regcache::raw_supply): New override function.
5517 (collect_register): Move body inside regcache.
5518 (regcache::raw_collect): New override function.
5519 (regcache::get_register_status): New override function.
5520 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5521
40591844
TT
55222018-06-09 Tom Tromey <tom@tromey.com>
5523
5524 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5525 declare queue.
5526 (event_queue): Use std::queue.
5527 (gdb_event_xfree): Remove.
5528 (initialize_event_loop, process_event, wait_for_event): Update.
5529
6341380d
SC
55302018-06-08 Stan Cox <scox@redhat.com>
5531
5532 * win32-low.c (win32_create_inferior): last_ptid and last_status
5533 moved to client_state.
5534
03349c93
PA
55352018-06-08 Pedro Alves <palves@redhat.com>
5536
5537 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5538 common/common-exceptions.o, common/common-utils.o,
5539 common/errors.o, common/print-utils.o and utils.o.
5540 * gdbreplay.c: Include "common-defs.h" instead of the two
5541 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5542 string.h or alloca.h.
5543 (perror_with_name): Delete.
5544 (remote_open): Use xstrdup instead of strdup.
5545 (main): Rename to ...
5546 (captured_main): ... this.
5547 (main): New.
5548
8dcc53b3
TT
55492018-06-08 Tom Tromey <tom@tromey.com>
5550
5551 * linux-low.c (linux_low_read_btrace): Update.
5552
c12a5089
SC
55532018-06-04 Stan Cox <scox@redhat.com>
5554
5555 * server.h (struct client_state): New.
5556 * server.c (cont_thread, general_thread, multi_process)
5557 (report_fork_events, report_vfork_events, report_exec_events)
5558 (report_thread_events, swbreak_feature, hwbreak_feature)
5559 (vCont_supported, disable_randomization, pass_signals)
5560 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5561 Moved to client_state.
5562 * remote-utils.c (remote_debug, noack_mode)
5563 (transport_is_reliable): Moved to client_state.
5564 * tracepoint.c (current_traceframe): Moved to client_state.
5565
5566 Update all callers.
5567 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5568 linux-low.c, remote-utils.h, target.c: Use client_state.
5569
122394f1
AH
55702018-05-31 Alan Hayward <alan.hayward@arm.com>
5571
5572 * configure.srv: Add new c/h file.
5573
95228a0d
AH
55742018-05-31 Alan Hayward <alan.hayward@arm.com>
5575
5576 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5577 null VQ.
5578
d8dab6c3
MR
55792018-05-25 Maciej W. Rozycki <macro@mips.com>
5580
5581 * gdb.arch/mips-fpregset-core.exp: New test.
5582 * gdb.arch/mips-fpregset-core.c: New test source.
5583
81e25b7c
EK
55842018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5585
5586 PR server/23198
5587 * hostio.c (require_int): Do not report overflow for integers
5588 between 0xfffffff and 0x7fffffff.
5589
7e947ad3
MR
55902018-05-22 Maciej W. Rozycki <macro@mips.com>
5591
5592 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5593 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5594 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5595 functions.
5596 (the_low_target): Wire them.
5597
1d75a658
PFC
55982018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5599
5600 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5601 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5602 mode. Call collect_register_by_name with vscr using
5603 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5604 (ppc_store_vrregset): Add and set vscr_offset variable as in
5605 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5606 vscr_offset.
5607
d078308a
PFC
56082018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5609
5610 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5611 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5612 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5613
7273b5fc
PFC
56142018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5615
5616 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5617 (ppc_store_vsxregset): Likewise.
5618 (ppc_fill_vrregset): Likewise.
5619 (ppc_store_vrregset): Likewise.
5620 (ppc_fill_evrregset): Likewise.
5621 (ppc_store_evrregset): Likewise.
5622 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5623 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5624 needed.
5625
2e077f5e
PFC
56262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5627
5628 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5629 wordsize of the inferior. Call ppc_linux_target_wordsize.
5630
bd64614e
PFC
56312018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5632
5633 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5634 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5635 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5636 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5637 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5638 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5639 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5640 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5641 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5642 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5643 (tdesc_powerpc_e500l): Remove.
5644 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5645 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5646 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5647 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5648 linux-ppc-tdesc.h.
5649 (ppc_arch_setup): Remove target description matching code. Fill a
5650 ppc_linux_features struct and call ppc_linux_match_description
5651 with it.
5652
75d74cca
MR
56532018-05-22 Maciej W. Rozycki <macro@mips.com>
5654
5655 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5656 width of the requested register exceeds the width of the
5657 `ptrace' data type.
5658 (mips_cannot_store_register): Likewise.
5659
e4439e43
MR
56602018-05-21 Maciej W. Rozycki <macro@mips.com>
5661
5662 * linux-mips-low.c (mips_fetch_register): New function. Update
5663 preceding comment.
5664 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5665 (the_low_target): Wire `mips_fetch_register'.
5666
55271bf9
JB
56672018-05-10 Joel Brobecker <brobecker@adacore.com>
5668
5669 * lynx-i386-low.c (LYNXOS_178): New macro.
5670 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5671 the layout on LynxOS-178.
5672 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5673 handle floating point registers that are not supported by
5674 LynxOS-178.
5675
1a34f210
TT
56762018-05-10 Tom Tromey <tom@tromey.com>
5677
5678 * configure: Rebuild.
5679
190852c8
JB
56802018-05-10 Joel Brobecker <brobecker@adacore.com>
5681
5682 PR server/23158:
5683 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5684 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5685 Use it to set the expedite_regs field in the given tdesc.
5686 * x86-tdesc.h: New file.
5687 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5688 Adjust following the addition of the new expedite_regs parameter
5689 to init_target_desc.
5690 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5691 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5692 (i386_linux_read_description, amd64_linux_read_description):
5693 Adjust following the addition of the new expedite_regs parameter
5694 to init_target_desc.
5695 * lynx-i386-low.c: #include "x86-tdesc.h".
5696 (lynx_i386_arch_setup): Adjust following the addition of the new
5697 expedite_regs parameter to init_target_desc.
5698 * nto-x86-low.c: #include "x86-tdesc.h".
5699 (nto_x86_arch_setup): Adjust following the addition of the new
5700 expedite_regs parameter to init_target_desc.
5701 * win32-i386-low.c: #include "x86-tdesc.h".
5702 (i386_arch_setup): Adjust following the addition of the new
5703 expedite_regs parameter to init_target_desc.
5704
7dbac825
JB
57052018-05-10 Joel Brobecker <brobecker@adacore.com>
5706
5707 PR server/23158:
5708 * win32-low.c (win32_create_inferior): Add call to my_wait
5709 setting last_status global.
5710
906994d9
JB
57112018-05-10 Joel Brobecker <brobecker@adacore.com>
5712
5713 PR server/23158:
5714 * win32-low.c (create_process): Only call gdb_tilde_expand if
5715 inferior_cwd is not NULL.
5716
8ee22052
AB
57172018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5718
5719 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5720 registers to the cache if their values have changed.
5721 (i387_xsave_to_cache): Provide default values for x87 control
5722 registers when these features are available, but disabled.
5723 * regcache.c (supply_register_by_name_zeroed): New function.
5724 * regcache.h (supply_register_by_name_zeroed): Declare new
5725 function.
5726
aff689d3
TT
57272018-05-07 Tom Tromey <tom@tromey.com>
5728
5729 * configure: Rebuild.
5730
85e26832
TT
57312018-05-04 Tom Tromey <tom@tromey.com>
5732
5733 * configure: Rebuild.
5734
a3b60e45
JK
57352018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5736 Pedro Alves <palves@redhat.com>
5737
5738 * linux-aarch64-low.c (aarch64_stopped_data_address):
5739 Likewise.
5740
632e107b
TT
57412018-04-27 Tom Tromey <tom@tromey.com>
5742
5743 * configure: Rebuild.
5744
458412c3
TT
57452018-04-23 Tom Tromey <tom@tromey.com>
5746
5747 * configure: Rebuild.
5748
f31c089e
SM
57492018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5750
5751 * Makefile.in (depcomp): Add "..".
5752 (all_deps_files): New and use it.
5753
b319b098
AH
57542018-04-18 Alan Hayward <alan.hayward@arm.com>
5755
5756 * configure.srv (aarch64*-*-linux*): Don't include xml.
5757 (i[34567]86-*-cygwin*): Likewise.
5758 (i[34567]86-*-linux*): Likewise.
5759 (i[34567]86-*-lynxos*): Likewise.
5760 (i[34567]86-*-mingw32ce*): Likewise.
5761 (i[34567]86-*-mingw*): Likewise.
5762 (i[34567]86-*-nto*): Likewise.
5763 (tic6x-*-uclinux): Likewise.
5764 (x86_64-*-linux*): Likewise.
5765 (x86_64-*-mingw*): Likewise.
5766 (x86_64-*-cygwin*): Likewise.
5767
3b74854b
AH
57682018-04-18 Alan Hayward <alan.hayward@arm.com>
5769
5770 * tdesc.c: Remove xml parameter.
5771
e98577a9
AH
57722018-04-18 Alan Hayward <alan.hayward@arm.com>
5773
5774 * server.c (get_features_xml): Remove cast.
5775 * tdesc.c (void target_desc::accept): Fill in function.
5776 (tdesc_get_features_xml): Remove old xml creation.
5777 (print_xml_feature::visit_pre): Add xml vistor.
5778 * tdesc.h (struct target_desc): Make xmltarget mutable.
5779 (tdesc_get_features_xml): Remove declaration.
5780
d278f585
AH
57812018-04-18 Alan Hayward <alan.hayward@arm.com>
5782
5783 * tdesc.c (tdesc_architecture_name): Add new function.
5784 (tdesc_osabi_name): Likewise.
5785 (tdesc_get_features_xml): Use new functions.
5786
eee8a18d
AH
57872018-04-18 Alan Hayward <alan.hayward@arm.com>
5788
5789 * tdesc.c (tdesc_create_flags): Remove.
5790 (tdesc_add_flag): Likewise.
5791 (tdesc_named_type): Likewise.
5792 (tdesc_create_union): Likewise.
5793 (tdesc_create_struct): Likewise.
5794 (tdesc_create_vector): Likewise.
5795 (tdesc_add_bitfield): Likewise.
5796 (tdesc_add_field): Likewise.
5797 (tdesc_set_struct_size): Likewise.
5798
82ec9bc7
AH
57992018-04-18 Alan Hayward <alan.hayward@arm.com>
5800
5801 * tdesc.c (~target_desc): Remove implictly deleted items.
5802 (init_target_desc): Iterate all features.
5803 (tdesc_get_features_xml): Use vector.
5804 (tdesc_create_feature): Create feature.
5805 * tdesc.h (tdesc_feature) Remove
5806 (target_desc): Add features.
5807
ea3e7d71
AH
58082018-04-18 Alan Hayward <alan.hayward@arm.com>
5809
5810 * Makefile.in: Add common/tdesc.c
5811 * tdesc.c (init_target_desc): init all reg_defs from register
5812 vector.
5813 (tdesc_create_reg): Create tdesc_reg.
5814 * tdesc.h (tdesc_feature): Add register vector.
5815
17d08cd4
SM
58162018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5817
5818 * tdesc.h (struct target_desc) <features>: Change type to
5819 std::vector<std::string>.
5820 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5821 changes.
5822 (tdesc_get_features_xml): Likewise.
5823 (tdesc_create_feature): Likewise.
5824
5cd3e386
AH
58252018-03-26 Alan Hayward <alan.hayward@arm.com>
5826
5827 * regcache.c (find_register_by_number): Return a ref.
5828 (find_regno): Use references.
5829 (register_size): Likewise.
5830 (register_data): Likewise.
5831 * tdesc.c (target_desc::~target_desc): Remove free calls.
5832 (target_desc::operator==): Use std::vector compare.
5833 (init_target_desc): Use reference.
5834 (tdesc_create_reg): Use reg constructors.
5835 * tdesc.h (struct target_desc): Replace pointer with object.
5836
dff7492c
AH
58372018-03-23 Alan Hayward <alan.hayward@arm.com>
5838
5839 * regcache.c (find_register_by_number): Make static.
5840 (find_regno): Use find_register_by_number
5841 * regcache.h (struct reg): Remove declaration.
5842
d80e5242
AH
58432018-03-23 Alan Hayward <alan.hayward@arm.com>
5844
5845 * tdesc.c (target_desc::~target_desc): Move to here.
5846 (target_desc::operator==): Likewise.
5847 * tdesc.h (target_desc::~target_desc): Move from here.
5848 (target_desc::operator==): Likewise.
5849
f69c5afb
AA
58502018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5851
5852 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5853
ce29f843
AA
58542018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5855
5856 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5857 S390_TDESC_GS.
5858 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5859 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5860 and init_registers_s390_gs_linux64.
5861
c49bd90b
AA
58622018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5863
5864 * linux-s390-low.c (s390_fill_gs): Remove function.
5865 (s390_fill_gsbc): Remove function.
5866 (s390_regsets): Set fill functions for the guarded storage regsets
5867 to NULL.
5868
7edb9bd3
AA
58692018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5870
5871 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5872 the word size. Add comment.
5873 (s390_get_wordsize): New function.
5874 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5875 pswm with it. Instead, use s390_get_wordsize to determine the
5876 word size first and derive the correct tdesc from that directly.
5877
39be3c7e
SM
58782018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5879
5880 * Makefile.in: Include silent-rules.mk.
5881 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5882 (COMPILE): Add ECHO_CXX.
5883 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5884 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5885 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5886 (version-generated.c): Add ECHO_GEN.
5887 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5888 (IPAGENT_COMPILE): Add ECHO_CXX.
5889 (%-generated.c): Add ECHO_REGDAT.
5890
3ae9ce5d
TT
58912018-03-14 Tom Tromey <tom@tromey.com>
5892
5893 PR cli/14977:
5894 * ax.c (ax_printf): Special case for NULL.
5895
e6a58aa8
SM
58962018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * linux-low.c (linux_qxfer_libraries_svr4): Use
5899 xml_escape_text_append.
5900
f6e8a41e
SM
59012018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5902
5903 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5904
b9671caf
SM
59052018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * server.c (handle_general_set): Remove unnecessary xstrdup.
5908
e80aaf61
SM
59092018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * server.c (parse_debug_format_options): Adjust to
5912 delim_string_to_char_ptr_vec changes.
5913 * thread-db.c (thread_db_load_search): Adjust to
5914 dirnames_to_char_ptr_vec changes.
5915
b1223e78
MM
59162018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5917
5918 * target.h (target_enable_btrace, target_disable_btrace)
5919 (target_read_btrace, target_read_btrace_conf): Turn macro into
5920 inline function. Throw error if target method is not defined.
5921 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5922 check for btrace target method. Be prepared to handle exceptions
5923 from btrace target methods.
5924
81561546
SDJ
59252018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5926
5927 * server.c (captured_main): Change order of error message printed
5928 when the current working directory cannot be found.
5929
25e3c82c
SDJ
59302018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5931
5932 * server.c: Include "filenames.h" and "pathstuff.h".
5933 (program_name): Delete variable.
5934 (program_path): New anonymous class.
5935 (get_exec_wrapper): Use "program_path" instead of
5936 "program_name".
5937 (handle_v_run): Likewise.
5938 (captured_main): Likewise.
5939 (process_serial_event): Likewise.
5940
b4987c95
SDJ
59412018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5942
5943 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5944 (OBJS): Add "pathstuff.o".
5945 * server.c (current_directory): New global variable.
5946 (captured_main): Initialize "current_directory".
5947
f46cd62a
AH
59482018-02-26 Alan Hayward <alan.hayward@arm.com>
5949
5950 * tdesc.c: Use common/tdesc.h.
5951 * tdesc.h: Likewise.
5952
a543c5ca
AH
59532018-02-20 Alan Hayward <alan.hayward@arm.com>
5954 Simon Marchi <simon.marchi@ericsson.com>
5955
5956 * Makefile.in: Switch order of make rules.
5957
b5884fa7
AH
59582018-02-19 Alan Hayward <alan.hayward@arm.com>
5959
5960 * Makefile.in: Add common directory in build.
5961 * configure.ac: Add common reference.
5962 * configure: Regenerate.
5963
de6242d3
MM
59642018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5965
5966 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5967 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5968 * spu-low.c (spu_target_ops): Likewise.
5969 * win32-low.c (win32_target_ops): Likewise.
5970 * server.c (supported_btrace_packets): Report packets unconditionally.
5971 * target.h (target_ops) <supports_btrace>: Remove.
5972 (target_supports_btrace): Remove.
5973
9ee23a85
MM
59742018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5975
5976 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5977 (handle_btrace_disable): Change return type to void. Use exceptions
5978 to report errors.
5979 (handle_btrace_general_set): Catch exception and copy message to
5980 return message.
5981
8ce47547
TT
59822018-02-08 Tom Tromey <tom@tromey.com>
5983
5984 * linux-low.c (install_software_single_step_breakpoints): Use
5985 make_scoped_restore.
5986 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5987 (do_restore_current_thread_cleanup): Remove.
5988 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5989 declare.
5990
45dd3607
TT
59912018-02-08 Tom Tromey <tom@tromey.com>
5992
5993 * mem-break.c (set_raw_breakpoint_at): Use
5994 gdb::unique_xmalloc_ptr.
5995
e671cd59
PA
59962018-01-30 Pedro Alves <palves@redhat.com>
5997
5998 PR gdb/13211
5999 * target.c (target_terminal::terminal_state): Rename to ...
6000 (target_terminal::m_terminal_state): ... this.
6001
a0aad537
JC
60022018-01-19 James Clarke <jrtc27@jrtc27.com>
6003
6004 * linux-low.c (handle_extended_wait): Surround call to
6005 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6006
4d9b86e1
SM
60072018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6010 linux_ptrace_attach_fail_reason_string now returning an
6011 std::string.
6012 (linux_attach): Likewise.
6013 * thread-db.c (attach_thread): Likewise.
6014
f517c180
EA
60152018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6016
6017 PR gdb/21559
6018 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6019 checking for fs_base/gs_base fields in struct user_regs_struct.
6020 * configure: Regenerate.
6021
9a70f35c
YQ
60222018-01-16 Yao Qi <yao.qi@linaro.org>
6023
6024 PR gdb/18749
6025 * linux-low.c (fetch_register): Call supply_register instead of
6026 error.
6027
605fd3c6
YQ
60282018-01-08 Yao Qi <yao.qi@linaro.org>
6029 Simon Marchi <simon.marchi@ericsson.com>
6030
6031 * Makefile.in (OBS): Remove selftest.o.
6032 * configure.ac: Set srv_selftest_objs if $development is true.
6033 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6034 * configure: Re-generated.
6035 * server.c (captured_main): Wrap variable selftest_filter with
6036 GDB_SELF_TEST.
6037
2cc05030
SM
60382018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * server.c (parse_debug_format_options): Return std::string.
6041 (handle_monitor_command, captured_main): Adjust.
6042
e379cee6
PA
60432018-01-05 Pedro Alves <palves@redhat.com>
6044
6045 PR gdb/18653
6046 * server.c (captured_main): Pass quiet=false to
6047 save_original_signals_state.
6048
82e1e79a
JB
60492018-01-01 Joel Brobecker <brobecker@adacore.com>
6050
6051 * gdbreplay.c (gdbreplay_version): Update copyright year in
6052 version message.
6053 * server.c (gdbserver_version): Likewise.
6054
8e481c3b
TT
60552017-12-08 Tom Tromey <tom@tromey.com>
6056
6057 * ax.c (ax_printf): Update.
6058
a8806230
YQ
60592017-12-07 Yao Qi <yao.qi@linaro.org>
6060
6061 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6062 aarch64_linux_read_description.
6063 * linux-amd64-ipa.c (idx2mask): New array.
6064 (get_ipa_tdesc): Move idx2mask out.
6065 (initialize_low_tracepoint): Initialize target descriptions.
6066 * linux-i386-ipa.c (idx2mask): New array.
6067 (get_ipa_tdesc): Move idx2mask out.
6068 (initialize_low_tracepoint): Initialize target descriptions.
6069
d4a0e8b5
SM
60702017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * tdesc.c (struct tdesc_type): Change return type.
6073 (tdesc_add_flag): Change parameter type.
6074 (tdesc_add_bitfield): Likewise.
6075 (tdesc_add_field): Likewise.
6076 (tdesc_set_struct_size): Likewise.
6077
798a7429
SM
60782017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6079
6080 * regcache.c (registers_to_string): Remove unused variable.
6081
c0e15c9b
SM
60822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6083
6084 * inferiors.c (for_each_inferior_with_data): Remove.
6085 * inferiors.h (for_each_inferior_with_data): Remove.
6086 * server.c (handle_qxfer_threads_worker): Change parameter type.
6087 (handle_qxfer_threads_proper): Use for_each_thread.
6088
f0045347
SM
60892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6090
6091 * inferiors.c (for_each_inferior): Remove.
6092 (clear_inferiors): Use for_each_thread.
6093 * inferiors.h (for_each_inferior): Remove.
6094 * linux-low.c (linux_wait_for_event_filtered): Use
6095 for_each_thread.
6096 (linux_stabilize_threads): Likewise.
6097 * regcache.c (regcache_release): Likewise.
6098 * server.c (gdb_wants_all_threads_stopped): Likewise.
6099 (clear_pending_status_callback): Remove.
6100 (handle_status): Use for_each_thread.
6101 (captured_main): Likewise.
6102 * win32-low.c (child_init_thread_list): Likewise.
6103 (win32_clear_inferiors): Likewise.
6104 (fake_breakpoint_event): Likewise.
6105
9521758b
SM
61062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 * inferiors.h (find_inferior): Remove.
6109 * inferiors.c (find_inferior): Remove.
6110
8f86d7aa
SM
61112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * linux-low.c (resume_status_pending_p): Update comment.
6114 (need_step_over_p): Update comment.
6115
e2b44075
SM
61162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * linux-low.c (proceed_one_lwp): Return void, change parameter
6119 type.
6120 (unsuspend_and_proceed_one_lwp): Likewise.
6121 (proceed_all_lwps): Use for_each_thread.
6122 (unstop_all_lwps): Likewise.
6123
c80825ff
SM
61242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * linux-low.c (linux_resume_one_thread): Return void, take
6127 parameter directly.
6128 (linux_resume): Use for_each_thread.
6129
df3e4dbe
SM
61302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6131
6132 * linux-low.c (send_sigstop_callback): Return void, change
6133 parameter type. Rename to...
6134 (send_sigstop): ... this.
6135 (suspend_and_send_sigstop_callback): Return void, change parameter
6136 type. Rename to...
6137 (suspend_and_send_sigstop): ... this.
6138 (stop_all_lwps): Use for_each_thread.
6139
5a6b0a41
SM
61402017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6141
6142 * linux-low.c (lwp_running): Return bool, remove unused
6143 argument.
6144 (linux_stabilize_threads): Use find_thread.
6145
39a64da5
SM
61462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * linux-low.c (select_singlestep_lwp_callback): Remove.
6149 (count_events_callback): Remove.
6150 (select_event_lwp_callback): Remove.
6151 (select_event_lwp): Use find_thread/for_each_thread.
6152
a1385b7b
SM
61532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6154
6155 * linux-low.c (not_stopped_callback): Return bool, take filter
6156 argument directly.
6157 (linux_wait_for_event_filtered): Use find_thread.
6158 (linux_wait_1): Likewise.
6159
454296a2
SM
61602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6161
6162 * linux-low.c (same_lwp): Remove.
6163 (find_lwp_pid): Use find_thread.
6164
6b2a85da
SM
61652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * linux-low.c (delete_lwp_callback): Remove.
6168 (linux_mourn): Use for_each_thread.
6169
798a38e8
SM
61702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6173 args parameter, don't check for pid.
6174 (linux_detach): Use for_each_thread.
6175
e4eb0dec
SM
61762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6177
6178 * linux-low.c (struct counter): Remove.
6179 (second_thread_of_pid_p): Remove.
6180 (last_thread_of_process_p): Use find_thread.
6181
83e1b6c1
SM
61822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * inferiors.c (find_inferior_in_random): Remove.
6185 * inferiors.h (find_inferior_in_random): Remove.
6186 * linux-low.c (status_pending_p_callback): Return bool, accept
6187 parameter ptid directly.
6188 (linux_wait_for_event_filtered): Use find_thread_in_random.
6189 (linux_wait_1): Likewise.
6190
8dc7b443
SM
61912017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6192
6193 * inferiors.c (find_inferior_id): Remove.
6194 (find_thread_ptid): Move implemention from find_inferior_id to
6195 here.
6196 * inferiors.h (find_inferior_id): Remove.
6197 * server.c (handle_status): Use find_thread_ptid.
6198 (process_serial_event): Likewise.
6199 * thread-db.c (find_one_thread): Likewise.
6200 (thread_db_thread_handle): Likewise.
6201 * win32-low.c (thread_rec): Likewise.
6202 (child_delete_thread): Likewise.
6203 (win32_thread_alive): Likewise.
6204 (get_child_debug_event): Likewise.
6205
da25033c
SM
62062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * linux-mips-low.c (update_watch_registers_callback): Return
6209 void, remove pid_p parameter, don't check for pid.
6210 (mips_insert_point, mips_remove_point): Use for_each_thread.
6211
c91bb56b
SM
62122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6213
6214 * lynx.low (lynx_delete_thread_callback): Remove.
6215 (lynx_mourn): Use for_each_thread.
6216
634a3254
SM
62172017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * regcache.c (regcache_invalidate_one): Remove.
6220 (regcache_invalidate_pid): use for_each_thread.
6221
41272101
TT
62222017-11-26 Tom Tromey <tom@tromey.com>
6223
6224 * linux-low.c (linux_create_inferior): Update.
6225
f5291a6f
UW
62262017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6227
6228 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6229
6654d750
AH
62302017-11-24 Alan Hayward <alan.hayward@arm.com>
6231
6232 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6233 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6234 * linux-aarch64-tdesc-selftest.c: New file.
6235 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6236
62372017-11-24 Alan Hayward <alan.hayward@arm.com>
6238
6239 * configure.srv: Add new file.
6240 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6241 * linux-aarch64-tdesc-selftest.c: New file.
6242 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6243
49bdb7ee
AH
62442017-11-24 Alan Hayward <alan.hayward@arm.com>
6245
6246 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6247 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6248 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6249
d6d7ce56
AH
62502017-11-24 Alan Hayward <alan.hayward@arm.com>
6251
6252 * configure.srv: Add new files.
6253 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6254 aarch64_linux_read_description.
6255 * linux-aarch64-low.c (aarch64_linux_read_description):
6256 Merge with aarch64_arch_setup.
6257 (aarch64_arch_setup): Call aarch64_linux_read_description.
6258 * linux-aarch64-tdesc.c: New file.
6259 * linux-aarch64-tdesc.h: New file.
6260
506fe5f4
YQ
62612017-11-24 Yao Qi <yao.qi@linaro.org>
6262
6263 * configure.srv: Set $srv_regobj for tic6x-linux.
6264 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6265 (tic6x_read_description): Move some code to tic6x_arch_setup.
6266 (tic6x_tdesc_test): New function.
6267 (initialize_low_arch): Call selftests::register_test.
6268
29f9a567
YQ
62692017-11-22 Yao Qi <yao.qi@linaro.org>
6270
6271 * remote-utils.c (prepare_resume_reply): Use memcpy.
6272
578290ec
SM
62732017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6274
6275 * linux-low.c (kill_one_lwp_callback): Return void, take
6276 argument directly, don't filter on pid.
6277 (linux_kill): Use for_each_thread.
6278
eca55aec
SM
62792017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6280
6281 * linux-low.c (need_step_over_p): Return bool, remove dummy
6282 argument.
6283 (linux_resume, proceed_all_lwps): Use find_thread.
6284
25c28b4d
SM
62852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6286
6287 * linux-low.c (resume_status_pending_p): Return bool, remove
6288 flag_p argument.
6289 (linux_resume): Use find_thread.
6290
5fdda392
SM
62912017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6292
6293 * linux-low.c (struct thread_resume_array): Remove.
6294 (linux_set_resume_request): Return void, take arguments
6295 directly.
6296 (linux_resume): Use for_each_thread.
6297
fcb056a5
SM
62982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6299
6300 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6301 return bool, remove data argument.
6302 (linux_stabilize_threads): Use find_thread.
6303
139720c5
SM
63042017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6305
6306 * linux-low.c (unsuspend_one_lwp): Remove.
6307 (unsuspend_all_lwps): Use for_each_thread, inline code from
6308 unsuspend_one_lwp.
6309
6d1e5673
SM
63102017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6311
6312 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6313 * linux-low.c (struct iterate_over_lwps_args): Remove.
6314 (iterate_over_lwps_filter): Remove.
6315 (iterate_over_lwps): Use find_thread.
6316
bbf550d5
SM
63172017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6318
6319 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6320 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6321 code from reset_lwp_ptrace_options_callback.
6322
00192f77
SM
63232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6324
6325 * linux-arm-low.c (struct update_registers_data): Remove.
6326 (update_registers_callback): Return void, take arguments
6327 directly, don't check thread's pid.
6328 (arm_insert_point, arm_remove_point): Use for_each_thread.
6329
2bee2b6c
SM
63302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6331
6332 * win32-low.c (continue_one_thread): Return void, take argument
6333 directly.
6334 (child_continue): Use for_each_thread.
6335
0b360f19
SM
63362017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6337
6338 * win32-i386-low.c (update_debug_registers_callback): Rename
6339 to ...
6340 (update_debug_registers): ... this, return void, remove pid_p arg.
6341 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6342
f27866ba
SM
63432017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6344
6345 * inferiors.h (struct process_info): Add constructor, initialize
6346 fields..
6347 <syscalls_to_catch>: Change type to std::vector<int>.
6348 * inferiors.c (add_process): Allocate process_info with new.
6349 (remove_process): Free process_info with delete.
6350 * linux-low.c (handle_extended_wait): Adjust.
6351 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6352 * server.c (handle_general_set): Adjust.
6353
e849ea89
PA
63542017-11-16 Pedro Alves <palves@redhat.com>
6355
6356 * remote-utils.c (remote_close): Block SIGIO signals instead of
6357 uninstalling the SIGIO handler.
6358
1d0aa65c
AH
63592017-11-16 Alan Hayward <alan.hayward@arm.com>
6360
6361 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6362
3491a34c
YQ
63632017-11-16 Yao Qi <yao.qi@linaro.org>
6364
6365 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6366 (tic6x_store_gregset): Likewise.
6367 (tic6x_usrregs_info): Move it up.
6368
a602f924
AH
63692017-11-15 Alan Hayward <alan.hayward@arm.com>
6370
6371 * Makefile.in: Update arch rules.
6372 * configure.srv: Explicitly mark arch/ files.
6373
5616b6c3
AS
63742017-11-13 Andreas Schwab <schwab@suse.de>
6375
6376 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6377 function.
6378 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6379
d1928160
PA
63802017-11-06 Pedro Alves <palves@redhat.com>
6381
6382 * config.in, configure: Regenerate.
6383
bac608e7
SM
63842017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * target.c (struct thread_search): Remove.
6387 (thread_search_callback): Remove.
6388 (prepare_to_access_memory): Use for_each_thread instead of
6389 find_inferior. Inline code from thread_search_callback.
6390
eaddb425
SM
63912017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6392
6393 * server.c (struct visit_actioned_threads_data): Remove.
6394 (visit_actioned_threads): Change prototype to take arguments
6395 directly.
6396 (resume): Use find_thread instead of find_inferior.
6397
99078d34
SM
63982017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6399
6400 * server.c (queue_stop_reply_callback): Change prototype, return
6401 void.
6402 (find_status_pending_thread_callback): Remove.
6403 (handle_status): Replace find_inferior with find_thread and
6404 for_each_thread.
6405
cc628f3d
AH
64062017-10-25 Alan Hayward <alan.hayward@arm.com>
6407
6408 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6409 with REGNO.
6410 (aarch64_store_gregset): Likewise.
6411 (aarch64_fill_fpregset): Likewise.
6412 (aarch64_store_fpregset): Likewise.
6413
4d3bb80e
SM
64142017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6415
6416 * gdbthread.h (find_thread, for_each_thread): New functions.
6417 * inferiors.c (thread_of_pid): Remove.
6418 (find_any_thread_of_pid): Use find_thread.
6419 * linux-low.c (num_lwps): Use for_each_thread.
6420
7a7cdfa0
YQ
64212017-10-17 Yao Qi <yao.qi@linaro.org>
6422
6423 * Makefile.in: Remove one rule.
6424 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6425
e675d170
YQ
64262017-10-17 Yao Qi <yao.qi@linaro.org>
6427
6428 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6429 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6430
7eb4e0f9
YQ
64312017-10-17 Yao Qi <yao.qi@linaro.org>
6432
6433 * configure.srv: Rename arm.o with arch/arm.o.
6434
60d6cfc9
YQ
64352017-10-17 Yao Qi <yao.qi@linaro.org>
6436
6437 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6438 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6439 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6440 (arch-i386.o, arch-amd64.o): Remove rules.
6441 (arch/%.o): New rule.
6442 Update POSTCOMPILE and COMPILE.pre.
6443 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6444 * configure: Re-generated.
6445 * configure.srv: Replace arch-i386.o with arch/i386.o.
6446 Replace arch-amd64.o with arch/amd64.o.
6447
5bfda255
YQ
64482017-10-16 Yao Qi <yao.qi@linaro.org>
6449
6450 * configure: Regenerated.
6451
9c80ecd6
SM
64522017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6453
6454 * inferiors.h: (struct inferior_list): Remove.
6455 (struct inferior_list_entry); Remove.
6456 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6457 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6458 get_first_inferior): Remove.
6459 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6460 find_inferior_id, find_inferior_in_random): Change signature.
6461 * inferiors.c (all_threads): Change type to
6462 std::list<thread_info *>.
6463 (get_thread): Remove macro.
6464 (find_inferior, find_inferior_id): Change signature, implement
6465 using find_thread.
6466 (find_inferior_in_random): Change signature, implement using
6467 find_thread_in_random.
6468 (for_each_inferior, for_each_inferior_with_data): Change
6469 signature, implement using for_each_thread.
6470 (add_inferior_to_list, remove_inferior): Remove.
6471 (add_thread, get_first_thread, thread_of_pid,
6472 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6473 (get_first_inferior, one_inferior_p, clear_inferior_list):
6474 Remove.
6475 (clear_inferiors, get_thread_process): Update.
6476 * gdbthread.h: Include <list>.
6477 (struct thread_info) <entry>: Remove field.
6478 <id>: New field.
6479 (all_threads): Change type to std::list<thread_info *>.
6480 (get_first_inferior): Add doc.
6481 (find_thread, for_each_thread, find_thread_in_random): New
6482 functions.
6483 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6484 * linux-arm-low.c (update_registers_callback): Update.
6485 * linux-low.c (second_thread_of_pid_p): Update.
6486 (kill_one_lwp_callback, linux_detach_lwp_callback,
6487 delete_lwp_callback, status_pending_p_callback, same_lwp,
6488 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6489 iterate_over_lwps, not_stopped_callback,
6490 resume_stopped_resumed_lwps, count_events_callback,
6491 select_singlestep_lwp_callback, select_event_lwp_callback,
6492 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6493 suspend_and_send_sigstop_callback, wait_for_sigstop,
6494 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6495 lwp_running, linux_set_resume_request, resume_status_pending_p,
6496 need_step_over_p, start_step_over, linux_resume_one_thread,
6497 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6498 reset_lwp_ptrace_options_callback): Update.
6499 * linux-mips-low.c (update_watch_registers_callback): Update.
6500 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6501 Update.
6502 (free_register_cache_thread_one): Remove.
6503 (regcache_release): Update.
6504 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6505 handle_qxfer_threads_worker): Update.
6506 (handle_query): Update, use list iterator.
6507 (visit_actioned_threads, handle_pending_status,
6508 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6509 clear_pending_status_callback, set_pending_status_callback,
6510 find_status_pending_thread_callback, handle_status,
6511 process_serial_event): Update.
6512 * target.c (thread_search_callback): Update.
6513 * thread-db.c (thread_db_get_tls_address): Update.
6514 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6515 Update.
6516 * win32-i386-low.c (update_debug_registers_callback): Update.
6517 * win32-low.c (delete_thread_info, child_delete_thread,
6518 continue_one_thread, suspend_one_thread,
6519 get_child_debug_event): Adjust.
6520
9179355e
SM
65212017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6522
6523 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6524 * inferiors.h: Include <list>.
6525 (struct process_info) <entry>: Remove field.
6526 <pid>: New field.
6527 (pid_of): Change macro to function.
6528 (ptid_of, lwpid_of): Remove macro.
6529 (all_processes): Change type to std::list<process_info *>.
6530 (ALL_PROCESSES): Remove macro.
6531 (for_each_process, find_process): New function.
6532 * inferiors.c (all_processes): Change type to
6533 std::list<process_info *>.
6534 (find_thread_process): Adjust.
6535 (add_process): Likewise.
6536 (remove_process): Likewise.
6537 (find_process_pid): Likewise.
6538 (get_first_process): Likewise.
6539 (started_inferior_callback): Remove.
6540 (have_started_inferiors_p): Adjust.
6541 (attached_inferior_callback): Remove.
6542 (have_attached_inferiors_p): Adjust.
6543 * linux-low.c (check_zombie_leaders): Likewise.
6544 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6545 (x86_linux_update_xmltarget): Adjust.
6546 * server.c (handle_query): Likewise.
6547 (gdb_reattached_process): Remove.
6548 (handle_status): Adjust.
6549 (kill_inferior_callback): Likewise.
6550 (detach_or_kill_inferior): Remove.
6551 (print_started_pid): Likewise.
6552 (print_attached_pid): Likewise.
6553 (detach_or_kill_for_exit): Update.
6554 (process_serial_event): Likewise.
6555 * linux-arm-low.c (arm_new_fork): Likewise.
6556
c9cb8905
SM
65572017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6558
6559 * dll.h: Include <list>.
6560 (struct dll_info): Add constructor.
6561 <entry>: Remove field.
6562 (all_dlls): Change type to std::list<dll_info>.
6563 * dll.c: Include <algorithm>.
6564 (get_dll): Remove macro.
6565 (all_dlls): Change type to std::list<dll_info *>.
6566 (free_one_dll): Remove.
6567 (match_dll): Likewise.
6568 (loaded_dll): Adjust.
6569 (unloaded_dll): Adjust to all_dlls type change, use
6570 std::find_if. Inline code from match_dll.
6571 (clear_dlls): Adjust to all_dlls type change.
6572 * server.c (emit_dll_description): Remove.
6573 (handle_qxfer_libraries): Adjust to all_dlls type change,
6574 integrate emit_dll_description's functionality.
6575
04ec7890
SM
65762017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6577
6578 * linux-low.h (struct linux_target_ops) <delete_process>: New
6579 field.
6580 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6581 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6582 (struct linux_target_ops): Add delete_process callback.
6583 * linux-arm-low.c (arm_delete_process): New.
6584 (struct linux_target_ops): Add delete_process callback.
6585 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6586 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6587 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6588 * linux-mips-low.c (mips_linux_delete_process): New.
6589 (struct linux_target_ops): Add delete_process callback.
6590 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6591 * linux-s390-low.c (struct linux_target_ops): Likewise.
6592 * linux-sh-low.c (struct linux_target_ops): Likewise.
6593 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6594 * linux-tile-low.c (struct linux_target_ops): Likewise.
6595 * linux-x86-low.c (x86_linux_delete_process): New.
6596 (struct linux_target_ops): Add delete_process callback.
6597 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6598
466eecee
SM
65992017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6600
6601 * linux-aarch64-low.c (the_low_target): Add thread delete
6602 callback.
6603 * linux-arm-low.c (arm_delete_thread): New function.
6604 (the_low_target): Add thread delete callback.
6605 * linux-bfin-low.c (the_low_target): Likewise.
6606 * linux-crisv32-low.c (the_low_target): Likewise.
6607 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6608 set.
6609 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6610 field.
6611 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6612 * linux-mips-low.c (mips_linux_delete_thread): New function.
6613 (the_low_target): Add thread delete callback.
6614 * linux-ppc-low.c (the_low_target): Likewise.
6615 * linux-s390-low.c (the_low_target): Likewise.
6616 * linux-sh-low.c (the_low_target): Likewise.
6617 * linux-tic6x-low.c (the_low_target): Likewise.
6618 * linux-tile-low.c (the_low_target): Likewise.
6619 * linux-x86-low.c (the_low_target): Likewise.
6620 * linux-xtensa-low.c (the_low_target): Likewise.
6621
b79f7801
YZ
66222017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6623
6624 * win32-low.c: Include "common-inferior.h".
6625
bc3b087d
SDJ
66262017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6627
6628 * inferiors.c (set_inferior_cwd): New function.
6629 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6630 (handle_query): Inform that QSetWorkingDir is supported.
6631 * win32-low.c (create_process): Pass the inferior's cwd to
6632 CreateProcess.
6633
d092c5a2
SDJ
66342017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6635
6636 * inferiors.c (current_inferior_cwd): New global variable.
6637 (get_inferior_cwd): New function.
6638 * inferiors.h (struct process_info) <cwd>: New field.
6639
7da0a886
SDJ
66402017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6641
6642 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6643 (OBS): Add gdb_tilde_expand.o.
6644
289a6840
SM
66452017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6646
6647 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6648 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6649
256642e8
PA
66502017-09-29 Pedro Alves <palves@redhat.com>
6651
6652 * ax.c (gdb_parse_agent_expr): Constify.
6653 * ax.h (gdb_parse_agent_expr): Constify.
6654 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6655 Constify.
6656 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6657 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6658 * remote-utils.h (read_ptid): Constify.
6659 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6660 (process_point_options, process_serial_event): Constify.
6661 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6662 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6663 (cmd_qtbuffer): Constify.
6664
5b9ca4d4
PA
66652017-09-29 Pedro Alves <palves@redhat.com>
6666
6667 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6668 fails.
6669
94c207e0
PA
66702017-09-29 Pedro Alves <palves@redhat.com>
6671
6672 * linux-low.c (handle_extended_wait): Pass parent thread instead
6673 of process to thread_db_notice_clone.
6674 * linux-low.h (thread_db_notice_clone): Replace parent process
6675 parameter with parent thread parameter.
6676 * thread-db.c (find_one_thread): Add comment.
6677 (thread_db_notice_clone): Replace parent process parameter with
6678 parent thread parameter. Temporarily switch to the parent thread.
6679
75352e28
SDJ
66802017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6681
6682 * gdbthread.h: Include "common-gdbthread.h".
6683 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6684 "if" when validating the ptid.
6685 * remote-utils.c: Include "gdbthread.h".
6686 (prepare_resume_reply): Use "switch_to_thread".
6687 * target.c (done_accessing_memory): Likewise.
6688
ad339634
AA
66892017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6690
6691 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6692 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6693 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6694 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6695 s390x-gs-linux64-ipa.o to ipa_obj.
6696 * linux-s390-low.c (HWCAP_S390_GS): New define.
6697 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6698 New functions.
6699 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6700 (s390_arch_setup): Check for guarded-storage support and choose
6701 appropriate tdesc.
6702 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6703 init_registers_s390x_gs_linux64.
6704 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6705 enum value.
6706 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6707 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6708
cc4d742f
SM
67092017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6710
6711 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6712
f6327dcb
KB
67132017-09-21 Kevin Buettner <kevinb@redhat.com>
6714
6715 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6716 (thread_db_thread_handle): Declare.
6717 * linux-low.c (linux_target_ops): Initialize thread_handle.
6718 * server.c (handle_qxfer_threads_worker): Add support for
6719 "handle" attribute.
6720 * target.h (struct target_ops): Add new function pointer,
6721 thread_handle.
6722 (target_thread_handle): Define.
6723 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6724 field in lwp.
6725 (thread_db_thread_handle): New function.
6726
86299109
KB
67272017-09-21 Kevin Buettner <kevinb@redhat.com>
6728
6729 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6730 * linux-low.h (thread_db_notice_clone): Declare.
6731 * thread-db.c (thread_db_notice_clone): New function.
6732
f557a88a
PA
67332017-09-21 Pedro Alves <palves@redhat.com>
6734
6735 * server.c (gdb_read_memory, handle_status, process_serial_event)
6736 (handle_serial_event, handle_target_event): Adjust to
6737 set_desired_thread prototype change.
6738 * target.c (set_desired_thread): Remove 'use_general' parameter
6739 and adjust.
6740 * target.h (set_desired_thread): Remove 'use_general' parameter.
6741
223ffa71
TT
67422017-09-20 Tom Tromey <tom@tromey.com>
6743
6744 * target.c (target_terminal::terminal_state): Define.
6745 (target_terminal::init): Rename from target_terminal_init.
6746 (target_terminal::inferior): Rename from
6747 target_terminal_inferior.
6748 (target_terminal::ours): Rename from target_terminal_ours.
6749 (target_terminal::ours_for_output, target_terminal::info): New.
6750
04fd3ba9
SM
67512017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6752
6753 * server.c (accumulate_file_name_length): Remove.
6754 (emit_dll_description): Adjust to std::string change.
6755 (handle_qxfer_libraries): Use std::string to hold document.
6756
5e187554
SM
67572017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6758
6759 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6760 return type of xml_escape_text.
6761 * server.c (emit_dll_description): Likewise.
6762
1526853e
SM
67632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6764
6765 * server.c (captured_main): Accept argument for --selftest.
6766 Update run_tests call.
6767 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6768 when registering selftests.
6769
c4dfafab
SDJ
67702017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6771
6772 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6773 instead of "VEC" for "target_desc.reg_defs".
6774 (regcache_cpy): Likewise.
6775 (registers_to_string): Likewise.
6776 (registers_from_string): Likewise.
6777 (find_regno): Likewise.
6778 (supply_regblock): Likewise.
6779 (regcache_raw_read_unsigned): Likewise.
6780 * tdesc.c (init_target_desc): Likewise.
6781 (tdesc_create_reg): Likewise.
6782 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6783 (struct target_desc) <reg_defs>: Convert to "std::vector".
6784 (target_desc): Do not initialize "reg_defs".
6785 (~target_desc): Update code to use "std::vector" instead of "VEC"
6786 for "target_desc.reg_defs".
6787 (operator==): Likewise.
6788
124aceb4
SM
67892017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6790
6791 * inferiors.h (thread_to_gdb_id): Remove.
6792 * inferiors.c (thread_to_gdb_id): Remove.
6793 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6794 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6795 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6796 Likewise.
6797 * nto-low.c (nto_fetch_registers, nto_store_registers,
6798 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6799
96cde54f
SM
68002017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6801
6802 * inferiors.h (gdb_id_to_thread_id): Remove.
6803 * inferiors.c (gdb_id_to_thread_id): Remove.
6804 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6805 removal. Move pid declaration closer to where it's used.
6806
e8ca139e
SM
68072017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6808
6809 * server.c (handle_detach): New function.
6810 (process_serial_event): Move code out, call handle_detach.
6811
f8a4e119
SM
68122017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6813
6814 * server.c (require_running): Rename to ...
6815 (require_running_or_return): ... this ...
6816 (require_running_or_break): ... and this.
6817 (handle_query, process_serial_event): Adjust.
6818
0eb0a407
SM
68192017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6820
6821 * linux-low.c (linux_set_resume_request): Remove unused
6822 variables.
6823
785922a5
SM
68242017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6825
6826 * server.c (first_thread_of): Remove.
6827 (process_serial_event): Replace usage of first_thread_of with
6828 find_any_thread_of_pid.
6829 * tracepoint.c (same_process_p): Remove.
6830 (gdb_agent_about_to_close): Replace usage of same_process_p with
6831 find_any_thread_of_pid.
6832 * linux-x86-low.c (same_process_callback): Remove.
6833 (x86_arch_setup_process_callback): Replace usage of
6834 same_process_callback with find_any_thread_of_pid.
6835 * thread-db.c (any_thread_of): Remove.
6836 (switch_to_process): Replace usage of any_thread_of with
6837 find_any_thread_of_pid.
6838 * inferiors.c (thread_pid_matches_callback): Remove.
6839 (find_thread_process): Adjust to use find_any_thread_of_pid.
6840
a059f00c
SDJ
68412017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6842
6843 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6844 with "!VEC_empty".
a059f00c 6845
cc397f3a
SDJ
68462017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6847
6848 * linux-low.c (handle_extended_wait): Use
6849 "allocate_target_description" instead of "XNEW".
6850 * linux-x86-low.c (initialize_low_arch): Likewise.
6851
22916b07
YQ
68522017-09-05 Yao Qi <yao.qi@linaro.org>
6853
6854 * configure.srv (srv_i386_regobj): Remove.
6855 (srv_amd64_regobj): Remove.
6856 (srv_regobj): Set it to "" for x86 non-linux targets.
6857 * linux-x86-tdesc.c (i386_linux_read_description):
6858 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6859 (init_registers_i386): Remove the declaration.
6860 (tdesc_i386): Remove the declaration.
6861 (lynx_i386_arch_setup): Call i386_create_target_description.
6862 * nto-x86-low.c: Likewise.
6863 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6864 [!__x86_64__]: include arch/i386.h.
6865 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6866
38602d55
YQ
68672017-09-05 Yao Qi <yao.qi@linaro.org>
6868
6869 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6870 i386/amd64-XXX-linux from it.
6871
44b886ff
YQ
68722017-09-05 Yao Qi <yao.qi@linaro.org>
6873
6874 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6875 false.
6876 (ipa_amd64_linux_regobj): Remove.
6877 (ipa_x32_linux_regobj): Remove.
6878
b4570e4b
YQ
68792017-09-05 Yao Qi <yao.qi@linaro.org>
6880
6881 * Makefile.in (arch-amd64.o): New rule.
6882 * configure.srv: Append arch-amd64.o.
6883 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6884 (get_ipa_tdesc): Call amd64_linux_read_description.
6885 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6886 and init_registers_amd64_XXX.
6887 * linux-x86-low.c (x86_linux_read_description): Call
6888 amd64_linux_read_description.
6889 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6890 (initialize_low_arch): Don't call init_registers_x32_XXX and
6891 init_registers_amd64_XXX.
6892 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6893 and tdesc_amd64_XXX.
6894 [__x86_64__] (amd64_tdesc_test): New function.
6895 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6896 and init_registers_amd64_XXX.
6897 * linux-x86-tdesc.c: Include arch/amd64.h.
6898 (xcr0_to_tdesc_idx): New function.
6899 (i386_linux_read_description): New function.
6900 (amd64_get_ipa_tdesc_idx): New function.
6901 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6902 (amd64_get_ipa_tdesc): Declare.
6903
d1f28ea2
YQ
69042017-09-05 Yao Qi <yao.qi@linaro.org>
6905
6906 * configure.srv (srv_i386_linux_xmlfiles): Remove
6907 i386/i386-XXX-linux.xml from it.
6908
25a93583
YQ
69092017-09-05 Yao Qi <yao.qi@linaro.org>
6910
6911 * configure.srv: Set srv_i386_linux_regobj empty if $development
6912 is false.
6913 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6914 initialize_low_tdesc.
6915 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6916 with #if initialize_low_tdesc.
6917 * linux-x86-tdesc-selftest.c: New file.
6918 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6919
5f035c07
YQ
69202017-09-05 Yao Qi <yao.qi@linaro.org>
6921
6922 * Makefile.in (arch-i386.o): New rule.
6923 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6924 (x86_64-*-linux*): Likewise.
6925 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6926 include arch/i386.h.
6927 (i386_linux_read_description): Remove code and call
6928 i386_create_target_description.
6929 * tdesc.c (allocate_target_description): New function.
6930 * tdesc.h (set_tdesc_architecture): Remove declaration.
6931 (set_tdesc_osabi): Likewise.
6932
0abe8a89
YQ
69332017-09-05 Yao Qi <yao.qi@linaro.org>
6934
6935 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6936 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6937 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6938 .xmltarget.
6939 * server.c (get_features_xml): Call tdesc_get_features_xml.
6940 * tdesc.c (set_tdesc_architecture): New function.
6941 (set_tdesc_osabi): New function.
6942 (tdesc_get_features_xml): New function.
6943 (tdesc_create_feature): Add an argument.
6944 * tdesc.h (struct target_desc) <features>: New field.
6945 <arch, osabi>: New field.
6946 (~target_desc): xfree features, arch, and osabi.
6947 (target_desc::oerator==): Don't compare .xmltarget.
6948 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6949 (set_tdesc_osabi): Likewise.
6950 (tdesc_get_features_xml): Likewise.
6951
0a188386
YQ
69522017-09-05 Yao Qi <yao.qi@linaro.org>
6953
6954 * linux-x86-tdesc.c: Include selftest.h.
6955 (i386_tdesc_test): New function.
6956 (initialize_low_tdesc): Call selftests::register_test.
6957 * tdesc.h: Include regdef.h.
6958 (target_desc): Override operator == and !=.
6959
f49ff000
YQ
69602017-09-05 Yao Qi <yao.qi@linaro.org>
6961
6962 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6963 (ipa_obj): Likewise.
6964 * linux-i386-ipa.c: Include common/x86-xstate.h
6965 (get_ipa_tdesc): Call i386_linux_read_description.
6966 (initialize_low_tracepoint): Don't call init_registers_XXX
6967 functions, call initialize_low_tdesc instead.
6968 * linux-x86-low.c (x86_linux_read_description): Call
6969 i386_linux_read_description.
6970 (initialize_low_arch): Don't call init_registers_i386_XXX
6971 functions, call initialize_low_tdesc.
6972 * linux-x86-tdesc.c: New file.
6973 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6974 (i386_get_ipa_tdesc_idx): Declare.
6975 (i386_get_ipa_tdesc): Declare.
6976 (initialize_low_tdesc): Declare.
6977
2b68ef2f
YQ
69782017-09-05 Yao Qi <yao.qi@linaro.org>
6979
6980 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6981 instead of 0.
6982
f7000548
YQ
69832017-09-05 Yao Qi <yao.qi@linaro.org>
6984
6985 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6986 * regcache.c (get_thread_regcache): Use VEC_length.
6987 (init_register_cache): Likewise.
6988 (regcache_cpy): Likewise.
6989 (registers_to_string): Iterate reg_defs via VEC_iterate.
6990 (find_regno): Likewise.
6991 (find_register_by_number): Use VEC_index.
6992 (register_size): Call find_register_by_number.
6993 (register_data): Call find_register_by_number.
6994 (supply_regblock): Use VEC_length.
6995 (regcache_raw_read_unsigned): Likewise.
6996 * tdesc.c (init_target_desc): Iterate reg_defs via
6997 VEC_iterate.
6998 (default_description): Update initializer.
6999 (copy_target_description): Don't update field num_registers.
7000 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7001 <num_registers>: Remove.
7002
50a421ac
SM
70032017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7004
7005 * Makefile.in (.SECONDARY): Define target.
7006
23fdd69e
SM
70072017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * linux-low.c (linux_wait_1): Adjust.
7010 * server.c (queue_stop_reply_callback): Adjust.
7011
0a2dde4a
SDJ
70122017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7013
7014 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7015 QEnvironmentUnset and QEnvironmentReset packets.
7016 (handle_query): Inform remote that QEnvironmentHexEncoded,
7017 QEnvironmentUnset and QEnvironmentReset are supported.
7018
6afd337d
SM
70192017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * inferiors.h (inferior_target_data): Rename to ...
7022 (thread_target_data): ... this.
7023 (inferior_regcache_data): Rename to ...
7024 (thread_regcache_data): ... this.
7025 (set_inferior_regcache_data): Rename to ...
7026 (set_thread_regcache_data): ... this.
7027 * inferiors.c (inferior_target_data): Rename to ...
7028 (thread_target_data): ... this.
7029 (inferior_regcache_data): Rename to ...
7030 (thread_regcache_data): ... this.
7031 (set_inferior_regcache_data): Rename to ...
7032 (set_thread_regcache_data): ... this.
7033 (free_one_thread): Update.
7034 * linux-low.h (get_thread_lwp): Update.
7035 * regcache.c (get_thread_regcache): Update.
7036 (regcache_invalidate_thread): Update.
7037 (free_register_cache_thread): Update.
7038 * win32-i386-low.c (update_debug_registers_callback): Update.
7039 (win32_get_current_dr): Update.
7040 * win32-low.c (thread_rec): Update.
7041 (delete_thread_info): Update.
7042 (continue_one_thread): Update.
7043 (suspend_one_thread): Update.
7044
a160cc46
SM
70452017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * inferiors.c (set_inferior_target_data): Remove.
7048 * inferiors.h (set_inferior_target_data): Remove.
7049
6d580b63
YQ
70502017-08-18 Yao Qi <yao.qi@linaro.org>
7051
7052 * Makefile.in (OBS): Add selftest.o.
7053 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7054 * configure, config.in: Re-generated.
7055 * server.c: Include common/sefltest.h.
7056 (captured_main): Handle option --selftest.
7057
f5a29eb0
YQ
70582017-08-09 Yao Qi <yao.qi@linaro.org>
7059
7060 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7061 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7062 i386-avx-mpx.o and i386-mmx.o.
7063 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7064 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7065 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7066 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7067 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7068 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7069 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7070 i386/amd64-avx-mpx.xml.
7071
57757c2f
YQ
70722017-08-09 Yao Qi <yao.qi@linaro.org>
7073
7074 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7075 and x32-avx-avx512.o.
7076 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7077 i386/x32-avx-avx512.xml.
7078
229d26fc
SM
70792017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7080
7081 * tracepoint.h (enum class fast_tpoint_collect_result): New
7082 enumeration.
7083 (fast_tracepoint_collecting): Change return type to
7084 fast_tpoint_collect_result.
7085 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7086 * linux-low.h: Include tracepoint.h.
7087 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7088 fast_tpoint_collect_result.
7089 * linux-low.c (handle_tracepoints): Adjust.
7090 (linux_fast_tracepoint_collecting): Change return type to
7091 fast_tpoint_collect_result.
7092 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7093 linux_wait_1, stuck_in_jump_pad_callback,
7094 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7095 proceed_one_lwp): Adjust to type change.
7096
2e1e43e1
YQ
70972017-07-10 Yao Qi <yao.qi@linaro.org>
7098
7099 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7100
adc764e7
YQ
71012017-06-29 Yao Qi <yao.qi@linaro.org>
7102
7103 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7104 Remove.
7105 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7106
a206891a
SM
71072017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7108
7109 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7110
9a6c7d9c
SDJ
71112017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7112
7113 * linux-low.c (linux_create_inferior): Adjust code to access the
7114 environment information via 'gdb_environ' class.
7115 * lynx-low.c (lynx_create_inferior): Likewise.
7116 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7117 (get_environ): Return a pointer to 'our_environ'.
7118 (captured_main): Initialize 'our_environ'.
7119 * server.h (get_environ): Adjust prototype.
7120 * spu-low.c (spu_create_inferior): Adjust code to access the
7121 environment information via 'gdb_environ' class.
7122
ae3e2ccf
SM
71232017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7124
7125 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7126 usage of "register" keyword.
7127
3e019bdc
SM
71282017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7129
7130 * configure: Re-generate.
7131
8465943a
SM
71322017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7133
7134 * configure: Re-generate.
7135
cf0dd6f0
SM
71362017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7137
7138 * Makefile.in (COMPILE.pre): Add "-x c++".
7139
9845682b
SDJ
71402017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7141
7142 * fork-child.c: Conditionally include <signal.h>.
7143
aefd8b33
SDJ
71442017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7145
7146 * server.c (handle_general_set): Handle new packet
7147 "QStartupWithShell".
7148 (handle_query): Add "QStartupWithShell" to the list of supported
7149 packets.
7150 (gdbserver_usage): Add help text explaining the
7151 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7152 options.
7153 (captured_main): Recognize and act upon the presence of the new
7154 CLI options.
7155
2090129c
SDJ
71562017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7157 Pedro Alves <palves@redhat.com>
7158
7159 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7160 * configure: Regenerate.
7161 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7162 "fork-inferior.o".
7163 (i[34567]86-*-lynxos*): Likewise.
7164 (spu*-*-*): Likewise.
7165 * fork-child.c: New file.
7166 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7167 and "environ.h".
7168 (linux_ptrace_fun): New function.
7169 (linux_create_inferior): Adjust function prototype to reflect
7170 change on "target.h". Adjust function code to use
7171 "fork_inferior".
7172 (linux_request_interrupt): Delete "signal_pid".
7173 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7174 (lynx_ptrace_fun): New function.
7175 (lynx_create_inferior): Adjust function prototype to reflect
7176 change on "target.h". Adjust function code to use
7177 "fork_inferior".
7178 * nto-low.c (nto_create_inferior): Adjust function prototype and
7179 code to reflect change on "target.h". Update comments.
7180 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7181 "common-terminal.h" and "environ.h".
7182 (terminal_fd): Moved to fork-child.c.
7183 (old_foreground_pgrp): Likewise.
7184 (restore_old_foreground_pgrp): Likewise.
7185 (last_status): Make it global.
7186 (last_ptid): Likewise.
7187 (our_environ): New variable.
7188 (startup_with_shell): Likewise.
7189 (program_name): Likewise.
7190 (program_argv): Rename to...
7191 (program_args): ...this.
7192 (wrapper_argv): New variable.
7193 (start_inferior): Delete function.
7194 (get_exec_wrapper): New function.
7195 (get_exec_file): Likewise.
7196 (get_environ): Likewise.
7197 (prefork_hook): Likewise.
7198 (post_fork_inferior): Likewise.
7199 (postfork_hook): Likewise.
7200 (postfork_child_hook): Likewise.
7201 (handle_v_run): Update code to deal with arguments coming from the
7202 remote host. Update calls from "start_inferior" to
7203 "create_inferior".
7204 (captured_main): Likewise. Initialize environment variable. Call
7205 "have_job_control".
7206 * server.h (post_fork_inferior): New prototype.
7207 (get_environ): Likewise.
7208 (last_status): Declare.
7209 (last_ptid): Likewise.
7210 (signal_pid): Likewise.
7211 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7212 (spu_ptrace_fun): New function.
7213 (spu_create_inferior): Adjust function prototype to reflect change
7214 on "target.h". Adjust function code to use "fork_inferior".
7215 * target.c (target_terminal_init): New function.
7216 (target_terminal_inferior): Likewise.
7217 (target_terminal_ours): Likewise.
7218 * target.h: Include <vector>.
7219 (struct target_ops) <create_inferior>: Update prototype.
7220 (create_inferior): Update macro.
7221 * utils.c (gdb_flush_out_err): New function.
7222 * win32-low.c (win32_create_inferior): Adjust function prototype
7223 and code to reflect change on "target.h".
7224
043a4934
SDJ
72252017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7226
7227 * inferiors.c (switch_to_thread): New function.
7228
15652511
SDJ
72292017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7230
7231 * Makefile.in (SFILE): Add "common/job-control.c".
7232 (OBS): Add "job-control.o".
7233
21ea5acd
SDJ
72342017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7235
7236 * Makefile: Remove "@host_makefile_frag@".
7237
e13cb306
PA
72382017-05-05 Pedro Alves <palves@redhat.com>
7239
7240 * configure: Regenerate.
7241
c94fee56
SDJ
72422017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7243
7244 * configure: Regenerate.
7245
a0ff9e1a
SM
72462017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7247
7248 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7249 software_single_step change of return type to
7250 std::vector<CORE_ADDR>.
7251 * linux-low.c (install_software_single_step_breakpoints):
7252 Likewise.
7253 * linux-low.h (install_software_single_step_breakpoints):
7254 Likewise.
7255
be628ab8
SDJ
72562017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7257
7258 * remote-utils.c: Include "gdb_termios.h" instead of
7259 "terminal.h".
7260 * terminal.h: Delete file.
7261
7c5ded6a
SDJ
72622017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7263
7264 * server.c: Include <vector>.
7265 <program_argv, wrapper_argv>: Convert to std::vector.
7266 (start_inferior): Rewrite function to use C++.
7267 (handle_v_run): Likewise. Update code that calculates the argv
7268 based on the vRun packet; use C++.
7269 (captured_main): Likewise.
7270
436252de
SM
72712017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7272
7273 * server.c (handle_v_cont): Initialize thread_resume::thread
7274 with null_ptid.
7275
9bf2a700
PA
72762017-04-05 Pedro Alves <palves@redhat.com>
7277
7278 * configure: Regenerate.
7279
a121b7c1
PA
72802017-04-05 Pedro Alves <palves@redhat.com>
7281
7282 * gdbreplay.c (sync_error): Constify.
7283 * linux-x86-low.c (push_opcode): Constify.
7284
21c8a587
PA
72852017-04-05 Pedro Alves <palves@redhat.com>
7286
7287 * win32-low.c (get_child_debug_event)
7288 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7289 Report TARGET_WAITKIND_SPURIOUS instead.
7290
fb32b4f7
PA
72912017-04-05 Pedro Alves <palves@redhat.com>
7292
e79be6e5
SM
7293 * remote-utils.c (remote_prepare, remote_open): Constify.
7294 * remote-utils.h (remote_prepare, remote_open): Constify.
7295 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7296
65dd1e59
SM
72972017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7298
7299 * Makefile.in (clean): Clear .deps.
7300
8fa5b777
SM
73012017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7302
7303 * .gitignore: Remove generated files, replace with wildcard.
7304 * (clean): Replace removal of generated files with wildcard.
7305 (version.c): Replace with...
7306 (version-generated.c): ...this.
7307 (xml-builtin.c): Replace with...
7308 (xml-builtin-generated.c): ...this.
7309 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7310 (%.c: *regformats*): Replace with...
7311 (%-generated.c: *regformats*): ...this.
7312
a12e714b
MF
73132017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7314
7315 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7316 (xtensa_fill_gregset): Call collect_register_by_name for
7317 threadptr register.
7318 (xtensa_store_gregset): Call supply_register_by_name for
7319 threadptr register.
7320
1a09b50a
MF
73212017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7322
7323 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7324 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7325 (xtensa_store_gregset): Call supply_register for all registers in
7326 a0_regnum..a0_regnum + C0_NREGS range.
7327
1a01e7c6
SM
73282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7329
7330 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7331 (ax-ipa.o: ax.c): Remove.
7332 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7333 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7334 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7335 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7336 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7337
36bc18a8
SM
73382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7339
7340 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7341 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7342 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7343 (errors-ipa.o: ../common/errors.c): Remove.
7344 (format-ipa.o: ../common/format.c): Remove.
7345 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7346
a8ebe3d5
SM
73472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7348
7349 * Makefile.in (%-ipa.o: %.c): New rule.
7350 (tracepoint-ipa.o: tracepoint.c): Remove.
7351 (utils-ipa.o: utils.c): Remove.
7352 (remote-utils-ipa.o: remote-utils.c): Remove.
7353 (regcache-ipa.o: regcache.c): Remove.
7354 (i386-linux-ipa.o: i386-linux.c): Remove.
7355 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7356 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7357 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7358 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7359 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7360 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7361 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7362 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7363 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7364 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7365 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7366 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7367 (aarch64-ipa.o: aarch64.c): Remove.
7368 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7369 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7370 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7371 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7372 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7373 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7374 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7375 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7376 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7377 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7378 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7379 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7380 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7381 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7382 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7383 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7384 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7385 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7386 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7387 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7388 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7389 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7390 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7391 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7392 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7393 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7394 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7395 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7396 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7397 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7398 (tdesc-ipa.o: tdesc.c): Remove.
7399 (x32-linux-ipa.o: x32-linux.c): Remove.
7400 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7401 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7402
50cfacb7
SM
74032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7404
7405 * Makefile.in (%.o: ../arch/%.c): New rule.
7406 (arm.o: ../arch/arm.c): Remove.
7407 (arm-linux.o: ../arch/arm-linux.c): Remove.
7408 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7409 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7410
c5a22423
SM
74112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7412
7413 * Makefile.in (%.o: ../nat/%.c): New rule.
7414 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7415 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7416 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7417 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7418 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7419 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7420 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7421 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7422 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7423 (linux-personality.o: ../nat/linux-personality.c): Remove.
7424 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7425 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7426 (x86-linux.o: ../nat/x86-linux.c): Remove.
7427 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7428 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7429
6bda016b
SM
74302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7431
7432 * Makefile.in (%.o: ../common/%.c): New rule.
7433 (signals.o: ../common/signals.c): Remove.
7434 (print-utils.o: ../common/print-utils.c): Remove.
7435 (rsp-low.o: ../common/rsp-low.c): Remove.
7436 (common-utils.o: ../common/common-utils.c): Remove.
7437 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7438 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7439 (vec.o: ../common/vec.c): Remove.
7440 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7441 (xml-utils.o: ../common/xml-utils.c): Remove.
7442 (ptid.o: ../common/ptid.c): Remove.
7443 (buffer.o: ../common/buffer.c): Remove.
7444 (format.o: ../common/format.c): Remove.
7445 (filestuff.o: ../common/filestuff.c): Remove.
7446 (agent.o: ../common/agent.c): Remove.
7447 (errors.o: ../common/errors.c): Remove.
7448 (environ.o: ../common/environ.c): Remove.
7449 (common-debug.o: ../common/common-debug.c): Remove.
7450 (cleanups.o: ../common/cleanups.c): Remove.
7451 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7452 (fileio.o: ../common/fileio.c): Remove.
7453 (common-regcache.o: ../common/common-regcache.c): Remove.
7454 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7455 (new-op.o: ../common/new-op.c): Remove.
7456 (btrace-common.o: ../common/btrace-common.c): Remove.
7457
21122961
SM
74582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7459
7460 * Makefile.in (%.o: ../target/%.c): New rule.
7461 (waitstatus.o: ../target/waitstatus.c): Remove.
7462
c362e621
SM
74632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7464
7465 * Makefile.in
7466 (%.c: ../regformats/%.dat,
7467 (%.c: ../regformats/arm/%.dat,
7468 (%.c: ../regformats/i386/%.dat,
7469 (%.c: ../regformats/rs6000/%.dat): New rules.
7470 (aarch64.c): Remove.
7471 (reg-arm.c): Remove.
7472 (arm-with-iwmmxt.c): Remove.
7473 (arm-with-vfpv2.c): Remove.
7474 (arm-with-vfpv3.c): Remove.
7475 (arm-with-neon.c): Remove.
7476 (reg-bfin.c): Remove.
7477 (reg-cris.c): Remove.
7478 (reg-crisv32.c): Remove.
7479 (i386.c): Remove.
7480 (i386-linux.c): Remove.
7481 (i386-avx.c): Remove.
7482 (i386-avx-linux.c): Remove.
7483 (i386-avx-avx512.c): Remove.
7484 (i386-avx-avx512-linux.c): Remove.
7485 (i386-mpx.c): Remove.
7486 (i386-mpx-linux.c): Remove.
7487 (i386-avx-mpx-avx512-pku.c): Remove.
7488 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7489 (i386-avx-mpx.c): Remove.
7490 (i386-avx-mpx-linux.c): Remove.
7491 (i386-mmx.c): Remove.
7492 (i386-mmx-linux.c): Remove.
7493 (reg-ia64.c): Remove.
7494 (reg-m32r.c): Remove.
7495 (reg-m68k.c): Remove.
7496 (reg-cf.c): Remove.
7497 (mips-linux.c): Remove.
7498 (mips-dsp-linux.c): Remove.
7499 (mips64-linux.c): Remove.
7500 (mips64-dsp-linux.c): Remove.
7501 (nios2-linux.c): Remove.
7502 (powerpc-32.c): Remove.
7503 (powerpc-32l.c): Remove.
7504 (powerpc-altivec32l.c): Remove.
7505 (powerpc-cell32l.c): Remove.
7506 (powerpc-vsx32l.c): Remove.
7507 (powerpc-isa205-32l.c): Remove.
7508 (powerpc-isa205-altivec32l.c): Remove.
7509 (powerpc-isa205-vsx32l.c): Remove.
7510 (powerpc-e500l.c): Remove.
7511 (powerpc-64l.c): Remove.
7512 (powerpc-altivec64l.c): Remove.
7513 (powerpc-cell64l.c): Remove.
7514 (powerpc-vsx64l.c): Remove.
7515 (powerpc-isa205-64l.c): Remove.
7516 (powerpc-isa205-altivec64l.c): Remove.
7517 (powerpc-isa205-vsx64l.c): Remove.
7518 (s390-linux32.c): Remove.
7519 (s390-linux32v1.c): Remove.
7520 (s390-linux32v2.c): Remove.
7521 (s390-linux64.c): Remove.
7522 (s390-linux64v1.c): Remove.
7523 (s390-linux64v2.c): Remove.
7524 (s390-te-linux64.c): Remove.
7525 (s390-vx-linux64.c): Remove.
7526 (s390-tevx-linux64.c): Remove.
7527 (s390x-linux64.c): Remove.
7528 (s390x-linux64v1.c): Remove.
7529 (s390x-linux64v2.c): Remove.
7530 (s390x-te-linux64.c): Remove.
7531 (s390x-vx-linux64.c): Remove.
7532 (s390x-tevx-linux64.c): Remove.
7533 (tic6x-c64xp-linux.c): Remove.
7534 (tic6x-c64x-linux.c): Remove.
7535 (tic6x-c62x-linux.c): Remove.
7536 (reg-sh.c): Remove.
7537 (reg-sparc64.c): Remove.
7538 (reg-spu.c): Remove.
7539 (amd64.c): Remove.
7540 (amd64-linux.c): Remove.
7541 (amd64-avx.c): Remove.
7542 (amd64-avx-linux.c): Remove.
7543 (amd64-avx-avx512.c): Remove.
7544 (amd64-avx-avx512-linux.c): Remove.
7545 (amd64-mpx.c): Remove.
7546 (amd64-mpx-linux.c): Remove.
7547 (amd64-avx-mpx-avx512-pku.c): Remove.
7548 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7549 (amd64-avx-mpx.c): Remove.
7550 (amd64-avx-mpx-linux.c): Remove.
7551 (x32.c): Remove.
7552 (x32-linux.c): Remove.
7553 (x32-avx.c): Remove.
7554 (x32-avx-linux.c): Remove.
7555 (x32-avx-avx512.c): Remove.
7556 (x32-avx-avx512-linux.c): Remove.
7557 (reg-xtensa.c): Remove.
7558 (reg-tilegx.c): Remove.
7559 (reg-tilegx32.c): Remove.
7560
1672e0d9
SDJ
75612017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7562
7563 * Makefile.in (SFILES): Add "common/environ.c".
7564 (OBJS): Add "common/environ.h".
7565
239b6d10
WT
75662017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7567
7568 * configure.ac: Check if the fs_base and gs_base members of
7569 `struct user_regs_struct' exist.
7570 * config.in: Regenerated.
7571 * configure: Likewise.
7572
694b382c
AT
75732017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7574
7575 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7576 target_read_memory.
7577 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7578 (get_next_pcs_syscall_next_pc): Likewise.
7579
7dc53023
LM
75802016-12-23 Luis Machado <lgustavo@codesourcery.com>
7581
7582 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7583 * nto-x86-low.c: Likewise.
7584
ad02e4fe
SM
75852016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7586
7587 * Makefile.in: Include disable-implicit-rules.mk.
7588
dcb07cfa
PA
75892016-11-23 Pedro Alves <palves@redhat.com>
7590
7591 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7592 (debug_vprintf): Use std::chrono::steady_clock instead of
7593 gettimeofday. Use '.' instead of ':'.
7594 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7595 (get_timestamp): Use std::chrono::steady_clock instead of
7596 gettimeofday.
7597
8629c02c
SM
75982016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7599
7600 * Makefile.in: Fix whitespace formatting.
7601
b593ecca
SM
76022016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7603
7604 * Makefile.in (SFILES, OBS): Flatten list and order
7605 alphabetically.
7606
9986ba08
PA
76072016-11-23 Pedro Alves <palves@redhat.com>
7608
7609 * event-loop.c (handle_file_event): Use warning.
7610 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7611 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7612 Use warning.
7613
4eefa7bc
PA
76142016-11-23 Pedro Alves <palves@redhat.com>
7615
7616 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7617 output.
7618 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7619 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7620 debug_printf and debug_flush for debug output.
7621 * server.c (handle_general_set): Likewise.
7622 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7623 output.
7624
5443506e
SM
76252016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7626
7627 * Makefile.in (.c.o): Replace rule with ...
7628 (%.o: %.c): ... this one.
7629
3b165252
SM
76302016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7631
7632 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7633 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7634 make.
7635 * configure.ac: Remove checks for the make program.
7636 * configure: Re-generate.
7637
0bcda685
PA
76382016-10-28 Pedro Alves <palves@redhat.com>
7639
7640 * Makefile.in (CXX_DIALECT): Get from configure.
7641 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7642 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7643 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7644 * config.in: Regenerate.
7645 * configure: Regenerate.
7646
c3805894
YQ
76472016-10-27 Yao Qi <yao.qi@linaro.org>
7648
7649 * linux-low.c (linux_supports_range_stepping): Return true if
7650 can_software_single_step return true.
7651
89342618
YQ
76522016-10-27 Yao Qi <yao.qi@linaro.org>
7653
7654 * inferiors.c (find_inferior_in_random): New function.
7655 * inferiors.h (find_inferior_in_random): Declare.
7656 * linux-low.c (linux_wait_for_event_filtered): Call
7657 find_inferior_in_random instead of find_inferior.
7658
e3652c84
YQ
76592016-10-27 Yao Qi <yao.qi@linaro.org>
7660
7661 * linux-low.c (linux_wait_1): If single-step breakpoints are
7662 inserted, remove them.
7663
5a04c4cf
PA
76642016-10-26 Pedro Alves <palves@redhat.com>
7665
7666 * linux-low.c (handle_extended_wait): Link parent/child fork
7667 threads.
7668 (linux_wait_1): Unlink them.
7669 (linux_set_resume_request): Ignore resume requests for
7670 already-resumed and unhandled fork child threads.
7671 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7672 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7673 New functions.
7674 (handle_v_requests) <vCont>: Don't call require_running.
7675 * server.h (in_queued_stop_replies): New declaration.
7676
cb93dc7f
YQ
76772016-10-24 Yao Qi <yao.qi@linaro.org>
7678
7679 PR server/20733
7680 * linux-aarch64-low.c (append_insns): Cast the return value to
7681 'uint32_t *'.
7682
a1078bea
YQ
76832016-10-10 Yao Qi <yao.qi@linaro.org>
7684
7685 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7686
1fb77080
SDJ
76872016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7688
7689 * target.c (target_supports_multi_process): New function, moved
7690 from...
7691 * target.h (target_supports_multi_process): ... here. Remove
7692 macro.
7693
39b5a3b9
TT
76942016-10-05 Tom Tromey <tom@tromey.com>
7695
7696 PR remote/20655:
7697 * tracepoint.c (handle_tracepoint_bkpts): Check
7698 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7699
c1d0b70a
YQ
77002016-10-05 Yao Qi <yao.qi@linaro.org>
7701
7702 * configure.srv: Update the path of arm-*.xml files.
7703
0a69eedb
YQ
77042016-10-05 Terry Guo <terry.guo@arm.com>
7705 Yao Qi <yao.qi@linaro.org>
7706
7707 * Makefile.in: Adjust the path of rules.
7708 * configure.srv: Update the path of xml files.
7709 * regformats/arm-with-iwmmxt.dat: Regenerated.
7710 * regformats/arm-with-neon.dat: Likewise.
7711 * regformats/arm-with-vfpv2.dat: Likewise.
7712 * regformats/arm-with-vfpv3.dat Likewise.
7713
17e16485
YQ
77142016-09-30 Yao Qi <yao.qi@linaro.org>
7715
7716 PR gdbserver/20627
7717 * target.c (target_stop_and_wait): Don't call
7718 target_continue_no_signal, use resume_stop instead.
7719
edeeb602
YQ
77202016-09-26 Yao Qi <yao.qi@linaro.org>
7721
7722 * linux-low.c (linux_wait_1): Call debug_exit.
7723
503b1c39
PA
77242016-09-23 Pedro Alves <palves@redhat.com>
7725
7726 * Makefile.in (SFILES): Add common/new-op.c.
7727 (OBS): Add common/new-op.o.
7728 (new-op.o): New rule.
7729
74172ecf
SM
77302016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7731
7732 * .gitinore: Ignore more files.
7733
fc6cda2e
YQ
77342016-09-21 Yao Qi <yao.qi@linaro.org>
7735
7736 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7737 23.
7738
bc1e6c81
SDJ
77392016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7740
7741 * server.c (start_inferior): Call target_mourn_inferior instead of
7742 mourn_inferior; pass ptid_t argument to it.
7743 (resume): Likewise.
7744 (handle_target_event): Likewise.
7745 * target.c (target_mourn_inferior): New function.
7746 * target.h (mourn_inferior): Delete macro.
7747
0e00e962
AA
77482016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7749
7750 * linux-low.c (lwp_is_stepping): New function.
7751
1d8cb77d
CL
77522016-09-06 Carl Love <cel@us.ibm.com>
7753
7754 * server.c (start_inferior): Fixed comment, requested comment change
7755 didn't get updated correctly. Removed reference to ptrace () call as
7756 it is only true on Linux systems.
7757
7313bced
CL
77582016-09-06 Carl Love <cel@us.ibm.com>
7759
7760 * server.c (start_inferior): Do not call
7761 function target_post_create_inferior () if the
7762 inferior process has already exited.
7763
cf6de44d
PA
77642016-09-05 Pedro Alves <palves@redhat.com>
7765
7766 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7767 (COMPILE.pre, CC_LD): Use CXX directly.
7768 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7769 * acinclude.m4: Don't include build-with-cxx.m4.
7770 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7771 * configure: Regenerate.
7772
c1da6748
AT
77732016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7774
7775 PR gdb/19495
7776 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7777 call writing data to own_buf.
7778
f2b9e3df
SDJ
77792016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7780
7781 * target.c (mywait): Call target_wait instead of
7782 the_target->wait.
7783 (target_wait): New function.
7784
049a8570
SDJ
77852016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7786
7787 * server.c (start_inferior): New variable 'ptid'. Replace calls
7788 to the_target->resume by target_continue{,_no_signal}, depending
7789 on the case.
7790 * target.c (target_stop_and_wait): Call target_continue_no_signal
7791 instead of the_target->resume.
7792 (target_continue): New function.
7793
3aa5cfa0
AT
77942016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7795
7796 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7797
754653a7
AZ
77982016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7799
7800 PR server/20491
7801 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7802 ps_prochandle.
7803 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7804 * linux-arm-low.c (ps_get_thread_area): Likewise.
7805 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7806 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7807 * linux-mips-low.c (ps_get_thread_area): Likewise.
7808 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7809 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7810 * linux-x86-low.c (ps_get_thread_area): Likewise.
7811 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7812
ed036b40
PA
78132016-08-19 Pedro Alves <palves@redhat.com>
7814
7815 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7816
c8ef42ee
PA
78172016-08-19 Pedro Alves <palves@redhat.com>
7818
7819 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7820 comment. Use memcpy instead of casting through unsigned long.
7821
9c235a72
PA
78222016-08-19 Pedro Alves <palves@redhat.com>
7823
7824 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7825 allocating around 0x80000000.
7826
201506da
PA
78272016-08-19 Pedro Alves <palves@redhat.com>
7828
7829 PR gdb/20415
7830 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7831 (x32-avx512-linux-ipa.o): New rules.
7832 * configure.ac (x86_64-*-linux*): New x32 check.
7833 * configure.srv (ipa_x32_linux_regobj): New.
7834 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7835 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7836 descriptions.
7837 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7838 descriptions.
7839 * configure: Regenerate.
7840
f348d89a
PA
78412016-08-09 Pedro Alves <palves@redhat.com>
7842
7843 PR gdb/18653
7844 * Makefile.in (OBS): Add signals-state-save-restore.o.
7845 (signals-state-save-restore.o): New rule.
7846 * config.in: Regenerate.
7847 * configure: Regenerate.
7848 * linux-low.c: Include "signals-state-save-restore.h".
7849 (linux_create_inferior): Call
7850 restore_original_signals_state.
7851 * server.c: Include "dispositions-save-restore.h".
7852 (captured_main): Call save_original_signals_state.
7853
1baf5149
PA
78542016-08-05 Pedro Alves <palves@redhat.com>
7855
7856 * configure: Regenerate.
7857
fcd4a73d
YQ
78582016-08-04 Yao Qi <yao.qi@linaro.org>
7859
7860 * linux-low.c (regsets_fetch_inferior_registers): Check
7861 errno is ESRCH or not.
7862
979659d0
YQ
78632016-08-02 Yao Qi <yao.qi@linaro.org>
7864
7865 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7866 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7867 (thread_db_load_search): Update.
7868 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7869 td_ta_set_event and td_ta_event_getmsg.
7870
6598661d
PA
78712016-07-26 Pedro Alves <palves@redhat.com>
7872
7873 PR server/20414
7874 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7875 of unsigned long for 64-bit registers and use uint32_t instead of
7876 unsigned int for 32-bit registers.
7877
9cf12d57
PA
78782016-07-26 Pedro Alves <palves@redhat.com>
7879
7880 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7881 to 'ptrace'.
7882
305450ed
TT
78832016-07-21 Tom Tromey <tom@tromey.com>
7884
7885 * configure: Rebuild.
7886
2583da7c
YQ
78872016-07-21 Yao Qi <yao.qi@linaro.org>
7888
7889 * mem-break.c (find_gdb_breakpoint): Cast bp to
7890 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7891
21536b36
YQ
78922016-07-21 Yao Qi <yao.qi@linaro.org>
7893
7894 * server.c (handle_v_requests): Support s and S actions
7895 if target_supports_software_single_step return true.
7896
8901d193
YQ
78972016-07-21 Yao Qi <yao.qi@linaro.org>
7898
7899 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7900 is resume_step, call maybe_hw_step.
7901 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7902 and unstop them.
7903 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7904 breakpoints or not.
7905 (proceed_one_lwp): If resume request is resume_step, install
7906 reinsert breakpoints and call maybe_hw_step.
7907
0e9a339e
YQ
79082016-07-21 Yao Qi <yao.qi@linaro.org>
7909
7910 * linux-low.c (proceed_one_lwp): Declare.
7911 (linux_resume_one_thread): Remove local variable 'step'.
7912 Lift code enqueue signal. Call proceed_one_lwp instead of
7913 linux_resume_one_lwp.
7914
4281b351
YQ
79152016-07-21 Yao Qi <yao.qi@linaro.org>
7916
7917 * linux-low.c (linux_resume_one_thread): Call
7918 enqueue_pending_signal.
7919
984a2c04
YQ
79202016-07-21 Yao Qi <yao.qi@linaro.org>
7921
7922 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7923 * inferiors.c (do_restore_current_thread_cleanup): New function.
7924 (make_cleanup_restore_current_thread): Likewise.
7925 * linux-low.c (install_software_single_step_breakpoints): Call
7926 make_cleanup_restore_current_thread. Switch current_thread to
7927 thread.
7928
bec903c9
YQ
79292016-07-21 Yao Qi <yao.qi@linaro.org>
7930
7931 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7932 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7933 (clone_one_breakpoint): Likewise.
7934 (delete_reinsert_breakpoints): Change parameter to thread.
7935 Callers updated.
7936 (has_reinsert_breakpoints): Likewise.
7937 (uninsert_reinsert_breakpoints): Likewise.
7938 (reinsert_reinsert_breakpoints): Likewise.
7939 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7940 (delete_reinsert_breakpoints): Likewise.
7941 (reinsert_reinsert_breakpoints): Likewise.
7942 (uninsert_reinsert_breakpoints): Likewise.
7943 (has_reinsert_breakpoints): Likewise.
7944
63c40ec7
YQ
79452016-07-21 Yao Qi <yao.qi@linaro.org>
7946
7947 * inferiors.c (get_thread_process): Make parameter const.
7948 * inferiors.h (get_thread_process): Update declaration.
7949 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7950 Add new parameters child_thread and parent_thread. Callers
7951 updated.
7952 * mem-break.h (clone_all_breakpoints): Update declaration.
7953
9aa76cd0
YQ
79542016-07-21 Yao Qi <yao.qi@linaro.org>
7955
7956 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7957 <command_list, handler>: Remove.
7958 (struct gdb_breakpoint): New.
7959 (struct other_breakpoint): New.
7960 (struct reinsert_breakpoint): New.
7961 (is_gdb_breakpoint): New function.
7962 (any_persistent_commands): Update command_list if
7963 is_gdb_breakpoint returns true.
7964 (set_breakpoint): Create breakpoints according to their types.
7965 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7966 (set_gdb_breakpoint_1): Likewise.
7967 (set_gdb_breakpoint): Likewise.
7968 (clear_breakpoint_conditions): Change parameter type to
7969 'struct gdb_breakpoint *'.
7970 (clear_breakpoint_commands): Likewise.
7971 (clear_breakpoint_conditions_and_commands): Likewise.
7972 (add_condition_to_breakpoint): Likewise.
7973 (add_breakpoint_condition): Likewise.
7974 (add_commands_to_breakpoint): Likewise.
7975 (check_breakpoints): Check other_breakpoint.
7976 (clone_one_breakpoint): Clone breakpopint according to its type.
7977 * mem-break.h (struct gdb_breakpoint): Declare.
7978 (set_gdb_breakpoint): Update declaration.
7979 (clear_breakpoint_conditions_and_commands): Likewise.
7980 (add_breakpoint_condition): Likewise.
7981 (add_breakpoint_commands): Likewise.
7982 * server.c (process_point_options): Change parameter type to
7983 'struct gdb_breakpoint *'.
7984
811f8301
YQ
79852016-07-21 Yao Qi <yao.qi@linaro.org>
7986
7987 * mem-break.c (set_breakpoint_at): Rename it to ...
7988 (set_breakpoint_type_at): ... it.
7989 (set_breakpoint_at): Call set_breakpoint_type_at.
7990 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7991 * mem-break.h (set_breakpoint_at): Update comments.
7992
b1c51e36
CLT
79932016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7994
7995 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7996 to buf parameter.
7997 (nios2_store_gregset): Likewise.
7998
ced2dffb
PA
79992016-07-01 Pedro Alves <palves@redhat.com>
8000 Antoine Tremblay <antoine.tremblay@ericsson.com>
8001
8002 * linux-low.c: Change interface to take the target lwp_info
8003 pointer directly and return void. Handle detaching from a zombie
8004 thread.
8005 (linux_detach_lwp_callback): New function.
8006 (linux_detach): Detach from the leader thread after detaching from
8007 the clone threads.
8008
2ac09a5b
YQ
80092016-06-28 Yao Qi <yao.qi@linaro.org>
8010
8011 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8012 for variable new_offset.
8013 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8014 (aarch64_ftrace_insn_reloc_cb): Likewise.
8015 (aarch64_ftrace_insn_reloc_tb): Likewise.
8016 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8017 PRIx64 instead of PRIx32.
8018
79e7fd4f
YQ
80192016-06-28 Yao Qi <yao.qi@linaro.org>
8020
8021 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8022 (the_low_target): Install arm_get_syscall_trapinfo.
8023
061fc021
YQ
80242016-06-28 Yao Qi <yao.qi@linaro.org>
8025
8026 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8027 function.
8028 (the_low_target): Install aarch64_get_syscall_trapinfo.
8029
4cc32bec
YQ
80302016-06-28 Yao Qi <yao.qi@linaro.org>
8031
8032 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8033 Callers updated.
8034 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8035 Remove parameter sysno.
8036 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8037 sysret.
8038
782c1122
AA
80392016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8040
8041 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8042 (s390_emit_ne_goto): Likewise.
8043 (s390_emit_lt_goto): Likewise.
8044 (s390_emit_le_goto): Likewise.
8045 (s390_emit_gt_goto): Likewise.
8046 (s390_emit_ge_goto): Likewise.
8047 (s390x_emit_eq_goto): Likewise.
8048 (s390x_emit_ne_goto): Likewise.
8049 (s390x_emit_lt_goto): Likewise.
8050 (s390x_emit_le_goto): Likewise.
8051 (s390x_emit_gt_goto): Likewise.
8052 (s390x_emit_ge_goto): Likewise.
8053 (s390_emit_ops_impl): Mark variable static.
8054 (s390x_emit_ops): Likewise.
8055
2e7b624b
YQ
80562016-06-17 Yao Qi <yao.qi@linaro.org>
8057
8058 * linux-low.c (handle_extended_wait): Call
8059 uninsert_reinsert_breakpoints for the parent process. Remove
8060 reinsert breakpoints from the child process. Reinsert them to
8061 the parent process when vfork is done.
8062 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8063 (reinsert_reinsert_breakpoints): New function.
8064 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8065 (reinsert_reinsert_breakpoints): Declare.
8066
8a81c5d7
YQ
80672016-06-17 Yao Qi <yao.qi@linaro.org>
8068
8069 * linux-low.c (handle_extended_wait): If the parent is doing
8070 step-over, remove the reinsert breakpoints from the forked child.
8071
f50bf8e5
YQ
80722016-06-17 Yao Qi <yao.qi@linaro.org>
8073
8074 * linux-low.c (unsuspend_all_lwps): Declare.
8075 (linux_low_filter_event): If thread exited, call finish_step_over.
8076 If step-over is finished, unsuspend other threads.
8077
8376a3cb
YQ
80782016-06-17 Yao Qi <yao.qi@linaro.org>
8079
8080 * linux-low.c (linux_resume_one_lwp_throw): Assert
8081 has_reinsert_breakpoints returns false.
8082 * mem-break.c (delete_disabled_breakpoints): Assert
8083 bp type isn't reinsert_breakpoint.
8084
f79b145d
YQ
80852016-06-17 Yao Qi <yao.qi@linaro.org>
8086
8087 * linux-low.c (maybe_hw_step): New function.
8088 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8089 (finish_step_over): Switch current_thread to lwp temporarily,
8090 and assert has_reinsert_breakpoints returns true.
8091 (proceed_one_lwp): Call maybe_hw_step.
8092 * mem-break.c (has_reinsert_breakpoints): New function.
8093 * mem-break.h (has_reinsert_breakpoints): Declare.
8094
0ae534d2
JT
80952016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8096
8097 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8098
fcdad592
YQ
80992016-05-17 Yao Qi <yao.qi@linaro.org>
8100
8101 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8102 instead of find_inferior.
8103
9e784964
YQ
81042016-05-05 Yao Qi <yao.qi@linaro.org>
8105
8106 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8107 Initialize res to zero.
8108
cf2ebb6e
YQ
81092016-05-05 Yao Qi <yao.qi@linaro.org>
8110
8111 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8112 to uint32_t.
8113
c1aebf87
UW
81142016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8115
8116 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8117 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8118 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8119
35fd2deb 81202016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8121 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8122
8123 * tracepoint.c (write_inferior_int8): New function.
8124 (cmd_qtenable_disable): Write enable flag using
8125 write_inferior_int8.
8126
484b3c32
YQ
81272016-04-25 Yao Qi <yao.qi@linaro.org>
8128
8129 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8130 (need_step_over_p): Return zero if the LWP has pending signals
8131 can be delivered on software single step target.
8132
85ba7d86
YQ
81332016-04-25 Yao Qi <yao.qi@linaro.org>
8134
8135 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8136 return instead of error.
8137
3539aa13
YQ
81382016-04-22 Yao Qi <yao.qi@linaro.org>
8139
8140 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8141 to 23.
8142
5b061e98
YQ
81432016-04-22 Yao Qi <yao.qi@linaro.org>
8144
8145 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8146 signal when stepping over breakpoint with software single
8147 step.
8148
3451269c
PA
81492016-04-21 Pedro Alves <palves@redhat.com>
8150
8151 * linux-s390-low.c (s390_collect_ptrace_register)
8152 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8153 add casts.
8154 (s390_check_regset): Use void * instead of gdb_byte *.
8155
a2358508
PA
81562016-04-20 Pedro Alves <palves@redhat.com>
8157
8158 * configure: Renegerate.
8159
6885166d
YQ
81602016-04-20 Yao Qi <yao.qi@linaro.org>
8161
8162 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8163 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8164 number 16.
8165 (arm_store_gregset): Likewise.
8166
2b863f51
WT
81672016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8168
8169 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8170 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8171 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8172 (amd64-avx-mpx-linux.c): New rules.
8173 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8174 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8175 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8176 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8177 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8178 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8179 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8180 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8181 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8182 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8183 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8184 * linux-x86-low.c (x86_linux_read_description): Add case for
8185 X86_XSTATE_AVX_MPX_MASK.
8186 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8187 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8188 init_registers_i386_avx_mpx_linux.
8189 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8190 (initialize_low_tracepoint): Call
8191 init_registers_i386_avx_mpx_linux.
8192 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8193 (initialize_low_tracepoint): Call
8194 init_registers_amd64_avx_mpx_linux.
8195 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8196 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8197 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8198 declarations.
8199
9b30624b
PA
82002016-04-18 Pedro Alves <palves@redhat.com>
8201
8202 * configure: Regenerate.
8203
45e3745e
AT
82042016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8205
8206 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8207 (aarch64_emit_sub): Likewise.
8208
2afc13ff
PA
82092016-04-12 Pedro Alves <palves@redhat.com>
8210
8211 * utils.c (prepare_to_throw_exception): Delete.
8212
6e774b13
SM
82132016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8214
8215 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8216
4dca19f8
MK
82172016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8218
8219 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8220
d0a9981f
MK
82212016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8222
8223 * linux-aarch64-ipa.c: Add <elf.h> include.
8224 * linux-ppc-ipa.c: Add <elf.h> include.
8225 * linux-s390-ipa.c: Add <elf.h> include.
8226
252db07e
MK
82272016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8228
8229 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8230 (get_raw_reg_ptr): Likewise.
8231 (get_trace_state_variable_value_ptr): Likewise.
8232 (set_trace_state_variable_value_ptr): Likewise.
8233 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8234 char *.
8235
14e2b6d9
MK
82362016-03-31 Wei-cheng Wang <cole945@gmail.com>
8237 Marcin Kościelnicki <koriakin@0x04.net>
8238
8239 PR/17221
8240 * linux-ppc-low.c (emit_insns): New function.
8241 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8242 (ppc_emit_prologue): New function.
8243 (ppc_emit_epilogue): New function.
8244 (ppc_emit_add): New function.
8245 (ppc_emit_sub): New function.
8246 (ppc_emit_mul): New function.
8247 (ppc_emit_lsh): New function.
8248 (ppc_emit_rsh_signed): New function.
8249 (ppc_emit_rsh_unsigned): New function.
8250 (ppc_emit_ext): New function.
8251 (ppc_emit_zero_ext): New function.
8252 (ppc_emit_log_not): New function.
8253 (ppc_emit_bit_and): New function.
8254 (ppc_emit_bit_or): New function.
8255 (ppc_emit_bit_xor): New function.
8256 (ppc_emit_bit_not): New function.
8257 (ppc_emit_equal): New function.
8258 (ppc_emit_less_signed): New function.
8259 (ppc_emit_less_unsigned): New function.
8260 (ppc_emit_ref): New function.
8261 (ppc_emit_const): New function.
8262 (ppc_emit_reg): New function.
8263 (ppc_emit_pop): New function.
8264 (ppc_emit_stack_flush): New function.
8265 (ppc_emit_swap): New function.
8266 (ppc_emit_stack_adjust): New function.
8267 (ppc_emit_call): New function.
8268 (ppc_emit_int_call_1): New function.
8269 (ppc_emit_void_call_2): New function.
8270 (ppc_emit_if_goto): New function.
8271 (ppc_emit_goto): New function.
8272 (ppc_emit_eq_goto): New function.
8273 (ppc_emit_ne_goto): New function.
8274 (ppc_emit_lt_goto): New function.
8275 (ppc_emit_le_goto): New function.
8276 (ppc_emit_gt_goto): New function.
8277 (ppc_emit_ge_goto): New function.
8278 (ppc_write_goto_address): New function.
8279 (ppc_emit_ops_impl): New static variable.
8280 (ppc64v1_emit_prologue): New function.
8281 (ppc64v2_emit_prologue): New function.
8282 (ppc64_emit_epilogue): New function.
8283 (ppc64_emit_add): New function.
8284 (ppc64_emit_sub): New function.
8285 (ppc64_emit_mul): New function.
8286 (ppc64_emit_lsh): New function.
8287 (ppc64_emit_rsh_signed): New function.
8288 (ppc64_emit_rsh_unsigned): New function.
8289 (ppc64_emit_ext): New function.
8290 (ppc64_emit_zero_ext): New function.
8291 (ppc64_emit_log_not): New function.
8292 (ppc64_emit_bit_and): New function.
8293 (ppc64_emit_bit_or): New function.
8294 (ppc64_emit_bit_xor): New function.
8295 (ppc64_emit_bit_not): New function.
8296 (ppc64_emit_equal): New function.
8297 (ppc64_emit_less_signed): New function.
8298 (ppc64_emit_less_unsigned): New function.
8299 (ppc64_emit_ref): New function.
8300 (ppc64_emit_const): New function.
8301 (ppc64v1_emit_reg): New function.
8302 (ppc64v2_emit_reg): New function.
8303 (ppc64_emit_pop): New function.
8304 (ppc64_emit_stack_flush): New function.
8305 (ppc64_emit_swap): New function.
8306 (ppc64v1_emit_call): New function.
8307 (ppc64v2_emit_call): New function.
8308 (ppc64v1_emit_int_call_1): New function.
8309 (ppc64v2_emit_int_call_1): New function.
8310 (ppc64v1_emit_void_call_2): New function.
8311 (ppc64v2_emit_void_call_2): New function.
8312 (ppc64_emit_if_goto): New function.
8313 (ppc64_emit_eq_goto): New function.
8314 (ppc64_emit_ne_goto): New function.
8315 (ppc64_emit_lt_goto): New function.
8316 (ppc64_emit_le_goto): New function.
8317 (ppc64_emit_gt_goto): New function.
8318 (ppc64_emit_ge_goto): New function.
8319 (ppc64v1_emit_ops_impl): New static variable.
8320 (ppc64v2_emit_ops_impl): New static variable.
8321 (ppc_emit_ops): New function.
8322 (linux_low_target): Wire in ppc_emit_ops.
8323
a2174ba4
MK
83242016-03-31 Wei-cheng Wang <cole945@gmail.com>
8325 Marcin Kościelnicki <koriakin@0x04.net>
8326
8327 PR/17221
8328 * Makefile.in: Add powerpc-*-ipa.o
8329 * configure.srv: Add ipa_obj for powerpc*-linux.
8330 * linux-ppc-ipa.c: New file.
8331 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8332 includes.
8333 (PPC_FIELD): New macro.
8334 (PPC_SEXT): New macro.
8335 (PPC_OP6): New macro.
8336 (PPC_BO): New macro.
8337 (PPC_LI): New macro.
8338 (PPC_BD): New macro.
8339 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8340 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8341 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8342 (ppc_get_thread_area): New function.
8343 (is_elfv2_inferior): New function.
8344 (gen_ds_form): New function.
8345 (GEN_STD): New macro.
8346 (GEN_STDU): New macro.
8347 (GEN_LD): New macro.
8348 (GEN_LDU): New macro.
8349 (gen_d_form): New function.
8350 (GEN_ADDI): New macro.
8351 (GEN_ADDIS): New macro.
8352 (GEN_LI): New macro.
8353 (GEN_LIS): New macro.
8354 (GEN_ORI): New macro.
8355 (GEN_ORIS): New macro.
8356 (GEN_LWZ): New macro.
8357 (GEN_STW): New macro.
8358 (GEN_STWU): New macro.
8359 (gen_xfx_form): New function.
8360 (GEN_MFSPR): New macro.
8361 (GEN_MTSPR): New macro.
8362 (GEN_MFCR): New macro.
8363 (GEN_MTCR): New macro.
8364 (GEN_SYNC): New macro.
8365 (GEN_LWSYNC): New macro.
8366 (gen_x_form): New function.
8367 (GEN_OR): New macro.
8368 (GEN_MR): New macro.
8369 (GEN_LWARX): New macro.
8370 (GEN_STWCX): New macro.
8371 (GEN_CMPW): New macro.
8372 (gen_md_form): New function.
8373 (GEN_RLDICL): New macro.
8374 (GEN_RLDICR): New macro.
8375 (gen_i_form): New function.
8376 (GEN_B): New macro.
8377 (GEN_BL): New macro.
8378 (gen_b_form): New function.
8379 (GEN_BNE): New macro.
8380 (GEN_LOAD): New macro.
8381 (GEN_STORE): New macro.
8382 (gen_limm): New function.
8383 (gen_atomic_xchg): New function.
8384 (gen_call): New function.
8385 (ppc_relocate_instruction): New function.
8386 (ppc_install_fast_tracepoint_jump_pad): New function.
8387 (ppc_get_min_fast_tracepoint_insn_len): New function.
8388 (ppc_get_ipa_tdesc_idx): New function.
8389 (the_low_target): Wire in the new functions.
8390 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8391 tdescs.
8392 * linux-ppc-tdesc.h: New file.
8393
a13c4696
MK
83942016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8395
8396 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8397 (alloc_jump_pad_buffer): New function.
8398 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8399 (alloc_jump_pad_buffer): New function.
8400 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8401 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8402 (alloc_jump_pad_buffer): New function.
8403 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8404 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8405 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8406 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8407
1cda1512
MK
84082016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8409
8410 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8411 * linux-amd64-ipa.c: Likewise.
8412 * linux-i386-ipa.c: Likewise.
8413 * linux-s390-ipa.c: Likewise.
8414 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8415 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8416 set_trace_state_variable_value_ptr.
8417 (struct ipa_sym_addresses): Likewise.
8418 (symbol_list): Likewise.
8419 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8420 accessing gdb_collect directly.
8421 (gdb_collect_ptr_type): New typedef.
8422 (get_raw_reg_ptr_type): New typedef.
8423 (get_trace_state_variable_value_ptr_type): New typedef.
8424 (set_trace_state_variable_value_ptr_type): New typedef.
8425 (gdb_collect_ptr): New global.
8426 (get_raw_reg_ptr): New global.
8427 (get_trace_state_variable_value_ptr): New global.
8428 (set_trace_state_variable_value_ptr): New global.
8429 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8430 accessing get_raw_reg directly.
8431 (get_get_tsv_func_addr): Likewise for
8432 get_trace_state_variable_value_ptr.
8433 (get_set_tsv_func_addr): Likewise for
8434 set_trace_state_variable_value_ptr.
8435 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8436
72fb5488
SM
84372016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8438
8439 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8440
28170b88
MK
84412016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8442
8443 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8444 packets.
8445 (relocate_instruction): Remove own_buf.
8446 * server.c (own_buf): Make global.
8447 (handle_v_requests): Make global.
8448 * server.h (own_buf): New declaration.
8449 (handle_v_requests): New prototype.
8450
f39e8743
MK
84512016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8452
8453 PR 18377
8454 * linux-s390-low.c (add_insns): New function.
8455 (s390_emit_prologue): New function.
8456 (s390_emit_epilogue): New function.
8457 (s390_emit_add): New function.
8458 (s390_emit_sub): New function.
8459 (s390_emit_mul): New function.
8460 (s390_emit_lsh): New function.
8461 (s390_emit_rsh_signed): New function.
8462 (s390_emit_rsh_unsigned): New function.
8463 (s390_emit_ext): New function.
8464 (s390_emit_log_not): New function.
8465 (s390_emit_bit_and): New function.
8466 (s390_emit_bit_or): New function.
8467 (s390_emit_bit_xor): New function.
8468 (s390_emit_bit_not): New function.
8469 (s390_emit_equal): New function.
8470 (s390_emit_less_signed): New function.
8471 (s390_emit_less_unsigned): New function.
8472 (s390_emit_ref): New function.
8473 (s390_emit_if_goto): New function.
8474 (s390_emit_goto): New function.
8475 (s390_write_goto_address): New function.
8476 (s390_emit_litpool): New function.
8477 (s390_emit_const): New function.
8478 (s390_emit_call): New function.
8479 (s390_emit_reg): New function.
8480 (s390_emit_pop): New function.
8481 (s390_emit_stack_flush): New function.
8482 (s390_emit_zero_ext): New function.
8483 (s390_emit_swap): New function.
8484 (s390_emit_stack_adjust): New function.
8485 (s390_emit_set_r2): New function.
8486 (s390_emit_int_call_1): New function.
8487 (s390_emit_void_call_2): New function.
8488 (s390_emit_eq_goto): New function.
8489 (s390_emit_ne_goto): New function.
8490 (s390_emit_lt_goto): New function.
8491 (s390_emit_le_goto): New function.
8492 (s390_emit_gt_goto): New function.
8493 (s390_emit_ge_goto): New function.
8494 (s390x_emit_prologue): New function.
8495 (s390x_emit_epilogue): New function.
8496 (s390x_emit_add): New function.
8497 (s390x_emit_sub): New function.
8498 (s390x_emit_mul): New function.
8499 (s390x_emit_lsh): New function.
8500 (s390x_emit_rsh_signed): New function.
8501 (s390x_emit_rsh_unsigned): New function.
8502 (s390x_emit_ext): New function.
8503 (s390x_emit_log_not): New function.
8504 (s390x_emit_bit_and): New function.
8505 (s390x_emit_bit_or): New function.
8506 (s390x_emit_bit_xor): New function.
8507 (s390x_emit_bit_not): New function.
8508 (s390x_emit_equal): New function.
8509 (s390x_emit_less_signed): New function.
8510 (s390x_emit_less_unsigned): New function.
8511 (s390x_emit_ref): New function.
8512 (s390x_emit_if_goto): New function.
8513 (s390x_emit_const): New function.
8514 (s390x_emit_call): New function.
8515 (s390x_emit_reg): New function.
8516 (s390x_emit_pop): New function.
8517 (s390x_emit_stack_flush): New function.
8518 (s390x_emit_zero_ext): New function.
8519 (s390x_emit_swap): New function.
8520 (s390x_emit_stack_adjust): New function.
8521 (s390x_emit_int_call_1): New function.
8522 (s390x_emit_void_call_2): New function.
8523 (s390x_emit_eq_goto): New function.
8524 (s390x_emit_ne_goto): New function.
8525 (s390x_emit_lt_goto): New function.
8526 (s390x_emit_le_goto): New function.
8527 (s390x_emit_gt_goto): New function.
8528 (s390x_emit_ge_goto): New function.
8529 (s390_emit_ops): New function.
8530 (struct linux_target_ops): Fill in emit_ops hook.
8531
abd9baf9
MK
85322016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8533
8534 PR 18377
8535 * Makefile.in: Add s390 IPA files.
8536 * configure.srv: Build IPA for s390.
8537 * linux-s390-ipa.c: New file.
8538 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8539 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8540 (tdesc_s390_linux32): Likewise.
8541 (init_registers_s390_linux32v1): Likewise.
8542 (tdesc_s390_linux32v1): Likewise.
8543 (init_registers_s390_linux32v2): Likewise.
8544 (tdesc_s390_linux32v2): Likewise.
8545 (init_registers_s390_linux64): Likewise.
8546 (tdesc_s390_linux64): Likewise.
8547 (init_registers_s390_linux64v1): Likewise.
8548 (tdesc_s390_linux64v1): Likewise.
8549 (init_registers_s390_linux64v2): Likewise.
8550 (tdesc_s390_linux64v2): Likewise.
8551 (init_registers_s390_te_linux64): Likewise.
8552 (tdesc_s390_te_linux64): Likewise.
8553 (init_registers_s390_vx_linux64): Likewise.
8554 (tdesc_s390_vx_linux64): Likewise.
8555 (init_registers_s390_tevx_linux64): Likewise.
8556 (tdesc_s390_tevx_linux64): Likewise.
8557 (init_registers_s390x_linux64): Likewise.
8558 (tdesc_s390x_linux64): Likewise.
8559 (init_registers_s390x_linux64v1): Likewise.
8560 (tdesc_s390x_linux64v1): Likewise.
8561 (init_registers_s390x_linux64v2): Likewise.
8562 (tdesc_s390x_linux64v2): Likewise.
8563 (init_registers_s390x_te_linux64): Likewise.
8564 (tdesc_s390x_te_linux64): Likewise.
8565 (init_registers_s390x_vx_linux64): Likewise.
8566 (tdesc_s390x_vx_linux64): Likewise.
8567 (init_registers_s390x_tevx_linux64): Likewise.
8568 (tdesc_s390x_tevx_linux64): Likewise.
8569 (have_hwcap_s390_vx): New static variable.
8570 (s390_arch_setup): Fill have_hwcap_s390_vx.
8571 (s390_get_thread_area): New function.
8572 (s390_ft_entry_gpr_esa): New const.
8573 (s390_ft_entry_gpr_zarch): New const.
8574 (s390_ft_entry_misc): New const.
8575 (s390_ft_entry_fr): New const.
8576 (s390_ft_entry_vr): New const.
8577 (s390_ft_main_31): New const.
8578 (s390_ft_main_64): New const.
8579 (s390_ft_exit_fr): New const.
8580 (s390_ft_exit_vr): New const.
8581 (s390_ft_exit_misc): New const.
8582 (s390_ft_exit_gpr_esa): New const.
8583 (s390_ft_exit_gpr_zarch): New const.
8584 (append_insns): New function.
8585 (s390_relocate_instruction): New function.
8586 (s390_install_fast_tracepoint_jump_pad): New function.
8587 (s390_get_min_fast_tracepoint_insn_len): New function.
8588 (s390_get_ipa_tdesc_idx): New function.
8589 (struct linux_target_ops): Wire in the above functions.
8590 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8591 * linux-s390-tdesc.h: New file.
8592
a4105d04
MK
85932016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8594
8595 * linux-s390-low.c (s390_supports_tracepoints): New function.
8596 (struct linux_target_ops): Fill supports_tracepoints hook.
8597
35ac8b3e
YQ
85982016-03-18 Yao Qi <yao.qi@linaro.org>
8599
8600 * linux-low.c (lwp_signal_can_be_delivered): New function.
8601 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8602
94610ec4
YQ
86032016-03-18 Yao Qi <yao.qi@linaro.org>
8604
8605 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8606 0 if signal is enqueued. Remove 'signal' from one debugging
8607 message. Move one debugging message to some lines below.
8608 Remove code setting 'signal' to 0.
8609
80aea927
YQ
86102016-03-18 Yao Qi <yao.qi@linaro.org>
8611
8612 * linux-low.c (linux_low_filter_event): Remove redundant
8613 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8614
b04fd3be
MK
86152016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8616
8617 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8618 (struct linux_target_ops): Wire in the above.
8619
c40c8d4b
YQ
86202016-03-03 Yao Qi <yao.qi@linaro.org>
8621
8622 * linux-low.c: Update comments to start_step_over.
8623
0f8288ae
YQ
86242016-03-03 Yao Qi <yao.qi@linaro.org>
8625
8626 PR server/19736
8627 * linux-low.c (handle_extended_wait): Set child suspended
8628 if event_lwp->bp_reinsert isn't zero.
8629
fdbd04a8
YQ
86302016-03-02 Yao Qi <yao.qi@linaro.org>
8631
8632 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8633 enqueue_pending_signal.
8634
6896a8fa
MK
86352016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8636
8637 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8638 is actually loaded.
8639
ab503087
MK
86402016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8641
8642 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8643 (s390_regmap_3264) [!__s390x__]: New global.
8644 (s390_collect_ptrace_register): Skip map entries containing -1.
8645 (s390_supply_ptrace_register): Ditto.
8646 (s390_fill_gprs_high): New function.
8647 (s390_store_gprs_high): New function.
8648 (s390_regsets): Add NT_S390_HIGH_GPRS.
8649 (s390_get_hwcap): Enable on 31-bit.
8650 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8651 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8652 Detect NT_S390_HIGH_GPRS.
8653 (s390_usrregs_info_3264): Enable on 31-bit.
8654 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8655 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8656
ae91f625
MK
86572016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8658
8659 PR gdb/13808
8660 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8661 * configure.srv: Ditto.
8662 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8663 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8664 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8665 (init_registers_amd64_linux): Remove prototype.
8666 (tdesc_amd64_linux): Remove declaration.
8667 (get_ipa_tdesc): New function.
8668 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8669 initialize remaining tdescs.
8670 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8671 (init_registers_i386_linux): Remove prototype.
8672 (tdesc_i386_linux): Remove declaration.
8673 (get_ipa_tdesc): New function.
8674 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8675 initialize remaining tdescs.
8676 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8677 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8678 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8679 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8680 (x86_get_ipa_tdesc_idx): New function.
8681 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8682 * linux-x86-tdesc.h: New file.
8683 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8684 (target_get_ipa_tdesc_idx): New macro.
8685 * tracepoint.c (ipa_tdesc_idx): New macro.
8686 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8687 (symbol_list): Add ipa_tdesc_idx.
8688 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8689 (ipa_tdesc): Remove.
8690 (ipa_tdesc_idx): New variable.
8691 (get_context_regcache): Use get_ipa_tdesc.
8692 (gdb_collect): Ditto.
8693 (gdb_probe): Ditto.
8694 * tracepoint.h (get_ipa_tdesc): New prototype.
8695 (ipa_tdesc): Remove.
8696
e7ad2f14
PA
86972016-02-24 Pedro Alves <palves@redhat.com>
8698
8699 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8700 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8701 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8702 Factor out common code between the USE_SIGTRAP_SIGINFO and
8703 !USE_SIGTRAP_SIGINFO blocks.
8704 (linux_low_filter_event): Call save_stop_reason instead of
8705 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8706 Update comments.
8707 (linux_wait_1): Update comments.
8708
657f9cde
WW
87092016-02-24 Wei-cheng Wang <cole945@gmail.com>
8710
8711 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8712 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8713 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8714 ppc_insert_point, ppc_remove_point.
8715
b00b61e1
MK
87162016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8717
8718 * linux-s390-low.c (s390_supports_z_point_type): New function.
8719 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8720
553cb527
YQ
87212016-02-16 Yao Qi <yao.qi@linaro.org>
8722
8723 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8724 PC. Get pc from regcache_read_pc.
8725
a5652c21
YQ
87262016-02-12 Yao Qi <yao.qi@linaro.org>
8727
8728 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8729 or linux_get_pc_32bit.
8730 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8731
ed443b61
YQ
87322016-02-12 Yao Qi <yao.qi@linaro.org>
8733
8734 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8735 arm_linux_get_next_pcs_fixup.
8736
020ecd38
MK
87372016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8738
8739 * tracepoint.c (x_tracepoint_action_download): Change
8740 write_inferior_data_ptr to write_inferior_data_pointer.
8741 (cmd_qtstart): Likewise.
8742 (write_inferior_data_ptr): Remove.
8743 (download_agent_expr): Change write_inferior_data_ptr to
8744 write_inferior_data_pointer.
8745 (download_tracepoint_1): Likewise.
8746 (download_tracepoint): Likewise.
8747 (download_trace_state_variables): Likewise.
8748
7cae9051
WW
87492016-02-11 Wei-cheng Wang <cole945@gmail.com>
8750 Marcin Kościelnicki <koriakin@0x04.net>
8751
8752 * tracepoint.c (struct tracepoint_action_ops): Remove.
8753 (struct tracepoint_action): Remove ops.
8754 (m_tracepoint_action_download, r_tracepoint_action_download)
8755 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8756 size and offset accordingly.
8757 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8758 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8759 (tracepoint_action_send, tracepoint_action_download): New functions.
8760 Helpers for trace action handlers.
8761 (add_tracepoint_action): Remove setup actions ops.
8762 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8763
9f6a71b4
YQ
87642016-02-10 Yao Qi <yao.qi@linaro.org>
8765
8766 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8767
1e94266c
SM
87682016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8769
8770 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8771 to AC_OUTPUT.
8772 * configure: Regenerate.
8773
8adce034
SM
87742016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8775
8776 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8777 void * to gdb_byte *.
8778 * linux-low.c (siginfo_fixup): Likewise.
8779 (linux_xfer_siginfo): Likewise.
8780 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8781 Likewise.
8782 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8783
93813b37
WT
87842016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8785
8786 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8787 to srv_tgtobj.
8788 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8789 to srv_tgtobj.
8790 * linux-x86-low.c [__x86_64__]: Include
8791 "nat/amd64-linux-siginfo.h".
8792 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8793 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8794 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8795 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8796 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8797 (cpt_si_fd, si_timerid, si_overrun): Move from
8798 nat/amd64-linux-siginfo.c.
8799 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8800
8424cc97
SM
88012016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8802
8803 * server.c (skip_to_semicolon): Remove.
8804 (process_point_options): Use strchrnul instead of
8805 skip_to_semicolon.
8806
4d18591b
YQ
88072016-01-26 Yao Qi <yao.qi@linaro.org>
8808
8809 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8810 * linux-low.c (install_software_single_step_breakpoints): Don't
8811 call regcache_read_pc.
8812 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8813 argument pc.
8814
d8020970
YQ
88152016-01-26 Yao Qi <yao.qi@linaro.org>
8816
8817 * linux-low.c (install_software_single_step_breakpoints): Call
8818 regcache_read_pc instead of get_pc.
8819
8b207339
YQ
88202016-01-26 Yao Qi <yao.qi@linaro.org>
8821
8822 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8823 (unblock_async_io): Rename to ...
8824 (block_unblock_async_io): ... it. New function.
8825 (enable_async_io): Don't install SIGIO handler. Unblock it
8826 instead.
8827 (disable_async_io): Don't ignore SIGIO. Block it instead.
8828 (initialize_async_io): Install SIGIO handler. Don't call
8829 unblock_async_io.
8830
18879fef
YQ
88312016-01-26 Yao Qi <yao.qi@linaro.org>
8832
8833 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8834 first character is '\003', call *the_target->request_interrupt.
8835
a0f8e08a
YQ
88362016-01-25 Yao Qi <yao.qi@linaro.org>
8837
8838 * remote-utils.c (new_thread_notify): Remove.
8839 (dead_thread_notify): Likewise.
8840 * remote-utils.h (new_thread_notify): Remove declaration.
8841 (dead_thread_notify): Likewise.
8842
cc5fd9ab
MK
88432016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8844
8845 * gdb.trace/pending.exp: Fix expected message on continue.
8846
99e8eb11
MK
88472016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8848
8849 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8850 it works properly on big-endian machines where sizeof (CORE_ADDR)
8851 != sizeof (void *).
8852
a994041d
PA
88532016-01-21 Pedro Alves <palves@redhat.com>
8854
8855 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8856 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8857 * configure: Regenerate.
8858
f7a6a40d
YQ
88592016-01-21 Yao Qi <yao.qi@linaro.org>
8860
8861 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8862 is_thumb and set it according to CPSR saved on the stack.
8863 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8864 arm_sigreturn_next_pc.
8865
6f69e520
YQ
88662016-01-18 Yao Qi <yao.qi@linaro.org>
8867
8868 * linux-low.c (linux_set_pc_64bit): New function.
8869 (linux_get_pc_64bit): New function.
8870 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8871 Declare.
8872 * linux-sparc-low.c (debug_threads): Remove declaration.
8873 (sparc_get_pc): Remove.
8874 (the_low_target): Use linux_get_pc_64bit instead of
8875 sparc_get_pc.
8876 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8877 (the_low_target): Use linux_get_pc_64bit and
8878 linux_set_pc_64bit.
8879
276d4552
YQ
88802016-01-18 Yao Qi <yao.qi@linaro.org>
8881
8882 * linux-arm-low.c (debug_threads): Remove declaration.
8883 (arm_get_pc, arm_set_pc): Remove.
8884 (the_low_target): Use linux_get_pc_32bit and
8885 linux_set_pc_32bit.
8886 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8887 (the_low_target): Use linux_get_pc_32bit and
8888 linux_set_pc_32bit.
8889 * linux-cris-low.c (debug_threads): Remove declaration.
8890 (cris_get_pc, cris_set_pc,): Remove.
8891 (the_low_target): Use linux_get_pc_32bit and
8892 linux_set_pc_32bit.
8893 * linux-crisv32-low.c (debug_threads): Remove declaration.
8894 (cris_get_pc, cris_set_pc): Remove.
8895 (the_low_target): Use linux_get_pc_32bit and
8896 linux_set_pc_32bit.
8897 * linux-low.c: Include inttypes.h.
8898 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8899 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8900 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8901 (the_low_target): Use linux_get_pc_32bit and
8902 linux_set_pc_32bit.
8903 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8904 (the_low_target): Use linux_get_pc_32bit and
8905 linux_set_pc_32bit.
8906 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8907 (the_low_target): Use linux_get_pc_32bit and
8908 linux_set_pc_32bit.
8909 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8910 (the_low_target): Use linux_get_pc_32bit and
8911 linux_set_pc_32bit.
8912 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8913 (the_low_target): Use linux_get_pc_32bit and
8914 linux_set_pc_32bit.
8915
eb0edac8
GB
89162016-01-18 Gary Benson <gbenson@redhat.com>
8917
8918 * configure.ac (AC_FUNC_FORK): New check.
8919 * config.in: Regenerate.
8920 * configure: Likewise.
8921
1b451dda
YQ
89222016-01-14 Yao Qi <yao.qi@linaro.org>
8923
8924 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8925 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8926 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8927 arm_get_next_pcs_ctor.
8928
82075af2
JS
89292016-01-12 Josh Stone <jistone@redhat.com>
8930 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8931
8932 * inferiors.h: Include "gdb_vecs.h".
8933 (struct process_info): Add syscalls_to_catch.
8934 * inferiors.c (remove_process): Free syscalls_to_catch.
8935 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8936 syscall_return stops.
8937 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8938 * server.c (handle_general_set): Handle QCatchSyscalls.
8939 (handle_query): Report support for QCatchSyscalls.
8940 * target.h (struct target_ops): Add supports_catch_syscall.
8941 (target_supports_catch_syscall): New macro.
8942 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8943 (struct lwp_info): Add syscall_state.
8944 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8945 Maintain syscall_state and syscalls_to_catch across exec.
8946 (get_syscall_trapinfo): New function, proxy to the_low_target.
8947 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8948 (linux_low_filter_event): Toggle syscall_state entry/return for
8949 syscall traps, and set it ignored for all others.
8950 (gdb_catching_syscalls_p): New function.
8951 (gdb_catch_this_syscall_p): New function.
8952 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8953 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8954 (linux_supports_catch_syscall): New function.
8955 (linux_target_ops): Install it.
8956 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8957 (the_low_target): Install it.
8958
8f13a3ce
MF
89592016-01-12 Mike Frysinger <vapier@gentoo.org>
8960
8961 * acinclude.m4: Include new ../warning.m4 file.
8962 * configure: Regenerated.
8963 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8964
5b3da067
MF
89652016-01-12 Mike Frysinger <vapier@gentoo.org>
8966
8967 * ax.c (is_goto_target): Mark static.
8968 * linux-low.c (register_addr): Likewise.
8969 (linux_fetch_registers, linux_store_registers): Likewise.
8970 * mem-break.c (any_persistent_commands): Fix old prototype.
8971 (add_commands_to_breakpoint): Mark static.
8972 * regcache.c (find_register_by_name): Delete unused func.
8973 * remote-utils.c (hex_or_minus_one): Mark static.
8974 * server.c (monitor_show_help): Mark static.
8975 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8976 handle_v_requests): Likewise.
8977
bc504a31
PA
89782016-01-12 Pedro Alves <palves@redhat.com>
8979
8980 Remove use of the registered trademark symbol throughout.
8981
5a0dd67a
YQ
89822016-01-08 Yao Qi <yao.qi@linaro.org>
8983
8984 * remote-utils.c (getpkt): If c is '\003', call target hook
8985 request_interrupt.
8986
b2ca446f
YQ
89872016-01-06 Yao Qi <yao.qi@linaro.org>
8988
8989 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8990 linux-aarch32-low.c.
8991 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8992 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8993 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8994 (thumb2_breakpoint): Declare.
8995 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8996 linux-aarch32-low.h.
8997 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8998 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8999 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9000
edd88788
JB
90012016-01-01 Joel Brobecker <brobecker@adacore.com>
9002
9003 * gdbreplay.c (gdbreplay_version): Change copyright year in
9004 version message.
9005 * server.c (gdbserver_version): Likewise.
9006
65da7f14
PP
90072015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9008
9009 * server.c (crc32_table): Delete.
9010 (crc32): Use libiberty's xcrc32 function.
9011
4abd5ed2
JB
90122015-12-22 Joel Brobecker <brobecker@adacore.com>
9013
9014 * lynx-low.c (lynx_delete_thread_callback): New function.
9015 (lynx_mourn): Properly delete our process and all of its
9016 threads. Remove call to clear_inferiors.
9017
0e50fe5c
JB
90182015-12-22 Joel Brobecker <brobecker@adacore.com>
9019
9020 * target.c (thread_search_callback): Add check that
9021 the thread_stopped target callback is not NULL before
9022 calling it.
9023
35adc03f
YQ
90242015-12-21 Yao Qi <yao.qi@linaro.org>
9025
9026 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9027 arm breakpoint.
9028
bd2b2909
AT
90292015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9030
9031 * server.c (handle_query): Call target_supports_software_single_step.
9032
7fe5e27e
AT
90332015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9034
9035 * linux-low.c (single_step): New function.
9036 (linux_resume_one_lwp_throw): Call single_step.
9037 (start_step_over): Likewise.
9038
d9311bfa
AT
90392015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9040
9041 * Makefile.in (SFILES): Append arch/arm-linux.c,
9042 arch/arm-get-next-pcs.c.
9043 (arm-linux.o): New rule.
9044 (arm-get-next-pcs.o): New rule.
9045 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9046 arm-linux.o.
9047 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9048 to linux-aarch32-low.c.
9049 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9050 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9051 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9052 (thumb2_breakpoint_len): Likewise.
9053 (arm_is_thumb_mode): Make non-static.
9054 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9055 from linux-aarch32-low.c.
9056 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9057 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9058 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9059 (thumb2_breakpoint_len): Likewise.
9060 (arm_is_thumb_mode): New declaration.
9061 * linux-arm-low.c: Include arch/arm-linux.h
9062 aarch/arm-get-next-pcs.h, sys/syscall.h.
9063 (get_next_pcs_ops): New struct.
9064 (get_next_pcs_addr_bits_remove): New function.
9065 (get_next_pcs_is_thumb): New function.
9066 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9067 (arm_sigreturn_next_pc): Likewise.
9068 (get_next_pcs_syscall_next_pc): Likewise.
9069 (arm_gdbserver_get_next_pcs): Likewise.
9070 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9071 Initialize.
9072 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9073 * server.h: Include gdb_vecs.h.
9074
68ce2059
AT
90752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9076
9077 * Makefile.in (SFILES): Append common/common-regcache.c.
9078 (OBS): Append common-regcache.o.
9079 (common-regcache.o): New rule.
9080 * regcache.c (init_register_cache): Initialize cache to
9081 REG_UNAVAILABLE.
9082 (regcache_raw_read_unsigned): New function.
9083 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9084 register_status enum.
9085
fa5308bd
AT
90862015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9087
9088 * linux-aarch64-low.c (the_low_targets): Rename
9089 breakpoint_reinsert_addr to get_next_pcs.
9090 * linux-arm-low.c (the_low_targets): Likewise.
9091 * linux-bfin-low.c (the_low_targets): Likewise.
9092 * linux-cris-low.c (the_low_targets): Likewise.
9093 * linux-crisv32-low.c (the_low_targets): Likewise.
9094 * linux-low.c (can_software_single_step): Likewise.
9095 (install_software_single_step_breakpoints): New function.
9096 (start_step_over): Use install_software_single_step_breakpoints.
9097 * linux-low.h: New CORE_ADDR vector.
9098 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9099 get_next_pcs.
9100 * linux-mips-low.c (the_low_targets): Likewise.
9101 * linux-nios2-low.c (the_low_targets): Likewise.
9102 * linux-sparc-low.c (the_low_targets): Likewise.
9103
4a6ed09b
PA
91042015-12-17 Pedro Alves <palves@redhat.com>
9105
9106 * linux-low.c (linux_kill_one_lwp): Remove references to
9107 LinuxThreads.
9108 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9109 to 'kill'.
9110 (linux_init_signals): Delete.
9111 (initialize_low): Adjust.
9112 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9113
7544db95
PA
91142015-12-16 Pedro Alves <palves@redhat.com>
9115
9116 * configure.ac (compiler warning flags): When testing a
9117 -Wno-foo option, check whether -Wfoo works instead.
9118 * configure: Regenerate.
9119
8020350c
DB
91202015-12-11 Don Breazeal <donb@codesourcery.com>
9121
9122 * server.c (process_serial_event): Don't exit from gdbserver
9123 in remote mode if there are still active inferiors.
9124
db91f502
YQ
91252015-12-11 Yao Qi <yao.qi@linaro.org>
9126
9127 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9128 arm_breakpoint_at if the process is 32-bit.
9129
b37a6290
YQ
91302015-12-11 Yao Qi <yao.qi@linaro.org>
9131
9132 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9133 arm breakpoint.
9134
17b1509a
YQ
91352015-12-07 Yao Qi <yao.qi@linaro.org>
9136
9137 * configure.srv: Append arm.o to srv_tgtobj for
9138 aarch64*-*-linux* target.
9139 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9140 from linux-arm-low.c.
9141 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9142 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9143 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9144 (thumb2_breakpoint_len): Likewise.
9145 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9146 (arm_breakpoint_kinds): Likewise.
9147 (arm_breakpoint_kind_from_pc): Likewise.
9148 (arm_sw_breakpoint_from_kind): Likewise.
9149 (arm_breakpoint_kind_from_current_state): Likewise.
9150 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9151 (arm_sw_breakpoint_from_kind): Declare.
9152 (arm_breakpoint_kind_from_current_state): Declare.
9153 (arm_breakpoint_at): Declare.
9154 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9155 arm_sw_breakpoint_from_kind if process is 32-bit.
9156 (aarch64_breakpoint_kind_from_pc): New function.
9157 (aarch64_breakpoint_kind_from_current_state): New function.
9158 (the_low_target): Initialize fields breakpoint_kind_from_pc
9159 and breakpoint_kind_from_current_state.
9160 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9161 linux-aarch32-low.c.
9162 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9163 (arm_breakpoint, arm_breakpoint_len): Likewise.
9164 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9165 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9166 (arm_is_thumb_mode): Likewise.
9167 (arm_breakpoint_at): Likewise.
9168 (arm_breakpoint_kind_from_pc): Likewise.
9169 (arm_sw_breakpoint_from_kind): Likewise.
9170 (arm_breakpoint_kind_from_current_state): Likewise.
9171
9172 Revert:
9173 2015-08-04 Yao Qi <yao.qi@linaro.org>
9174
9175 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9176 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9177 * server.c (extended_protocol): Remove "static".
9178 * server.h (extended_protocol): Declare it.
9179
ece66d65
JS
91802015-12-04 Josh Stone <jistone@redhat.com>
9181
9182 * target.h (struct target_ops) <arch_setup>: Rename to ...
9183 (struct target_ops) <post_create_inferior>: ... this.
9184 (target_arch_setup): Rename to ...
9185 (target_post_create_inferior): ... this, calling post_create_inferior.
9186 * server.c (start_inferior): Update target_arch_setup calls to
9187 target_post_create_inferior.
9188 * linux-low.c (linux_low_ptrace_options): Forward declare.
9189 (linux_arch_setup): Update its comment for general use.
9190 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9191 (struct linux_target_ops): Use linux_post_create_inferior.
9192 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9193 to post_create_inferior.
9194 * nto-low.c (struct nto_target_ops): Likewise.
9195 * spu-low.c (struct spu_target_ops): Likewise.
9196 * win32-low.c (struct win32_target_ops): Likewise.
9197
e58c48b4
AT
91982015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9199
9200 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9201
fbec8956
AT
92022015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9203
9204 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9205 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9206 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9207 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9208 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9209 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9210 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9211 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9212 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9213 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9214 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9215 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9216
9b4c5f87
AT
92172015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9218
9219 * linux-low.c (linux_look_up_symbols): Don't call
9220 linux_supports_traceclone.
9221 * linux-low.h (thread_db_init): Remove use_events argument.
9222 * thread-db.c (thread_db_use_event): Remove global variable.
9223 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9224 (struct thread_db) <td_create_bp>: Remove field.
9225 (thread_db_create_event): Remove function.
9226 (thread_db_enable_reporting): Likewise.
9227 (find_one_thread): Don't check for thread_db_use_events.
9228 (attach_thread): Likewise.
9229 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9230 (try_thread_db_load_1): Don't check for thread_db_use_events.
9231 (thread_db_init): Remove use_events argument and thread events
9232 handling.
9233 (remove_thread_event_breakpoints): Remove function.
9234 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9235
7d00775e
AT
92362015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9237
9238 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9239 New function.
9240 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9241 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9242 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9243 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9244 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9245 Initialize.
9246 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9247 New function.
9248 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9249 * linux-low.c (can_hardware_single_step): Use
9250 supports_hardware_single_step.
9251 (can_software_single_step): New function.
9252 (start_step_over): Call can_software_single_step.
9253 (linux_supports_hardware_single_step): New function.
9254 (struct target_ops) <supports_software_single_step>: Initialize.
9255 * linux-low.h (struct linux_target_ops)
9256 <supports_hardware_single_step>: Initialize.
9257 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9258 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9259 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9260 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9261 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9262 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9263 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9264 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9265 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9266 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9267 Initialize.
9268 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9269 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9270 Initialize.
9271 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9272 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9273 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9274 New function.
9275 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9276 * target.h (struct target_ops): <supports_software_single_step>:
9277 New field.
9278 (target_supports_software_single_step): New macro.
9279
2d97cd35
AT
92802015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9281
9282 * linux-low.c (linux_wait_1): Fix pc advance condition.
9283 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9284 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9285
769ef81f
AT
92862015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9287
9288 * linux-arm-low.c (arm_is_thumb_mode): New function.
9289 (arm_breakpoint_at): Use arm_is_thumb_mode.
9290 (arm_breakpoint_kind_from_current_state): New function.
9291 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9292 Initialize.
9293 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9294 (linux_breakpoint_kind_from_current_state): New function.
9295 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9296 * linux-low.h (struct linux_target_ops)
9297 <breakpoint_kind_from_current_state>: New field.
9298 * target.h (struct target_ops): Likewise.
9299 (target_breakpoint_kind_from_current_state): New macro.
9300
1bebeeca
PA
93012015-11-30 Pedro Alves <palves@redhat.com>
9302
9303 * linux-low.c (linux_resume): Wake up the event loop before
9304 returning.
9305
a67a9fae
PA
93062015-11-30 Pedro Alves <palves@redhat.com>
9307
9308 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9309 check.
9310 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9311 to -1.
9312 * target.c (struct thread_search): New structure.
9313 (thread_search_callback): New function.
9314 (prev_general_thread): New global.
9315 (prepare_to_access_memory, done_accessing_memory): New functions.
9316 * target.h (prepare_to_access_memory, done_accessing_memory):
9317 Replace macros with function declarations.
9318
f2faf941
PA
93192015-11-30 Pedro Alves <palves@redhat.com>
9320
9321 PR 14618
9322 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9323 report TARGET_WAITKIND_NO_RESUMED.
9324 * remote-utils.c (prepare_resume_reply): Handle
9325 TARGET_WAITKIND_NO_RESUMED.
9326 * server.c (report_no_resumed): New global.
9327 (handle_query) <qSupported>: Handle "no-resumed+". Report
9328 "no-resumed+" support.
9329 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9330 return error if the client doesn't support no-resumed events.
9331 (push_stop_notification): New function.
9332 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9333 events if the client supports them.
9334
a681f9c9
PA
93352015-11-30 Pedro Alves <palves@redhat.com>
9336
9337 * linux-low.c (thread_still_has_status_pending_p): Don't check
9338 vCont;t here.
9339 (lwp_resumed): New function.
9340 (status_pending_p_callback): Return early if the LWP is not
9341 supposed to be resumed.
9342
65706a29
PA
93432015-11-30 Pedro Alves <palves@redhat.com>
9344
9345 * linux-low.c (handle_extended_wait): Assert that the LWP's
9346 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9347 thread create events, leave the new child's status pending.
9348 (linux_low_filter_event): If GDB wants to hear about thread exit
9349 events, leave the LWP marked dead and don't delete it.
9350 (linux_wait_for_event_filtered): Don't check for thread exit.
9351 (filter_exit_event): New function.
9352 (linux_wait_1): Use it, when returning an exit event.
9353 (linux_resume_one_lwp_throw): Assert that the LWP's
9354 waitstatus is TARGET_WAITKIND_IGNORE.
9355 * remote-utils.c (prepare_resume_reply): Handle
9356 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9357 * server.c (report_thread_events): New global.
9358 (handle_general_set): Handle QThreadEvents.
9359 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9360 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9361 TARGET_WAITKIND_THREAD_EXITED.
9362 * server.h (report_thread_events): Declare.
9363
56cf4bed
PA
93642015-11-30 Pedro Alves <palves@redhat.com>
9365
9366 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9367 the thread's last_resume_kind was resume_stop.
9368
500c1d85
PA
93692015-11-30 Pedro Alves <palves@redhat.com>
9370
9371 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9372 before returning.
9373
de979965
PA
93742015-11-30 Pedro Alves <palves@redhat.com>
9375
9376 * server.c (handle_v_requests): Handle vCtrlC.
9377
34c65914
PA
93782015-11-30 Pedro Alves <palves@redhat.com>
9379
9380 * gdbthread.h (find_any_thread_of_pid): Declare.
9381 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9382 functions.
9383 * server.c (handle_query): If current_thread is NULL, look for
9384 another thread of the selected process.
9385
79efa585 93862015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9387 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9388
9389 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9390 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9391 name in reply.
9392 * target.h (struct target_ops) <thread_name>: New field.
9393 (target_thread_name): New macro.
9394
80d82c19
JB
93952015-11-23 Joel Brobecker <brobecker@adacore.com>
9396
9397 * regcache.h (regcache_invalidate_pid): Add declaration.
9398 * regcache.c (regcache_invalidate_pid): New function, extracted
9399 from regcache_invalidate.
9400 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9401 Add trivial documentation comment.
9402 * lynx-low.c: Use regcache_invalidate_pid instead of
9403 regcache_invalidate.
9404
64da5dd5
JB
94052015-11-23 Joel Brobecker <brobecker@adacore.com>
9406
9407 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9408 and Elf64_auxv_t if the target is Android.
9409
37ce4055
DE
94102015-11-22 Doug Evans <xdje42@gmail.com>
9411
9412 * target.h: #include <sys/types.h>.
9413
06e03fff
PA
94142015-11-19 Pedro Alves <palves@redhat.com>
9415
9416 * linux-low.c (linux_process_qsupported): Change prototype.
9417 Adjust.
9418 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9419 Change prototype.
9420 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9421 and adjust to loop over all features.
9422 * server.c (handle_query) <qSupported>: Adjust to call
9423 target_process_qsupported once, passing it a vector of unprocessed
9424 features.
9425 * target.h (struct target_ops) <process_qsupported>: Change
9426 prototype.
9427 (target_process_qsupported): Adjust.
9428
9a084706
PA
94292015-11-19 Pedro Alves <palves@redhat.com>
9430
9431 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9432 mode.
9433 * configure: Regenerate.
9434
dad44a1f
PA
94352015-11-19 Pedro Alves <palves@redhat.com>
9436
9437 * configure: Regenerate.
9438
231c0592
YQ
94392015-11-19 Yao Qi <yao.qi@linaro.org>
9440
9441 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9442 type to uint32_t.
9443
6c1c9a8b
YQ
94442015-11-19 Yao Qi <yao.qi@linaro.org>
9445
9446 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9447 (struct aarch64_operand): Move enum out.
9448
9caa3311
YQ
94492015-11-19 Yao Qi <yao.qi@linaro.org>
9450
9451 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9452 struct user_fpsimd_state *.
9453 (aarch64_store_fpregset): Likewise.
9454
6a69a054
YQ
94552015-11-19 Yao Qi <yao.qi@linaro.org>
9456
9457 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9458 struct user_pt_regs *.
9459 (aarch64_store_gregset): Likewise.
9460
1798301e
PA
94612015-11-18 Pedro Alves <palves@redhat.com>
9462
9463 * Makefile.in (all_object_files): Add $IPA_OBJS.
9464
ce7715e2
PA
94652015-11-17 Pedro Alves <palves@redhat.com>
9466
9467 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9468 GDB_SIGNAL_0 and gdb_signal_to_string.
9469
c0879059
PA
94702015-11-17 Pedro Alves <palves@redhat.com>
9471
9472 * win32-low.c (handle_output_debug_string): Remove parameter.
9473 (win32_kill): Remove our_status local and adjust call to
9474 handle_output_debug_string.
9475 (get_child_debug_event): Adjust call to
9476 handle_output_debug_string.
9477
1996e237
SM
94782015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9479
9480 * linux-mips-low.c (mips_fill_gregset): Add cast.
9481 (mips_store_gregset): Likewise.
9482 (mips_fill_fpregset): Likewise.
9483 (mips_store_fpregset): Likewise.
9484
cbec665b
SM
94852015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9486
9487 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9488 priv.
9489
eb3e3c67
SM
94902015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9491
9492 * linux-mips-low.c (mips_linux_new_thread): Change type of
9493 watch_type to enum target_hw_bp_type.
9494
171de4b8
SM
94952015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9496
9497 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9498 Change return type to arm_hwbp_type.
9499
04248ead
SM
95002015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9501
9502 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9503 (arm_store_gregset): Likewise.
9504 * linux-arm-low.c (arm_get_hwcap): Likewise.
9505 (arm_read_description): Likewise.
9506
04b3479c
SM
95072015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9508
9509 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9510
2bc84e8a
SM
95112015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9514 (ppc_fill_vsxregset): Likewise.
9515 (ppc_store_vsxregset): Likewise.
9516 (ppc_fill_vrregset): Likewise.
9517 (ppc_store_vrregset): Likewise.
9518 (ppc_fill_evrregset): Likewise.
9519 (ppc_store_evrregset): Likewise.
9520
e6c5bb05
SM
95212015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * linux-ppc-low.c (ppc_usrregs_info): Remove
9524 forward-declaration.
9525 (ppc_arch_setup): Move lower in file.
9526
7ea45d72
SM
95272015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9528
9529 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9530 (ps_pdwrite): Likewise.
9531
69291610
HW
95322015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9533
9534 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9535 to after assert checks.
9536
b42945fd
SM
95372015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9538
9539 * proc-service.c (ps_pdread): Add/adjust casts.
9540 (ps_pdwrite): Add/adjust casts.
9541
d6f85c84
SM
95422015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9543
9544 * server.c (handle_search_memory_1): Cast return value of
9545 memmem.
9546
f98cd059
SM
95472015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9548
9549 * server.c (write_qxfer_response): Change type of data to
9550 gdb_byte *.
9551
d2412fa5
PA
95522015-10-29 Pedro Alves <palves@redhat.com>
9553
9554 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9555
c17414a2
PA
95562015-10-29 Pedro Alves <palves@redhat.com>
9557
9558 * tracepoint.c (clear_installed_tracepoints): Add casts.
9559
e053fbc4
PA
95602015-10-29 Pedro Alves <palves@redhat.com>
9561
9562 * server.c (handle_v_cont, process_serial_event): Add enum
9563 gdb_signal casts to signal parsing code.
9564
add67df8
PA
95652015-10-29 Pedro Alves <palves@redhat.com>
9566
9567 * linux-low.h (NULL_REGSET): Define.
9568 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9569 * linux-arm-low.c (arm_regsets): Likewise.
9570 * linux-crisv32-low.c (cris_regsets): Likewise.
9571 * linux-m68k-low.c (m68k_regsets): Likewise.
9572 * linux-mips-low.c (mips_regsets): Likewise.
9573 * linux-nios2-low.c (nios2_regsets): Likewise.
9574 * linux-ppc-low.c (ppc_regsets): Likewise.
9575 * linux-s390-low.c (s390_regsets): Likewise.
9576 * linux-sh-low.c (sh_regsets): Likewise.
9577 * linux-sparc-low.c (sparc_regsets): Likewise.
9578 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9579 * linux-tile-low.c (tile_regsets): Likewise.
9580 * linux-x86-low.c (x86_regsets): Likewise.
9581 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9582
50bc912a
PA
95832015-10-29 Pedro Alves <palves@redhat.com>
9584
9585 * linux-low.h (NULL_REGSET): Define.
9586 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9587 * linux-arm-low.c (arm_regsets): Likewise.
9588 * linux-crisv32-low.c (cris_regsets): Likewise.
9589 * linux-m68k-low.c (m68k_regsets): Likewise.
9590 * linux-mips-low.c (mips_regsets): Likewise.
9591 * linux-nios2-low.c (nios2_regsets): Likewise.
9592 * linux-ppc-low.c (ppc_regsets): Likewise.
9593 * linux-s390-low.c (s390_regsets): Likewise.
9594 * linux-sh-low.c (sh_regsets): Likewise.
9595 * linux-sparc-low.c (sparc_regsets): Likewise.
9596 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9597 * linux-tile-low.c (tile_regsets): Likewise.
9598 * linux-x86-low.c (x86_regsets): Likewise.
9599 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9600
682b2546
DE
96012015-10-26 Doug Evans <dje@google.com>
9602
9603 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9604
963843d4
DE
96052015-10-26 Doug Evans <dje@google.com>
9606
9607 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9608
d41401ac
DE
96092015-10-26 Doug Evans <dje@google.com>
9610
9611 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9612 for debug_printf.
9613 (attach_thread, find_new_threads_callback): Ditto.
9614
3db28855
AT
96152015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9616
9617 * mem-break.h (set_breakpoint_data): Remove.
9618
fb78e89c
AT
96192015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9620
9621 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9622 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9623 (initialize_low): Remove set_breakpoint_data call.
9624 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9625 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9626 (initialize_low): Remove set_breakpoint_data call.
9627 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9628 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9629 (initialize_low): Remove set_breakpoint_data call.
9630
2e6ee069
AT
96312015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9632
9633 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9634 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9635 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9636 * target.h (target_breakpoint_kind_from_pc): New macro.
9637
1652a986
AT
96382015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9639
9640 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9641 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9642 the default breakpoint kind.
9643
abeead09
AT
96442015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9645
9646 * linux-arm-low.c (arm_supports_z_point_type): Add software
9647 breakpoint support.
9648
b0b4b501
AT
96492015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9650
9651 * linux-arm-low.c: Refactor breakpoint definitions.
9652 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9653 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9654
8689682c
AT
96552015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9656
9657 * Makefile.in: Add arm.c/o.
9658 * configure.srv: Likewise.
9659 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9660 (arm_breakpoint_kind_from_pc): New function.
9661 (arm_sw_breakpoint_from_kind): Return proper kind.
9662 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9663
27165294
AT
96642015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9665
9666 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9667 removal.
9668 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9669 (struct raw_breakpoint) <size>: Remove.
9670 (struct raw_breakpoint) <kind>: Add.
9671 (bp_size): New function.
9672 (bp_opcode): Likewise.
9673 (find_raw_breakpoint_at): Adjust for kind.
9674 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9675 (remove_memory_breakpoint): Adjust for kind call bp_size.
9676 (set_raw_breakpoint_at): Adjust for kind.
9677 (set_breakpoint): Likewise.
9678 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9679 (delete_raw_breakpoint): Adjust for kind.
9680 (delete_breakpoint): Likewise.
9681 (find_gdb_breakpoint): Likewise.
9682 (set_gdb_breakpoint_1): Likewise.
9683 (set_gdb_breakpoint): Likewise.
9684 (delete_gdb_breakpoint_1): Likewise.
9685 (delete_gdb_breakpoint): Likewise.
9686 (uninsert_raw_breakpoint): Likewise.
9687 (reinsert_raw_breakpoint): Likewise.
9688 (set_breakpoint_data): Remove.
9689 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9690 (check_mem_read): Adjust for kind call bp_size.
9691 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9692 (clone_one_breakpoint): Adjust for kind.
9693 * mem-break.h (set_gdb_breakpoint): Likewise.
9694 (delete_gdb_breakpoint): Likewise.
9695 * server.c (process_serial_event): Likewise.
9696
dd373349
AT
96972015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9698
9699 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9705 (arm_sw_breakpoint_from_kind): New function.
9706 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9707 (struct linux_target_ops) <breakpoint>: Remove.
9708 (struct linux_target_ops) <breakpoint_len>: Remove.
9709 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9710 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9711 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9712 (struct linux_target_ops) <breakpoint>: Remove.
9713 (struct linux_target_ops) <breakpoint_len>: Remove.
9714 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9715 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9716 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9717 (struct linux_target_ops) <breakpoint>: Remove.
9718 (struct linux_target_ops) <breakpoint_len>: Remove.
9719 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9720 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9721 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9722 and sw_breakpoint_from_kind to increment the pc.
9723 (linux_breakpoint_kind_from_pc): New function.
9724 (linux_sw_breakpoint_from_kind): New function.
9725 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9726 (initialize_low): Call breakpoint_kind_from_pc and
9727 sw_breakpoint_from_kind to replace breakpoint_data/len.
9728 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9729 New field.
9730 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9731 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9732 (struct linux_target_ops) <breakpoint>: Remove.
9733 (struct linux_target_ops) <breakpoint_len>: Remove.
9734 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9735 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9736 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9737 (struct linux_target_ops) <breakpoint>: Remove.
9738 (struct linux_target_ops) <breakpoint_len>: Remove.
9739 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9740 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9741 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9742 (struct linux_target_ops) <breakpoint>: Remove.
9743 (struct linux_target_ops) <breakpoint_len>: Remove.
9744 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9745 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9746 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9747 (struct linux_target_ops) <breakpoint>: Remove.
9748 (struct linux_target_ops) <breakpoint_len>: Remove.
9749 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9750 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9751 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9752 (struct linux_target_ops) <breakpoint>: Remove.
9753 (struct linux_target_ops) <breakpoint_len>: Remove.
9754 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9755 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9756 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9757 (struct linux_target_ops) <breakpoint>: Remove.
9758 (struct linux_target_ops) <breakpoint_len>: Remove.
9759 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9760 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9761 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9762 (struct linux_target_ops) <breakpoint>: Remove.
9763 (struct linux_target_ops) <breakpoint_len>: Remove.
9764 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9765 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9766 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9767 (struct linux_target_ops) <breakpoint>: Remove.
9768 (struct linux_target_ops) <breakpoint_len>: Remove.
9769 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9770 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9771 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9772 (struct linux_target_ops) <breakpoint>: Remove.
9773 (struct linux_target_ops) <breakpoint_len>: Remove.
9774 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9775 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9776 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9777 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9778 (struct linux_target_ops) <breakpoint>: Remove.
9779 (struct linux_target_ops) <breakpoint_len>: Remove.
9780 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9781 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9782 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9783 (struct linux_target_ops) <breakpoint>: Remove.
9784 (struct linux_target_ops) <breakpoint_len>: Remove.
9785 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9786 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9787
4cd98a19
AT
97882015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9789
9790 * linux-cris-low.c (cris_get_pc): Remove void arg.
9791
774ee6d2
AR
97922015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9793
9794 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9795 variable name.
9796
833dcd29
AR
97972015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9798
9799 * inferiors.c (thread_pid_matches_callback): New function.
9800 (find_thread_process): New function.
9801 (remove_thread): Reset current_thread.
9802 (remove_process): Assert threads have been removed first.
9803
8d689ee5
YQ
98042015-10-15 Yao Qi <yao.qi@linaro.org>
9805
9806 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9807 if it is 3.
9808 (aarch64_remove_point): Likewise.
9809 * regcache.c (regcache_register_size): New function.
9810
1c2e1515
YQ
98112015-10-12 Yao Qi <yao.qi@linaro.org>
9812
9813 * linux-aarch64-low.c: Update all callers as emit_load_store
9814 is renamed to aarch64_emit_load_store.
9815
e1c587c3
YQ
98162015-10-12 Yao Qi <yao.qi@linaro.org>
9817
9818 * linux-aarch64-low.c: Update all callers of function renaming
9819 from emit_insn to aarch64_emit_insn.
9820
b6542f81
YQ
98212015-10-12 Yao Qi <yao.qi@linaro.org>
9822
9823 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9824 arch/aarch64-insn.h.
9825 (struct aarch64_memory_operand): Likewise.
9826 (ENCODE): Likewise.
9827 (emit_insn): Move to arch/aarch64-insn.c.
9828 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9829 (emit_load_store): Move to arch/aarch64-insn.c.
9830 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9831 (can_encode_int32): Remove.
9832
246994ce
YQ
98332015-10-12 Yao Qi <yao.qi@linaro.org>
9834
9835 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9836 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9837 (aarch64_relocate_instruction): Likewise.
9838 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9839 (struct aarch64_insn_visitor): Likewise.
9840
0badd99f
YQ
98412015-10-12 Yao Qi <yao.qi@linaro.org>
9842
9843 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9844 (struct aarch64_insn_visitor): New.
9845 (struct aarch64_insn_relocation_data): New.
9846 (aarch64_ftrace_insn_reloc_b): New function.
9847 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9848 (aarch64_ftrace_insn_reloc_cb): Likewise.
9849 (aarch64_ftrace_insn_reloc_tb): Likewise.
9850 (aarch64_ftrace_insn_reloc_adr): Likewise.
9851 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9852 (aarch64_ftrace_insn_reloc_others): Likewise.
9853 (visitor): New.
9854 (aarch64_relocate_instruction): Use visitor.
9855
dfaffe9d
YQ
98562015-10-12 Yao Qi <yao.qi@linaro.org>
9857
9858 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9859 int. Add argument buf.
9860 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9861 aarch64_relocate_instruction.
9862
70b439f0
YQ
98632015-10-12 Yao Qi <yao.qi@linaro.org>
9864
9865 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9866 argument insn. Remove local variable insn. Don't call
9867 target_read_uint32.
9868 (aarch64_install_fast_tracepoint_jump_pad): Call
9869 target_read_uint32.
9870
7781c06f
YQ
98712015-09-30 Yao Qi <yao.qi@linaro.org>
9872
9873 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9874 (emit_load_store_pair): Likewise.
9875
9a3c8263
SM
98762015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9877
9878 * dll.c (match_dll): Add cast(s).
9879 (unloaded_dll): Likewise.
9880 * linux-low.c (second_thread_of_pid_p): Likewise.
9881 (delete_lwp_callback): Likewise.
9882 (count_events_callback): Likewise.
9883 (select_event_lwp_callback): Likewise.
9884 (linux_set_resume_request): Likewise.
9885 * server.c (accumulate_file_name_length): Likewise.
9886 (emit_dll_description): Likewise.
9887 (handle_qxfer_threads_worker): Likewise.
9888 (visit_actioned_threads): Likewise.
9889 * thread-db.c (any_thread_of): Likewise.
9890 * tracepoint.c (same_process_p): Likewise.
9891 (match_blocktype): Likewise.
9892 (build_traceframe_info_xml): Likewise.
9893
224c3ddb
SM
98942015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9895
9896 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9897 assignment.
9898 (gdb_unparse_agent_expr): Likewise.
9899 * hostio.c (require_data): Likewise.
9900 (handle_pread): Likewise.
9901 * linux-low.c (disable_regset): Likewise.
9902 (fetch_register): Likewise.
9903 (store_register): Likewise.
9904 (get_dynamic): Likewise.
9905 (linux_qxfer_libraries_svr4): Likewise.
9906 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9907 (set_fast_tracepoint_jump): Likewise.
9908 (uninsert_fast_tracepoint_jumps_at): Likewise.
9909 (reinsert_fast_tracepoint_jumps_at): Likewise.
9910 (validate_inserted_breakpoint): Likewise.
9911 (clone_agent_expr): Likewise.
9912 * regcache.c (init_register_cache): Likewise.
9913 * remote-utils.c (putpkt_binary_1): Likewise.
9914 (decode_M_packet): Likewise.
9915 (decode_X_packet): Likewise.
9916 (look_up_one_symbol): Likewise.
9917 (relocate_instruction): Likewise.
9918 (monitor_output): Likewise.
9919 * server.c (handle_search_memory): Likewise.
9920 (handle_qxfer_exec_file): Likewise.
9921 (handle_qxfer_libraries): Likewise.
9922 (handle_qxfer): Likewise.
9923 (handle_query): Likewise.
9924 (handle_v_cont): Likewise.
9925 (handle_v_run): Likewise.
9926 (captured_main): Likewise.
9927 * target.c (write_inferior_memory): Likewise.
9928 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9929 * tracepoint.c (init_trace_buffer): Likewise.
9930 (add_tracepoint_action): Likewise.
9931 (add_traceframe): Likewise.
9932 (add_traceframe_block): Likewise.
9933 (cmd_qtdpsrc): Likewise.
9934 (cmd_qtdv): Likewise.
9935 (cmd_qtstatus): Likewise.
9936 (response_source): Likewise.
9937 (response_tsv): Likewise.
9938 (cmd_qtnotes): Likewise.
9939 (gdb_collect): Likewise.
9940 (initialize_tracepoint): Likewise.
9941
afbe19f8
PL
99422015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9943
9944 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9945 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9946 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9947 <NOP>: New.
9948 (enum aarch64_condition_codes): New enum.
9949 (w0): New static global.
9950 (fp): Likewise.
9951 (lr): Likewise.
9952 (struct aarch64_memory_operand) <type>: New
9953 MEMORY_OPERAND_POSTINDEX type.
9954 (postindex_memory_operand): New helper function.
9955 (emit_ret): New function.
9956 (emit_load_store_pair): New function, factored out of emit_stp
9957 with support for MEMORY_OPERAND_POSTINDEX.
9958 (emit_stp): Rewrite using emit_load_store_pair.
9959 (emit_ldp): New function.
9960 (emit_load_store): Likewise.
9961 (emit_ldr): Mention post-index instruction in comment.
9962 (emit_ldrh): New function.
9963 (emit_ldrb): New function.
9964 (emit_ldrsw): Mention post-index instruction in comment.
9965 (emit_str): Likewise.
9966 (emit_subs): New function.
9967 (emit_cmp): Likewise.
9968 (emit_and): Likewise.
9969 (emit_orr): Likewise.
9970 (emit_orn): Likewise.
9971 (emit_eor): Likewise.
9972 (emit_mvn): Likewise.
9973 (emit_lslv): Likewise.
9974 (emit_lsrv): Likewise.
9975 (emit_asrv): Likewise.
9976 (emit_mul): Likewise.
9977 (emit_sbfm): Likewise.
9978 (emit_sbfx): Likewise.
9979 (emit_ubfm): Likewise.
9980 (emit_ubfx): Likewise.
9981 (emit_csinc): Likewise.
9982 (emit_cset): Likewise.
9983 (emit_nop): Likewise.
9984 (emit_ops_insns): New helper function.
9985 (emit_pop): Likewise.
9986 (emit_push): Likewise.
9987 (aarch64_emit_prologue): New function.
9988 (aarch64_emit_epilogue): Likewise.
9989 (aarch64_emit_add): Likewise.
9990 (aarch64_emit_sub): Likewise.
9991 (aarch64_emit_mul): Likewise.
9992 (aarch64_emit_lsh): Likewise.
9993 (aarch64_emit_rsh_signed): Likewise.
9994 (aarch64_emit_rsh_unsigned): Likewise.
9995 (aarch64_emit_ext): Likewise.
9996 (aarch64_emit_log_not): Likewise.
9997 (aarch64_emit_bit_and): Likewise.
9998 (aarch64_emit_bit_or): Likewise.
9999 (aarch64_emit_bit_xor): Likewise.
10000 (aarch64_emit_bit_not): Likewise.
10001 (aarch64_emit_equal): Likewise.
10002 (aarch64_emit_less_signed): Likewise.
10003 (aarch64_emit_less_unsigned): Likewise.
10004 (aarch64_emit_ref): Likewise.
10005 (aarch64_emit_if_goto): Likewise.
10006 (aarch64_emit_goto): Likewise.
10007 (aarch64_write_goto_address): Likewise.
10008 (aarch64_emit_const): Likewise.
10009 (aarch64_emit_call): Likewise.
10010 (aarch64_emit_reg): Likewise.
10011 (aarch64_emit_pop): Likewise.
10012 (aarch64_emit_stack_flush): Likewise.
10013 (aarch64_emit_zero_ext): Likewise.
10014 (aarch64_emit_swap): Likewise.
10015 (aarch64_emit_stack_adjust): Likewise.
10016 (aarch64_emit_int_call_1): Likewise.
10017 (aarch64_emit_void_call_2): Likewise.
10018 (aarch64_emit_eq_goto): Likewise.
10019 (aarch64_emit_ne_goto): Likewise.
10020 (aarch64_emit_lt_goto): Likewise.
10021 (aarch64_emit_le_goto): Likewise.
10022 (aarch64_emit_gt_goto): Likewise.
10023 (aarch64_emit_ge_got): Likewise.
10024 (aarch64_emit_ops_impl): New static global variable.
10025 (aarch64_emit_ops): New target function, return
10026 &aarch64_emit_ops_impl.
10027 (struct linux_target_ops): Install it.
10028
bb903df0
PL
100292015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10030
10031 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10032 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10033 aarch64-ipa.o.
10034 * linux-aarch64-ipa.c: New file.
10035 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10036 and endian.h.
10037 (aarch64_get_thread_area): New target method.
10038 (extract_signed_bitfield): New helper function.
10039 (aarch64_decode_ldr_literal): New function.
10040 (enum aarch64_opcodes): New enum.
10041 (struct aarch64_register): New struct.
10042 (struct aarch64_operand): New struct.
10043 (x0): New static global.
10044 (x1): Likewise.
10045 (x2): Likewise.
10046 (x3): Likewise.
10047 (x4): Likewise.
10048 (w2): Likewise.
10049 (ip0): Likewise.
10050 (sp): Likewise.
10051 (xzr): Likewise.
10052 (aarch64_register): New helper function.
10053 (register_operand): Likewise.
10054 (immediate_operand): Likewise.
10055 (struct aarch64_memory_operand): New struct.
10056 (offset_memory_operand): New helper function.
10057 (preindex_memory_operand): Likewise.
10058 (enum aarch64_system_control_registers): New enum.
10059 (ENCODE): New macro.
10060 (emit_insn): New helper function.
10061 (emit_b): New function.
10062 (emit_bcond): Likewise.
10063 (emit_cb): Likewise.
10064 (emit_tb): Likewise.
10065 (emit_blr): Likewise.
10066 (emit_stp): Likewise.
10067 (emit_ldp_q_offset): Likewise.
10068 (emit_stp_q_offset): Likewise.
10069 (emit_load_store): Likewise.
10070 (emit_ldr): Likewise.
10071 (emit_ldrsw): Likewise.
10072 (emit_str): Likewise.
10073 (emit_ldaxr): Likewise.
10074 (emit_stxr): Likewise.
10075 (emit_stlr): Likewise.
10076 (emit_data_processing_reg): Likewise.
10077 (emit_data_processing): Likewise.
10078 (emit_add): Likewise.
10079 (emit_sub): Likewise.
10080 (emit_mov): Likewise.
10081 (emit_movk): Likewise.
10082 (emit_mov_addr): Likewise.
10083 (emit_mrs): Likewise.
10084 (emit_msr): Likewise.
10085 (emit_sevl): Likewise.
10086 (emit_wfe): Likewise.
10087 (append_insns): Likewise.
10088 (can_encode_int32_in): New helper function.
10089 (aarch64_relocate_instruction): New function.
10090 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10091 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10092 (struct linux_target_ops): Install aarch64_get_thread_area,
10093 aarch64_install_fast_tracepoint_jump_pad and
10094 aarch64_get_min_fast_tracepoint_insn_len.
10095
787749ea
PL
100962015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10097
10098 * Makefile.in (aarch64-insn.o): New rule.
10099 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10100
9812b2e6
YQ
101012015-09-21 Yao Qi <yao.qi@linaro.org>
10102
10103 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10104
18fe412b
YQ
101052015-09-21 Yao Qi <yao.qi@linaro.org>
10106
10107 * tracepoint.c (max_jump_pad_size): Remove.
10108
a0cc84cd
YQ
101092015-09-18 Yao Qi <yao.qi@linaro.org>
10110
10111 * linux-aarch64-low.c: Don't include sys/uio.h.
10112 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10113
d78908cf
WW
101142015-09-16 Wei-cheng Wang <cole945@gmail.com>
10115
10116 * tracepoint.c (eval_result_type): Change prototype.
10117 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10118
d57e0d50
PA
101192015-09-15 Pedro Alves <palves@redhat.com>
10120
10121 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10122 Check whether to report exec events instead of checking whether
10123 multiprocess is enabled.
10124
5a676acc
PA
101252015-09-15 Pedro Alves <palves@redhat.com>
10126
10127 PR remote/18965
10128 * remote-utils.c (prepare_resume_reply): Merge
10129 TARGET_WAITKIND_VFORK_DONE switch case with the
10130 TARGET_WAITKIND_FORKED case.
10131
7c5d0fad
YQ
101322015-09-15 Yao Qi <yao.qi@linaro.org>
10133
10134 * server.c (handle_query): Check string comparison using
10135 "else if" instead of "if".
10136
750ce8d1
YQ
101372015-09-15 Yao Qi <yao.qi@linaro.org>
10138
10139 * server.c (vCont_supported): New global variable.
10140 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10141 matches. Append ";vContSupported+" to own_buf.
10142 (handle_v_requests): Append ";s;S" to own_buf if target supports
10143 hardware single step or vCont_supported is false.
10144 (capture_main): Set vCont_supported to zero.
10145
70b90b91
YQ
101462015-09-15 Yao Qi <yao.qi@linaro.org>
10147
10148 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10149 it to ...
10150 (linux_supports_hardware_single_step): ... New function.
10151 (linux_target_ops): Update.
10152 * lynx-low.c (lynx_target_ops): Set field
10153 supports_hardware_single_step to target_can_do_hardware_single_step.
10154 * nto-low.c (nto_target_ops): Likewise.
10155 * spu-low.c (spu_target_ops): Likewise.
10156 * win32-low.c (win32_target_ops): Likewise.
10157 * target.c (target_can_do_hardware_single_step): New function.
10158 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10159 Remove. <supports_hardware_single_step>: New field.
10160 (target_supports_conditional_breakpoints): Remove.
10161 (target_supports_hardware_single_step): New macro.
10162 (target_can_do_hardware_single_step): Declare.
10163 * server.c (handle_query): Use target_supports_hardware_single_step
10164 instead of target_supports_conditional_breakpoints.
10165
ade90bde
YQ
101662015-09-15 Yao Qi <yao.qi@linaro.org>
10167
10168 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10169 function.
10170 (struct linux_target_ops the_low_target): Install
10171 aarch64_linux_siginfo_fixup.
10172
94585166
DB
101732015-09-11 Don Breazeal <donb@codesourcery.com>
10174 Luis Machado <lgustavo@codesourcery.com>
10175
10176 * linux-low.c (linux_mourn): Static declaration.
10177 (linux_arch_setup): Move in front of
10178 handle_extended_wait.
10179 (linux_arch_setup_thread): New function.
10180 (handle_extended_wait): Handle exec events. Call
10181 linux_arch_setup_thread. Make event_lwp argument a
10182 pointer-to-a-pointer.
10183 (check_zombie_leaders): Do not check stopped threads.
10184 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10185 (linux_low_filter_event): Add lwp and thread for exec'ing
10186 non-leader thread if leader thread has been deleted.
10187 Refactor code into linux_arch_setup_thread and call it.
10188 Pass child lwp pointer by reference to handle_extended_wait.
10189 (linux_wait_for_event_filtered): Update comment.
10190 (linux_wait_1): Prevent clobbering exec event status.
10191 (linux_supports_exec_events): New function.
10192 (linux_target_ops) <supports_exec_events>: Initialize new member.
10193 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10194 new member.
10195 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10196 * server.c (report_exec_events): New global variable.
10197 (handle_query): Handle qSupported query for exec-events feature.
10198 (captured_main): Initialize report_exec_events.
10199 * server.h (report_exec_events): Declare new global variable.
10200 * target.h (struct target_ops) <supports_exec_events>: New
10201 member.
10202 (target_supports_exec_events): New macro.
10203 * win32-low.c (win32_target_ops) <supports_exec_events>:
10204 Initialize new member.
10205
0568462b
MM
102062015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10207
10208 * linux-low.c (linux_low_enable_btrace): Remove.
10209 (linux_target_ops): Replace linux_low_enable_btrace with
10210 linux_enable_btrace.
10211
39edd165
YQ
102122015-09-03 Yao Qi <yao.qi@linaro.org>
10213
10214 * linux-aarch64-low.c (aarch64_insert_point): Call
10215 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10216 returns true.
10217
1db33b5a
UW
102182015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10219
10220 * linux-low.c (check_stopped_by_breakpoint): Use
10221 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10222
ab290430
PA
102232015-08-27 Pedro Alves <palves@redhat.com>
10224
10225 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10226
8d749320
SM
102272015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10228
6711b7f8
SM
10229 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10230 the XNEW-family equivalent.
8d749320
SM
10231 (compile_bytecodes): Likewise.
10232 * dll.c (loaded_dll): Likewise.
10233 * event-loop.c (append_callback_event): Likewise.
10234 (create_file_handler): Likewise.
10235 (create_file_event): Likewise.
10236 * hostio.c (handle_open): Likewise.
10237 * inferiors.c (add_thread): Likewise.
10238 (add_process): Likewise.
10239 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10240 * linux-arm-low.c (arm_new_process): Likewise.
10241 (arm_new_thread): Likewise.
10242 * linux-low.c (add_to_pid_list): Likewise.
10243 (linux_add_process): Likewise.
10244 (handle_extended_wait): Likewise.
10245 (add_lwp): Likewise.
10246 (enqueue_one_deferred_signal): Likewise.
10247 (enqueue_pending_signal): Likewise.
10248 (linux_resume_one_lwp_throw): Likewise.
10249 (linux_resume_one_thread): Likewise.
10250 (linux_read_memory): Likewise.
10251 (linux_write_memory): Likewise.
10252 * linux-mips-low.c (mips_linux_new_process): Likewise.
10253 (mips_linux_new_thread): Likewise.
10254 (mips_add_watchpoint): Likewise.
10255 * linux-x86-low.c (initialize_low_arch): Likewise.
10256 * lynx-low.c (lynx_add_process): Likewise.
10257 * mem-break.c (set_raw_breakpoint_at): Likewise.
10258 (set_breakpoint): Likewise.
10259 (add_condition_to_breakpoint): Likewise.
10260 (add_commands_to_breakpoint): Likewise.
10261 (clone_agent_expr): Likewise.
10262 (clone_one_breakpoint): Likewise.
10263 * regcache.c (new_register_cache): Likewise.
10264 * remote-utils.c (look_up_one_symbol): Likewise.
10265 * server.c (queue_stop_reply): Likewise.
10266 (start_inferior): Likewise.
10267 (queue_stop_reply_callback): Likewise.
10268 (handle_target_event): Likewise.
10269 * spu-low.c (fetch_ppc_memory): Likewise.
10270 (store_ppc_memory): Likewise.
10271 * target.c (set_target_ops): Likewise.
10272 * thread-db.c (thread_db_load_search): Likewise.
10273 (try_thread_db_load_1): Likewise.
10274 * tracepoint.c (add_tracepoint): Likewise.
10275 (add_tracepoint_action): Likewise.
10276 (create_trace_state_variable): Likewise.
10277 (cmd_qtdpsrc): Likewise.
10278 (cmd_qtro): Likewise.
10279 (add_while_stepping_state): Likewise.
10280 * win32-low.c (child_add_thread): Likewise.
10281 (get_image_name): Likewise.
10282
ed8b7b42
YQ
102832015-08-25 Yao Qi <yao.qi@linaro.org>
10284
10285 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10286
db3cb7cb
YQ
102872015-08-25 Yao Qi <yao.qi@linaro.org>
10288
10289 * Makefile.in (aarch64-linux.o): New rule.
10290 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10291 srv_tgtobj.
10292 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10293 (aarch64_init_debug_reg_state): Make it extern.
10294 (aarch64_linux_prepare_to_resume): Remove.
10295
f6011a1c
YQ
102962015-08-25 Yao Qi <yao.qi@linaro.org>
10297
10298 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10299 lwp_arch_private_info and ptid_of_lwp.
10300
88e2cf7e
YQ
103012015-08-25 Yao Qi <yao.qi@linaro.org>
10302
10303 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10304 Find proc_info by find_process_pid. All callers updated.
10305
5e35436e
YQ
103062015-08-25 Yao Qi <yao.qi@linaro.org>
10307
10308 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10309 Remove.
10310 (debug_reg_change_callback): Remove.
10311 (aarch64_notify_debug_reg_change): Remove.
10312
4a8a7965
YQ
103132015-08-25 Yao Qi <yao.qi@linaro.org>
10314
10315 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10316 Call current_lwp_ptid.
10317
32a271ee
YQ
103182015-08-25 Yao Qi <yao.qi@linaro.org>
10319
10320 * linux-aarch64-low.c (debug_reg_change_callback): Use
10321 debug_printf.
10322
0d51c8d7
YQ
103232015-08-25 Yao Qi <yao.qi@linaro.org>
10324
10325 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10326
31a43dd5
YQ
103272015-08-25 Yao Qi <yao.qi@linaro.org>
10328
10329 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10330
8ee52567
YQ
103312015-08-25 Yao Qi <yao.qi@linaro.org>
10332
10333 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10334 the code.
10335
ff3f0f45
YQ
103362015-08-25 Yao Qi <yao.qi@linaro.org>
10337
10338 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10339 Remove.
10340 (debug_reg_change_callback): Remove argument entry and add argument
10341 lwp. Remove local variable thread. Don't print thread id in the
10342 debugging output. Don't check whether pid of thread equals to pid.
10343 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10344 iterate_over_lwps instead find_inferior.
10345
3d40fbb5
PA
103462015-08-24 Pedro Alves <palves@redhat.com>
10347
10348 * inferiors.c (get_first_process): New function.
10349 * inferiors.h (get_first_process): New declaration.
10350 * remote-utils.c (read_ptid): Default to the first process in the
10351 list, instead of to the current thread's process.
10352
438e1e42
PA
103532015-08-24 Pedro Alves <palves@redhat.com>
10354
10355 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10356 * event-loop.c: Likewise.
10357 * remote-utils.c: Likewise.
10358 * tracepoint.c: Likewise.
10359
a8c6d4fc
PA
103602015-08-24 Pedro Alves <palves@redhat.com>
10361
10362 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10363 ptid_get_lwp.
10364
99b0bb12
PA
103652015-08-21 Pedro Alves <palves@redhat.com>
10366
10367 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10368 instead of literal 1.
10369
f8904751
PA
103702015-08-21 Pedro Alves <palves@redhat.com>
10371
10372 * tdesc.c (default_description): Explicitly zero-initialize.
10373
465a859e
PA
103742015-08-21 Pedro Alves <palves@redhat.com>
10375
10376 PR gdb/18749
10377 * inferiors.c (remove_thread): Discard any pending stop reply for
10378 this thread.
10379 * server.c (remove_all_on_match_pid): Rename to ...
10380 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10381 instead of a pid.
10382 (discard_queued_stop_replies): Change parameter to a ptid. Now
10383 extern.
10384 (handle_v_kill, kill_inferior_callback, captured_main)
10385 (process_serial_event): Adjust.
10386 * server.h (discard_queued_stop_replies): Declare.
10387
f0db101d
PA
103882015-08-21 Pedro Alves <palves@redhat.com>
10389
10390 * linux-low.c (wait_for_sigstop): Always switch to no thread
10391 selected if the previously current thread dies.
10392 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10393 process instead of the current thread's.
10394 * remote-utils.c (input_interrupt): Don't check if there's no
10395 current thread.
10396 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10397 current thread to the general thread fails, error out.
10398 (handle_qxfer_auxv, handle_qxfer_libraries)
10399 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10400 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10401 (handle_query): Check if there's a thread selected instead of
10402 checking whether there's any thread in the thread list.
10403 (handle_qxfer_threads, handle_qxfer_btrace)
10404 (handle_qxfer_btrace_conf): Don't error out early if there's no
10405 thread in the thread list.
10406 (handle_v_cont, myresume): Don't set the current thread to the
10407 continue thread.
10408 (process_serial_event) <Hg handling>: Also set thread_id if the
10409 previous general thread is still alive.
10410 (process_serial_event) <g/G handling>: If setting the current
10411 thread to the general thread fails, error out.
10412 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10413 thread's lwp instead of the current thread's.
10414 * target.c (set_desired_thread): If the desired thread was not
10415 found, leave the current thread pointing to NULL. Return an int
10416 (boolean) indicating success.
10417 * target.h (set_desired_thread): Change return type to int.
10418
40045d91
MF
104192015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10420
10421 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10422 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10423 #includes.
10424 (ps_get_thread_area): New function.
10425
45face3b
GB
104262015-08-19 Gary Benson <gbenson@redhat.com>
10427
10428 * hostio.c (handle_pread): Do not attempt to read more data
10429 than hostio_reply_with_data can fit in a packet.
10430
16d5f642
JB
104312015-08-18 Joel Brobecker <brobecker@adacore.com>
10432
10433 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10434
a738da3a
MF
104352015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10436
10437 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10438
33ebda9d
PA
104392015-08-06 Pedro Alves <palves@redhat.com>
10440
10441 * tracepoint.c (expr_eval_result): Now an int.
10442
a44892be
PA
104432015-08-06 Pedro Alves <palves@redhat.com>
10444
10445 * gdbthread.h (struct regcache): Forward declare.
10446 (struct thread_info) <regcache_data>: Now a struct regcache
10447 pointer.
10448 * inferiors.c (inferior_regcache_data)
10449 (set_inferior_regcache_data): Now work with struct regcache
10450 pointers.
10451 * inferiors.h (struct regcache): Forward declare.
10452 (inferior_regcache_data, set_inferior_regcache_data): Now work
10453 with struct regcache pointers.
10454 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10455 (free_register_cache_thread): Remove struct regcache pointer
10456 casts.
10457
608a1e46
PA
104582015-08-06 Pedro Alves <palves@redhat.com>
10459
10460 * server.c (captured_main): On error, print the exception message
10461 to stderr, and if run_once is set, throw a quit.
10462
f0ce0d3a
PA
104632015-08-06 Pedro Alves <palves@redhat.com>
10464
10465 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10466 the current thread.
10467
bf47e248
PA
104682015-08-06 Pedro Alves <palves@redhat.com>
10469
10470 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10471 reading beyond the passed in buffer length.
10472
b6b9ffcc
PL
104732015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10474
10475 * tracepoint.c (symbol_list) <required>: Remove.
10476
863d01bd
PA
104772015-08-06 Pedro Alves <palves@redhat.com>
10478
10479 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10480 count if stopping and suspending threads.
10481 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10482 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10483 (linux_detach): Complete an ongoing step-over.
10484 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10485 throughout.
10486 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10487 (linux_wait_1): If passing a signal to the inferior after
10488 finishing a step-over, unsuspend and re-resume all lwps. If we
10489 see a single-step event but the thread should be continuing, don't
10490 pass the trap to gdb.
10491 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10492 internal_error instead of gdb_assert.
10493 (enqueue_pending_signal): New function.
10494 (check_ptrace_stopped_lwp_gone): Add debug output.
10495 (start_step_over): Use internal_error instead of gdb_assert.
10496 (complete_ongoing_step_over): New function.
10497 (linux_resume_one_thread): Don't resume a suspended thread.
10498 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10499 it stepping.
10500
00db26fa
PA
105012015-08-06 Pedro Alves <palves@redhat.com>
10502
10503 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10504 (linux_thread_alive): Use lwp_is_marked_dead.
10505 (extended_event_reported): Delete.
10506 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10507 instead of extended_event_reported.
10508 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10509 as well.
10510 (lwp_is_marked_dead): New function.
10511 (lwp_running): Use lwp_is_marked_dead.
10512 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10513 comment.
10514
ad071a30
PA
105152015-08-06 Pedro Alves <palves@redhat.com>
10516
10517 * linux-low.c (linux_wait_1): Move fork event output out of the
10518 !report_to_gdb check. Pass event_child->waitstatus to
10519 target_waitstatus_to_string instead of ourstatus.
10520
524b57e6
YQ
105212015-08-04 Yao Qi <yao.qi@linaro.org>
10522
10523 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10524 if current_thread is 32 bit.
10525
6085d6f6
YQ
105262015-08-04 Yao Qi <yao.qi@linaro.org>
10527
10528 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10529 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10530 * server.c (extended_protocol): Remove "static".
10531 * server.h (extended_protocol): Declare it.
10532
8a7e4587
YQ
105332015-08-04 Yao Qi <yao.qi@linaro.org>
10534
10535 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10536 both aarch64 and aarch32.
10537 (aarch64_set_pc): Likewise.
10538
3b53ae99
YQ
105392015-08-04 Yao Qi <yao.qi@linaro.org>
10540
10541 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10542 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10543 arm-with-neon.xml to srv_xmlfiles.
10544 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10545 (is_64bit_tdesc): New function.
10546 (aarch64_linux_read_description): New function.
10547 (aarch64_arch_setup): Call aarch64_linux_read_description.
10548 (regs_info): Rename to regs_info_aarch64.
10549 (aarch64_regs_info): Return right regs_info.
10550 (initialize_low_arch): Call initialize_low_arch_aarch32.
10551
bd9e6534
YQ
105522015-08-04 Yao Qi <yao.qi@linaro.org>
10553
10554 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10555 * linux-aarch32-low.c: New file.
10556 * linux-aarch32-low.h: New file.
10557 * linux-arm-low.c (arm_fill_gregset): Move it to
10558 linux-aarch32-low.c.
10559 (arm_store_gregset): Likewise.
10560 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10561 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10562 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10563 (regs_info): Rename to regs_info_arm.
10564 (arm_regs_info): Return regs_info_aarch32 if
10565 have_ptrace_getregset is 1 and target description is
10566 arm_with_neon or arm_with_vfpv3.
10567 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10568 Call initialize_low_arch_aarch32 instead.
10569
ded48a5e
YQ
105702015-08-04 Yao Qi <yao.qi@linaro.org>
10571
10572 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10573 * linux-low.c: ... here.
10574 * linux-low.h (have_ptrace_getregset): Declare it.
10575
96e9210f
PA
105762015-08-04 Pedro Alves <palves@redhat.com>
10577
10578 * thread-db.c (struct thread_db): Use new typedefs.
10579 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10580 CHK calls.
10581 (disable_thread_event_reporting): Cast result of dlsym to
10582 destination function pointer type.
10583 (thread_db_mourn): Use td_ta_delete_ftype.
10584
af60a1ef
SL
105852015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10586
10587 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10588 arch variant.
10589 (CDX_BREAKPOINT): Define for R2.
10590 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10591 (the_low_target): Add comments.
10592
e8b41681
YQ
105932015-07-30 Yao Qi <yao.qi@linaro.org>
10594
10595 * linux-arm-low.c (arm_hwcap): Remove it.
10596 (arm_read_description): New local variable arm_hwcap. Don't
10597 set arm_hwcap to zero.
10598
89abb039
YQ
105992015-07-30 Yao Qi <yao.qi@linaro.org>
10600
10601 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10602 Use regcache->tdesc instead.
10603 (arm_store_wmmxregset): Likewise.
10604 (arm_fill_vfpregset): Likewise.
10605 (arm_store_vfpregset): Likewise.
10606
deca266c
YQ
106072015-07-30 Yao Qi <yao.qi@linaro.org>
10608
10609 * linux-arm-low.c: Include arch/arm.h.
10610 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10611 (arm_store_gregset): Likewise.
10612
aa58a496
SM
106132015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10614
10615 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10616 ptrace's 4th parameter.
10617
50904b25
YQ
106182015-07-27 Yao Qi <yao.qi@linaro.org>
10619
10620 * configure.srv (case aarch64*-*-linux*): Don't set
10621 srv_linux_usrregs.
10622
5826e159
PA
106232015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10624
10625 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10626 sys/ptrace.h.
10627 * linux-arm-low.c: Likewise.
10628 * linux-cris-low.c: Likewise.
10629 * linux-crisv32-low.c: Likewise.
10630 * linux-low.c: Likewise.
10631 * linux-m68k-low.c: Likewise.
10632 * linux-mips-low.c: Likewise.
10633 * linux-nios2-low.c: Likewise.
10634 * linux-s390-low.c: Likewise.
10635 * linux-sparc-low.c: Likewise.
10636 * linux-tic6x-low.c: Likewise.
10637 * linux-tile-low.c: Likewise.
10638 * linux-x86-low.c: Likewise.
10639
54019719
PA
106402015-07-24 Pedro Alves <palves@redhat.com>
10641
10642 * config.in: Regenerate.
10643 * configure: Regenerate.
10644
eb7aa561
PA
106452015-07-24 Pedro Alves <palves@redhat.com>
10646
10647 * acinclude.m4: Include ../ptrace.m4.
10648 * configure.ac: Call GDB_AC_PTRACE.
10649 * config.in, configure: Regenerate.
10650
55d7b841
YQ
106512015-07-24 Yao Qi <yao.qi@linaro.org>
10652
10653 * linux-low.c (linux_create_inferior): Remove setting to
10654 proc->priv->new_inferior.
10655 (linux_attach): Likewise.
10656 (linux_low_filter_event): Likewise.
10657 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10658
c06cbd92
YQ
106592015-07-24 Yao Qi <yao.qi@linaro.org>
10660
10661 * linux-low.c (linux_arch_setup): New function.
10662 (linux_low_filter_event): If proc->tdesc is NULL and
10663 proc->attached is true, call the_low_target.arch_setup.
10664 Otherwise, keep status pending, and return.
10665 (linux_resume_one_lwp_throw): Don't call get_pc if
10666 thread->while_stepping isn't NULL. Don't call
10667 get_thread_regcache if proc->tdesc is NULL.
10668 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10669 (linux_target_ops): Install arch_setup.
10670 * server.c (start_inferior): Call the_target->arch_setup.
10671 * target.h (struct target_ops) <arch_setup>: New field.
10672 (target_arch_setup): New marco.
10673 * lynx-low.c (lynx_target_ops): Update.
10674 * nto-low.c (nto_target_ops): Update.
10675 * spu-low.c (spu_target_ops): Update.
10676 * win32-low.c (win32_target_ops): Update.
10677
5ae3ebba
YQ
106782015-07-24 Yao Qi <yao.qi@linaro.org>
10679
10680 * linux-low.c (linux_add_process): Don't set
10681 proc->priv->new_inferior.
10682 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10683 (linux_attach): Likewise.
10684
eb97750b
YQ
106852015-07-24 Yao Qi <yao.qi@linaro.org>
10686
10687 * server.c (start_inferior): Code refactor.
10688
51aee833
YQ
106892015-07-24 Yao Qi <yao.qi@linaro.org>
10690
10691 * server.c (process_serial_event): Set general_thread.
10692
af1b22f3
YQ
106932015-07-21 Yao Qi <yao.qi@linaro.org>
10694
10695 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10696 aarch64_linux_get_debug_reg_capacity.
10697
554717a3
YQ
106982015-07-17 Yao Qi <yao.qi@linaro.org>
10699
10700 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10701 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10702 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10703 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10704 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10705 (AARCH64_HWP_ALIGNMENT): Likewise.
10706 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10707 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10708 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10709 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10710 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10711 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10712 (struct aarch64_debug_reg_state): Likewise.
10713 (struct arch_lwp_info): Likewise.
10714 (aarch64_align_watchpoint): Likewise.
10715 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10716 (aarch64_watchpoint_length): Likewise.
10717 (aarch64_point_encode_ctrl_reg): Likewise
10718 (aarch64_point_is_aligned): Likewise.
10719 (aarch64_align_watchpoint): Likewise.
10720 (aarch64_linux_set_debug_regs):
10721 (aarch64_dr_state_insert_one_point): Likewise.
10722 (aarch64_dr_state_remove_one_point): Likewise.
10723 (aarch64_handle_breakpoint): Likewise.
10724 (aarch64_handle_aligned_watchpoint): Likewise.
10725 (aarch64_handle_unaligned_watchpoint): Likewise.
10726 (aarch64_handle_watchpoint): Likewise.
10727
c67ca4de
YQ
107282015-07-17 Yao Qi <yao.qi@linaro.org>
10729
10730 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10731 and don't aarch64_get_debug_reg_state. All callers update.
10732 (aarch64_handle_aligned_watchpoint): Likewise.
10733 (aarch64_handle_unaligned_watchpoint): Likewise.
10734 (aarch64_handle_watchpoint): Likewise.
10735 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10736 (aarch64_remove_point): Likewise.
10737
25abf979
YQ
107382015-07-17 Yao Qi <yao.qi@linaro.org>
10739
10740 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10741 debug_printf.
10742 (aarch64_handle_unaligned_watchpoint): Likewise.
10743
db1ff28b
JK
107442015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 Revert the previous 3 commits:
10747 Move gdb_regex* to common/
10748 Move linux_find_memory_regions_full & co.
10749 gdbserver build-id attribute generator
10750
700ca40f
JK
107512015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10752 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 gdbserver build-id attribute generator.
10755 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10756 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10757 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10758 (find_phdr): New.
10759 (get_dynamic): Use find_pdhr to traverse program headers.
10760 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10761 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10762 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10763 (get_hex_build_id): New.
10764 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10765 to reply XML document.
10766
9904185c
JK
107672015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10768 Jan Kratochvil <jan.kratochvil@redhat.com>
10769
10770 * target.c: Include target/target-utils.h and fcntl.h.
10771 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10772 (target_fileio_read_stralloc): New functions.
10773
6e5b4429
JK
107742015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10775
10776 * Makefile.in (OBS): Add gdb_regex.o.
10777 (gdb_regex.o): New.
10778 * config.in: Rebuilt.
10779 * configure: Rebuilt.
10780
ddc98fbf
JK
107812015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10782 Jan Kratochvil <jan.kratochvil@redhat.com>
10783
10784 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10785 * Makefile.in (OBS): Add target-utils.o.
10786 (linux-maps.o, target-utils.o): New.
10787 * configure.srv (srv_linux_obj): Add linux-maps.o.
10788
e57bb7a0
PL
107892015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10790
10791 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10792 function, return 1.
10793 (the_low_target): Install it.
10794
586b02a9
PA
107952015-07-14 Pedro Alves <palves@redhat.com>
10796
10797 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10798 Instead, ignore ECHILD, and throw an error for other errnos.
10799
58c1b36c
PA
108002015-07-10 Pedro Alves <palves@redhat.com>
10801
10802 * event-loop.c (struct callback_event) <data>: Change type to
10803 gdb_client_data instance instead of gdb_client_data pointer.
10804 (append_callback_event): Adjust.
10805
421530db
PL
108062015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10807
10808 * linux-aarch64-low.c: Add comments for each linux_target_ops
10809 method. Remove comments already covered in target_ops and
10810 linux_target_ops definitions.
10811 (the_low_target): Add comments for each unimplemented method.
10812
c2d65f38
YQ
108132015-07-09 Yao Qi <yao.qi@linaro.org>
10814
10815 * linux-aarch64-low.c (aarch64_regmap): Remove.
10816 (aarch64_usrregs_info): Remove.
10817 (regs_info): Set field usrregs to NULL.
10818
b20a6524
MM
108192015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10820
10821 * linux-low.c: Include "rsp-low.h"
10822 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10823 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10824 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10825 (handle_btrace_enable_pt): New.
10826 (handle_btrace_general_set): Support "pt".
10827 (handle_btrace_conf_general_set): Support "pt:size".
10828
96c97461
PL
108292015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10830
10831 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10832 Z_PACKET_SW_BP.
10833
37d66942
PL
108342015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10835
10836 * linux-aarch64-low.c: Remove comment about endianness.
10837 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10838 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10839 memcmp.
10840
dc06243f
GB
108412015-06-24 Gary Benson <gbenson@redhat.com>
10842
10843 * linux-i386-ipa.c (stdint.h): Do not include.
10844 * lynx-i386-low.c (stdint.h): Likewise.
10845 * lynx-ppc-low.c (stdint.h): Likewise.
10846 * mem-break.c (stdint.h): Likewise.
10847 * thread-db.c (stdint.h): Likewise.
10848 * tracepoint.c (stdint.h): Likewise.
10849 * win32-low.c (stdint.h): Likewise.
10850
124e13d9
SM
108512015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10852
10853 * server.c (write_qxfer_response): Update call to
10854 remote_escape_output.
10855
909c2cda
JK
108562015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10857 Jan Kratochvil <jan.kratochvil@redhat.com>
10858
10859 Merge multiple hex conversions.
10860 * gdbreplay.c (tohex): Rename to 'fromhex'.
10861 (logchar): Use fromhex.
10862
24c05f46
JK
108632015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10864
10865 * server.c (handle_qxfer_libraries): Set `version' attribute for
10866 <library-list>.
10867
14d2069a
GB
108682015-06-10 Gary Benson <gbenson@redhat.com>
10869
10870 * target.h (struct target_ops) <multifs_open>: New field.
10871 <multifs_unlink>: Likewise.
10872 <multifs_readlink>: Likewise.
10873 * linux-low.c (nat/linux-namespaces.h): New include.
10874 (linux_target_ops): Initialize the_target->multifs_open,
10875 the_target->multifs_unlink and the_target->multifs_readlink.
10876 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10877 * hostio.c (hostio_fs_pid): New static variable.
10878 (hostio_handle_new_gdb_connection): New function.
10879 (handle_setfs): Likewise.
10880 (handle_open): Use the_target->multifs_open as appropriate.
10881 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10882 (handle_readlink): Use the_target->multifs_readlink as
10883 appropriate.
10884 (handle_vFile): Handle vFile:setfs packets.
10885 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10886 after target_handle_new_gdb_connection.
10887
4b8b5e72
GB
108882015-06-10 Gary Benson <gbenson@redhat.com>
10889
10890 * configure.ac (AC_CHECK_FUNCS): Add setns.
10891 * config.in: Regenerate.
10892 * configure: Likewise.
10893 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10894 (linux-namespaces.o): New rule.
10895 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10896
3ac2e371
GB
108972015-06-09 Gary Benson <gbenson@redhat.com>
10898
10899 * hostio.c (handle_open): Process mode argument with
10900 fileio_to_host_mode.
10901
ca9b78ce
YQ
109022015-06-01 Yao Qi <yao.qi@linaro.org>
10903
10904 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10905 * linux-x86-low.c: Likewise.
10906
bfacd19d
DB
109072015-05-28 Don Breazeal <donb@codesourcery.com>
10908
10909 * linux-low.c (handle_extended_wait): Initialize
10910 thread_info.last_resume_kind for new fork children.
10911
452003ef
PA
109122015-05-15 Pedro Alves <palves@redhat.com>
10913
10914 * target.h (target_handle_new_gdb_connection): Rewrite using if
10915 wrapped in do/while.
10916
1041a03c
JB
109172015-05-14 Joel Brobecker <brobecker@adacore.com>
10918
10919 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10920 * configure, config.in: Regenerate.
10921 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10922 Declare typedef.
10923
c269dbdb
DB
109242015-05-12 Don Breazeal <donb@codesourcery.com>
10925
10926 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10927 PTRACE_EVENT_VFORK_DONE.
10928 (linux_low_ptrace_options, extended_event_reported): Add vfork
10929 events.
10930 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10931 and "vforkdone" for RSP 'T' Stop Reply Packet.
10932 * server.h (report_vfork_events): Declare
10933 global variable.
10934
3a8a0396
DB
109352015-05-12 Don Breazeal <donb@codesourcery.com>
10936
10937 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10938 (the_low_target) <new_fork>: Initialize new member.
10939 * linux-arm-low.c (arm_new_fork): New function.
10940 (the_low_target) <new_fork>: Initialize new member.
10941 * linux-low.c (handle_extended_wait): Call new target function
10942 new_fork.
10943 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10944 * linux-mips-low.c (mips_add_watchpoint): New function
10945 extracted from mips_insert_point.
10946 (the_low_target) <new_fork>: Initialize new member.
10947 (mips_linux_new_fork): New function.
10948 (mips_insert_point): Call mips_add_watchpoint.
10949 * linux-x86-low.c (x86_linux_new_fork): New function.
10950 (the_low_target) <new_fork>: Initialize new member.
10951
de0d863e
DB
109522015-05-12 Don Breazeal <donb@codesourcery.com>
10953
10954 * linux-low.c (handle_extended_wait): Implement return value,
10955 rename argument 'event_child' to 'event_lwp', handle
10956 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10957 (linux_low_ptrace_options): New function.
10958 (linux_low_filter_event): Call linux_low_ptrace_options,
10959 use different argument fo linux_enable_event_reporting,
10960 use return value from handle_extended_wait.
10961 (extended_event_reported): New function.
10962 (linux_wait_1): Call extended_event_reported and set
10963 status to report fork events.
10964 (linux_write_memory): Add pid to debug message.
10965 (reset_lwp_ptrace_options_callback): New function.
10966 (linux_handle_new_gdb_connection): New function.
10967 (linux_target_ops): Initialize new structure member.
10968 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10969 * lynx-low.c: Initialize new structure member.
10970 * remote-utils.c (prepare_resume_reply): Implement stop reason
10971 "fork" for "T" stop message.
10972 * server.c (handle_query): Call handle_new_gdb_connection.
10973 * server.h (report_fork_events): Declare global flag.
10974 * target.h (struct target_ops) <handle_new_gdb_connection>:
10975 New member.
10976 (target_handle_new_gdb_connection): New macro.
10977 * win32-low.c: Initialize new structure member.
10978
ddcbc397
DB
109792015-05-12 Don Breazeal <donb@codesourcery.com>
10980
10981 * mem-break.c (APPEND_TO_LIST): Define macro.
10982 (clone_agent_expr): New function.
10983 (clone_one_breakpoint): New function.
10984 (clone_all_breakpoints): New function.
10985 * mem-break.h: Declare new functions.
10986
89245bc0
DB
109872015-05-12 Don Breazeal <donb@codesourcery.com>
10988
10989 * linux-low.c (linux_supports_fork_events): New function.
10990 (linux_supports_vfork_events): New function.
10991 (linux_target_ops): Initialize new structure members.
10992 (initialize_low): Call linux_check_ptrace_features.
10993 * lynx-low.c (lynx_target_ops): Initialize new structure
10994 members.
10995 * server.c (report_fork_events, report_vfork_events):
10996 New global flags.
10997 (handle_query): Add new features to qSupported packet and
10998 response.
10999 (captured_main): Initialize new global variables.
11000 * target.h (struct target_ops) <supports_fork_events>:
11001 New member.
11002 <supports_vfork_events>: New member.
11003 (target_supports_fork_events): New macro.
11004 (target_supports_vfork_events): New macro.
11005 * win32-low.c (win32_target_ops): Initialize new structure
11006 members.
11007
835205d0
GB
110082015-05-12 Gary Benson <gbenson@redhat.com>
11009
11010 * server.c (handle_qxfer_exec_file): Use current process
11011 if annex is empty.
11012
21e94bd9
SL
110132015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11014
11015 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11016 Remove HAVE_PTRACE_GETREGS conditionals.
11017 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11018 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11019
45614f15
YQ
110202015-05-08 Yao Qi <yao.qi@linaro.org>
11021
11022 * linux-low.c (linux_supports_conditional_breakpoints): New
11023 function.
11024 (linux_target_ops): Install new target method.
11025 * lynx-low.c (lynx_target_ops): Install NULL hook for
11026 supports_conditional_breakpoints.
11027 * nto-low.c (nto_target_ops): Likewise.
11028 * spu-low.c (spu_target_ops): Likewise.
11029 * win32-low.c (win32_target_ops): Likewise.
11030 * server.c (handle_query): Check
11031 target_supports_conditional_breakpoints.
11032 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11033 New field.
11034 (target_supports_conditional_breakpoints): New macro.
11035
80ad801e
PA
110362015-05-06 Pedro Alves <palves@redhat.com>
11037
11038 PR server/18081
11039 * server.c (start_inferior): If the process exits, mourn it.
11040
819843c7
GB
110412015-04-21 Gary Benson <gbenson@redhat.com>
11042
11043 * hostio.c (fileio_open_flags_to_host): Factored out to
11044 fileio_to_host_openflags in common/fileio.c. Single use
11045 updated.
11046
a2d5a9d7
MF
110472015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11048
11049 * linux-xtensa-low.c (xtensa_fill_gregset)
11050 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11051 XCHAL_HAVE_LOOP.
11052
deb44829
MF
110532015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11054
11055 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11056 (regs_info): Replace usrregs pointer with NULL.
11057
e57f1de3
GB
110582015-04-17 Gary Benson <gbenson@redhat.com>
11059
11060 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11061 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11062 * server.c (handle_qxfer_exec_file): New function.
11063 (qxfer_packets): Add exec-file entry.
11064 (handle_query): Report qXfer:exec-file:read as supported packet.
11065
62828379
RN
110662015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11067
11068 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11069
b88bb450
GB
110702015-04-09 Gary Benson <gbenson@redhat.com>
11071
11072 * hostio-errno.c (errno_to_fileio_error): Remove function.
11073 Update caller to use remote_fileio_to_fio_error.
11074
c8f4bfdd
YQ
110752015-04-09 Yao Qi <yao.qi@linaro.org>
11076
11077 * linux-low.c (linux_insert_point): Call
11078 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11079 (linux_remove_point): Call remove_memory_breakpoint if type is
11080 raw_bkpt_type_sw.
11081 * linux-x86-low.c (x86_insert_point): Don't call
11082 insert_memory_breakpoint.
11083 (x86_remove_point): Don't call remove_memory_breakpoint.
11084
41f98f02
PA
110852015-04-01 Pedro Alves <palves@redhat.com>
11086 Cleber Rosa <crosa@redhat.com>
11087
11088 * server.c (gdbserver_usage): Reorganize and extend the usage
11089 message.
11090
2bf6fb9d
PA
110912015-03-24 Pedro Alves <palves@redhat.com>
11092
11093 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11094 output. Also dump TRAP_TRACE.
11095 (linux_low_filter_event): In debug output, distinguish a
11096 resume_stop SIGSTOP from a delayed SIGSTOP.
11097
369f6daa
GB
110982015-03-24 Gary Benson <gbenson@redhat.com>
11099
11100 * linux-x86-low.c (x86_linux_new_thread): Moved to
11101 nat/x86-linux.c.
11102 (x86_linux_prepare_to_resume): Likewise.
11103
8e5d4070
GB
111042015-03-24 Gary Benson <gbenson@redhat.com>
11105
11106 * Makefile.in (x86-linux-dregs.o): New rule.
11107 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11108 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11109 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11110 (x86_linux_dr_get): Likewise.
11111 (x86_linux_dr_set): Likewise.
11112 (update_debug_registers_callback): Likewise.
11113 (x86_linux_dr_set_addr): Likewise.
11114 (x86_linux_dr_get_addr): Likewise.
11115 (x86_linux_dr_set_control): Likewise.
11116 (x86_linux_dr_get_control): Likewise.
11117 (x86_linux_dr_get_status): Likewise.
11118 (x86_linux_update_debug_registers): Likewise.
11119
2b95d440
GB
111202015-03-24 Gary Benson <gbenson@redhat.com>
11121
11122 * linux-x86-low.c (x86_linux_update_debug_registers):
11123 New function, factored out from...
11124 (x86_linux_prepare_to_resume): ...this.
11125
14b0bc68
GB
111262015-03-24 Gary Benson <gbenson@redhat.com>
11127
11128 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11129 (x86_linux_dr_set): Likewise.
11130 (update_debug_registers_callback): Likewise.
11131 (x86_linux_dr_set_addr): Likewise.
11132 (x86_linux_dr_get_addr): Likewise.
11133 (x86_linux_dr_set_control): Likewise.
11134 (x86_linux_dr_get_control): Likewise.
11135 (x86_linux_dr_get_status): Likewise.
11136 (x86_linux_prepare_to_resume): Likewise.
11137
5dfe6ca8
GB
111382015-03-24 Gary Benson <gbenson@redhat.com>
11139
11140 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11141 Use perror_with_name. Pass string through gettext.
11142 (x86_linux_dr_set): Likewise.
11143
d33472ad
GB
111442015-03-24 Gary Benson <gbenson@redhat.com>
11145
11146 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11147 (x86_linux_dr_set_addr): ...this.
11148 (x86_dr_low_get_addr): Rename to...
11149 (x86_linux_dr_get_addr): ...this.
11150 (x86_dr_low_set_control): Rename to...
11151 (x86_linux_dr_set_control): ...this.
11152 (x86_dr_low_get_control): Rename to...
11153 (x86_linux_dr_get_control): ...this.
11154 (x86_dr_low_get_status): Rename to...
11155 (x86_linux_dr_get_status): ...this.
11156 (x86_dr_low): Update with new function names.
11157
4b134ca1
GB
111582015-03-24 Gary Benson <gbenson@redhat.com>
11159
11160 * Makefile.in (x86-linux.o): New rule.
11161 * configure.srv: Add x86-linux.o to relevant targets.
11162 * linux-low.c (lwp_set_arch_private_info): New function.
11163 (lwp_arch_private_info): Likewise.
11164 * linux-x86-low.c: Include nat/x86-linux.h.
11165 (arch_lwp_info): Removed structure.
11166 (update_debug_registers_callback):
11167 Use lwp_set_debug_registers_changed.
11168 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11169 and lwp_set_debug_registers_changed.
11170 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11171
34c703da
GB
111722015-03-24 Gary Benson <gbenson@redhat.com>
11173
11174 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11175 * linux-arm-low.c (arm_new_thread): Likewise.
11176 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11177 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11178 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11179 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11180
cff068da
GB
111812015-03-24 Gary Benson <gbenson@redhat.com>
11182
11183 * linux-low.c (ptid_of_lwp): New function.
11184 (lwp_is_stopped): Likewise.
11185 (lwp_stop_reason): Likewise.
11186 * linux-x86-low.c (update_debug_registers_callback):
11187 Use lwp_is_stopped.
11188 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11189 lwp_stop_reason.
11190
b2f7c7e8
GB
111912015-03-24 Gary Benson <gbenson@redhat.com>
11192
11193 * linux-low.h (linux_stop_lwp): Remove declaration.
11194
6d4ee8c6
GB
111952015-03-24 Gary Benson <gbenson@redhat.com>
11196
11197 * linux-low.h: Include nat/linux-nat.h.
11198 * linux-low.c (iterate_over_lwps_args): New structure.
11199 (iterate_over_lwps_filter): New function.
11200 (iterate_over_lwps): Likewise.
11201 * linux-x86-low.c (update_debug_registers_callback):
11202 Update signature to what iterate_over_lwps expects.
11203 Remove PID check that iterate_over_lwps now performs.
11204 (x86_dr_low_set_addr): Use iterate_over_lwps.
11205 (x86_dr_low_set_control): Likewise.
11206
70a0bb6b
GB
112072015-03-24 Gary Benson <gbenson@redhat.com>
11208
11209 * linux-x86-low.c (x86_debug_reg_state): New function.
11210 (x86_linux_prepare_to_resume): Use the above.
11211
7b669087
GB
112122015-03-24 Gary Benson <gbenson@redhat.com>
11213
11214 * linux-low.c (current_lwp_ptid): New function.
11215 * linux-x86-low.c: Include nat/linux-nat.h.
11216 (x86_dr_low_get_addr): Use current_lwp_ptid.
11217 (x86_dr_low_get_control): Likewise.
11218 (x86_dr_low_get_status): Likewise.
11219
eef49a3d
PA
112202015-03-20 Pedro Alves <palves@redhat.com>
11221
11222 * tracepoint.c (cmd_qtstatus): Make "str" const.
11223
b2333d22
PA
112242015-03-20 Pedro Alves <palves@redhat.com>
11225
11226 * server.c (handle_general_set): Make "req_str" const.
11227
23f238d3
PA
112282015-03-19 Pedro Alves <palves@redhat.com>
11229
11230 * linux-low.c (linux_resume_one_lwp): Rename to ...
11231 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11232 instead call perror_with_name.
11233 (check_ptrace_stopped_lwp_gone): New function.
11234 (linux_resume_one_lwp): Reimplement as wrapper around
11235 linux_resume_one_lwp_throw that swallows errors if the LWP is
11236 gone.
11237
91baf43f
PA
112382015-03-19 Pedro Alves <palves@redhat.com>
11239
11240 * linux-low.c (count_events_callback, select_event_lwp_callback):
11241 No longer check whether the thread has resume_stop as last resume
11242 kind.
11243
8bf3b159
PA
112442015-03-19 Pedro Alves <palves@redhat.com>
11245
11246 * linux-low.c (count_events_callback, select_event_lwp_callback):
11247 Use the lwp's status_pending_p field, not the thread's.
11248
b90fc188
PA
112492015-03-19 Pedro Alves <palves@redhat.com>
11250
11251 * linux-low.c (select_event_lwp_callback): Update comments to
11252 no longer mention SIGTRAP.
11253
464b0089
GB
112542015-03-18 Gary Benson <gbenson@redhat.com>
11255
11256 * server.c (handle_query): Do not report vFile:fstat as supported.
11257
aa9e327f
GB
112582015-03-11 Gary Benson <gbenson@redhat.com>
11259
11260 * hostio.c (sys/types.h): New include.
11261 (sys/stat.h): Likewise.
11262 (common-remote-fileio.h): Likewise.
11263 (handle_fstat): New function.
11264 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11265
791c0056
GB
112662015-03-11 Gary Benson <gbenson@redhat.com>
11267
11268 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11269 struct stat.st_blocks and struct stat.st_blksize.
11270 * configure: Regenerate.
11271 * config.in: Likewise.
11272 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11273 (OBS): Add common-remote-fileio.o.
11274 (common-remote-fileio.o): New rule.
11275
9a9df970
PA
112762015-03-09 Pedro Alves <palves@redhat.com>
11277
11278 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11279 'struct sockaddr' pointer in 'accept' call.
11280
9eb1356e
PA
112812015-03-09 Pedro Alves <palves@redhat.com>
11282
11283 Revert:
11284 2015-03-07 Pedro Alves <palves@redhat.com>
11285 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11286 or <winsock2.h> here. Instead include "gdb_socket.h".
11287 (remote_open): Use union gdb_sockaddr_u.
11288 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11289 or <winsock2.h> here. Instead include "gdb_socket.h".
11290 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11291 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11292 or <sys/un.h>.
11293 (init_named_socket, gdb_agent_helper_thread): Use union
11294 gdb_sockaddr_u.
11295
aac331e4
PA
112962015-03-07 Pedro Alves <palves@redhat.com>
11297
11298 * configure.ac (build_warnings): Move
11299 -Wdeclaration-after-statement to the C-specific set.
11300 * configure: Regenerate.
11301
366c75fc
PA
113022015-03-07 Pedro Alves <palves@redhat.com>
11303
11304 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11305 or <winsock2.h> here. Instead include "gdb_socket.h".
11306 (remote_open): Use union gdb_sockaddr_u.
11307 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11308 or <winsock2.h> here. Instead include "gdb_socket.h".
11309 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11310 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11311 or <sys/un.h>.
11312 (init_named_socket, gdb_agent_helper_thread): Use union
11313 gdb_sockaddr_u.
11314
492d29ea
PA
113152015-03-07 Pedro Alves <palves@redhat.com>
11316
11317 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11318 instead.
11319
60a191ed
YQ
113202015-03-06 Yao Qi <yao.qi@linaro.org>
11321
11322 * linux-aarch64-low.c (aarch64_insert_point): Use
11323 show_debug_regs as a boolean.
11324 (aarch64_remove_point): Likewise.
11325
f5771b1d
PA
113262015-03-05 Pedro Alves <palves@redhat.com>
11327
11328 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11329 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11330 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11331 * nto-low.c (nto_target_ops): Likewise.
11332 * spu-low.c (spu_target_ops): Likewise.
11333 * win32-low.c (win32_target_ops): Likewise.
11334
3e572f71
PA
113352015-03-04 Pedro Alves <palves@redhat.com>
11336
72f4393d 11337 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11338 Decide whether a breakpoint triggered based on the SIGTRAP's
11339 siginfo.si_code.
72f4393d
L
11340 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11341 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11342 (linux_low_filter_event): Check for breakpoints before checking
11343 watchpoints.
11344 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11345 siginfo.si_code.
72f4393d
L
11346 (linux_stopped_by_sw_breakpoint)
11347 (linux_supports_stopped_by_sw_breakpoint)
11348 (linux_stopped_by_hw_breakpoint)
11349 (linux_supports_stopped_by_hw_breakpoint): New functions.
11350 (linux_target_ops): Install new target methods.
3e572f71 11351
1ec68e26
PA
113522015-03-04 Pedro Alves <palves@redhat.com>
11353
11354 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11355 * server.c (swbreak_feature, hwbreak_feature): New globals.
11356 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11357 (captured_main): Clear swbreak_feature and hwbreak_feature.
11358 * server.h (swbreak_feature, hwbreak_feature): Declare.
11359 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11360 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11361 supports_stopped_by_hw_breakpoint>: New fields.
11362 (target_supports_stopped_by_sw_breakpoint)
11363 (target_stopped_by_sw_breakpoint)
11364 (target_supports_stopped_by_hw_breakpoint)
11365 (target_stopped_by_hw_breakpoint): Declare.
11366
15c66dd6
PA
113672015-03-04 Pedro Alves <palves@redhat.com>
11368
11369 enum lwp_stop_reason -> enum target_stop_reason
11370 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11371 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11372 (linux_wait_1, stuck_in_jump_pad_callback)
11373 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11374 (linux_stopped_by_watchpoint):
11375 * linux-low.h (enum lwp_stop_reason): Delete.
11376 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11377 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11378
98fc70d6
YQ
113792015-03-04 Yao Qi <yao.qi@linaro.org>
11380
11381 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11382
dd2ac174
GB
113832015-03-03 Gary Benson <gbenson@redhat.com>
11384
11385 * hostio.c (handle_vFile): Fix prefix lengths.
11386
d68e53f4
MM
113872015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11388
11389 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11390 ptr_bits.
11391
bf2d68ab
AA
113922015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11393
11394 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11395 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11396 (clean): Add "rm -f" for above C files.
11397 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11398 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11399 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11400 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11401 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11402 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11403 (init_registers_s390x_vx_linux64)
11404 (init_registers_s390x_tevx_linux64)
11405 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11406 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11407 declarations.
11408 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11409 (s390_store_vxrs_high): New functions.
11410 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11411 NT_S390_VXRS_HIGH.
11412 (s390_arch_setup): Add logic for selecting one of the new target
11413 descriptions. Activate the new vector regsets if applicable.
11414 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11415 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11416 and init_registers_s390x_tevx_linux64.
11417
c966a859
PA
114182015-03-01 Pedro Alves <palves@redhat.com>
11419
11420 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11421 parameter.
11422
4180215b
PA
114232015-02-27 Pedro Alves <palves@redhat.com>
11424
11425 * linux-x86-low.c (u_debugreg_offset): New function.
11426 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11427
749bab01
PA
114282015-02-27 Pedro Alves <palves@redhat.com>
11429
11430 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11431 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11432 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11433 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11434 (ps_lsetfpregs, ps_getpid)
11435 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11436 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11437 (ps_lsetxregs, ps_plog): Declare.
11438
3c14e5a3
PA
114392015-02-27 Pedro Alves <palves@redhat.com>
11440
11441 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11442 IP_AGENT_EXPORT_FUNC.
11443 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11444 IP_AGENT_EXPORT_FUNC.
11445 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11446 (IP_AGENT_EXPORT): Delete.
11447 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11448 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11449 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11450 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11451 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11452 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11453 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11454 (traceframe_read_count, traceframe_write_count)
11455 (traceframes_created, trace_state_variables, get_raw_reg)
11456 (get_trace_state_variable_value, set_trace_state_variable_value)
11457 (ust_loaded, helper_thread_id, cmd_buf): Use
11458 IPA_SYM_EXPORTED_NAME.
11459 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11460 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11461 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11462 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11463 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11464 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11465 EXTERN_C_PUSH/EXTERN_C_POP.
11466 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11467 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11468 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11469 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11470 (traceframe_write_count, traceframe_read_count)
11471 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11472 (about_to_request_buffer_space, get_trace_state_variable_value)
11473 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11474 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11475 EXTERN_C_PUSH/EXTERN_C_POP.
11476 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11477 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11478 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11479 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11480 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11481 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11482 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11483 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11484 Define.
11485 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11486 (IP_AGENT_EXPORT_VAR_DECL): Define.
11487 (tracing): Declare.
11488 (gdb_agent_get_raw_reg): Declare.
11489
fe978cb0
PA
114902015-02-27 Tom Tromey <tromey@redhat.com>
11491 Pedro Alves <palves@redhat.com>
11492
11493 Rename symbols whose names are reserved C++ keywords throughout.
11494
3bc3d82a
PA
114952015-02-27 Pedro Alves <palves@redhat.com>
11496
11497 * Makefile.in (COMPILER): New, get it from autoconf.
11498 (CXX): Get from autoconf instead.
11499 (COMPILE.pre): Use COMPILER.
11500 (CC-LD): Rename to ...
11501 (CC_LD): ... this. Use COMPILER.
11502 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11503 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11504 * acinclude.m4: Include build-with-cxx.m4.
11505 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11506 Disable -Werror by default if building in C++ mode.
11507 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11508 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11509 the C++ compiler. Save/restore CXXFLAGS too.
11510 * configure: Regenerate.
11511
07697489
PA
115122015-02-27 Pedro Alves <palves@redhat.com>
11513
11514 * acinclude.m4: Include libiberty.m4.
11515 * configure.ac: Call libiberty_INIT.
11516 * config.in, configure: Regenerate.
11517
9beb7c4e
PA
115182015-02-26 Pedro Alves <palves@redhat.com>
11519
11520 * linux-low.c (linux_wait_1): When incrementing the PC past a
11521 program breakpoint always use the_low_target.breakpoint_len as
11522 increment, rather than the maximum between that and
11523 the_low_target.decr_pc_after_break.
11524
8090aef2
PA
115252015-02-23 Pedro Alves <palves@redhat.com>
11526
11527 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11528 thread was doing a step-over; always adjust the PC if
11529 we stepped over a permanent breakpoint.
11530 (linux_wait_1): If we stepped over breakpoint that was on top of a
11531 permanent breakpoint, manually advance the PC past it.
11532
bc9540e8
PA
115332015-02-23 Pedro Alves <palves@redhat.com>
11534
11535 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11536 modes.
11537 (x86_fill_gregset, x86_store_gregset): Use it when handling
11538 $orig_eax.
11539
2db9a427
PA
115402015-02-20 Pedro Alves <palves@redhat.com>
11541
11542 * thread-db.c: Include "nat/linux-procfs.h".
11543 (thread_db_init): Skip listing new threads if the kernel supports
11544 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11545
afa8d396
PA
115462015-02-20 Pedro Alves <palves@redhat.com>
11547
11548 * linux-low.c (status_pending_p_callback): Use ptid_match.
11549
c9587f88
AT
115502015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11551
11552 PR breakpoints/16812
11553 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11554 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11555 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11556
b05ec7a5
AT
115572015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11558
11559 PR breakpoints/15956
11560 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11561
d33501a5
MM
115622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11563
11564 * linux-low.c (linux_low_btrace_conf): Print size.
11565 * server.c (handle_btrace_conf_general_set): New.
11566 (hanle_general_set): Call handle_btrace_conf_general_set.
11567 (handle_query): Report Qbtrace-conf:bts:size as supported.
11568
f4abbc16
MM
115692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11570
11571 * linux-low.c (linux_low_enable_btrace): Update parameters.
11572 (linux_low_btrace_conf): New.
11573 (linux_target_ops)<to_btrace_conf>: Initialize.
11574 * server.c (current_btrace_conf): New.
11575 (handle_btrace_enable): Rename to ...
11576 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11577 to target_enable_btrace. Update comment. Update users.
11578 (handle_qxfer_btrace_conf): New.
11579 (qxfer_packets): Add btrace-conf entry.
11580 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11581 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11582 (target_ops)<read_btrace_conf>: New.
11583 (target_enable_btrace): Update parameters.
11584 (target_read_btrace_conf): New.
11585
043c3577
MM
115862015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11587
11588 * server.c (handle_btrace_general_set): Remove call to
11589 target_supports_btrace.
11590 (supported_btrace_packets): New.
11591 (handle_query): Call supported_btrace_packets.
11592 * target.h: include btrace-common.h.
11593 (btrace_target_info): Removed.
11594 (supports_btrace, target_supports_btrace): Update parameters.
11595
734b0e4b
MM
115962015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11597
11598 * Makefile.in (SFILES): Add common/btrace-common.c.
11599 (OBS): Add common/btrace-common.o.
11600 (btrace-common.o): Add build rules.
11601 * linux-low: Include btrace-common.h.
11602 (linux_low_read_btrace): Use struct btrace_data. Call
11603 btrace_data_init and btrace_data_fini.
11604
d6c146e9
PA
116052015-02-06 Pedro Alves <palves@redhat.com>
11606
11607 * thread-db.c (find_new_threads_callback): Add debug output.
11608
20ba1ce6
PA
116092015-02-04 Pedro Alves <palves@redhat.com>
11610
11611 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11612 (resume_stopped_resumed_lwps): New function.
11613 (linux_wait_for_event_filtered): Use it.
11614
8cc73a39
SDJ
116152015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11616
11617 * Makefile.in (SFILES): Add linux-personality.c.
11618 (linux-personality.o): New rule.
11619 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11620 list of objects to be built.
11621 * linux-low.c: Include nat/linux-personality.h.
11622 (linux_create_inferior): Remove code to disable address space
11623 randomization (moved to ../nat/linux-personality.c). Create
11624 cleanup to disable address space randomization.
11625
fb23d554
SDJ
116262015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11627
11628 * Makefile.in (posix-strerror.o): New rule.
11629 (mingw-strerror.o): Likewise.
11630 * configure: Regenerated.
11631 * configure.ac: Source file ../common/common.host. Initialize new
11632 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11633
cdf43629
YQ
116342015-01-14 Yao Qi <yao@codesourcery.com>
11635
11636 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11637 (ppc-linux.o): New rule.
11638 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11639 * configure.ac: AC_CHECK_FUNCS(getauxval).
11640 * config.in: Re-generated.
11641 * configure: Re-generated.
11642 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11643 ppc64_64bit_inferior_p
11644
514c5338
YQ
116452015-01-14 Yao Qi <yao@codesourcery.com>
11646
11647 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11648 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11649 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11650 (PT_ORIG_R3, PT_TRAP): Likewise.
11651 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11652 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11653 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11654
3368c1e5
JB
116552015-01-10 Joel Brobecker <brobecker@adacore.com>
11656
11657 * i387-fp.c (i387_cache_to_xsave): In look over
11658 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11659 zmmh_low_space field by use of zmmh_high_space.
11660
582511be
PA
116612015-01-09 Pedro Alves <palves@redhat.com>
11662
11663 * linux-low.c (step_over_bkpt): Move higher up in the file.
11664 (handle_extended_wait): Don't store the stop_pc here.
11665 (get_stop_pc): Adjust comments and rename to ...
11666 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11667 stopped for a software breakpoint or hardware breakpoint.
11668 (thread_still_has_status_pending_p): New function.
11669 (status_pending_p_callback): Use
11670 thread_still_has_status_pending_p. If the event is no longer
11671 interesting, resume the LWP.
11672 (handle_tracepoints): Add assert.
11673 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11674 (wstatus_maybe_breakpoint): New function.
11675 (cancel_breakpoint): Delete function.
11676 (check_stopped_by_watchpoint): New function, factored out from
11677 linux_low_filter_event.
11678 (lp_status_maybe_breakpoint): Delete function.
11679 (linux_low_filter_event): Remove filter_ptid argument.
11680 Leave thread group exits pending here. Store the LWP's stop PC.
11681 Always leave events pending.
11682 (linux_wait_for_event_filtered): Pull all events out of the
11683 kernel, and leave them all pending.
11684 (count_events_callback, select_event_lwp_callback): Consider all
11685 events.
11686 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11687 (select_event_lwp): Only give preference to the stepping LWP in
11688 all-stop mode. Adjust comments.
11689 (ignore_event): New function.
11690 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11691 references to cancel_breakpoints. Adjust to renames. Also give
11692 equal priority to all LWPs that have had events in non-stop mode.
11693 If reporting a software breakpoint event, unadjust the LWP's PC.
11694 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11695 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11696 Adjust.
11697 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11698 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11699 (linux_stopped_by_watchpoint): Adjust.
11700 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11701 * linux-low.h (enum lwp_stop_reason): New.
11702 (struct lwp_info) <stop_pc>: Adjust comment.
11703 <stopped_by_watchpoint>: Delete field.
11704 <stop_reason>: New field.
11705 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11706 * mem-break.c (software_breakpoint_inserted_here)
11707 (hardware_breakpoint_inserted_here): New function.
11708 * mem-break.h (software_breakpoint_inserted_here)
11709 (hardware_breakpoint_inserted_here): Declare.
11710 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11711 (cancel_breakpoints): Delete.
11712 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11713 (upload_fast_traceframes): Remove references to
11714 cancel_breakpoints.
11715
a33e3959
PA
117162015-01-09 Pedro Alves <palves@redhat.com>
11717
11718 * thread-db.c (find_new_threads_callback): Ignore thread if the
11719 kernel thread ID is -1.
11720
8784d563
PA
117212015-01-09 Pedro Alves <palves@redhat.com>
11722
11723 * linux-low.c (linux_attach_fail_reason_string): Move to
11724 nat/linux-ptrace.c, and rename.
11725 (linux_attach_lwp): Update comment.
11726 (attach_proc_task_lwp_callback): New function.
11727 (linux_attach): Adjust to rename and use
11728 linux_proc_attach_tgid_threads.
11729 (linux_attach_fail_reason_string): Delete declaration.
11730
76f2b779
JB
117312015-01-01 Joel Brobecker <brobecker@adacore.com>
11732
11733 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11734 * server.c (gdbserver_version): Likewise.
11735
fafcc06a
SDJ
117362014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11737
11738 * remote-utils.c: Include ctype.h.
11739 (input_interrupt): Explicitly handle the case when the char
11740 received is the NUL byte. Improve the printing of non-ASCII
11741 characters.
11742
beed38b8
JB
117432014-12-16 Joel Brobecker <brobecker@adacore.com>
11744
11745 * linux-low.c (linux_low_filter_event): Update call to
11746 linux_enable_event_reporting following the addition of
11747 a new parameter to that function.
11748
bf330350
CU
117492014-12-16 Catalin Udma <catalin.udma@freescale.com>
11750
11751 PR server/17457
11752 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11753 (AARCH64_FPCR_REGNO): Likewise.
11754 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11755 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11756 (aarch64_store_fpregset): Likewise.
11757
5227d625
JB
117582014-12-15 Joel Brobecker <brobecker@adacore.com>
11759
11760 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11761 Remove FIXME comment about assumption about N.
11762
f93b65a0
JB
117632014-12-13 Joel Brobecker <brobecker@adacore.com>
11764
11765 * configure.ac: If large-file support is disabled in GDBserver,
11766 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11767 * configure: Regenerate.
11768
e5a9158d
AA
117692014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11770
11771 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11772 warning upon ENODATA from ptrace.
11773 * linux-s390-low.c (s390_store_tdb): New.
11774 (s390_regsets): Add regset for NT_S390_TDB.
11775
feea5f36
AA
117762014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11777
11778 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11779 without a fill_function.
11780 * linux-s390-low.c (s390_fill_last_break): Remove.
11781 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11782 (s390_arch_setup): Use regset's size instead of fill_function for
11783 loop end condition.
11784
098dbe61
AA
117852014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11786
11787 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11788 the regset's store function when ptrace returned an error.
11789 * regcache.c (get_thread_regcache): Invalidate register cache
11790 before fetching inferior's registers.
11791
28eef672
AA
117922014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11793
11794 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11795 while-loop as for-loop.
11796 (regsets_store_inferior_registers): Likewise.
11797
bdca27a2
YQ
117982014-11-28 Yao Qi <yao@codesourcery.com>
11799
11800 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11801 * config.in, configure: Re-generate.
11802 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11803 is defined.
11804
9c232dda
YQ
118052014-11-21 Yao Qi <yao@codesourcery.com>
11806
11807 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11808 (AC_CHECK_HEADERS): Remove malloc.h.
11809 * configure: Re-generated.
11810 * config.in: Re-generated.
11811 * server.h: Don't include alloca.h and malloc.h.
11812 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11813 Don't include malloc.h.
11814
43968415
JB
118152014-11-17 Joel Brobecker <brobecker@adacore.com>
11816
11817 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11818 corresponding ERRNO check in same block.
11819
40e91bc7
PA
118202014-11-12 Pedro Alves <palves@redhat.com>
11821
11822 * server.c (cont_thread): Update comment.
11823 (start_inferior, attach_inferior): No longer clear cont_thread.
11824 (handle_v_cont): No longer set cont_thread.
11825 (captured_main): Clear cont_thread each time a GDB connects.
11826
c2c118cf
PA
118272014-11-12 Pedro Alves <palves@redhat.com>
11828
11829 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11830 thread, and don't resume all threads if the Hc thread has exited.
11831
78708b7c
PA
118322014-11-12 Pedro Alves <palves@redhat.com>
11833
11834 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11835 the process group instead of to a specific LWP.
11836
a2abc7de
PA
118372014-10-15 Pedro Alves <palves@redhat.com>
11838
11839 PR server/17487
11840 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11841 parameter.
11842 (arm_set_thread_context): Delete.
11843 (the_low_target): Adjust.
11844 * win32-i386-low.c (debug_registers_changed)
11845 (debug_registers_used): Delete.
11846 (update_debug_registers_callback): New function.
11847 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11848 needing to update their debug registers.
11849 (win32_get_current_dr): New function.
11850 (x86_dr_low_get_addr, x86_dr_low_get_control)
11851 (x86_dr_low_get_status): Fetch the debug register from the thread
11852 record's context.
11853 (i386_initial_stuff): Adjust.
11854 (i386_get_thread_context): Remove current_event parameter. Don't
11855 clear debug_registers_changed nor copy DR values to
11856 debug_reg_state.
11857 (i386_set_thread_context): Delete.
11858 (i386_prepare_to_resume): New function.
11859 (i386_thread_added): Mark the thread as needing to update irs
11860 debug registers.
11861 (the_low_target): Remove i386_set_thread_context and install
11862 i386_prepare_to_resume.
11863 * win32-low.c (win32_get_thread_context): Adjust.
11864 (win32_set_thread_context): Use SetThreadContext
11865 directly.
11866 (win32_prepare_to_resume): New function.
11867 (win32_require_context): New function, factored out from ...
11868 (thread_rec): ... this.
11869 (continue_one_thread): Call win32_prepare_to_resume on each thread
11870 we're about to continue.
11871 (win32_resume): Call win32_prepare_to_resume on the event thread.
11872 * win32-low.h (struct win32_thread_info)
11873 <debug_registers_changed>: New field.
11874 (struct win32_target_ops): Change prototype of set_thread_context,
11875 delete set_thread_context and add prepare_to_resume.
11876 (win32_require_context): New declaration.
11877
a442d071
GB
118782014-10-08 Gary Benson <gbenson@redhat.com>
11879
11880 * server.h: Do not include common-exceptions.h.
11881
6f1947e8
GB
118822014-10-08 Gary Benson <gbenson@redhat.com>
11883
11884 * server.h: Do not include cleanups.h.
11885
63b434a4
JH
118862014-09-30 James Hogan <james.hogan@imgtec.com>
11887
11888 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11889 mips64-dsp-linux.c.
11890
c4d9ceb6
YQ
118912014-09-23 Yao Qi <yao@codesourcery.com>
11892
11893 * linux-low.c (lp_status_maybe_breakpoint): New function.
11894 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11895 (count_events_callback): Likewise.
11896 (select_event_lwp_callback): Likewise.
11897 (cancel_breakpoints_callback): Likewise.
11898
89a5711c
DB
118992014-09-19 Don Breazeal <donb@codesourcery.com>
11900
11901 * linux-low.c (handle_extended_wait): Call
11902 linux_ptrace_get_extended_event.
11903 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11904 linux_is_extended_waitstatus.
11905
bffc0964
JB
119062014-09-16 Joel Brobecker <brobecker@adacore.com>
11907
11908 * Makefile.in (CPPFLAGS): Define.
11909 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11910 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11911
0bfdf32f
GB
119122014-09-16 Gary Benson <gbenson@redhat.com>
11913
11914 * inferiors.h (current_inferior): Renamed as...
11915 (current_thread): New variable. All uses updated.
11916 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11917 (maybe_move_out_of_jump_pad): Likewise.
11918 (cancel_breakpoint): Likewise.
11919 (linux_low_filter_event): Likewise.
11920 (wait_for_sigstop): Likewise.
11921 (linux_resume_one_lwp): Likewise.
11922 (need_step_over_p): Likewise.
11923 (start_step_over): Likewise.
11924 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11925 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11926 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11927 and save_inferior as saved_thread.
11928 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11929 saved_thread.
11930 (regcache_invalidate_thread): Likewise.
11931 * remote-utils.c (prepare_resume_reply): Likewise.
11932 * thread-db.c (thread_db_get_tls_address): Likewise.
11933 (disable_thread_event_reporting): Likewise.
11934 (remove_thread_event_breakpoints): Likewise.
11935 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11936 as saved_thread.
11937 * target.h (set_desired_inferior): Renamed as...
11938 (set_desired_thread): New declaration. All uses updated.
11939 * server.c (myresume): Updated comment to reference thread instead
11940 of inferior.
11941 (handle_serial_event): Likewise.
11942 (handle_target_event): Likewise.
11943
361c8ade
GB
119442014-09-12 Tom Tromey <tromey@redhat.com>
11945 Gary Benson <gbenson@redhat.com>
11946
11947 * regcache.h: Include common-regcache.h.
11948 (regcache_read_pc): Don't declare.
11949 * regcache.c (get_thread_regcache_for_ptid): New function.
11950
bd9269f7
GB
119512014-09-11 Tom Tromey <tromey@redhat.com>
11952 Gary Benson <gbenson@redhat.com>
11953
11954 * symbol.c: New file.
11955 * Makefile.in (SFILES): Add symbol.c.
11956 (OBS): Add symbol.o.
11957
f8c1d06b
GB
119582014-09-11 Gary Benson <gbenson@redhat.com>
11959
11960 * target.c (target_stop_ptid, target_continue_ptid): New
11961 functions.
11962
721ec300
GB
119632014-09-11 Tom Tromey <tromey@redhat.com>
11964 Gary Benson <gbenson@redhat.com>
11965
11966 * target.h: Include target/target.h.
11967 * target.c (target_read_memory, target_read_uint32)
11968 (target_write_memory): New functions.
11969
c5e92cca
GB
119702014-09-11 Gary Benson <gbenson@redhat.com>
11971
11972 * server.h (debug_hw_points): Don't declare.
11973 * server.c (debug_hw_points): Don't define. Replace all uses
11974 with show_debug_regs.
11975 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11976 all uses with show_debug_regs.
11977
2e4bb98a
EBM
119782014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11979
11980 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11981 endianness into account.
11982 (ppc_supply_ptrace_register): Likewise.
11983
ac740bc7
JH
119842014-09-03 James Hogan <james.hogan@imgtec.com>
11985
11986 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11987 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11988
97ea6506
GB
119892014-09-03 Gary Benson <gbenson@redhat.com>
11990
11991 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11992 ALL_DEBUG_ADDRESS_REGISTERS.
11993
df7e5265
GB
119942014-09-02 Gary Benson <gbenson@redhat.com>
11995
11996 * i386-low.h: Renamed as...
11997 * x86-low.h: New file. All type, function and variable name
11998 prefixes changed from "i386_" to "x86_". All references updated.
11999 * i386-low.c: Renamed as...
12000 * x86-low.c: New file. All type, function and variable name
12001 prefixes changed from "i386_" to "x86_". All references updated.
12002
ed859da7
GB
120032014-09-02 Gary Benson <gbenson@redhat.com>
12004
12005 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12006 (x86_linux_new_thread): Likewise.
12007
860789c7
GB
120082014-08-29 Gary Benson <gbenson@redhat.com>
12009
12010 * server.h (setjmp.h): Do not include.
12011 (toplevel): Do not declare.
12012 (common-exceptions.h): Include.
12013 (cleanups.h): Likewise.
12014 * server.c (toplevel): Do not define.
12015 (exit_code): New static global.
12016 (detach_or_kill_for_exit_cleanup): New function.
12017 (main): New function. Original main renamed to...
12018 (captured_main): New function.
12019 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12020
ff55e1b5
GB
120212014-08-29 Gary Benson <gbenson@redhat.com>
12022
12023 * Makefile.in (SFILES): Add common/common-exceptions.c.
12024 (OBS): Add common-exceptions.o.
12025 (common-exceptions.o): New rule.
12026 * utils.c (prepare_to_throw_exception): New function.
12027
e9bcb658
GB
120282014-08-29 Gary Benson <gbenson@redhat.com>
12029
12030 * config.in: Regenerate.
12031 * configure: Likewise.
12032
e3180625
GB
120332014-08-29 Gary Benson <gbenson@redhat.com>
12034
12035 * Makefile.in (SFILES): Add common/cleanups.c.
12036 (OBS): cleanups.o.
12037 (cleanups.o): New rule.
12038
e3d6ba5d
GB
120392014-08-29 Gary Benson <gbenson@redhat.com>
12040
12041 * utils.c (internal_vwarning): New function.
12042
7096e886
GB
120432014-08-28 Gary Benson <gbenson@redhat.com>
12044
12045 * utils.h (fatal): Remove declaration.
12046 * utils.c (fatal): Remove function.
12047
14ce3192
GB
120482014-08-28 Gary Benson <gbenson@redhat.com>
12049
12050 * tracepoint.c (gdb_agent_init): Replace fatal with
12051 perror_with_name.
12052 (initialize_tracepoint): Likewise.
12053
50278d59
GB
120542014-08-28 Gary Benson <gbenson@redhat.com>
12055
12056 * remote-utils.c (remote_prepare): Replace fatal with error.
12057
aa96c426
GB
120582014-08-28 Gary Benson <gbenson@redhat.com>
12059
12060 * linux-low.c (linux_async): Replace fatal with warning.
12061 Tidy up and return.
12062 (linux_start_non_stop): Return -1 if linux_async failed.
12063
f7160e97
GB
120642014-08-28 Gary Benson <gbenson@redhat.com>
12065
12066 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12067 gdb_assert.
12068 (i386_dr_low_get_addr): Remove vague comment.
12069 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12070 gdb_assert.
12071
38e08fca
GB
120722014-08-28 Gary Benson <gbenson@redhat.com>
12073
12074 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12075 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12076 internal_error.
12077 (linux_resume_one_lwp): Likewise.
12078 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12079 gdb_assert.
12080 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12081 with internal_error.
12082 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12083 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12084 (find_register_by_name): Replace fatal with internal_error.
12085 (find_regno): Likewise.
12086 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12087 * thread-db.c (thread_db_create_event): Likewise.
12088 (thread_db_load_search): Likewise.
12089 (try_thread_db_load_1): Likewise.
12090 * tracepoint.c (get_jump_space_head): Replace fatal with
12091 internal_error.
12092 (claim_trampoline_space): Likewise.
12093 (have_fast_tracepoint_trampoline_buffer): Likewise.
12094 (cmd_qtstart): Likewise.
12095 (stop_tracing): Likewise.
12096 (fast_tracepoint_collecting): Likewise.
12097 (target_malloc): Likewise.
12098 (download_tracepoint): Likewise.
12099 (download_trace_state_variables): Replace check with gdb_assert.
12100 (upload_fast_traceframes): Replace fatal with internal_error.
12101
34abf635
GB
121022014-08-19 Tom Tromey <tromey@redhat.com>
12103 Gary Benson <gbenson@redhat.com>
12104
12105 * Makefile.in (SFILES): Add common/common-debug.c.
12106 (OBS): Add common-debug.o.
12107 (common-debug.o): New rule.
12108 * debug.h (debug_printf): Don't declare.
12109 * debug.c (debug_printf): Renamed and rewritten as...
12110 (debug_vprintf): New function.
12111
f6e94d78
GB
121122014-08-19 Gary Benson <gbenson@redhat.com>
12113
12114 * utils.h: Do not include print-utils.h.
12115
9239eeab
GB
121162014-08-19 Tom Tromey <tromey@redhat.com>
12117 Gary Benson <gbenson@redhat.com>
12118
12119 * server.h: Add static assertion.
12120 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12121
ef87c8bb
GB
121222014-08-19 Tom Tromey <tromey@redhat.com>
12123 Gary Benson <gbenson@redhat.com>
12124
12125 * Makefile.in (SFILES): Add common/errors.c.
12126 (OBS): Add errors.o.
12127 (IPA_OBS): Add errors-ipa.o.
12128 (errors.o): New rule.
12129 (errors-ipa.o): Likewise.
12130 * utils.h (perror_with_name, error, warning): Don't declare.
12131 * utils.c (warning): Renamed and rewritten as...
12132 (vwarning): New function.
12133 (error): Renamed and rewritten as...
12134 (verror): New function.
12135 (internal_error): Renamed and rewritten as...
12136 (internal_verror): New function.
12137
bb974a24
GB
121382014-08-07 Gary Benson <gbenson@redhat.com>
12139
12140 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12141 * configure: Regenerate.
12142 * config.in: Likewise.
12143 * server.h: Do not include errno.h.
12144 * event-loop.c: Likewise.
12145 * hostio-errno.c: Likewise.
12146 * linux-low.c: Likewise.
12147 * remote-utils.c: Likewise.
12148 * spu-low.c: Likewise.
12149 * utils.c: Likewise.
12150 * gdbreplay.c: Unconditionally include errno.h.
12151
6d3d12eb
GB
121522014-08-07 Gary Benson <gbenson@redhat.com>
12153
12154 * server.h: Do not include string.h.
12155 * event-loop.c: Likewise.
12156 * linux-low.c: Likewise.
12157 * regcache.c: Likewise.
12158 * remote-utils.c: Likewise.
12159 * spu-low.c: Likewise.
12160 * utils.c: Likewise.
12161
dccbb609
GB
121622014-08-07 Gary Benson <gbenson@redhat.com>
12163
12164 * server.h: Do not include gdb_assert.h.
12165
e76df0d0
GB
121662014-08-07 Gary Benson <gbenson@redhat.com>
12167
12168 * server.h: Do not include common-utils.h.
12169
4cb9c816
GB
121702014-08-07 Gary Benson <gbenson@redhat.com>
12171
12172 * server.h: Do not include ptid.h.
12173 * notif.h: Likewise.
12174
3995eeee
GB
121752014-08-07 Gary Benson <gbenson@redhat.com>
12176
12177 * server.h: Do not include gdb_locale.h.
12178
cb9f1a9b
GB
121792014-08-07 Gary Benson <gbenson@redhat.com>
12180
12181 * server.h: Do not include gdb/signals.h.
12182 * win32-low.c: Likewise.
12183
a5fceff8
GB
121842014-08-07 Gary Benson <gbenson@redhat.com>
12185
12186 * server.h: Do not include pathmax.h.
12187
b9391142
GB
121882014-08-07 Gary Benson <gbenson@redhat.com>
12189
12190 * server.h: Do not include libiberty.h.
12191 * linux-bfin-low.c: Likewise.
12192
0e443c87
GB
121932014-08-07 Gary Benson <gbenson@redhat.com>
12194
12195 * server.h: Do not include ansidecl.h.
12196
8ebb3f56
GB
121972014-08-07 Gary Benson <gbenson@redhat.com>
12198
12199 * linux-x86-low.c: Do not include stddef.h.
12200 * lynx-ppc-low.c: Likewise.
12201 * tracepoint.c: Likewise.
12202
8980bdf6
GB
122032014-08-07 Gary Benson <gbenson@redhat.com>
12204
12205 * server.h: Do not include stdarg.h.
12206 * nto-low.c: Likewise.
12207
d7096f71
GB
122082014-08-07 Gary Benson <gbenson@redhat.com>
12209
12210 * server.h: Do not include stdlib.h.
12211 * inferiors.c: Likewise.
12212 * linux-low.c: Likewise.
12213 * regcache.c: Likewise.
12214 * spu-low.c: Likewise.
12215 * tracepoint.c: Likewise.
12216 * utils.c: Likewise.
12217
d02f550d
GB
122182014-08-07 Gary Benson <gbenson@redhat.com>
12219
12220 * server.h: Do not include stdio.h.
12221 * linux-low.c: Likewise.
12222 * remote-utils.c: Likewise.
12223 * spu-low.c: Likewise.
12224 * utils.c: Likewise.
12225 * wincecompat.c: Likewise.
12226
87f6c4e3
GB
122272014-08-06 Gary Benson <gbenson@redhat.com>
12228
12229 * regcache.c (init_register_cache): Move conditionals inside if.
12230
7089dca4
GB
122312014-08-06 Gary Benson <gbenson@redhat.com>
12232
12233 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12234
462f517e
GB
122352014-07-31 Gary Benson <gbenson@redhat.com>
12236
12237 * ax.h: Do not include server.h.
12238 * gdbthread.h: Likewise.
12239 * lynx-low.h: Likewise.
12240 * notif.h: Likewise.
12241
976411d6
GB
122422014-07-30 Gary Benson <gbenson@redhat.com>
12243
12244 * server.h: Include common-defs.h.
12245 Do not include config.h or build-gnulib-gdbserver/config.h.
12246
d41f6d8e
GB
122472014-07-30 Gary Benson <gbenson@redhat.com>
12248
12249 * hostio-errno.c: Move server.h to top of includes list.
12250 * inferiors.c: Likewise.
12251 * linux-x86-low.c: Likewise.
12252 * notif.c: Include server.h.
12253
314c6a35
TT
122542014-07-24 Tom Tromey <tromey@redhat.com>
12255 Gary Benson <gbenson@redhat.com>
12256
12257 * server.h (CORE_ADDR): Now unsigned.
12258
69ff6be5
PA
122592014-07-16 Pedro Alves <palves@redhat.com>
12260
12261 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12262
ce9e3fe7
PA
122632014-07-15 Pedro Alves <palves@redhat.com>
12264
12265 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12266 copy.
12267
e76126e8
PA
122682014-07-11 Pedro Alves <palves@redhat.com>
12269
12270 * linux-low.c (kill_wait_lwp): New function, based on
12271 kill_one_lwp_callback, but use my_waitpid directly.
12272 (kill_one_lwp_callback, linux_kill): Use it.
12273
8e9db26e
PA
122742014-06-23 Pedro Alves <palves@redhat.com>
12275
12276 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12277 before setting DR0..DR3.
12278
698b3e08
GB
122792014-06-20 Gary Benson <gbenson@redhat.com>
12280
12281 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12282 * configure: Regenerated.
12283 * config.in: Likewise.
12284
125f8a3d
GB
122852014-06-20 Gary Benson <gbenson@redhat.com>
12286
12287 * Makefile.in (SFILES): Update locations for files moved
12288 from common to nat.
12289 (object file files): Reordered.
12290
42995dbd
GB
122912014-06-20 Gary Benson <gbenson@redhat.com>
12292
12293 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12294 (i386_dr_low_set_addr): Likewise.
12295 (i386_dr_low_get_addr): Likewise.
12296 (i386_dr_low_can_set_control): Likewise.
12297 (i386_dr_low_set_control): Likewise.
12298 (i386_dr_low_get_control): Likewise.
12299 (i386_dr_low_get_status): Likewise.
12300 (i386_get_debug_register_length): Likewise.
12301 * linux-x86-low.c (i386_dr_low_set_addr):
12302 Changed signature. Made static.
12303 (i386_dr_low_get_addr): Likewise.
12304 (i386_dr_low_set_control): Likewise.
12305 (i386_dr_low_get_control): Likewise.
12306 (i386_dr_low_get_status): Likewise.
12307 (i386_dr_low): New global variable.
12308 * win32-i386-low.c (i386_dr_low_set_addr):
12309 Changed signature. Made static.
12310 (i386_dr_low_get_addr): Likewise.
12311 (i386_dr_low_set_control): Likewise.
12312 (i386_dr_low_get_control): Likewise.
12313 (i386_dr_low_get_status): Likewise.
12314 (i386_dr_low): New global variable.
12315
e1d2394b
MS
123162014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12317
12318 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12319 * Makefile.in (AR, AR_FLAGS): Define.
12320 * configure: Regenerate.
12321
3a8ee006
GB
123222014-06-19 Gary Benson <gbenson@redhat.com>
12323
12324 * Makefile.in (i386-dregs.o): New rule.
12325 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12326 * i386-low.c (target.h): Remove include.
12327 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12328 (DR_CONTROL_SHIFT): Likewise.
12329 (DR_CONTROL_SIZE): Likewise.
12330 (DR_RW_EXECUTE): Likewise.
12331 (DR_RW_WRITE): Likewise.
12332 (DR_RW_READ): Likewise.
12333 (DR_RW_IORW): Likewise.
12334 (DR_LEN_1): Likewise.
12335 (DR_LEN_2): Likewise.
12336 (DR_LEN_4): Likewise.
12337 (DR_LEN_8): Likewise.
12338 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12339 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12340 (DR_ENABLE_SIZE): Likewise.
12341 (DR_LOCAL_SLOWDOWN): Likewise.
12342 (DR_GLOBAL_SLOWDOWN): Likewise.
12343 (DR_CONTROL_RESERVED): Likewise.
12344 (I386_DR_CONTROL_MASK): Likewise.
12345 (I386_DR_VACANT): Likewise.
12346 (I386_DR_LOCAL_ENABLE): Likewise.
12347 (I386_DR_GLOBAL_ENABLE): Likewise.
12348 (I386_DR_DISABLE): Likewise.
12349 (I386_DR_SET_RW_LEN): Likewise.
12350 (I386_DR_GET_RW_LEN): Likewise.
12351 (I386_DR_WATCH_HIT): Likewise.
12352 (i386_wp_op_t): Likewise.
12353 (i386_show_dr): Likewise.
12354 (i386_length_and_rw_bits): Likewise.
12355 (i386_insert_aligned_watchpoint): Likewise.
12356 (i386_remove_aligned_watchpoint): Likewise.
12357 (i386_handle_nonaligned_watchpoint): Likewise.
12358 i386_update_inferior_debug_regs(): Likewise.
12359 (i386_dr_insert_watchpoint): Likewise.
12360 (i386_dr_remove_watchpoint): Likewise.
12361 (i386_dr_region_ok_for_watchpoint): Likewise.
12362 (i386_dr_stopped_data_address): Likewise.
12363 (i386_dr_stopped_by_watchpoint): Likewise.
12364
8f26655c
GB
123652014-06-19 Gary Benson <gbenson@redhat.com>
12366
12367 * i386-low.c (i386_dr_show): Renamed to
12368 i386_show_dr and made static. All uses updated.
12369 (i386_dr_length_and_rw_bits): Renamed to
12370 i386_length_and_rw_bits and made static.
12371 All uses updated.
12372 (i386_dr_insert_aligned_watchpoint): Renamed to
12373 i386_insert_aligned_watchpoint and made static.
12374 All uses updated.
12375 (i386_dr_remove_aligned_watchpoint): Renamed to
12376 i386_remove_aligned_watchpoint and made static.
12377 All uses updated.
12378 (i386_dr_update_inferior_debug_regs): Renamed to
12379 i386_update_inferior_debug_regs and made static.
12380 All uses updated.
12381
b9228891
GB
123822014-06-18 Gary Benson <gbenson@redhat.com>
12383
5171def3
GB
12384 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12385 (i386_dr_low_can_set_control): Likewise.
12386 (i386_get_debug_register_length): Likewise.
12387 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12388 (i386_dr_low_can_set_control): Likewise.
12389 (i386_get_debug_register_length): Likewise.
12390
123912014-06-17 Gary Benson <gbenson@redhat.com>
12392
b9228891
GB
12393 * i386-low.h (i386-dregs.h): New include.
12394 (DR_FIRSTADDR): Now in i386-dregs.h.
12395 (DR_LASTADDR): Likewise.
12396 (DR_NADDR): Likewise.
12397 (DR_STATUS): Likewise.
12398 (DR_CONTROL): Likewise.
12399 (i386_debug_reg_state): Likewise.
12400 (i386_dr_insert_watchpoint): Likewise.
12401 (i386_dr_remove_watchpoint): Likewise.
12402 (i386_dr_region_ok_for_watchpoint): Likewise.
12403 (i386_dr_stopped_data_address): Likewise.
12404 (i386_dr_stopped_by_watchpoint): Likewise.
12405 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12406
4be83cc2
GB
124072014-06-18 Gary Benson <gbenson@redhat.com>
12408
12409 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12410 i386_dr_insert_watchpoint.
12411 (i386_low_remove_watchpoint): Renamed to
12412 i386_dr_remove_watchpoint.
12413 (i386_low_region_ok_for_watchpoint): Renamed to
12414 i386_dr_region_ok_for_watchpoint.
12415 (i386_low_stopped_data_address): Renamed to
12416 i386_dr_stopped_data_address.
12417 (i386_low_stopped_by_watchpoint): Renamed to
12418 i386_dr_stopped_by_watchpoint.
12419 * i386-low.c (i386_show_dr): Renamed to
12420 i386_dr_show and made nonstatic. All uses updated.
12421 (i386_length_and_rw_bits): Renamed to
12422 i386_dr_length_and_rw_bits and made nonstatic.
12423 All uses updated.
12424 (i386_insert_aligned_watchpoint): Renamed to
12425 i386_dr_insert_aligned_watchpoint and made nonstatic.
12426 All uses updated.
12427 (i386_remove_aligned_watchpoint): Renamed to
12428 i386_dr_remove_aligned_watchpoint and made nonstatic.
12429 All uses updated.
12430 (i386_update_inferior_debug_regs): Renamed to
12431 i386_dr_update_inferior_debug_regs and made nonstatic.
12432 All uses updated.
12433 (i386_low_insert_watchpoint): Renamed to
12434 i386_dr_insert_watchpoint. All uses updated.
12435 (i386_low_remove_watchpoint): Renamed to
12436 i386_dr_remove_watchpoint. All uses updated.
12437 (i386_low_region_ok_for_watchpoint): Renamed to
12438 i386_dr_region_ok_for_watchpoint. All uses updated.
12439 (i386_low_stopped_data_address): Renamed to
12440 i386_dr_stopped_data_address. All uses updated.
12441 (i386_low_stopped_by_watchpoint): Renamed to
12442 i386_dr_stopped_by_watchpoint. All uses updated.
12443
131aa0d4
GB
124442014-06-18 Gary Benson <gbenson@redhat.com>
12445
12446 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12447 (i386_dr_low_can_set_control): Likewise.
12448 (i386_insert_aligned_watchpoint): New check.
12449
d9305f7f
GB
124502014-06-18 Gary Benson <gbenson@redhat.com>
12451
12452 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12453 Renamed to state.
12454
e927c9fc
GB
124552014-06-18 Gary Benson <gbenson@redhat.com>
12456
12457 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12458 instead of fatal and error.
12459 (i386_handle_nonaligned_watchpoint): Likewise.
12460
1b6d4134
GB
124612014-06-18 Gary Benson <gbenson@redhat.com>
12462
12463 * i386-low.c (i386_get_debug_register_length): New macro.
12464 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12465 (i386_show_dr): Use debug_printf instead of fprintf. Use
12466 phex to format values.
12467
6e62758f
GB
124682014-06-18 Gary Benson <gbenson@redhat.com>
12469
12470 * i386-low.h: Comment changes.
12471 * i386-low.c: Likewise.
12472
fc6e2f03
GB
124732014-06-18 Gary Benson <gbenson@redhat.com>
12474
12475 * i386-low.c: Whitespace changes.
12476
f9d1eeed
TT
124772014-06-12 Tom Tromey <tromey@redhat.com>
12478
12479 * utils.c (freeargv): Remove.
12480
0b04e523
TT
124812014-06-12 Tom Tromey <tromey@redhat.com>
12482
12483 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12484 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12485 (parse_debug_format_options): Likewise.
12486 (gdbserver_usage): Likewise.
12487 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12488 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12489 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12490 against libiberty.
12491 ($(LIBGNU)): Depend on libiberty.
12492 (all-lib): Recurse into all subdirs.
12493 (install-only): Invoke "install" target in subdirs.
12494 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12495 targets.
12496 * configure: Rebuild.
12497 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12498 for vasprintf, vsnprintf, or gettimeofday.
12499 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12500 srv_tgtobj.
12501
270c9937
JB
125022014-06-05 Joel Brobecker <brobecker@adacore.com>
12503
12504 * development.sh: Delete.
12505 * Makefile.in (config.status): Adjust dependency on development.sh.
12506 * configure.ac: Adjust development.sh source call.
12507 * configure: Regenerate.
12508
0a261ed8
PA
125092014-06-02 Pedro Alves <palves@redhat.com>
12510
12511 * ax.c (gdb_free_agent_expr): New function.
12512 * ax.h (gdb_free_agent_expr): New declaration.
12513 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12514 list.
12515 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12516 static.
12517 (clear_breakpoint_conditions_and_commands): New function.
12518 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12519 (clear_breakpoint_conditions_and_commands): New declaration.
12520
e9dae05e
RR
125212014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12522
12523 * linux-aarch64-low.c (asm/ptrace.h): Include.
12524
5876f503
JK
125252014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12526
12527 Fix TLS access for -static -pthread.
12528 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12529 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12530 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12531
802e8e6d
PA
125322014-05-20 Pedro Alves <palves@redhat.com>
12533
12534 * linux-aarch64-low.c (aarch64_insert_point)
12535 (aarch64_remove_point): No longer check whether the type is
12536 supported here. Adjust to new interface.
12537 (the_low_target): Install aarch64_supports_z_point_type as
12538 supports_z_point_type method.
12539 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12540 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12541 instead of a Z packet char. Adjust.
12542 (arm_supports_z_point_type): New function.
12543 (arm_insert_point, arm_remove_point): Adjust to new interface.
12544 (the_low_target): Install arm_supports_z_point_type.
12545 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12546 (cris_insert_point, cris_remove_point): Adjust to new interface.
12547 Don't check whether the type is supported here.
12548 (the_low_target): Install cris_supports_z_point_type.
12549 * linux-low.c (linux_supports_z_point_type): New function.
12550 (linux_insert_point, linux_remove_point): Adjust to new interface.
12551 * linux-low.h (struct linux_target_ops) <insert_point,
12552 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12553 raw_breakpoint pointer parameter.
12554 <supports_z_point_type>: New method.
12555 * linux-mips-low.c (mips_supports_z_point_type): New function.
12556 (mips_insert_point, mips_remove_point): Adjust to new interface.
12557 Use mips_supports_z_point_type.
12558 (the_low_target): Install mips_supports_z_point_type.
12559 * linux-ppc-low.c (the_low_target): Install NULL as
12560 supports_z_point_type method.
12561 * linux-s390-low.c (the_low_target): Install NULL as
12562 supports_z_point_type method.
12563 * linux-sparc-low.c (the_low_target): Install NULL as
12564 supports_z_point_type method.
12565 * linux-x86-low.c (x86_supports_z_point_type): New function.
12566 (x86_insert_point): Adjust to new insert_point interface. Use
12567 insert_memory_breakpoint. Adjust to new
12568 i386_low_insert_watchpoint interface.
12569 (x86_remove_point): Adjust to remove_point interface. Use
12570 remove_memory_breakpoint. Adjust to new
12571 i386_low_remove_watchpoint interface.
12572 (the_low_target): Install x86_supports_z_point_type.
12573 * lynx-low.c (lynx_target_ops): Install NULL as
12574 supports_z_point_type callback.
12575 * nto-low.c (nto_supports_z_point_type): New.
12576 (nto_insert_point, nto_remove_point): Adjust to new interface.
12577 (nto_target_ops): Install nto_supports_z_point_type.
12578 * mem-break.c: Adjust intro comment.
12579 (struct raw_breakpoint) <raw_type, size>: New fields.
12580 <inserted>: Update comment.
12581 <shlib_disabled>: Delete field.
12582 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12583 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12584 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12585 (raw_bkpt_type_to_target_hw_bp_type): New function.
12586 (find_enabled_raw_code_breakpoint_at): New function.
12587 (find_raw_breakpoint_at): New type and size parameters. Use them.
12588 (insert_memory_breakpoint): New function, based off
12589 set_raw_breakpoint_at.
12590 (remove_memory_breakpoint): New function.
12591 (set_raw_breakpoint_at): Reimplement.
12592 (set_breakpoint): New, based on set_breakpoint_at.
12593 (set_breakpoint_at): Reimplement.
12594 (delete_raw_breakpoint): Go through the_target->remove_point
12595 instead of assuming memory breakpoints.
12596 (find_gdb_breakpoint_at): Delete.
12597 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12598 (find_gdb_breakpoint): New function.
12599 (set_gdb_breakpoint_at): Delete.
12600 (z_type_supported): New function.
12601 (set_gdb_breakpoint_1): New function, loosely based off
12602 set_gdb_breakpoint_at.
12603 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12604 (delete_gdb_breakpoint_at): Delete.
12605 (delete_gdb_breakpoint_1): New function, loosely based off
12606 delete_gdb_breakpoint_at.
12607 (delete_gdb_breakpoint): New function.
12608 (clear_gdb_breakpoint_conditions): Rename to ...
12609 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12610 breakpoint.
12611 (add_condition_to_breakpoint): Make static.
12612 (add_breakpoint_condition): Take a struct breakpoint pointer
12613 instead of an address. Adjust.
12614 (gdb_condition_true_at_breakpoint): Rename to ...
12615 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12616 z_type parameter.
12617 (gdb_condition_true_at_breakpoint): Reimplement.
12618 (add_breakpoint_commands): Take a struct breakpoint pointer
12619 instead of an address. Adjust.
12620 (gdb_no_commands_at_breakpoint): Rename to ...
12621 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12622 parameter. Return true if no breakpoint was found. Change debug
12623 output.
12624 (gdb_no_commands_at_breakpoint): Reimplement.
12625 (run_breakpoint_commands): Rename to ...
12626 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12627 and change return type to boolean.
12628 (run_breakpoint_commands): New function.
12629 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12630 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12631 breakpoint. Go through the_target->remove_point instead of
12632 assuming memory breakpoint.
12633 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12634 software and hardware breakpoints.
12635 (reinsert_raw_breakpoint): Go through the_target->insert_point
12636 instead of assuming memory breakpoint.
12637 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12638 software and hardware breakpoints.
12639 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12640 Check both software and hardware breakpoints.
12641 (validate_inserted_breakpoint): Assert the breakpoint is a
12642 software breakpoint. Set the inserted flag to -1 instead of
12643 setting shlib_disabled.
12644 (delete_disabled_breakpoints): Adjust.
12645 (validate_breakpoints): Only validate software breakpoints.
12646 Adjust to inserted flag change.
12647 (check_mem_read, check_mem_write): Skip breakpoint types other
12648 than software breakpoints. Adjust to inserted flag change.
12649 * mem-break.h (enum raw_bkpt_type): New enum.
12650 (raw_breakpoint, struct process_info): Forward declare.
12651 (Z_packet_to_target_hw_bp_type): Delete declaration.
12652 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12653 (set_gdb_breakpoint, delete_gdb_breakpoint)
12654 (clear_breakpoint_conditions): New declarations.
12655 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12656 (breakpoint_inserted_here): Update comment.
12657 (add_breakpoint_condition, add_breakpoint_commands): Replace
12658 address parameter with a breakpoint pointer parameter.
12659 (gdb_breakpoint_here): Update comment.
12660 (delete_gdb_breakpoint_at): Delete.
12661 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12662 * server.c (process_point_options): Take a struct breakpoint
12663 pointer instead of an address. Adjust.
12664 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12665 delete_gdb_breakpoint.
12666 * spu-low.c (spu_target_ops): Install NULL as
12667 supports_z_point_type method.
12668 * target.h: Include mem-break.h.
12669 (struct target_ops) <prepare_to_access_memory>: Update comment.
12670 <supports_z_point_type>: New field.
12671 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12672 instead of a char. Also take a raw breakpoint pointer.
12673 * win32-arm-low.c (the_low_target): Install NULL as
12674 supports_z_point_type.
12675 * win32-i386-low.c (i386_supports_z_point_type): New function.
12676 (i386_insert_point, i386_remove_point): Adjust to new interface.
12677 (the_low_target): Install i386_supports_z_point_type.
12678 * win32-low.c (win32_supports_z_point_type): New function.
12679 (win32_insert_point, win32_remove_point): Adjust to new interface.
12680 (win32_target_ops): Install win32_supports_z_point_type.
12681 * win32-low.h (struct win32_target_ops):
12682 <supports_z_point_type>: New method.
12683 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12684 instead of a char. Also take a raw breakpoint pointer.
12685
932539e3
PA
126862014-05-20 Pedro Alves <palves@redhat.com>
12687
12688 * mem-break.h: Include break-common.h.
12689 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12690 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12691 (Z_packet_to_target_hw_bp_type): New declaration.
12692 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12693 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12694 (Z_PACKET_ACCESS_WP): Delete macros.
12695 (Z_packet_to_hw_type): Delete function.
12696 * i386-low.h: Don't include break-common.h here.
12697 (Z_packet_to_hw_type): Delete declaration.
12698 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12699 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12700 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12701 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12702 * linux-aarch64-low.c: Don't include break-common.h here.
12703 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12704 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12705 (Z_packet_to_target_hw_bp_type): Delete function.
12706 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12707 function.
12708 (mips_insert_point, mips_remove_point): Use
12709 Z_packet_to_target_hw_bp_type.
12710
4ff0d3d8
PA
127112014-05-20 Pedro Alves <palves@redhat.com>
12712
12713 * linux-aarch64-low.c: Include break-common.h.
12714 (enum target_point_type): Delete.
12715 (Z_packet_to_point_type): Rename to ...
12716 (Z_packet_to_target_hw_bp_type): ... this, and return a
12717 target_hw_bp_type instead.
12718 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12719 instead of an enum target_point_type.
12720 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12721 breakpoint type.
12722 (aarch64_dr_state_insert_one_point)
12723 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12724 (aarch64_handle_aligned_watchpoint)
12725 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12726 Take an enum target_hw_bp_type instead of an enum
12727 target_point_type.
12728 (aarch64_supports_z_point_type): New function.
12729 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12730 use Z_packet_to_target_hw_bp_type.
12731
786dc519
JB
127322014-05-20 Joel Brobecker <brobecker@adacore.com>
12733
12734 * configure.ac: Only use -Werror by default when DEVELOPMENT
12735 is true.
12736 * configure: Regenerate.
12737
9e0aa64f
JK
127382014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12739
12740 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12741 * linux-x86-low.c (X86_64_USER_REGS): New.
12742 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12743
2b577b92
YQ
127442014-04-28 Yao Qi <yao@codesourcery.com>
12745
12746 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12747 name.
12748
94611da2
PA
127492014-04-25 Pedro Alves <palves@redhat.com>
12750
12751 PR server/16255
12752 * linux-low.c (linux_attach_fail_reason_string): New function.
12753 (linux_attach_lwp): Delete.
12754 (linux_attach_lwp_1): Rename to ...
12755 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12756 argument. Remove "initial" parameter. Return int instead of
12757 void. Don't error or warn here.
12758 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12759 failure to attach to the tgid. Call warning when failing to
12760 attach to an lwp.
12761 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12762 argument. Remove "initial" parameter. Return int instead of
12763 void. Don't error or warn here.
12764 (linux_attach_fail_reason_string): New declaration.
12765 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12766 interface change. Use linux_attach_fail_reason_string.
12767
01f9f808
MS
127682014-04-24 Michael Sturm <michael.sturm@mintel.com>
12769 Walfred Tedeschi <walfred.tedeschi@intel.com>
12770
12771 * Makefile.in: Added rules to handle new files
12772 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12773 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12774 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12775 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12776 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12777 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12778 x32-avx512-linux.o.
12779 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12780 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12781 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12782 i386/x32-avx512.xml.
12783 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12784 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12785 i386/x32-avx512-linux.xml.
12786 * i387-fp.c (num_avx512_k_registers): New constant for number
12787 of K registers.
12788 (num_avx512_zmmh_low_registers): New constant for number of
12789 lower ZMM registers (0-15).
12790 (num_avx512_zmmh_high_registers): New constant for number of
12791 higher ZMM registers (16-31).
12792 (num_avx512_ymmh_registers): New contant for number of higher
12793 YMM registers (ymm16-31 added by avx521 on x86_64).
12794 (num_avx512_xmm_registers): New constant for number of higher
12795 XMM registers (xmm16-31 added by AVX512 on x86_64).
12796 (struct i387_xsave): Add space for AVX512 registers.
12797 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12798 Add code to handle AVX512 registers.
12799 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12800 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12801 prototypei from generated file.
12802 (tdesc_amd64_avx512_linux): Likewise.
12803 (init_registers_x32_avx512_linux): Likewise.
12804 (tdesc_x32_avx512_linux): Likewise.
12805 (init_registers_i386_avx512_linux): Likewise.
12806 (tdesc_i386_avx512_linux): Likewise.
12807 (x86_64_regmap): Add AVX512 registers.
12808 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12809 mask.
12810 (initialize_low_arch): Add code to initialize AVX512 registers.
12811
51aa91f9
PA
128122014-04-23 Pedro Alves <palves@redhat.com>
12813
12814 * mem-break.c (find_gdb_breakpoint_at): Make static.
12815 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12816
a4165e94
PA
128172014-04-23 Pedro Alves <palves@redhat.com>
12818
12819 * i386-low.c: Don't include break-common.h here.
12820 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12821 prototype to take target_hw_bp_type as argument instead of a Z
12822 packet char.
12823 * i386-low.h: Include break-common.h here.
12824 (Z_packet_to_hw_type): Declare.
12825 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12826 prototypes.
12827 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12828 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12829 (x86_remove_point): Convert the packet number to a
12830 target_hw_bp_type before calling i386_low_remove_watchpoint.
12831 * win32-i386-low.c (i386_insert_point): Convert the packet number
12832 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12833 (i386_remove_point): Convert the packet number to a
12834 target_hw_bp_type before calling i386_low_remove_watchpoint.
12835
b8acf843
PA
128362014-04-23 Pedro Alves <palves@redhat.com>
12837
12838 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12839
d708bcd1
PA
128402014-04-10 Pedro Alves <palves@redhat.com>
12841
12842 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12843 Check if the condition or command is NULL before checking if the
12844 breakpoint is known. On success, return true.
12845 * mem-break.h (add_breakpoint_condition): Document return.
12846 (add_breakpoint_commands): Add describing comment.
12847 * server.c (skip_to_semicolon): New function.
12848 (process_point_options): Use it.
12849
2eec7d5b
PA
128502014-04-09 Pedro Alves <palves@redhat.com>
12851
12852 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12853 to lwpid_of.
12854
fa96cb38
PA
128552014-02-27 Pedro Alves <palves@redhat.com>
12856
12857 PR 12702
12858 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12859 macros.
12860 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12861 output.
12862 (last_thread_of_process_p): Take a PID argument instead of a
12863 thread pointer.
12864 (linux_wait_for_lwp): Delete.
12865 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12866 functions.
12867 (linux_low_filter_event): New function, party factored out from
12868 linux_wait_for_event.
12869 (linux_wait_for_event): Rename to ...
12870 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12871 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12872 sigsuspend. Check for zombie leaders.
12873 (linux_wait_for_event): Reimplement as wrapper around
12874 linux_wait_for_event_filtered.
12875 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12876 a normal or signal exit is seen, it's the whole process exiting.
12877 (wait_for_sigstop): No longer a for_each_inferior callback.
12878 Rewrite on top of linux_wait_for_event_filtered.
12879 (stop_all_lwps): Call wait_for_sigstop directly.
12880 * server.c (resume, handle_target_event): Handle
12881 TARGET_WAITKIND_NO_RESUMED.
12882
d763de10
JB
128832014-02-26 Joel Brobecker <brobecker@adacore.com>
12884
12885 * win32-low.c (psapi_get_dll_name,
12886 * win32_CreateToolhelp32Snapshot): Delete.
12887 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12888 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12889 Delete.
12890 (handle_load_dll): Add function description.
12891 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12892
850a0f76
JB
128932014-02-26 Joel Brobecker <brobecker@adacore.com>
12894
12895 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12896 Add comment.
12897 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12898 base address when calling win32_add_one_solib.
12899 (handle_load_dll): Delete local variable load_addr.
12900 Remove 0x1000 offset applied to DLL base address when calling
12901 win32_add_one_solib.
12902 (handle_unload_dll): Add comment.
12903
f25b3fc3
JB
129042014-02-26 Joel Brobecker <brobecker@adacore.com>
12905
12906 * win32-low.c (win32_add_all_dlls): Renames
12907 win32_ensure_ntdll_loaded. Rewrite function documentation.
12908 Adjust implementation to always load all DLLs.
12909 Add 0x1000 offset to DLL base address when calling
12910 win32_add_one_solib.
12911 (child_initialization_done): New static global.
12912 (do_initial_child_stuff): Set child_initialization_done to
12913 zero during child initialization, and 1 after. Replace call
12914 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12915 Add comment.
12916 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12917 (handle_unload_dll): Add function documentation.
12918 (get_child_debug_event): Ignore load and unload DLL events
12919 during child initialization.
12920
d86d4aaf
DE
129212014-02-20 Doug Evans <dje@google.com>
12922
3bc32da3 12923 Remove global all_lwps.
d86d4aaf
DE
12924 * inferiors.h (ptid_of): Move here from linux-low.h.
12925 (pid_of, lwpid_of): Ditto.
12926 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12927 parameter is a struct thread_info * now.
12928 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12929 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12930 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12931 directly.
12932 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12933 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12934 * linux-arm-low.c (update_registers_callback): Update, "entry"
12935 parameter is a struct thread_info * now.
12936 Fetch lwpid from current_inferior directly.
12937 (arm_insert_point): Pass &all_threads to find_inferior instead of
12938 &all_lwps.
12939 (arm_remove_point): Ditto.
12940 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12941 (arm_prepare_to_resume): Fetch pid from thread.
12942 (arm_read_description): Fetch lwpid from current_inferior directly.
12943 * linux-low.c (all_lwps): Delete.
12944 (delete_lwp): Delete call to remove_inferior.
12945 (handle_extended_wait): Fetch lwpid from thread.
12946 (add_lwp): Don't set lwp->entry.id. Remove call to
12947 add_inferior_to_list.
12948 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12949 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12950 (kill_one_lwp_callback): Ditto.
12951 (linux_kill): Don't dereference NULL pointer.
12952 Fetch ptid,lwpid from thread.
12953 (get_detach_signal): Fetch ptid from thread.
12954 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12955 Simplify call to regcache_invalidate_thread.
12956 (delete_lwp_callback): Update, "entry" parameter is a
12957 struct thread_info * now. Fetch pid from thread.
12958 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12959 (status_pending_p_callback): Update, "entry" parameter is a
12960 struct thread_info * now. Fetch ptid from thread.
12961 (find_lwp_pid): Update, "entry" parameter is a
12962 struct thread_info * now.
12963 (linux_wait_for_lwp): Fetch pid from thread.
12964 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12965 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12966 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12967 (dequeue_one_deferred_signal): Ditto.
12968 (cancel_breakpoint): Fetch ptid from current_inferior.
12969 (linux_wait_for_event): Pass &all_threads to find_inferior,
12970 not &all_lwps. Fetch ptid, lwpid from thread.
12971 (count_events_callback): Update, "entry" parameter is a
12972 struct thread_info * now.
12973 (select_singlestep_lwp_callback): Ditto.
12974 (select_event_lwp_callback): Ditto.
12975 (cancel_breakpoints_callback): Ditto.
12976 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12977 not &all_lwps.
12978 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12979 (unsuspend_one_lwp): Update, "entry" parameter is a
12980 struct thread_info * now.
12981 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12982 not &all_lwps.
12983 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12984 Fetch lwpid from thread, not lwp.
12985 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12986 Pass &all_threads to find_inferior, not &all_lwps.
12987 (send_sigstop): Fetch lwpid from thread, not lwp.
12988 (send_sigstop_callback): Update, "entry" parameter is a
12989 struct thread_info * now.
12990 (suspend_and_send_sigstop_callback): Ditto.
12991 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12992 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12993 struct thread_info * now.
12994 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12995 from thread, lwp.
12996 (lwp_running): Update, "entry" parameter is a
12997 struct thread_info * now.
12998 (stop_all_lwps): Fetch ptid from thread.
12999 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13000 (linux_resume_one_lwp): Fetch lwpid from thread.
13001 (linux_set_resume_request): Update, "entry" parameter is a
13002 struct thread_info * now. Fetch pid, lwpid from thread.
13003 (resume_status_pending_p): Update, "entry" parameter is a
13004 struct thread_info * now.
13005 (need_step_over_p): Ditto. Fetch lwpid from thread.
13006 (start_step_over): Fetch lwpid from thread.
13007 (linux_resume_one_thread): Update, "entry" parameter is a
13008 struct thread_info * now. Fetch lwpid from thread.
13009 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13010 (proceed_one_lwp): Update, "entry" parameter is a
13011 struct thread_info * now. Fetch lwpid from thread.
13012 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13013 struct thread_info * now.
13014 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13015 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13016 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13017 directly.
13018 (regsets_store_inferior_registers): Ditto.
13019 (fetch_register, store_register): Ditto.
13020 (linux_read_memory, linux_write_memory): Ditto.
13021 (linux_request_interrupt): Ditto.
13022 (linux_read_auxv): Ditto.
13023 (linux_xfer_siginfo): Ditto.
13024 (linux_qxfer_spu): Ditto.
13025 (linux_qxfer_libraries_svr4): Ditto.
13026 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13027 moved to inferiors.h.
13028 (get_lwp): Delete.
13029 (get_thread_lwp): Update.
13030 (struct lwp_info): Delete member "entry". Simplify comment for
13031 member "thread".
13032 (all_lwps): Delete.
13033 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13034 current_inferior directly.
13035 (update_watch_registers_callback): Update, "entry" parameter is a
13036 struct thread_info * now. Fetch pid from thread.
13037 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13038 (mips_insert_point): Fetch lwpid from current_inferior.
13039 Pass &all_threads to find_inferior, not &all_lwps.
13040 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13041 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13042 directly.
13043 (mips_stopped_data_address): Ditto.
13044 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13045 directly.
13046 * linux-tile-low.c (tile_arch_setup): Ditto.
13047 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13048 (update_debug_registers_callback): Update, "entry" parameter is a
13049 struct thread_info * now. Fetch pid from thread.
13050 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13051 Pass &all_threads to find_inferior, not &all_lwps.
13052 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13053 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13054 Pass &all_threads to find_inferior, not &all_lwps.
13055 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13056 (i386_dr_low_get_status): Ditto.
13057 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13058 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13059 (x86_linux_read_description): Ditto.
13060 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13061
3b8361aa
DE
130622014-02-20 Doug Evans <dje@google.com>
13063
13064 * inferiors.c (get_first_inferior): Fix buglet.
13065
f7667f0d
DE
130662014-02-19 Doug Evans <dje@google.com>
13067
13068 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13069 * inferiors.c (add_thread): Change result type to struct thread_info *.
13070 All callers updated.
13071 (add_lwp): Call add_thread here instead of in callers.
13072 All callers updated.
13073 * linux-low.h (get_lwp_thread): Rewrite.
13074 (struct lwp_info): New member "thread".
13075
b3312d80
DE
130762014-02-19 Doug Evans <dje@google.com>
13077
13078 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13079 All callers updated.
13080
ecc6f45c
DE
130812014-02-19 Doug Evans <dje@google.com>
13082
13083 * inferiors.c (add_thread): Fix whitespace.
13084
649ebbca
DE
130852014-02-19 Doug Evans <dje@google.com>
13086
13087 * dll.c (clear_dlls): Replace accessing list implemention details
13088 with API function.
13089 * gdbthread.h (get_first_thread): Declare.
13090 * inferiors.c (for_each_inferior_with_data): New function.
13091 (get_first_thread): New function.
13092 (find_thread_ptid): Simplify.
13093 (get_first_inferior): New function.
13094 (clear_list): Delete.
13095 (one_inferior_p): New function.
13096 (clear_inferior_list): New function.
13097 (clear_inferiors): Update.
13098 * inferiors.h (for_each_inferior_with_data): Declare.
13099 (clear_inferior_list): Declare.
13100 (one_inferior_p): Declare.
13101 (get_first_inferior): Declare.
13102 * linux-low.c (linux_wait_for_event): Replace accessing list
13103 implemention details with API function.
13104 * server.c (target_running): Ditto.
13105 (accumulate_file_name_length): New function.
13106 (emit_dll_description): New function.
13107 (handle_qxfer_libraries): Replace accessing list implemention
13108 details with API function.
13109 (handle_qxfer_threads_worker): New function.
13110 (handle_qxfer_threads_proper): Replace accessing list implemention
13111 details with API function.
13112 (handle_query): Ditto.
13113 (visit_actioned_threads_callback_ftype): New typedef.
13114 (visit_actioned_threads_data): New struct.
13115 (visit_actioned_threads): Rewrite to be find_inferior callback.
13116 (resume): Call find_inferior.
13117 (handle_status): Replace accessing list implemention
13118 details with API function.
13119 (process_serial_event): Replace accessing list implemention details
13120 with API function.
13121 * target.c (set_desired_inferior): Replace accessing list implemention
13122 details with API function.
13123 * tracepoint.c (same_process_p): New function.
13124 (gdb_agent_about_to_close): Replace accessing list implemention
13125 details with API function.
13126 * win32-low.c (child_delete_thread): Replace accessing list
13127 implemention details with API function.
13128 (match_dll_by_basename): New function.
13129 (dll_is_loaded_by_basename): New function.
13130 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13131 details call to dll_is_loaded_by_basename.
13132
80894984
DE
131332014-02-19 Doug Evans <dje@google.com>
13134
13135 * dll.h (struct dll_info): Add comment.
13136 * gdbthread.h (struct thread_info): Add comment.
13137 (current_ptid): Simplify.
13138 * inferiors.c (add_process): Update.
13139 (remove_process): Update.
13140 * inferiors.h (struct process_info): Rename member "head" to "entry".
13141 * linux-low.c (delete_lwp): Update.
13142 (add_lwp): Update.
13143 (last_thread_of_process_p): Update.
13144 (kill_one_lwp_callback, linux_kill): Update.
13145 (status_pending_p_callback): Update.
13146 (wait_for_sigstop): Update. Simplify read of ptid.
13147 (start_step_over): Update.
13148 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13149 (get_lwp_thread): Update.
13150 (struct lwp_info): Rename member "head" to "entry".
13151 * regcache.h (inferior_list_entry): Delete.
13152 * server.c (kill_inferior_callback): Update.
13153 (detach_or_kill_inferior_callback): Update.
13154 (print_started_pid): Update.
13155 (print_attached_pid): Update.
13156 (process_serial_event): Simplify read of ptid.
13157 * thread-db.c (thread_db_create_event): Update.
13158 (thread_db_get_tls_address): Update.
13159 * win32-low.c (current_inferior_ptid): Simplify.
13160
46917d26
TT
131612014-02-19 Tom Tromey <tromey@redhat.com>
13162
13163 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13164 argument.
13165 (target_supports_btrace): Update.
13166
0759a81e
YQ
131672014-02-14 Yao Qi <yao@codesourcery.com>
13168
13169 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13170 (rsp-low-ipa.o): New target.
13171
a7191e8b
TT
131722014-02-12 Tom Tromey <tromey@redhat.com>
13173
13174 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13175 convert_ascii_to_int.
13176 * regcache.c (registers_to_string): Likewise.
13177 * remote-utils.c (decode_M_packet): Likewise.
13178 * server.c (process_serial_event): Likewise.
13179
ff0e980e
TT
131802014-02-12 Tom Tromey <tromey@redhat.com>
13181
13182 * server.c (handle_query, handle_v_run): Use hex2bin, not
13183 unhexify.
13184 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13185
e9371aff
TT
131862014-02-12 Tom Tromey <tromey@redhat.com>
13187
13188 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13189 convert_int_to_ascii.
13190 * regcache.c (registers_to_string, collect_register_as_string):
13191 Likewise.
13192 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13193 Likewise.
13194 * server.c (process_serial_event): Likewise.
13195 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13196 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13197
971dc0b8
TT
131982014-02-12 Tom Tromey <tromey@redhat.com>
13199
13200 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13201 bin2hex, not hexify.
13202 * tracepoint.c (cmd_qtstatus): Likewise.
13203
0a822afb
TT
132042014-02-12 Tom Tromey <tromey@redhat.com>
13205
13206 * remote-utils.c (monitor_output): Pass explicit length to
13207 hexify.
13208
9c3d6531
TT
132092014-02-12 Tom Tromey <tromey@redhat.com>
13210
13211 * tracepoint.c: Include rsp-low.h.
13212 * server.c: Include rsp-low.h.
13213 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13214 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13215 declare.
13216 * remote-utils.c: Include rsp-low.h.
13217 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13218 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13219 (convert_int_to_ascii, convert_ascii_to_int): Move to
13220 common/rsp-low.c.
13221 * regcache.c: Include rsp-low.h.
13222 * ax.c: Include rsp-low.h.
13223 * Makefile.in (SFILES): Add common/rsp-low.c.
13224 (OBS): Add rsp-low.o.
13225 (rsp-low.o): New target.
13226
01fd3ea5
TT
132272014-02-12 Tom Tromey <tromey@redhat.com>
13228
13229 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13230 Include print-utils.h.
13231 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13232 (plongest, thirty_two, phex_nz): Remove.
13233 * Makefile.in (SFILES): Add common/print-utils.c.
13234 (OBS): Add print-utils.o.
13235 (print-utils-ipa.o): New target.
13236 (print-utils.o): New target.
13237 (IPA_OBJS): Add print-utils-ipa.o.
13238
e99dc820
TT
132392014-02-06 Tom Tromey <tromey@redhat.com>
13240
13241 * Makefile.in (SFILES): Fix indentation.
13242
ee1e2d4f
DE
132432014-02-05 Doug Evans <dje@google.com>
13244
13245 * linux-low.c (linux_wait_for_event): Improve comment.
13246 (linux_wait_1): Keep current_inferior in sync with event_child.
13247
f5a02773
DE
132482014-01-22 Doug Evans <dje@google.com>
13249
13250 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13251
87ce2a04
DE
132522014-01-22 Doug Evans <dje@google.com>
13253
13254 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13255 * configure: Regenerate.
13256 * config.in: Regenerate.
13257 * Makefile.in (SFILES): Add debug.c.
13258 (OBS): Add debug.o.
13259 * debug.c: New file.
13260 * debug.h: New file.
13261 * linux-aarch64-low.c (*): Update all debugging printfs to use
13262 debug_printf instead of fprintf.
13263 * linux-arm-low.c (*): Ditto.
13264 * linux-cris-low.c (*): Ditto.
13265 * linux-crisv32-low.c (*): Ditto.
13266 * linux-m32r-low.c (*): Ditto.
13267 * linux-sparc-low.c (*): Ditto.
13268 * linux-x86.c (*): Ditto.
13269 * linux-low.c (*): Ditto.
13270 (linux_wait_1): Add calls to debug_enter, debug_exit.
13271 (linux_wait): Remove redundant debugging printf.
13272 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13273 (linux_resume, unstop_all_lwps): Ditto.
13274 * mem-break.c (*): Update all debugging printfs to use
13275 debug_printf instead of fprintf.
13276 * remote-utils.c (*): Ditto.
13277 * thread-db.c (*): Ditto.
13278 * server.c #include <ctype.h>, "gdb_vecs.h".
13279 (debug_threads): Moved to debug.c.
13280 (*): Update all debugging printfs to use debug_printf instead of
13281 fprintf.
13282 (start_inferior): Replace call to fflush with call to debug_flush.
13283 (monitor_show_help): Mention set debug-format.
13284 (parse_debug_format_options): New function.
13285 (handle_monitor_command): Handle "monitor set debug-format".
13286 (gdbserver_usage): Mention --debug-format.
13287 (main): Parse --debug-format.
13288 * server.h (debug_threads): Declaration moved to debug.h.
13289 #include "debug.h".
13290 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13291 trace_debug_1 that uses debug_printf.
13292 (tracepoint_look_up_symbols): Update all debugging printfs to use
13293 debug_printf instead of fprintf.
13294
e671835b
BS
132952014-01-20 Baruch Siach <baruch@tkos.co.il>
13296
13297 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13298 sys/ptrace.h.
13299
b5737fa9
PA
133002014-01-17 Pedro Alves <palves@redhat.com>
13301
ea38d2a9 13302 PR build/16445
c7faa97a
PA
13303 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13304 defined after including gdb_proc_service.h.
b5737fa9 13305
40ed484e
DE
133062014-01-16 Doug Evans <dje@google.com>
13307
13308 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13309 (match_dll): Use it.
13310
969c39fb
MM
133112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13312
13313 * target.h (target_ops) <read_btrace>: Change parameters and
13314 return type to allow error reporting.
13315 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13316 trace reading errors on.
13317 * linux-low.c (linux_low_read_btrace): Pass trace reading
13318 errors on.
13319 (linux_low_disable_btrace): New.
13320
ab7f45ba
DE
133212014-01-15 Doug Evans <dje@google.com>
13322
13323 * inferiors.c (thread_id_to_gdb_id): Delete.
13324 * inferiors.h (thread_id_to_gdb_id): Delete.
13325
66af0f44
EZ
133262014-01-13 Eli Zaretskii <eliz@gnu.org>
13327
13328 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13329 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13330 versions.
13331
9939e131
PA
133322014-01-08 Pedro Alves <palves@redhat.com>
13333
13334 * server.c (handle_status): Don't discard previous queued stop
13335 replies or thread's pending status here.
13336 (main) <disconnection>: Do it here instead.
13337
b7ea362b
PA
133382014-01-08 Pedro Alves <palves@redhat.com>
13339
13340 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13341 * server.c (visit_actioned_threads, handle_pending_status): New
13342 function.
13343 (handle_v_cont): Factor out parts to ...
13344 (resume): ... this new function. If in all-stop, and a thread
13345 being resumed has a pending status, report it without actually
13346 resuming.
13347 (myresume): Adjust to use the new 'resume' function.
13348 (clear_pending_status_callback, set_pending_status_callback)
13349 (find_status_pending_thread_callback): New functions.
13350 (handle_status): Handle the case of multiple threads having
13351 interesting statuses to report. Report threads' real last signal
13352 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13353 with an interesting thread to report the status for, instead of
13354 always reporting the status of the first thread.
13355
28498c42
JB
133562014-01-01 Joel Brobecker <brobecker@adacore.com>
13357
13358 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13359 * gdbreplay.c (gdbreplay_version): Likewise.
13360
f45c82da
YZ
133612013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13362
13363 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13364 iov.iov_len with the real length in use.
13365
379a5e2d
JB
133662013-12-13 Joel Brobecker <brobecker@adacore.com>
13367
13368 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13369 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13370 for all targets that use win32-low.c.
13371 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13372 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13373
4210d83e
PA
133742013-12-13 Pedro Alves <palves@redhat.com>
13375
13376 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13377 if equal to TARGET_WAITKIND_LOADED.
13378 * win32-low.c (cached_status): New static global.
13379 (win32_wait): Add declaration.
13380 (do_initial_child_stuff): Flush all initial pending debug events
13381 up to the initial breakpoint.
13382 (win32_wait): If CACHED_STATUS was set, return that instead
13383 of doing a real wait. Remove the code resuming the execution
13384 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13385 during the initial phase. Also remove the code changing
13386 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13387 TARGET_WAITKIND_STOPPED.
13388
e7f0d979
YQ
133892013-12-11 Yao Qi <yao@codesourcery.com>
13390
13391 * notif.c (handle_notif_ack): Return 0 if no notification
13392 matches.
13393
ebcf782c
DE
133942013-11-20 Doug Evans <dje@google.com>
13395
13396 * linux-low.c (linux_set_resume_request): Fix comment.
13397
20ad9378
DE
133982013-11-20 Doug Evans <dje@google.com>
13399
13400 * linux-low.c (resume_status_pending_p): Tweak comment.
13401
a196ebeb
WT
134022013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13403
13404 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13405 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13406 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13407 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13408 (srv_amd64_regobj): Add amd64-mpx.o.
13409 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13410 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13411 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13412 * i387-fp.c (num_pl_bnd_register) Added constant.
13413 (num_pl_bnd_cfg_registers) Added constant.
13414 (struct i387_xsave) Added reserved area and MPX fields.
13415 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13416 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13417 function.
13418 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13419 (init_registers_amd64_mpx_linux): Declare new function.
13420 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13421 (x86_64_regmap): Add MPX registers.
13422 (x86_linux_read_description): Add MPX case.
13423 (initialize_low_arch): Initialize MPX targets.
13424
0080a2f6
TT
134252013-11-18 Tom Tromey <tromey@redhat.com>
13426
13427 * configure: Rebuild.
13428 * configure.ac: Don't check for stdlib.h.
13429 * gdbreplay.c: Unconditionally include stdlib.h.
13430
2978b111
TT
134312013-11-18 Tom Tromey <tromey@redhat.com>
13432
13433 * config.in: Rebuild.
13434 * configure: Rebuild.
13435 * configure.ac: Don't use AC_HEADER_DIRENT.
13436
a3d08894
TT
134372013-11-18 Tom Tromey <tromey@redhat.com>
13438
13439 * server.h: Don't check HAVE_STRING_H.
13440 * gdbreplay.c: Don't check HAVE_STRING_H.
13441 * configure: Rebuild.
13442
0a5dd17d
TT
134432013-11-18 Tom Tromey <tromey@redhat.com>
13444
13445 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13446 LIBGNU.
13447
1bd2f0ba
TT
134482013-11-08 Tom Tromey <tromey@redhat.com>
13449
13450 * configure, config.in: Rebuild.
13451 * configure.ac: Remove unused configury.
13452
3266f10b
TT
134532013-11-08 Tom Tromey <tromey@redhat.com>
13454
13455 * acinclude.m4: Include common.m4, codeset.m4.
13456 * configure, config.in: Rebuild.
13457 * configure.ac: Use GDB_AC_COMMON.
13458
6682d959
AA
134592013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13460
13461 * linux-s390-low.c (HWCAP_S390_TE): New define.
13462 (s390_arch_setup): Consider the TE field in the HWCAP for
13463 determining 'have_regset_tdb'.
13464
fd0a4d76
SDJ
134652013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13466
13467 PR gdb/16014
13468 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13469 call to sizeof.
13470
1a3d890b
PA
134712013-10-02 Pedro Alves <palves@redhat.com>
13472
13473 * server.c (process_serial_event): Don't output "GDBserver
13474 exiting" if GDB is connected through stdio.
13475 * target.c (mywait): Likewise, be silent if GDB is connected
13476 through stdio.
13477
97ad4581
JB
134782013-10-01 Joel Brobecker <brobecker@adacore.com>
13479
13480 * lynx-low.c (lynx_add_threads_after_attach): New function.
13481 (lynx_attach): Remove call to add_thread. Add call to
13482 lynx_add_threads_after_attach instead.
13483
5b4e221c
MF
134842013-09-28 Mike Frysinger <vapier@gentoo.org>
13485
13486 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13487 * config.in, configure: Regenerated.
13488
ee47b2f8
YQ
134892013-09-18 Yao Qi <yao@codesourcery.com>
13490
13491 PR server/15959
13492 * server.c (start_inferior): Clear 'resume_info'.
13493
d6707650 134942013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13495
d6707650
JW
13496 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13497 for each register.
13498
9243dd0e 134992013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13500
9243dd0e
JW
13501 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13502 linux-tile-low.o to srv_tgtobj.
13503
c623a6ef
WN
135042013-09-16 Will Newton <will.newton@linaro.org>
13505
13506 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13507 out regs.
13508
fb71d39e
PA
135092013-09-06 Pedro Alves <palves@redhat.com>
13510
13511 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13512 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13513 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13514 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13515 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13516 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13517
8e7e9910
PA
135182013-09-06 Pedro Alves <palves@redhat.com>
13519
13520 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13521 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13522
7c3a12ca
PA
135232013-09-06 Pedro Alves <palves@redhat.com>
13524
13525 * linux-amd64-ipa.c: Include tracepoint.h.
13526 * linux-i386-ipa.c: Include tracepoint.h.
13527
8eb3d7b6
RW
135282013-09-06 Ricard Wanderlof <ricardw@axis.com>
13529
13530 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13531 (ps_get_thread_area): New function.
13532
eddddb9d
RW
135332013-09-06 Ricard Wanderlof <ricardw@axis.com>
13534
13535 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13536 (initialize_low_arch): Call init_registers_crisv32 rather than
13537 init_register_crisv32.
13538
533b0600
PA
135392013-09-05 Pedro Alves <palves@redhat.com>
13540
13541 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13542 to ...
13543 * hostio.h: ... this new file.
13544 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13545 win32-low.c: Include hostio.h.
13546
0ce3d3b5
PA
135472013-09-05 Pedro Alves <palves@redhat.com>
13548
13549 * server.h (gdb_client_data, handler_func, callback_handler_func)
13550 (delete_file_handler, add_file_handler, append_callback_event)
13551 (delete_callback_event, start_event_loop, initialize_event_loop):
13552 Move to event-loop.h and include it.
13553 * event-loop.h: New file.
13554
799cdc37
PA
135552013-09-05 Pedro Alves <palves@redhat.com>
13556
13557 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13558 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13559 (loaded_dll, unloaded_dll): Move to ...
13560 * dll.h: ... this new file.
13561 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13562
6a6bbd9d
PA
135632013-09-05 Pedro Alves <palves@redhat.com>
13564
13565 * server.h (current_process, get_thread_process, all_processes)
13566 (add_inferior_to_list, for_each_inferior, current_inferior)
13567 (remove_inferior, add_process, remove_process, find_process_pid)
13568 (have_started_inferiors_p, have_attached_inferiors_p)
13569 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13570 (clear_inferiors, find_inferior, find_inferior_id)
13571 (inferior_target_data, set_inferior_target_data)
13572 (inferior_regcache_data, set_inferior_regcache_data): Move to
13573 inferiors.h, and include it.
13574 * inferiors.h: New file.
13575
f699aaba
PA
135762013-09-05 Pedro Alves <palves@redhat.com>
13577
13578 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13579 Move ...
72f4393d 13580 * ax.h: ... here.
f699aaba 13581
c144c7a0
PA
135822013-09-05 Pedro Alves <palves@redhat.com>
13583
13584 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13585 tracepoint.h.
13586 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13587 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13588 (handle_tracepoint_general_set, handle_tracepoint_query)
13589 (tracepoint_finished_step, tracepoint_was_hit)
13590 (release_while_stepping_state_list, current_traceframe)
13591 (in_readonly_region, traceframe_read_mem)
13592 (fetch_traceframe_registers, traceframe_read_sdata)
13593 (traceframe_read_info, struct fast_tpoint_collect_status)
13594 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13595 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13596 (supply_fast_tracepoint_registers)
13597 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13598 (ipa_tdesc, claim_trampoline_space)
13599 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13600 (agent_mem_read, agent_get_trace_state_variable_value)
13601 (agent_set_trace_state_variable_value, agent_tsv_read)
13602 (agent_mem_read_string, get_raw_reg_func_addr)
13603 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13604 * tracepoint.h: ... this new file.
13605
ff42e6ab
PA
136062013-09-05 Pedro Alves <palves@redhat.com>
13607
13608 * server.h (perror_with_name, error, fatal, warning, paddress)
13609 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13610 include it.
13611 * utils.h: New file.
13612
541af0f4
PA
136132013-09-05 Pedro Alves <palves@redhat.com>
13614
13615 * server.h (remote_debug, noack_mode, transport_is_reliable)
13616 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13617 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13618 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13619 (write_enn, initialize_async_io, enable_async_io)
13620 (disable_async_io, check_remote_input_interrupt_request)
13621 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13622 (dead_thread_notify, prepare_resume_reply)
13623 (decode_address_to_semicolon, decode_address, decode_m_packet)
13624 (decode_M_packet, decode_X_packet, decode_xfer_write)
13625 (decode_search_memory_packet, unhexify, hexify)
13626 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13627 (look_up_one_symbol, relocate_instruction)
13628 (monitor_output): Move to remote-utils.h, and include it.
13629 * remote-utils.h: New file.
13630
eebdf26b
PA
136312013-09-05 Pedro Alves <palves@redhat.com>
13632
13633 * server.h (_): Delete.
13634
3aafd2ff
PA
136352013-09-02 Pedro Alves <palves@redhat.com>
13636
13637 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13638 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13639 allocated.
13640 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13641
cee83bcb
PM
136422013-09-02 Pierre Muller <muller@sourceware.org>
13643
13644 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13645 or WriteProcessMemory complete successfully and handle
13646 ERROR_PARTIAL_COPY error.
13647
9a13b2fa
PA
136482013-09-02 Pedro Alves <palves@redhat.com>
13649
13650 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13651 error instead of EIO.
13652
602e3198
JK
136532013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13654
13655 PR server/15604
13656 * linux-low.c: Include filestuff.h.
13657 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13658 * lynx-low.c: Include filestuff.h.
13659 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13660 * server.c: Include filestuff.h.
13661 (main): Call notice_open_fds.
13662 * spu-low.c: Include filestuff.h.
13663 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13664
96d7229d
LM
136652013-08-22 Luis Machado <lgustavo@codesourcery.com>
13666
13667 * Makefile.in: Explain why ../target and ../nat are not
13668 listed as include file search paths.
13669 (linux-waitpid.o): New object file rule.
13670 * configure.srv (srv_native_linux_obj): New variable.
13671 Replace all occurrences of linux native object files with
13672 $srv_native_linux_obj.
13673 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13674 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13675 (linux_enable_event_reporting): Remove declaration.
13676 (my_waitpid): Moved to common/linux-waitpid.c.
13677 (linux_wait_for_event): Pass ptid when calling
13678 linux_enable_event_reporting.
13679 (linux_supports_tracefork_flag): Remove.
13680 (linux_enable_event_reporting): Likewise.
13681 (linux_tracefork_grandchild): Remove.
13682 (STACK_SIZE): Moved to common/linux-ptrace.c.
13683 (linux_tracefork_child): Remove.
13684 (linux_test_for_tracefork): Remove.
13685 (linux_look_up_symbols): Call linux_supports_traceclone.
13686 (initialize_low): Remove call to linux_test_for_tracefork.
13687 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13688 common/linux-ptrace.h.
13689 (PTRACE_TYPE_ARG4): Likewise.
13690 Include linux-ptrace.h.
13691
32940073
PA
136922013-08-21 Pedro Alves <palves@redhat.com>
13693
13694 * config.in: Renegerate.
13695
33b60d58 136962013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13697
33b60d58
LM
13698 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13699 (SFILES): Remove $(srcdir)/common/target-common.c and
13700 add $(srcdir)/target/waitstatus.c.
13701 (OBS): Remove target-common.o and add waitstatus.o.
13702 (server_h): Remove $(srcdir)/../common/target-common.h and
13703 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13704 and $(srcdir)/../target/waitstatus.h.
13705 (target-common.o): Remove.
13706 (waitstatus.o): New target object file.
13707 * target.h: Do not include target-common.h and
13708 include target/resume.h, target/wait.h and
13709 target/waitstatus.h.
13710
b8e1b30e
LM
137112013-08-13 Luis Machado <lgustavo@codesourcery.com>
13712
13713 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13714 to PTRACE_TYPE_ARG3.
13715 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13716 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13717 PTRACE_TYPE_ARG4.
13718 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13719 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13720
7a60ad40
YQ
137212013-07-27 Jie Zhang <jie@codesourcery.com>
13722 Daniel Jacobowitz <dan@codesourcery.com>
13723 Yao Qi <yao@codesourcery.com>
13724
13725 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13726 (mips-linux-watch.o): New rule.
13727 (mips_linux_watch_h): New variable.
13728 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13729 srv_tgtobj.
13730 * linux-mips-low.c: Include mips-linux-watch.h.
13731 (struct arch_process_info, struct arch_lwp_info): New.
13732 (update_watch_registers_callback): New function.
13733 (mips_linux_new_process, mips_linux_new_thread) New functions.
13734 (mips_linux_prepare_to_resume, mips_insert_point): New
13735 functions.
13736 (mips_remove_point, mips_stopped_by_watchpoint): New
13737 functions.
13738 (rsp_bp_type_to_target_hw_bp_type): New function.
13739 (mips_stopped_data_address): New function.
13740 (the_low_target): Add watchpoint support functions.
13741
de6f69ad
YQ
137422013-07-27 Yao Qi <yao@codesourcery.com>
13743
13744 * i386-low.c: Include break-common.h.
13745 (enum target_hw_bp_type): Remove.
13746
3360c0bf
LM
137472013-07-24 Luis Machado <lgustavo@codesourcery.com>
13748
13749 * Makefile.in (SFILES): /common/target-common.c.
13750 (OBS): Add target-common.o.
13751 (server_h): Add $(srcdir)/../common/target-common.h.
13752 (target-common.o): New target.
13753 * server.c (queue_stop_reply_callback): Free
13754 status string after use.
13755 * target.c (target_waitstatus_to_string): Remove.
13756 * target.h: Include target-common.h.
13757 (resume_kind): Likewise.
13758 (target_waitkind): Likewise.
13759 (target_waitstatus): Likewise.
13760 (TARGET_WNOHANG): Likewise.
13761
bd885420
YQ
137622013-07-04 Yao Qi <yao@codesourcery.com>
13763
13764 * Makefile.in (host_alias): Use @host_noncanonical@.
13765 (target_alias): Use @target_noncanonical@.
13766 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13767 ACX_NONCANONICAL_HOST.
13768 * configure: Regenerated.
13769
13770 Revert:
13771 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13772
13773 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13774 * configure: Rebuild.
13775 * Makefile.in (version_host, version_target): Get from configure.
13776 (version.c): Use $(version_host) and $(version_target).
13777
17ef446e
PA
137782013-07-03 Pedro Alves <palves@redhat.com>
13779
13780 * Makefile.in (config.status): Depend on development.sh.
13781 * acinclude.m4: Include libmcheck.m4.
13782 * configure: Regenerate.
13783
7a9a7487
MG
137842013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13785
13786 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13787 attribute inside the parentheses.
13788 (winapi_DebugSetProcessKillOnExit): Ditto.
13789 (winapi_DebugBreakProcess): Ditto.
13790 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13791
49b64de6
MG
137922013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13793
13794 * notif.h (notif_event): Add a dummy member to avoid compiler
13795 errors.
13796
d5749ee7
PA
137972013-07-01 Pedro Alves <palves@redhat.com>
13798
13799 * hostio.c (HOSTIO_PATH_MAX): Define.
13800 (require_filename, handle_open, handle_unlink, handle_readlink):
13801 Use it.
13802
d8d2a3ee
PA
138032013-07-01 Pedro Alves <palves@redhat.com>
13804
13805 * server.h: Include "pathmax.h".
13806 * linux-low.c: Don't include sys/param.h.
13807 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13808 MAXPATHLEN.
13809 * win32-low.c: Don't include sys/param.h.
13810 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13811
bc7dea8d
PA
138122013-07-01 Pedro Alves <palves@redhat.com>
13813
13814 * event-loop.c: Don't check HAVE_UNISTD_H before including
13815 <unistd.h>.
13816 * gdbreplay.c: Likewise.
13817 * remote-utils.c: Likewise.
13818 * server.c: Likewise.
13819 * configure.ac: Don't check for unistd.h.
13820 * configure: Regenerate.
13821
d6c2da54
TT
138222013-06-28 Tom Tromey <tromey@redhat.com>
13823
13824 * Makefile.in (version.c): Use version.in, not
13825 common/version.in.
13826
257b6bec
MG
138272013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13828
13829 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13830 * configure: Rebuild.
13831 * Makefile.in (version_host, version_target): Get from configure.
13832 (version.c): Use $(version_host) and $(version_target).
13833
86ebe149
DK
138342013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13835
13836 Fix trace-status to output user name without trailing colon.
13837 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13838
f30aa5af
DK
138392013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13840
13841 Fix trace-status to output proper start-time and stop-time.
13842 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13843 output start time and stop time in hex as gdb expects.
13844
28a93511
YQ
138452013-06-26 Pedro Alves <pedro@codesourcery.com>
13846
13847 * tracepoint.c (build_traceframe_info_xml): Output trace state
13848 variables present in the trace buffer.
13849
01208463
TT
138502013-06-24 Tom Tromey <tromey@redhat.com>
13851
13852 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13853 create-version.sh.
13854 (version.o): Remove.
13855 * gdbreplay.c: Include version.h.
13856 (version, host_name): Don't declare.
13857 * server.h: Include version.h.
13858 (version, host_name): Don't declare.
13859
760256f9
PA
138602013-06-12 Pedro Alves <palves@redhat.com>
13861
13862 * linux-x86-low.c (linux_is_elf64): Delete global.
13863 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13864 with local linux_pid_exe_is_elf_64_file use.
13865
030031ee
PA
138662013-06-11 Pedro Alves <palves@redhat.com>
13867
13868 * linux-low.c (regset_disabled, disable_regset): New functions.
13869 (regsets_fetch_inferior_registers)
13870 (regsets_store_inferior_registers): Use them.
13871 (initialize_regsets_info); Don't allocate the disabled_regsets
13872 array here.
13873 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13874 comment.
13875
5da6eb0a
PA
138762013-06-11 Pedro Alves <palves@redhat.com>
13877
13878 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13879 xmalloc.
13880
7e5aaa09
PA
138812013-06-11 Pedro Alves <palves@redhat.com>
13882
13883 * linux-x86-low.c (initialize_low_arch): Call
13884 init_registers_x32_avx_linux.
13885
d878444c
JK
138862013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13887
13888 Fix compatibility with Android Bionic.
13889 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13890 it is not empty.
13891
3aee8918
PA
138922013-06-07 Pedro Alves <palves@redhat.com>
13893
5f2b57b5 13894 PR server/14823
3aee8918
PA
13895 * Makefile.in (OBS): Add tdesc.o.
13896 (IPA_OBJS): Add tdesc-ipa.o.
13897 (tdesc-ipa.o): New rule.
13898 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13899 interface.
13900 * linux-low.c (new_inferior): Delete.
13901 (disabled_regsets, num_regsets): Delete.
13902 (linux_add_process): Adjust to set the new per-process
13903 new_inferior flag.
13904 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13905 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13906 was a stop. When calling arch_setup, switch the current inferior
13907 to the thread that got an event.
13908 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13909 (regsets_fetch_inferior_registers)
13910 (regsets_store_inferior_registers): New regsets_info parameter.
13911 Adjust to use it.
13912 (linux_register_in_regsets): New regs_info parameter. Adjust to
13913 use it.
13914 (register_addr, fetch_register, store_register): New usrregs_info
13915 parameter. Adjust to use it.
13916 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13917 parameter regs_info. Adjust to use it.
13918 (linux_fetch_registers): Get the current inferior's regs_info, and
13919 adjust to use it.
13920 (linux_store_registers): Ditto.
13921 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13922 (initialize_low): Don't initialize the target_regsets here. Call
13923 initialize_low_arch.
13924 * linux-low.h (target_regsets): Delete declaration.
13925 (struct regsets_info): New.
13926 (struct usrregs_info): New.
13927 (struct regs_info): New.
13928 (struct process_info_private) <new_inferior>: New field.
13929 (struct linux_target_ops): Delete the num_regs, regmap, and
13930 regset_bitmap fields. New field regs_info.
13931 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13932 * i387-fp.c (num_xmm_registers): Delete.
13933 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13934 calls to new interface.
13935 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13936 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13937 Infer the number of xmm registers from the regcache's target
13938 description.
13939 * i387-fp.h (num_xmm_registers): Delete.
13940 * inferiors.c (add_thread): Don't install the thread's regcache
13941 here.
13942 * proc-service.c (gregset_info): Fetch the current inferior's
13943 regs_info. Adjust to use it.
13944 * regcache.c: Include tdesc.h.
13945 (register_bytes, reg_defs, num_registers)
13946 (gdbserver_expedite_regs): Delete.
13947 (get_thread_regcache): If the thread doesn't have a regcache yet,
13948 create one, instead of aborting gdbserver.
13949 (regcache_invalidate_one): Rename to ...
13950 (regcache_invalidate_thread): ... this.
13951 (regcache_invalidate_one): New.
13952 (regcache_invalidate): Only invalidate registers of the current
13953 process.
13954 (init_register_cache): Add target_desc parameter, and use it.
13955 (new_register_cache): Ditto. Assert the target description has a
13956 non zero registers_size.
13957 (regcache_cpy): Add assertions. Adjust.
13958 (realloc_register_cache, set_register_cache): Delete.
13959 (registers_to_string, registers_from_string): Adjust.
13960 (find_register_by_name, find_regno, find_register_by_number)
13961 (register_cache_size): Add target_desc parameter, and use it.
13962 (free_register_cache_thread, free_register_cache_thread_one)
13963 (regcache_release, register_cache_size): New.
13964 (register_size): Add target_desc parameter, and use it.
13965 (register_data, supply_register, supply_register_zeroed)
13966 (supply_regblock, supply_register_by_name, collect_register)
13967 (collect_register_as_string, collect_register_by_name): Adjust.
13968 * regcache.h (struct target_desc): Forward declare.
13969 (struct regcache) <tdesc>: New field.
13970 (init_register_cache, new_register_cache): Add target_desc
13971 parameter.
13972 (regcache_invalidate_thread): Declare.
13973 (regcache_invalidate_one): Delete declaration.
13974 (regcache_release): Declare.
13975 (find_register_by_number, register_cache_size, register_size)
13976 (find_regno): Add target_desc parameter.
13977 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13978 declarations.
13979 * remote-utils.c: Include tdesc.h.
13980 (outreg, prepare_resume_reply): Adjust.
13981 * server.c: Include tdesc.h.
13982 (gdbserver_xmltarget): Delete declaration.
13983 (get_features_xml, process_serial_event): Adjust.
13984 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13985 declare.
13986 (struct process_info) <tdesc>: New field.
13987 (ipa_tdesc): Declare.
13988 * tdesc.c: New file.
13989 * tdesc.h: New file.
13990 * tracepoint.c: Include tdesc.h.
13991 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13992 (get_context_regcache): Adjust to pass ipa_tdesc down.
13993 (do_action_at_tracepoint): Adjust to get the register cache size
13994 from the context regcache's description.
13995 (traceframe_walk_blocks): Adjust to get the register cache size
13996 from the current trace frame's description.
13997 (traceframe_get_pc): Adjust to get current trace frame's
13998 description and pass it down.
13999 (gdb_collect): Adjust to get the register cache size from the
14000 IPA's description.
14001 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14002 (gdbserver_xmltarget): Delete.
14003 (initialize_low_tracepoint): Set the ipa's target description.
14004 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14005 (initialize_low_tracepoint): Set the ipa's target description.
14006 * linux-x86-low.c: Include tdesc.h.
14007 [__x86_64__] (is_64bit_tdesc): New.
14008 (ps_get_thread_area, x86_get_thread_area): Use it.
14009 (i386_cannot_store_register): Rename to ...
14010 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14011 (i386_cannot_fetch_register): Rename to ...
14012 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14013 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14014 to new interface.
14015 (target_regsets): Rename to ...
14016 (x86_regsets): ... this.
14017 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14018 interface.
14019 (x86_siginfo_fixup): Use is_64bit_tdesc.
14020 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14021 (tdesc_x32_avx_linux, tdesc_x32_linux)
14022 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14023 Declare.
14024 (x86_linux_update_xmltarget): Delete.
14025 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14026 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14027 (AMD64_LINUX_USER64_CS): New.
14028 (x86_linux_read_description): New, based on
14029 x86_linux_update_xmltarget.
14030 (same_process_callback): New.
14031 (x86_arch_setup_process_callback): New.
14032 (x86_linux_update_xmltarget): New.
14033 (x86_regsets_info): New.
14034 (amd64_linux_regs_info): New.
14035 (i386_linux_usrregs_info): New.
14036 (i386_linux_regs_info): New.
14037 (x86_linux_regs_info): New.
14038 (x86_arch_setup): Reimplement.
14039 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14040 (x86_emit_ops): Ditto.
14041 (the_low_target): Adjust. Install x86_linux_regs_info,
14042 x86_cannot_fetch_register, and x86_cannot_store_register.
14043 (initialize_low_arch): New.
14044 * linux-ia64-low.c (tdesc_ia64): Declare.
14045 (ia64_fetch_register): Adjust.
14046 (ia64_usrregs_info, regs_info): New globals.
14047 (ia64_regs_info): New function.
14048 (the_low_target): Adjust.
14049 (initialize_low_arch): New function.
14050 * linux-sparc-low.c (tdesc_sparc64): Declare.
14051 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14052 Adjust.
14053 (sparc_arch_setup): New function.
14054 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14055 (the_low_target): Adjust.
14056 (initialize_low_arch): New function.
14057 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14058 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14059 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14060 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14061 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14062 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14063 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14064 (tdesc_powerpc_isa205_vsx64l): Declare.
14065 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14066 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14067 (ppc_set_pc, ppc_get_hwcap): Adjust.
14068 (ppc_usrregs_info): Forward declare.
14069 (!__powerpc64__) ppc_regmap_adjusted: New global.
14070 (ppc_arch_setup): Adjust to the current process'es target
14071 description.
14072 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14073 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14074 (ppc_store_evrregset): Adjust.
14075 (target_regsets): Rename to ...
14076 (ppc_regsets): ... this, and make static.
14077 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14078 (ppc_regs_info): New function.
14079 (the_low_target): Adjust.
14080 (initialize_low_arch): New function.
14081 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14082 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14083 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14084 (tdesc_s390x_linux64v2): Declare.
14085 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14086 (s390_fill_gregset, s390_store_last_break): Adjust.
14087 (target_regsets): Rename to ...
14088 (s390_regsets): ... this, and make static.
14089 (s390_get_pc, s390_set_pc): Adjust.
14090 (s390_get_hwcap): New target_desc parameter, and use it.
14091 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14092 (s390_arch_setup): Adjust to set the current process'es target
14093 description. Don't adjust the regmap.
14094 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14095 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14096 (regs_info_3264): New globals.
14097 (s390_regs_info): New function.
14098 (the_low_target): Adjust.
14099 (initialize_low_arch): New function.
14100 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14101 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14102 [__mips64] (init_registers_mips_linux)
14103 (init_registers_mips_dsp_linux): Delete defines.
14104 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14105 (have_dsp): New global.
14106 (mips_read_description): New, based on mips_arch_setup.
14107 (mips_arch_setup): Reimplement.
14108 (get_usrregs_info): New function.
14109 (mips_cannot_fetch_register, mips_cannot_store_register)
14110 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14111 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14112 (target_regsets): Rename to ...
14113 (mips_regsets): ... this, and make static.
14114 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14115 (dsp_regs_info, regs_info): New globals.
14116 (mips_regs_info): New function.
14117 (the_low_target): Adjust.
14118 (initialize_low_arch): New function.
14119 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14120 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14121 Declare.
14122 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14123 (arm_read_description): New, with bits factored from
14124 arm_arch_setup.
14125 (arm_arch_setup): Reimplement.
14126 (target_regsets): Rename to ...
14127 (arm_regsets): ... this, and make static.
14128 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14129 (arm_regs_info): New function.
14130 (the_low_target): Adjust.
14131 (initialize_low_arch): New function.
14132 * linux-m68k-low.c (tdesc_m68k): Declare.
14133 (target_regsets): Rename to ...
14134 (m68k_regsets): ... this, and make static.
14135 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14136 (m68k_regs_info): New function.
14137 (m68k_arch_setup): New function.
14138 (the_low_target): Adjust.
14139 (initialize_low_arch): New function.
14140 * linux-sh-low.c (tdesc_sharch): Declare.
14141 (target_regsets): Rename to ...
14142 (sh_regsets): ... this, and make static.
14143 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14144 (sh_regs_info, sh_arch_setup): New functions.
14145 (the_low_target): Adjust.
14146 (initialize_low_arch): New function.
14147 * linux-bfin-low.c (tdesc_bfin): Declare.
14148 (bfin_arch_setup): New function.
14149 (bfin_usrregs_info, regs_info): New globals.
14150 (bfin_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
14153 * linux-cris-low.c (tdesc_cris): Declare.
14154 (cris_arch_setup): New function.
14155 (cris_usrregs_info, regs_info): New globals.
14156 (cris_regs_info): New function.
14157 (the_low_target): Adjust.
14158 (initialize_low_arch): New function.
14159 * linux-cris-low.c (tdesc_crisv32): Declare.
14160 (cris_arch_setup): New function.
14161 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14162 (cris_regs_info): New function.
14163 (the_low_target): Adjust.
14164 (initialize_low_arch): New function.
14165 * linux-m32r-low.c (tdesc_m32r): Declare.
14166 (m32r_arch_setup): New function.
14167 (m32r_usrregs_info, regs_info): New globals.
14168 (m32r_regs_info): Adjust.
14169 (initialize_low_arch): New function.
14170 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14171 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14172 (tic6x_usrregs_info): Forward declare.
14173 (tic6x_read_description): New function, based on ...
14174 (tic6x_arch_setup): ... this. Reimplement.
14175 (target_regsets): Rename to ...
14176 (tic6x_regsets): ... this, and make static.
14177 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14178 (tic6x_regs_info): New function.
14179 (the_low_target): Adjust.
14180 (initialize_low_arch): New function.
14181 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14182 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14183 (target_regsets): Rename to ...
14184 (xtensa_regsets): ... this, and make static.
14185 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14186 globals.
14187 (xtensa_arch_setup, xtensa_regs_info): New functions.
14188 (the_low_target): Adjust.
14189 (initialize_low_arch): New function.
14190 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14191 (nios2_arch_setup): Set the current process'es tdesc.
14192 (target_regsets): Rename to ...
14193 (nios2_regsets): ... this.
14194 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14195 (nios2_regs_info): New function.
14196 (the_low_target): Adjust.
14197 (initialize_low_arch): New function.
a261b8f5
PA
14198 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14199 (aarch64_arch_setup): Set the current process'es tdesc.
14200 (target_regsets): Rename to ...
14201 (aarch64_regsets): ... this.
14202 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14203 (aarch64_regs_info): New function.
14204 (the_low_target): Adjust.
14205 (initialize_low_arch): New function.
3aee8918
PA
14206 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14207 globals.
14208 (target_regsets): Rename to ...
14209 (tile_regsets): ... this.
14210 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14211 (tile_regs_info): New function.
14212 (tile_arch_setup): Set the current process'es tdesc.
14213 (the_low_target): Adjust.
14214 (initialize_low_arch): New function.
14215 * spu-low.c (tdesc_spu): Declare.
14216 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14217 * win32-arm-low.c (tdesc_arm): Declare.
14218 (arm_arch_setup): New function.
14219 (the_low_target): Install arm_arch_setup instead of
14220 init_registers_arm.
14221 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14222 (init_windows_x86): Rename to ...
14223 (i386_arch_setup): ... this. Set `win32_tdesc'.
14224 (the_low_target): Adjust.
14225 * win32-low.c (win32_tdesc): New global.
14226 (child_add_thread): Don't create the thread cache here.
14227 (do_initial_child_stuff): Set the new process'es tdesc.
14228 * win32-low.h (struct target_desc): Forward declare.
14229 (win32_tdesc): Declare.
14230 * lynx-i386-low.c (tdesc_i386): Declare global.
14231 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14232 * lynx-low.c (lynx_tdesc): New global.
14233 (lynx_add_process): Set the new process'es tdesc.
14234 * lynx-low.h (struct target_desc): Forward declare.
14235 (lynx_tdesc): Declare global.
14236 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14237 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14238 * nto-low.c (nto_tdesc): New global.
14239 (do_attach): Set the new process'es tdesc.
14240 * nto-low.h (struct target_desc): Forward declare.
14241 (nto_tdesc): Declare.
14242 * nto-x86-low.c (tdesc_i386): Declare.
14243 (nto_x86_arch_setup): Set `nto_tdesc'.
14244
b1fbec62
GB
142452013-06-04 Gary Benson <gbenson@redhat.com>
14246
14247 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14248 to qSupported response when appropriate.
14249 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14250 with nonzero-length annex.
14251 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14252 arguments supplied in annex.
14253
d1ec4ce7
DE
142542013-05-31 Doug Evans <dje@google.com>
14255
ac44adcb 14256 PR server/15594
d1ec4ce7
DE
14257 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14258 64 bits in 64-cross-32 environment.
14259
9b25f2d3
PA
142602013-05-28 Pedro Alves <palves@redhat.com>
14261
14262 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14263 (aarch64-without-fpu.c): Delete rule.
14264 * configure.srv (aarch64*-*-linux*): Remove references to
14265 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14266 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14267 declaration.
14268
6740dc9c
PA
142692013-05-24 Pedro Alves <palves@redhat.com>
14270
14271 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14272 instead of strchr/decode_address. Error if the range isn't split
14273 with a ','. Don't assume there's be a ':' in the action.
14274
c2d6af84
PA
142752013-05-23 Yao Qi <yao@codesourcery.com>
14276 Pedro Alves <palves@redhat.com>
14277
14278 * linux-low.c (lwp_in_step_range): New function.
14279 (linux_wait_1): If the thread was range stepping and stopped
14280 outside the stepping range, report the stop to GDB. Otherwise,
14281 continue stepping. Add range stepping debug output.
14282 (linux_set_resume_request): Copy the step range from the resume
14283 request to the lwp.
14284 (linux_supports_range_stepping): New.
14285 (linux_target_ops) <supports_range_stepping>: Set to
14286 linux_supports_range_stepping.
14287 * linux-low.h (struct linux_target_ops)
14288 <supports_range_stepping>: New field.
14289 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14290 * linux-x86-low.c (x86_supports_range_stepping): New.
14291 (the_low_target) <supports_range_stepping>: Set to
14292 x86_supports_range_stepping.
14293 * server.c (handle_v_cont): Handle 'r' action.
14294 (handle_v_requests): Append ";r" if the target supports range
14295 stepping.
14296 * target.h (struct thread_resume) <step_range_start,
14297 step_range_end>: New fields.
14298 (struct target_ops) <supports_range_stepping>:
14299 New field.
14300 (target_supports_range_stepping): New macro.
14301
58794e1a
JB
143022013-05-17 Joel Brobecker <brobecker@adacore.com>
14303
14304 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14305 confusion in comment.
14306
d631c5a7
JB
143072013-05-17 Joel Brobecker <brobecker@adacore.com>
14308
14309 * lynx-low.c (struct process_info_private): New type.
14310 (lynx_add_process): New function.
14311 (lynx_create_inferior, lynx_attach): Replace calls to
14312 add_process by calls to lynx_add_process.
14313 (lynx_resume): If PTID is null, then try using
14314 current_process()->private->last_wait_event_ptid.
14315 Add comments.
14316 (lynx_clear_inferiors): Delete. The contents of that function
14317 has been inlined in lynx_mourn;
14318 (lynx_wait_1): Save the ptid in the process's private data.
14319 (lynx_mourn): Free the process' private data. Replace call
14320 to lynx_clear_inferiors by call to clear_inferiors.
14321
96f7a20f
YQ
143222013-05-17 Yao Qi <yao@codesourcery.com>
14323
14324 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14325 the right place.
14326
db0dfaa0
LM
143272013-05-16 Luis Machado <lgustavo@codesourcery.com>
14328
14329 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14330 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14331 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14332 PT_TEXT_END_ADDR guards. Update comments.
14333 (linux_target_op) <read_offsets>: Conditionally define to
14334 linux_read_offsets if the target is UCLIBC and if it defines
14335 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14336
68f5f838
SL
143372013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14338 Andrew Jenner <andrew@codesourcery.com>
14339
14340 * Makefile.in (SFILES): Add linux-nios2-low.c.
14341 (clean): Add action to delete nios2-linux.c.
14342 (nios2-linux.c): New rule.
14343 * configure.srv: Add nios2*-*-linux*.
14344 * linux-nios2-low.c: New.
14345
1ebff1fd
HAQ
143462013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14347
14348 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14349
f6150862
HZ
143502013-04-25 Hui Zhu <hui@codesourcery.com>
14351
14352 PR gdb/15186
f6150862
HZ
14353 * ax.c (ax_printf): Add fflush.
14354
614c279d
TT
143552013-04-22 Tom Tromey <tromey@redhat.com>
14356
14357 * Makefile.in (SFILES): Add filestuff.c.
14358 (OBS): Add filestuff.o.
14359 (filestuff.o): New target.
14360 * config.in, configure: Rebuild.
14361 * configure.ac: Check for fdwalk, pipe2.
14362
7d4e5717
PA
143632013-04-17 Pedro Alves <palves@redhat.com>
14364
14365 * configure.ac (USE_THREAD_DB): Delete variable.
14366 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14367 Don't AC_SUBST USE_THREAD_DB.
14368 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14369 * config.in, configure: Regenerate.
14370
d5c93e41
PA
143712013-04-16 Pedro Alves <palves@redhat.com>
14372
14373 * linux-low.h (struct lwp_info) <thread_known>: Move under
14374 the USE_THREAD_DB #ifdef.
14375
04f5fe89
PA
143762013-04-16 Pedro Alves <palves@redhat.com>
14377
14378 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14379 (linux-low.o): Delete rule.
14380 * linux-low.h: Always include "gdb_thread_db.h" instead of
14381 conditionally including thread_db.h.
14382 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14383 HAVE_THREAD_DB_H.
14384
480b27bf
JK
143852013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14386
14387 * Makefile.in (install-only): Fix make install regression.
14388
43662968
JK
143892013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14390
14391 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14392 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14393 installation.
14394 * gdbserver.1: Remove.
14395
3e74e146
PA
143962013-03-22 Pedro Alves <palves@redhat.com>
14397
14398 * linux-low.c (handle_extended_wait): Don't call
14399 linux_enable_event_reporting.
14400
a8347a2a
TT
144012013-03-15 Tony Theodore <tonyt@logyst.com>
14402
14403 PR build/9098:
14404 * Makefile.in (SHELL): Use @SHELL@.
14405
eeb56fa7
SDJ
144062013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14407
14408 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14409 compiler warning.
14410
4fa7e2ff
JB
144112013-03-13 Joel Brobecker <brobecker@adacore.com>
14412
14413 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14414 Remove extraneous NULL element.
14415
8ddb1965
YQ
144162013-03-13 Yao Qi <yao@codesourcery.com>
14417
14418 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14419 'V' block in trace frame.
14420
9accd112
MM
144212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14422
14423 * target.h (struct target_ops): Add btrace ops.
14424 (target_supports_btrace): New macro.
14425 (target_enable_btrace): New macro.
14426 (target_disable_btrace): New macro.
14427 (target_read_btrace): New macro.
14428 * gdbthread.h (struct thread_info): Add btrace field.
14429 * server.c: Include btrace-common.h.
14430 (handle_btrace_general_set): New function.
14431 (handle_btrace_enable): New function.
14432 (handle_btrace_disable): New function.
14433 (handle_general_set): Call handle_btrace_general_set.
14434 (handle_qxfer_btrace): New function.
14435 (struct qxfer qxfer_packets[]): Add btrace entry.
14436 * inferiors.c (remove_thread): Disable btrace.
14437 * linux-low: Include linux-btrace.h.
14438 (linux_low_enable_btrace): New function.
14439 (linux_low_read_btrace): New function.
14440 (linux_target_ops): Add btrace ops.
14441 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14442 Add srv_linux_btrace=yes.
14443 (x86_64-*-linux*): Add linux-btrace.o.
14444 Add srv_linux_btrace=yes.
14445 * configure.ac: Define HAVE_LINUX_BTRACE.
14446 * config.in: Regenerated.
14447 * configure: Regenerated.
14448
5cc22e4c
MM
144492013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14450
14451 * server.c (handle_qxfer): Preserve error message if -3 is
14452 returned.
14453 (qxfer): Document the -3 return value.
14454
7c97f91e
MM
144552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14456
14457 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14458 (linux_btrace_h): New variable.
14459 (linux-btrace.o): New rule.
14460
be9a119c 144612013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14462 Hafiz Abid Qadeer <abidh@codesourcery.com>
14463
14464 * tracepoint.c (trace_buffer_size): New global.
14465 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14466 (init_trace_buffer): Change to one-argument function. Allocate
14467 trace buffer memory.
14468 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14469 handle QTBuffer:size packet.
14470 (cmd_bigqtbuffer_size): New function.
14471 (initialize_tracepoint): Call init_trace_buffer with
14472 DEFAULT_TRACE_BUFFER_SIZE.
14473 * server.c (handle_query): Add QTBuffer:size in the
14474 supported packets.
14475
e64f7499
YQ
144762013-03-07 Yao Qi <yao@codesourcery.com>
14477
14478 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14479 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14480 of -1.
14481 (cmd_qtsp): Adjust condition. Do post increment.
14482 Set cur_action and cur_step_action back to 0.
14483
f0ae6fc3
PA
144842013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14485
14486 PR server/15236
14487 * linux-low.c (linux_write_memory): Return early success if LEN is
14488 zero.
14489
b5b0b0af
CV
144902013-03-05 Corinna Vinschen <vinschen@redhat.de>
14491
334ad4a8 14492 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14493
589bc927
TT
144942013-02-28 Tom Tromey <tromey@redhat.com>
14495
14496 * configure.ac: Invoke AC_SYS_LARGEFILE.
14497 * configure, config.in: Rebuild.
14498
dfe07582
CV
144992013-02-28 Corinna Vinschen <vinschen@redhat.com>
14500
14501 * win32-low.c: Throughout, fix format strings and casts of
14502 printf-like functions to avoid type related warnings on all
14503 platforms.
14504 (get_child_debug_event): Print dwDebugEventCode as hex since
14505 that's how it's usually documented.
14506
736cd585
YQ
145072013-02-28 Yao Qi <yao@codesourcery.com>
14508
14509 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14510 pulongest.
14511
e1f58301
JW
145122013-02-27 Jiong Wang <jiwang@tilera.com>
14513
14514 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14515 (reg-tilegx32.c): New rule.
14516 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14517 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14518 different register info initializer according to elf class.
14519 (init_registers_tilgx32): New function. The tilegx32 register info
14520 initializer.
14521 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14522 (tile_store_gregset): Likewise.
14523
d171ca78
YQ
145242013-02-27 Yao Qi <yao@codesourcery.com>
14525
14526 * server.c (process_point_options): Print debug message when
14527 debug_threads is true.
14528
282bbdf3
YQ
145292013-02-26 Yao Qi <yao@codesourcery.com>
14530
14531 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14532
aca22551
PA
145332013-02-19 Pedro Alves <palves@redhat.com>
14534 Kai Tietz <ktietz@redhat.com>
14535
14536 PR gdb/15161
14537
14538 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14539 instead of strtoul to extract address from packet.
14540 (process_serial_event) <'z'>: Likewise.
14541
4f3cee1c
YQ
145422013-02-18 Yao Qi <yao@codesourcery.com>
14543
14544 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14545
8e1d55a3
PA
145462013-02-14 Pedro Alves <palves@redhat.com>
14547
14548 Plug memory leak.
14549
14550 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14551 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14552
458820da
PA
145532013-02-14 Pedro Alves <palves@redhat.com>
14554
14555 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14556
baea0dae
PA
145572013-02-14 Pedro Alves <palves@redhat.com>
14558
14559 * tracepoint.c (save_string): Delete.
14560 (add_tracepoint_action): Use savestring instead of save_string.
14561
0b1afbb3
PA
145622013-02-12 Pedro Alves <palves@redhat.com>
14563
14564 * linux-xtensa-low.c: Ditto.
14565 * xtensa-xtregs.c: Ditto.
14566
8a4ac37e
PA
145672013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14568
14569 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14570 thread_db.
14571
148de6bb
MS
145722013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14573
14574 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14575 aarch64_num_wp_regs and aarch64_num_bp_regs to
14576 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14577
55fac6e0
MS
145782013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14579
14580 * linux-aarch64-low.c (ps_get_thread_area): Replace
14581 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14582
176eb98c
MS
145832013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14584 Marcus Shawcroft <marcus.shawcroft@arm.com>
14585 Nigel Stephens <nigel.stephens@arm.com>
14586 Yufeng Zhang <yufeng.zhang@arm.com>
14587
14588 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14589 (aarch64.c, aarch64-without-fpu.c): New targets.
14590 * configure.srv (aarch64*-*-linux*): New.
14591 * linux-aarch64-low.c: New file.
14592
56f7af9c
MS
145932013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14594
43aaf8b6 14595 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14596 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14597 (dequeue_one_deferred_signal, linux_resume_one_thread)
14598 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14599 (linux_tracefork_grandchild, linux_test_for_tracefork)
14600 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14601 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14602 where the argument is 0.
14603
60f662b0
YQ
146042013-01-25 Yao Qi <yao@codesourcery.com>
14605
14606 * event-loop.c: Include "queue.h".
14607 (gdb_event_p): New typedef.
14608 (struct gdb_event) <next_event>: Remove.
14609 (event_queue): Change to QUEUE(gdb_event_p).
14610 (async_queue_event): Remove.
14611 (gdb_event_xfree): New.
14612 (initialize_event_loop): New.
14613 (process_event): Use API from QUEUE.
14614 (wait_for_event): Likewise.
14615 * server.c (main): Call initialize_event_loop.
14616 * server.h (initialize_event_loop): Declare.
14617
5ae4861a
YQ
146182013-01-18 Yao Qi <yao@codesourcery.com>
14619
14620 * ax.h (struct eval_agent_expr_context): New.
14621 (gdb_eval_agent_expr): Update declaration.
14622 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14623 TFRAME. Add new argument CTX.
14624 * server.h (struct eval_agent_expr_context): Declare.
14625 (agent_mem_read, agent_tsv_read): Update declaration.
14626 (agent_mem_read_string): Likewise.
14627 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14628 (add_traceframe_block): Add new argument TPOINT.
14629 Increase TPOINT->traceframe_usage.
14630 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14631 eval_tracepoint_agent_expr.
14632 (condition_true_at_tracepoint): Likewise.
14633 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14634 (agent_mem_read_string, agent_tsv_read): Likewise.
14635
85e00e85
YQ
146362013-01-16 Yao Qi <yao@codesourcery.com>
14637
14638 * linux-low.c (linux_resume_one_lwp): Don't check
14639 'lwp->bp_reinsert != 0'.
14640
4039cf45
JB
146412013-01-07 Joel Brobecker <brobecker@adacore.com>
14642 Pedro Alves <palves@redhat.com>
14643
14644 * lynx-low.c (ptrace_request_to_str): Define a temporary
14645 macro and use it to simplify this function's implementation.
14646
9044dee2
JB
146472013-01-07 Joel Brobecker <brobecker@adacore.com>
14648
14649 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14650 sets errno.
14651
e6352c8f
JB
146522013-01-07 Joel Brobecker <brobecker@adacore.com>
14653
14654 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14655
50681a27
JB
146562013-01-07 Joel Brobecker <brobecker@adacore.com>
14657
14658 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14659
3f6e77ef
JB
146602013-01-07 Joel Brobecker <brobecker@adacore.com>
14661
14662 * lynx-low.c (lynx_resume): Use the resume_info parameter
14663 to determine the ptid for the lynx_ptrace call, unless
14664 it is equal to minus_one_ptid, in which case we use the
14665 ptid of the current_inferior.
14666 (lynx_wait_1): After having received a thread create/exit
14667 event, resume the inferior's execution using the signaling
14668 thread's ptid, rather than the old ptid.
14669
7fda33ae
JB
146702013-01-07 Joel Brobecker <brobecker@adacore.com>
14671
14672 * lynx-low.c (lynx_resume): Delete variable ret.
14673
b9786c74
JB
146742013-01-01 Joel Brobecker <brobecker@adacore.com>
14675
14676 * gdbreplay.c (gdbreplay_version): Update copyright year.
14677 * server.c (gdbserver_version): Likewise.
14678
8b93d60f
JB
146792012-12-17 Joel Brobecker <brobecker@adacore.com>
14680
14681 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14682 new thread.
14683
037335a7
JB
146842012-12-17 Joel Brobecker <brobecker@adacore.com>
14685
14686 * lynx-low.c (ptrace_request_to_str): Add handling for
14687 PTRACE_GETTRACESIG.
14688
52d4cbd8
JB
146892012-12-17 Joel Brobecker <brobecker@adacore.com>
14690
14691 * lynx-low.c (lynx_attach): Delete variable new_process.
14692
ab8f6ca9
JB
146932012-12-17 Joel Brobecker <brobecker@adacore.com>
14694
14695 * lynx-low.c (lynx_create_inferior): Delete variable
14696 new_process.
14697
78cbc024
JB
146982012-12-17 Joel Brobecker <brobecker@adacore.com>
14699
14700 * lynx-low.c (ptrace_request_to_str): Do not handle
14701 PTRACE_GETTHREADLIST if this macro does not exist.
14702
14a00470
YQ
147032012-12-15 Yao Qi <yao@codesourcery.com>
14704
14705 * Makefile.in (OBS): Add notif.o.
14706 * notif.c, notif.h: New.
14707 * server.c: Include "notif.h".
14708 (struct vstop_notif) <next>: Remove.
14709 <base>: New field.
14710 (queue_stop_reply): Update.
14711 (push_event, send_next_stop_reply): Remove.
14712 (discard_queued_stop_replies): Update.
14713 (notif_stop): New variable.
14714 (handle_v_stopped): Remove.
14715 (handle_v_requests): Don't call handle_v_stopped. Call
14716 handle_ack_notif instead.
14717 (queue_stop_reply_callback): Call notif_event_enque instead
14718 of queue_stop_reply.
14719 (handle_status): Don't call send_next_stop_reply, call
14720 notif_write_event instead.
14721 (kill_inferior_callback): Likewise.
14722 (detach_or_kill_inferior_callback): Likewise.
14723 (main): Call initialize_notif.
14724 (process_serial_event): Call QUEUE_is_empty.
14725 (handle_target_event): Call notif_push instead of push event.
14726 * server.h (push_event): Remove declaration.
14727
61c125b9
TT
147282012-12-10 Tom Tromey <tromey@redhat.com>
14729
14730 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14731 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14732 macros.
14733 (.c.o): Rewrite.
14734 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14735 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14736 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14737 (amd64-linux-ipa.o, ax.o): Rewrite.
14738 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14739 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14740 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14741 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14742 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14743 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14744 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14745 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14746 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14747 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14748 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14749 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14750 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14751 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14752 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14753 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14754 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14755 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14756 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14757 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14758 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14759 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14760 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14761 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14762 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14763 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14764 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14765 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14766 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14767 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14768 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14769 (reg-tilegx.o): Remove.
14770 (all_object_files): New macro.
14771 Include .deps files.
14772 * aclocal.m4, configure: Rebuild.
14773 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14774 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14775 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14776
e90e9ad9
TT
147772012-12-05 Tom Tromey <tromey@redhat.com>
14778
14779 PR gdb/14917:
14780 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14781
02d403bf 147822012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14783
14784 * configure.ac: Check for linux/perf_event.h.
14785 * config.in: Regenerated.
14786 * configure: Regenerated.
14787
0270a750
PA
147882012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14789
14790 * hostio.c (handle_readlink): Decrease buffer size
14791 parameter passed to readlink by one byte.
14792
8c29b58e
YQ
147932012-11-26 Yao Qi <yao@codesourcery.com>
14794
14795 * configure.ac (build_warnings): Append '-Wempty-body'.
14796 * configure: Regenerated.
14797 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14798 body.
14799
8bdce1ff
PM
148002012-11-15 Pierre Muller <muller@sourceware.org>
14801
14802 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14803 * config.in: Regenerate.
14804 * configure: Regenerate.
14805 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14806 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14807 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14808 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14809 header.
14810 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14811 instead of <sys/wait.h> header.
14812 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14813
02d403bf 148142012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14815
14816 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14817 (various make rules): Remove -DGDBSERVER
14818
fbd5db48
YQ
148192012-11-09 Yao Qi <yao@codesourcery.com>
14820
14821 * spu-low.c (current_ptid): Move it to ..
14822 * gdbthread.h: ... here. New.
14823 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14824 * server.c (myresume, process_serial_event): Likewise.
14825 * thread-db.c (thread_db_find_new_threads): Likewise.
14826 * tracepoint.c (run_inferior_command): Likewise.
14827
b3dc46ff
AB
148282012-10-01 Andrew Burgess <aburgess@broadcom.com>
14829
14830 * server.c (handle_search_memory_1): Include access length in
14831 warning message.
14832
07c04788
HPN
148332012-09-05 Michael Brandt <michael.brandt@axis.com>
14834
14835 * linux-crisv32-low.c: Fix compile errors.
14836
918d227b
YQ
148372012-09-04 Yao Qi <yao@codesourcery.com>
14838
14839 * tracepoint.c (cmd_qtsv): Adjust debug message.
14840 Don't check CUR_TPOINT.
14841
18c1b81a
YQ
148422012-08-28 Yao Qi <yao@codesourcery.com>
14843
14844 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14845 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14846 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14847 Remove declarations of xmalloc, xreallloc, xstrdup and
14848 freeargv.
14849 * Makefile.in (libiberty_h): New.
14850 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14851 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14852
dc82f37b
YQ
148532012-08-23 Yao Qi <yao@codesourcery.com>
14854
14855 * server.h: Remove declaration of 'xsnprintf'.
14856
406b1477
KS
148572012-08-22 Keith Seitz <keiths@redhat.com>
14858
14859 * server.h: Include build-gnulib-gbserver/config.h.
14860 * gdbreplay.c: Likewise.
14861
e6712ff1
DE
148622012-08-08 Doug Evans <dje@google.com>
14863
14864 * Makefile.in (SFILES): Add gdb_vecs.c.
14865 (OBS): Add gdb_vecs.o.
14866 (gdb_vecs_h, host_defs_h): New variables.
14867 (thread-db.o): Add $(gdb_vecs_h) dependency.
14868 (gdb_vecs.o): New rule.
14869 * thread-db.c: #include "gdb_vecs.h".
14870 (thread_db_load_search): Use a vector to iterate over path elements.
14871 Handle text appearing after "$pdir".
14872
14873 * configure.ac: Add check for strstr.
14874 * config.in: Regenerate.
14875 * configure: Regenerate.
14876
7c3270ae
UW
148772012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14878
14879 * hostio.c (handle_pread): If pread fails, fall back to attempting
14880 lseek/read.
14881 (handle_pwrite): Likewise for pwrite.
14882
b62e2b27
UW
148832012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14884
14885 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14886 between unsupported TYPE and unimplementable ADDR/LEN combination.
14887 (arm_insert_point): Act on new return value.
14888
78a99e91
PA
148892012-07-31 Pedro Alves <palves@redhat.com>
14890
14891 * server.c (process_point_options): Only skip tokens if we find
14892 one that is unrecognized. Don't treat 'X' specially while
14893 skipping unrecognized tokens.
14894
fcf303ab
UW
148952012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14896
14897 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14898 to 4-byte-align HW breakpoint addresses for Thumb.
14899
7255706c
YQ
149002012-07-27 Yao Qi <yao@codesourcery.com>
14901
14902 PR remote/14161.
14903
14904 * server.h: Declare gdb_agent_about_to_close.
14905 * target.c (kill_inferior): Include "agent.h".
14906 New. Send command 'kill'.
14907 * target.h (kill_inferior): Removed macro.
14908 * tracepoint.c (gdb_agent_about_to_close): New.
14909 (gdb_agent_helper_thread): Handle command 'close'.
14910 Wait endlessly until the inferior stops.
14911 Install gdb_agent_remove_socket to atexit hook.
14912 (agent_socket_name): New static variable.
14913 (gdb_agent_socket_init): Replace local variable 'name' with
14914 'agent_socket_name'.
14915 (gdb_agent_remove_socket): New.
14916
5a3f286f
YQ
149172012-07-27 Yao Qi <yao@codesourcery.com>
14918
14919 * server.c (process_point_options): Stop at 'X' when parsing.
14920
961bd387
ME
149212012-07-19 Michael Eager <eager@eagercon.com>
14922
a261b8f5 14923 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
14924 to hw_execute.
14925 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14926 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14927 hardware breakpoint.
14928
aa7c7447
JK
149292012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14930
14931 * gdbserver/linux-low.c (initialize_low): Call
14932 linux_ptrace_init_warnings.
14933
7f216e7c
DE
149342012-07-02 Doug Evans <dje@google.com>
14935
14936 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14937 pointer to int.
14938
d3ce09f5
SS
149392012-07-02 Stan Shebs <stan@codesourcery.com>
14940
14941 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14942 (ax.o): Add it to build rule.
14943 (ax-ipa.o): Ditto.
14944 (OBS): Add format.o.
14945 (IPA_OBS): Add format.o.
14946 * server.c (handle_query): Claim support for breakpoint commands.
14947 (process_point_options): Add command case.
14948 (process_serial_event): Leave running if there are printfs in
14949 effect.
14950 * mem-break.h (any_persistent_commands): Declare.
14951 (add_breakpoint_commands): Declare.
14952 (gdb_no_commands_at_breakpoint): Declare.
14953 (run_breakpoint_commands): Declare.
14954 * mem-break.c (struct point_command_list): New struct.
14955 (struct breakpoint): New field command_list.
14956 (any_persistent_commands): New function.
14957 (add_commands_to_breakpoint): New function.
14958 (add_breakpoint_commands): New function.
14959 (gdb_no_commands_at_breakpoint): New function.
14960 (run_breakpoint_commands): New function.
14961 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14962 locally.
14963 * ax.c: Include format.h.
14964 (ax_printf): New function.
14965 (gdb_eval_agent_expr): Add printf opcode.
14966
2f8f6aed
YQ
149672012-06-13 Yao Qi <yao@codesourcery.com>
14968
14969 * server.c (start_inferior): Remove duplicated writes to fields
14970 'last_resume_kind' and 'last_status' of 'current_inferior'.
14971
0c9070b3
YQ
149722012-06-12 Yao Qi <yao@codesourcery.com>
14973 Pedro Alves <palves@redhat.com>
14974
14975 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14976 comment.
14977 * server.c (handle_v_cont): Extend comment.
14978
c52daf70
YQ
149792012-06-11 Yao Qi <yao@codesourcery.com>
14980
14981 * linux-low.c (linux_attach): Add 'static'.
14982
d38bbb0a
YQ
149832012-06-06 Yao Qi <yao@codesourcery.com>
14984
14985 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14986
89dc0afd
JK
149872012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14988
14989 Fix gcc -flto compilation warning.
14990 * server.c (main): Make variable multi_mode and attach volatile.
14991
75f62ce7
TJB
149922012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14993
14994 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14995 if the platform doesn't know about it.
14996
65f479b6
PA
149972012-05-30 Jeff Kenton <jkenton@tilera.com>
14998
14999 * Makefile.in (SFILES): Add linux-tile-low.c.
15000 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15001 * configure.srv: Handle tilegx-*-linux*.
15002 * linux-tile-low.c: New file.
15003
0c5bf5a9
JK
150042012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15005
15006 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15007
a493e3e2
PA
150082012-05-24 Pedro Alves <palves@redhat.com>
15009
15010 PR gdb/7205
15011
43aaf8b6 15012 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15013
2ea28649
PA
150142012-05-24 Pedro Alves <palves@redhat.com>
15015
15016 PR gdb/7205
15017
15018 Replace target_signal with gdb_signal throughout.
15019
8d409d16
MR
150202012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15021
15022 * linux-low.c (linux_store_registers): Avoid the copying sequence
15023 when no data has been retrieved by ptrace.
15024
23512c01
MGD
150252012-05-22 Will Deacon <will.deacon@arm.com>
15026
15027 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15028 Include asm/ptrace.h.
15029 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15030 already defined.
15031
4934b29e
MR
150322012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15033
15034 * linux-low.c (linux_store_registers): Don't re-retrieve data
15035 with ptrace that has already been obtained from /proc. Always
15036 copy any data retrieved with ptrace to the buffer supplied.
15037
bde24c0a
PA
150382012-05-11 Yao Qi <yao@codesourcery.com>
15039 Pedro Alves <palves@redhat.com>
15040
15041 * linux-low.c (enum stopping_threads_kind): New.
15042 (stopping_threads): Change type to `enum stopping_threads_kind'.
15043 (handle_extended_wait): If stopping and suspending threads, leave
15044 the new_lwp suspended too.
15045 (linux_wait_for_event): Adjust.
15046 (stop_all_lwps): Set `stopping_threads' to
15047 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15048 whether we're suspending threads or just stopping them. Assert no
15049 recursion happens.
15050
623b6bdf
YQ
150512012-04-29 Yao Qi <yao@codesourcery.com>
15052
15053 * server.h: Move some code to ...
15054 * gdbthread.h: ... here. New.
15055 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15056 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15057 (nto-low.o, win32-low.o): Likewise.
15058 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15059 * regcache.c, remote-utils.c, server.c: Likewise.
15060 * target.c, tracepoint.c, win32-low.c: Likewise.
15061
f15f9948
TJB
150622012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15063
15064 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15065 (PTRACE_ARG4_TYPE): Likewise.
15066 (PTRACE_XFER_TYPE): Likewise.
15067 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15068 ptrace to PTRACE_ARG3_TYPE.
15069 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15070 (PTRACE_ARG4_TYPE): Likewise.
15071 (PTRACE_XFER_TYPE): Likewise.
15072 (linux_detach_one_lwp): Cast fourth argument of
15073 ptrace to long then PTRACE_ARG4_TYPE.
15074 (regsets_fetch_inferior_registers): Cast third argument of
15075 ptrace to long then PTRACE_ARG3_TYPE.
15076 (regsets_store_inferior_registers): Likewise.
15077
38ea300a
PA
150782012-04-20 Pedro Alves <palves@redhat.com>
15079
15080 * configure: Regenerate.
15081
c971b7fa
PA
150822012-04-19 Pedro Alves <palves@redhat.com>
15083
43aaf8b6 15084 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15085 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15086 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15087 (all, install-only, uninstall, clean-info, all-lib, clean): No
15088 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15089 (maintainer-clean realclean distclean): Use subdir_do.
15090 (subdir_do): New.
15091 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15092 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15093 * acinclude.m4: Include acx_configure_dir.m4.
15094 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15095 calls. Call AC_PROG_RANLIB. Configure gnulib using
15096 ACX_CONFIGURE_DIR.
15097 (GNULIB): New.
15098 (GNULIB_STDINT_H): Adjust.
15099 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15100 * gdbreplay.c: Include build-gnulib/config.h.
15101 * server.h: Likewise.
15102 * aclocal.m4: Regenerate.
15103 * config.in: Regenerate.
15104 * configure: Regenerate.
c971b7fa 15105
809277f8
PA
151062012-04-19 Pedro Alves <palves@redhat.com>
15107
15108 * Makefile.in (LIBGNU, INCGNU): Adjust.
15109 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15110 (all, install-only, uninstall, clean-info, all-lib, clean)
15111 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15112 * configure.ac: Adjust AC_OUTPUT output.
15113 * aclocal.m4: Regenerate.
15114 * configure: Regenerate.
15115
fd9bb8b8
PA
151162012-04-19 Pedro Alves <palves@redhat.com>
15117
15118 * Makefile.in (generated_files): New.
15119 (server_h): Remove the explicit dependency on config.h, and depend
15120 on $generated_files.
15121
1c298c66
PA
151222012-04-19 Pedro Alves <palves@redhat.com>
15123
15124 * Makefile.in (INCGNU): Add -Ignulib.
15125
57c4b50b
PA
151262012-04-19 Pedro Alves <palves@redhat.com>
15127
15128 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15129 (INCGNU): ... this, and spell out -I here.
15130 (GNULIB_LIB): Rename to ...
15131 (LIBGNU): ... this.
15132 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15133
1030e047
PA
151342012-04-19 Pedro Alves <palves@redhat.com>
15135
15136 * config.in: Regenerate.
15137
447d4319
PA
151382012-04-19 Pedro Alves <palves@redhat.com>
15139
15140 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15141 * server.h (memmem): Remove declaration.
15142 * config.in: Regenerate.
15143 * configure: Regenerate.
15144
aad9eab9
YQ
151452012-04-19 Yao Qi <yao@codesourcery.com>
15146
15147 * Makefile.in (SFILES): Add common/vec.c.
15148 (OBS): Add vec.o.
15149 (vec.o): New rule.
15150
3e10640f
YQ
151512012-04-19 Yao Qi <yao@codesourcery.com>
15152
15153 * remote-utils.c (prepare_resume_reply): Replace with macro
15154 target_core_of_thread.
15155 * server.c (handle_qxfer_threads_proper): Likewise.
15156 * target.h (traget_core_of_thread): New macro.
15157
71622373
PA
151582012-04-18 Pedro Alves <palves@redhat.com>
15159
15160 * aclocal.m4: Regenerate.
15161 * configure: Regenerate.
15162
80d26939
YQ
151632012-04-16 Yao Qi <yao@codesourcery.com>
15164
15165 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15166 duplicated on address.
15167
42476b70
YQ
151682012-04-16 Yao Qi <yao@codesourcery.com>
15169
15170 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15171 (struct tracepoint_action_ops) <send>: New field.
15172 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15173 (agent_expr_send, x_tracepoint_action_send): New.
15174 (l_tracepoint_action_send): New.
15175 (cmd_qtdp): Download and install tracepoint
15176 according to `use_agent'.
15177 (run_inferior_command): Add one more parameter `len'.
15178 Update callers.
15179 (tracepoint_send_agent): New.
15180 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15181
7bc83639
YQ
151822012-04-16 Yao Qi <yao@codesourcery.com>
15183
15184 * tracepoint.c (download_tracepoints): Moved to ...
15185 (cmd_qtstart): ... here.
15186
5f18041e
YQ
151872012-04-14 Yao Qi <yao@codesourcery.com>
15188
15189 * tracepoint.c: Include inttypes.h.
15190 (struct collect_memory_action): Use sized types.
15191 (struct tracepoint): Likewise.
15192 (cmd_qtdp, stop_tracing): Update print specifiers.
15193 (cmd_qtp, response_tracepoint): Likewise.
15194 (collect_data_at_tracepoint): Likewise.
15195 (collect_data_at_step): Likewise.
15196
55a8c076
YQ
151972012-04-14 Yao Qi <yao@codesourcery.com>
15198
15199 Import gnulib module inttypes.
15200 * aclocal.m4, config.in, configure: Regenerated.
15201
dc750257
YQ
152022012-04-14 Yao Qi <yao@codesourcery.com>
15203
15204 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15205 Makefile and config.status at last.
15206
0ab5faf9
YQ
152072012-04-13 Yao Qi <yao@codesourcery.com>
15208
15209 * tracepoint.c: Include stdint.h unconditionally.
15210
18f5fd81
TJB
152112012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15212
15213 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15214 on BFD_HAVE_SYS_PROCFS_TYPE.
15215 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15216 * configure: Regenerate.
15217 * config.in: Likewise.
15218
4d47af5c
L
152192012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15220
15221 * Makefile.in (clean): Also remove x32.c x32-linux.c
15222 x32-avx.c x32-avx-linux.c.
15223 (x32.o): New target.
15224 (x32.c): Likewise.
15225 (x32-linux.o): Likewise.
15226 (x32-linux.c): Likewise.
15227 (x32-avx.o): Likewise.
15228 (x32-avx.c): Likewise.
15229 (x32-avx-linux.o): Likewise.
15230 (x32-avx-linux.c): Likewise.
15231
15232 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15233 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15234 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15235 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15236 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15237 i386/x32-avx-linux.xml.
15238
15239 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15240 (init_registers_x32_avx_linux): Likwise.
15241 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15242 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15243
ecedbe58
PA
152442012-04-13 Pedro Alves <palves@redhat.com>
15245
15246 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15247 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15248 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15249 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15250 the sub-make.
15251
c92b5177
L
152522012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15253
15254 * linux-x86-low.c (compat_x32_clock_t): New.
15255 (compat_x32_siginfo_t): Likewise.
15256 (compat_x32_siginfo_from_siginfo): Likewise.
15257 (siginfo_from_compat_x32_siginfo): Likewise.
15258 (linux_is_elf64): Likewise.
15259 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15260 and siginfo_from_compat_x32_siginfo for x32.
15261 (x86_arch_setup): Set linux_is_elf64.
15262
214d508e
L
152632012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15264
15265 PR gdb/13969
15266 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15267 e_machine field.
15268 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15269 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15270 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15271 compatible with process.
15272
c9a1864a
YQ
152732012-04-12 Yao Qi <yao@codesourcery.com>
15274
15275 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15276 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15277 (install-only, install-info, clean): Handle sub dir gnulib.
15278 (all-lib, am--refresh): New targets.
15279 (memmem.o): Remove target.
15280 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15281 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15282 (AC_REPLACE_FUNCS): Remove memmem.
15283 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15284 (AC_OUTPUT): Generate Makefile in gnulib/.
15285 * aclocal.m4, config.in, configure: Regenerated.
15286
367ba2c2
MR
152872012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15288
15289 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15290
9d236627
PA
152912012-04-05 Pedro Alves <palves@redhat.com>
15292
15293 -Werror=strict-aliasing
15294
15295 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15296 pointer.
15297
111217b3
PA
152982012-04-04 Pedro Alves <palves@redhat.com>
15299
15300 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15301 (sparc_store_gregset_from_stack, sparc_store_gregset)
15302 (sparc_breakpoint_at): Fix formatting.
15303
8365dcf5
TJB
153042012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15305
15306 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15307 are available.
15308 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15309 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15310 * config.in: Regenerate.
15311 * configure: Likewise.
15312
689cc2ae
PA
153132012-03-29 Pedro Alves <palves@redhat.com>
15314
15315 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15316 Correct ptrace arguments.
15317
c14dfd32
PA
153182012-03-28 Pedro Alves <palves@redhat.com>
15319
15320 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15321 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15322 (IA64_FR1_REGNUM): New defines.
15323 (ia64_fetch_register): New.
15324 (the_low_target): Install it.
15325 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15326 field.
15327 * linux-low.c (linux_fetch_registers): Try the
15328 the_low_target.fetch_register hook first.
15329
15330 * linux-arm-low.c (the_low_target): Adjust.
15331 * linux-bfin-low.c (the_low_target): Adjust.
15332 * linux-cris-low.c (the_low_target): Adjust.
15333 * linux-crisv32-low.c (the_low_target): Adjust.
15334 * linux-m32r-low.c (the_low_target): Adjust.
15335 * linux-m68k-low.c (the_low_target): Adjust.
15336 * linux-mips-low.c (the_low_target): Adjust.
15337 * linux-ppc-low.c (the_low_target): Adjust.
15338 * linux-s390-low.c (the_low_target): Adjust.
15339 * linux-sh-low.c (the_low_target): Adjust.
15340 * linux-sparc-low.c (the_low_target): Adjust.
15341 * linux-tic6x-low.c (the_low_target): Adjust.
15342 * linux-x86-low.c (the_low_target): Adjust.
15343 * linux-xtensa-low.c (the_low_target): Adjust.
15344
63c88e13
PA
153452012-03-26 Pedro Alves <palves@redhat.com>
15346
15347 * server.c (handle_qxfer_libraries): Don't bail early if
15348 the_target->qxfer_libraries_svr4 is not NULL.
15349
fb723180
PA
153502012-03-26 Pedro Alves <palves@redhat.com>
15351
15352 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15353
0afae3cf
PA
153542012-03-23 Pedro Alves <palves@redhat.com>
15355
15356 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15357 "library-list-svr4" element's start tag when the the DSO list is
15358 empty.
15359
485f1ee4
PA
153602012-03-23 Pedro Alves <palves@redhat.com>
15361
15362 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15363 a variable whose type size is the same as the inferior's pointer
15364 size.
15365
a5362b9a
TS
153662012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15367
15368 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15369 struct siginfo.
15370 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15371 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15372 * linux-low.h: Include <signal.h>.
15373 (struct siginfo): Remove forward declaration.
15374 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15375 struct siginfo.
15376
d226c142
MF
153772012-03-21 Mike Frysinger <vapier@gentoo.org>
15378
15379 * .gitignore: Ignore more files.
15380
122f36ef
PA
153812012-03-19 Pedro Alves <palves@redhat.com>
15382 Jan Kratochvil <jan.kratochvil@redhat.com>
15383
15384 * server.c (cont_thread, general_thread): Add describing comments.
15385 (start_inferior): Clear `cont_thread'.
15386 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15387 of a process.
15388
fc3e5175
YQ
153892012-03-15 Yao Qi <yao@codesourcery.com>
15390
15391 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15392 handling to ...
15393 (cmd_qtdp): ... here.
15394
8d0d92cd
YQ
153952012-03-15 Yao Qi <yao@codesourcery.com>
15396
15397 * tracepoint.c (struct tracepoint_action_ops): New.
15398 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15399 (m_tracepoint_action_download): New.
15400 (r_tracepoint_action_download): New.
15401 (x_tracepoint_action_download): New.
15402 (l_tracepoint_action_download): New.
15403 (add_tracepoint_action): Install `action->ops' according type.
15404 (download_tracepoint_1): Move code `download' function pointer
15405 of various tracepoint_action_ops.
15406
87b0bb13
JK
154072012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15408
15409 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15410 linux_ptrace_attach_warnings.
15411
5f572dec
JK
154122012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15413
15414 * Makefile.in (linux-ptrace.o): New.
15415 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15416 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15417 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15418 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15419 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15420 of these targets.
15421 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15422
f4647387
YQ
154232012-03-08 Yao Qi <yao@codesourcery.com>
15424 Pedro Alves <palves@redhat.com>
15425
15426 Fix PR server/13392.
15427 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15428 offset of JMP insn.
15429 * tracepoint.c (remove_tracepoint): New.
15430 (cmd_qtdp): Call remove_tracepoint when failed to install.
15431
9b224c5e
PA
154322012-03-07 Pedro Alves <palves@redhat.com>
15433
15434 * linux-low.c (get_detach_signal): New.
15435 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15436 Pass on pending signals to PTRACE_DETACH. Check the result of the
15437 ptrace call.
15438 * server.c (program_signals, program_signals_p): New.
15439 (handle_general_set): Handle QProgramSignals.
15440 * server.h (program_signals, program_signals_p): Declare.
15441
e237a7e2
JK
154422012-03-05 Pedro Alves <palves@redhat.com>
15443 Jan Kratochvil <jan.kratochvil@redhat.com>
15444
15445 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15446 New comment why.
15447
5808517f
YQ
154482012-03-03 Yao Qi <yao@codesourcery.com>
15449
15450 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15451 agent_look_up_symbols.
15452
58b4daa5
YQ
154532012-03-03 Yao Qi <yao@codesourcery.com>
15454
15455 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15456 (linux-x86-low.o): Likewise.
15457 * server.h: Remove in_process_agent_loaded.
15458 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15459 common/agent.c.
15460 Update callers.
15461
8ffcbaaf
YQ
154622012-03-03 Yao Qi <yao@codesourcery.com>
15463
15464 * tracepoint.c (gdb_agent_capability): New global.
15465 (in_process_agent_loaded_ust): Renamed to
15466 `in_process_agent_supports_ust'.
15467 Update callers.
15468 (in_process_agent_supports_ust): Call agent_capability_check.
15469 (clear_installed_tracepoints): Assert that agent supports
15470 agent.
15471
d1feda86
YQ
154722012-03-03 Yao Qi <yao@codesourcery.com>
15473
15474 * linux-low.c (linux_supports_agent): New.
15475 (linux_target_ops): Initialize field `supports_agent' with
15476 linux_supports_agent.
15477 * target.h (struct target_ops) <supports_agent>: New.
15478 (target_supports_agent): New macro.
15479 * server.c (handle_general_set): Handle packet 'QAgent'.
15480 (handle_query): Send `QAgent+'.
15481 * Makefile.in (server.o): Depends on agent.h.
15482
2fa291ac
YQ
154832012-03-03 Yao Qi <yao@codesourcery.com>
15484
15485 * Makefile.in (OBS): Add agent.o.
15486 Add new rule for agent.o.
15487 Track dependence of tracepoint.c on agent.h.
15488 * tracepoint.c (run_inferior_command_1):
15489 (run_inferior_command): Call agent_run_command.
15490 (gdb_ust_connect_sync_socket): Deleted. Move it to
15491 common/agent.c.
15492 (resume_thread, stop_thread): Likewise.
15493 (gdb_ust_socket_init): Renamed to ...
15494 (gdb_agent_socket_init): ... New.
15495 (gdb_ust_thread): Renamed to ...
15496 (gdb_agent_helper_thread): ... New.
15497 (gdb_ust_init): Move some code to ...
15498 (gdb_agent_init): ... here. New.
15499 [HAVE_UST]: Call gdb_ust_init.
15500 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15501 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15502 * config.in, configure: Regenerated.
15503
05044653
PA
155042012-03-02 Pedro Alves <palves@redhat.com>
15505
15506 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15507 * linux-low.c (struct simple_pid_list): New.
15508 (stopped_pids): New a struct simple_pid_list pointer.
15509 (add_to_pid_list, pull_pid_from_list): New.
15510 (handle_extended_wait): Don't assume the first signal new children
15511 report is SIGSTOP. Adjust call to pull_pid_from_list.
15512 (linux_wait_for_lwp): Adjust.
15513
8d00225b
YQ
155142012-03-02 Yao Qi <yao@codesourcery.com>
15515
15516 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15517 debug log.
15518
19560ba5
YQ
155192012-03-02 Yao Qi <yao@codesourcery.com>
15520
15521 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15522 `stop_pc' and `tpoint'. Update caller.
15523
1faeff08
MR
155242012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15525
15526 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15527 * linux-low.c (use_linux_regsets): New macro.
15528 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15529 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15530 (linux_register_in_regsets): New function.
15531 (usr_fetch_inferior_registers): Skip registers covered by
15532 regsets.
15533 (usr_store_inferior_registers): Likewise.
15534 (usr_fetch_inferior_registers): New macro.
15535 (usr_store_inferior_registers): Likewise.
15536 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15537 (linux_store_registers): Likewise.
15538 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15539 prototype.
15540 (init_registers_mips64_dsp_linux): Likewise.
15541 (init_registers_mips_linux): New macro.
15542 (init_registers_mips_dsp_linux): Likewise.
15543 (mips_dsp_num_regs): Likewise.
15544 (DSP_BASE, DSP_CONTROL): New fallback macros.
15545 (mips_base_regs): New macro.
15546 (mips_regmap): Use it. Fix the size.
15547 (mips_dsp_regmap): New variable.
15548 (mips_dsp_regset_bitmap): Likewise.
15549 (mips_arch_setup): New function.
15550 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15551 than mips_regmap.
15552 (mips_cannot_store_register): Likewise.
15553 (the_low_target): Update .arch_setup, .num_regs and .regmap
15554 initializers. Add .regset_bitmap initializer.
15555 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15556 initializer.
15557 * linux-bfin-low.c (the_low_target): Likewise.
15558 * linux-cris-low.c (the_low_target): Likewise.
15559 * linux-crisv32-low.c (the_low_target): Likewise.
15560 * linux-ia64-low.c (the_low_target): Likewise.
15561 * linux-m32r-low.c (the_low_target): Likewise.
15562 * linux-m68k-low.c (the_low_target): Likewise.
15563 * linux-ppc-low.c (the_low_target): Likewise.
15564 * linux-s390-low.c (the_low_target): Likewise.
15565 * linux-sh-low.c (the_low_target): Likewise.
15566 * linux-sparc-low.c (the_low_target): Likewise.
15567 * linux-tic6x-low.c (the_low_target): Likewise.
15568 * linux-x86-low.c (the_low_target): Likewise.
15569 * linux-xtensa-low.c (the_low_target): Likewise.
15570 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15571 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15572 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15573 srv_xmlfiles.
15574 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15575 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15576
c03e6ccc
YQ
155772012-02-29 Yao Qi <yao@codesourcery.com>
15578 Pedro Alves <palves@redhat.com>
15579
15580 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15581 `step_over_finished' is true.
15582
644cebc9
PA
155832012-02-27 Pedro Alves <palves@redhat.com>
15584
15585 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15586 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15587
c14d7ab2
PA
155882012-02-27 Pedro Alves <palves@redhat.com>
15589
15590 PR server/9684
15591 * linux-low.c (pid_is_stopped): New.
15592 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15593
412c89dd
LM
155942012-02-25 Luis Machado <lgustavo@codesourcery.com>
15595
15596 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15597 of conditions.
15598
b745defe
MR
155992012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15600
15601 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15602
9f3a5c85
LM
156032012-02-24 Luis Machado <lgustavo@codesourcery>
15604
15605 * server.c (handle_query): Advertise support for target-side
15606 breakpoint condition evaluation.
15607 (process_point_options): New function.
15608 (process_serial_event): When inserting a breakpoint, check for
15609 a target-side condition that should be evaluated.
15610
15611 * mem-break.c: Include regcache.h and ax.h.
15612 (point_cond_list_t): New data structure.
15613 (breakpoint) <cond_list>: New field.
15614 (find_gdb_breakpoint_at): Make non-static.
15615 (delete_gdb_breakpoint_at): Clear any target-side
15616 conditions.
15617 (clear_gdb_breakpoint_conditions): New function.
15618 (add_condition_to_breakpoint): Likewise.
15619 (add_breakpoint_condition): Likewise.
15620 (gdb_condition_true_at_breakpoint): Likewise.
15621 (gdb_breakpoint_here): Return result directly instead
15622 of going through a local variable.
15623
15624 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15625 (clear_gdb_breakpoint_conditions): Likewise.
15626 (add_breakpoint_condition): Likewise.
15627 (gdb_condition_true_at_breakpoint): Likewise.
15628
15629 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15630 (need_step_over_p): Take target-side breakpoint condition into
15631 consideration.
15632
5e1dc496
LM
156332012-02-24 Luis Machado <lgustavo@codesourcery>
15634
15635 * server.h: Include tracepoint.h.
15636 (agent_mem_read, agent_get_trace_state_variable_value,
15637 agent_set_trace_state_variable_value,
15638 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15639 get_set_tsv_func_addr): New prototypes.
15640
15641 * ax.h: New include file.
15642 * ax.c: New source file.
15643
15644 * tracepoint.c: Include ax.h.
15645 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15646 agent_expr, eval_result_type): Move to ax.h.
15647 (parse_agent_expr): Rename to ...
15648 (gdb_parse_agent_expr): ... this, make it non-static and move
15649 to ax.h.
15650 (unparse_agent_expr) Rename to ...
15651 (gdb_unparse_agent_expr): ... this, make it non-static and move
15652 to ax.h.
15653 (eval_agent_expr): Rename to ...
15654 (eval_tracepoint_agent_expr): ... this.
15655 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15656 forward declarations.
15657 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15658 (agent_get_trace_state_variable_value): New function.
15659 (agent_set_trace_state_variable_value): New function.
15660 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15661 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15662 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15663 (condition_true_at_tracepoint): Likewise.
15664 (parse_agent_expr): Rename to ...
15665 (gdb_parse_agent_expr): ... this and move to ax.c.
15666 (unparse_agent_expr): Rename to ...
15667 (gdb_unparse_agent_expr): ... this and move to ax.c.
15668 (gdb_agent_op_name): Move to ax.c.
15669 (eval_agent_expr): Rename to ...
15670 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15671 and move to ax.c.
15672 (eval_tracepoint_agent_expr): New function.
15673 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15674 non-static.
5e1dc496
LM
15675 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15676 ax.c.
15677 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15678 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15679 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15680 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15681 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15682 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15683 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15684 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15685 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15686 (compile_bytecodes): Remove forward declaration.
15687 (is_goto_target): Move to ax.c.
15688 (compile_bytecodes): Move to ax.c and call
15689 agent_get_trace_state_variable_value (...) and
15690 agent_set_trace_state_variable_value (...).
15691
15692 * Makefile.in: Update ax.c and IPA dependencies.
15693
277e4e52
PA
156942012-02-24 Pedro Alves <palves@redhat.com>
15695
15696 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15697 (cmd_bigqtbuffer_circular): ... this. Only handle
15698 'QTBuffer:circular:'.
15699 (handle_tracepoint_general_set): Adjust.
15700
bf4c19f7
YQ
157012012-02-16 Yao Qi <yao@codesourcery.com>
15702
15703 * inferiors.c: Move code to ...
15704 * dll.c: .... here. New.
15705 * server.h: Declare clear_dlls.
15706 * Makefile.in (SFILES): Add dll.c.
15707 (OBS): Add dll.o
15708 (dll.o): New rule.
15709
d73f2619
YQ
157102012-02-11 Yao Qi <yao@codesourcery.com>
15711
15712 * server.c: (handle_monitor_command): Add a new parameter
15713 `own_buf'.
15714 (handle_query): Update caller.
15715
f8255c2a
JB
157162012-02-09 Joel Brobecker <brobecker@adacore.com>
15717
15718 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15719 * configure, config.in: Regenerate.
15720 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15721 is not defined.
15722
da84f473
PA
157232012-02-02 Pedro Alves <palves@redhat.com>
15724
15725 Try SIGKILL first, then PTRACE_KILL.
15726 * linux-low.c (linux_kill_one_lwp): New.
15727 (linux_kill_one_lwp): Rename to ...
15728 (kill_one_lwp_callback): ... this. Use the new
15729 linux_kill_one_lwp.
15730
e886a173
PA
157312012-02-02 Pedro Alves <palves@redhat.com>
15732
15733 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15734 inferior.
15735
be07f1a2
PA
157362012-01-27 Pedro Alves <palves@redhat.com>
15737
15738 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15739 (elf_64_file_p): Make static.
15740 (linux_pid_exe_is_elf_64_file): New.
15741 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15742 Delete declarations.
15743 (linux_pid_exe_is_elf_64_file): Declare.
15744 * linux-x86-low.c (x86_arch_setup): Use
15745 linux_pid_exe_is_elf_64_file.
15746
d8301ad1
JK
157472012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15748
15749 * linux-low.c (linux_wait_for_event_1): Rename to ...
15750 (linux_wait_for_event): ... here and merge it with former
15751 linux_wait_for_event - new variable wait_ptid, use it.
15752 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15753
01b17894
PA
157542012-01-23 Pedro Alves <palves@redhat.com>
15755
15756 * server.c (main): Avoid yet another case of infinite loop while
15757 detaching/killing after a longjmp.
15758
e825046f
JK
157592012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15760
15761 Code cleanup.
15762 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15763
b9e7b9c3
UW
157642012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15765
15766 * hostio.c (handle_readlink): New function.
15767 (handle_vFile): Call it to handle "vFile:readlink" packets.
15768
901f9912
UW
157692012-01-20 Pedro Alves <palves@redhat.com>
15770 Ulrich Weigand <ulrich.weigand@linaro.org>
15771
15772 * server.c (handle_v_requests): Only support vAttach and vRun to
15773 start multiple processes when in extended protocol mode.
15774
fc1ab1a0
PA
157752012-01-17 Pedro Alves <palves@redhat.com>
15776
15777 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15778 memalign plus mprotect to allocate the scratch buffer.
15779
7d5d4e98
PA
157802012-01-13 Pedro Alves <palves@redhat.com>
15781
15782 * server.c (attach_inferior): Clear `cont_thread'.
15783
f128d5e9
PA
157842012-01-13 Pedro Alves <palves@redhat.com>
15785
15786 * server.c (main): Avoid infinite loop while detaching/killing
15787 after a longjmp.
15788
06db92f0
DE
157892012-01-09 Doug Evans <dje@google.com>
15790
15791 * server.c (start_inferior): Set last_ptid in --wrapper case.
15792
32d92999
YQ
157932012-01-06 Yao Qi <yao@codesourcery.com>
15794
15795 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15796 defined.
15797 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15798
5e0a92a9
YQ
157992012-01-04 Yao Qi <yao@codesourcery.com>
15800
15801 * tracepoint.c (cmd_qtdp): Print debug message
15802 for static tracepoint.
15803
ae639e8c
YQ
158042012-01-04 Yao Qi <yao@codesourcery.com>
15805
15806 * tracepoint.c (trace_vdebug): Differentiate debug message
15807 between gdbserver and IPA.
15808
f72429c5
YQ
158092012-01-03 Yao Qi <yao@codesourcery.com>
15810
15811 * tracepoint.c (tracepoint_was_hit): Don't collect for
15812 static tracepoint.
15813
12c3e59c
JB
158142012-01-02 Joel Brobecker <brobecker@adacore.com>
15815
15816 * terminal.h: Reformat copyright header.
15817
67827812
JB
158182012-01-02 Joel Brobecker <brobecker@adacore.com>
15819
15820 * server.c (gdbserver_version): Update copyright year.
15821 * gdbreplay.c (gdbreplay_version): Likewise.
15822
3e52c33d
JK
158232011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15824
15825 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15826
15827 Revert:
15828 2011-12-18 Hui Zhu <teawater@gmail.com>
15829 * linux-low.c (linux_create_inferior): Save return value to ret.
15830
66f1260e
HZ
158312011-12-18 Hui Zhu <teawater@gmail.com>
15832
15833 * linux-low.c (linux_create_inferior): Save return value to ret.
15834
e77616d7
DE
158352011-12-16 Doug Evans <dje@google.com>
15836
e7b06c57
DE
15837 * linux-low.c (linux_create_inferior): If stdio connection,
15838 redirect stdin from /dev/null, stdout to stderr.
15839 * remote-utils.c (remote_is_stdio): New static global.
15840 (remote_connection_is_stdio): New function.
15841 (remote_prepare): Handle stdio connection.
15842 (remote_open): Ditto.
15843 (remote_close): Don't close stdin for stdio connections.
15844 (read_prim,write_prim): New functions. Replace all calls to
15845 read/write to these.
15846 * server.c (main): Watch for "-" argument. Move call to
15847 remote_prepare before start_inferior.
15848 * server.h (STDIO_CONNECTION_NAME): New macro.
15849 (remote_connection_is_stdio): Declare.
15850
e77616d7
DE
15851 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15852 in debugging output.
15853
82067193
YQ
158542011-12-15 Yao Qi <yao@codesourcery.com>
15855
15856 * tracepoint.c: Include sys/syscall.h.
15857 (gdb_ust_thread): Remove preprocessor conditional.
15858
82bfbe7e
PA
158592011-12-14 Pedro Alves <pedro@codesourcery.com>
15860
15861 * linux-low.c (linux_detach_one_lwp): Call
15862 the_low_target.prepare_to_resume before detaching.
15863
712c6575
YQ
158642011-12-14 Yao Qi <yao@codesourcery.com>
15865
15866 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15867 of write.
15868
d54d1edf
YQ
158692011-12-14 Yao Qi <yao@codesourcery.com>
15870
15871 * i386-low.c (i386_low_stopped_data_address): Initialize local
15872 variable `control'.
15873
6210a125
PA
158742011-12-13 Pedro Alves <pedro@codesourcery.com>
15875
15876 PR remote/13492
15877
15878 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15879 DR_CONTROL unless necessary. Extend comments.
15880 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15881 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15882
2ece8244
YQ
158832011-12-13 Yao Qi <yao@codesourcery.com>
15884
15885 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15886 macros.
15887 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15888
784867a5
JK
158892011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15890
15891 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15892 Print new debug message for such case.
15893
6bf36717
JK
158942011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15895
15896 Fix overlapping memcpy.
15897 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15898 the read_inferior_memory transfer.
15899 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15900 write_inferior_memory transfer.
15901 (set_fast_tracepoint_jump): New variable buf. Use it for the
15902 read_inferior_memory and write_inferior_memory transfers.
15903 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15904 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15905 Use it for the write_inferior_memory transfer.
15906 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15907 buffers.
15908
50275556
MR
159092011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15910
15911 * linux-low.c (fetch_register, store_register): Make code
15912 consistent, fix formatting.
15913
7325beb4
MR
159142011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15915
15916 * linux-low.c (usr_store_inferior_registers): Factor out code
15917 to handle individual registers into...
15918 (store_register): ... this new function.
15919
c642a434
UW
159202011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15921
15922 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15923 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15924 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15925 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15926 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15927 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15928 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15929 (srv_xmlfiles): Add new XML files.
15930
15931 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15932 and <sys/uio.h>.
15933 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15934 (init_registers_s390_linux32v1): Add prototype.
15935 (init_registers_s390_linux32v2): Likewise.
15936 (init_registers_s390_linux64v1): Likewise.
15937 (init_registers_s390_linux64v2): Likewise.
15938 (init_registers_s390x_linux64v1): Likewise.
15939 (init_registers_s390x_linux64v2): Likewise.
15940 (s390_num_regs): Increment to 52.
15941 (s390_regmap): Add orig_r2 register.
15942 (s390_num_regs_3264): Increment to 68.
15943 (s390_regmap_3264): Add orig_r2 register.
15944 (s390_collect_ptrace_register): Handle orig_r2 register.
15945 (s390_supply_ptrace_register): Likewise.
15946 (s390_fill_last_break): New function.
15947 (s390_store_last_break): Likewise.
15948 (s390_fill_system_call): New function.
15949 (s390_store_system_call): Likewise.
15950 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15951 register sets.
15952 (s390_check_regset): New function.
15953 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15954 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15955 Update target_regsets for available register sets.
15956
2268b414
JK
159572011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15958 Jan Kratochvil <jan.kratochvil@redhat.com>
15959
15960 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15961 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15962 New.
15963 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15964 * linux-low.h (struct process_info_private): New member r_debug.
15965 * server.c (handle_qxfer_libraries): Call
15966 the_target->qxfer_libraries_svr4.
15967 (handle_qxfer_libraries_svr4): New function.
15968 (qxfer_packets): New entry "libraries-svr4".
15969 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15970 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15971 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15972 PACKET_qXfer_libraries_svr4.
15973
d6db1fab
UW
159742011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15975
15976 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15977 PSW address/mask between 8-byte and 16-byte formats.
15978 (s390_supply_ptrace_register): Likewise.
15979 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15980 basic addressing mode bit.
15981
242f5f1c
SS
159822011-11-24 Stan Shebs <stan@codesourcery.com>
15983
15984 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15985
f196051f
SS
159862011-11-17 Stan Shebs <stan@codesourcery.com>
15987
15988 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15989 (tracing_start_time): New global.
15990 (tracing_stop_time): New global.
15991 (tracing_user_name): New global.
15992 (tracing_notes): New global.
15993 (tracing_stop_note): New global.
15994 (cmd_qtstart): Set traceframe_usage, start_time.
15995 (stop_tracing): Set stop_time.
15996 (cmd_qtstatus): Report additional status.
15997 (cmd_qtp): New function.
15998 (handle_tracepoint_query): Call it.
15999 (cmd_qtnotes): New function.
16000 (handle_tracepoint_general_set): Call it.
16001 (get_timestamp): Rename from tsv_get_timestamp.
16002
405f8e94
SS
160032011-11-14 Stan Shebs <stan@codesourcery.com>
16004 Kwok Cheung Yeung <kcy@codesourcery.com>
16005
16006 * linux-x86-low.c (small_jump_insn): New.
16007 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16008 trampoline and error message, build a trampoline and issue a small
16009 jump instruction to it.
16010 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16011 trampoline and error message.
16012 (x86_get_min_fast_tracepoint_insn_len): New.
16013 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16014 * linux-low.h (struct linux_target_ops): Add arguments to
16015 install_fast_tracepoint_jump_pad operation, add new operation.
16016 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16017 arguments.
16018 (linux_get_min_fast_tracepoint_insn_len): New function.
16019 (linux_target_op): Add new operation.
16020 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16021 (gdb_trampoline_buffer_end): Ditto.
16022 (gdb_trampoline_buffer_error): Ditto.
16023 (struct ipa_sym_addresses): Add fields for new IPA variables.
16024 (symbol_list): Add entries for new IPA variables.
16025 (struct tracepoint): Add fields to hold the address range of the
16026 trampoline used by the tracepoint.
16027 (trampoline_buffer_head): New static variable.
16028 (trampoline_buffer_tail): Ditto.
16029 (claim_trampoline_space): New function.
16030 (have_fast_tracepoint_trampoline_buffer): New function.
16031 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16032 structure.
16033 (install_fast_tracepoint): Ditto, also add error buffer argument.
16034 (cmd_qtminftpilen): New function.
16035 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16036 (fast_tracepoint_from_trampoline_address): New function.
16037 (fast_tracepoint_collecting): Handle trampoline as part of jump
16038 pad space.
16039 (set_trampoline_buffer_space): New function.
16040 (initialize_tracepoint): Initialize new IPA variables.
16041 * target.h (struct target_ops): Add arguments to
16042 install_fast_tracepoint_jump_pad operation, add new
16043 get_min_fast_tracepoint_insn_len operation.
16044 (target_get_min_fast_tracepoint_insn_len): New.
16045 (install_fast_tracepoint_jump_pad): Add arguments.
16046 * server.h (IPA_BUFSIZ): Define.
16047 * linux-i386-ipa.c: Include extra header files.
16048 (initialize_fast_tracepoint_trampoline_buffer): New function.
16049 (initialize_low_tracepoint): Call it.
16050 * server.h (set_trampoline_buffer_space): Declare.
16051 (claim_trampoline_space): Ditto.
16052 (have_fast_tracepoint_trampoline_buffer): Ditto.
16053
1e4d1764
YQ
160542011-11-14 Yao Qi <yao@codesourcery.com>
16055
16056 * server.c (handle_query): Handle InstallInTrace for qSupported.
16057 * tracepoint.c (add_tracepoint): Sort list.
16058 (install_tracepoint, download_tracepoint): New.
16059 (cmd_qtdp): Call them to install and download tracepoints.
16060 (sort_tracepoints): Removed.
16061 (cmd_qtstart): Update.
16062
5c73ff4e
YQ
160632011-11-14 Yao Qi <yao@codesourcery.com>
16064
16065 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16066 * mem-break.h: Declare.
16067 * tracepoint.c (cmd_qtstart): Move some code to ...
16068 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16069 New.
16070 (download_tracepoints): Move some code to ...
16071 (download_tracepoint_1): ... here. New.
16072
86a30030
YQ
160732011-11-08 Yao Qi <yao@codesourcery.com>
16074
16075 * remote-utils.c (relocate_instruction): A comment fix.
16076
8d26e50c
JB
160772011-11-07 Joel Brobecker <brobecker@adacore.com>
16078
16079 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16080 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16081 dr_status_mirror and dr_control_mirror from debug_reg_state.
16082 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16083 (i386_initial_stuff): Remove use of deleted globals.
16084 (i386_get_thread_context, i386_set_thread_context,
16085 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16086 from debug_reg_state.
16087
a59306a3
YQ
160882011-11-05 Yao Qi <yao@codesourcery.com>
16089
16090 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16091 address as TPOINT's.
16092
3065dfb6
SS
160932011-11-02 Stan Shebs <stan@codesourcery.com>
16094
16095 * tracepoint.c (agent_mem_read_string): New function.
16096 (eval_agent_expr): Call it for tracenz.
16097 * server.c (handle_query): Report support for tracenz.
16098
fd0d8c7c
YQ
160992011-11-02 Yao Qi <yao@codesourcery.com>
16100
16101 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16102
609086b1
YQ
161032011-11-02 Yao Qi <yao@codesourcery.com>
16104
16105 * target.h: Fix a typo in comment.
16106
b9fd1791
PA
161072011-10-31 Pedro Alves <pedro@codesourcery.com>
16108
16109 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16110 clobber the breakpoints' shadows with fast tracepoint jumps.
16111 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16112 * target.c (write_inferior_memory): Also pass MYADDR down to
16113 check_mem_write.
16114
03583c20
UW
161152011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16116
16117 * configure.ac: Check support for personality routine.
16118 * configure: Regenerate.
16119 * config.in: Likewise.
16120 * linux-low.c: Include <sys/personality.h>.
16121 Define ADDR_NO_RANDOMIZE if necessary.
16122 (linux_create_inferior): Disable address space randomization when
16123 forking inferior, if requested.
16124 (linux_supports_disable_randomization): New function.
16125 (linux_target_ops): Install it.
16126 * server.h (disable_randomization): Declare.
16127 * server.c (disable_randomization): New global variable.
16128 (handle_general_set): Handle QDisableRandomization.
16129 (handle_query): Likewise for qSupported.
16130 (main): Support --disable-randomization and --no-disable-randomization
16131 command line arguments.
16132 * target.h (struct target_ops): Add supports_disable_randomization.
16133 (target_supports_disable_randomization): New macro.
16134
723b724b
MF
161352011-09-29 Mike Frysinger <vapier@gentoo.org>
16136
16137 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16138 ifdef check.
16139 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16140 [!PT_GETDSBT] (target_loadmap): New definition.
16141 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16142 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16143 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16144 and PT_GETDSBT to LINUX_LOADMAP.
16145 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16146 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16147
55329a5c 161482011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16149
16150 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16151 (arm_linux_hwbp_cap): New static variable.
16152 (arm_linux_get_hwbp_cap): Replace by ...
16153 (arm_linux_init_hwbp_cap): ... this new function.
16154 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16155 (arm_linux_get_hw_watchpoint_count): Likewise.
16156 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16157 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16158 (arm_prepare_to_resume): Use perror_with_name instead of error.
16159
55329a5c 161602011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16161
16162 * linux-arm-low.c: Include <signal.h>.
16163 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16164 (struct arm_linux_hwbp_cap): New data type.
16165 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16166 (struct arm_linux_hw_breakpoint): New data type.
16167 (MAX_BPTS, MAX_WPTS): Define.
16168 (struct arch_process_info, struct arch_lwp_info): New data types.
16169 (arm_linux_get_hwbp_cap): New function.
16170 (arm_linux_get_hw_breakpoint_count): Likewise.
16171 (arm_linux_get_hw_watchpoint_count): Likewise.
16172 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16173 (arm_hwbp_control_initialize): Likewise.
16174 (arm_hwbp_control_is_enabled): Likewise.
16175 (arm_hwbp_control_is_initialized): Likewise.
16176 (arm_hwbp_control_disable): Likewise.
16177 (arm_linux_hw_breakpoint_equal): Likewise.
16178 (arm_linux_hw_point_initialize): Likewise.
16179 (struct update_registers_data): New data structure.
16180 (update_registers_callback: New function.
16181 (arm_insert_point): Likewise.
16182 (arm_remove_point): Likewise.
16183 (arm_stopped_by_watchpoint): Likewise.
16184 (arm_stopped_data_address): Likewise.
16185 (arm_new_process): Likewise.
16186 (arm_new_thread): Likewise.
16187 (arm_prepare_to_resume): Likewise.
16188 (the_low_target): Register arm_insert_point, arm_remove_point,
16189 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16190 arm_new_thread, and arm_prepare_to_resume.
16191
6b9801d4
SS
161922011-09-15 Stan Shebs <stan@codesourcery.com>
16193
16194 * server.h (struct emit_ops): Add compare-goto fields.
16195 * tracepoint.c (gdb_agent_op_sizes): New table.
16196 (emit_eq_goto): New function.
16197 (emit_ne_goto): New function.
16198 (emit_lt_goto): New function.
16199 (emit_le_goto): New function.
16200 (emit_gt_goto): New function.
16201 (emit_ge_goto): New function.
16202 (is_goto_target): New function.
16203 (compile_bytecodes): Recognize special cases of compare-goto
16204 combinations and call specialized emitters for them.
16205 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16206 (amd64_emit_ne_goto): New function.
16207 (amd64_emit_lt_goto): New function.
16208 (amd64_emit_le_goto): New function.
16209 (amd64_emit_gt_goto): New function.
16210 (amd64_emit_ge_goto): New function.
16211 (amd64_emit_ops): Add the new functions.
16212 (i386_emit_eq_goto): New function.
16213 (i386_emit_ne_goto): New function.
16214 (i386_emit_lt_goto): New function.
16215 (i386_emit_le_goto): New function.
16216 (i386_emit_gt_goto): New function.
16217 (i386_emit_ge_goto): New function.
16218 (i386_emit_ops): Add the new functions.
16219
bf15cbda
SS
162202011-09-08 Stan Shebs <stan@codesourcery.com>
16221
16222 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16223 (i386_emit_epilogue): Restore %ebx.
16224
943ca1dd
JZ
162252011-08-31 Jie Zhang <jzhang918@gmail.com>
16226
16227 * server.c (step_thread): Remove definition.
16228 (process_serial_event): Don't handle Hs.
16229 * server.h (step_thread): Remove declaration.
16230 * target.c (set_desired_inferior): Remove use of step_thread.
16231
e3deef73
LM
162322011-08-24 Luis Machado <lgustavo@codesourcery.com>
16233
16234 * linux-low.c: Include linux-procfs.h.
16235 (linux_attach_lwp_1): Update comments.
16236 (linux_attach): Scan for existing threads when attaching to a
16237 process that is the tgid.
16238 * Makefile.in: Update dependencies.
16239
13da1c97
LM
162402011-08-24 Luis Machado <lgustavo@codesourcery.com>
16241
16242 * configure.srv: Add linux-procfs.o dependencies.
16243
881127c9
YQ
162442011-08-14 Yao Qi <yao@codesourcery.com>
16245
16246 * target.h (struct target_ops): Fix indent.
16247 * win32-low.c (win32_target_ops): Fix comment.
16248
58dbd541
YQ
162492011-08-14 Andrew Jenner <andrew@codesourcery.com>
16250 Yao Qi <yao@codesourcery.com>
16251
16252 * Makefile.in (clean): Remove tic6x-*.c files.
16253 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16254 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16255 (tic6x-c64xp-linux.c): Likewise.
16256 * configure.srv: Add support for tic6x-*-uclinux.
16257 * linux-tic6x-low.c: New.
16258 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16259
78d85199
YQ
162602011-08-14 Andrew Stubbs <ams@codesourcery.com>
16261 Yao Qi <yao@codesourcery.com>
16262
16263 * target.h (struct target_ops): Add read_loadmap.
16264 * linux-low.c (struct target_loadseg): New type.
16265 (struct target_loadmap): New type.
16266 (linux_read_loadmap): New function.
16267 (linux_target_ops): Add linux_read_loadmap.
16268 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16269 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16270 to NULL.
78d85199 16271
a959a88d
EZ
162722011-08-05 Eli Zaretskii <eliz@gnu.org>
16273
16274 * win32-low.c: Include <stdint.h>.
16275
1ced966e
PA
162762011-07-22 Pedro Alves <pedro@codesourcery.com>
16277
16278 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16279 to the inferior here.
16280 (i386_remove_aligned_watchpoint): Ditto.
16281 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16282 fit part of the watchpoint in the debug registers.
16283 (i386_update_inferior_debug_regs): New.
16284 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16285 registers, and only update the inferior on success.
16286 (i386_low_remove_watchpoint): Ditto.
16287
d26e3629
KY
162882011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16289
16290 * linux-low.c (compare_ints, unique, list_threads, show_process,
16291 linux_core_of_thread): Delete.
16292 (linux_target_ops): Change linux_core_of_thread to
16293 linux_common_core_of_thread.
16294 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16295 * utils.c (malloc_failure): Change type of argument.
16296 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16297 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16298 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16299 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16300 (IPA_OBJS): Add common-utils-ipa.o.
16301 (ptid_h, linux_osdata_h): New macros.
16302 (server_h): Add common/common-utils.h, common/xml-utils.h,
16303 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16304 common/ptid.h.
16305 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16306 ptid.o, buffer.o): New rules.
16307 (linux-low.o): Add common/linux-osdata.h as a dependency.
16308 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16309 * configure.ac: Add AC_HEADER_DIRENT check.
16310 * config.in: Regenerate.
16311 * configure: Regenerate.
16312 * remote-utils.c (xml_escape_text): Delete.
16313 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16314 buffer_xml_printf): Move to common/buffer.c.
16315 * server.c (main): Remove call to initialize_inferiors.
16316 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16317 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16318 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16319 internal_error, gdb_assert, gdb_assert_fail): Delete.
16320 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16321 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16322 common/buffer.h.
16323 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16324 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16325 initialize_inferiors): Delete.
16326
2275a1a7
PA
163272011-07-20 Pedro Alves <pedro@codesourcery.com>
16328
16329 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16330 symbol error.
16331
0a5b1e09
PA
163322011-05-31 Pedro Alves <pedro@codesourcery.com>
16333
16334 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16335 assertion.
16336 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16337
6938fd34
YQ
163382011-05-26 Yao Qi <yao@codesourcery.com>
16339
16340 * Makefile.in (thread-db.o): Track dependence to
16341 common/gdb_thread_db.h.
16342 * thread-db.c: include gdb_thread_db.h from right place.
16343
b481f9e0
TT
163442011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16345
16346 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16347 __FILE__ and __LINE__ to internal_error.
16348
98a5dd13
DE
163492011-05-13 Doug Evans <dje@google.com>
16350
16351 * thread-db.c (try_thread_db_load_from_sdir): New function.
16352 (try_thread_db_load_from_dir): New function.
16353 (thread_db_load_search): Handle $sdir, ignore $pdir.
16354 Remove trying of system directories if search of
16355 libthread-db-search-path fails, that is now done via $sdir.
16356
d248b706
KY
163572011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16358
16359 * server.c (handle_query): Add EnableDisableTracepoints to the list
16360 of supported features.
43aaf8b6 16361 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16362 tracepoints.
43aaf8b6
PA
16363 (cmd_qtenable_disable): New.
16364 (cmd_qtstart): Install tracepoints even if disabled.
16365 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16366 receiving a QTEnable or QTDisable packet.
16367 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16368 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16369 tracepoints.
16370 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16371
84e578fb
DE
163722011-05-10 Doug Evans <dje@google.com>
16373
16374 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16375
71f55dd8
DE
163762011-05-04 Doug Evans <dje@google.com>
16377
16378 * linux-low.c (linux_join): Skip process lookup.
16379 * spu-low.c (spu_join): Ditto.
16380 * server.c (join_inferiors_callback): Delete.
16381 (process_serial_event): For 'D' packet (detach) call join_inferior
16382 directly.
16383
4d393d60
JM
163842011-05-04 Joseph Myers <joseph@codesourcery.com>
16385
16386 * README: Don't mention xscale*-*-linux*.
16387 * configure.srv (xscale*-*-linux*): Don't handle target.
16388
b00ad6ff
NF
163892011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16390
16391 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16392 casting pointers.
16393 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16394 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16395 (i386_emit_void_call_2): Likewise.
16396
af96c192
YQ
163972011-04-26 Yao Qi <yao@codesourcery.com>
16398
43aaf8b6
PA
16399 * linux-low.c: Move common macros to linux-ptrace.h.
16400 Include linux-ptrace.h.
af96c192
YQ
16401 * Makefile.in (linux_ptrace_h): New.
16402 (linux-low.o): Depends on linux-ptrace.h.
16403
03f2bd59
JK
164042011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16405
16406 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16407 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16408 (remote_prepare): New function with most of the TCP code from ...
16409 (remote_open): ... here. Detect PORT here unconditionally. Move also
16410 setting transport_is_reliable.
16411 * server.c (run_once): New variable.
16412 (gdbserver_usage): Document it.
16413 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16414 the first run if RUN_ONCE.
16415 * server.h (run_once, remote_prepare): New declarations.
16416
7a9dd1b2
TT
164172011-04-19 Tom Tromey <tromey@redhat.com>
16418
16419 * win32-low.c (handle_load_dll): Remove duplicate "the".
16420
81239425
PM
164212011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16422
16423 Remove support for old Cygwin 1.5 versions.
16424 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16425 function to avoid warning.
16426 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16427 warning.
16428
9e0627f1
PM
164292011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16430
16431 * gdbserver/server.h (Macro _): Define it if not available.
16432
588eebee
MS
164332011-03-14 Michael Snyder <msnyder@vmware.com>
16434
348af9f7 16435 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16436
43f70d4c
JB
164372011-03-10 Joel Brobecker <brobecker@adacore.com>
16438
16439 * Makefile.in (maintainer-clean realclean distclean): Remove
16440 "make ... subdir_do" command.
16441
348af9f7
MS
164422011-03-10 Michael Snyder <msnyder@vmware.com>
16443
16444 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16445
16446 * server.c (handle_v_run): Free alloced buffer on early return.
16447
e637a4f5
YQ
164482011-03-09 Yao Qi <yao@codesourcery.com>
16449
16450 Revert:
16451 2011-03-04 Yao Qi <yao@codesourcery.com>
16452
16453 * Makefile.in: Remove GNU make feature --directory.
16454
16455 2011-03-05 Yao Qi <yao@codesourcery.com>
16456
16457 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16458 (subdir_do): New make target. Copied from gdb/Makefile.
16459 (maintainer-clean, realclean, distclean, clean): Call corresponding
16460 make targets in common/Makefile.
16461
16462 2011-02-11 Yao Qi <yao@codesourcery.com>
16463
16464 * configure.ac: Call AC_PROG_RANLIB.
16465 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16466 * configure: Regenerate.
16467
e6edda56
JK
164682011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16469
16470 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16471
e5141119
JB
164722011-03-06 Yao Qi <yao@codesourcery.com>
16473
16474 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16475
64794aa4
JB
164762011-03-05 Yao Qi <yao@codesourcery.com>
16477
16478 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16479 (subdir_do): New make target. Copied from gdb/Makefile.
16480 (maintainer-clean, realclean, distclean, clean): Call corresponding
16481 make targets in common/Makefile.
16482
7a762829
YQ
164832011-03-04 Yao Qi <yao@codesourcery.com>
16484
16485 * Makefile.in: Remove GNU make feature --directory.
16486
348af9f7
MS
164872011-03-04 Michael Snyder <msnyder@vmware.com>
16488
16489 * server.c (queue_stop_reply): Call xmalloc not malloc.
16490
164912011-03-02 Michael Snyder <msnyder@vmware.com>
16492
16493 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16494
9f72fee2
MS
164952011-02-28 Michael Snyder <msnyder@vmware.com>
16496
588eebee
MS
16497 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16498 (cmd_qtframe): Ditto.
16499 (cmd_qtbuffer): Ditto.
16500 (cmd_bigqtbuffer): Ditto.
16501
9f72fee2
MS
16502 * utils.c (decimal2str): Initialize 'width' to nine, then
16503 don't mess with it.
16504
8040bd49
UW
165052011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16506
16507 * hostio.c (require_data): Free *data, not data.
16508
7e52cbd0
JK
165092011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16510
16511 * hostio.c (require_data): Use free, not xfree.
16512
9130f83e
MS
165132011-02-27 Michael Snyder <msnyder@vmware.com>
16514
4b812f4e
MS
16515 * server.c (handle_query): Discard unused value.
16516
9130f83e
MS
16517 * hostio.c (require_data): Free malloc memory before returning
16518 error.
16519
69d37113
MS
165202011-02-26 Michael Snyder <msnyder@vmware.com>
16521
16522 * linux-low.c (list_threads): Call closedir for dirent.
16523
35f5825a
MS
165242011-02-27 Michael Snyder <msnyder@vmware.com>
16525
2a589cef
MS
16526 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16527 a case statement falls through.
16528
0adea5f7
MS
16529 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16530
35f5825a
MS
16531 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16532 in comparison.
16533
238f1c74
MS
165342011-02-26 Michael Snyder <msnyder@vmware.com>
16535
16536 * utils.c (decimal2str): Eliminate dead code and dead param.
16537 (pulongest): Drop dead param from call to decimal2str.
16538 (plongest): Ditto.
16539
633ff500
JB
165402011-02-24 Joel Brobecker <brobecker@adacore.com>
16541
16542 Revert the following patch (not approved yet):
16543 2011-02-21 Hui Zhu <teawater@gmail.com>
16544 * tracepoint.c (tp_printf): New function.
16545 (eval_agent_expr): Handle gdb_agent_op_printf.
16546
f9c6ff72
HZ
165472011-02-21 Hui Zhu <teawater@gmail.com>
16548
16549 * tracepoint.c (tp_printf): New function.
16550 (eval_agent_expr): Handle gdb_agent_op_printf.
16551
94d5e490
TT
165522011-02-18 Tom Tromey <tromey@redhat.com>
16553
16554 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16555 (tracepoint.o): Likewise.
16556 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16557 (gdb_agent_op_names): Likewise.
16558
c7f96d2b
TT
165592011-02-18 Tom Tromey <tromey@redhat.com>
16560
16561 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16562 gdb_agent_op_rot>: New constants.
16563 (gdb_agent_op_names): Add pick and roll.
16564 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16565 cases.
16566
0feedb2c
JK
165672011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16568
16569 * aclocal.m4: Regenerated with aclocal-1.11.1.
16570
b3b9301e
PA
165712011-02-14 Pedro Alves <pedro@codesourcery.com>
16572
16573 * server.c (handle_qxfer_traceframe_info): New.
16574 (qxfer_packets): Register "traceframe-info".
16575 (handle_query): Report support for qXfer:traceframe-info:read+.
16576 * tracepoint.c (match_blocktype): New.
16577 (traceframe_find_block_type): Rename to ...
16578 (traceframe_walk_blocks): ... this. Add callback filter argument,
16579 and use it.
16580 (traceframe_find_block_type): New, reimplemented on top of
16581 traceframe_walk_blocks.
16582 (build_traceframe_info_xml): New.
16583 (traceframe_read_info): New.
16584 * server.h (traceframe_read_info): Declare.
16585
4f3e6fb7
YQ
165862011-02-11 Yao Qi <yao@codesourcery.com>
16587
16588 * configure.ac: Call AC_PROG_RANLIB.
16589 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16590 * configure: Regenerate.
16591
764880b7
PA
165922011-02-07 Pedro Alves <pedro@codesourcery.com>
16593
16594 * server.c (gdb_read_memory): Change return semantics to allow
16595 partial transfers.
16596 (handle_search_memory_1): Adjust.
16597 (process_serial_event) <'m' packet>: Handle partial transfers.
16598 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16599
1c79eb8a
PA
166002011-01-28 Pedro Alves <pedro@codesourcery.com>
16601
16602 * regcache.c (init_register_cache): Initialize
16603 regcache->register_status.
16604 (free_register_cache): Release regcache->register_status.
16605 (regcache_cpy): Copy register_status.
16606 (registers_to_string): Print 'x's for unavailable registers.
16607 (supply_register): Mark the register's status valid or
16608 unavailable, depending on whether a buffer was passed in or not.
16609 (supply_register_zeroed): New.
16610 (supply_regblock): Mark the registers' status valid or
16611 unavailable, depending on whether a buffer was passed in or not.
16612 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16613 (struct regcache): New `register_status' field.
16614 (supply_register_zeroed): Declare.
16615 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16616 supply_register_zeroed, rather than passing a NULL buffer to
16617 supply_register.
16618 * tracepoint.c (fetch_traceframe_registers): Update comment.
16619
85724a0e
PA
166202011-01-28 Pedro Alves <pedro@codesourcery.com>
16621
16622 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16623 buffer explicit.
16624
d08aafef
PA
166252011-01-25 Pedro Alves <pedro@codesourcery.com>
16626
16627 * server.h (decode_xfer_write): Change prototype.
16628 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16629 and don't extract the annex here.
16630 * server.c (decode_xfer_read): Remove `annex' parameter,
16631 and don't extract the annex here.
16632 (decode_xfer): New.
16633 (struct qxfer): New.
16634 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16635 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16636 (handle_qxfer_statictrace): New functions, abstracted out from
16637 handle_query, and made to use the struct qxfer interface.
16638 (handle_threads_qxfer_proper): Rename to ...
16639 (handle_qxfer_threads_proper): ... this.
16640 (handle_threads_qxfer): Rename to ...
16641 (handle_qxfer_threads): ... this. Adjust.
16642 (qxfer_packets): New array.
16643 (handle_qxfer): New function.
16644 (handle_query): Use handle_qxfer.
16645
493e2a69
MS
166462011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16647
16648 * gdbreplay.c: Shorten lines of >= 80 columns.
16649 * linux-low.c: Ditto.
16650 * linux-ppc-low.c: Ditto.
16651 * linux-s390-low.c: Ditto.
16652 * linux-sparc-low.c: Ditto.
16653 * linux-x86-low.c: Ditto.
16654 * linux-xtensa-low.c: Ditto.
16655 * mem-break.c: Ditto.
16656 * nto-low.c: Ditto.
16657 * regcache.h: Ditto.
16658 * remote-utils.c: Ditto.
16659 * server.c: Ditto.
16660 * server.h: Ditto.
16661 * thread-db.c: Ditto.
16662 * tracepoint.c: Ditto.
16663 * utils.c: Ditto.
16664 * win32-low.h: Ditto.
16665
44944448
JB
166662011-01-05 Joel Brobecker <brobecker@adacore.com>
16667
16668 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16669 update.
16670
71ce852c
JB
166712011-01-01 Joel Brobecker <brobecker@adacore.com>
16672
16673 * server.c (gdbserver_version): Update copyright year in version
16674 output.
16675 * gdbreplay.c (gdbreplay_version): Ditto.
16676
eb826dc6
MF
166772010-12-29 Jie Zhang <jie.zhang@analog.com>
16678
16679 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16680 * linux-bfin-low.c: New file.
16681 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16682 PT_DATA_ADDR for BFIN targets.
16683 * Makefile.in (SFILES): Add linux-bfin-low.c.
16684 (clean): Remove reg-bfin.c.
16685 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16686 * README: Mention supported Blackfin targets.
16687
39ab222a
MF
166882010-12-23 Mike Frysinger <vapier@gentoo.org>
16689
16690 * .gitignore: New file.
16691
a1f2ce7d
MF
166922010-11-16 Mike Frysinger <vapier@gentoo.org>
16693
16694 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16695
f474844c
JZ
166962010-10-22 Jie Zhang <jie@codesourcery.com>
16697
16698 * Makefile.in: Add FLAGS_TO_PASS variable.
16699 (install): Remove dependency of install-only and recursively
16700 invoke make for install-only.
16701
f1048712
DE
167022010-10-04 Doug Evans <dje@google.com>
16703
16704 * Makefile.in (uninstall): Use $(DESTDIR).
16705
b53a1623
PA
167062010-09-24 Pedro Alves <pedro@codesourcery.com>
16707
e6ee044d
PA
16708 PR gdb/11842
16709
b53a1623
PA
16710 * linux-x86-low.c (compat_siginfo_from_siginfo)
16711 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16712 si_code is < 0. Check for si_code == SI_TIMER before checking for
16713 si_code < 0.
16714
fa1bd1e4
JB
167152010-09-13 Joel Brobecker <brobecker@adacore.com>
16716
16717 * lynx-i386-low.c: New file.
16718 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16719
47fac8f8
JB
167202010-09-13 Joel Brobecker <brobecker@adacore.com>
16721
16722 * lynx-low.c (ptrace_request_to_str): Remove handling for
16723 request values that have been removed in LynxOS 5.x.
16724
1adfc54d
JB
167252010-09-13 Joel Brobecker <brobecker@adacore.com>
16726
16727 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16728 <ptrace.h>
16729
c2a66c29
NS
167302010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16731
16732 * configure.ac: Add --enable-inprocess-agent option.
16733 * configure: Rebuilt.
16734
32fcada3
YQ
167352010-09-06 Yao Qi <yao@codesourcery.com>
16736
16737 * linux-low.c (linux_kill): Remove unused variable.
16738 (linux_stabilize_threads): Likewise.
16739 * server.c (start_inferior): Likewise.
16740 (queue_stop_reply_callback): Likewise.
16741 * tracepoint.c (do_action_at_tracepoint): Likewise.
16742
0cccb683
YQ
167432010-09-06 Yao Qi <yao@codesourcery.com>
16744
16745 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16746 on return.
16747
423ec54c
JK
167482010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16749
16750 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16751
12ac6819
PA
167522010-09-06 Pedro Alves <pedro@codesourcery.com>
16753
16754 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16755 "$(IPA_DEPFILES)".
16756
8ed54b31
JB
167572010-09-01 Joel Brobecker <brobecker@adacore.com>
16758
16759 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16760 gdbserver/lynx-ppc-low.c: New files.
16761 * Makefile.in (lynx_low_h): New variable.
16762 (lynx-low.o, lynx-ppc-low.o): New rules.
16763 * configure.ac: On LynxOS, link with -lnetinet.
16764 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16765 * configure: regenerate.
16766
bb0116a4
JB
167672010-09-01 Joel Brobecker <brobecker@adacore.com>
16768
16769 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16770 * configure.ac: Add check for vasprintf and vsnprintf.
16771 * configure, config.in: Regenerate.
16772 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16773
a778ab81 167742010-09-01 Joel Brobecker <brobecker@adacore.com>
16775
16776 * gdbreplay.c: Move include of alloca.h up, next to include of
16777 malloc.h.
16778 * server.h: Add include of malloc.h.
16779 * mem-break.c: Remove include of malloc.h.
16780 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16781
8b034a19 167822010-09-01 Joel Brobecker <brobecker@adacore.com>
16783
16784 * Makefile.in (memmem.o): Build with -Wno-error.
16785
167862010-09-01 Joel Brobecker <brobecker@adacore.com>
16787
16788 * utils.c (xsnprintf): Make non-static.
16789 * server.h: Add xsnprintf declaration.
16790 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16791 replace calls to snprintf by calls to xsnprintf throughout.
16792
167932010-09-01 Joel Brobecker <brobecker@adacore.com>
16794
16795 * configure.ac: Add configure check for alloca.
16796 * configure, config.in: Regenerate.
16797 * server.h: Include alloca.h if it exists.
16798 * gdbreplay.c: Include alloca.h if it exists.
16799
1a981360
PA
168002010-08-28 Pedro Alves <pedro@codesourcery.com>
16801
16802 * linux-low.c (__SIGRTMIN): Define if not already defined.
16803 (linux_create_inferior): Check for __ANDROID__ rather than
16804 __SIGRTMIN.
16805 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16806 are already deferred.
16807 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16808 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16809 stopped and already has a pending signal to report.
16810 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16811 a pending signal to report or is moving out of a jump pad.
16812 (linux_init_signals): Check for __ANDROID__ rather than
16813 __SIGRTMIN.
16814
b4d51a55
PA
168152010-08-28 Pedro Alves <pedro@codesourcery.com>
16816
16817 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16818 debug_threads check. Avoid a linear search when not doing debug
16819 output.
16820
ec48365d
PA
168212010-08-27 Pedro Alves <pedro@codesourcery.com>
16822
16823 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16824 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16825 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16826 (process_event): Change local fd's type to gdb_fildes_t.
16827 (create_file_handler): Adjust prototype.
16828 (delete_file_handler): Adjust prototype.
16829 (handle_file_event): Adjust prototype. Use pfildes.
16830 (create_file_event): Adjsut prototype.
16831 * remote-utils.c (remote_desc, listen_desc): Change type to
16832 gdb_fildes_t.
16833 * server.h: New gdb_fildes_t typedef.
16834 [USE_WIN32API]: Include winsock2.h.
16835 (delete_file_handler, add_file_handler): Adjust prototypes.
16836 (pfildes): Declare.
16837 * utils.c (pfildes): New.
16838
854d88f0
PA
168392010-08-27 Pedro Alves <pedro@codesourcery.com>
16840
16841 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16842 * configure: Regenerate.
16843
0146f85b
PA
168442010-08-27 Pedro Alves <pedro@codesourcery.com>
16845
16846 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16847 (linux_done_accessing_memory): ... this.
16848 (linux_target_ops): Adjust.
16849 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16850 * nto-low.c (nto_target_ops): Adjust comment.
16851 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16852 * spu-low.c (spu_target_ops): Adjust comment.
16853 * target.h (target_ops): Rename unprepare_to_access_memory field
16854 to done_accessing_memory.
16855 (unprepare_to_access_memory): Rename to ...
16856 (done_accessing_memory): ... this.
16857
90d74c30
PA
168582010-08-26 Pedro Alves <pedro@codesourcery.com>
16859
16860 * linux-low.c (linux_prepare_to_access_memory): New.
16861 (linux_unprepare_to_access_memory): New.
16862 (linux_target_ops): Install them.
16863 * server.c (read_memory): Rename to ...
16864 (gdb_read_memory): ... this. Use
16865 prepare_to_access_memory/prepare_to_access_memory.
16866 (write_memory): Rename to ...
16867 (gdb_write_memory): ... this. Use
16868 prepare_to_access_memory/prepare_to_access_memory.
16869 (handle_search_memory_1): Adjust.
16870 (process_serial_event): Adjust.
16871 * target.h (struct target_ops): New fields
16872 prepare_to_access_memory and unprepare_to_access_memory.
16873 (prepare_to_access_memory, unprepare_to_access_memory): New.
16874 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16875 prepare_to_access_memory/prepare_to_access_memory.
16876 * nto-low.c (nto_target_ops): Adjust.
16877 * spu-low.c (spu_target_ops): Adjust.
16878 * win32-low.c (win32_target_ops): Adjust.
16879
fd467969
PA
168802010-08-26 Pedro Alves <pedro@codesourcery.com>
16881
16882 * Makefile.in (WARN_CFLAGS): Get it from configure.
16883 (WERROR_CFLAGS): New.
16884 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16885 * configure.ac: Introduce --enable-werror, which adds -Werror to
16886 the compiler command line. Enabled by default. Disable with
16887 --disable-werror. Add -Wdeclaration-after-statement
16888 Wpointer-arith and -Wformat-nonliteral to warning flags.
16889 * configure: Regenerate.
16890
331e2f5f
PA
168912010-08-26 Pedro Alves <pedro@codesourcery.com>
16892
16893 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16894
e581f2b4
PA
168952010-08-26 Pedro Alves <pedro@codesourcery.com>
16896
16897 * gdbreplay.c (remote_error): New.
16898 (gdbchar): New.
16899 (expect): Use gdbchar. Check for error reading from GDB.
16900 Clarify sync error output.
16901 (play): Check for errors writing to GDB.
16902 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16903 * remote-utils.c (getpkt): Check for errors writing to the remote
16904 descriptor.
16905
3c11dd79
PA
169062010-08-25 Pedro Alves <pedro@codesourcery.com>
16907
16908 * linux-low.c (linux_wait_1): Move non-debugging code out of
16909 `debug_threads' control.
16910
d20a8ad9
PA
169112010-08-25 Pedro Alves <pedro@codesourcery.com>
16912
16913 * linux-low.c (linux_wait_1): Don't set last_status here.
16914 * server.c (push_event, queue_stop_reply_callback): Assert we're
16915 not pushing a TARGET_WAITKIND_IGNORE event.
16916 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16917 (myresume, handle_target_event): Set the thread's last_resume_kind
16918 and last_status from the target returned status.
16919
964e4306
PA
169202010-08-25 Pedro Alves <pedro@codesourcery.com>
16921
16922 PR threads/10729
16923
16924 * linux-x86-low.c (update_debug_registers_callback): New.
16925 (i386_dr_low_set_addr): Use it.
16926 (i386_dr_low_get_addr): New.
16927 (i386_dr_low_set_control): Use update_debug_registers_callback.
16928 (i386_dr_low_get_control): New.
16929 (i386_dr_low_get_status): Adjust.
16930 * linux-low.c (linux_stop_lwp): New.
16931 * linux-low.h (linux_stop_lwp): Declare.
16932
16933 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16934 argument instead of a i386_debug_reg_state.
16935 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16936 a i386_debug_reg_state.
16937 (i386_insert_aligned_watchpoint): Adjust.
16938 (i386_remove_aligned_watchpoint): Adjust.
16939 (i386_low_stopped_data_address): Read the debug registers from the
16940 inferior instead of from the mirrors.
16941 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16942 (i386_dr_low_get_addr): Declare.
16943 (i386_dr_low_get_control): Declare.
16944 (i386_dr_low_get_status): Change prototype.
16945
16946 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16947 (i386_dr_low_get_addr): New.
16948 (i386_dr_low_get_control): New.
16949 (i386_dr_low_get_status): Adjust prototype. Return
16950 dr_status_mirror.
16951 (i386_initial_stuff): Clear dr_status_mirror and
16952 dr_control_mirror.
16953 (i386_get_thread_context): Adjust.
16954 (i386_set_thread_context): Adjust.
16955 (i386_thread_added): Adjust.
16956
5f21a75b
PA
169572010-08-24 Pedro Alves <pedro@codesourcery.com>
16958
16959 * linux-low.h (linux_thread_area): Delete declaration.
16960
3e4c1235
TS
169612010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16962
16963 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16964 after its termination.
16965
1971b033
PA
169662010-08-09 Pedro Alves <pedro@codesourcery.com>
16967
16968 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16969 (gdb_wants_all_stopped): Delete.
16970 (linux_wait_1): Don't call them.
16971 * server.c (handle_v_cont): Tag all threads as want-stopped.
16972 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16973 stopped as "client-wants-stopped".
16974
310444ac
PA
169752010-07-31 Pedro Alves <pedro@codesourcery.com>
16976
16977 * Makefile.in (signals_h): New.
16978 (server_h): Depend on it.
16979 (server.o): Don't depend on $(signals_def).
16980 (signals.o): Depend on $(signals_def).
16981
a19cae16
JK
169822010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16983
16984 * Makefile.in (signals_def): New.
16985 (server_h): Append include/gdb/signals.h and signals_def.
16986 (server.o): Append signals_def.
16987
30d50328
JK
169882010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16989
16990 * server.c (handle_target_event): Use target_signal_to_host for
16991 resume_info.sig initialization.
16992 * target.h (struct thread_resume) <sig>: New comment.
16993
5c3216e2
OS
169942010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16995
c6f46ca0
OS
16996 * server.c (handle_query): strcpy() the returned string from paddress()
16997 instead of sprintf().
5c3216e2
OS
16998 * utils.c (paddress): Return phex_nz().
16999
6bd31874
JB
170002010-07-07 Joel Brobecker <brobecker@adacore.com>
17001
17002 * server.c (handle_v_cont): Call mourn_inferior if process
17003 just exited.
17004 (myresume): Likewise.
17005
0fb4aa4b
PA
170062010-07-01 Pedro Alves <pedro@codesourcery.com>
17007
17008 Static tracepoints, and integration with UST.
17009
17010 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17011 * mem-break.c (uninsert_all_breakpoints)
17012 (reinsert_all_breakpoints): New.
17013 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17014 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17015 (gdb_agent_ust_loaded, helper_thread_id)
17016 (gdb_agent_helper_thread_id): New macros.
17017 (struct ipa_sym_addresses): Add addr_ust_loaded,
17018 addr_helper_thread_id, addr_cmd_buf.
17019 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17020 (in_process_agent_loaded_ust): New.
17021 (write_e_ust_not_loaded): New.
17022 (maybe_write_ipa_ust_not_loaded): New.
17023 (struct collect_static_trace_data_action): New.
17024 (enum tracepoint_type) <static_tracepoint>: New.
17025 (struct tracepoint) <handle>: Mention static tracepoints.
17026 (struct static_tracepoint_ctx): New.
17027 (CMD_BUF_SIZE): New.
17028 (add_tracepoint_action): Handle static tracepoint actions.
17029 (unprobe_marker_at): New.
17030 (clear_installed_tracepoints): Handle static tracepoints.
17031 (cmd_qtdp): Handle static tracepoints.
17032 (probe_marker_at): New.
17033 (cmd_qtstart): Handle static tracepoints.
17034 (response_tracepoint): Handle static tracepoints.
17035 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17036 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17037 (get_context_regcache): Handle static tracepoints.
17038 (do_action_at_tracepoint): Handle static tracepoint actions.
17039 (traceframe_find_block_type): Handle static trace data blocks.
17040 (traceframe_read_sdata): New.
17041 (download_tracepoints): Download static tracepoint actions.
17042 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17043 (GDB_PROBE_NAME): New.
17044 (ust_ops): New.
17045 (GET_UST_SYM): New.
17046 (USTF): New.
17047 (dlsym_ust): New.
17048 (ust_marker_to_static_tracepoint): New.
17049 (gdb_probe): New.
17050 (collect_ust_data_at_tracepoint): New.
17051 (gdb_ust_probe): New.
17052 (UNIX_PATH_MAX, SOCK_DIR): New.
17053 (gdb_ust_connect_sync_socket): New.
17054 (resume_thread, stop_thread): New.
17055 (run_inferior_command): New.
17056 (init_named_socket): New.
17057 (gdb_ust_socket_init): New.
17058 (cstr_to_hexstr): New.
17059 (next_st): New.
17060 (first_marker, next_marker): New.
17061 (response_ust_marker): New.
17062 (cmd_qtfstm, cmd_qtsstm): New.
17063 (unprobe_marker_at, probe_marker_at): New.
17064 (cmd_qtstmat, gdb_ust_thread): New.
17065 (gdb_ust_init): New.
17066 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17067 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17068 (ST_REGENTRY): New.
17069 (x86_64_st_collect_regmap): New.
17070 (X86_64_NUM_ST_COLLECT_GREGS): New.
17071 (AMD64_RIP_REGNUM): New.
17072 (supply_static_tracepoint_registers): New.
17073 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17074 (ST_REGENTRY): New.
17075 (i386_st_collect_regmap): New.
17076 (i386_NUM_ST_COLLECT_GREGS): New.
17077 (supply_static_tracepoint_registers): New.
17078 * server.c (handle_query): Handle qXfer:statictrace:read.
17079 <qSupported>: Report support for StaticTracepoints, and
17080 qXfer:statictrace:read features.
17081 * server.h (traceframe_read_sdata)
17082 (supply_static_tracepoint_registers): Declare.
17083 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17084 (unpack_varlen_hex): Include in IPA build.
17085 * Makefile.in (ustlibs, ustinc): New.
17086 (IPA_OBJS): Add remote-utils-ipa.o.
17087 ($(IPA_LIB)): Link -ldl and -lpthread.
17088 (UST_CFLAGS): New.
17089 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17090 * config.in, configure: Regenerate.
17091
9e4344e5
PA
170922010-06-20 Ian Lance Taylor <iant@google.com>
17093 Pedro Alves <pedro@codesourcery.com>
17094
17095 * linux-x86-low.c (always_true): Delete.
17096 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17097 trying to fool the compiler with always_true.
17098
c6beb2cb
PA
170992010-06-20 Pedro Alves <pedro@codesourcery.com>
17100
17101 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17102 conditions in gdbserver.
17103
d2ed6730
UW
171042010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17105
17106 * spu-low.c (spu_read_memory): Wrap around local store limit.
17107 (spu_write_memory): Likewise.
17108
4e29fb54
PA
171092010-06-15 Pedro Alves <pedro@codesourcery.com>
17110
17111 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17112 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17113 LONGEST uses.
17114 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17115 uses.
17116 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17117 uses with LONGEST uses.
17118
6a271cae
PA
171192010-06-14 Stan Shebs <stan@codesourcery.com>
17120 Pedro Alves <pedro@codesourcery.com>
17121
17122 Bytecode compiler.
17123
17124 * linux-x86-low.c: Include limits.h.
17125 (add_insns): New.
17126 (always_true): New.
17127 (EMIT_ASM): New.
17128 (EMIT_ASM32): New.
17129 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17130 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17131 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17132 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17133 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17134 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17135 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17136 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17137 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17138 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17139 (amd64_emit_void_call_2): New.
17140 (amd64_emit_ops): New.
17141 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17142 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17143 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17144 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17145 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17146 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17147 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17148 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17149 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17150 (i386_emit_stack_adjust, i386_emit_int_call_1)
17151 (i386_emit_void_call_2): New.
17152 (i386_emit_ops): New.
17153 (x86_emit_ops): New.
17154 (the_low_target): Install x86_emit_ops.
17155 * server.h (struct emit_ops): New.
17156 (get_raw_reg_func_addr): Declare.
17157 (current_insn_ptr, emit_error): Declare.
17158 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17159 (set_trace_state_variable_value): New defines.
17160 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17161 addr_get_trace_state_variable_value and
17162 addr_set_trace_state_variable_value.
17163 (symbol_list): New fields for get_raw_reg,
17164 get_trace_state_variable_value and set_trace_state_variable_value.
17165 (condfn): New typedef.
17166 (struct tracepoint): New field `compiled_cond'.
17167 (do_action_at_tracepoint): Clear compiled_cond.
17168 (get_trace_state_variable_value, set_trace_state_variable_value):
17169 Export in the IPA.
17170 (condition_true_at_tracepoint): If there's a compiled condition,
17171 run that.
17172 (current_insn_ptr, emit_error): New globals.
17173 (struct bytecode_address): New.
17174 (get_raw_reg_func_addr): New.
17175 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17176 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17177 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17178 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17179 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17180 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17181 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17182 (compile_tracepoint_condition, compile_bytecodes): New.
17183 * target.h (emit_ops): Forward declare.
17184 (struct target_ops): New field emit_ops.
17185 (target_emit_ops): New.
17186 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17187 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17188 * linux-low.c (linux_emit_ops): New.
17189 (linux_target_ops): Install it.
17190 * linux-low.h (struct linux_target_ops): New field emit_ops.
17191
92b72907
UW
171922010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17193
17194 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17195 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17196
fa593d66
PA
171972010-06-01 Pedro Alves <pedro@codesourcery.com>
17198 Stan Shebs <stan@codesourcery.com>
17199
17200 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17201 (all): Depend on $(extra_libraries).
17202 (install-only): Install the IPA.
17203 (IPA_OBJS, IPA_LIB): New.
17204 (clean): Remove the IPA lib.
17205 (IPAGENT_CFLAGS): New.
17206 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17207 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17208 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17209 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17210 * configure.ac: Check for atomic builtins support in the compiler.
17211 (IPA_DEPFILES, extra_libraries): Define.
17212 * configure.srv (ipa_obj): Add description.
17213 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17214 (i[34567]86-*-linux*): Set ipa_obj.
17215 (x86_64-*-linux*): Set ipa_obj.
17216 * linux-low.c (stabilizing_threads): New.
17217 (supports_fast_tracepoints): New.
17218 (linux_detach): Stabilize threads before detaching.
17219 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17220 the lwp is either not stabilizing, or is moving out of a jump pad.
17221 (linux_fast_tracepoint_collecting): New.
17222 (maybe_move_out_of_jump_pad): New.
17223 (enqueue_one_deferred_signal): New.
17224 (dequeue_one_deferred_signal): New.
17225 (linux_wait_for_event_1): If moving out of a jump pad, defer
17226 pending signals to later.
17227 (linux_stabilize_threads): New.
17228 (linux_wait_1): Check if threads need moving out of jump pads, and
17229 do it if so.
17230 (stuck_in_jump_pad_callback): New.
17231 (move_out_of_jump_pad_callback): New.
17232 (lwp_running): New.
17233 (linux_resume_one_lwp): Handle moving out of jump pads.
17234 (linux_set_resume_request): Dequeue deferred signals.
17235 (need_step_over_p): Also step over fast tracepoint jumps.
17236 (start_step_over): Also uninsert fast tracepoint jumps.
17237 (finish_step_over): Also reinsert fast tracepoint jumps.
17238 (linux_install_fast_tracepoint_jump): New.
17239 (linux_target_ops): Install linux_stabilize_threads and
17240 linux_install_fast_tracepoint_jump_pad.
17241 * linux-low.h (linux_target_ops) <get_thread_area,
17242 install_fast_tracepoint_jump_pad>: New fields.
17243 (struct lwp_info) <collecting_fast_tracepoint,
17244 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17245 (linux_get_thread_area): Declare.
17246 * linux-x86-low.c (jump_insn): New.
17247 (x86_get_thread_area): New.
17248 (append_insns): New.
17249 (push_opcode): New.
17250 (amd64_install_fast_tracepoint_jump_pad): New.
17251 (i386_install_fast_tracepoint_jump_pad): New.
17252 (x86_install_fast_tracepoint_jump_pad): New.
17253 (the_low_target): Install x86_get_thread_area and
17254 x86_install_fast_tracepoint_jump_pad.
17255 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17256 (struct fast_tracepoint_jump): New.
17257 (fast_tracepoint_jump_insn): New.
17258 (fast_tracepoint_jump_shadow): New.
17259 (find_fast_tracepoint_jump_at): New.
17260 (fast_tracepoint_jump_here): New.
17261 (delete_fast_tracepoint_jump): New.
17262 (set_fast_tracepoint_jump): New.
17263 (uninsert_fast_tracepoint_jumps_at): New.
17264 (reinsert_fast_tracepoint_jumps_at): New.
17265 (set_breakpoint_at): Use write_inferior_memory.
17266 (uninsert_raw_breakpoint): Use write_inferior_memory.
17267 (check_mem_read): Mask out fast tracepoint jumps.
17268 (check_mem_write): Mask out fast tracepoint jumps.
17269 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17270 (set_fast_tracepoint_jump): Declare.
17271 (delete_fast_tracepoint_jump)
17272 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17273 (reinsert_fast_tracepoint_jumps_at): Declare.
17274 * regcache.c: Don't compile many functions when building the
17275 in-process agent library.
17276 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17277 the register buffer in the heap.
17278 (free_register_cache): If the register buffer isn't owned by the
17279 regcache, don't free it.
17280 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17281 pre-existing register caches.
17282 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17283 type.
17284 (convert_ascii_to_int): : Constify `from' parameter type.
17285 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17286 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17287 the needed buffer in-place.
17288 (relocate_instruction): New.
17289 * server.c (handle_query) <qSymbols>: If the target supports
17290 tracepoints, give it a chance of looking up symbols. Report
17291 support for fast tracepoints.
17292 (handle_status): Stabilize threads.
17293 (process_serial_event): Adjust.
17294 * server.h (struct fast_tracepoint_jump): Forward declare.
17295 (struct process_info) <fast_tracepoint_jumps>: New field.
17296 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17297 (decode_X_packet, decode_M_packet): Adjust.
17298 (relocate_instruction): Declare.
17299 (in_process_agent_loaded): Declare.
17300 (tracepoint_look_up_symbols): Declare.
17301 (struct fast_tpoint_collect_status): Declare.
17302 (fast_tracepoint_collecting): Declare.
17303 (force_unlock_trace_buffer): Declare.
17304 (handle_tracepoint_bkpts): Declare.
17305 (initialize_low_tracepoint)
17306 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17307 * target.h (struct target_ops) <stabilize_threads,
17308 install_fast_tracepoint_jump_pad>: New fields.
17309 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17310 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17311 [HAVE_STDINT_H]: Include stdint.h.
17312 (trace_debug_1): Rename to ...
17313 (trace_vdebug): ... this.
17314 (trace_debug): Rename to ...
17315 (trace_debug_1): ... this. Add `level' parameter.
17316 (trace_debug): New.
17317 (ATTR_USED, ATTR_NOINLINE): New.
17318 (IP_AGENT_EXPORT): New.
17319 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17320 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17321 (about_to_request_buffer_space, trace_buffer_is_full)
17322 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17323 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17324 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17325 (traceframe_write_count, traceframes_created)
17326 (trace_state_variables)
17327 New renaming defines.
17328 (struct ipa_sym_addresses): New.
17329 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17330 (symbol_list): New.
17331 (ipa_sym_addrs): New.
17332 (all_tracepoint_symbols_looked_up): New.
17333 (in_process_agent_loaded): New.
17334 (write_e_ipa_not_loaded): New.
17335 (maybe_write_ipa_not_loaded): New.
17336 (tracepoint_look_up_symbols): New.
17337 (debug_threads) [IN_PROCESS_AGENT]: New.
17338 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17339 (UNKNOWN_SIDE_EFFECTS): New.
17340 (stop_tracing): New.
17341 (flush_trace_buffer): New.
17342 (stop_tracing_bkpt): New.
17343 (flush_trace_buffer_bkpt): New.
17344 (read_inferior_integer): New.
17345 (read_inferior_uinteger): New.
17346 (read_inferior_data_pointer): New.
17347 (write_inferior_data_pointer): New.
17348 (write_inferior_integer): New.
17349 (write_inferior_uinteger): New.
17350 (struct collect_static_trace_data_action): Delete.
17351 (enum tracepoint_type): New.
17352 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17353 <actions_str, step_actions, step_actions_str>: Only include in
17354 GDBserver.
fa593d66
PA
17355 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17356 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17357 (tracepoints): Use IP_AGENT_EXPORT.
17358 (last_tracepoint): Don't include in the IPA.
17359 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17360 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17361 (alloced_trace_state_variables): New.
17362 (trace_state_variables): Use IP_AGENT_EXPORT.
17363 (traceframe_t): Delete unused variable.
17364 (circular_trace_buffer): Don't include in the IPA.
17365 (trace_buffer_start): Delete.
17366 (struct trace_buffer_control): New.
17367 (trace_buffer_free): Delete.
17368 (struct ipa_trace_buffer_control): New.
17369 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17370 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17371 New.
17372 (trace_buffer_ctrl): New.
17373 (TRACE_BUFFER_CTRL_CURR): New.
17374 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17375 Reimplement as macros.
17376 (trace_buffer_wrap): Delete.
17377 (traceframe_write_count, traceframe_read_count)
17378 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17379 (struct tracepoint_hit_ctx) <type>: New field.
17380 (struct fast_tracepoint_ctx): New.
17381 (memory_barrier): New.
17382 (cmpxchg): New.
17383 (record_tracepoint_error): Update atomically in the IPA.
17384 (clear_inferior_trace_buffer): New.
17385 (about_to_request_buffer_space): New.
17386 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17387 updating the same buffer.
17388 (add_tracepoint): Default the tracepoint's type to trap
17389 tracepoint, and orig_size to -1.
17390 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17391 internal variables.
17392 (create_trace_state_variable): New parameter `gdb'. Handle it.
17393 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17394 (cmd_qtdp): Handle fast tracepoints.
17395 (cmd_qtdv): Adjust.
17396 (max_jump_pad_size): New.
17397 (gdb_jump_pad_head): New.
17398 (get_jump_space_head): New.
17399 (claim_jump_space): New.
17400 (sort_tracepoints): New.
17401 (MAX_JUMP_SIZE): New.
17402 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17403 IPA.
17404 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17405 support. Upload fast traceframes, and delete internal IPA
17406 breakpoints.
17407 (stop_tracing_handler): New.
17408 (flush_trace_buffer_handler): New.
17409 (cmd_qtstop): Upload fast tracepoints.
17410 (response_tracepoint): Handle fast tracepoints.
17411 (tracepoint_finished_step): Upload fast traceframes. Set the
17412 tracepoint hit context's tracepoint type.
17413 (handle_tracepoint_bkpts): New.
17414 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17415 type. Add comment about fast tracepoints.
17416 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17417 non-existing action_str field.
17418 (get_context_regcache): Handle fast tracepoints.
17419 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17420 to the regcache.
17421 (fast_tracepoint_from_jump_pad_address): New.
17422 (fast_tracepoint_from_ipa_tpoint_address): New.
17423 (collecting_t): New.
17424 (force_unlock_trace_buffer): New.
17425 (fast_tracepoint_collecting): New.
17426 (collecting): New.
17427 (gdb_collect): New.
17428 (write_inferior_data_ptr): New.
17429 (target_tp_heap): New.
17430 (target_malloc): New.
17431 (download_agent_expr): New.
17432 (UALIGN): New.
17433 (download_tracepoints): New.
17434 (download_trace_state_variables): New.
17435 (upload_fast_traceframes): New.
17436 (IPA_FIRST_TRACEFRAME): New.
17437 (IPA_NEXT_TRACEFRAME_1): New.
17438 (IPA_NEXT_TRACEFRAME): New.
17439 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17440 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17441 (gdb_jump_pad_buffer_end): New.
17442 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17443 (initialize_tracepoint): Adjust.
17444 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17445 buffer. Initialize the low module.
17446 * utils.c (PREFIX, TOOLNAME): New.
17447 (malloc_failure): Use PREFIX.
17448 (error): In the IPA, an error causes an exit.
17449 (fatal, warning): Use PREFIX.
17450 (internal_error): Use TOOLNAME.
17451 (NUMCELLS): Increase to 10.
17452 * configure, config.in: Regenerate.
17453
d149dd1d
PA
174542010-06-01 Pedro Alves <pedro@codesourcery.com>
17455
17456 * server.c (handle_query) <qSupported>: Do two passes over the
17457 qSupported string to avoid nesting strtok.
17458
f6528abd
JK
174592010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17460
17461 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17462 (CDEPS): New.
17463 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17464 -Wl,--dynamic-list.
17465 * configure: Regenerate.
17466 * proc-service.list: New.
17467
ca2a87a0
JK
174682010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17469
17470 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17471 New comment.
17472
363a6e9f
OS
174732010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17474
17475 * gdbreplay.c (remote_open): Check error return from socket() call by
17476 its equality to -1 not by it being negative.
17477 * remote-utils.c (remote_open): Likewise.
17478
d23b6cb1
PA
174792010-05-23 Pedro Alves <pedro@codesourcery.com>
17480
17481 * config.h: Regenerate.
17482
28d3cf85
MK
174832010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17484
17485 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17486 doesn't provide PTRACE_GET_THREAD_AREA.
17487
fea36a59
MK
174882010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17489
17490 * linux-m68k-low.c: Include <asm/ptrace.h>
17491 (ps_get_thread_area): Implement.
17492
24b066ba
DE
174932010-05-03 Doug Evans <dje@google.com>
17494
17495 * event-loop.c (struct callback_event): New struct.
17496 (callback_list): New global.
17497 (append_callback_event, delete_callback_event): New functions.
17498 (process_callback): New function.
17499 (start_event_loop): Call it.
17500 * remote-utils.c (NOT_SCHEDULED): Define.
17501 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17502 moved out of readchar.
17503 (readchar): Rewrite. Call reschedule before returning.
17504 (reset_readchar): New function.
17505 (remote_close): Call it.
17506 (process_remaining, reschedule): New functions.
17507 * server.h (callback_handler_func): New typedef.
17508 (append_callback_event, delete_callback_event): Declare.
17509
9836d6ea
PA
175102010-05-03 Pedro Alves <pedro@codesourcery.com>
17511
17512 * proc-service.c (ps_pglobal_lookup): Use
17513 thread_db_look_up_one_symbol.
17514 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17515 parameter. Use it instead of all_symbols_looked_up.
17516 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17517 field.
17518 (all_symbols_looked_up): Don't declare.
17519 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17520 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17521 field.
17522 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17523 Set all_symbols_looked_up here.
17524 (thread_db_look_up_one_symbol): New.
17525 (thread_db_get_tls_address): Adjust.
17526 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17527 thread_db object on the heap, and tentatively set it in the
17528 process structure.
17529 (thread_db_init): Don't set all_symbols_looked_up here.
17530 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17531
7984d532
PA
175322010-05-03 Pedro Alves <pedro@codesourcery.com>
17533
17534 * linux-low.c (linux_kill, linux_detach): Adjust.
17535 (status_pending_p_callback): Remove redundant statement. Check
17536 for !TARGET_WAITIKIND_IGNORE, instead of
17537 TARGET_WAITKIND_STOPPED.
17538 (handle_tracepoints): Make sure LWP is locked. Adjust.
17539 (linux_wait_for_event_1): Adjust.
17540 (linux_cancel_breakpoints): New.
17541 (unsuspend_one_lwp): New.
17542 (unsuspend_all_lwps): New.
17543 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17544 (send_sigstop_callback): Change return type to int, add new
17545 `except' parameter and handle it.
17546 (suspend_and_send_sigstop_callback): New.
17547 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17548 pass them down. If SUSPEND, also increment the lwp's suspend
17549 count.
17550 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17551 (need_step_over_p): Don't consider suspended LWPs.
17552 (start_step_over): Adjust.
17553 (proceed_one_lwp): Change return type to int, add new `except'
17554 parameter and handle it.
17555 (unsuspend_and_proceed_one_lwp): New.
17556 (proceed_all_lwps): Use find_inferior instead of
17557 for_each_inferior.
17558 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17559 also decrement the suspend count of LWPs. Pass `except' down,
17560 instead of hacking its suspend count.
17561 (linux_pause_all): Add `freeze' parameter. Adjust.
17562 (linux_unpause_all): New.
17563 (linux_target_ops): Install linux_unpause_all.
17564 * server.c (handle_status): Adjust.
17565 * target.h (struct target_ops): New fields `unpause_all' and
17566 `cancel_breakpoints'. Add new parameter to `pause_all'.
17567 (pause_all): Add new `freeze' parameter.
17568 (unpause_all): New.
17569 (cancel_breakpoints): New.
17570 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17571 cancel breakpoints.
17572 (cmd_qtstart): Pause threads.
17573 (stop_tracing): Pause threads, and cancel breakpoints.
17574 * win32-low.c (win32_target_ops): Adjust.
17575
e471f25b
PA
175762010-05-03 Pedro Alves <pedro@codesourcery.com>
17577
17578 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17579 the inferior right away from here...
17580 (linux_wait_1): ... to here, and adjust to check the thread's
17581 last_resume_kind instead of the lwp's step or stop_expected flags.
17582
1915ef4f
PA
175832010-05-02 Pedro Alves <pedro@codesourcery.com>
17584
17585 * README: Use consistent `GDB' and `GDBserver' spellings.
17586
f9e39928
PA
175872010-05-02 Pedro Alves <pedro@codesourcery.com>
17588
17589 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17590 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17591 (linux_detach_one_lwp): Assume the lwp is stopped.
17592 (any_thread_of): Delete.
17593 (linux_detach): Stop all lwps here. Don't blindly delete all
17594 breakpoints.
17595 (delete_lwp_callback): New.
17596 (linux_mourn): Delete all lwps of the process that is gone.
17597 (linux_wait_1): Don't delete the last lwp of the process here.
17598 * mem-break.h (mark_breakpoints_out): Declare.
17599 * mem-break.c (mark_breakpoints_out): New.
17600 (free_all_breakpoints): Use it.
17601 * server.c (handle_target_event): If the process is gone, mark
17602 breakpoints out.
17603 * thread-db.c (struct thread_db) <create_bp>: New field.
17604 (thread_db_enable_reporting): Fix prototype. Store a thread event
17605 breakpoint reference in the thread_db struct.
17606 (thread_db_load_search): Clear the thread_db object.
17607 (try_thread_db_load_1): Ditto.
17608 (switch_to_process): New.
17609 (disable_thread_event_reporting): Use it.
17610 (remove_thread_event_breakpoints): New.
17611 (thread_db_detach, thread_db_mourn): Use it.
17612
1e7fc18c
PA
176132010-05-01 Pedro Alves <pedro@codesourcery.com>
17614
17615 * linux-low.c (linux_enable_event_reporting): New.
17616 (linux_wait_for_event_1, handle_extended_wait): Use it.
17617
02fc4de7
PA
176182010-04-30 Pedro Alves <pedro@codesourcery.com>
17619
17620 * linux-low.c (linux_kill_one_lwp, linux_kill)
17621 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17622 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17623 SIGSTOP even if the LWP is stopped.
17624 (send_sigstop_callback): New.
17625 (stop_all_lwps): Use send_sigstop_callback instead.
17626 (linux_resume_one_thread): Adjust.
17627 (proceed_one_lwp): Still proceed an LWP that the client has
17628 requested to stop, if we haven't reported it as stopped yet. Make
17629 sure that LWPs the client want stopped, have a pending SIGSTOP.
17630
bc3b5632
DE
176312010-04-26 Doug Evans <dje@google.com>
17632
ae1ada35
DE
17633 * server.c (handle_general_set): Make static.
17634
bc3b5632
DE
17635 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17636 Print received char after testing for error/eof instead of before.
17637 (input_interrupt): Tweak comment.
17638
65730243
DE
176392010-04-23 Doug Evans <dje@google.com>
17640
17641 * server.c (start_inferior): Print inferior argv if --debug.
17642
a8ae7dc0
AR
176432010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17644
17645 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17646 * nto-x86-low.c: Include server.h
17647
1c07cc19
PM
176482010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17649
17650 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17651 be consistent with other sources of this directory.
17652 (init_registers_amd64): Correct name of source file of this function
17653 in the comment.
17654
e0a61e09
PM
176552010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17656
17657 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17658 64-bit executables.
17659
54709339
PM
176602010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17661
17662 * win32-i386-low.c: Add 64-bit support.
17663 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17664 (init_registers_amd64): Declare.
17665 (mappings): Add 64-bit version of array.
17666 (init_windows_x86): New function.
17667 (the_low_target): Change init_arch field to init_windows_x86.
17668
e8f0053d
PM
176692010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17670
17671 * win32-low.c: Adapt to support also 64-bit architecture.
17672 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17673 (get_image_name): Use SIZE_T type for local variable `done'.
17674 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17675 (toolhelp_get_dll_name): Idem.
17676 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17677 Use uintptr_t typecast to avoid warning.
17678 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17679 (handle_exception): Use phex_nz to avoid warning.
17680 (win32_wait): Remove unused local variable `process'.
17681
c481e77e
PM
176822010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17683
17684 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17685 `amd64-avx.o'.
17686
12ea4b69
PM
176872010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17688
17689 * configure.ac: Use `ws2_32' library for srv_mingw.
17690 * configure: Regenerate.
17691 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17692 * remote-utils.c: Likewise.
17693
f6d1620c
L
176942010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17695
17696 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17697 if __x86_64__ is defined.
17698
8e642873
PM
176992010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17700
17701 * configure: Regenerate.
17702
711e434b
PM
177032010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17704
17705 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17706 * target.h (target_ops): New get_tib_address field.
17707 * win32-low.h (win32_thread_info): Add thread_local_base field.
17708 * win32-low.c (child_add_thread): Add tlb argument.
17709 Set thread_local_base field to TLB.
17710 (get_child_debug_event): Adapt to child_add_thread change.
17711 (win32_get_tib_address): New function.
17712 (win32_target_ops): Set get_tib_address field to
17713 win32_get_tib_address.
17714 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17715
505106cd
PA
177162010-04-12 Pedro Alves <pedro@codesourcery.com>
17717
505106cd
PA
17718 * linux-low.c (linux_mourn): Also remove the process.
17719 * server.c (handle_target_event): Don't remove the process here.
17720 * nto-low.c (nto_mourn): New.
17721 (nto_target_ops): Install it.
17722 * spu-low.c (spu_mourn): New.
17723 (spu_target_ops): Install it.
17724 * win32-low.c (win32_mourn): New.
17725 (win32_target_ops): Install it.
17726
e8470a06
PA
177272010-04-12 Pedro Alves <pedro@codesourcery.com>
17728
17729 * server.h (buffer_xml_printf): Remove redundant `;'.
17730
45ba0d02
PA
177312010-04-12 Pedro Alves <pedro@codesourcery.com>
17732
17733 * regcache.c (set_register_cache): Invalidate regcaches before
17734 changing the register cache layout.
17735 (regcache_invalidate_one): Allow a NULL regcache.
17736 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17737 regcaches before changing the register cache layout or the target
17738 regsets.
17739
59e04013
L
177402010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17741
17742 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17743 variable warning on Linux/x86-64.
17744
8336d594
PA
177452010-04-11 Pedro Alves <pedro@codesourcery.com>
17746
17747 GDBserver disconnected tracing support.
17748
17749 * linux-low.c (linux_remove_process): Delete.
17750 (add_lwp): Don't set last_resume_kind here.
17751 (linux_kill): Use `mourn'.
17752 (linux_detach): Use `thread_db_detach', and `mourn'.
17753 (linux_mourn): New.
17754 (linux_attach_lwp_1): Adjust comment.
17755 (linux_attach): last_resume_kind moved the thread_info; adjust.
17756 (status_pending_p_callback): Adjust.
17757 (linux_wait_for_event_1): Adjust.
17758 (count_events_callback, select_singlestep_lwp_callback)
17759 (select_event_lwp_callback, cancel_breakpoints_callback)
17760 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17761 (proceed_one_lwp): Adjust.
17762 (linux_async): Add debug output.
17763 (linux_thread_stopped): New.
17764 (linux_pause_all): New.
17765 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17766 linux_pause_all.
17767 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17768 (thread_db_free): Delete declaration.
17769 (thread_db_detach, thread_db_mourn): Declare.
17770 * thread-db.c (thread_db_init): Use thread_db_mourn.
17771 (thread_db_free): Delete, split in two.
17772 (disable_thread_event_reporting): New.
17773 (thread_db_detach): New.
17774 (thread_db_mourn): New.
17775
17776 * server.h (struct thread_info) <last_resume_kind>: New field.
17777 <attached>: Add comment.
17778 <gdb_detached>: New field.
17779 (handler_func): Change return type to int.
17780 (handle_serial_event, handle_target_event): Ditto.
17781 (gdb_connected): Declare.
17782 (tracing): Delete.
17783 (disconnected_tracing): Declare.
17784 (stop_tracing): Declare.
17785
17786 * server.c (handle_query) <qSupported>: Report support for
17787 disconnected tracing.
17788 (queue_stop_reply_callback): Account for running threads.
17789 (gdb_wants_thread_stopped): New.
17790 (gdb_wants_all_threads_stopped): New.
17791 (gdb_reattached_process): New.
17792 (handle_status): Clear the `gdb_detached' flag of all processes.
17793 In all-stop, stop all threads.
17794 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17795 (process_serial_event): If the remote connection breaks, or if an
17796 exit was forced with "monitor exit", force an event loop exit.
17797 Handle disconnected tracing on detach.
17798 (handle_serial_event): Adjust.
17799 (handle_target_event): If GDB isn't connected, forward events back
17800 to the inferior, unless the last process exited, in which case,
17801 exit gdbserver. Adjust interface.
17802
17803 * remote-utils.c (remote_open): Don't block in accept. Instead
17804 register an event loop source on the listen socket file
17805 descriptor. Refactor bits into ...
17806 (listen_desc): ... this new global.
17807 (gdb_connected): ... this new function.
17808 (enable_async_notification): ... this new function.
17809 (handle_accept_event): ... this new function.
17810 (remote_close): Clear remote_desc.
17811
17812 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17813
17814 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17815 New fields.
17816 (mourn_inferior): Define.
17817 (target_process_qsupported): Avoid the dangling else problem.
17818 (thread_stopped): Define.
17819 (pause_all): Define.
17820 (target_waitstatus_to_string): Declare.
17821 * target.c (target_waitstatus_to_string): New.
17822
17823 * tracepoint.c (tracing): Make extern.
17824 (disconnected_tracing): New.
17825 (stop_tracing): Make extern. Handle tracing stops due to GDB
17826 disconnecting.
17827 (cmd_qtdisconnected): New.
17828 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17829 (handle_tracepoint_general_set): Handle QTDisconnected.
17830
17831 * event-loop.c (event_handler_func): Change return type to int.
17832 (process_event): Bail out if the event handler wants the event
17833 loop to stop.
17834 (handle_file_event): Ditto.
17835 (start_event_loop): Bail out if the event handler wants the event
17836 loop to stop.
17837
17838 * nto-low.c (nto_target_ops): Adjust.
17839 * spu-low.c (spu_wait): Don't remove the process here.
17840 (spu_target_ops): Adjust.
17841 * win32-low.c (win32_wait): Don't remove the process here.
17842 (win32_target_ops): Adjust.
17843
5d267c4c
PA
178442010-04-11 Pedro Alves <pedro@codesourcery.com>
17845
17846 * regcache.c (realloc_register_cache): Invalidate inferior's
17847 regcache before recreating it.
17848
623ccd72
PA
178492010-04-09 Pedro Alves <pedro@codesourcery.com>
17850
17851 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17852
219f2f23
PA
178532010-04-09 Stan Shebs <stan@codesourcery.com>
17854 Pedro Alves <pedro@codesourcery.com>
17855
17856 * server.h (LONGEST): New.
17857 (struct thread_info) <while_stepping>: New field.
17858 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17859 Declare.
17860 (initialize_tracepoint, handle_tracepoint_general_set)
17861 (handle_tracepoint_query, tracepoint_finished_step)
17862 (tracepoint_was_hit, release_while_stepping_state_list):
17863 (current_traceframe): Declare.
17864 * server.c (handle_general_set): Handle tracepoint packets.
17865 (read_memory): New.
17866 (write_memory): New.
17867 (handle_search_memory_1): Use read_memory.
17868 (handle_query): Report support for conditional tracepoints, trace
17869 state variables, and tracepoint sources. Handle tracepoint
17870 queries.
17871 (main): Initialize the tracepoints module.
17872 (process_serial_event): Handle traceframe reads/writes.
17873
17874 * linux-low.c (handle_tracepoints): New.
17875 (linux_wait_1): Call it.
17876 (linux_resume_one_lwp): Handle while-stepping.
17877 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17878 (linux_target_ops): Install them.
17879 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17880 New field.
17881 * linux-x86-low.c (x86_supports_tracepoints): New.
17882 (the_low_target). Install it.
17883
17884 * mem-break.h (delete_breakpoint): Declare.
17885 * mem-break.c (delete_breakpoint): Make external.
17886
17887 * target.h (struct target_ops): Add `supports_tracepoints',
17888 `read_pc', and `write_pc' fields.
17889 (target_supports_tracepoints): Define.
17890 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17891 (phex_nz): New.
17892
17893 * regcache.h (struct regcache) <registers_owned>: New field.
17894 (init_register_cache, regcache_cpy): Declare.
17895 (regcache_read_pc, regcache_write_pc): Declare.
17896 (register_cache_size): Declare.
17897 (supply_regblock): Declare.
17898 * regcache.c (init_register_cache): New.
17899 (new_register_cache): Use it.
17900 (regcache_cpy): New.
17901 (register_cache_size): New.
17902 (supply_regblock): New.
17903 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 17904
219f2f23
PA
17905 * tracepoint.c: New.
17906
17907 * Makefile.in (OBS): Add tracepoint.o.
17908 (tracepoint.o): New rule.
17909
3a13a53b
L
179102010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17911
17912 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17913 (i386-mmx.o): New.
17914 (i386-mmx.c): Likewise.
17915 (i386-mmx-linux.o): Likewise.
17916 (i386-mmx-linux.c): Likewise.
17917
17918 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17919 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17920 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17921 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17922
17923 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17924 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17925 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17926
1570b33e
L
179272010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17928
17929 * Makefile.in (clean): Updated.
17930 (i386-avx.o): New.
17931 (i386-avx.c): Likewise.
17932 (i386-avx-linux.o): Likewise.
17933 (i386-avx-linux.c): Likewise.
17934 (amd64-avx.o): Likewise.
17935 (amd64-avx.c): Likewise.
17936 (amd64-avx-linux.o): Likewise.
17937 (amd64-avx-linux.c): Likewise.
17938
17939 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17940 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17941 (srv_amd64_regobj): Add amd64-avx.o.
17942 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17943 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17944 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17945 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17946 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17947 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17948 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17949
17950 * i387-fp.c: Include "i386-xstate.h".
17951 (i387_xsave): New.
17952 (i387_cache_to_xsave): Likewise.
17953 (i387_xsave_to_cache): Likewise.
17954 (x86_xcr0): Likewise.
17955
17956 * i387-fp.h (i387_cache_to_xsave): Likewise.
17957 (i387_xsave_to_cache): Likewise.
17958 (x86_xcr0): Likewise.
17959
17960 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17961 * linux-crisv32-low.c (target_regsets): Likewise.
17962 * linux-m68k-low.c (target_regsets): Likewise.
17963 * linux-mips-low.c (target_regsets): Likewise.
17964 * linux-ppc-low.c (target_regsets): Likewise.
17965 * linux-s390-low.c (target_regsets): Likewise.
17966 * linux-sh-low.c (target_regsets): Likewise.
17967 * linux-sparc-low.c (target_regsets): Likewise.
17968 * linux-xtensa-low.c (target_regsets): Likewise.
17969
17970 * linux-low.c: Include <sys/uio.h>.
17971 (regsets_fetch_inferior_registers): Support nt_type.
17972 (regsets_store_inferior_registers): Likewise.
17973 (linux_process_qsupported): New.
17974 (linux_target_ops): Add linux_process_qsupported.
17975
17976 * linux-low.h (regset_info): Add nt_type.
17977 (linux_target_ops): Add process_qsupported.
17978
17979 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17980 and <sys/uio.h>.
17981 (init_registers_i386_avx_linux): New.
17982 (init_registers_amd64_avx_linux): Likewise.
17983 (xmltarget_i386_linux_no_xml): Likewise.
17984 (xmltarget_amd64_linux_no_xml): Likewise.
17985 (PTRACE_GETREGSET): Likewise.
17986 (PTRACE_SETREGSET): Likewise.
17987 (x86_fill_xstateregset): Likewise.
17988 (x86_store_xstateregset): Likewise.
17989 (use_xml): Likewise.
17990 (x86_linux_update_xmltarget): Likewise.
17991 (x86_linux_process_qsupported): Likewise.
17992 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17993 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17994 init_registers_i386_linux here. Call
17995 x86_linux_update_xmltarget.
17996 (the_low_target): Add x86_linux_process_qsupported.
17997
17998 * server.c (handle_query): Call target_process_qsupported.
17999
18000 * target.h (target_ops): Add process_qsupported.
18001 (target_process_qsupported): New.
18002
fc7238bb
PA
180032010-04-03 Pedro Alves <pedro@codesourcery.com>
18004
18005 * inferiors.c (add_thread): Set last_status kind to
18006 TARGET_WAITKIND_IGNORE.
18007 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18008 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18009 (linux_wait_1): Move `thread' local definition to block that uses
18010 it. Don't NULL initialize `event_child'.
18011 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18012 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18013 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18014
bdabb078
PA
180152010-04-01 Pedro Alves <pedro@codesourcery.com>
18016
18017 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18018 an extended waitstatus, or by a watchpoint.
18019 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18020 thread was stepping or has been stopped by a watchpoint.
18021
d3bbe7a0
PA
180222010-04-01 Pedro Alves <pedro@codesourcery.com>
18023
18024 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18025 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18026 of another, then delete the previous, and validate all
18027 breakpoints.
18028 (validate_inserted_breakpoint): New.
18029 (delete_disabled_breakpoints): New.
18030 (validate_breakpoints): New.
18031 (check_mem_read): Validate breakpoints before trusting their
18032 shadow. Delete disabled breakpoints.
18033 (check_mem_write): Validate breakpoints before trusting they
18034 should be inserted. Delete disabled breakpoints.
18035 * mem-break.h (validate_breakpoints):
18036 * server.c (handle_query): Validate breakpoints when we see a
18037 qSymbol query.
18038
8b07ae33
PA
180392010-04-01 Pedro Alves <pedro@codesourcery.com>
18040
18041 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18042 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18043 if we could tell there's a GDB breakpoint at stop_pc.
18044 (need_step_over_p): Don't do a step over if we find a GDB
18045 breakpoint at the resume PC.
18046
18047 * mem-break.c (struct raw_breakpoint): New.
18048 (enum bkpt_type): New type `gdb_breakpoint'.
18049 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18050 fields. New field `raw'.
18051 (find_raw_breakpoint_at): New.
18052 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18053 breakpoint instead.
18054 (set_breakpoint_at): Adjust.
18055 (delete_raw_breakpoint): New.
18056 (release_breakpoint): New.
18057 (delete_breakpoint): Rename to...
18058 (delete_breakpoint_1): ... this. Add proc parameter. Use
18059 release_breakpoint. Return ENOENT.
18060 (delete_breakpoint): Reimplement.
18061 (find_breakpoint_at): Delete.
18062 (find_gdb_breakpoint_at): New.
18063 (delete_breakpoint_at): Delete.
18064 (set_gdb_breakpoint_at): New.
18065 (delete_gdb_breakpoint_at): New.
18066 (gdb_breakpoint_here): New.
18067 (set_reinsert_breakpoint): Use release_breakpoint.
18068 (uninsert_breakpoint): Rename to ...
18069 (uninsert_raw_breakpoint): ... this.
18070 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18071 (reinsert_raw_breakpoint): Change parameter type to
18072 raw_breakpoint.
18073 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18074 instead.
18075 (check_breakpoints): Adjust. Use release_breakpoint.
18076 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18077 (breakpoint_inserted_here): Ditto.
18078 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18079 Don't trust the breakpoint's shadow if it is not inserted.
18080 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18081 (delete_all_breakpoints): Adjust.
18082 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18083 use delete_breakpoint_1.
18084
18085 * mem-break.h (breakpoints_supported): Delete declaration.
18086 (set_gdb_breakpoint_at): Declare.
18087 (gdb_breakpoint_here): Declare.
18088 (delete_breakpoint_at): Delete.
18089 (delete_gdb_breakpoint_at): Declare.
18090
18091 * server.h (struct raw_breakpoint): Forward declare.
18092 (struct process_info): New field `raw_breakpoints'.
18093
18094 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18095 breakpoints.
18096
6bf5e0ba
PA
180972010-03-24 Pedro Alves <pedro@codesourcery.com>
18098
18099 * linux-low.c (status_pending_p_callback): Fix comment.
18100 (linux_wait_for_event_1): Move most of the internal breakpoint
18101 handling from here...
18102 (linux_wait_1): ... to here.
18103 (count_events_callback): New.
18104 (select_singlestep_lwp_callback): New.
18105 (select_event_lwp_callback): New.
18106 (cancel_breakpoints_callback): New.
18107 (select_event_lwp): New.
18108 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18109 priority to all LWPs that have had events that should be reported
18110 to the client. Cancel breakpoints when about to reporting the
18111 event to the client, not while stopping lwps. No longer cancel
18112 finished single-steps here.
18113 (cancel_finished_single_step): Delete.
18114 (cancel_finished_single_steps): Delete.
18115
414a389f
PA
181162010-03-24 Pedro Alves <pedro@codesourcery.com>
18117
18118 * mem-break.c (enum bkpt_type): New.
18119 (struct breakpoint): New field `type'.
18120 (set_breakpoint_at): Change return type to struct breakpoint
18121 pointer. Set type to `other_breakpoint' by default.
18122 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18123 in the breakpoint list.
18124 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18125 (reinsert_breakpoint): Rename to ...
18126 (reinsert_raw_breakpoint): ... this.
18127 (reinsert_breakpoints_at): Adjust.
18128 * mem-break.h (struct breakpoint): Declare.
18129 (set_breakpoint_at): Change return type to struct breakpoint
18130 pointer.
18131
2280c721
PA
181322010-03-24 Pedro Alves <pedro@codesourcery.com>
18133
18134 * server.c (handle_query): Assign, not compare.
18135
d50171e4
PA
181362010-03-24 Pedro Alves <pedro@codesourcery.com>
18137
18138 Teach linux gdbserver to step-over-breakpoints.
18139
18140 * linux-low.c (can_hardware_single_step): New.
18141 (supports_breakpoints): New.
18142 (handle_extended_wait): If stopping threads, read the stop pc of
18143 the new cloned LWP.
18144 (get_pc): New.
18145 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18146 low target doesn't support retrieving the PC.
18147 (add_lwp): Set last_resume_kind to resume_continue.
18148 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18149 (linux_attach): Don't clear stop_expected. Set the lwp's
18150 last_resume_kind to resume_stop.
18151 (linux_detach_one_lwp): Don't check for removed breakpoints.
18152 (check_removed_breakpoint): Delete.
18153 (status_pending_p): Rename to ...
18154 (status_pending_p_callback): ... this. Don't check for removed
18155 breakpoints. Don't consider threads that are stopped from GDB's
18156 perspective.
18157 (linux_wait_for_lwp): Always read the stop_pc here.
18158 (cancel_breakpoint): New.
18159 (step_over_bkpt): New global.
18160 (linux_wait_for_event_1): Implement stepping over breakpoints.
18161 (gdb_wants_lwp_stopped): New.
18162 (gdb_wants_all_stopped): New.
18163 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18164 single-step traps here. Store the thread's last reported target
18165 wait status.
18166 (send_sigstop): Don't clear stop_expected. Always set it,
18167 instead.
18168 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18169 (cancel_finished_single_step): New.
18170 (cancel_finished_single_steps): New.
18171 (wait_for_sigstop): Don't cancel finished single-step traps here.
18172 (linux_resume_one_lwp): Don't check for removed breakpoints.
18173 Don't set `step' on non-hardware step archs.
18174 (linux_set_resume_request): Ignore resume_stop requests if already
18175 stopping or stopped. Set the lwp's last_resume_kind.
18176 (resume_status_pending_p): Don't check for removed breakpoints.
18177 (need_step_over_p): New.
18178 (start_step_over): New.
18179 (finish_step_over): New.
18180 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18181 requests. Clear the thread's last reported target waitstatus.
18182 Don't use the `suspended' flag. Don't consider pending breakpoints.
18183 (linux_resume): Start a step-over if necessary.
18184 (proceed_one_lwp): New.
18185 (proceed_all_lwps): New.
18186 (unstop_all_lwps): New.
18187 * linux-low.h (struct lwp_info): Rewrite comment for the
18188 `suspended' flag. Add the `stop_pc' field. Delete the
18189 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18190 Add `'last_resume_kind' and `need_step_over' fields.
18191 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18192 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18193 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18194 (set_raw_breakpoint_at): New.
18195 (set_breakpoint_at): Rewrite to use it.
18196 (reinsert_breakpoint_handler): Delete.
18197 (set_reinsert_breakpoint): New.
18198 (reinsert_breakpoint_by_bp): Delete.
18199 (delete_reinsert_breakpoints): New.
18200 (uninsert_breakpoint): Rewrite.
18201 (uninsert_breakpoints_at): New.
18202 (reinsert_breakpoint): Rewrite.
18203 (reinsert_breakpoints_at): New.
18204 (check_breakpoints): Rewrite.
18205 (breakpoint_here): New.
18206 (breakpoint_inserted_here): New.
18207 (check_mem_read): Adjust.
18208 * mem-break.h (breakpoints_supported, breakpoint_here)
18209 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18210 (reinsert_breakpoint_by_bp): Delete declaration.
18211 (delete_reinsert_breakpoints): Declare.
18212 (reinsert_breakpoint): Delete declaration.
18213 (reinsert_breakpoints_at): Declare.
18214 (uninsert_breakpoint): Delete declaration.
18215 (uninsert_breakpoints_at): Declare.
18216 (check_breakpoints): Adjust prototype.
18217 * server.h: Adjust include order.
18218 (struct thread_info): Declare here. Add a `last_status' field.
18219
30ba68cb
MS
182202010-03-23 Michael Snyder <msnyder@vmware.com>
18221
18222 * server.c (crc32): New function.
18223 (handle_query): Add handling for 'qCRC:' request.
18224
b9a881c2
PA
182252010-03-23 Pedro Alves <pedro@codesourcery.com>
18226
18227 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18228 lwp had been stopped by a watchpoint.
18229
e92d13d5
PA
182302010-03-16 Pedro Alves <pedro@codesourcery.com>
18231
18232 * server.h (internal_error): Declare.
18233 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18234 * utils.c (internal_error): New function.
18235
64daa791
AS
182362010-03-15 Andreas Schwab <schwab@redhat.com>
18237
18238 * configure.srv: Fix typo setting srv_regobj.
18239
f52cd8cd
PA
182402010-03-15 Pedro Alves <pedro@codesourcery.com>
18241
18242 * linux-low.c (fetch_register): Avoid passing a non string literal
18243 format to `error'.
18244 (usr_store_inferior_registers): Ditto.
18245
93ae6fdc
PA
182462010-03-14 Pedro Alves <pedro@codesourcery.com>
18247
18248 * linux-low.c (linux_write_memory): Bail out early if peeking
18249 memory failed.
18250
c3adc08c
PA
182512010-03-14 Pedro Alves <pedro@codesourcery.com>
18252
18253 * linux-low.h (struct lwp_info): New fields
18254 `stopped_by_watchpoint' and `stopped_data_address'.
18255 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18256 here, and cache them in the lwp object.
18257 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18258 directly.
18259 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18260 field.
18261 (linux_stopped_by_watchpoint): Rewrite.
18262 (linux_stopped_data_address): Rewrite.
18263
bce522a2
PA
182642010-03-06 Simo Melenius <simo.melenius@iki.fi>
18265
18266 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18267 switching the current inferior, not before.
18268
90884b2b
L
182692010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18270
18271 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18272 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18273 i386-linux.c and amd64-linux.c.
18274 (reg-i386.o): Removed.
18275 (reg-i386.c): Likewise.
18276 (reg-i386-linux.o): Likewise.
18277 (reg-i386-linux.c): Likewise.
18278 (reg-x86-64.o): Likewise.
18279 (reg-x86-64.c): Likewise.
18280 (reg-x86-64-linux.o): Likewise.
18281 (reg-x86-64-linux.c): Likewise.
18282 (i386.o): New.
18283 (i386.c): Likewise.
18284 (i386-linux.o): Likewise.
18285 (i386-linux.c): Likewise.
18286 (amd64.o): Likewise.
18287 (amd64.c): Likewise.
18288 (amd64-linux.o): Likewise.
18289 (amd64-linux.c): Likewise.
18290
18291 * configure.srv (srv_i386_regobj): New.
18292 (srv_i386_linux_regobj): Likewise.
18293 (srv_amd64_regobj): Likewise.
18294 (srv_amd64_linux_regobj): Likewise.
18295 (srv_i386_32bit_xmlfiles): Likewise.
18296 (srv_i386_64bit_xmlfiles): Likewise.
18297 (srv_i386_xmlfiles): Likewise.
18298 (srv_amd64_xmlfiles): Likewise.
18299 (srv_i386_linux_xmlfiles): Likewise.
18300 (srv_amd64_linux_xmlfiles): Likewise.
18301 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18302 srv_xmlfiles to $srv_i386_xmlfiles.
18303 (i[34567]86-*-mingw32ce*): Likewise.
18304 (i[34567]86-*-mingw*): Likewise.
18305 (i[34567]86-*-nto*): Likewise.
18306 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18307 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18308 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18309 (x86_64-*-linux*): Likewise.
18310
18311 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18312 (init_registers_amd64_linux): New.
18313 (x86_arch_setup): Replace init_registers_x86_64_linux with
18314 init_registers_amd64_linux.
18315
193f13e6
MK
183162010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18317
18318 * configure.ac: Check for libdl. If it is not available link against
18319 static libthread_db.
18320 * configure: Regenerate.
18321
85d721b8
PA
183222010-02-22 Pedro Alves <pedro@codesourcery.com>
18323
18324 PR9605
18325
18326 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18327 handing a read watchpoint.
18328 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18329
6076632b
DE
183302010-02-12 Doug Evans <dje@google.com>
18331
18332 * linux-low.c (linux_supports_tracefork_flag): Document.
18333 (linux_look_up_symbols): Add comment.
18334
3327ccf7
L
183352010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18336
18337 * regcache.c (supply_register): Clear regcache if buf is NULL.
18338
0718675c 183392010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18340 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18341
18342 * inferiors.c (find_inferior): Add function documentation.
18343 (unloaded_dll): Handle the case where the unloaded dll has not
18344 been previously registered in the dll list.
18345
177321bd
DJ
183462010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18347
18348 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18349 (thumb2_breakpoint): New.
18350 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18351
2b009048
DJ
183522010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18353
18354 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18355 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18356 breakpoints.
18357
3be029c7
PA
183582010-01-21 Pedro Alves <pedro@codesourcery.com>
18359
18360 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18361
18f5de3b
JK
183622010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18363
18364 * linux-s390-low.c (s390_collect_ptrace_register)
18365 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18366
3743bb4f
DE
183672010-01-21 Doug Evans <dje@google.com>
18368
14ce3065
DE
18369 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18370 (PTRACE_ARG4_TYPE): New macro.
18371 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18372 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18373 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18374 (usr_store_inferior_registers): Ditto.
18375 (linux_read_memory, linux_write_memory): Ditto.
18376 (linux_test_for_tracefork): Ditto.
18377
3743bb4f
DE
18378 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18379 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18380
8b315be5
PA
183812010-01-21 Pedro Alves <pedro@codesourcery.com>
18382
18383 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18384 target.
18385
85492558
PA
183862010-01-21 Pedro Alves <pedro@codesourcery.com>
18387
18388 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18389 prototype to take a regcache. Adjust.
18390
442ea881
PA
183912010-01-20 Pedro Alves <pedro@codesourcery.com>
18392
18393 * regcache.h (struct thread_info): Forward declare.
18394 (struct regcache): New.
18395 (new_register_cache): Adjust prototype.
18396 (get_thread_regcache): Declare.
18397 (free_register_cache): Adjust prototype.
18398 (registers_to_string, registers_from_string): Ditto.
18399 (supply_register, supply_register_by_name, collect_register)
18400 (collect_register_as_string, collect_register_by_name): Ditto.
18401 * regcache.c (struct inferior_regcache_data): Delete.
18402 (get_regcache): Rename to ...
18403 (get_thread_regcache): ... this. Adjust. Switch inferior before
18404 fetching registers.
18405 (regcache_invalidate_one): Adjust.
18406 (regcache_invalidate): Fix prototype.
18407 (new_register_cache): Return the new register cache.
18408 (free_register_cache): Change prototype.
18409 (realloc_register_cache): Adjust.
18410 (registers_to_string): Change prototype to take a regcache. Adjust.
18411 (registers_from_string): Ditto.
18412 (register_data): Ditto.
18413 (supply_register): Ditto.
18414 (supply_register_by_name): Ditto.
18415 (collect_register): Ditto.
18416 (collect_register_as_string): Ditto.
18417 (collect_register_by_name): Ditto.
18418 * server.c (process_serial_event): Adjust.
18419 * linux-low.h (regset_fill_func, regset_store_func): Change
18420 prototype.
18421 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18422 Change prototype.
18423 * linux-low.c (get_stop_pc): Adjust.
18424 (check_removed_breakpoint): Adjust.
18425 (linux_wait_for_event): Adjust.
18426 (linux_resume_one_lwp): Adjust.
18427 (fetch_register): Add regcache parameter. Adjust.
18428 (usr_store_inferior_registers): Ditto.
18429 (regsets_fetch_inferior_registers): Ditto.
18430 (regsets_store_inferior_registers): Ditto.
18431 (linux_fetch_registers, linux_store_registers): Ditto.
18432 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18433 regcache. Adjust.
43aaf8b6
PA
18434 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18435 Ditto.
442ea881
PA
18436 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18437 prototype to take a regcache.
18438 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18439 * remote-utils.c (convert_ascii_to_int, outreg)
18440 (prepare_resume_reply): Change prototype to take a regcache.
18441 Adjust.
18442 * target.h (struct target_ops) <fetch_registers, store_registers>:
18443 Change prototype to take a regcache.
18444 (fetch_inferior_registers, store_inferior_registers): Change
18445 prototype to take a regcache. Adjust.
18446 * proc-service.c (ps_lgetregs): Adjust.
18447 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18448 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18449 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18450 take a regcache. Adjust.
18451 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18452 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18453 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18454 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18455 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18456 (cris_cannot_fetch_register):
18457 (cris_breakpoint_at): Change prototype to take a regcache.
18458 Adjust.
18459 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18460 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18461 to take a regcache. Adjust.
18462 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18463 Adjust.
18464 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18465 take a regcache. Adjust.
18466 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18467 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18468 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18469 * linux-mips-low.c (mips_get_pc):
18470 (mips_set_pc): Change prototype to take a regcache. Adjust.
18471 (mips_reinsert_addr): Adjust.
18472 (mips_collect_register): Change prototype to take a regcache.
18473 Adjust.
18474 (mips_supply_register):
18475 (mips_collect_register_32bit, mips_supply_register_32bit)
18476 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18477 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18478 * linux-ppc-low.c (ppc_supply_ptrace_register)
18479 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18480 (parse_spufs_run): Adjust.
18481 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18482 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18483 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18484 take a regcache. Adjust.
18485 * linux-s390-low.c (s390_collect_ptrace_register)
18486 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18487 (s390_set_pc): Change prototype to take a regcache. Adjust.
18488 (s390_arch_setup): Adjust.
18489 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18490 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18491 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18492 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18493 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18494 regcache. Adjust.
18495 (sparc_breakpoint_at): Adjust.
18496 * linux-xtensa-low.c (xtensa_fill_gregset):
18497 (xtensa_store_gregset):
18498 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18499 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18500 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18501 prototype to take a regcache. Adjust.
18502 * win32-arm-low.c (arm_fetch_inferior_register)
18503 (arm_store_inferior_register): Change prototype to take a
18504 regcache. Adjust.
18505 * win32-i386-low.c (i386_fetch_inferior_register)
18506 (i386_store_inferior_register): Change prototype to take a
18507 regcache. Adjust.
18508 * win32-low.c (child_fetch_inferior_registers)
18509 (child_store_inferior_registers): Change prototype to take a
18510 regcache. Adjust.
18511 (win32_wait): Adjust.
18512 (win32_fetch_inferior_registers): Change prototype to take a
18513 regcache. Adjust.
18514 (win32_store_inferior_registers): Adjust.
18515 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18516 store_inferior_register>: Change prototype to take a regcache.
18517
60c3d7b0
DE
185182010-01-20 Doug Evans <dje@google.com>
18519
18520 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18521 #ifdef.
18522 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18523 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18524
dc146f7c
VP
185252010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18526
18527 * linux-low.c (linux_core_of_thread): New.
18528 (compare_ints, show_process, list_threads): New.
18529 (linux_qxfer_osdata): Report threads and cores.
18530 (linux_target_op): Register linux_core_of_thread.
18531 * remote-utils.c (prepare_resume_reply): Report the core.
18532 (buffer_xml_printf): Support %d specifier.
18533 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18534 New.
18535 (handle_query): Handle qXfer:threads. Announce availability
18536 thereof.
18537 * target.h (struct target_ops): New field core_of_thread.
18538
7803799a
UW
185392010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18540
18541 * Makefile.in (clean): Remove new generated files.
18542 (reg-s390.o, reg-s390.c): Remove rules.
18543 (reg-s390x.o, reg-s390x.c): Likewise.
18544 (s390-linux32.o, s390-linux32.c): Add rules.
18545 (s390-linux64.o, s390-linux64.c): Likewise.
18546 (s390x-linux64.o, s390x-linux64.c): Likewise.
18547 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18548 * linux-s390-low.c: Include <elf.h>.
18549 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18550 (init_registers_s390): Remove prototype.
18551 (init_registers_s390x): Likewise.
18552 (init_registers_s390_linux32): Add prototype.
18553 (init_registers_s390_linux64): Likewise.
18554 (init_registers_s390x_linux64): Likewise.
18555 (s390_num_regs_3264): New define.
18556 (s390_regmap_3264): New global variable.
18557 (s390_cannot_fetch_register): Remove obsolete check.
18558 (s390_cannot_store_register): Likewise.
18559 (s390_collect_ptrace_register): Handle upper/lower register halves.
18560 (s390_supply_ptrace_register): Likewise.
18561 (s390_fill_gregset): Update to register number changes.
18562 (s390_get_hwcap): New routine.
18563 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18564 Install appropriate regmap and register set.
18565
6e7ffa39
JB
185662010-01-01 Joel Brobecker <brobecker@adacore.com>
18567
18568 * server.c (gdbserver_version): Update copyright year to 2010.
18569 * gdbreplay.c (gdbreplay_version): Likewise.
18570
957f3f49
DE
185712009-12-28 Doug Evans <dje@google.com>
18572
18573 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18574 elf/external.h. Include <elf.h> instead but only if necessary.
18575
ca5c370d
PA
185762009-12-28 Pedro Alves <pedro@codesourcery.com>
18577
18578 * linux-low.c (linux_remove_process): Remove `detaching'
18579 parameter. Don't release/detach from thread_db here.
18580 (linux_kill): Release/detach from thread_db here, ...
18581 (linux_detach): ... and here, before actually detaching.
18582 (linux_wait_1): ... and here, when a process exits.
18583 * thread-db.c (any_thread_of): New.
18584 (thread_db_free): Switch the current inferior to a thread of the
18585 passed in process.
18586
4ee62156
DE
185872009-12-21 Doug Evans <dje@google.com>
18588
d90e6a88
DE
18589 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18590
c5f62d5f
DE
18591 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18592 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18593 warning ifndef __NR_tkill. Move setting of errno there too.
18594 Delete unnecessary resetting of errno after syscall.
18595 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18596
10e86dd7
DE
18597 * configure.ac: Check for dladdr.
18598 * config.in: Regenerate.
18599 * configure: Regenerate.
18600 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18601 (try_thread_db_load): Update.
18602
4ee62156
DE
18603 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18604
00f515da
DE
186052009-12-18 Doug Evans <dje@google.com>
18606
e9464885
DE
18607 * event-loop.c: Include unistd.h if it exists.
18608
07d4f67e
DE
18609 * linux-low.c (my_waitpid): Move definition away from being in
18610 between linux_tracefork_child/linux_test_for_tracefork.
18611
00f515da
DE
18612 * gdb_proc_service.h (psaddr_t): Fix type.
18613 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18614 signature to match glibc.
18615
1de1badb
DE
186162009-12-16 Doug Evans <dje@google.com>
18617
18618 * linux-low.c (linux_read_memory): Fix argument to read.
18619
aeeb81d1
PA
186202009-11-26 Pedro Alves <pedro@codesourcery.com>
18621
18622 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18623 events, don't leave current_inferior pointing at null.
18624
10357975
PA
186252009-11-26 Pedro Alves <pedro@codesourcery.com>
18626
18627 * win32-low.c (LOG): Delete.
18628 (OUTMSG): Output to stderr.
18629 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18630 on compile time LOG macro.
18631 (win32_wait): Fix debug output.
18632
cf6e3471
PA
186332009-11-26 Pedro Alves <pedro@codesourcery.com>
18634
18635 * win32-low.c (win32_add_one_solib): If the dll name is
18636 "ntdll.dll", prepend the system directory to the dll path.
18637
0c85e18e
MK
186382009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18639
18640 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18641
9ac544ce 186422009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18643 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18644
18645 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18646 * configure.ac: Check for __mcoldfire__ and set
18647 gdb_cv_m68k_is_coldfire.
18648 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18649 reg-cf.o and reg-m68k.o.
18650 * configure: Regenerated.
18651
fd7dd3e6
PA
186522009-11-16 Pedro Alves <pedro@codesourcery.com>
18653
18654 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18655 Pass it to thread_db_free.
18656 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18657 proper `detaching' argument to linux_remove_process.
18658 * linux-low.h (thread_db_free): Add `detaching' parameter.
18659 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18660 to thread_db_free.
18661 (thread_db_free): Add `detaching' parameter. Only
18662 call td_ta_clear_event if detaching from process.
18663
75aa492e
MK
186642009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18665
18666 * thread-db.c (thread_db_free): Fix typo.
18667
21e1bee4
PP
186682009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18669
18670 PR gdb/10838
18671 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18672
8838b45e
NS
186732009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18674
18675 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18676 with an i686 compiler.
18677 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18678 needed.
18679 * configure: Rebuilt.
18680
8a35fb51
SL
186812009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18682
18683 PR gdb/10783
18684
18685 * server.c (handle_search_memory_1): Correct read_addr initialization
18686 in loop for searching subsequent chunks.
18687
96f15937
PP
186882009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18689
18690 * configure.ac: New --with-libthread-db option.
18691 * thread-db.c: Allow direct dependence on libthread_db.
18692 (thread_db_free): Adjust.
18693 * config.in: Regenerate.
18694 * configure: Likewise.
889bf7c5 18695
5f7d1694
PP
186962009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18697
18698 PR gdb/10757
18699 * thread-db.c (attach_thread): New function.
18700 (maybe_attach_thread): Return success/failure.
18701 (find_new_threads_callback): Adjust.
889bf7c5
PA
18702 (thread_db_find_new_threads): Loop until no new threads.
18703
88e3b899
PA
187042009-10-13 Pedro Alves <pedro@codesourcery.com>
18705
18706 * proc-service.c (ps_lgetregs): Formatting.
18707
cdbfd419
PP
187082009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18709
18710 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18711 * configure.ac: Adjust.
18712 * linux-low.h (struct process_info_private): Move members to struct
18713 thread_db.
18714 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18715 * linux-low.c (linux_remove_process): Adjust.
18716 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18717 * server.c (handle_query): Move code ...
18718 (handle_monitor_command): ... here. New function.
18719 * target.h (struct target_ops): New member.
18720 * thread-db.c (struct thread_db): New.
18721 (libthread_db_search_path): New variable.
18722 (thread_db_create_event, thread_db_enable_reporting)
18723 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18724 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18725 (try_thread_db_load_1, dladdr_to_soname): New functions.
18726 (try_thread_db_load, thread_db_load_search): New functions.
18727 (thread_db_init): Search for libthread_db.
18728 (thread_db_free): New function.
18729 (thread_db_handle_monitor_command): Likewise.
18730 * config.in: Regenerate.
18731 * configure: Regenerate.
889bf7c5 18732
4168d2d6
UW
187332009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18734
18735 * spu-low.c (spu_kill): Wait for inferior to terminate.
18736 Call clear_inferiors.
18737 (spu_detach): Call clear_inferiors.
18738
81ecdfbb
RW
187392009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18740
18741 * aclocal.m4: Regenerate.
18742 * config.in: Likewise.
18743 * configure: Likewise.
18744
0b9ff2c0
UW
187452009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18746
18747 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18748 (parse_spufs_run): New function.
18749 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18750 (ppc_breakpoint_at): Handle SPU breakpoints.
18751
efcbbd14
UW
187522009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18753
18754 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18755 (SPUFS_MAGIC): Define.
18756 (spu_enumerate_spu_ids): New function.
18757 (linux_qxfer_spu): New function.
18758 (linux_target_ops): Install linux_qxfer_spu.
18759
f4d9bade
UW
187602009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18761
18762 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18763 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18764 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18765 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18766 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18767 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18768 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18769 (init_registers_powerpc_cell32l): Add prototype.
18770 (init_registers_powerpc_cell64l): Likewise.
18771 (ppc_arch_setup): Detect Cell/B.E. architecture.
18772
96e946ca
RW
187732009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18774
18775 * Makefile.in (datarootdir): New variable.
18776
58d6951d
DJ
187772009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18778
18779 * linux-low.c (linux_write_memory): Update debugging output.
18780 * Makefile.in (clean): Add new descriptions.
18781 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18782 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18783 * configure.srv: Add new files for arm*-*-linux*.
18784 * linux-arm-low.c: Add new declarations.
18785 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18786 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18787 (HWCAP_VFPv3D16): New.
18788 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18789 instead of __IWMMXT__.
18790 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18791 (arm_arch_setup): New.
18792 (target_regsets): Remove #ifdef. Add VFP regset.
18793 (the_low_target): Use arm_arch_setup.
18794
12b42a12
DJ
187952009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18796
18797 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18798 the main thread again.
18799
ac8c974e
AR
188002009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18801
18802 Adding Neutrino gdbserver.
18803 * configure: Regenerated.
18804 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18805 * configure.srv (i[34567]86-*-nto*): New target.
18806 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18807 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18808 (nto_comctrl) [__QNX__]: New function.
18809 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18810
4424e0c3 188112009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18812
18813 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18814 srv_tgtobj.
18815
912cf4ba
PA
188162009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18817 Pedro Alves <pedro@codesourcery.com>
18818
18819 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18820 don't support CONTEXT_EXTENDED_REGISTERS.
18821 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18822 (the_low_target): Install them.
18823 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18824 failing with ERROR_PIPE_NOT_CONNECTED.
18825
aa5ca48f
DE
188262009-06-30 Doug Evans <dje@google.com>
18827 Pierre Muller <muller@ics.u-strasbg.fr>
18828
18829 Add h/w watchpoint support to x86-linux, win32-i386.
18830 * Makefile.in (SFILES): Add i386-low.c
18831 (i386_low_h): Define.
18832 (i386-low.o): Add dependencies.
18833 (linux-x86-low.o): Add i386-low.h dependency.
18834 (win32-i386-low.o): Ditto.
18835 * i386-low.c: New file.
18836 * i386-low.h: New file.
18837 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18838 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18839 * linux-low.c (linux_add_process): Initialize arch_private.
18840 (linux_remove_process): Free arch_private.
18841 (add_lwp): Initialize arch_private.
18842 (delete_lwp): Free arch_private.
18843 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18844 provided.
18845 * linux-low.h (process_info_private): New member arch_private.
18846 (lwp_info): New member arch_private.
18847 (linux_target_ops): New members new_process, new_thread,
18848 prepare_to_resume.
18849 (ptid_of): New macro.
18850 * linux-x86-low.c: Include stddef.h, i386-low.h.
18851 (arch_process_info): New struct.
18852 (arch_lwp_info): New struct.
18853 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18854 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18855 (i386_dr_low_get_status): New function.
18856 (x86_insert_point, x86_remove_point): New functions.
18857 (x86_stopped_by_watchpoint): New function.
18858 (x86_stopped_data_address): New function.
18859 (x86_linux_new_process, x86_linux_new_thread): New functions.
18860 (x86_linux_prepare_to_resume): New function.
18861 (the_low_target): Add entries for insert_point, remove_point,
18862 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18863 prepare_to_resume.
18864 * server.c (debug_hw_points): New global.
18865 (monitor_show_help): Document set debug-hw-points.
18866 (handle_query): Process "set debug-hw-points".
18867 * server.h (debug_hw_points): Declare.
18868 (paddress): Declare.
18869 * utils.c (NUMCELLS, CELLSIZE): New macros.
18870 (get_sell, xsnprintf, paddress): New functions.
18871 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18872 remove_point, stopped_by_watchpoint, stopped_data_address.
18873 * win32-i386-low.c: Include i386-low.h.
18874 (debug_reg_state): Replaces dr.
18875 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18876 (i386_dr_low_get_status): New function.
18877 (i386_insert_point, i386_remove_point): New functions.
18878 (i386_stopped_by_watchpoint): New function.
18879 (i386_stopped_data_address): New function.
18880 (i386_initial_stuff): Update.
18881 (get_thread_context,set_thread_context,i386_thread_added): Update.
18882 (the_low_target): Add entries for insert_point,
18883 remove_point, stopped_by_watchpoint, stopped_data_address.
18884 * win32-low.c (win32_insert_watchpoint): New function.
18885 (win32_remove_watchpoint): New function.
18886 (win32_stopped_by_watchpoint): New function.
18887 (win32_stopped_data_address): New function.
18888 (win32_target_ops): Add entries for insert_watchpoint,
18889 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18890 * win32-low.h (win32_target_ops): New members insert_point,
18891 remove_point, stopped_by_watchpoint, stopped_data_address.
18892
d993e290
PA
188932009-06-25 Pedro Alves <pedro@codesourcery.com>
18894
18895 * server.c (process_serial_event): Re-return unsupported, not
18896 error, if the type isn't recognized. Re-allow supporting only
18897 insert or remove packets. Also call require_running for
18898 breakpoints. Add missing break statement to default case. Tidy.
18899 * target.h (struct target_ops): Rename insert_watchpoint to
18900 insert_point, and remove_watchpoint to remove_point.
18901
18902 * linux-low.h (struct linux_target_ops): Likewise.
18903 * linux-low.c (linux_insert_watchpoint): Rename to ...
18904 (linux_insert_point): ... this. Adjust.
18905 (linux_remove_watchpoint): Rename to ...
18906 (linux_remove_point): ... this. Adjust.
18907 (linux_target_ops): Adjust.
18908 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18909 (cris_insert_point): ... this.
18910 (cris_remove_watchpoint): Rename to ...
18911 (cris_remove_point): ... this.
18912 (the_low_target): Adjust.
18913
0f54c268
PM
189142009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18915
18916 * server.c (handle_v_kill): Pass signal_pid to
18917 kill_inferior if multi_process is zero.
18918
c6314022
AR
189192009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18920
18921 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18922 * target.h (target_ops): Comment for *_watchpoint to make it clear
18923 the functions can get types '0' and '1'.
18924
4463ce24
AR
189252009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18926
18927 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18928 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18929 * regcache.c (get_regcache): Likewise.
18930 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18931 * win32-low.c (child_fetch_inferior_registers): Remove check for
18932 regno 0.
18933
cf8fd78b
PA
189342009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18935 Pedro Alves <pedro@codesourcery.com>
18936
18937 * target.h (struct target_ops) <supports_multi_process>: New
18938 callback.
18939 (target_supports_multi_process): New.
18940 * server.c (handle_query): Even if GDB reports support, only
18941 enable multi-process if the target also supports it. Report
18942 multi-process support only if the target backend supports it.
18943 * linux-low.c (linux_supports_multi_process): New function.
18944 (linux_target_ops): Install it as target_supports_multi_process
18945 callback.
18946
47c0c975
DE
189472009-05-24 Doug Evans <dje@google.com>
18948
e09875d4
DE
18949 Global renaming of find_thread_pid to find_thread_ptid.
18950 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18951 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18952 All callers updated.
18953
e27d73f6
DE
18954 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18955 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18956 directly.
18957
47c0c975
DE
18958 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18959 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18960 (linux_resume_one_lwp): Ditto.
18961
2acc282a
DE
189622009-05-23 Doug Evans <dje@google.com>
18963
18964 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18965 from struct inferior_list_entry * to struct lwp_info *.
18966 All callers updated.
18967
9f1036c1
DE
189682009-05-13 Doug Evans <dje@google.com>
18969
18970 * linux-x86-low.c: Don't include assert.h.
18971 (x86_siginfo_fixup): Use fatal, not assert.
18972 (x86_arch_setup): Fix comment.
18973
d0722149
DE
189742009-05-12 Doug Evans <dje@google.com>
18975
18976 Biarch support for i386/amd64 gdbserver.
18977 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18978 Add linux-x86-low.c.
18979 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18980 (linux-x86-low.o): Add.
18981 * linux-x86-64-low.c: Delete.
18982 * linux-i386-low.c: Delete.
18983 * linux-x86-low.c: New file.
18984 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18985 linux-x86-low.o.
18986 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18987 linux-x86-low.o.
18988 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18989 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18990 (linux_child_pid_to_exec_file): New function.
18991 (elf_64_header_p, elf_64_file_p): New functions.
18992 (siginfo_fixup): New function.
18993 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18994 give target a chance to convert layout.
18995 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18996 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18997
fdeb2a12
DE
189982009-05-07 Doug Evans <dje@google.com>
18999
19000 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19001 (regsets_store_inferior_registers): Ditto.
19002
a6dbe5df
PA
190032009-05-06 Pedro Alves <pedro@codesourcery.com>
19004
19005 PR server/10048
19006
19007 * linux-low.c (must_set_ptrace_flags): Delete.
19008 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19009 of the global.
19010 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19011 `lwp->must_set_ptrace_flags' instead.
ba42693b 19012 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19013 (linux_wait_1): ... not here.
19014
5091eb23
DE
190152009-04-30 Doug Evans <dje@google.com>
19016
9f767825
DE
19017 * inferiors.c (started_inferior_callback): New function.
19018 (attached_inferior_callback): New function.
19019 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19020 * server.c (print_started_pid, print_attached_pid): New functions.
19021 (detach_or_kill_for_exit): New function.
19022 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19023 * server.h (have_started_inferiors_p): Declare.
19024 (have_attached_inferiors_p): Declare.
19025
5091eb23
DE
19026 * inferiors.c (remove_process): Fix memory leak, free process.
19027 * linux-low.c (linux_remove_process): New function.
19028 (linux_kill): Call it instead of remove_process.
19029 (linux_detach, linux_wait_1): Ditto.
19030
155c8968
PA
190312009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19032
19033 * configure.srv: Add x86 Windows CE target.
19034
7fe519cb
UW
190352009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19036
19037 * inferiors.c (get_thread_process): Make global.
19038 * server.h (get_thread_process): Add prototype.
19039 * thread-db.c (find_one_thread): Use get_thread_process
19040 instead of current_process.
19041 (thread_db_get_tls_address): Do not crash if called when
19042 thread layer is not yet initialized.
19043
5472f405
UW
190442009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19045
19046 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19047 * spu-low.c (current_tid): Rename to ...
19048 (current_ptid): ... this.
19049 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19050 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19051 ptid_get_lwp (current_ptid) instead of current_tid.
19052 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19053 instead of current_tid. Use find_process_pid to verify pid
19054 argument is valid. Pass proper argument to remove_process.
19055 (spu_thread_alive): Compare current_ptid instead of current_tid.
19056 (spu_resume): Likewise.
19057
55ac2b99
PA
190582009-04-02 Pedro Alves <pedro@codesourcery.com>
19059
19060 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19061 variable.
19062
95954743
PA
190632009-04-01 Pedro Alves <pedro@codesourcery.com>
19064
19065 Implement the multiprocess extensions, and add linux multiprocess
19066 support.
19067
19068 * server.h (ULONGEST): Declare.
19069 (struct ptid, ptid_t): New.
19070 (minus_one_ptid, null_ptid): Declare.
19071 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19072 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19073 (struct inferior_list_entry): Change `id' type from unsigned from
19074 to ptid_t.
19075 (struct sym_cache, struct breakpoint, struct
19076 process_info_private): Forward declare.
19077 (struct process_info): Declare.
19078 (current_process): Declare.
19079 (all_processes): Declare.
19080 (initialize_inferiors): Declare.
19081 (add_thread): Adjust to use ptid_t.
19082 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19083 (add_process, remove_process, find_thread_pid): Declare.
19084 (find_inferior_id): Adjust to use ptid_t.
19085 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19086 (multi_process): Declare.
19087 (push_event): Adjust to use ptid_t.
19088 (read_ptid, write_ptid): Declare.
19089 (prepare_resume_reply): Adjust to use ptid_t.
19090 (clear_symbol_cache): Declare.
19091 * inferiors.c (all_processes): New.
19092 (null_ptid, minus_one_ptid): New.
19093 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19094 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19095 (add_thread): Change unsigned long to ptid. Remove gdb_id
19096 parameter. Adjust.
19097 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19098 (gdb_id_to_thread): Rename to ...
19099 (find_thread_pid): ... this. Change unsigned long to ptid.
19100 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19101 (loaded_dll, pull_pid_from_list): Adjust.
19102 (add_process, remove_process, find_process_pid)
19103 (get_thread_process, current_process, initialize_inferiors): New.
19104 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19105 (struct target_waitstatus) <related_pid>: Ditto.
19106 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19107 return type to int.
19108 (struct target_ops) <join>: Add `pid' argument.
19109 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19110 (struct target_ops) <wait>: Add `ptid' field. Change return type
19111 to ptid.
19112 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19113 (mywait): Add `ptid' argument. Change return type to ptid_t.
19114 (target_pid_to_str): Declare.
19115 * target.c (set_desired_inferior): Adjust to use ptids.
19116 (mywait): Add new `ptid' argument. Adjust.
19117 (target_pid_to_str): New.
19118 * mem-break.h (free_all_breakpoints): Declare.
19119 * mem-break.c (breakpoints): Delelete.
19120 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19121 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19122 to use per-process breakpoint list.
19123 (free_all_breakpoints): New.
19124 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19125 (symbol_cache, all_symbols_looked_up): Delete.
19126 (hexchars): New.
19127 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19128 read_ptid): New.
19129 (prepare_resume_reply): Change ptid argument's type from unsigned
19130 long to ptid_t. Adjust. Implement W;process and X;process.
19131 (free_sym_cache, clear_symbol_cache): New.
19132 (look_up_one_symbol): Adjust to per-process symbol cache. *
19133 * server.c (cont_thread, general_thread, step_thread): Change type
19134 to ptid_t.
19135 (attached): Delete.
19136 (multi_process): New.
19137 (last_ptid): Change type to ptid_t.
19138 (struct vstop_notif) <ptid>: Change type to ptid_t.
19139 (queue_stop_reply, push_event): Change `ptid' argument's type to
19140 ptid_t.
19141 (discard_queued_stop_replies): Add `pid' argument.
19142 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19143 changes. Don't reference the `attached' global.
19144 (attach_inferior): Adjust to mywait interface changes.
19145 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19146 features. Handle and report "multiprocess+". Handle
19147 "qAttached:PID".
19148 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19149 changes.
19150 (handle_v_kill): New.
19151 (handle_v_stopped): Adjust to use target_pid_to_str.
19152 (handle_v_requests): Allow multiple attaches and runs when
19153 multiprocess extensions are in effect. Handle "vKill".
19154 (myresume): Adjust to use ptids.
19155 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19156 (handle_status): Adjust to discard_queued_stop_replies interface
19157 change.
19158 (first_thread_of, kill_inferior_callback)
19159 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19160 (main): Call initialize_inferiors. Adjust to use ptids, killing
19161 and detaching from all inferiors. Handle multiprocess packet
19162 variants.
19163 * linux-low.h: Include gdb_proc_service.h.
19164 (struct process_info_private): New.
19165 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19166 <lwpid_of>: Use ptid_get_lwp.
19167 (get_lwp_thread): Adjust.
19168 (struct lwp_info): Add `dead' member.
19169 (find_lwp_pid): Declare.
19170 * linux-low.c (thread_db_active): Delete.
19171 (new_inferior): Adjust comment.
19172 (inferior_pid): Delete.
19173 (linux_add_process): New.
19174 (handle_extended_wait): Adjust.
19175 (add_lwp): Change unsigned long to ptid.
19176 (linux_create_inferior): Add process to processes table. Adjust
19177 to use ptids. Don't set new_inferior here.
19178 (linux_attach_lwp): Rename to ...
19179 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19180 it. Adjust to use ptids.
19181 (linux_attach_lwp): New.
19182 (linux_attach): Add process to processes table. Don't set
19183 new_inferior here.
19184 (struct counter): New.
19185 (second_thread_of_pid_p, last_thread_of_process_p): New.
19186 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19187 multiple processes.
19188 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19189 processes. Remove process from process table.
19190 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19191 to multiple processes.
19192 (any_thread_of): New.
19193 (linux_detach): Add `pid' argument, and handle it. Remove process
19194 from processes table.
19195 (linux_join): Add `pid' argument. Handle it.
19196 (linux_thread_alive): Change unsighed long argument to ptid_t.
19197 Consider dead lwps as not being alive.
19198 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19199 threads we're not interested in.
19200 (same_lwp, find_lwp_pid): New.
19201 (linux_wait_for_lwp): Change `pid' argument's type from int to
19202 ptid_t. Adjust.
19203 (linux_wait_for_event): Rename to ...
19204 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19205 from int to ptid_t. Adjust.
19206 (linux_wait_for_event): New.
19207 (linux_wait_1): Add `ptid' argument. Change return type to
19208 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19209 that exit from the process table.
19210 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19211 Adjust.
19212 (mark_lwp_dead): New.
19213 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19214 stopping all threads, mark its main lwp as dead.
19215 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19216 ptids.
19217 (fetch_register, usr_store_inferior_registers)
19218 (regsets_fetch_inferior_registers)
19219 (regsets_store_inferior_registers, linux_read_memory)
19220 (linux_write_memory): Inline `inferior_pid'.
19221 (linux_look_up_symbols): Adjust to use per-process
19222 `thread_db_active'.
19223 (linux_request_interrupt): Adjust to use ptids.
19224 (linux_read_auxv): Inline `inferior_pid'.
19225 (initialize_low): Don't reference thread_db_active.
19226 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19227 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19228 (ps_getpid): Return the pid of the current inferior.
19229 * thread-db.c (proc_handle, thread_agent): Delete.
19230 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19231 per-process data.
19232 (find_one_thread): Change argument type to ptid_t. Adjust to
19233 per-process data.
19234 (maybe_attach_thread): Adjust to per-process data and ptids.
19235 (thread_db_find_new_threads): Ditto.
19236 (thread_db_init): Ditto.
19237 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19238 processes table. Adjust to use ptids.
19239 (spu_kill, spu_detach): Adjust interface. Remove process from
19240 processes table.
19241 (spu_join, spu_thread_alive): Adjust interface.
19242 (spu_wait): Adjust interface. Remove process from processes
19243 table. Adjust to use ptids.
19244 * win32-low.c (current_inferior_tid): Delete.
19245 (current_inferior_ptid): New.
19246 (debug_event_ptid): New.
19247 (thread_rec): Take a ptid. Adjust.
19248 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19249 (child_delete_thread): Ditto.
19250 (do_initial_child_stuff): Add `attached' argument. Add process to
19251 processes table.
19252 (child_fetch_inferior_registers, child_store_inferior_registers):
19253 Adjust.
19254 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19255 (win32_attach): Pass 1 to do_initial_child_stuff.
19256 (win32_kill): Adjust interface. Remove process from processes
19257 table.
19258 (win32_detach): Ditto.
19259 (win32_join): Adjust interface.
19260 (win32_thread_alive): Take a ptid.
19261 (win32_resume): Adjust to use ptids.
19262 (get_child_debug_event): Ditto.
19263 (win32_wait): Adjust interface. Remove exiting process from
19264 processes table.
19265
bd99dc85
PA
192662009-04-01 Pedro Alves <pedro@codesourcery.com>
19267
19268 Non-stop mode support.
19269
19270 * server.h (non_stop): Declare.
19271 (gdb_client_data, handler_func): Declare.
19272 (delete_file_handler, add_file_handler, start_event_loop):
19273 Declare.
19274 (handle_serial_event, handle_target_event, push_event)
19275 (putpkt_notif): Declare.
19276 * target.h (enum resume_kind): New.
19277 (struct thread_resume): Replace `step' field by `kind' field.
19278 (TARGET_WNOHANG): Define.
19279 (struct target_ops) <wait>: Add `options' argument.
19280 <supports_non_stop, async, start_non_stop>: New fields.
19281 (target_supports_non_stop, target_async): New.
19282 (start_non_stop): Declare.
19283 (mywait): Add `options' argument.
19284 * target.c (mywait): Add `options' argument. Print child exit
19285 notifications here.
19286 (start_non_stop): New.
19287 * server.c (non_stop, own_buf, mem_buf): New globals.
19288 (struct vstop_notif): New.
19289 (notif_queue): New global.
19290 (queue_stop_reply, push_event, discard_queued_stop_replies)
19291 (send_next_stop_reply): New.
19292 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19293 interface changes.
19294 (attach_inferior): In non-stop mode, don't wait for the target
19295 here.
19296 (handle_general_set): Handle QNonStop.
19297 (handle_query): When handling qC, return the current general
19298 thread, instead of the first thread of the list.
19299 (handle_query): If the backend supports non-stop mode, include
19300 QNonStop+ in the qSupported query response.
19301 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19302 and non-stop mode.
19303 (handle_v_attach, handle_v_run): Handle non-stop mode.
19304 (handle_v_stopped): New.
19305 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19306 (myresume): Adjust to use resume_kind. Handle non-stop.
19307 (queue_stop_reply_callback): New.
19308 (handle_status): Handle non-stop mode.
19309 (main): Clear non_stop flag on reconnection. Use the event-loop.
19310 Refactor serial protocol handling from here ...
19311 (process_serial_event): ... to this new function. When GDB
19312 selects any thread, select one here. In non-stop mode, wait until
19313 GDB acks all pending events before exiting.
19314 (handle_serial_event, handle_target_event): New.
19315 * remote-utils.c (remote_open): Install remote_desc in the event
19316 loop.
19317 (remote_close): Remove remote_desc from the event loop.
19318 (putpkt_binary): Rename to...
19319 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19320 (putpkt_binary): New as wrapper around putpkt_binary_1.
19321 (putpkt_notif): New.
19322 (prepare_resume_reply): In non-stop mode, don't change the
19323 general_thread.
19324 * event-loop.c: New.
19325 * Makefile.in (OBJ): Add event-loop.o.
19326 (event-loop.o): New rule.
19327
19328 * linux-low.h (pid_of): Moved here.
19329 (lwpid_of): New.
19330 (get_lwp_thread): Use lwpid_of.
19331 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19332 * linux-low.c (pid_of): Delete.
19333 (inferior_pid): Use lwpid_of.
19334 (linux_event_pipe): New.
19335 (target_is_async_p): New.
19336 (delete_lwp): New.
19337 (handle_extended_wait): Use lwpid_of.
19338 (add_lwp): Don't set lwpid field.
19339 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19340 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19341 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19342 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19343 first. Adjust to linux_wait_for_event interface changes. Use
19344 lwpid_of.
19345 (linux_detach): Don't delete the main lwp here.
19346 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19347 (status_pending_p): Don't consider explicitly suspended lwps.
19348 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19349 pointer. Add OPTIONS argument. Change return type to int. Use
19350 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19351 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19352 pointer. Add status pointer argument. Return a pid instead of a
19353 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19354 changes. In non-stop mode, don't switch to a random thread.
19355 (linux_wait): Rename to...
19356 (linux_wait_1): ... this. Add target_options argument, and handle
19357 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19358 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19359 clean exit and signal exit code. Don't stop all threads in
19360 non-stop mode. In all-stop mode, only stop all threads when
19361 reporting a stop to GDB. Handle explicit thread stop requests.
19362 (async_file_flush, async_file_mark): New.
19363 (linux_wait): New.
19364 (send_sigstop): Use lwpid_of.
19365 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19366 interface changes. In non-stop mode, don't switch to a random
19367 thread.
19368 (linux_resume_one_lwp): Use lwpid_of.
19369 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19370 (linux_resume_one_thread): ... this. Handle resume_stop. In
19371 non-stop mode, don't look for pending flag in all threads.
19372 (resume_status_pending_p): Don't consider explicitly suspended
19373 threads.
19374 (my_waitpid): Reimplement. Emulate __WALL.
19375 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19376 Use lwpid_of.
19377 (sigchld_handler, linux_supports_non_stop, linux_async)
19378 (linux_start_non_stop): New.
19379 (linux_target_ops): Register linux_supports_non_stop, linux_async
19380 and linux_start_non_stop.
19381 (initialize_low): Install SIGCHLD handler.
19382 * thread-db.c (thread_db_create_event, find_one_thread)
19383 (thread_db_get_tls_address): Use lwpid_of.
19384 * win32-low.c (win32_detach): Adjust to use resume_kind.
19385 (win32_wait): Add `options' argument.
19386 * spu-low.c (spu_resume): Adjust to use resume_kind.
19387 (spu_wait): Add `options' argument.
19388
5b1c542e
PA
193892009-04-01 Pedro Alves <pedro@codesourcery.com>
19390
19391 Decouple target code from remote protocol.
19392
19393 * target.h (enum target_waitkind): New.
19394 (struct target_waitstatus): New.
19395 (struct target_ops) <wait>: Return an unsigned long. Take a
19396 target_waitstatus pointer instead of a char pointer.
19397 (mywait): Likewise.
19398 * target.c (mywait): Change prototype to return an unsigned long.
19399 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19400 * server.h (thread_from_wait, old_thread_from_wait): Delete
19401 declarations.
19402 (prepare_resume_reply): Change prototype to take a
19403 target_waitstatus.
19404 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19405 (last_status, last_ptid): New.
19406 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19407 pid instead of a signal.
19408 (attach_inferior): Remove "status" and "signal" parameters.
19409 Adjust.
19410 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19411 not as an address.
19412 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19413 (handle_v_requests, myresume): Remove "status" and "signal"
19414 parameters. Adjust.
19415 (handle_status): New.
19416 (main): Delete local `status'. Adjust.
19417 * remote-utils.c: Include target.h.
19418 (prepare_resume_reply): Change prototype to take a
19419 target_waitstatus. Adjust.
19420
19421 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19422 interface.
19423 * spu-low.c (spu_wait): Adjust.
19424 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19425 Delete.
19426 (win32_wait): Adjust.
19427
2bd7c093
PA
194282009-04-01 Pedro Alves <pedro@codesourcery.com>
19429
19430 * target.h (struct thread_resume): Delete leave_stopped member.
19431 (struct target_ops): Add a `n' argument to the `resume' callback.
19432 * server.c (start_inferior): Adjust.
19433 (handle_v_cont, myresume): Adjust.
19434 * linux-low.c (check_removed_breakpoint): Adjust to resume
19435 interface change, and to removed leave_stopped field.
19436 (resume_ptr): Delete.
19437 (struct thread_resume_array): New.
19438 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19439 resume interface change.
19440 (linux_continue_one_thread, linux_queue_one_thread)
19441 (resume_status_pending_p): Check if the resume field is NULL
19442 instead of checking the leave_stopped member.
19443 (linux_resume): Adjust to the target resume interface change.
19444 * spu-low.c (spu_resume): Adjust to the target resume interface
19445 change.
19446 * win32-low.c (win32_detach, win32_resume): Ditto.
19447
c35fafde
PA
194482009-04-01 Pedro Alves <pedro@codesourcery.com>
19449
19450 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19451 flag.
19452 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19453 pending.
19454 (linux_continue_one_thread): Only preserve the stepping flag if
19455 there's a pending breakpoint.
19456
0a59d50b
PA
194572009-03-31 Pedro Alves <pedro@codesourcery.com>
19458
19459 * server.c (main): After the inferior having exited, call
19460 remote_close before exiting gdbserver.
19461
f04c6d38
TJB
194622009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19463
19464 Fix size of FPSCR in Power 7 processors.
19465 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19466 (PPC_FEATURE_HAS_DFP): New #define.
19467 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19468 size of the FPSCR.
19469
78e5cee6
PA
194702009-03-23 Pedro Alves <pedro@codesourcery.com>
19471
19472 * server.c (handle_query) Whitespace and formatting.
19473
1b3f6016
PA
194742009-03-22 Pedro Alves <pedro@codesourcery.com>
19475
19476 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19477 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19478 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19479 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19480 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19481 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19482 Makefile.in, configure.ac: Fix whitespace throughout.
19483 * configure: Regenerate.
19484
a07b2135
PA
194852009-03-22 Pedro Alves <pedro@codesourcery.com>
19486
19487 * inferiors.c (find_inferior): Make it safe for the callback
19488 function to delete the currently iterated inferior.
19489
67cc2626
PA
194902009-03-22 Pedro Alves <pedro@codesourcery.com>
19491
19492 * Makefile.in (linuw_low_h): Move higher.
19493 (thread-db.o): Depend on $(linux_low_h).
19494
54a0b537
PA
194952009-03-17 Pedro Alves <pedro@codesourcery.com>
19496
19497 Rename "process" to "lwp" throughout.
19498
19499 * linux-low.c (all_processes): Rename to...
19500 (all_lwps): ... this.
19501 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19502 (add_process): Rename to ...
19503 (add_lwp): ... this. Adjust.
19504 (linux_create_inferior): Adjust.
19505 (linux_attach_lwp): Adjust.
19506 (linux_attach): Adjust.
19507 (linux_kill_one_process): Rename to ...
19508 (linux_kill_one_lwp): ... this. Adjust.
19509 (linux_kill): Adjust.
19510 (linux_detach_one_process): Rename to ...
19511 (linux_detach_one_lwp): ... this. Adjust.
19512 (linux_detach): Adjust.
19513 (check_removed_breakpoint): Adjust.
19514 (status_pending_p): Adjust.
19515 (linux_wait_for_process): Rename to ...
19516 (linux_wait_for_lwp): ... this. Adjust.
19517 (linux_wait_for_event): Adjust.
19518 (send_sigstop): Adjust.
19519 (wait_for_sigstop): Adjust.
19520 (stop_all_processes): Rename to ...
19521 (stop_all_lwps): ... this.
19522 (linux_resume_one_process): Rename to ...
19523 (linux_resume_one_lwp): ... this. Adjust.
19524 (linux_set_resume_request, linux_continue_one_thread)
19525 (linux_queue_one_thread, resume_status_pending_p)
19526 (usr_store_inferior_registers, regsets_store_inferior_registers)
19527 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19528 Adjust.
19529 * linux-low.h (get_process): Rename to ...
19530 (get_lwp): ... this. Adjust.
19531 (get_thread_process): Rename to ...
19532 (get_thread_lwp): ... this. Adjust.
19533 (get_process_thread): Rename to ...
19534 (get_lwp_thread): ... this. Adjust.
19535 (struct process_info): Rename to ...
19536 (struct lwp_info): ... this.
19537 (all_processes): Rename to ...
19538 (all_lwps): ... this.
19539 * proc-service.c (ps_lgetregs): Adjust.
19540 * thread-db.c (thread_db_create_event, find_one_thread)
19541 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19542
0b16c5cf
PA
195432009-03-14 Pedro Alves <pedro@codesourcery.com>
19544
19545 * server.c (handle_query): Handle "qAttached".
19546
32de4b9d
NS
195472009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19548
19549 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19550 GPLv3, update license URL.
19551
2aecd87f
DE
195522009-03-01 Doug Evans <dje@google.com>
19553
93efd302 19554 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19555 (server_h): Add gdb_signals.h.
19556 (signals.o): Update.
19557 * server.h (target_signal_from_host,target_signal_to_host_p)
19558 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19559
86b1f9c5
PM
195602009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19561
19562 * remote-utils.c (getpkt): Also generate remote-debug
19563 information if noack_mode is set.
19564
4aa995e1
PA
195652009-02-06 Pedro Alves <pedro@codesourcery.com>
19566
19567 * server.c (handle_query): Report qXfer:siginfo:read and
19568 qXfer:siginfo:write as supported and handle them.
19569 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19570 * linux-low.c (linux_xfer_siginfo): New.
19571 (linux_target_ops): Set it.
19572
62709adf
PA
195732009-01-26 Pedro Alves <pedro@codesourcery.com>
19574
19575 * server.c (gdbserver_usage): Mention --remote-debug.
19576 (main): Accept '--remote-debug' switch.
19577
aef93bd7
DE
195782009-01-18 Doug Evans <dje@google.com>
19579
19580 * regcache.c (new_register_cache): No need to check result of xcalloc.
19581 * server.c (handle_search_memory): Back out calls to xmalloc,
19582 result is checked and error is returned to user upon failure.
19583 (handle_query): Ditto. Add more checks for result of malloc.
19584 (handle_v_cont): Check result of malloc, report error back to
19585 user upon failure.
19586 (handle_v_run): Ditto. Call freeargv.
19587 * server.h (freeargv): Declare.
19588 * utils.c (freeargv): New fn.
19589
54363045
DE
195902009-01-15 Doug Evans <dje@google.com>
19591
f626972c
DE
19592 * gdbreplay.c (perror_with_name): Make arg const char *.
19593 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19594 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19595 * utils.c (perror_with_name): Make arg const char *.
54363045 19596
18aae699
PA
195972009-01-14 Pedro Alves <pedro@codesourcery.com>
19598
19599 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19600 when handling a EXIT_PROCESS_DEBUG_EVENT.
19601
ff703abe
JB
196022009-01-06 Joel Brobecker <brobecker@adacore.com>
19603
19604 * gdbreplay.c (gdbreplay_version): Update copyright year.
19605 * server.c (gdbserver_version): Likewise.
19606
f21cc1a2 196072009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19608
19609 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19610 (handle_extended_wait): Improve comment.
0e21c1ec 19611
bca929d3
DE
196122008-12-13 Doug Evans <dje@google.com>
19613
19614 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19615 * server.h (ATTR_MALLOC): New macro.
19616 (xmalloc,xcalloc,xstrdup): Declare.
19617 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19618 * inferiors.c: Ditto.
19619 * linux-low.c: Ditto.
19620 * mem-break.c: Ditto.
19621 * regcache.c: Ditto.
19622 * remote-utils.c: Ditto.
19623 * server.c: Ditto.
19624 * target.c: Ditto.
19625 * win32-low.c: Ditto.
19626
97438e3f
DE
196272008-12-12 Doug Evans <dje@google.com>
19628
896c7fbb
DE
19629 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19630 in debugging printf.
19631
97438e3f
DE
19632 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19633
e3b886f8
DE
196342008-12-09 Doug Evans <dje@google.com>
19635
19636 * linux-low.h (struct process_info): Delete member tid, unused.
19637 * thread-db.c (find_one_thread): Update.
19638 (maybe_attach_thread): Update.
19639
07e059b5
VP
196402008-12-02 Pedro Alves <pedro@codesourcery.com>
19641
889bf7c5
PA
19642 * target.h (struct target_ops): Add qxfer_osdata member.
19643 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19644 and dirent.h.
19645 (linux_qxfer_osdata): New functions.
19646 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19647 callback.
19648 * server.c (handle_query): Handle "qXfer:osdata:read:".
19649 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19650 (buffer_xml_printf): New functions.
19651 * server.h (struct buffer): New.
19652 (buffer_grow_str, buffer_grow_str0): New macros.
19653 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19654 (buffer_xml_printf): Declare.
07e059b5 19655
4cab47ab
DE
196562008-11-24 Doug Evans <dje@google.com>
19657
19658 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19659
f142445f
DJ
196602008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19661
19662 * server.c (handle_v_run): Always use the supplied argument list.
19663
d0107bb6 196642008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19665
d0107bb6
BW
19666 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19667 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19668
2c4ad781
TJB
196692008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19670
19671 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19672 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19673 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19674 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19675 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19676 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19677 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19678 XML target descriptions.
19679 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19680 when inferior is running on an ISA 2.05 or later processor. Add
19681 special case to return offset for full 64-bit slot of FPSCR when
19682 in 32-bits.
19683
dfb64f85
DJ
196842008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19685
19686 * Makefile.in (SFILES, clean): Added sparc64 files.
19687 (reg-sparc64.o, reg-sparc64.c): New.
19688 * configure.srv (sparc*-*-linux*): New configuration.
19689 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19690 syscall arguments for SPARC.
19691 (regsets_store_inferior_registers): Likewise.
19692 * linux-sparc-low.c: New file.
19693
66b6e1dd
DE
196942008-10-21 Doug Evans <dje@google.com>
19695
19696 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19697 (READLINE_DIR,READLINE_DEP): Delete.
19698 (INTERNAL_CFLAGS): Update.
19699 (LINTFLAGS): Update.
19700
9b710a42
PA
197012008-10-10 Pedro Alves <pedro@codesourcery.com>
19702
19703 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19704 whole argv from the last run, not just argv[0].
19705
5822d809
PA
197062008-09-08 Pedro Alves <pedro@codesourcery.com>
19707
19708 * regcache.c (new_register_cache): Return NULL if the register
19709 cache size isn't known yet.
19710 (free_register_cache): Avoid dereferencing a NULL regcache.
19711
74aac56f
DJ
197122008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19713
19714 * configure.srv: Merge MIPS and MIPS64.
19715
400b20f5
MR
197162008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19717
19718 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19719
677c5bb1
LM
197202008-08-18 Luis Machado <luisgpm@br.ibm.com>
19721
19722 * Makefile.in: Add required vsx dependencies.
19723
19724 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19725 Declare init_registers_powerpc_vsx32l.
19726 Declare init_registers_powerpc_vsx64l.
19727 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19728 (ppc_arch_setup): Check for VSX in hwcap.
19729 (ppc_fill_vsxregset): New function.
19730 (ppc_store_vsxregset): New function.
19731 Add new VSX entry in regset_info target_regsets.
19732
19733 * configure.srv: Add new VSX dependencies.
19734
a6f3e723
SL
197352008-08-12 Pedro Alves <pedro@codesourcery.com>
19736
19737 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19738 (remote_open): Set or clear transport_is_reliable.
19739 (putpkt_binary): Don't expect acks in noack mode.
19740 (getpkt): Don't send ack/nac in noack mode.
19741 * server.c (handle_general_set): Handle QStartNoAckMode.
19742 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19743 qSupported.
19744 (main): Reset noack_mode on every connection.
19745 * server.h (noack_mode): Declare.
19746
a417dc56
RW
197472008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19748
19749 * Makefile.in (GDBREPLAY_OBS): New variable.
19750 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19751
3221518c
UW
197522008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19753 Daniel Jacobowitz <dan@codesourcery.com>
19754
19755 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19756 (usr_store_inferior_registers): Likewise.
19757 (regsets_store_inferior_registers): Likewise.
19758
ec56be1b
PA
197592008-07-31 Rolf Jansen <rj@surtec.com>
19760 Pedro Alves <pedro@codesourcery.com>
19761
19762 * configure.ac: Check for memmem declaration.
19763 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19764 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19765 (disable_packet_qfThreadInfo): Unconditionally compile.
19766 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19767 * configure, config.in: Regenerate.
19768
2fe5e3ff
DE
197692008-07-28 Doug Kwan <dougkwan@google.com>
19770
19771 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19772 (linux_write_memory): Remove declaration of errno.
19773
836acd6d
UW
197742008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19775
19776 * linux-low.c (handle_extended_wait): Do not use "status"
19777 variable uninitialized.
19778
aeba519e
PA
197792008-07-07 Pedro Alves <pedro@codesourcery.com>
19780
19781 * server.c (handle_v_attach): Inhibit reporting dll changes.
19782
db42f210
PA
197832008-06-27 Pedro Alves <pedro@codesourcery.com>
19784
19785 * remote-utils.c (prepare_resume_reply): If requested, don't
19786 output "thread:TID" in the T stop reply.
19787
19788 * server.c (disable_packet_vCont, disable_packet_Tthread)
19789 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19790 (handle_query): If requested, disable support for qC, qfThreadInfo
19791 and qsThreadInfo.
19792 (handle_v_requests): If requested, disable support for vCont.
19793 (gdbserver_show_disableable): New.
19794 (main): Handle --disable-packet and --disable-packet=LIST.
19795
19796 * server.h (disable_packet_vCont, disable_packet_Tthread)
19797 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19798
8e4c5421
CD
197992008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19800
19801 * server.c (gdbserver_usage): Mention --version.
19802
6e23a804
DJ
198032008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19804
19805 * Makefile.in (gdbreplay.o): New rule.
19806
90aa6a40
JM
198072008-06-06 Joseph Myers <joseph@codesourcery.com>
19808
19809 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19810 message, not gdbserver.
19811
c16158bc 198122008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19813 Nathan Sidwell <nathan@codesourcery.com>
19814 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19815
19816 * acinclude.m4: Include ../../config/acx.m4.
19817 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19818 * configure, config.in: Regenerate.
19819 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19820 * server.c (gdbserver_version): Print PKGVERSION.
19821 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19822 (main): Adjust gdbserver_usage calls.
19823 * gdbreplay.c (version, host_name): Add declarations.
19824 (gdbreplay_version, gdbreplay_usage): New.
19825 (main): Accept --version and --help options.
19826
aeb75bf5
DJ
198272008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19828
19829 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19830 (arm_breakpoint_at): Handle Thumb.
19831 (the_low_target): Add comment.
19832
76b233dd
UW
198332008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19834
19835 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19836
08388c79
DE
198372008-05-09 Doug Evans <dje@google.com>
19838
a3c83fae
DE
19839 * server.h (decode_search_memory_packet): Declare.
19840 * remote-utils.c (decode_search_memory_packet): New fn.
19841 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19842 (handle_search_memory): New fn.
19843 (handle_query): Process qSearch:memory packets.
19844
bb9c3d36
UW
198452008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19846
19847 * regcache.c (registers_length): Remove.
19848 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19849 full register packet.
19850 * regcache.h (registers_length): Remove prototype.
19851 * server.h (PBUFSIZ): Define to 16384.
19852
7284e1be
UW
198532008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19854
19855 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19856 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19857 powerpc-64l.o, and powerpc-altivec64l.o.
19858 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19859 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19860 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19861 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19862 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19863 to srv_xmlfiles.
19864
19865 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19866 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19867 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19868 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19869 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19870 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19871 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19872 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19873 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19874 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19875 (clean): Update.
19876
19877 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19878 (init_registers_powerpc_32l): ... this new prototype.
19879 (init_registers_powerpc_32): Remove, replace by ...
19880 (init_registers_powerpc_altivec32l): ... this new prototype.
19881 (init_registers_powerpc_e500): Remove, replace by ...
19882 (init_registers_powerpc_e500l): ... this new prototype.
19883 (init_registers_ppc64): Remove, replace by ...
19884 (init_registers_powerpc_64l): ... this new prototype.
19885 (init_registers_powerpc_64): Remove, replace by ...
19886 (init_registers_powerpc_altivec64l): ... this new prototype.
19887 (ppc_num_regs): Set to 73.
19888 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19889 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19890 (ppc_cannot_store_register): Handle orig_r3 and trap.
19891 (ppc_arch_setup): Update init_registers_... calls.
19892 (ppc_fill_gregset): Handle orig_r3 and trap.
19893
19894 * inferiors.c (clear_inferiors): Reset current_inferior.
19895
fdc59709
PB
198962008-04-23 Paolo Bonzini <bonzini@gnu.org>
19897
889bf7c5
PA
19898 * acinclude.m4: Add override.m4.
19899 * configure: Regenerate.
fdc59709 19900
c9b2f845
UW
199012008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19902
19903 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19904 initial call to init_register_ppc64.
19905
550512b8
UW
199062008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19907
43aaf8b6
PA
19908 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19909 single powerpc*-*-linux* case.
550512b8
UW
19910 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19911
b6430ec3
UW
199122008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19913
19914 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 19915 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
19916 from reg_xmlfiles.
19917 * linux-ppc-low.c: Include <elf.h>.
19918 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19919 (ppc_hwcap): New global variable.
19920 (ppc_regmap): Remove __SPE__ #ifdef sections.
19921 (ppc_regmap_e500): New global variable.
19922 (ppc_cannot_store_register): Update __SPE__ special case.
19923 (ppc_get_hwcap): New function.
19924 (ppc_arch_setup): Use it to determine whether inferior supports
19925 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19926 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19927 Do not access registers if target does not support AltiVec.
19928 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19929 Do not access registers if target does not support SPE.
19930 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19931
52fa2412
UW
199322008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19933
19934 * linux-low.c (disabled_regsets, num_regsets): New.
19935 (use_regsets_p): Delete.
19936 (linux_wait_for_process): Clear disabled_regsets.
19937 (regsets_fetch_inferior_registers): Check and set it.
19938 (regsets_store_inferior_registers): Likewise.
19939 (linux_fetch_registers, linux_store_registers): Do not use
19940 use_regsets_p.
19941 (initialize_low): Allocate disabled_regsets.
19942
e28b3332
DJ
199432008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19944
19945 * Makefile.in (LIBOBJS): New.
19946 (OBS): Use LIBOBJS.
19947 (memmem.o): New rule.
19948 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19949 * configure: Regenerated.
19950
4536995d
UW
199512008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19952
19953 * server.c (handle_query): Never return "unsupported" for
19954 qXfer:features:read queries.
19955
221c031f
UW
199562008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19957
19958 * server.c (get_features_xml): Fix inverted condition.
19959 (handle_query): Always support qXfer:feature:read.
19960
ccd213ac
DJ
199612008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19962
19963 * server.c (wrapper_argv): New.
19964 (start_inferior): Handle wrapper_argv. If set, expect an extra
19965 trap.
19966 (gdbserver_usage): Document --wrapper.
19967 (main): Parse --wrapper.
19968
6fe305f7
UW
199692008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19970
19971 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19972 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19973 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19974 (ppc_set_pc): Likewise.
19975 (ppc_arch_setup): New function.
19976 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19977 of collect_register.
889bf7c5 19978 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 19979
5b0a002e
UW
199802008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19981
19982 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19983 instead of linux-ppc64-low.o.
19984 * linux-ppc64-low.c: Remove file.
19985 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19986 (linux-ppc64-low.o): Remove rule.
19987
19988 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19989 (init_registers_powerpc_64): Likewise.
19990 (ppc_regmap): Conditionally define depending on __powerpc64__.
19991 (ppc_cannot_store_register): Do not special-case "fpscr" when
19992 compiled on __powerpc64__.
19993 (ppc_collect_ptrace_register): New function.
19994 (ppc_supply_ptrace_register): New function.
19995 (ppc_breakpoint): Change type to "unsigned int".
19996 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19997 (the_low_target): Conditionally provide initializers for the
889bf7c5 19998 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
19999 collect_ptrace_register and supply_ptrace_register members.
20000
9b4b61c8
UW
200012008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20002
20003 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20004 * server.c (gdbserver_xmltarget): Define.
20005 (get_features_xml): Use it to replace "target.xml" and arch_string.
20006
20007 * configure.srv: Remove srv_xmltarget. Add XML files that were
20008 mentioned there to srv_xmlfiles instead. Remove conditional tests
20009 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20010 srv_xmlfiles and srv_regobj to include all possible choices.
20011 * configure.ac (srv_xmltarget): Remove.
20012 (srv_xmlfiles): Do not add "target.xml".
20013 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20014 checks for supplementary target information.
20015 * configure: Regenerate.
20016 * Makefile.in (XML_TARGET): Remove.
20017 (target.xml): Remove rule.
20018 (clean): Do not clean up target.xml.
20019 (.PRECIOUS): Do not mention target.xml.
20020
20021 * target.h (struct target_ops): Remove arch_string member.
20022 * linux-low.c (linux_arch_string): Remove.
20023 (linux_target_ops): Remove arch_string initializer.
20024 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20025 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20026 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20027 * spu-low.c (spu_arch_string): Remove.
20028 (spu_target_ops): Remove arch_string initializer.
20029 * win32-low.c (win32_arch_string): Remove.
20030 (win32_target_ops): Remove arch_string initializer.
20031 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20032 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20033 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20034
ee1a7ae4
UW
200352008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20036
20037 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20038 by collect_ptrace_register and supply_ptrace_register hooks.
20039 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20040 instead of checking for the_low_target.left_pad_xfer.
20041 (usr_store_inferior_registers): Use collect_ptrace_register callback
20042 instead of checking for the_low_target.left_pad_xfer.
20043
20044 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20045 (s390_supply_ptrace_register): Likewise.
20046 (s390_fill_gregset): Call s390_collect_ptrace_register.
20047 (the_low_target): Update.
20048
20049 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20050 (ppc_supply_ptrace_register): Likewise.
20051 (the_low_target): Update.
20052
20053 * linux-i386-low.c (the_low_target): Update.
20054 * linux-x86-64-low.c (the_low_target): Update.
20055
d61ddec4
UW
200562008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20057
20058 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20059 reg-s390.o and reg-s390x.o.
20060
20061 * linux-low.c (new_inferior): New global variable.
20062 (linux_create_inferior, linux_attach): Set it.
20063 (linux_wait_for_process): Call the_low_target.arch_setup after the
20064 target has stopped for the first time.
20065 (initialize_low): Do not call the_low_target.arch_setup.
20066
20067 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20068 (s390_set_pc): Likewise.
20069 (s390_arch_setup): New function.
20070 (the_low_target): Use s390_arch_setup as arch_setup routine.
20071
20072 * regcache.c (realloc_register_cache): New function.
20073 (set_register_cache): Call it for each existing regcache.
20074
d05b4ac3
UW
200752008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20076
20077 * server.h (init_registers): Remove prototype.
20078
20079 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20080 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20081 instead of init_registers ().
20082 * linux-arm-low.c (init_registers_arm): Add prototype.
20083 (init_registers_arm_with_iwmmxt): Likewise.
20084 (the_low_target): Add initializer for arch_setup field.
20085 * linux-cris-low.c (init_registers_cris): Add prototype.
20086 (the_low_target): Add initializer for arch_setup field.
20087 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20088 (the_low_target): Add initializer for arch_setup field.
20089 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20090 (the_low_target): Add initializer for arch_setup field.
20091 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20092 (the_low_target): Add initializer for arch_setup field.
20093 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20094 (the_low_target): Add initializer for arch_setup field.
20095 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20096 (the_low_target): Add initializer for arch_setup field.
20097 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20098 (init_registers_mips64_linux): Likewise.
20099 (the_low_target): Add initializer for arch_setup field.
20100 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20101 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20102 (the_low_target): Add initializer for arch_setup field.
20103 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20104 (init_registers_powerpc_64): Likewise.
20105 (the_low_target): Add initializer for arch_setup field.
20106 * linux-s390-low.c (init_registers_s390): Add prototype.
20107 (init_registers_s390x): Likewise.
20108 (the_low_target): Add initializer for arch_setup field.
20109 * linux-sh-low.c (init_registers_sh): Add prototype.
20110 (the_low_target): Add initializer for arch_setup field.
20111 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20112 (the_low_target): Add initializer for arch_setup field.
20113 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20114 (the_low_target): Add initializer for arch_setup field.
20115
20116 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20117 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20118 instead of init_registers ().
20119 * win32-arm-low.c (init_registers_arm): Add prototype.
20120 (the_low_target): Add initializer for arch_setup field.
20121 * win32-i386-low.c (init_registers_i386): Add prototype.
20122 (the_low_target): Add initializer for arch_setup field.
20123
20124 * spu-low.c (init_registers_spu): Add prototype.
20125 (initialize_low): Call initialie_registers_spu () instead of
20126 initialize_registers ().
20127
fd96d250
PA
201282008-02-19 Pedro Alves <pedro@codesourcery.com>
20129
20130 * server.c (handle_v_requests): When handling the vRun and vAttach
20131 packets, if already debugging a process, don't kill it. Return an
20132 error instead.
20133
d41b6bb4
DJ
201342008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20135
20136 * server.c (handle_query): Correct length check.
20137
5ac588cf
PA
201382008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20139
20140 * win32-low.c (do_initial_child_stuff): Add process handle
20141 parameter. Set current_process_handle and current_process_id from the
20142 parameters. Clear globals.
20143 (win32_create_inferior): Don't set current_process_handle and
20144 current_process_id here. Instead pass them on the call to
20145 do_initial_child_stuff.
20146 (win32_attach): Likewise.
20147 (win32_clear_inferiors): New.
20148 (win32_kill): Don't close the current process handle or the
20149 current thread handle here. Instead call win32_clear_inferiors.
20150 (win32_detach): Don't open a new handle to the process. Call
20151 win32_clear_inferiors.
20152 (win32_join): Don't rely on current_process_handle; open a new
20153 handle using the process id.
20154 (win32_wait): Call win32_clear_inferiors when the inferior process
20155 has exited.
20156
ecd7ecbc
DJ
201572008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20158
20159 * server.c (monitor_show_help): Add "exit".
20160
1525d545
MG
201612008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20162
ecd7ecbc 20163 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20164 (clean): Add reg-xtensa.c.
20165 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20166 * configure.srv (xtensa*-*-linux*) New target.
20167 * linux-xtensa-low.c: New.
20168 * xtensa-xtregs.c: New.
1525d545 20169
59a016f0
PA
201702008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20171
20172 * hostio.c: Don't include errno.h.
20173 (errno_to_fileio_errno): Move to hostio-errno.
20174 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20175 error number outputting to the target->hostio_last_error callback.
20176 (hostio_packet_error): Use FILEIO_EINVAL directly.
20177 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20178 calls to hostio_error.
20179 * hostio-errno.c: New.
20180 * server.h (hostio_last_error_from_errno): Declare.
20181 * target.h (target_ops): Add hostio_last_error member.
20182 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20183 as hostio_last_error handler.
889bf7c5 20184 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20185 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20186 (wince_hostio_last_error): New functions.
20187 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20188 as hostio_last_error handler.
20189 (win32_target_ops) [!_WIN32_WCE]: Register
20190 hostio_last_error_from_errno as hostio_last_error handler.
20191 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20192 (hostio-errno.o): New rule.
20193 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20194 * configure.srv (srv_hostio_err_objs): New variable. Default to
20195 hostio-errno.o.
20196 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20197 * configure: Regenerate.
20198
2d717e4f
DJ
201992008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20200
20201 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20202 (linux_kill, linux_detach): Clean up the process list.
20203 * remote-utils.c (remote_open): Improve port number parsing.
20204 (putpkt_binary, input_interrupt): Only send interrupts if the target
20205 is running.
20206 * server.c (extended_protocol): Make static.
20207 (attached): Define earlier.
20208 (exit_requested, response_needed, program_argv): New variables.
20209 (target_running): New.
20210 (start_inferior): Clear attached here.
20211 (attach_inferior): Set attached here.
20212 (require_running): Define.
20213 (handle_query): Use require_running and target_running. Implement
20214 "monitor exit".
20215 (handle_v_attach, handle_v_run): New.
20216 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20217 (gdbserver_usage): Update.
20218 (main): Redo argument parsing. Handle --debug and --multi. Handle
20219 --attach along with other options or after the port. Save
20220 program_argv. Support no initial program. Resynchronize
20221 communication with GDB after an error. Handle "monitor exit".
20222 Use require_running and target_running. Always allow the extended
20223 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20224 restart in extended mode.
20225 * README: Refer to the GDB manual. Update --attach usage.
20226
7407e2de
AS
202272007-12-20 Andreas Schwab <schwab@suse.de>
20228
20229 * linux-low.c (STACK_SIZE): Define.
20230 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20231 (linux_test_for_tracefork): Likewise.
20232
b65d95c5
DJ
202332007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20234
20235 * linux-low.c (linux_wait_for_event): Update messages. Do not
20236 reinsert auto-delete breakpoints.
20237 * mem-break.c (struct breakpoint): Change return type of handler to
20238 int.
20239 (set_breakpoint_at): Update handler type.
20240 (reinsert_breakpoint_handler): Return 1 instead of calling
20241 delete_breakpoint.
20242 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20243 setting a new one.
20244 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20245 * mem-break.h (set_breakpoint_at): Update handler type.
20246 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20247 * win32-low.c (auto_delete_breakpoint): New.
20248 (get_child_debug_event): Use it.
20249
4e799345
DJ
202502007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20251
20252 * configure.ac: Check for pread and pwrite.
20253 * hostio.c (handle_pread): Fall back to lseek and read.
20254 (handle_pwrite): Fall back to lseek and write.
20255 * config.in, configure: Regenerated.
20256
27524b67
DJ
202572007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20258
20259 * server.c (myresume): Add own_buf argument.
20260 (main): Update calls.
20261
a20d5e98
DJ
202622007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20263
20264 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20265 * remote-utils.c (remote_open): Do not call disable_async_io.
20266 (block_async_io): Delete.
20267 (unblock_async_io): Make static.
20268 (initialize_async_io): New.
20269 * server.c (handle_v_cont): Handle async I/O here.
20270 (myresume): Likewise. Move other common resume tasks here...
20271 (main): ... from here. Call initialize_async_io. Disable async
20272 I/O before the main loop.
20273 * server.h (initialize_async_io): Declare.
20274 (block_async_io, unblock_async_io): Delete prototypes.
20275 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20276
b79d787e
DJ
202772007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20278
20279 * remote-utils.c (readchar): Allow binary data in received messages.
20280
d97903b2
PA
202812007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20282
20283 * win32-low.c (attaching): New global.
20284 (win32_create_inferior): Clear the `attaching' global.
20285 (win32_attach): Set the `attaching' global.
20286 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20287 attaching. Only set a breakpoint at the entry point if not
20288 attaching.
20289
311de423
PA
202902007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20291
20292 * server.c (main): Don't report dll events on the initial
20293 connection on attaches.
20294
6c2d16d2
PA
202952007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20296
20297 * server.c (main): Relax numerical bases supported for the pid of
20298 the --attach command line argument.
20299
5ca906e6
PA
203002007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20301
20302 * win32-low.c (win32_attach): Call OpenProcess before
20303 DebugActiveProcess, not after. Add last error output to error
20304 call.
20305
9c6c8194
PA
203062007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20307
20308 * win32-low.c (win32_get_thread_context)
20309 (win32_set_thread_context): New functions.
20310 (thread_rec): Use win32_get_thread_context.
20311 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20312 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20313 field.
20314
4d5d1aaa
PA
203152007-12-03 Leo Zayas
20316 Pedro Alves <pedro_alves@portugalmail.pt>
20317
20318 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20319 global variables.
20320 (child_add_thread): Minor cleanup.
20321 (child_continue): Resume artificially suspended threads before
20322 calling ContinueDebugEvent.
20323 (suspend_one_thread): New.
20324 (fake_breakpoint_event): New.
20325 (get_child_debug_event): Change return type to int. Check here if
20326 gdb sent an interrupt request. If a soft interrupt was requested,
20327 fake a breakpoint event. Return 0 if there is no event to handle,
20328 and 1 otherwise.
20329 (win32_wait): Don't check here if gdb sent an interrupt request.
20330 Ensure there is a valid event to handle.
20331 (win32_request_interrupt): Add soft interruption method as last
20332 resort.
20333
c436e841
PA
203342007-12-03 Leo Zayas
20335 Pedro Alves <pedro_alves@portugalmail.pt>
20336
20337 * win32-low.h (win32_thread_info): Add descriptions to the
20338 structure members. Replace `suspend_count' counter by a
20339 `suspended' flag.
20340 * win32-low.c (thread_rec): Update condition of when to get the
20341 context from the inferior. Rely on ContextFlags being set if it
20342 has already been retrieved. Only suspend the inferior thread if
20343 we haven't already. Warn if that fails.
20344 (continue_one_thread): s/suspend_count/suspended/. Only call
20345 ResumeThread once. Warn if that fails.
20346
e7b5fa67
PA
203472007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20348
20349 * win32-low.c (win32_wait): Don't read from the inferior when it
20350 has already exited.
20351
a385171d
PA
203522007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20353
20354 * Makefile.in (win32_low_h): New variable.
20355 (win32-low.o): Add dependency on $(win32_low_h).
20356 (win32-arm-low.o, win32-i386-low.o): New rules.
20357
f80c84b3
DJ
203582007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20359
20360 * hostio.c: Correct copyright year.
20361
a6b151f1
DJ
203622007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20363
20364 * Makefile.in (OBS): Add hostio.o.
20365 (hostio.o): New rule.
20366 * server.h (handle_vFile): Declare.
20367 * hostio.c: New file.
20368 * server.c (handle_v_requests): Take packet_len and new_packet_len
20369 for binary packets. Call handle_vFile.
20370 (main): Update call to handle_v_requests.
20371
f9387fc3
DJ
203722007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20373
20374 * linux-low.c: Include <sched.h>.
20375
51c2684e
DJ
203762007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20377
20378 * linux-low.c (linux_tracefork_grandchild): New.
20379 (linux_tracefork_child): Use clone.
20380 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20381
75f83163
JB
203822007-10-31 Joel Brobecker <brobecker@adacore.com>
20383
20384 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20385
da5898ce
DJ
203862007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20387
20388 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20389
24a09b5f
DJ
203902007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20391
20392 * inferiors.c (change_inferior_id): Delete.
20393 (add_pid_to_list, pull_pid_from_list): New.
20394 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20395 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20396 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20397 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20398 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20399 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20400 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20401 (using_threads): Always set to 1.
20402 (handle_extended_wait): New.
20403 (add_process): Do not set TID.
20404 (linux_create_inferior): Set must_set_ptrace_flags.
20405 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20406 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20407 (linux_thread_alive): Rename TID argument to LWPID.
20408 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20409 (linux_wait_for_event): Do not use TID or check using_threads. Update
20410 call to dead_thread_notify. Call handle_extended_wait.
20411 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20412 (send_sigstop): Delete sigstop_sent.
20413 (wait_for_sigstop): Avoid TID.
20414 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20415 (linux_test_for_tracefork): New.
20416 (linux_lookup_signals): Use thread_db_active and
20417 linux_supports_tracefork_flag.
20418 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20419 * linux-low.h (get_process_thread): Avoid TID.
20420 (struct process_ifo): Move thread_known and tid to the end. Remove
20421 sigstop_sent.
20422 (linux_attach_lwp, thread_db_init): Update prototypes.
20423 * server.h (change_inferior_id): Delete prototype.
20424 (add_pid_to_list, pull_pid_from_list): New prototypes.
20425 * thread-db.c (thread_db_use_events): New.
20426 (find_first_thread): Rename to...
20427 (find_one_thread): ...this. Update callers and messages. Do not
20428 call fatal. Check thread_db_use_events. Do not call
20429 change_inferior_id or new_thread_notify.
20430 (maybe_attach_thread): Update. Do not call new_thread_notify.
20431 (thread_db_init): Set thread_db_use_events. Check use_events.
20432 * utils.c (fatal, warning): Correct message prefix.
20433
30ed0a8f
DJ
204342007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20435
20436 * Makefile.in (clean): Remove new files.
20437 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20438 (powerpc-64.o, powerpc-64.c): New rules.
20439 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20440 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20441 with SPE.
20442 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20443 SPE targets.
20444 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20445 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20446 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20447 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20448 (target_regsets): Add AltiVec and SPE register sets.
20449 * configure.ac: Check for AltiVec and SPE.
20450 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20451 (ppc_fill_vrregset, ppc_store_vrregset): New.
20452 (target_regsets): Add AltiVec register set.
20453 * configure: Regenerated.
20454
fd462a61
DJ
204552007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20456
20457 * linux-low.c (O_LARGEFILE): Define.
20458 (linux_read_memory): Use /proc/PID/mem.
20459 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20460 * configure, config.in: Regenerated.
20461
69f223ed
DJ
204622007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20463
20464 * linux-low.c (linux_wait_for_event): Do not pass signals while
20465 single-stepping.
20466
aec18585
PA
204672007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20468
20469 * win32-low.c (create_process): New.
20470 (win32_create_inferior): Use create_process instead of
20471 CreateProcess. If create_process failed retry appending an ".exe"
20472 suffix. Store the GetLastError result immediatelly after
20473 create_process calls and use it on the call to error.
20474
34d86ddd
PA
204752007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20476
20477 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20478
5a0e3bd0
JB
204792007-08-23 Joel Brobecker <brobecker@adacore.com>
20480
20481 * configure.ac: Switch license to GPLv3.
20482
f88c79e6
MS
204832007-08-01 Michael Snyder <msnyder@access-company.com>
20484
20485 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20486
6b3d9b83
PA
204872007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20488
20489 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20490 typedef.
20491 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20492 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20493 CloseToolhelp32Snapshot.
20494 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20495 CloseToolhelp32Snapshot.
20496
c588c53c
MS
204972007-07-27 Michael Snyder <michael.snyder@access-company.com>
20498
20499 * server.c (main): Check for inferior exit before main loop.
20500
aa0403d9
PA
205012007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20502
20503 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20504 instead of on tmp_desc.
20505
255e7678
DJ
205062007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20507 Daniel Jacobowitz <dan@codesourcery.com>
20508
20509 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20510 (add_thread): Minor cleanups.
20511 (clear_inferiors): Move lower in the file. Clear the DLL
20512 list.
20513 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20514 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20515 (xml_escape_text): New.
20516 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20517 for qSupported.
20518 (handle_v_cont): Report errors.
20519 (gdbserver_version): Update.
20520 (main): Correct size of own_buf. Do not report initial DLL events.
20521 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20522 (unloaded_dll, xml_escape_text): New.
20523 * win32-low.c (enum target_waitkind): Update comments.
20524 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20525 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20526 (win32_EnumProcessModules, win32_GetModuleInformation)
20527 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20528 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20529 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20530 (win32_Module32First, win32_Module32Next, load_toolhelp)
20531 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20532 (get_child_debug_event): Handle DLL events.
20533 (win32_wait): Likewise.
20534
0d37add9
DJ
205352007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20536
20537 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20538 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20539
45e2715e
PA
205402007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20541
20542 * win32-low.c (handle_output_debug_string): Ignore event if not
20543 waiting.
20544
c5674cf1
PA
205452007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20546
20547 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20548
2bbe3cc1
DJ
205492007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20550
20551 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20552
ae13219e
DJ
205532007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20554
20555 * inferiors.c (change_inferior_id): Add comment.
20556 * linux-low.c (check_removed_breakpoint): Add an early
20557 prototype. Improve debug output.
20558 (linux_attach): Doc update.
20559 (linux_detach_one_process, linux_detach): Clean up before releasing
20560 each process.
20561 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20562 * linux-low.h (struct process_info): Doc improvement.
20563 * mem-break.c (delete_all_breakpoints): New.
20564 * mem-break.h (delete_all_breakpoints): New prototype.
20565 * thread-db.c (find_first_thread): New.
20566 (thread_db_create_event): Call it instead of
20567 thread_db_find_new_threads. Clean up unused variables.
20568 (maybe_attach_thread): Remove first thread handling.
20569 (thread_db_find_new_threads): Use find_first_thread.
20570 (thread_db_get_tls_address): Likewise.
20571
4105de34
DJ
205722007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20573
20574 * thread-db.c (thread_db_find_new_threads): Add prototype.
20575 (thread_db_create_event): Check for the main thread before adding
20576 a new thread.
20577 (maybe_attach_thread): Only enable event reporting if TID == 0.
20578 (thread_db_get_tls_address): Check for new threads.
20579
2b876972
DJ
205802007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20581
20582 * linux-low.c (linux_create_inferior): Try execv before execvp.
20583 * spu-low.c (spu_create_inferior): Likewise.
20584
7a245884
DJ
205852007-06-13 Mike Frysinger <vapier@gentoo.org>
20586
20587 * linux-low.c (linux_create_inferior): Change execv to execvp.
20588 * spu-low.c (spu_create_inferior): Likewies.
20589
117ce543
DJ
205902007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20591
20592 * Makefile.in (clean): Clean new files instead of deleted ones.
20593 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20594 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20595 rules.
20596 * configure.srv: Specify XML files and new regformats for MIPS and
20597 MIPS64 GNU/Linux.
20598 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20599 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20600 an entry for the restart register.
20601 (mips_cannot_fetch_register, mips_cannot_store_register)
20602 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20603 register names to match the XML descriptions.
20604 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20605 restart register instead of $0.
20606
0e7f50da
UW
206072007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20608 Markus Deuling <deuling@de.ibm.com>
20609
20610 * remote-utils.c (decode_xfer_write): New function.
20611 * server.h (decode_xfer_write): Add prototype.
20612 * server.c (handle_query): Add PACKET_LEN argument. Support
20613 qXfer:spu:read and qXfer:spu:write packets.
20614 (main): Pass packet_len to handle_query.
20615 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20616 * target.h (target_ops): Add qxfer_spu.
20617
374c1d38
UW
206182007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20619
20620 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20621 accessing non-seekable spufs files.
20622
bb63802a
UW
206232007-05-16 Markus Deuling <deuling@de.ibm.com>
20624
889bf7c5 20625 * server.c (handle_query): Add reply for qC packet.
bb63802a 20626
7390519e
PA
206272007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20628 Leo Zayas <lerele@champenstudios@com>
20629
20630 * server.h (check_remote_input_interrupt_request): New function.
20631 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20632 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20633 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20634 (check_remote_input_interrupt_request): New function.
20635 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20636 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20637 winapi_GenerateConsoleCtrlEvent): New typedefs.
20638 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20639 to 250 ms.
20640 (win32_wait): Check for remote interrupt request
20641 with check_remote_input_interrupt_request.
20642 (win32_request_interrupt): New function.
20643 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20644
34b34921
PA
206452007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20646
20647 * win32-low.c (debug_registers_changed,
20648 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20649 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20650 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20651 (thread_rec): Get context using the low target.
20652 (child_add_thread): Call thread_added on the low target,
20653 which does the same thing.
20654 (regptr): Delete.
20655 (do_initial_child_stuff): Remove debug registers references.
20656 Set context using the low target. Resume threads after
20657 setting the contexts.
20658 (child_continue): Remove dead variable. Remove debug
20659 registers references.
20660 (child_fetch_inferior_registers): Go through the low target.
20661 (do_child_store_inferior_registers): Remove.
20662 (child_store_inferior_registers): Go through the low target.
20663 (win32_resume): Remove debug registers references.
20664 Set context using the low target.
20665 (handle_exception): Change return type to void. Don't record
20666 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20667 first chance exception.
889bf7c5 20668 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20669 goto loop. Always return after waiting for debug event.
20670 (win32_wait): Convert to switch statement. Handle spurious
20671 events.
20672
20673 * win32-i386-low.c (debug_registers_changed,
20674 debug_registers_used): New.
20675 (initial_stuff): Rename to ...
20676 (i386_initial_stuff): ... this. Clear debug registers
20677 state variables.
20678 (store_debug_registers): Delete.
20679 (i386_get_thread_context): New.
20680 (load_debug_registers): Delete.
20681 (i386_set_thread_context): New.
20682 (i386_thread_added): New.
20683 (single_step): Rename to ...
20684 (i386_single_step): ... this.
20685 (do_fetch_inferior_registers): Rename to ...
20686 (i386_fetch_inferior_register): ... this.
20687 (i386_store_inferior_register): New.
20688 (the_low_target): Adapt to new interface.
20689
20690 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20691 (arm_get_thread_context): New.
20692 (arm_set_thread_context): New.
20693 (regptr): New.
20694 (do_fetch_inferior_registers): Rename to ...
20695 (arm_fetch_inferior_register): ... this.
20696 (arm_store_inferior_register): New.
20697 (arm_wince_breakpoint): Reimplement as unsigned long.
20698 (arm_wince_breakpoint_len): Define.
20699 (the_low_target): Adapt to new interface.
20700
20701 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20702 load_debug_registers. Add get_thread_context, set_thread_context,
20703 thread_added and store_inferior_register. Rename
20704 fetch_inferior_registers to fetch_inferior_register.
20705 (regptr): Remove declaration.
20706
dd6953e1
PA
207072007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20708
20709 * linux-low.c (linux_detach): Change return type to int. Return 0.
20710 * spu-low.c (spu_detach): Likewise.
20711
444d6139
PA
207122007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20713
20714 * target.h (target_ops): Change return type of detach to int.
20715 Add join.
20716 (join_inferior): New.
20717 * server.c (main): Don't skip detach support on mingw32.
20718 If the inferior doesn't support detaching return error.
20719 Call join_inferior instead of using waitpid.
20720 * linux-low.c (linux_join): New.
20721 (linux_target_op): Add linux_join.
20722 * spu-low.c (spu_join): New.
20723 (spu_target_ops): Add spu_join.
20724 * win32-low.c (win32_detach): Adapt to new interface.
20725 Reopen current_process_handle before detaching. Issue a child
20726 resume before detaching.
20727 (win32_join): New.
20728 (win32_target_op): Add win32_join.
20729
1d5315fe
PA
207302007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20731
20732 * win32-low.c (win32-attach): Fix return value.
20733 * target.h (target_ops): Describe ATTACH return values.
20734
bf914831
PA
207352007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20736
20737 * win32-low.c (GETPROCADDRESS): Define.
20738 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20739 (winapi_DebugSetProcessKillOnExit): Likewise.
20740 (win32_create_inferior): Force usage of ansi CreateProcessA.
20741 (win32_attach): Use GETPROCADDRESS.
20742 (win32_detach): Likewise.
20743
f72f3e60
PA
207442007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20745
20746 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20747
ed50f18f
PA
207482007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20749
20750 * win32-low.c: Commit leftover changes from 2007-03-29.
20751
0c2ead7e
DJ
207522007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20753
20754 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20755 fields short instead of int. Add explicit padding.
20756 (i387_cache_to_fsave): Remove unnecessary casts.
20757 (i387_fsave_to_cache): Doc fix.
20758 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20759
73725ff3
DJ
207602007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20761
20762 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20763 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20764
d99f33d8
PA
207652007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20766
20767 * configure.srv (arm*-*-mingw32ce*): Move near the other
20768 arm targets.
20769
68070c10
PA
207702007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20771
2482afc6 20772 * configure.ac: Add errno checking.
68070c10
PA
20773 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20774 sys/file.h and malloc.h.
20775 (AC_CHECK_DECLS): Add perror.
20776 (srv_mingwce): Handle.
2482afc6 20777 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20778 win32-i386-low.o to srv_tgtobj.
20779 (i[34567]86-*-mingw*): Likewise.
20780 (arm*-*-mingw32ce*): Add case.
20781 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20782 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20783 [__MINGW32CE__] (strerror): New function.
20784 [__MINGW32CE__] (errno): Define to GetLastError.
20785 [__MINGW32CE__] (COUNTOF): New macro.
20786 (remote_open): Remove extra close call.
20787 * mem-break.c (delete_breakpoint_at): New function.
20788 * mem-break.h (delete_breakpoint_at): Declare.
20789 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20790 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20791 [USE_WIN32API] (read, write): Add char* casts.
20792 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20793 * server.h: Include wincecompat.h on Windows CE.
20794 [HAVE_ERRNO_H]: Check.
20795 (perror): Declare if not declared.
20796 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20797 (perror_with_name): Remove errno declaration.
20798 * wincecompat.h: New.
20799 * wincecompat.c: New.
20800 * win32-low.h: New.
20801 * win32-arm-low.c: New.
20802 * win32-i386-low.c: New.
20803 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20804 (OUTMSG2): Make it safe.
20805 (_T): New macro.
20806 (COUNTOF): New macro.
20807 (NUM_REGS): Get it from the low target.
20808 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20809 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20810 (thread_rec): Let low target handle debug registers.
20811 (child_add_thread): Likewise.
20812 (child_init_thread_list): Likewise.
20813 (continue_one_thread): Likewise.
20814 (regptr): New.
20815 (do_child_fetch_inferior_registers): Move to ...
20816 * win32-i386-low.c: ... here, and rename to ...
20817 (do_fetch_inferior_registers): ... this.
889bf7c5 20818 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20819 Go through the low target.
20820 (do_child_store_inferior_registers): Use regptr.
20821 (strwinerror): New function.
20822 (win32_create_inferior): Handle Windows CE.
20823 Use strwinerror instead of strerror on Windows error
20824 codes. Add program to the error output.
20825 Don't close the main thread handle on Windows CE.
20826 (win32_attach): Use coredll.dll on Windows CE.
20827 (win32_kill): Close current process and current
20828 thread handles.
20829 (win32_detach): Use coredll.dll on Windows CE.
20830 (win32_resume): Let low target handle debug registers, and
20831 step request.
20832 (handle_exception): Add/Remove initial breakpoint. Avoid
20833 non-existant WSTOPSIG on Windows CE.
20834 (win32_read_inferior_memory): Cast to remove warning.
20835 (win32_arch_string): Go through the low target.
20836 (initialize_low): Call set_breakpoint_data with the low
20837 target's breakpoint.
20838 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20839 FOP_REGNUM, mappings): Move to ...
20840 * win32-i386-low.c: ... here.
20841 * win32-low.c (win32_thread_info): Move to ...
20842 * win32-low.h: ... here.
20843 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20844 win32-arm-low.c and wincecompat.c.
20845 (all:): Add $EXEEXT.
20846 (install-only:): Likewise.
20847 (gdbserver:): Likewise.
20848 (gdbreplay:): Likewise.
20849 * config.in: Regenerate.
20850 * configure: Regenerate.
20851
41093d81
PA
208522007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20853
20854 * win32-low.c: Rename typedef thread_info to
20855 win32_thread_info throughout.
20856
544afa54
PA
208572007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20858
20859 * win32-i386-low.c: Rename to ...
20860 * win32-low.c: ... this.
20861 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20862 * Makefile.in: Likewise.
20863
bce7165d
PA
208642007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20865
20866 * remote-utils.c (monitor_output): Constify msg parameter.
20867 * server.h (monitor_output): Likewise.
20868 * win32-i386-low.c (handle_output_debug_string): New.
20869 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20870 handle_output_debug_string.
20871 (get_child_debug_event): Likewise.
20872
506c7aa0
DJ
208732007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20874
20875 * server.c (main): Correct strtoul check.
20876
42c81e2a
DJ
208772007-03-27 Jon Ringle <jon@ringle.org>
20878
20879 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20880
9453113a
DJ
208812007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20882
20883 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20884
64a69107
DJ
208852007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20886
20887 * terminal.h: Check HAVE_SGTTY_H.
20888
208892007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
20890
20891 * remote-utils.c (remote_open): Print out the assigned port number.
20892
c74d0ad8
DJ
208932007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20894
20895 * remote-utils.c (monitor_output): New function.
20896 * server.c (debug_threads): Define here.
20897 (monitor_show_help): New function.
20898 (handle_query): Handle qRcmd.
20899 (main): Do not handle 'd' packet.
20900 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20901 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20902 of debug_threads.
20903
de7c3b4a
PA
209042007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20905
20906 * Makefile.in (EXEEXT): New.
20907 (clean): Use $(EXEEXT).
20908
ef57601b
PA
209092007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20910
20911 * target.h (target_ops): Rename send_signal to request_interrupt,
20912 and remove enum target_signal parameter.
20913 * linux-low.c (linux_request_interrupt): Rename from
20914 linux_send_signal, and always send SIGINT.
20915 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20916 and always send SIGINT.
20917 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20918 of send_signal.
20919 (input_interrupt): Likewise.
20920
820f2bda
PA
209212007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20922
20923 * server.c (get_features_xml): Check if target implemented
20924 arch_string.
20925 * win32-i386-low.c (win32_arch_string): New.
20926 (win32_target_ops): Add win32_arch_string as arch_string member.
20927
ab39bf24
UW
209282007-02-22 Markus Deuling <deuling@de.ibm.com>
20929
20930 * spu-low.c (spu_arch_string): New.
20931 (spu_target_ops): Add spu_arch_string.
20932
61ff6e04
DJ
209332007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20934
20935 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20936 * configure.ac: Do not check for terminal.h.
20937 * configure, config.in: Regenerated.
20938
fb1e4ffc
DJ
209392007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20940
20941 * Makefile.in (OBS): Add $(XML_BUILTIN).
20942 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20943 (clean): Update.
20944 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20945 (arm-with-iwmmxt.c): New.
20946 * config.in, configure: Regenerate.
20947 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20948 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20949 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20950 (arm*-*-linux*): Add iWMMXt and regset support.
20951 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20952 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20953 (arm_store_wmmxregset, target_regsets): New.
20954 * server.c (get_features_xml): Take annex argument. Check builtin
20955 XML documents.
20956 (handle_query): Handle multiple annexes.
20957
0f48aa01
DJ
209582007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20959
20960 * remote-utils.c [USE_WIN32API] (read, write): Define.
20961 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20962 write.
20963
23181151
DJ
209642007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20965
20966 * linux-i386-low.c (the_low_target): Set arch_string.
20967 * linux-x86-64-low.c (the_low_target): Likewise.
20968 * linux-low.c (linux_arch_string): New.
20969 (linux_target_ops): Add it.
20970 * linux-low.h (struct linux_target_ops): Add arch_string.
20971 * server.c (write_qxfer_response): Use const void * for DATA.
20972 (get_features_xml): New.
20973 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20974 * target.h (struct target_ops): Add arch_string method.
20975
9d606399
DJ
209762007-01-03 Denis Pilat <denis.pilat@st.com>
20977 Daniel Jacobowitz <dan@codesourcery.com>
20978
20979 * linux-low.c (linux_kill): Handle being called with no threads.
20980 * win32-i386-low.c (win32_kill): Likewise.
20981 (get_child_debug_event): Clear current_process_handle.
20982
209832006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
20984 Daniel Jacobowitz <dan@codesourcery.com>
20985
20986 * remote-utils.c (remote_open): Check the type of specified
20987 serial port devices before opening them.
20988 * server.c (main): Kill the inferior if an error occurs during
20989 the first remote_open.
20990
a5e13d24
DJ
209912006-12-05 Markus Deuling <deuling@de.ibm.com>
20992
20993 * README: Update supported targets.
20994
186947f7
DJ
209952006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20996
20997 * Makefile.in (clean): Remove reg-mips64.c.
20998 (reg-mips64.c, reg-mips64.o): New rules.
20999 * configure.srv: Handle mips64. Include regset support for mips.
21000 * linux-mips-low.c (union mips_register): New.
21001 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21002 (mips_breakpoint, mips_breakpoint_at): Use int.
21003 (mips_collect_register, mips_supply_register)
21004 (mips_collect_register_32bit, mips_supply_register_32bit)
21005 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21006 (mips_store_fpregset, target_regsets): New.
21007 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21008
a13e2c95
UW
210092006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21010
21011 * configure.srv: Add target "spu*-*-*".
21012 * Makefile.in (clean): Remove reg-spu.c.
21013 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21014 * spu-low.c: New file.
21015
cb7283db
DJ
210162006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21017
21018 * configure.ac: Correct td_thr_tls_get_addr test.
21019 * configure: Regenerated.
21020
89be2091
DJ
210212006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21022
21023 * linux-low.c (linux_wait_for_event): Reformat. Use the
21024 pass_signals array.
21025 * remote-utils.c (decode_address_to_semicolon): New.
21026 * server.c (pass_signals, handle_general_set): New.
21027 (handle_query): Mention QPassSignals for qSupported.
21028 (main): Call handle_general_set.
21029 * server.h (pass_signals, decode_address_to_semicolon): New.
21030
000ef4f0
DJ
210312006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21032
21033 * server.c (handle_query): Correct error handling for read_auxv.
21034
b7149293
UW
210352005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21036
21037 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21038 and srv_linux_thread_db to yes.
21039 * linux-s390-low.c (s390_fill_gregset): New function.
21040 (target_regsets): Define data structure.
21041
dae5f5cf
DJ
210422006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21043
21044 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21045 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21046 * config.in, configure: Regenerated.
21047 * inferiors.c (gdb_id_to_thread): New function.
21048 (gdb_id_to_thread_id): Use it.
21049 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21050 * linux-low.h (struct process_info): Add th member.
21051 (thread_db_get_tls_address): New prototype.
21052 * remote-utils.c (decode_address): Make non-static.
21053 * server.c (handle_query): Handle qGetTLSAddr.
21054 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21055 * target.h (struct target_ops): Add get_tls_address.
21056 * thread-db.c (maybe_attach_thread): Save the thread handle.
21057 (thread_db_get_tls_address): New.
21058
32ca6d61
DJ
210592006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21060
21061 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21062 (linux_resume_one_process): Take a siginfo_t *. Update all
21063 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21064 (struct pending_signals): Add a siginfo_t.
21065 (linux_wait_for_process): Always set last_status.
21066 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21067 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21068 * linux-low.h (struct process_info): Add last_status.
21069
5ffff7c1
DJ
210702006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21071
21072 * remote-utils.c (try_rle): New function.
21073 (putpkt_binary): Use it.
21074
8695c747
DJ
210752006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21076
21077 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21078 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21079 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21080 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21081 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21082 point registers.
21083
290fadea
RS
210842006-08-08 Richard Sandiford <richard@codesourcery.com>
21085
21086 * server.c (terminal_fd): New variable.
21087 (old_foreground_pgrp): Likewise.
21088 (restore_old_foreground_pgrp): New function.
21089 (start_inferior): Record the terminal file descriptor in terminal_fd
21090 and its original foreground group in old_foreground_pgrp. Register
21091 restore_old_foreground_pgrp with atexit().
21092
9f2e1e63
DJ
210932006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21094
21095 * server.c (handle_query): Correct qPart to qXfer.
21096
b80864fb
DJ
210972006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21098
21099 * configure.ac: Check for more headers which are missing on
21100 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21101 * configure.srv: Add Cygwin and mingw32.
21102 * remote-utils.c: Don't include headers unconditionally which
21103 are missing on mingw32. Include <winsock.h> for mingw32.
21104 (remote_open): Adjust for mingw32 support. Flush
21105 standard error after writing to it.
21106 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21107 (unblock_async_io, enable_async_io, disable_async_io)
21108 (readchar, getpkt): Update for Winsock support.
21109 (prepare_resume_reply): Expect a protocol signal number.
21110 * server.c: Disable <sys/wait.h> on mingw32.
21111 (start_inferior): Adjust for mingw32 support. Flush
21112 standard error after writing to it.
21113 (attach_inferior): Likewise. Use protocol signal
21114 numbers.
21115 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21116 and names.
21117 * win32-i386-low.c: New file.
21118 * Makefile.in (XM_CLIBS): Set.
21119 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21120 (win32-i386-low.o): New dependency rule.
21121 * linux-low.c (linux_wait): Use target signal numbers.
21122 * target.h (struct target_ops): Doc fix.
21123 * server.h (target_signal_to_name): New prototype.
21124 * gdbreplay.c: Don't include headers unconditionally which
21125 are missing on mingw32. Include <winsock.h> for mingw32.
21126 (remote_close, remote_open): Adjust for Winsock support.
21127 * configure, config.in: Regenerated.
21128
0876f84a
DJ
211292006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21130
21131 * server.c (decode_xfer_read, write_qxfer_response): New.
21132 (handle_query): Take a packet length argument. Handle
21133 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21134 the qSupported response.
21135 (main): Update call to handle_query.
21136
01f9e8fa
DJ
211372006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21138
21139 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21140 (putpkt_binary): Renamed from putpkt and adjusted for binary
21141 data.
21142 (putpkt): New wrapper for putpkt_binary.
21143 (readchar): Don't mask off the high bit.
21144 (decode_X_packet): New function.
21145 * server.c (main): Call putpkt_binary if a handler sets the packet
21146 length. Save the length of the incoming packet. Handle 'X'.
21147 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21148
be2a5f71
DJ
211492006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21150
21151 * server.c (handle_query): Handle qSupported.
21152
ea025f5f
DJ
211532006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21154
21155 * remote-utils.c (all_symbols_looked_up): New variable.
21156 (look_up_one_symbol): Check it.
21157 * server.h (look_up_one_symbol): New declaration.
21158 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21159
9308fc88
DJ
211602006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21161
21162 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21163 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21164 (PTRACE_GET_THREAD_AREA): Define.
21165 (ps_get_thread_area): New function.
21166
52fb6437
NS
211672006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21168
21169 * configure.srv (m68k*-*-uclinux*): New target.
21170 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21171 (linux_resume_one_process): Remove extraneous cast.
21172 (linux_read_offsets): New.
21173 (linux_target_op): Add linux_read_offsets on mmuless systems.
21174 * server.c (handle_query): Add qOffsets logic.
21175 * target.h (struct target_ops): Add read_offsets.
21176
21b0f40c
DJ
211772006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21178
21179 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21180 (PTRACE_GET_THREAD_AREA): Define.
21181 (ps_get_thread_area): New function.
21182 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21183 (linux-x86-64-low.o): Update.
21184
0050a760
DJ
211852006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21186
21187 * configure.ac: Remove checks for prfpregset_t.
21188 * gdb_proc_service.h: New file.
21189 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21190 new "gdb_proc_service.h".
21191 * proc-service.c: Likewise.
21192 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21193 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21194 * Makefile.in (gdb_proc_service_h): Updated.
21195 * configure, config.in: Regenerated.
21196
b92a518e
DJ
211972006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21198
21199 * remote-utils.c (prepare_resume_reply): Move declaration
21200 of gdb_id_from_wait to the top of the block.
21201
545587ee
DJ
212022006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21203
21204 * linux-low.c (regsets_store_inferior_registers): Read the regset
21205 from the target before filling it.
21206
9db87ebd
DJ
212072006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21208
21209 * server.c (attach_inferior): Return SIGTRAP for a successful
21210 attach.
21211
dd24457d
DJ
212122006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21213
21214 * Makefile.in (OBS): Add version.o.
21215 (STAGESTUFF): Delete.
21216 (version.o): Add dependencies.
21217 (version.c): Replace rule.
21218 (clean): Remove version.c.
21219 * server.c (gdbserver_version): New.
21220 (gdbserver_usage): Use printf.
21221 (main): Handle --version and --help.
21222 * server.h (version, host_name): Add declarations.
21223
6f0f660e
EZ
212242005-12-23 Eli Zaretskii <eliz@gnu.org>
21225
889bf7c5
PA
21226 * linux-arm-low.c:
21227 * linux-arm-low.c:
21228 * inferiors.c:
21229 * i387-fp.h:
21230 * i387-fp.c:
21231 * gdbreplay.c:
21232 * regcache.c:
21233 * proc-service.c:
21234 * mem-break.h:
21235 * mem-break.c:
21236 * linux-x86-64-low.c:
21237 * linux-sh-low.c:
21238 * linux-s390-low.c:
21239 * linux-ppc64-low.c:
21240 * linux-ppc-low.c:
21241 * linux-mips-low.c:
21242 * linux-m68k-low.c:
21243 * linux-m32r-low.c:
21244 * linux-low.h:
21245 * linux-low.c:
21246 * linux-ia64-low.c:
21247 * linux-i386-low.c:
21248 * linux-crisv32-low.c:
21249 * thread-db.c:
21250 * terminal.h:
21251 * target.h:
21252 * target.c:
21253 * server.h:
21254 * server.c:
21255 * remote-utils.c:
21256 * regcache.h:
21257 * utils.c:
21258 * Makefile.in:
21259 * configure.ac:
6f0f660e
EZ
21260 * gdbserver.1: Add (C) after Copyright. Update the FSF
21261 address.
21262
9d1fb177
DJ
212632005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21264
21265 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21266 (arm_breakpoint_at): Recognize both breakpoints.
21267 (the_low_target): Use the correct breakpoint instruction.
21268
011a70c2
DJ
212692005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21270
21271 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21272 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21273 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21274 (the_low_target): Update.
21275
7fb85e41
AS
212762005-10-25 Andreas Schwab <schwab@suse.de>
21277
21278 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21279
21280 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21281 (ia64_num_regs): Reduce to 462.
21282
3db0444b
DJ
212832005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21284
21285 * acinclude.m4: Correct quoting.
21286 * aclocal.m4: Regenerated.
21287
21288 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21289 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21290 (thread_db_init): Call thread_db_err_str.
21291 * configure.ac: Check for TD_VERSION.
21292 * config.in, configure: Regenerated.
21293
bee0189a
DJ
212942005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21295
21296 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21297
e9d25b98
DJ
212982005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21299
21300 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21301 is not available. Define HAVE_PTRACE_GETREGS if it is.
21302 * config.in, configure: Regenerated.
21303 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21304 * linux-i386-low.c, linux-m68k-low.c: Update to use
21305 HAVE_PTRACE_GETREGS.
21306 * linux-low.c (regsets_fetch_inferior_registers)
21307 (regsets_store_inferior_registers): Only return 0 if we processed
21308 GENERAL_REGS.
21309 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21310 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21311
a06660f7
DJ
213122005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21313
21314 * inferiors.c (struct thread_info): Add gdb_id.
21315 (add_thread): Add gdb_id argument.
21316 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21317 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21318 calls to add_thread.
21319 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21320 * server.c (handle_query): Use thread_to_gdb_id.
21321 (handle_v_cont, main): Use gdb_id_to_thread_id.
21322 * server.h (add_thread): Update prototype.
21323 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21324 prototypes.
21325
5a1f5858
DJ
213262005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21327
21328 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21329 left-padded registers.
21330 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21331 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21332
e122f1f5
SE
213332005-07-01 Steve Ellcey <sje@cup.hp.com>
21334
21335 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21336 * configure: Regenerate.
21337 * config.in: Regenerate.
21338 * server.h (NEED_DECLARATION_STRERROR):
21339 Replace with !HAVE_DECL_STRERROR.
21340
d592fa2f
DJ
213412005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21342
21343 * linux-low.c (linux_wait, linux_send_signal): Don't test
21344 an unsigned long variable for > 0 if it could be MAX_ULONG.
21345 * server.c (myresume): Likewise.
21346 * target.c (set_desired_inferior): Likewise.
21347
ccbd4912
MK
213482005-06-13 Mark Kettenis <kettenis@gnu.org>
21349
21350 * configure.ac: Simplify and improve check for socklen_t.
21351 * configure, config.in: Regenerate.
21352
f450004a
DJ
213532005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21354
21355 * acconfig.h: Remove.
21356 * configure.ac: Add a test for socklen_t. Use three-argument
21357 AC_DEFINE throughout.
21358 * config.in: Regenerated using autoheader 2.59.
21359 * configure: Regenerated.
21360
21361 * gdbreplay.c (socklen_t): Provide a default.
21362 (remote_open): Use socklen_t.
21363 * remote-utils.c (socklen_t): Provide a default.
21364 (remote_open): Use socklen_t.
21365 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21366 unsigned char.
21367
21368 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21369 char for buffers.
21370 * linux-low.c (linux_read_memory, linux_write_memory)
21371 (linux_read_auxv): Likewise.
21372 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21373 (check_mem_write): Likewise.
21374 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21375 Likewise.
21376 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21377 (registers_from_string, register_data): Likewise.
21378 * server.c (handle_query, main): Likewise.
21379 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21380 (decode_M_packet): Likewise.
21381 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21382 * target.h (struct target_ops): Update read_memory, write_memory,
21383 and read_auxv.
21384 (read_inferior_memory, write_inferior_memory): Update.
21385 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21386 to unsigned char *.
21387 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21388 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21389 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21390 linux-s390-low.c, linux-sh-low.c: Update for changes in
21391 read_inferior_memory and the_low_target->breakpoint.
21392
eee84df1
DJ
213932005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21394
21395 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21396 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21397 * configure.srv: Add powerpc64-*-linux*.
21398 * linux-ppc64-low.c: New file.
21399
45b134e5
OF
214002005-05-23 Orjan Friberg <orjanf@axis.com>
21401
21402 * linux-cris-low.c: New file with support for CRIS.
21403 * linux-crisv32-low.c: Ditto for CRISv32.
21404 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21405 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21406 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21407 reg-crisv32.o, and reg-crisv32.c to make rules.
21408 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21409 recognized targets.
21410
48d93c75
UW
214112005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21412
21413 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21414 of sizeof (PTRACE_XFER_TYPE).
21415 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21416
e013ee27
OF
214172005-05-12 Orjan Friberg <orjanf@axis.com>
21418
889bf7c5 21419 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21420 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21421 pointers for hardware watchpoint support.
21422 * linux-low.h (struct linux_target_ops): Ditto.
21423 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21424 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21425 to linux_target_ops.
21426 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21427 reply packet.
21428 * server.c (main): Recognize 'Z' and 'z' packets.
21429
b0ded00b
UW
214302005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21431
21432 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21433 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21434 (the_low_target): Add new members.
21435
8643e2ad
DJ
214362005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21437
21438 * proc-service.c (ps_lgetregs): Search all_processes instead of
21439 all_threads.
21440
fc620387
DJ
214412005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21442
21443 * server.c (start_inferior): Change return type to int.
21444 (attach_inferior): Change sigptr to int *.
21445 (handle_v_cont, handle_v_requests): Change signal to int *.
21446 (main): Change signal to int.
21447
214482005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21449
21450 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21451 * configure.srv: Add m32r*-*-linux*.
21452 * linux-m32r-low.c: New file.
21453
e0e76420
DJ
214542005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21455
21456 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21457
a1928bad
DJ
214582005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21459
21460 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21461 Take unsigned long arguments for PIDs.
21462 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21463 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21464 (wait_for_sigstop, linux_resume_one_process)
21465 (regsets_fetch_inferior_registers, linux_send_signal)
21466 (linux_read_auxv): Likewise. Update the types of variables holding
21467 PIDs. Update format string specifiers.
21468 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21469 * remote-utils.c (prepare_resume_reply): Likewise.
21470 * server.c (cont_thread, general_thread, step_thread)
21471 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21472 unsigned long.
21473 (handle_query): Update format specifiers.
21474 (handle_v_cont, main): Use strtoul for thread IDs.
21475 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21476 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21477 (general_thread, step_thread, thread_from_wait)
21478 (old_thread_from_wait): Update.
21479 * target.h (struct thread_resume): Use unsigned long for THREAD.
21480 (struct target_ops): Use unsigned long for arguments to attach and
21481 thread_alive.
21482
dcdb98d2
DJ
214832005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21484
21485 * acinclude.m4: Include bfd/bfd.m4 directly.
21486 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21487 <agriffis@toolchain.org>.
21488 * aclocal.m4, configure: Regenerated.
21489
bec39cab
AC
214902005-01-07 Andrew Cagney <cagney@gnu.org>
21491
21492 * configure.ac: Rename configure.in, require autoconf 2.59.
21493 * configure: Re-generate.
21494
434c4c77
DJ
214952004-12-08 Daniel Jacobowitz <dan@debian.org>
21496
21497 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21498 LIBS when finished.
21499 * aclocal.m4: Regenerated.
21500 * configure: Regenerated.
21501
db1d3e1b
AS
215022004-11-21 Andreas Schwab <schwab@suse.de>
21503
21504 * linux-m68k-low.c (m68k_num_gregs): Define.
21505 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21506 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21507 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21508 (m68k_breakpoint_at): New. Add to the_low_target.
21509
21510 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21511 srv_linux_thread_db to yes.
21512
43360365
JB
215132004-10-20 Joel Brobecker <brobecker@gnat.com>
21514
21515 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21516 (ARCH_SET_FS): Likewise.
21517 (ARCH_GET_FS): Likewise.
21518 (ARCH_GET_GS): Likewise.
21519
fd500816
DJ
215202004-10-16 Daniel Jacobowitz <dan@debian.org>
21521
21522 * linux-i386-low.c (ps_get_thread_area): New.
21523 * linux-x86-64-low.c (ps_get_thread_area): New.
21524 * linux-low.c: Include <sys/syscall.h>.
21525 (linux_kill_one_process): Don't kill the first thread here.
21526 (linux_kill): Kill the first thread here.
21527 (kill_lwp): New function.
21528 (send_sigstop, linux_send_signal): Use it.
21529 * proc-service.c: Clean up #ifdefs.
21530 (fpregset_info): Delete.
21531 (ps_lgetregs): Update and enable implementation.
21532 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21533 implementations.
21534 * remote-utils.c (struct sym_cache, symbol_cache): New.
21535 (input_interrupt): Print a clearer message.
21536 (async_io_enabled): New variable.
21537 (enable_async_io, disable_async_io): Use it. Update comments.
21538 (look_up_one_symbol): Use the symbol cache.
21539 * thread-db.c (thread_db_look_up_symbols): New function.
21540 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21541
f6de3c42
DJ
215422004-10-16 Daniel Jacobowitz <dan@debian.org>
21543
21544 * configure.in: Test for -rdynamic.
21545 * configure: Regenerated.
21546 * Makefile (INTERNAL_LDFLAGS): New.
21547 (gdbserver, gdbreplay): Use it.
21548
2c0fc042
AC
215492004-09-02 Andrew Cagney <cagney@gnu.org>
21550
21551 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21552
075b3282
DJ
215532004-03-23 Daniel Jacobowitz <drow@mvista.com>
21554
21555 * linux-low.c (linux_wait): Clear all_processes list also.
21556
fa6a77dc
DJ
215572004-03-12 Daniel Jacobowitz <drow@mvista.com>
21558
21559 * linux-low.c: Include <errno.h>. Remove extern declaration of
21560 errno.
21561
6d782a97
DJ
215622004-03-12 Daniel Jacobowitz <drow@mvista.com>
21563
21564 * gdbreplay.c, server.h, utils.c: Update copyright years.
21565
3a7fb99b
DJ
215662004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21567
21568 * server.c (main): Print child status or termination signal from
21569 variable 'signal', not 'sig'.
21570
c3e735a6
DJ
215712004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21572
21573 * linux-low.c (linux_read_memory): Change return type to
21574 int. Check for and return error from ptrace().
21575 * target.c (read_inferior_memory): Change return type to int. Pass
21576 back return status from the_target->read_memory().
21577 * target.h (struct target_ops): Adapt *read_memory() prototype.
21578 Update comment.
21579 (read_inferior_memory): Adapt prototype.
21580 * server.c (main): Return an error packet if
21581 read_inferior_memory() returns an error.
21582
a59d1c82
DJ
215832004-03-04 Daniel Jacobowitz <drow@mvista.com>
21584
21585 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21586 Unify with other clean targets.
21587
dc3f8883
DJ
215882004-02-29 Daniel Jacobowitz <drow@mvista.com>
21589
21590 * server.c (handle_v_cont): Call set_desired_inferior.
21591
89a208da
DJ
215922004-02-29 Daniel Jacobowitz <drow@mvista.com>
21593
21594 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21595
62ea82f5
DJ
215962004-02-29 Daniel Jacobowitz <drow@mvista.com>
21597
21598 * linux-low.c (linux_wait): Unblock async I/O.
21599 (linux_resume): Block and enable async I/O.
21600 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21601 * server.h (block_async_io, unblock_async_io): Add prototypes.
21602
6910d122
DJ
216032004-02-29 Daniel Jacobowitz <drow@mvista.com>
21604
21605 * remote-utils.c (remote_open): Print a status notice after
21606 opening a TCP port.
21607 * server.c (attach_inferior): Print a status notice after
21608 attaching.
21609
216102004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21611
21612 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21613
c89dc5d4
DJ
216142004-02-26 Daniel Jacobowitz <drow@mvista.com>
21615
21616 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21617 error packet.
21618 * server.c, target.h: Update copyright years.
21619
4b8dad4a
RM
216202004-02-25 Roland McGrath <roland@redhat.com>
21621
21622 * target.h (struct target_ops): New member `read_auxv'.
21623 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21624 * linux-low.c (linux_read_auxv): New function.
21625 (linux_target_ops): Initialize `read_auxv' member to that.
21626
d7446758
JB
216272004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21628
21629 Committed by Jim Blandy <jimb@redhat.com>.
21630
21631 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21632 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21633 instead of GPR_SIZE to distiguish s390 and s390x targets.
21634
5544ad89
DJ
216352004-01-31 Daniel Jacobowitz <drow@mvista.com>
21636
21637 * linux-low.c: Update copyright year.
21638 (check_removed_breakpoint): Clear pending_is_breakpoint.
21639 (linux_set_resume_request, linux_queue_one_thread)
21640 (resume_status_pending_p): New functions.
21641 (linux_continue_one_thread): Use process->resume.
21642 (linux_resume): Only resume threads if there are no pending events.
21643 * linux-low.h (struct process_info): Add resume request
21644 pointer.
21645
2a68b70e
DJ
216462004-01-30 Daniel Jacobowitz <drow@mvista.com>
21647
21648 * regcache.c (new_register_cache): Clear the allocated register
21649 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21650
64386c31
DJ
216512003-10-13 Daniel Jacobowitz <drow@mvista.com>
21652
21653 * linux-low.c (linux_resume): Take a struct thread_resume *
21654 argument.
21655 (linux_wait): Update call.
21656 (resume_ptr): New static variable.
21657 (linux_continue_one_thread): Renamed from
21658 linux_continue_one_process. Use resume_ptr.
21659 (linux_resume): Use linux_continue_one_thread.
21660 * server.c (handle_v_cont, handle_v_requests): New functions.
21661 (myresume): New function.
21662 (main): Handle 'v' case.
21663 * target.h (struct thread_resume): New type.
21664 (struct target_ops): Change argument of "resume" to struct
21665 thread_resume *.
21666 (myresume): Delete macro.
21667
c938e9b0
L
216682003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21669
21670 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21671 (uninstall): Support DESTDIR.
21672
7f313d07
BC
21673Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21674
21675 * configure.srv: Add xscale*linux copy of arm*linux entry.
21676
3b2fc2ea
DJ
216772003-07-24 Daniel Jacobowitz <drow@mvista.com>
21678
21679 * linux-arm-low.c (arm_reinsert_addr): New function.
21680 (the_low_target): Add arm_reinsert_addr.
21681
1c0a559e
MK
216822003-07-08 Mark Kettenis <kettenis@gnu.org>
21683
21684 * mem-break.c: Remove whitespace at end of file.
21685
43d5792c
DJ
216862003-06-28 Daniel Jacobowitz <drow@mvista.com>
21687
21688 * configure.in: Check whether we need to prototype strerror.
21689 * server.h: Optionally prototype strerror.
21690 * gdbreplay.c (perror_with_name): Use strerror.
21691 * linux-low.c (linux_attach_lwp): Use strerror.
21692 * utils.c (perror_with_name): Use strerror.
21693 * config.in, configure: Regenerated.
21694
c8a86edf
DJ
216952003-06-28 Daniel Jacobowitz <drow@mvista.com>
21696
21697 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21698 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21699
73d37363
DJ
217002003-06-20 Daniel Jacobowitz <drow@mvista.com>
21701
21702 * Makefile.in (SFILES): Update.
21703 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21704 low-sun3.c: Remove files.
21705
6ad8ae5c
DJ
217062003-06-17 Daniel Jacobowitz <drow@mvista.com>
21707
21708 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21709 (linux_detach_one_process, linux_detach): New functions.
21710 (linux_target_ops): Add linux_detach.
21711 * server.c (main): Handle 'D' packet.
21712 * target.h (struct target_ops): Add "detach" member.
21713 (detach_inferior): Define.
21714
1581182a
MK
217152003-06-13 Mark Kettenis <kettenis@gnu.org>
21716
21717 From Kelley Cook <kelleycook@wideopenwest.com>:
21718 * configure.srv: Accept i[34567]86 variants.
21719
e5379b03
DJ
217202003-06-05 Daniel Jacobowitz <drow@mvista.com>
21721
21722 * linux-low.c (linux_wait_for_event): Correct comment typos.
21723 (linux_resume_one_process): Call check_removed_breakpoint.
21724 (linux_send_signal): New function.
21725 (linux_target_ops): Add linux_send_signal.
21726 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21727 of kill.
21728 * target.h (struct target_ops): Add send_signal.
21729
2ff29de4
JB
217302003-05-29 Jim Blandy <jimb@redhat.com>
21731
21732 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21733 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21734 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21735 away part of the register's value.
21736
254787d4
DJ
217372003-03-26 Daniel Jacobowitz <drow@mvista.com>
21738
21739 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21740 (linux_wait_for_event, linux_init_signals): Likewise.
21741
94e10508
DJ
217422003-03-17 Daniel Jacobowitz <drow@mvista.com>
21743
21744 * configure.in: Check for stdlib.h.
21745 * configure: Regenerated.
21746 * config.in: Regenerated.
21747
4c0711e0
DJ
217482003-01-04 Andreas Schwab <schwab@suse.de>
21749
21750 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21751
ef66e766
AC
217522003-01-02 Andrew Cagney <ac131313@redhat.com>
21753
21754 * Makefile.in: Remove obsolete code.
21755
a1358604
DJ
217562002-11-20 Daniel Jacobowitz <drow@mvista.com>
21757
21758 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21759 defined(PT_FPR0_HI).
21760
23ce3b1c
DJ
217612002-11-17 Stuart Hughes <seh@zee2.com>
21762
21763 * linux-arm-low.c (arm_num_regs): Increase.
21764 (arm_regmap): Include status register.
21765
217662002-11-17 Daniel Jacobowitz <drow@mvista.com>
21767
21768 * linux-low.c (register_addr): Remove incorrect -1 check.
21769
a9fa9f7d
DJ
217702002-08-29 Daniel Jacobowitz <drow@mvista.com>
21771
21772 * linux-low.c (linux_create_inferior): Call setpgid. Return
21773 the new PID.
21774 (unstopped_p, linux_signal_pid): Remove.
21775 (linux_target_ops): Remove linux_signal_pid.
21776 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21777 global instead of target method.
21778 * target.h (struct target_ops): Remove signal_pid. Update comment
21779 for create_inferior.
21780 * server.c (signal_pid): New variable.
21781 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21782 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21783 (attach_inferior): Set signal_pid.
21784
17574093
DJ
217852002-08-23 Daniel Jacobowitz <drow@mvista.com>
21786
21787 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21788
217892002-08-20 Jim Blandy <jimb@redhat.com>
21790
21791 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21792 default for this.
21793
217942002-08-01 Andrew Cagney <cagney@redhat.com>
21795
21796 * Makefile.in: Make chill references obsolete.
21797
217982002-07-24 Kevin Buettner <kevinb@redhat.com>
21799
21800 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21801 * configure: Regenerate.
21802 * config.in: Regenerate.
21803
218042002-07-09 David O'Brien <obrien@FreeBSD.org>
21805
21806 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21807 (perror_with_name, remote_close, remote_open, expect, play): Static.
21808
218092002-07-04 Michal Ludvig <mludvig@suse.cz>
21810
4b8dad4a 21811 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21812 byte offsets instead of an array of indexes.
21813 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21814
218152002-06-13 Daniel Jacobowitz <drow@mvista.com>
21816
21817 * regcache.c: Add comment.
21818
218192002-06-11 Daniel Jacobowitz <drow@mvista.com>
21820
21821 * thread-db.c: New file.
21822 * proc-service.c: New file.
21823 * acinclude.m4: New file.
21824 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21825 proc-service.o, and thread-db.o.
21826 (linux-low.o): Add USE_THREAD_DB.
21827 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21828 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21829 * aclocal.m4: Regenerated.
21830 * config.in: Regenerated.
21831 * configure: Regenerated.
21832 * configure.in: Check for proc_service.h, sys/procfs.h,
21833 thread_db.h, and linux/elf.h headrs.
21834 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21835 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21836 Check for -lthread_db and thread support.
21837 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21838 PowerPC, and SuperH.
21839 * i387-fp.c: Constify arguments.
21840 * i387-fp.h: Likewise.
21841 * inferiors.c: (struct thread_info): Renamed from
21842 `struct inferior_info'. Remove PID member. Use generic inferior
21843 list header. All uses updated.
21844 (inferiors, signal_pid): Removed.
21845 (all_threads): New variable.
21846 (get_thread): Define.
21847 (add_inferior_to_list): New function.
21848 (for_each_inferior): New function.
21849 (change_inferior_id): New function.
21850 (add_inferior): Removed.
21851 (remove_inferior): New function.
21852 (add_thread): New function.
21853 (free_one_thread): New function.
21854 (remove_thread): New function.
21855 (clear_inferiors): Use for_each_inferior and free_one_thread.
21856 (find_inferior): New function.
21857 (find_inferior_id): New function.
21858 (inferior_target_data): Update argument type.
21859 (set_inferior_target_data): Likewise.
21860 (inferior_regcache_data): Likewise.
21861 (set_inferior_regcache_data): Likewise.
21862 * linux-low.c (linux_bp_reinsert): Remove.
21863 (all_processes, stopping_threads, using_thrads)
21864 (struct pending_signals, debug_threads, pid_of): New.
21865 (inferior_pid): Replace with macro.
21866 (struct inferior_linux_data): Remove.
21867 (get_stop_pc, add_process): New functions.
21868 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21869 Use add_process and add_thread.
21870 (linux_attach_lwp): New function, based on old linux_attach. Use
21871 add_process and add_thread. Set stop_expected for new threads.
21872 (linux_attach): New function.
21873 (linux_kill_one_process): New function.
21874 (linux_kill): Kill all LWPs.
21875 (linux_thread_alive): Use find_inferior_id.
21876 (check_removed_breakpoints, status_pending_p): New functions.
21877 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21878 Update. Use WNOHANG. Wait for cloned processes also. Update process
21879 struct for the found process.
21880 (linux_wait_for_event): New function.
21881 (linux_wait): Use it. Support LWPs.
21882 (send_sigstop, wait_for_sigstop, stop_all_processes)
21883 (linux_resume_one_process, linux_continue_one_process): New functions.
21884 (linux_resume): Support LWPs.
21885 (REGISTER_RAW_SIZE): Remove.
21886 (fetch_register): Use register_size instead. Call supply_register.
21887 (usr_store_inferior_registers): Likewise. Call collect_register.
21888 Fix recursive case.
21889 (regsets_fetch_inferior_registers): Improve error message.
21890 (regsets_store_inferior_registers): Add debugging.
21891 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21892 (unstopped_p, linux_signal_pid): New functions.
21893 (linux_target_ops): Add linux_signal_pid.
21894 (linux_init_signals): New function.
21895 (initialize_low): Call it. Initialize using_threads.
21896 * regcache.c (inferior_regcache_data): Add valid
21897 flag.
21898 (get_regcache): Fetch registers lazily. Add fetch argument
21899 and update all callers.
21900 (regcache_invalidate_one, regcache_invalidate): New
21901 functions.
21902 (new_register_cache): Renamed from create_register_cache.
21903 Return the new regcache.
21904 (free_register_cache): Change argument to a void *.
21905 (registers_to_string, registers_from_string): Call get_regcache
21906 with fetch flag set.
21907 (register_data): Make static. Pass fetch flag to get_regcache.
21908 (supply_register): Call get_regcache with fetch flag clear.
21909 (collect_register): Call get_regcache with fetch flag set.
21910 (collect_register_as_string): New function.
21911 * regcache.h: Update.
21912 * remote-utils.c (putpkt): Flush after debug output and use
21913 stderr.
21914 Handle input interrupts while waiting for an ACK.
21915 (input_interrupt): Use signal_pid method.
21916 (getpkt): Flush after debug output and use stderr.
21917 (outreg): Use collect_register_as_string.
21918 (new_thread_notify, dead_thread_notify): New functions.
21919 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21920 and general_thread.
21921 (look_up_one_symbol): Flush after debug output.
21922 * server.c (step_thread, server_waiting): New variables.
21923 (start_inferior): Don't use signal_pid. Update call to mywait.
21924 (attach_inferior): Update call to mywait.
21925 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21926 (main): Don't fetch/store registers explicitly. Use
21927 set_desired_inferior. Support proposed ``Hs'' packet. Update
21928 calls to mywait.
21929 * server.h: Update.
21930 (struct inferior_list, struct_inferior_list_entry): New.
21931 * target.c (set_desired_inferior): New.
21932 (write_inferior_memory): Constify.
21933 (mywait): New function.
21934 * target.h: Update.
21935 (struct target_ops): New signal_pid method.
21936 (mywait): Removed macro, added prototype.
21937
21938 * linux-low.h (regset_func): Removed.
21939 (regset_fill_func, regset_store_func): New.
21940 (enum regset_type): New.
21941 (struct regset_info): Add type field. Use new operation types.
21942 (struct linux_target_ops): stop_pc renamed to get_pc.
21943 Add decr_pc_after_break and breakpoint_at.
21944 (get_process, get_thread_proess, get_process_thread)
21945 (strut process_info, all_processes, linux_attach_lwp)
21946 (thread_db_init): New.
21947
21948 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21949 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21950 (the_low_target): Add new members.
21951 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21952 (i386_store_fpxregset): Constify.
21953 (target_regsets): Add new kind identifier.
21954 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21955 (i386_set_pc): Add debugging.
21956 (i386_breakpoint_at): New function.
21957 (the_low_target): Add new members.
21958 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21959 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21960 (mips_breakpoint_at): New.
21961 (the_low_target): Add new members.
21962 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21963 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21964 (the_low_target): Add new members.
21965 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21966 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21967 (the_low_target): Add new members.
21968 * linux-x86-64-low.c (target_regsets): Add new kind
21969 identifier.
21970
219712002-05-15 Daniel Jacobowitz <drow@mvista.com>
21972
21973 From Martin Pool <mbp@samba.org>:
21974 * server.c (gdbserver_usage): New function.
21975 (main): Call it.
21976
219772002-05-14 Daniel Jacobowitz <drow@mvista.com>
21978
21979 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21980 stop_at -> stop_pc.
21981
219822002-05-04 Andrew Cagney <ac131313@redhat.com>
21983
21984 * Makefile.in: Remove obsolete code.
21985
219862002-04-24 Michal Ludvig <mludvig@suse.cz>
21987
21988 * linux-low.c (regsets_fetch_inferior_registers),
21989 (regsets_store_inferior_registers): Removed cast to int from
21990 ptrace() calls.
21991 * regcache.h: Added declaration of struct inferior_info.
21992
219932002-04-20 Daniel Jacobowitz <drow@mvista.com>
21994
21995 * inferiors.c (struct inferior_info): Add regcache_data.
21996 (add_inferior): Call create_register_cache.
21997 (clear_inferiors): Call free_register_cache.
21998 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21999 * regcache.c (struct inferior_regcache_data): New.
22000 (registers): Remove.
22001 (get_regcache): New function.
22002 (create_register_cache, free_register_cache): New functions.
22003 (set_register_cache): Don't initialize the register cache here.
22004 (registers_to_string, registers_from_string, register_data): Call
22005 get_regcache.
22006 * regcache.h: Add prototypes.
22007 * server.h: Likewise.
22008
220092002-04-20 Daniel Jacobowitz <drow@mvista.com>
22010
22011 * mem-break.c: New file.
22012 * mem-break.h: New file.
22013 * Makefile.in: Add mem-break.o rule; update server.h
22014 dependencies.
22015 * inferiors.c (struct inferior_info): Add target_data
22016 member.
22017 (clear_inferiors): Free target_data member if set.
22018 (inferior_target_data, set_inferior_target_data): New functions.
22019 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22020 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22021 * linux-low.c (linux_bp_reinsert): New variable.
22022 (struct inferior_linux_data): New.
22023 (linux_create_inferior): Use set_inferior_target_data.
22024 (linux_attach): Likewise. Call add_inferior.
22025 (linux_wait_for_one_inferior): New function.
22026 (linux_wait): Call it.
22027 (linux_write_memory): Add const.
22028 (initialize_low): Call set_breakpoint_data.
22029 * linux-low.h (struct linux_target_ops): Add breakpoint
22030 handling members.
22031 * server.c (attach_inferior): Remove extra add_inferior
22032 call.
22033 * server.h: Include mem-break.h. Update inferior.c
22034 prototypes.
22035 * target.c (read_inferior_memory)
22036 (write_inferior_memory): New functions.
22037 * target.h (read_inferior_memory)
22038 (write_inferior_memory): Change macros to prototypes.
22039 (struct target_ops): Update comments. Add const to write_memory
22040 definition.
22041
220422002-04-11 Daniel Jacobowitz <drow@mvista.com>
22043
22044 * linux-low.c (usr_store_inferior_registers): Support
22045 registers which are allowed to fail to store.
22046 * linux-low.h (linux_target_ops): Likewise.
22047 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22048 (ppc_cannot_store_register): FPSCR may not be storable.
22049
220502002-04-09 Daniel Jacobowitz <drow@mvista.com>
22051
22052 * server.h: Include <string.h> if HAVE_STRING_H.
22053 * ChangeLog: Correct paths in last ChangeLog entry.
22054
220552002-04-09 Daniel Jacobowitz <drow@mvista.com>
22056
22057 * linux-low.h: Remove obsolete prototypes.
22058 (struct linux_target_ops): New.
22059 (extern the_low_target): New.
22060 * linux-low.c (num_regs, regmap): Remove declarations.
22061 (register_addr): Use the_low_target explicitly.
22062 (fetch_register): Likewise.
22063 (usr_fetch_inferior_registers): Likewise.
22064 (usr_store_inferior_registers): Likewise.
22065 * linux-arm-low.c (num_regs): Remove.
22066 (arm_num_regs): Define.
22067 (arm_regmap): Renamed from regmap, made static.
22068 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22069 made static.
22070 (arm_cannot_store_register): Renamed from cannot_store_register,
22071 made static.
22072 (the_low_target): New.
22073 * linux-i386-low.c (num_regs): Remove.
22074 (i386_num_regs): Define.
22075 (i386_regmap): Renamed from regmap, made static.
22076 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22077 made static.
22078 (i386_cannot_store_register): Renamed from cannot_store_register,
22079 made static.
22080 (the_low_target): New.
22081 * linux-ia64-low.c (num_regs): Remove.
22082 (ia64_num_regs): Define.
22083 (ia64_regmap): Renamed from regmap, made static.
22084 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22085 made static.
22086 (ia64_cannot_store_register): Renamed from cannot_store_register,
22087 made static.
22088 (the_low_target): New.
22089 * linux-m68k-low.c (num_regs): Remove.
22090 (m68k_num_regs): Define.
22091 (m68k_regmap): Renamed from regmap, made static.
22092 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22093 made static.
22094 (m68k_cannot_store_register): Renamed from cannot_store_register,
22095 made static.
22096 (the_low_target): New.
22097 * linux-mips-low.c (num_regs): Remove.
22098 (mips_num_regs): Define.
22099 (mips_regmap): Renamed from regmap, made static.
22100 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22101 made static.
22102 (mips_cannot_store_register): Renamed from cannot_store_register,
22103 made static.
22104 (the_low_target): New.
22105 * linux-ppc-low.c (num_regs): Remove.
22106 (ppc_num_regs): Define.
22107 (ppc_regmap): Renamed from regmap, made static.
22108 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22109 made static.
22110 (ppc_cannot_store_register): Renamed from cannot_store_register,
22111 made static.
22112 (the_low_target): New.
22113 * linux-s390-low.c (num_regs): Remove.
22114 (s390_num_regs): Define.
22115 (s390_regmap): Renamed from regmap, made static.
22116 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22117 made static.
22118 (s390_cannot_store_register): Renamed from cannot_store_register,
22119 made static.
22120 (the_low_target): New.
22121 * linux-sh-low.c (num_regs): Remove.
22122 (sh_num_regs): Define.
22123 (sh_regmap): Renamed from regmap, made static.
22124 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22125 made static.
22126 (sh_cannot_store_register): Renamed from cannot_store_register,
22127 made static.
22128 (the_low_target): New.
22129 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22130 (the_low_target): New.
22131
221322002-04-09 Daniel Jacobowitz <drow@mvista.com>
22133
22134 * Makefile.in: Add stamp-h target.
22135 * configure.in: Create stamp-h.
22136 * configure: Regenerated.
22137
221382002-04-09 Daniel Jacobowitz <drow@mvista.com>
22139
22140 * inferiors.c: New file.
22141 * target.c: New file.
22142 * target.h: New file.
22143 * Makefile.in: Add target.o and inferiors.o. Update
22144 dependencies.
22145 * linux-low.c (inferior_pid): New static variable,
22146 moved from server.c.
22147 (linux_create_inferior): Renamed from create_inferior.
22148 Call add_inferior. Return 0 on success instead of a PID.
22149 (linux_attach): Renamed from myattach.
22150 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22151 (linux_thread_alive): Renamed from mythread_alive.
22152 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22153 child dies.
22154 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22155 (regsets_store_inferior_registers): Correct error message.
22156 Add missing ``return 0''.
22157 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22158 (linux_store_registers): Renamed from store_inferior_registers.
22159 (linux_read_memory): Renamed from read_inferior_memory.
22160 (linux_write_memory): Renamed from write_inferior_memory.
22161 (linux_target_ops): New structure.
22162 (initialize_low): Call set_target_ops ().
22163 * remote-utils.c (unhexify): New function.
22164 (hexify): New function.
22165 (input_interrupt): Send signals to ``signal_pid''.
22166 * server.c (inferior_pid): Remove.
22167 (start_inferior): Update create_inferior call.
22168 (attach_inferior): Call add_inferior.
22169 (handle_query): New function.
22170 (main): Call handle_query for `q' packets.
22171 * server.h: Include "target.h". Remove obsolete prototypes.
22172 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22173
221742002-04-09 Daniel Jacobowitz <drow@mvista.com>
22175
22176 * Makefile.in: Add WARN_CFLAGS. Update configury
22177 dependencies.
22178 * configure.in: Check for <string.h>
22179 * configure: Regenerate.
22180 * config.in: Regenerate.
22181 * gdbreplay.c: Include needed system headers.
22182 (remote_open): Remove strchr prototype.
22183 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22184 * regcache.c (supply_register): Change buf argument to const void *.
22185 (supply_register_by_name): Likewise.
22186 (collect_register): Change buf argument to void *.
22187 (collect_register_by_name): Likewise.
22188 * regcache.h: Add missing prototypes.
22189 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22190 * server.c (handle_query): New function.
22191 (attached): New static variable, moved out of main.
22192 (main): Quiet longjmp clobber warnings.
22193 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22194 * utils.c (error): Remove NORETURN.
22195 (fatal): Likewise.